HTMLCanvasElement

JS
1.1
abstract class HTMLCanvasElement : 
    HTMLElement,
    CanvasImageSource,
    TexImageSource

Exposes the JavaScript HTMLCanvasElement to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript HTMLCanvasElement to Kotlin

HTMLCanvasElement()

Properties

JS
1.1

height

open var height: Int
JS
1.1

width

open var width: Int

Functions

JS
1.1

getContext

fun getContext(
    contextId: String,
    vararg arguments: Any?
): RenderingContext?
JS
1.1

toBlob

fun toBlob(
    _callback: (Blob?) -> Unit,
    type: String = definedExternally,
    quality: Any? = definedExternally)
JS
1.1

toDataURL

fun toDataURL(
    type: String = definedExternally,
    quality: Any? = definedExternally
): String

Companion Object Properties

JS
1.1

ATTRIBUTE_NODE

val ATTRIBUTE_NODE: Short
JS
1.1

CDATA_SECTION_NODE

val CDATA_SECTION_NODE: Short
JS
1.1

COMMENT_NODE

val COMMENT_NODE: Short
JS
1.1

DOCUMENT_FRAGMENT_NODE

val DOCUMENT_FRAGMENT_NODE: Short
JS
1.1

DOCUMENT_NODE

val DOCUMENT_NODE: Short
JS
1.1

DOCUMENT_POSITION_CONTAINED_BY

val DOCUMENT_POSITION_CONTAINED_BY: Short
JS
1.1

DOCUMENT_POSITION_CONTAINS

val DOCUMENT_POSITION_CONTAINS: Short
JS
1.1

DOCUMENT_POSITION_DISCONNECTED

val DOCUMENT_POSITION_DISCONNECTED: Short
JS
1.1

DOCUMENT_POSITION_FOLLOWING

val DOCUMENT_POSITION_FOLLOWING: Short
JS
1.1

DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

val DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: Short
JS
1.1

DOCUMENT_POSITION_PRECEDING

val DOCUMENT_POSITION_PRECEDING: Short
JS
1.1

DOCUMENT_TYPE_NODE

val DOCUMENT_TYPE_NODE: Short
JS
1.1

ELEMENT_NODE

val ELEMENT_NODE: Short
JS
1.1

ENTITY_NODE

val ENTITY_NODE: Short
JS
1.1

ENTITY_REFERENCE_NODE

val ENTITY_REFERENCE_NODE: Short
JS
1.1

NOTATION_NODE

val NOTATION_NODE: Short
JS
1.1

PROCESSING_INSTRUCTION_NODE

val PROCESSING_INSTRUCTION_NODE: Short
JS
1.1

TEXT_NODE

val TEXT_NODE: Short