commonMain.Selection.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selection Show documentation
Show all versions of selection Show documentation
A collection of drawing/charting utilities
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))))