Image

open class Image(width: Int, height: Int) : HTMLImageElement, JsAny

Exposes the JavaScript Image to Kotlin

Constructors

Link copied to clipboard
constructor(width: Int, height: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open var accessKey: String
Link copied to clipboard
Link copied to clipboard
open var align: String
Link copied to clipboard
open var alt: String
Link copied to clipboard
open override val assignedSlot: HTMLSlotElement?
Link copied to clipboard
Link copied to clipboard
open val baseURI: String
Link copied to clipboard
open var border: String
Link copied to clipboard
open override val childElementCount: Int
Link copied to clipboard
Link copied to clipboard
open override val children: HTMLCollection
Link copied to clipboard
Link copied to clipboard
open var className: String
Link copied to clipboard
open val clientHeight: Int
Link copied to clipboard
open val clientLeft: Int
Link copied to clipboard
open val clientTop: Int
Link copied to clipboard
open val clientWidth: Int
Link copied to clipboard
open val complete: Boolean
Link copied to clipboard
open override var contentEditable: String
Link copied to clipboard
Link copied to clipboard
open var crossOrigin: String?
Link copied to clipboard
open val currentSrc: String
Link copied to clipboard
Link copied to clipboard
open var dir: String
Link copied to clipboard
open var draggable: Boolean
Link copied to clipboard
Link copied to clipboard
open val firstChild: Node?
Link copied to clipboard
open override val firstElementChild: Element?
Link copied to clipboard
open var height: Int
Link copied to clipboard
open var hidden: Boolean
Link copied to clipboard
open var hspace: Int
Link copied to clipboard
open var id: String
Link copied to clipboard
open var innerHTML: String
Link copied to clipboard
open var innerText: String
Link copied to clipboard
Link copied to clipboard
open override val isContentEditable: Boolean
Link copied to clipboard
open var isMap: Boolean
Link copied to clipboard
open var lang: String
Link copied to clipboard
open val lastChild: Node?
Link copied to clipboard
open override val lastElementChild: Element?
Link copied to clipboard
open val localName: String
Link copied to clipboard
open var longDesc: String
Link copied to clipboard
open var lowsrc: String
Link copied to clipboard
open var name: String
Link copied to clipboard
open val namespaceURI: String?
Link copied to clipboard
open val naturalHeight: Int
Link copied to clipboard
open val naturalWidth: Int
Link copied to clipboard
open override val nextElementSibling: Element?
Link copied to clipboard
open val nextSibling: Node?
Link copied to clipboard
open val nodeName: String
Link copied to clipboard
open val nodeType: Short
Link copied to clipboard
open var nodeValue: String?
Link copied to clipboard
open val offsetHeight: Int
Link copied to clipboard
open val offsetLeft: Int
Link copied to clipboard
Link copied to clipboard
open val offsetTop: Int
Link copied to clipboard
open val offsetWidth: Int
Link copied to clipboard
open override var onabort: (Event) -> Unit?
Link copied to clipboard
open override var onblur: (FocusEvent) -> Unit?
Link copied to clipboard
open override var oncancel: (Event) -> Unit?
Link copied to clipboard
open override var oncanplay: (Event) -> Unit?
Link copied to clipboard
open override var oncanplaythrough: (Event) -> Unit?
Link copied to clipboard
open override var onchange: (Event) -> Unit?
Link copied to clipboard
open override var onclick: (MouseEvent) -> Unit?
Link copied to clipboard
open override var onclose: (Event) -> Unit?
Link copied to clipboard
open override var oncontextmenu: (MouseEvent) -> Unit?
Link copied to clipboard
open override var oncopy: (ClipboardEvent) -> Unit?
Link copied to clipboard
open override var oncuechange: (Event) -> Unit?
Link copied to clipboard
open override var oncut: (ClipboardEvent) -> Unit?
Link copied to clipboard
open override var ondblclick: (MouseEvent) -> Unit?
Link copied to clipboard
open override var ondrag: (DragEvent) -> Unit?
Link copied to clipboard
open override var ondragend: (DragEvent) -> Unit?
Link copied to clipboard
open override var ondragenter: (DragEvent) -> Unit?
Link copied to clipboard
open override var ondragexit: (DragEvent) -> Unit?
Link copied to clipboard
open override var ondragleave: (DragEvent) -> Unit?
Link copied to clipboard
open override var ondragover: (DragEvent) -> Unit?
Link copied to clipboard
open override var ondragstart: (DragEvent) -> Unit?
Link copied to clipboard
open override var ondrop: (DragEvent) -> Unit?
Link copied to clipboard
open override var ondurationchange: (Event) -> Unit?
Link copied to clipboard
open override var onemptied: (Event) -> Unit?
Link copied to clipboard
open override var onended: (Event) -> Unit?
Link copied to clipboard
open override var onerror: (JsAny?, String, Int, Int, JsAny?) -> JsAny??
Link copied to clipboard
open override var onfocus: (FocusEvent) -> Unit?
Link copied to clipboard
open override var ongotpointercapture: (PointerEvent) -> Unit?
Link copied to clipboard
open override var oninput: (InputEvent) -> Unit?
Link copied to clipboard
open override var oninvalid: (Event) -> Unit?
Link copied to clipboard
open override var onkeydown: (KeyboardEvent) -> Unit?
Link copied to clipboard
open override var onkeypress: (KeyboardEvent) -> Unit?
Link copied to clipboard
open override var onkeyup: (KeyboardEvent) -> Unit?
Link copied to clipboard
open override var onload: (Event) -> Unit?
Link copied to clipboard
open override var onloadeddata: (Event) -> Unit?
Link copied to clipboard
open override var onloadedmetadata: (Event) -> Unit?
Link copied to clipboard
open override var onloadend: (Event) -> Unit?
Link copied to clipboard
open override var onloadstart: (ProgressEvent) -> Unit?
Link copied to clipboard
open override var onlostpointercapture: (PointerEvent) -> Unit?
Link copied to clipboard
open override var onmousedown: (MouseEvent) -> Unit?
Link copied to clipboard
open override var onmouseenter: (MouseEvent) -> Unit?
Link copied to clipboard
open override var onmouseleave: (MouseEvent) -> Unit?
Link copied to clipboard
open override var onmousemove: (MouseEvent) -> Unit?
Link copied to clipboard
open override var onmouseout: (MouseEvent) -> Unit?
Link copied to clipboard
open override var onmouseover: (MouseEvent) -> Unit?
Link copied to clipboard
open override var onmouseup: (MouseEvent) -> Unit?
Link copied to clipboard
open override var onpaste: (ClipboardEvent) -> Unit?
Link copied to clipboard
open override var onpause: (Event) -> Unit?
Link copied to clipboard
open override var onplay: (Event) -> Unit?
Link copied to clipboard
open override var onplaying: (Event) -> Unit?
Link copied to clipboard
open override var onpointercancel: (PointerEvent) -> Unit?
Link copied to clipboard
open override var onpointerdown: (PointerEvent) -> Unit?
Link copied to clipboard
open override var onpointerenter: (PointerEvent) -> Unit?
Link copied to clipboard
open override var onpointerleave: (PointerEvent) -> Unit?
Link copied to clipboard
open override var onpointermove: (PointerEvent) -> Unit?
Link copied to clipboard
open override var onpointerout: (PointerEvent) -> Unit?
Link copied to clipboard
open override var onpointerover: (PointerEvent) -> Unit?
Link copied to clipboard
open override var onpointerup: (PointerEvent) -> Unit?
Link copied to clipboard
open override var onprogress: (ProgressEvent) -> Unit?
Link copied to clipboard
open override var onratechange: (Event) -> Unit?
Link copied to clipboard
open override var onreset: (Event) -> Unit?
Link copied to clipboard
open override var onresize: (Event) -> Unit?
Link copied to clipboard
open override var onscroll: (Event) -> Unit?
Link copied to clipboard
open override var onseeked: (Event) -> Unit?
Link copied to clipboard
open override var onseeking: (Event) -> Unit?
Link copied to clipboard
open override var onselect: (Event) -> Unit?
Link copied to clipboard
open override var onshow: (Event) -> Unit?
Link copied to clipboard
open override var onstalled: (Event) -> Unit?
Link copied to clipboard
open override var onsubmit: (Event) -> Unit?
Link copied to clipboard
open override var onsuspend: (Event) -> Unit?
Link copied to clipboard
open override var ontimeupdate: (Event) -> Unit?
Link copied to clipboard
open override var ontoggle: (Event) -> Unit?
Link copied to clipboard
open override var onvolumechange: (Event) -> Unit?
Link copied to clipboard
open override var onwaiting: (Event) -> Unit?
Link copied to clipboard
open override var onwheel: (WheelEvent) -> Unit?
Link copied to clipboard
open var outerHTML: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val parentNode: Node?
Link copied to clipboard
open val prefix: String?
Link copied to clipboard
open override val previousElementSibling: Element?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val scrollHeight: Int
Link copied to clipboard
open var scrollLeft: Double
Link copied to clipboard
open var scrollTop: Double
Link copied to clipboard
open val scrollWidth: Int
Link copied to clipboard
Link copied to clipboard
open var sizes: String
Link copied to clipboard
open var slot: String
Link copied to clipboard
Link copied to clipboard
open var src: String
Link copied to clipboard
open var srcset: String
Link copied to clipboard
open override val style: CSSStyleDeclaration
Link copied to clipboard
open var tabIndex: Int
Link copied to clipboard
open val tagName: String
Link copied to clipboard
open var textContent: String?
Link copied to clipboard
open var title: String
Link copied to clipboard
open var translate: Boolean
Link copied to clipboard
open var useMap: String
Link copied to clipboard
open var vspace: Int
Link copied to clipboard
open var width: Int
Link copied to clipboard
open val x: Int
Link copied to clipboard
open val y: Int

Functions

Link copied to clipboard
fun addEventListener(type: String, callback: (Event) -> Unit?)
fun addEventListener(type: String, callback: EventListener?)
fun addEventListener(type: String, callback: (Event) -> Unit?, options: Boolean)
fun addEventListener(type: String, callback: (Event) -> Unit?, options: AddEventListenerOptions)
fun addEventListener(type: String, callback: EventListener?, options: Boolean)
Link copied to clipboard
open override fun after(vararg nodes: String)
open override fun after(vararg nodes: Node)
Link copied to clipboard
open override fun append(vararg nodes: String)
open override fun append(vararg nodes: Node)
Link copied to clipboard
fun appendChild(node: Node): Node
Link copied to clipboard

Creates text node and append it to the element.

Link copied to clipboard
Link copied to clipboard
open override fun before(vararg nodes: String)
open override fun before(vararg nodes: Node)
Link copied to clipboard
fun blur()
Link copied to clipboard
fun Node.clear()

Removes all the children from this node.

Link copied to clipboard
fun click()
Link copied to clipboard
fun cloneNode(deep: Boolean): Node
Link copied to clipboard
fun closest(selectors: String): Element?
Link copied to clipboard
Link copied to clipboard
fun contains(other: Node?): Boolean
Link copied to clipboard
open override fun convertPointFromNode(point: DOMPointInit, from: Document, options: ConvertCoordinateOptions): DOMPoint
open override fun convertPointFromNode(point: DOMPointInit, from: Element, options: ConvertCoordinateOptions): DOMPoint
open override fun convertPointFromNode(point: DOMPointInit, from: Text, options: ConvertCoordinateOptions): DOMPoint
Link copied to clipboard
open override fun convertQuadFromNode(quad: JsAny?, from: Document, options: ConvertCoordinateOptions): DOMQuad
open override fun convertQuadFromNode(quad: JsAny?, from: Element, options: ConvertCoordinateOptions): DOMQuad
open override fun convertQuadFromNode(quad: JsAny?, from: Text, options: ConvertCoordinateOptions): DOMQuad
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun focus()
Link copied to clipboard
Link copied to clipboard
fun getAttribute(qualifiedName: String): String?
Link copied to clipboard
Link copied to clipboard
fun getAttributeNode(qualifiedName: String): Attr?
Link copied to clipboard
fun getAttributeNodeNS(namespace: String?, localName: String): Attr?
Link copied to clipboard
fun getAttributeNS(namespace: String?, localName: String): String?
Link copied to clipboard
Link copied to clipboard
open override fun getBoxQuads(options: BoxQuadOptions): JsArray<DOMQuad>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getElementsByTagNameNS(namespace: String?, localName: String): HTMLCollection
Link copied to clipboard
Link copied to clipboard
fun hasAttribute(qualifiedName: String): Boolean
Link copied to clipboard
fun hasAttributeNS(namespace: String?, localName: String): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun hasPointerCapture(pointerId: Int): Boolean
Link copied to clipboard
Link copied to clipboard
fun insertAdjacentHTML(position: String, text: String)
Link copied to clipboard
fun insertAdjacentText(where: String, data: String)
Link copied to clipboard
fun insertBefore(node: Node, child: Node?): Node
Link copied to clipboard
Link copied to clipboard
fun isEqualNode(otherNode: Node?): Boolean
Link copied to clipboard
fun isSameNode(otherNode: Node?): Boolean
Link copied to clipboard
Link copied to clipboard
fun lookupPrefix(namespace: String?): String?
Link copied to clipboard
fun matches(selectors: String): Boolean
Link copied to clipboard
fun normalize()
Link copied to clipboard
open override fun prepend(vararg nodes: String)
open override fun prepend(vararg nodes: Node)
Link copied to clipboard
open override fun querySelector(selectors: String): Element?
Link copied to clipboard
open override fun querySelectorAll(selectors: String): NodeList
Link copied to clipboard
fun releasePointerCapture(pointerId: Int)
Link copied to clipboard
open override fun remove()
Link copied to clipboard
fun removeAttribute(qualifiedName: String)
Link copied to clipboard
Link copied to clipboard
fun removeAttributeNS(namespace: String?, localName: String)
Link copied to clipboard
fun removeChild(child: Node): Node
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?)
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: Boolean)
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: EventListenerOptions)
fun removeEventListener(type: String, callback: EventListener?, options: Boolean)
Link copied to clipboard
fun replaceChild(node: Node, child: Node): Node
Link copied to clipboard
open override fun replaceWith(vararg nodes: String)
open override fun replaceWith(vararg nodes: Node)
Link copied to clipboard
Link copied to clipboard
fun scroll(options: ScrollToOptions)
fun scroll(x: Double, y: Double)
Link copied to clipboard
fun scrollBy(x: Double, y: Double)
Link copied to clipboard
Link copied to clipboard
fun scrollTo(x: Double, y: Double)
Link copied to clipboard
fun setAttribute(qualifiedName: String, value: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setAttributeNS(namespace: String?, qualifiedName: String, value: String)
Link copied to clipboard
fun setPointerCapture(pointerId: Int)
Link copied to clipboard