invoke

abstract operator fun invoke(element: HTMLElement, autoScale: Boolean = true): View(source)

Creates a new View that hosts the given element. The element provided will be made to scale, so it matches the View's size.

Return

a new View that renders the given element.

Parameters

element

to be hosted

autoScale

will make element fit the View's size when set to true

abstract operator fun invoke(element: HTMLElement, autoScale: Boolean = true): View(source)

Creates a new View that hosts the given element. The element provided will be made to scale, so it matches the View's size.

Return

a new View that renders the given element.

Parameters

element

to be hosted

autoScale

will make element fit the View's size when set to true