All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.Selection.kt Maven / Gradle / Ivy

The newest version!
package com.juul.krayon.selection

import com.juul.krayon.element.Element

public open class Selection(
    public val groups: List>,
)

public class UpdateSelection(
    groups: List>,
    public val enter: EnterSelection,
    public val exit: ExitSelection,
) : Selection(groups)

public class EnterSelection(
    groups: List>,
) : Selection(groups)

public class ExitSelection(
    groups: List>,
) : Selection(groups)

/**
 * See analogous [d3 function](https://github.com/d3/d3-selection#selection). Note that an
 * explicit root must be specified, because there's no global document object here.
 */
public fun  E.asSelection(): Selection =
    Selection(listOf(Group(null, listOf(this))))




© 2015 - 2024 Weber Informatics LLC | Privacy Policy