kvision / pl.treksoft.kvision.html / canvas

canvas

(js) fun Container.canvas(canvasWidth: Int? = null, canvasHeight: Int? = null, classes: Set<String>? = null, className: String? = null, init: (Canvas.() -> Unit)? = null): Canvas

DSL builder extension function.

It takes the same parameters as the constructor of the built component.