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

commonMain.Append.kt Maven / Gradle / Ivy

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

import com.juul.krayon.element.Element
import com.juul.krayon.element.ElementBuilder

/** See analogous [d3 function](https://github.com/d3/d3-selection#selection_append). */
public fun  Selection.append(
    builder: ElementBuilder,
): Selection = select { appendChild(builder.build()) }

/** See analogous [d3 function](https://github.com/d3/d3-selection#selection_append). */
public inline fun  Selection.append(
    crossinline value: E1.(Arguments) -> E2,
): Selection = select { args -> appendChild(value(args)) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy