From 49c2f40f7d0cd79e9f426e480f9045708f1a01d0 Mon Sep 17 00:00:00 2001 From: Sergey Mashkov Date: Fri, 10 Mar 2017 18:29:53 +0300 Subject: [PATCH] KT-16572 Add links to Mozilla Developer Network to kdocs of classes that we generate from IDL regenerate --- .../src/generated/org.khronos.webgl.kt | 69 +++ .../src/generated/org.w3c.dom.css.kt | 39 ++ .../src/generated/org.w3c.dom.events.kt | 30 ++ js/js.libraries/src/generated/org.w3c.dom.kt | 501 ++++++++++++++++++ .../src/generated/org.w3c.dom.parsing.kt | 6 + .../src/generated/org.w3c.dom.svg.kt | 174 ++++++ .../src/generated/org.w3c.dom.url.kt | 6 + .../src/generated/org.w3c.fetch.kt | 12 + .../src/generated/org.w3c.files.kt | 15 + .../src/generated/org.w3c.notifications.kt | 6 + .../src/generated/org.w3c.performance.kt | 9 + .../src/generated/org.w3c.workers.kt | 42 ++ js/js.libraries/src/generated/org.w3c.xhr.kt | 12 + 13 files changed, 921 insertions(+) diff --git a/js/js.libraries/src/generated/org.khronos.webgl.kt b/js/js.libraries/src/generated/org.khronos.webgl.kt index b598494a384..0227afccf74 100644 --- a/js/js.libraries/src/generated/org.khronos.webgl.kt +++ b/js/js.libraries/src/generated/org.khronos.webgl.kt @@ -68,33 +68,60 @@ public inline fun WebGLContextAttributes(alpha: Boolean? = true, depth: Boolean? public external abstract class WebGLObject { } +/** + * Exposes the JavaScript [WebGLBuffer](https://developer.mozilla.org/en/docs/Web/API/WebGLBuffer) to Kotlin + */ public external abstract class WebGLBuffer : WebGLObject { } +/** + * Exposes the JavaScript [WebGLFramebuffer](https://developer.mozilla.org/en/docs/Web/API/WebGLFramebuffer) to Kotlin + */ public external abstract class WebGLFramebuffer : WebGLObject { } +/** + * Exposes the JavaScript [WebGLProgram](https://developer.mozilla.org/en/docs/Web/API/WebGLProgram) to Kotlin + */ public external abstract class WebGLProgram : WebGLObject { } +/** + * Exposes the JavaScript [WebGLRenderbuffer](https://developer.mozilla.org/en/docs/Web/API/WebGLRenderbuffer) to Kotlin + */ public external abstract class WebGLRenderbuffer : WebGLObject { } +/** + * Exposes the JavaScript [WebGLShader](https://developer.mozilla.org/en/docs/Web/API/WebGLShader) to Kotlin + */ public external abstract class WebGLShader : WebGLObject { } +/** + * Exposes the JavaScript [WebGLTexture](https://developer.mozilla.org/en/docs/Web/API/WebGLTexture) to Kotlin + */ public external abstract class WebGLTexture : WebGLObject { } +/** + * Exposes the JavaScript [WebGLUniformLocation](https://developer.mozilla.org/en/docs/Web/API/WebGLUniformLocation) to Kotlin + */ public external abstract class WebGLUniformLocation { } +/** + * Exposes the JavaScript [WebGLActiveInfo](https://developer.mozilla.org/en/docs/Web/API/WebGLActiveInfo) to Kotlin + */ public external abstract class WebGLActiveInfo { open val size: Int open val type: Int open val name: String } +/** + * Exposes the JavaScript [WebGLShaderPrecisionFormat](https://developer.mozilla.org/en/docs/Web/API/WebGLShaderPrecisionFormat) to Kotlin + */ public external abstract class WebGLShaderPrecisionFormat { open val rangeMin: Int open val rangeMax: Int @@ -557,6 +584,9 @@ public external interface WebGLRenderingContextBase { } } +/** + * Exposes the JavaScript [WebGLRenderingContext](https://developer.mozilla.org/en/docs/Web/API/WebGLRenderingContext) to Kotlin + */ public external abstract class WebGLRenderingContext : WebGLRenderingContextBase, RenderingContext { companion object { @@ -860,6 +890,9 @@ public external abstract class WebGLRenderingContext : WebGLRenderingContextBase } } +/** + * Exposes the JavaScript [WebGLContextEvent](https://developer.mozilla.org/en/docs/Web/API/WebGLContextEvent) to Kotlin + */ public external open class WebGLContextEvent(type: String, eventInit: WebGLContextEventInit = definedExternally) : Event { open val statusMessage: String } @@ -882,6 +915,9 @@ public inline fun WebGLContextEventInit(statusMessage: String? = "", bubbles: Bo return o } +/** + * Exposes the JavaScript [ArrayBuffer](https://developer.mozilla.org/en/docs/Web/API/ArrayBuffer) to Kotlin + */ public external open class ArrayBuffer(length: Int) : BufferDataSource { open val byteLength: Int fun slice(begin: Int, end: Int = definedExternally): ArrayBuffer @@ -891,12 +927,18 @@ public external open class ArrayBuffer(length: Int) : BufferDataSource { } } +/** + * Exposes the JavaScript [ArrayBufferView](https://developer.mozilla.org/en/docs/Web/API/ArrayBufferView) to Kotlin + */ public external interface ArrayBufferView : BufferDataSource { val buffer: ArrayBuffer val byteOffset: Int val byteLength: Int } +/** + * Exposes the JavaScript [Int8Array](https://developer.mozilla.org/en/docs/Web/API/Int8Array) to Kotlin + */ public external open class Int8Array : ArrayBufferView { constructor(length: Int) constructor(array: Int8Array) @@ -917,6 +959,9 @@ public external open class Int8Array : ArrayBufferView { @kotlin.internal.InlineOnly inline operator fun Int8Array.get(index: Int): Byte = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun Int8Array.set(index: Int, value: Byte): Unit { asDynamic()[index] = value; } +/** + * Exposes the JavaScript [Uint8Array](https://developer.mozilla.org/en/docs/Web/API/Uint8Array) to Kotlin + */ public external open class Uint8Array : ArrayBufferView { constructor(length: Int) constructor(array: Uint8Array) @@ -937,6 +982,9 @@ public external open class Uint8Array : ArrayBufferView { @kotlin.internal.InlineOnly inline operator fun Uint8Array.get(index: Int): Byte = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun Uint8Array.set(index: Int, value: Byte): Unit { asDynamic()[index] = value; } +/** + * Exposes the JavaScript [Uint8ClampedArray](https://developer.mozilla.org/en/docs/Web/API/Uint8ClampedArray) to Kotlin + */ public external open class Uint8ClampedArray : ArrayBufferView { constructor(length: Int) constructor(array: Uint8ClampedArray) @@ -957,6 +1005,9 @@ public external open class Uint8ClampedArray : ArrayBufferView { @kotlin.internal.InlineOnly inline operator fun Uint8ClampedArray.get(index: Int): Byte = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun Uint8ClampedArray.set(index: Int, value: Byte): Unit { asDynamic()[index] = value; } +/** + * Exposes the JavaScript [Int16Array](https://developer.mozilla.org/en/docs/Web/API/Int16Array) to Kotlin + */ public external open class Int16Array : ArrayBufferView { constructor(length: Int) constructor(array: Int16Array) @@ -977,6 +1028,9 @@ public external open class Int16Array : ArrayBufferView { @kotlin.internal.InlineOnly inline operator fun Int16Array.get(index: Int): Short = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun Int16Array.set(index: Int, value: Short): Unit { asDynamic()[index] = value; } +/** + * Exposes the JavaScript [Uint16Array](https://developer.mozilla.org/en/docs/Web/API/Uint16Array) to Kotlin + */ public external open class Uint16Array : ArrayBufferView { constructor(length: Int) constructor(array: Uint16Array) @@ -997,6 +1051,9 @@ public external open class Uint16Array : ArrayBufferView { @kotlin.internal.InlineOnly inline operator fun Uint16Array.get(index: Int): Short = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun Uint16Array.set(index: Int, value: Short): Unit { asDynamic()[index] = value; } +/** + * Exposes the JavaScript [Int32Array](https://developer.mozilla.org/en/docs/Web/API/Int32Array) to Kotlin + */ public external open class Int32Array : ArrayBufferView { constructor(length: Int) constructor(array: Int32Array) @@ -1017,6 +1074,9 @@ public external open class Int32Array : ArrayBufferView { @kotlin.internal.InlineOnly inline operator fun Int32Array.get(index: Int): Int = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun Int32Array.set(index: Int, value: Int): Unit { asDynamic()[index] = value; } +/** + * Exposes the JavaScript [Uint32Array](https://developer.mozilla.org/en/docs/Web/API/Uint32Array) to Kotlin + */ public external open class Uint32Array : ArrayBufferView { constructor(length: Int) constructor(array: Uint32Array) @@ -1037,6 +1097,9 @@ public external open class Uint32Array : ArrayBufferView { @kotlin.internal.InlineOnly inline operator fun Uint32Array.get(index: Int): Int = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun Uint32Array.set(index: Int, value: Int): Unit { asDynamic()[index] = value; } +/** + * Exposes the JavaScript [Float32Array](https://developer.mozilla.org/en/docs/Web/API/Float32Array) to Kotlin + */ public external open class Float32Array : ArrayBufferView { constructor(length: Int) constructor(array: Float32Array) @@ -1057,6 +1120,9 @@ public external open class Float32Array : ArrayBufferView { @kotlin.internal.InlineOnly inline operator fun Float32Array.get(index: Int): Float = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun Float32Array.set(index: Int, value: Float): Unit { asDynamic()[index] = value; } +/** + * Exposes the JavaScript [Float64Array](https://developer.mozilla.org/en/docs/Web/API/Float64Array) to Kotlin + */ public external open class Float64Array : ArrayBufferView { constructor(length: Int) constructor(array: Float64Array) @@ -1077,6 +1143,9 @@ public external open class Float64Array : ArrayBufferView { @kotlin.internal.InlineOnly inline operator fun Float64Array.get(index: Int): Double = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun Float64Array.set(index: Int, value: Double): Unit { asDynamic()[index] = value; } +/** + * Exposes the JavaScript [DataView](https://developer.mozilla.org/en/docs/Web/API/DataView) to Kotlin + */ public external open class DataView(buffer: ArrayBuffer, byteOffset: Int = definedExternally, byteLength: Int = definedExternally) : ArrayBufferView { override val buffer: ArrayBuffer override val byteOffset: Int diff --git a/js/js.libraries/src/generated/org.w3c.dom.css.kt b/js/js.libraries/src/generated/org.w3c.dom.css.kt index 15412761466..01d343d3578 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.css.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.css.kt @@ -22,6 +22,9 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* +/** + * Exposes the JavaScript [CSSStyleDeclaration](https://developer.mozilla.org/en/docs/Web/API/CSSStyleDeclaration) to Kotlin + */ public external abstract class CSSStyleDeclaration : ItemArrayLike { open var cssText: String override val length: Int @@ -272,6 +275,9 @@ public external abstract class MediaList : ItemArrayLike { } @kotlin.internal.InlineOnly inline operator fun MediaList.get(index: Int): String? = asDynamic()[index] +/** + * Exposes the JavaScript [StyleSheet](https://developer.mozilla.org/en/docs/Web/API/StyleSheet) to Kotlin + */ public external abstract class StyleSheet { open val type: String open val href: String? @@ -282,6 +288,9 @@ public external abstract class StyleSheet { open var disabled: Boolean } +/** + * Exposes the JavaScript [CSSStyleSheet](https://developer.mozilla.org/en/docs/Web/API/CSSStyleSheet) to Kotlin + */ public external abstract class CSSStyleSheet : StyleSheet { open val ownerRule: CSSRule? open val cssRules: CSSRuleList @@ -289,22 +298,34 @@ public external abstract class CSSStyleSheet : StyleSheet { fun deleteRule(index: Int): Unit } +/** + * Exposes the JavaScript [StyleSheetList](https://developer.mozilla.org/en/docs/Web/API/StyleSheetList) to Kotlin + */ public external abstract class StyleSheetList : ItemArrayLike { override val length: Int override fun item(index: Int): StyleSheet? } @kotlin.internal.InlineOnly inline operator fun StyleSheetList.get(index: Int): StyleSheet? = asDynamic()[index] +/** + * Exposes the JavaScript [LinkStyle](https://developer.mozilla.org/en/docs/Web/API/LinkStyle) to Kotlin + */ public external interface LinkStyle { val sheet: StyleSheet? } +/** + * Exposes the JavaScript [CSSRuleList](https://developer.mozilla.org/en/docs/Web/API/CSSRuleList) to Kotlin + */ public external abstract class CSSRuleList : ItemArrayLike { override val length: Int override fun item(index: Int): CSSRule? } @kotlin.internal.InlineOnly inline operator fun CSSRuleList.get(index: Int): CSSRule? = asDynamic()[index] +/** + * Exposes the JavaScript [CSSRule](https://developer.mozilla.org/en/docs/Web/API/CSSRule) to Kotlin + */ public external abstract class CSSRule { open val type: Short open var cssText: String @@ -323,6 +344,9 @@ public external abstract class CSSRule { } } +/** + * Exposes the JavaScript [CSSStyleRule](https://developer.mozilla.org/en/docs/Web/API/CSSStyleRule) to Kotlin + */ public external abstract class CSSStyleRule : CSSRule { open var selectorText: String open val style: CSSStyleDeclaration @@ -334,16 +358,25 @@ public external abstract class CSSImportRule : CSSRule { open val styleSheet: CSSStyleSheet } +/** + * Exposes the JavaScript [CSSGroupingRule](https://developer.mozilla.org/en/docs/Web/API/CSSGroupingRule) to Kotlin + */ public external abstract class CSSGroupingRule : CSSRule { open val cssRules: CSSRuleList fun insertRule(rule: String, index: Int): Int fun deleteRule(index: Int): Unit } +/** + * Exposes the JavaScript [CSSMediaRule](https://developer.mozilla.org/en/docs/Web/API/CSSMediaRule) to Kotlin + */ public external abstract class CSSMediaRule : CSSGroupingRule { open val media: MediaList } +/** + * Exposes the JavaScript [CSSPageRule](https://developer.mozilla.org/en/docs/Web/API/CSSPageRule) to Kotlin + */ public external abstract class CSSPageRule : CSSGroupingRule { open var selectorText: String open val style: CSSStyleDeclaration @@ -354,6 +387,9 @@ public external abstract class CSSMarginRule : CSSRule { open val style: CSSStyleDeclaration } +/** + * Exposes the JavaScript [CSSNamespaceRule](https://developer.mozilla.org/en/docs/Web/API/CSSNamespaceRule) to Kotlin + */ public external abstract class CSSNamespaceRule : CSSRule { open val namespaceURI: String open val prefix: String @@ -363,6 +399,9 @@ public external interface ElementCSSInlineStyle { val style: CSSStyleDeclaration } +/** + * Exposes the JavaScript [CSS](https://developer.mozilla.org/en/docs/Web/API/CSS) to Kotlin + */ public external abstract class CSS { companion object { diff --git a/js/js.libraries/src/generated/org.w3c.dom.events.kt b/js/js.libraries/src/generated/org.w3c.dom.events.kt index 82f55adc628..7aef44e7a45 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.events.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.events.kt @@ -22,6 +22,9 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* +/** + * Exposes the JavaScript [UIEvent](https://developer.mozilla.org/en/docs/Web/API/UIEvent) to Kotlin + */ public external open class UIEvent(type: String, eventInitDict: UIEventInit = definedExternally) : Event { open val view: Window? open val detail: Int @@ -49,6 +52,9 @@ public inline fun UIEventInit(view: Window? = null, detail: Int? = 0, bubbles: B return o } +/** + * Exposes the JavaScript [FocusEvent](https://developer.mozilla.org/en/docs/Web/API/FocusEvent) to Kotlin + */ public external open class FocusEvent(type: String, eventInitDict: FocusEventInit = definedExternally) : UIEvent { open val relatedTarget: EventTarget? } @@ -73,6 +79,9 @@ public inline fun FocusEventInit(relatedTarget: EventTarget? = null, view: Windo return o } +/** + * Exposes the JavaScript [MouseEvent](https://developer.mozilla.org/en/docs/Web/API/MouseEvent) to Kotlin + */ public external open class MouseEvent(type: String, eventInitDict: MouseEventInit = definedExternally) : UIEvent, UnionElementOrMouseEvent { open val region: String? open val screenX: Int @@ -223,6 +232,9 @@ public inline fun EventModifierInit(ctrlKey: Boolean? = false, shiftKey: Boolean return o } +/** + * Exposes the JavaScript [WheelEvent](https://developer.mozilla.org/en/docs/Web/API/WheelEvent) to Kotlin + */ public external open class WheelEvent(type: String, eventInitDict: WheelEventInit = definedExternally) : MouseEvent { open val deltaX: Double open val deltaY: Double @@ -289,6 +301,9 @@ public inline fun WheelEventInit(deltaX: Double? = 0.0, deltaY: Double? = 0.0, d return o } +/** + * Exposes the JavaScript [InputEvent](https://developer.mozilla.org/en/docs/Web/API/InputEvent) to Kotlin + */ public external open class InputEvent(type: String, eventInitDict: InputEventInit = definedExternally) : UIEvent { open val data: String open val isComposing: Boolean @@ -318,6 +333,9 @@ public inline fun InputEventInit(data: String? = "", isComposing: Boolean? = fal return o } +/** + * Exposes the JavaScript [KeyboardEvent](https://developer.mozilla.org/en/docs/Web/API/KeyboardEvent) to Kotlin + */ public external open class KeyboardEvent(type: String, eventInitDict: KeyboardEventInit = definedExternally) : UIEvent { open val key: String open val code: String @@ -391,6 +409,9 @@ public inline fun KeyboardEventInit(key: String? = "", code: String? = "", locat return o } +/** + * Exposes the JavaScript [CompositionEvent](https://developer.mozilla.org/en/docs/Web/API/CompositionEvent) to Kotlin + */ public external open class CompositionEvent(type: String, eventInitDict: CompositionEventInit = definedExternally) : UIEvent { open val data: String } @@ -415,6 +436,9 @@ public inline fun CompositionEventInit(data: String? = "", view: Window? = null, return o } +/** + * Exposes the JavaScript [Event](https://developer.mozilla.org/en/docs/Web/API/Event) to Kotlin + */ public external open class Event(type: String, eventInitDict: EventInit = definedExternally) { open val type: String open val target: EventTarget? @@ -440,6 +464,9 @@ public external open class Event(type: String, eventInitDict: EventInit = define } } +/** + * Exposes the JavaScript [EventTarget](https://developer.mozilla.org/en/docs/Web/API/EventTarget) to Kotlin + */ public external abstract class EventTarget { fun addEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally): Unit fun addEventListener(type: String, callback: ((Event) -> Unit)?, options: dynamic = definedExternally): Unit @@ -448,6 +475,9 @@ public external abstract class EventTarget { fun dispatchEvent(event: Event): Boolean } +/** + * Exposes the JavaScript [EventListener](https://developer.mozilla.org/en/docs/Web/API/EventListener) to Kotlin + */ public external interface EventListener { fun handleEvent(event: Event): Unit } diff --git a/js/js.libraries/src/generated/org.w3c.dom.kt b/js/js.libraries/src/generated/org.w3c.dom.kt index e5351b3182d..6681119e726 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.kt @@ -22,6 +22,9 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* +/** + * Exposes the JavaScript [Document](https://developer.mozilla.org/en/docs/Web/API/Document) to Kotlin + */ public external open class Document : Node, GlobalEventHandlers, DocumentAndElementEventHandlers, NonElementParentNode, DocumentOrShadowRoot, ParentNode, GeometryUtils { open val fullscreenEnabled: Boolean open val fullscreen: Boolean @@ -191,6 +194,9 @@ public external open class Document : Node, GlobalEventHandlers, DocumentAndElem } @kotlin.internal.InlineOnly inline operator fun Document.get(name: String): dynamic = asDynamic()[name] +/** + * Exposes the JavaScript [Window](https://developer.mozilla.org/en/docs/Web/API/Window) to Kotlin + */ public external abstract class Window : EventTarget, GlobalEventHandlers, WindowEventHandlers, WindowOrWorkerGlobalScope, WindowSessionStorage, WindowLocalStorage, GlobalPerformance, UnionMessagePortOrWindow { override val performance: Performance open val window: Window @@ -267,15 +273,24 @@ public external abstract class HTMLAllCollection { //@kotlin.internal.InlineOnly inline operator fun HTMLAllCollection.get(index: Int): Element? = asDynamic()[index] //@kotlin.internal.InlineOnly inline operator fun HTMLAllCollection.get(name: String): UnionElementOrHTMLCollection? = asDynamic()[name] +/** + * Exposes the JavaScript [HTMLFormControlsCollection](https://developer.mozilla.org/en/docs/Web/API/HTMLFormControlsCollection) to Kotlin + */ public external abstract class HTMLFormControlsCollection : HTMLCollection { // override fun namedItem(name: String): UnionElementOrRadioNodeList? } //@kotlin.internal.InlineOnly override inline operator fun HTMLFormControlsCollection.get(name: String): UnionElementOrRadioNodeList? = asDynamic()[name] +/** + * Exposes the JavaScript [RadioNodeList](https://developer.mozilla.org/en/docs/Web/API/RadioNodeList) to Kotlin + */ public external abstract class RadioNodeList : NodeList, UnionElementOrRadioNodeList { open var value: String } +/** + * Exposes the JavaScript [HTMLOptionsCollection](https://developer.mozilla.org/en/docs/Web/API/HTMLOptionsCollection) to Kotlin + */ public external abstract class HTMLOptionsCollection : HTMLCollection { override var length: Int open var selectedIndex: Int @@ -284,6 +299,9 @@ public external abstract class HTMLOptionsCollection : HTMLCollection { } @kotlin.internal.InlineOnly inline operator fun HTMLOptionsCollection.set(index: Int, option: HTMLOptionElement?): Unit { asDynamic()[index] = option; } +/** + * Exposes the JavaScript [HTMLElement](https://developer.mozilla.org/en/docs/Web/API/HTMLElement) to Kotlin + */ public external abstract class HTMLElement : Element, ElementCSSInlineStyle, GlobalEventHandlers, DocumentAndElementEventHandlers, ElementContentEditable { open var title: String open var lang: String @@ -310,30 +328,51 @@ public external abstract class HTMLElement : Element, ElementCSSInlineStyle, Glo fun forceSpellCheck(): Unit } +/** + * Exposes the JavaScript [HTMLUnknownElement](https://developer.mozilla.org/en/docs/Web/API/HTMLUnknownElement) to Kotlin + */ public external abstract class HTMLUnknownElement : HTMLElement { } +/** + * Exposes the JavaScript [DOMStringMap](https://developer.mozilla.org/en/docs/Web/API/DOMStringMap) to Kotlin + */ public external abstract class DOMStringMap { } @kotlin.internal.InlineOnly inline operator fun DOMStringMap.get(name: String): String? = asDynamic()[name] @kotlin.internal.InlineOnly inline operator fun DOMStringMap.set(name: String, value: String): Unit { asDynamic()[name] = value; } +/** + * Exposes the JavaScript [HTMLHtmlElement](https://developer.mozilla.org/en/docs/Web/API/HTMLHtmlElement) to Kotlin + */ public external abstract class HTMLHtmlElement : HTMLElement { open var version: String } +/** + * Exposes the JavaScript [HTMLHeadElement](https://developer.mozilla.org/en/docs/Web/API/HTMLHeadElement) to Kotlin + */ public external abstract class HTMLHeadElement : HTMLElement { } +/** + * Exposes the JavaScript [HTMLTitleElement](https://developer.mozilla.org/en/docs/Web/API/HTMLTitleElement) to Kotlin + */ public external abstract class HTMLTitleElement : HTMLElement { open var text: String } +/** + * Exposes the JavaScript [HTMLBaseElement](https://developer.mozilla.org/en/docs/Web/API/HTMLBaseElement) to Kotlin + */ public external abstract class HTMLBaseElement : HTMLElement { open var href: String open var target: String } +/** + * Exposes the JavaScript [HTMLLinkElement](https://developer.mozilla.org/en/docs/Web/API/HTMLLinkElement) to Kotlin + */ public external abstract class HTMLLinkElement : HTMLElement, LinkStyle { open var scope: String open var workerType: WorkerType @@ -353,6 +392,9 @@ public external abstract class HTMLLinkElement : HTMLElement, LinkStyle { open var target: String } +/** + * Exposes the JavaScript [HTMLMetaElement](https://developer.mozilla.org/en/docs/Web/API/HTMLMetaElement) to Kotlin + */ public external abstract class HTMLMetaElement : HTMLElement { open var name: String open var httpEquiv: String @@ -360,12 +402,18 @@ public external abstract class HTMLMetaElement : HTMLElement { open var scheme: String } +/** + * Exposes the JavaScript [HTMLStyleElement](https://developer.mozilla.org/en/docs/Web/API/HTMLStyleElement) to Kotlin + */ public external abstract class HTMLStyleElement : HTMLElement, LinkStyle { open var media: String open var nonce: String open var type: String } +/** + * Exposes the JavaScript [HTMLBodyElement](https://developer.mozilla.org/en/docs/Web/API/HTMLBodyElement) to Kotlin + */ public external abstract class HTMLBodyElement : HTMLElement, WindowEventHandlers { open var text: String open var link: String @@ -375,14 +423,23 @@ public external abstract class HTMLBodyElement : HTMLElement, WindowEventHandler open var background: String } +/** + * Exposes the JavaScript [HTMLHeadingElement](https://developer.mozilla.org/en/docs/Web/API/HTMLHeadingElement) to Kotlin + */ public external abstract class HTMLHeadingElement : HTMLElement { open var align: String } +/** + * Exposes the JavaScript [HTMLParagraphElement](https://developer.mozilla.org/en/docs/Web/API/HTMLParagraphElement) to Kotlin + */ public external abstract class HTMLParagraphElement : HTMLElement { open var align: String } +/** + * Exposes the JavaScript [HTMLHRElement](https://developer.mozilla.org/en/docs/Web/API/HTMLHRElement) to Kotlin + */ public external abstract class HTMLHRElement : HTMLElement { open var align: String open var color: String @@ -391,14 +448,23 @@ public external abstract class HTMLHRElement : HTMLElement { open var width: String } +/** + * Exposes the JavaScript [HTMLPreElement](https://developer.mozilla.org/en/docs/Web/API/HTMLPreElement) to Kotlin + */ public external abstract class HTMLPreElement : HTMLElement { open var width: Int } +/** + * Exposes the JavaScript [HTMLQuoteElement](https://developer.mozilla.org/en/docs/Web/API/HTMLQuoteElement) to Kotlin + */ public external abstract class HTMLQuoteElement : HTMLElement { open var cite: String } +/** + * Exposes the JavaScript [HTMLOListElement](https://developer.mozilla.org/en/docs/Web/API/HTMLOListElement) to Kotlin + */ public external abstract class HTMLOListElement : HTMLElement { open var reversed: Boolean open var start: Int @@ -406,24 +472,39 @@ public external abstract class HTMLOListElement : HTMLElement { open var compact: Boolean } +/** + * Exposes the JavaScript [HTMLUListElement](https://developer.mozilla.org/en/docs/Web/API/HTMLUListElement) to Kotlin + */ public external abstract class HTMLUListElement : HTMLElement { open var compact: Boolean open var type: String } +/** + * Exposes the JavaScript [HTMLLIElement](https://developer.mozilla.org/en/docs/Web/API/HTMLLIElement) to Kotlin + */ public external abstract class HTMLLIElement : HTMLElement { open var value: Int open var type: String } +/** + * Exposes the JavaScript [HTMLDListElement](https://developer.mozilla.org/en/docs/Web/API/HTMLDListElement) to Kotlin + */ public external abstract class HTMLDListElement : HTMLElement { open var compact: Boolean } +/** + * Exposes the JavaScript [HTMLDivElement](https://developer.mozilla.org/en/docs/Web/API/HTMLDivElement) to Kotlin + */ public external abstract class HTMLDivElement : HTMLElement { open var align: String } +/** + * Exposes the JavaScript [HTMLAnchorElement](https://developer.mozilla.org/en/docs/Web/API/HTMLAnchorElement) to Kotlin + */ public external abstract class HTMLAnchorElement : HTMLElement, HTMLHyperlinkElementUtils { open var target: String open var download: String @@ -441,21 +522,36 @@ public external abstract class HTMLAnchorElement : HTMLElement, HTMLHyperlinkEle open var shape: String } +/** + * Exposes the JavaScript [HTMLDataElement](https://developer.mozilla.org/en/docs/Web/API/HTMLDataElement) to Kotlin + */ public external abstract class HTMLDataElement : HTMLElement { open var value: String } +/** + * Exposes the JavaScript [HTMLTimeElement](https://developer.mozilla.org/en/docs/Web/API/HTMLTimeElement) to Kotlin + */ public external abstract class HTMLTimeElement : HTMLElement { open var dateTime: String } +/** + * Exposes the JavaScript [HTMLSpanElement](https://developer.mozilla.org/en/docs/Web/API/HTMLSpanElement) to Kotlin + */ public external abstract class HTMLSpanElement : HTMLElement { } +/** + * Exposes the JavaScript [HTMLBRElement](https://developer.mozilla.org/en/docs/Web/API/HTMLBRElement) to Kotlin + */ public external abstract class HTMLBRElement : HTMLElement { open var clear: String } +/** + * Exposes the JavaScript [HTMLHyperlinkElementUtils](https://developer.mozilla.org/en/docs/Web/API/HTMLHyperlinkElementUtils) to Kotlin + */ public external interface HTMLHyperlinkElementUtils { var href: String val origin: String @@ -470,14 +566,23 @@ public external interface HTMLHyperlinkElementUtils { var hash: String } +/** + * Exposes the JavaScript [HTMLModElement](https://developer.mozilla.org/en/docs/Web/API/HTMLModElement) to Kotlin + */ public external abstract class HTMLModElement : HTMLElement { open var cite: String open var dateTime: String } +/** + * Exposes the JavaScript [HTMLPictureElement](https://developer.mozilla.org/en/docs/Web/API/HTMLPictureElement) to Kotlin + */ public external abstract class HTMLPictureElement : HTMLElement { } +/** + * Exposes the JavaScript [HTMLSourceElement](https://developer.mozilla.org/en/docs/Web/API/HTMLSourceElement) to Kotlin + */ public external abstract class HTMLSourceElement : HTMLElement { open var src: String open var type: String @@ -486,6 +591,9 @@ public external abstract class HTMLSourceElement : HTMLElement { open var media: String } +/** + * Exposes the JavaScript [HTMLImageElement](https://developer.mozilla.org/en/docs/Web/API/HTMLImageElement) to Kotlin + */ public external abstract class HTMLImageElement : HTMLElement, TexImageSource, HTMLOrSVGImageElement { open var alt: String open var src: String @@ -512,6 +620,9 @@ public external abstract class HTMLImageElement : HTMLElement, TexImageSource, H open val y: Int } +/** + * Exposes the JavaScript [HTMLIFrameElement](https://developer.mozilla.org/en/docs/Web/API/HTMLIFrameElement) to Kotlin + */ public external abstract class HTMLIFrameElement : HTMLElement { open var src: String open var srcdoc: String @@ -533,6 +644,9 @@ public external abstract class HTMLIFrameElement : HTMLElement { fun getSVGDocument(): Document? } +/** + * Exposes the JavaScript [HTMLEmbedElement](https://developer.mozilla.org/en/docs/Web/API/HTMLEmbedElement) to Kotlin + */ public external abstract class HTMLEmbedElement : HTMLElement { open var src: String open var type: String @@ -543,6 +657,9 @@ public external abstract class HTMLEmbedElement : HTMLElement { fun getSVGDocument(): Document? } +/** + * Exposes the JavaScript [HTMLObjectElement](https://developer.mozilla.org/en/docs/Web/API/HTMLObjectElement) to Kotlin + */ public external abstract class HTMLObjectElement : HTMLElement { open var data: String open var type: String @@ -573,6 +690,9 @@ public external abstract class HTMLObjectElement : HTMLElement { fun setCustomValidity(error: String): Unit } +/** + * Exposes the JavaScript [HTMLParamElement](https://developer.mozilla.org/en/docs/Web/API/HTMLParamElement) to Kotlin + */ public external abstract class HTMLParamElement : HTMLElement { open var name: String open var value: String @@ -580,6 +700,9 @@ public external abstract class HTMLParamElement : HTMLElement { open var valueType: String } +/** + * Exposes the JavaScript [HTMLVideoElement](https://developer.mozilla.org/en/docs/Web/API/HTMLVideoElement) to Kotlin + */ public external abstract class HTMLVideoElement : HTMLMediaElement, TexImageSource { open var width: Int open var height: Int @@ -589,9 +712,15 @@ public external abstract class HTMLVideoElement : HTMLMediaElement, TexImageSour open var playsInline: Boolean } +/** + * Exposes the JavaScript [HTMLAudioElement](https://developer.mozilla.org/en/docs/Web/API/HTMLAudioElement) to Kotlin + */ public external abstract class HTMLAudioElement : HTMLMediaElement { } +/** + * Exposes the JavaScript [HTMLTrackElement](https://developer.mozilla.org/en/docs/Web/API/HTMLTrackElement) to Kotlin + */ public external abstract class HTMLTrackElement : HTMLElement { open var kind: String open var src: String @@ -609,6 +738,9 @@ public external abstract class HTMLTrackElement : HTMLElement { } } +/** + * Exposes the JavaScript [HTMLMediaElement](https://developer.mozilla.org/en/docs/Web/API/HTMLMediaElement) to Kotlin + */ public external abstract class HTMLMediaElement : HTMLElement { open val error: MediaError? open var src: String @@ -658,6 +790,9 @@ public external abstract class HTMLMediaElement : HTMLElement { } } +/** + * Exposes the JavaScript [MediaError](https://developer.mozilla.org/en/docs/Web/API/MediaError) to Kotlin + */ public external abstract class MediaError { open val code: Short @@ -713,6 +848,9 @@ public external abstract class TextTrackList : EventTarget { } @kotlin.internal.InlineOnly inline operator fun TextTrackList.get(index: Int): TextTrack? = asDynamic()[index] +/** + * Exposes the JavaScript [TextTrack](https://developer.mozilla.org/en/docs/Web/API/TextTrack) to Kotlin + */ public external abstract class TextTrack : EventTarget, UnionAudioTrackOrTextTrackOrVideoTrack { open val kind: TextTrackKind open val label: String @@ -743,6 +881,9 @@ public external abstract class TextTrackCue : EventTarget { open var onexit: ((Event) -> dynamic)? } +/** + * Exposes the JavaScript [TimeRanges](https://developer.mozilla.org/en/docs/Web/API/TimeRanges) to Kotlin + */ public external abstract class TimeRanges { open val length: Int fun start(index: Int): Double @@ -771,11 +912,17 @@ public inline fun TrackEventInit(track: UnionAudioTrackOrTextTrackOrVideoTrack? return o } +/** + * Exposes the JavaScript [HTMLMapElement](https://developer.mozilla.org/en/docs/Web/API/HTMLMapElement) to Kotlin + */ public external abstract class HTMLMapElement : HTMLElement { open var name: String open val areas: HTMLCollection } +/** + * Exposes the JavaScript [HTMLAreaElement](https://developer.mozilla.org/en/docs/Web/API/HTMLAreaElement) to Kotlin + */ public external abstract class HTMLAreaElement : HTMLElement, HTMLHyperlinkElementUtils { open var alt: String open var coords: String @@ -789,6 +936,9 @@ public external abstract class HTMLAreaElement : HTMLElement, HTMLHyperlinkEleme open var noHref: Boolean } +/** + * Exposes the JavaScript [HTMLTableElement](https://developer.mozilla.org/en/docs/Web/API/HTMLTableElement) to Kotlin + */ public external abstract class HTMLTableElement : HTMLElement { open var caption: HTMLTableCaptionElement? open var tHead: HTMLTableSectionElement? @@ -815,10 +965,16 @@ public external abstract class HTMLTableElement : HTMLElement { fun deleteRow(index: Int): Unit } +/** + * Exposes the JavaScript [HTMLTableCaptionElement](https://developer.mozilla.org/en/docs/Web/API/HTMLTableCaptionElement) to Kotlin + */ public external abstract class HTMLTableCaptionElement : HTMLElement { open var align: String } +/** + * Exposes the JavaScript [HTMLTableColElement](https://developer.mozilla.org/en/docs/Web/API/HTMLTableColElement) to Kotlin + */ public external abstract class HTMLTableColElement : HTMLElement { open var span: Int open var align: String @@ -828,6 +984,9 @@ public external abstract class HTMLTableColElement : HTMLElement { open var width: String } +/** + * Exposes the JavaScript [HTMLTableSectionElement](https://developer.mozilla.org/en/docs/Web/API/HTMLTableSectionElement) to Kotlin + */ public external abstract class HTMLTableSectionElement : HTMLElement { open val rows: HTMLCollection open var align: String @@ -838,6 +997,9 @@ public external abstract class HTMLTableSectionElement : HTMLElement { fun deleteRow(index: Int): Unit } +/** + * Exposes the JavaScript [HTMLTableRowElement](https://developer.mozilla.org/en/docs/Web/API/HTMLTableRowElement) to Kotlin + */ public external abstract class HTMLTableRowElement : HTMLElement { open val rowIndex: Int open val sectionRowIndex: Int @@ -851,6 +1013,9 @@ public external abstract class HTMLTableRowElement : HTMLElement { fun deleteCell(index: Int): Unit } +/** + * Exposes the JavaScript [HTMLTableCellElement](https://developer.mozilla.org/en/docs/Web/API/HTMLTableCellElement) to Kotlin + */ public external abstract class HTMLTableCellElement : HTMLElement { open var colSpan: Int open var rowSpan: Int @@ -869,6 +1034,9 @@ public external abstract class HTMLTableCellElement : HTMLElement { open var bgColor: String } +/** + * Exposes the JavaScript [HTMLFormElement](https://developer.mozilla.org/en/docs/Web/API/HTMLFormElement) to Kotlin + */ public external abstract class HTMLFormElement : HTMLElement { open var acceptCharset: String open var action: String @@ -889,12 +1057,18 @@ public external abstract class HTMLFormElement : HTMLElement { @kotlin.internal.InlineOnly inline operator fun HTMLFormElement.get(index: Int): Element? = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun HTMLFormElement.get(name: String): UnionElementOrRadioNodeList? = asDynamic()[name] +/** + * Exposes the JavaScript [HTMLLabelElement](https://developer.mozilla.org/en/docs/Web/API/HTMLLabelElement) to Kotlin + */ public external abstract class HTMLLabelElement : HTMLElement { open val form: HTMLFormElement? open var htmlFor: String open val control: HTMLElement? } +/** + * Exposes the JavaScript [HTMLInputElement](https://developer.mozilla.org/en/docs/Web/API/HTMLInputElement) to Kotlin + */ public external abstract class HTMLInputElement : HTMLElement { open var accept: String open var alt: String @@ -954,6 +1128,9 @@ public external abstract class HTMLInputElement : HTMLElement { fun setSelectionRange(start: Int, end: Int, direction: String = definedExternally): Unit } +/** + * Exposes the JavaScript [HTMLButtonElement](https://developer.mozilla.org/en/docs/Web/API/HTMLButtonElement) to Kotlin + */ public external abstract class HTMLButtonElement : HTMLElement { open var autofocus: Boolean open var disabled: Boolean @@ -976,6 +1153,9 @@ public external abstract class HTMLButtonElement : HTMLElement { fun setCustomValidity(error: String): Unit } +/** + * Exposes the JavaScript [HTMLSelectElement](https://developer.mozilla.org/en/docs/Web/API/HTMLSelectElement) to Kotlin + */ public external abstract class HTMLSelectElement : HTMLElement, ItemArrayLike { open var autocomplete: String open var autofocus: Boolean @@ -1006,15 +1186,24 @@ public external abstract class HTMLSelectElement : HTMLElement, ItemArrayLike @@ -1232,6 +1457,9 @@ public inline fun AssignedNodesOptions(flatten: Boolean? = false): AssignedNodes return o } +/** + * Exposes the JavaScript [HTMLCanvasElement](https://developer.mozilla.org/en/docs/Web/API/HTMLCanvasElement) to Kotlin + */ public external abstract class HTMLCanvasElement : HTMLElement, TexImageSource { open var width: Int open var height: Int @@ -1255,6 +1483,9 @@ public inline fun CanvasRenderingContext2DSettings(alpha: Boolean? = true): Canv return o } +/** + * Exposes the JavaScript [CanvasRenderingContext2D](https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D) to Kotlin + */ public external abstract class CanvasRenderingContext2D : CanvasState, CanvasTransform, CanvasCompositing, CanvasImageSmoothing, CanvasFillStrokeStyles, CanvasShadowStyles, CanvasFilters, CanvasRect, CanvasDrawPath, CanvasUserInterface, CanvasText, CanvasDrawImage, CanvasHitRegion, CanvasImageData, CanvasPathDrawingStyles, CanvasTextDrawingStyles, CanvasPath, RenderingContext { open val canvas: HTMLCanvasElement } @@ -1388,14 +1619,23 @@ public external interface CanvasPath { fun ellipse(x: Double, y: Double, radiusX: Double, radiusY: Double, rotation: Double, startAngle: Double, endAngle: Double, anticlockwise: Boolean = definedExternally): Unit } +/** + * Exposes the JavaScript [CanvasGradient](https://developer.mozilla.org/en/docs/Web/API/CanvasGradient) to Kotlin + */ public external abstract class CanvasGradient { fun addColorStop(offset: Double, color: String): Unit } +/** + * Exposes the JavaScript [CanvasPattern](https://developer.mozilla.org/en/docs/Web/API/CanvasPattern) to Kotlin + */ public external abstract class CanvasPattern { fun setTransform(transform: dynamic = definedExternally): Unit } +/** + * Exposes the JavaScript [TextMetrics](https://developer.mozilla.org/en/docs/Web/API/TextMetrics) to Kotlin + */ public external abstract class TextMetrics { open val width: Double open val actualBoundingBoxLeft: Double @@ -1454,6 +1694,9 @@ public inline fun HitRegionOptions(path: Path2D? = null, fillRule: CanvasFillRul return o } +/** + * Exposes the JavaScript [ImageData](https://developer.mozilla.org/en/docs/Web/API/ImageData) to Kotlin + */ public external open class ImageData : TexImageSource { constructor(sw: Int, sh: Int) constructor(data: Uint8ClampedArray, sw: Int, sh: Int = definedExternally) @@ -1462,6 +1705,9 @@ public external open class ImageData : TexImageSource { open val data: Uint8ClampedArray } +/** + * Exposes the JavaScript [Path2D](https://developer.mozilla.org/en/docs/Web/API/Path2D) to Kotlin + */ public external open class Path2D() : CanvasPath { constructor(path: Path2D) constructor(paths: Array, fillRule: CanvasFillRule = definedExternally) @@ -1479,10 +1725,16 @@ public external open class Path2D() : CanvasPath { override fun ellipse(x: Double, y: Double, radiusX: Double, radiusY: Double, rotation: Double, startAngle: Double, endAngle: Double, anticlockwise: Boolean /* = definedExternally */): Unit } +/** + * Exposes the JavaScript [Touch](https://developer.mozilla.org/en/docs/Web/API/Touch) to Kotlin + */ public external abstract class Touch { open val region: String? } +/** + * Exposes the JavaScript [ImageBitmapRenderingContext](https://developer.mozilla.org/en/docs/Web/API/ImageBitmapRenderingContext) to Kotlin + */ public external abstract class ImageBitmapRenderingContext { open val canvas: HTMLCanvasElement fun transferFromImageBitmap(bitmap: ImageBitmap?): Unit @@ -1503,6 +1755,9 @@ public inline fun ImageBitmapRenderingContextSettings(alpha: Boolean? = true): I return o } +/** + * Exposes the JavaScript [CustomElementRegistry](https://developer.mozilla.org/en/docs/Web/API/CustomElementRegistry) to Kotlin + */ public external abstract class CustomElementRegistry { fun define(name: String, constructor: () -> dynamic, options: ElementDefinitionOptions = definedExternally): Unit fun get(name: String): Any? @@ -1529,6 +1784,9 @@ public external interface ElementContentEditable { val isContentEditable: Boolean } +/** + * Exposes the JavaScript [DataTransfer](https://developer.mozilla.org/en/docs/Web/API/DataTransfer) to Kotlin + */ public external abstract class DataTransfer { open var dropEffect: String open var effectAllowed: String @@ -1541,6 +1799,9 @@ public external abstract class DataTransfer { fun clearData(format: String = definedExternally): Unit } +/** + * Exposes the JavaScript [DataTransferItemList](https://developer.mozilla.org/en/docs/Web/API/DataTransferItemList) to Kotlin + */ public external abstract class DataTransferItemList { open val length: Int fun add(data: String, type: String): DataTransferItem? @@ -1550,6 +1811,9 @@ public external abstract class DataTransferItemList { } @kotlin.internal.InlineOnly inline operator fun DataTransferItemList.get(index: Int): DataTransferItem? = asDynamic()[index] +/** + * Exposes the JavaScript [DataTransferItem](https://developer.mozilla.org/en/docs/Web/API/DataTransferItem) to Kotlin + */ public external abstract class DataTransferItem { open val kind: String open val type: String @@ -1557,6 +1821,9 @@ public external abstract class DataTransferItem { fun getAsFile(): File? } +/** + * Exposes the JavaScript [DragEvent](https://developer.mozilla.org/en/docs/Web/API/DragEvent) to Kotlin + */ public external open class DragEvent(type: String, eventInitDict: DragEventInit = definedExternally) : MouseEvent { open val dataTransfer: DataTransfer? } @@ -1606,6 +1873,9 @@ public external abstract class BarProp { open val visible: Boolean } +/** + * Exposes the JavaScript [History](https://developer.mozilla.org/en/docs/Web/API/History) to Kotlin + */ public external abstract class History { open val length: Int open var scrollRestoration: ScrollRestoration @@ -1617,6 +1887,9 @@ public external abstract class History { fun replaceState(data: Any?, title: String, url: String? = definedExternally): Unit } +/** + * Exposes the JavaScript [Location](https://developer.mozilla.org/en/docs/Web/API/Location) to Kotlin + */ public external abstract class Location { open var href: String open val origin: String @@ -1633,6 +1906,9 @@ public external abstract class Location { fun reload(): Unit } +/** + * Exposes the JavaScript [PopStateEvent](https://developer.mozilla.org/en/docs/Web/API/PopStateEvent) to Kotlin + */ public external open class PopStateEvent(type: String, eventInitDict: PopStateEventInit = definedExternally) : Event { open val state: Any? } @@ -1655,6 +1931,9 @@ public inline fun PopStateEventInit(state: Any? = null, bubbles: Boolean? = fals return o } +/** + * Exposes the JavaScript [HashChangeEvent](https://developer.mozilla.org/en/docs/Web/API/HashChangeEvent) to Kotlin + */ public external open class HashChangeEvent(type: String, eventInitDict: HashChangeEventInit = definedExternally) : Event { open val oldURL: String open val newURL: String @@ -1682,6 +1961,9 @@ public inline fun HashChangeEventInit(oldURL: String? = "", newURL: String? = "" return o } +/** + * Exposes the JavaScript [PageTransitionEvent](https://developer.mozilla.org/en/docs/Web/API/PageTransitionEvent) to Kotlin + */ public external open class PageTransitionEvent(type: String, eventInitDict: PageTransitionEventInit = definedExternally) : Event { open val persisted: Boolean } @@ -1704,6 +1986,9 @@ public inline fun PageTransitionEventInit(persisted: Boolean? = false, bubbles: return o } +/** + * Exposes the JavaScript [BeforeUnloadEvent](https://developer.mozilla.org/en/docs/Web/API/BeforeUnloadEvent) to Kotlin + */ public external open class BeforeUnloadEvent : Event { var returnValue: String } @@ -1732,10 +2017,16 @@ public external abstract class ApplicationCache : EventTarget { } } +/** + * Exposes the JavaScript [NavigatorOnLine](https://developer.mozilla.org/en/docs/Web/API/NavigatorOnLine) to Kotlin + */ public external interface NavigatorOnLine { val onLine: Boolean } +/** + * Exposes the JavaScript [ErrorEvent](https://developer.mozilla.org/en/docs/Web/API/ErrorEvent) to Kotlin + */ public external open class ErrorEvent(type: String, eventInitDict: ErrorEventInit = definedExternally) : Event { open val message: String open val filename: String @@ -1778,6 +2069,9 @@ public inline fun ErrorEventInit(message: String? = "", filename: String? = "", return o } +/** + * Exposes the JavaScript [PromiseRejectionEvent](https://developer.mozilla.org/en/docs/Web/API/PromiseRejectionEvent) to Kotlin + */ public external open class PromiseRejectionEvent(type: String, eventInitDict: PromiseRejectionEventInit) : Event { open val promise: Promise open val reason: Any? @@ -1805,6 +2099,9 @@ public inline fun PromiseRejectionEventInit(promise: Promise?, reason: Any return o } +/** + * Exposes the JavaScript [GlobalEventHandlers](https://developer.mozilla.org/en/docs/Web/API/GlobalEventHandlers) to Kotlin + */ public external interface GlobalEventHandlers { var onabort: ((Event) -> dynamic)? var onblur: ((Event) -> dynamic)? @@ -1869,6 +2166,9 @@ public external interface GlobalEventHandlers { var onwaiting: ((Event) -> dynamic)? } +/** + * Exposes the JavaScript [WindowEventHandlers](https://developer.mozilla.org/en/docs/Web/API/WindowEventHandlers) to Kotlin + */ public external interface WindowEventHandlers { var onafterprint: ((Event) -> dynamic)? var onbeforeprint: ((Event) -> dynamic)? @@ -1893,6 +2193,9 @@ public external interface DocumentAndElementEventHandlers { var onpaste: ((Event) -> dynamic)? } +/** + * Exposes the JavaScript [WindowOrWorkerGlobalScope](https://developer.mozilla.org/en/docs/Web/API/WindowOrWorkerGlobalScope) to Kotlin + */ public external interface WindowOrWorkerGlobalScope { val caches: CacheStorage val origin: String @@ -1907,11 +2210,17 @@ public external interface WindowOrWorkerGlobalScope { fun createImageBitmap(image: dynamic, sx: Int, sy: Int, sw: Int, sh: Int, options: ImageBitmapOptions = definedExternally): Promise } +/** + * Exposes the JavaScript [Navigator](https://developer.mozilla.org/en/docs/Web/API/Navigator) to Kotlin + */ public external abstract class Navigator : NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorContentUtils, NavigatorCookies, NavigatorPlugins, NavigatorConcurrentHardware { open val serviceWorker: ServiceWorkerContainer fun vibrate(pattern: dynamic): Boolean } +/** + * Exposes the JavaScript [NavigatorID](https://developer.mozilla.org/en/docs/Web/API/NavigatorID) to Kotlin + */ public external interface NavigatorID { val appCodeName: String val appName: String @@ -1926,6 +2235,9 @@ public external interface NavigatorID { fun taintEnabled(): Boolean } +/** + * Exposes the JavaScript [NavigatorLanguage](https://developer.mozilla.org/en/docs/Web/API/NavigatorLanguage) to Kotlin + */ public external interface NavigatorLanguage { val language: String val languages: Array @@ -1944,12 +2256,18 @@ public external interface NavigatorCookies { val cookieEnabled: Boolean } +/** + * Exposes the JavaScript [NavigatorPlugins](https://developer.mozilla.org/en/docs/Web/API/NavigatorPlugins) to Kotlin + */ public external interface NavigatorPlugins { val plugins: PluginArray val mimeTypes: MimeTypeArray fun javaEnabled(): Boolean } +/** + * Exposes the JavaScript [PluginArray](https://developer.mozilla.org/en/docs/Web/API/PluginArray) to Kotlin + */ public external abstract class PluginArray : ItemArrayLike { override val length: Int fun refresh(reload: Boolean = definedExternally): Unit @@ -1967,6 +2285,9 @@ public external abstract class MimeTypeArray : ItemArrayLike { @kotlin.internal.InlineOnly inline operator fun MimeTypeArray.get(index: Int): MimeType? = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun MimeTypeArray.get(name: String): MimeType? = asDynamic()[name] +/** + * Exposes the JavaScript [Plugin](https://developer.mozilla.org/en/docs/Web/API/Plugin) to Kotlin + */ public external abstract class Plugin : ItemArrayLike { open val name: String open val description: String @@ -1985,6 +2306,9 @@ public external abstract class MimeType { open val enabledPlugin: Plugin } +/** + * Exposes the JavaScript [ImageBitmap](https://developer.mozilla.org/en/docs/Web/API/ImageBitmap) to Kotlin + */ public external abstract class ImageBitmap : TexImageSource { open val width: Int open val height: Int @@ -2026,6 +2350,9 @@ public inline fun ImageBitmapOptions(imageOrientation: ImageOrientation? = Image return o } +/** + * Exposes the JavaScript [MessageEvent](https://developer.mozilla.org/en/docs/Web/API/MessageEvent) to Kotlin + */ public external open class MessageEvent(type: String, eventInitDict: MessageEventInit = definedExternally) : Event { open val data: Any? open val origin: String @@ -2069,6 +2396,9 @@ public inline fun MessageEventInit(data: Any? = null, origin: String? = "", last return o } +/** + * Exposes the JavaScript [EventSource](https://developer.mozilla.org/en/docs/Web/API/EventSource) to Kotlin + */ public external open class EventSource(url: String, eventSourceInitDict: EventSourceInit = definedExternally) : EventTarget { open val url: String open val withCredentials: Boolean @@ -2100,6 +2430,9 @@ public inline fun EventSourceInit(withCredentials: Boolean? = false): EventSourc return o } +/** + * Exposes the JavaScript [WebSocket](https://developer.mozilla.org/en/docs/Web/API/WebSocket) to Kotlin + */ public external open class WebSocket(url: String, protocols: dynamic = definedExternally) : EventTarget { open val url: String open val readyState: Short @@ -2125,6 +2458,9 @@ public external open class WebSocket(url: String, protocols: dynamic = definedEx } } +/** + * Exposes the JavaScript [CloseEvent](https://developer.mozilla.org/en/docs/Web/API/CloseEvent) to Kotlin + */ public external open class CloseEvent(type: String, eventInitDict: CloseEventInit = definedExternally) : Event { open val wasClean: Boolean open val code: Short @@ -2157,11 +2493,17 @@ public inline fun CloseEventInit(wasClean: Boolean? = false, code: Short? = 0, r return o } +/** + * Exposes the JavaScript [MessageChannel](https://developer.mozilla.org/en/docs/Web/API/MessageChannel) to Kotlin + */ public external open class MessageChannel { open val port1: MessagePort open val port2: MessagePort } +/** + * Exposes the JavaScript [MessagePort](https://developer.mozilla.org/en/docs/Web/API/MessagePort) to Kotlin + */ public external abstract class MessagePort : EventTarget, UnionMessagePortOrWindow, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker { open var onmessage: ((Event) -> dynamic)? fun postMessage(message: Any?, transfer: Array = definedExternally): Unit @@ -2169,6 +2511,9 @@ public external abstract class MessagePort : EventTarget, UnionMessagePortOrWind fun close(): Unit } +/** + * Exposes the JavaScript [BroadcastChannel](https://developer.mozilla.org/en/docs/Web/API/BroadcastChannel) to Kotlin + */ public external open class BroadcastChannel(name: String) : EventTarget { open val name: String var onmessage: ((Event) -> dynamic)? @@ -2176,6 +2521,9 @@ public external open class BroadcastChannel(name: String) : EventTarget { fun close(): Unit } +/** + * Exposes the JavaScript [WorkerGlobalScope](https://developer.mozilla.org/en/docs/Web/API/WorkerGlobalScope) to Kotlin + */ public external abstract class WorkerGlobalScope : EventTarget, WindowOrWorkerGlobalScope, GlobalPerformance { open val self: WorkerGlobalScope open val location: WorkerLocation @@ -2189,12 +2537,18 @@ public external abstract class WorkerGlobalScope : EventTarget, WindowOrWorkerGl fun importScripts(vararg urls: String): Unit } +/** + * Exposes the JavaScript [DedicatedWorkerGlobalScope](https://developer.mozilla.org/en/docs/Web/API/DedicatedWorkerGlobalScope) to Kotlin + */ public external abstract class DedicatedWorkerGlobalScope : WorkerGlobalScope { open var onmessage: ((Event) -> dynamic)? fun postMessage(message: Any?, transfer: Array = definedExternally): Unit fun close(): Unit } +/** + * Exposes the JavaScript [SharedWorkerGlobalScope](https://developer.mozilla.org/en/docs/Web/API/SharedWorkerGlobalScope) to Kotlin + */ public external abstract class SharedWorkerGlobalScope : WorkerGlobalScope { open val name: String open val applicationCache: ApplicationCache @@ -2202,10 +2556,16 @@ public external abstract class SharedWorkerGlobalScope : WorkerGlobalScope { fun close(): Unit } +/** + * Exposes the JavaScript [AbstractWorker](https://developer.mozilla.org/en/docs/Web/API/AbstractWorker) to Kotlin + */ public external interface AbstractWorker { var onerror: ((Event) -> dynamic)? } +/** + * Exposes the JavaScript [Worker](https://developer.mozilla.org/en/docs/Web/API/Worker) to Kotlin + */ public external open class Worker(scriptURL: String, options: WorkerOptions = definedExternally) : EventTarget, AbstractWorker { var onmessage: ((Event) -> dynamic)? override var onerror: ((Event) -> dynamic)? @@ -2232,19 +2592,31 @@ public inline fun WorkerOptions(type: WorkerType? = WorkerType.CLASSIC, credenti return o } +/** + * Exposes the JavaScript [SharedWorker](https://developer.mozilla.org/en/docs/Web/API/SharedWorker) to Kotlin + */ public external open class SharedWorker(scriptURL: String, name: String = definedExternally, options: WorkerOptions = definedExternally) : EventTarget, AbstractWorker { open val port: MessagePort override var onerror: ((Event) -> dynamic)? } +/** + * Exposes the JavaScript [NavigatorConcurrentHardware](https://developer.mozilla.org/en/docs/Web/API/NavigatorConcurrentHardware) to Kotlin + */ public external interface NavigatorConcurrentHardware { val hardwareConcurrency: Int } +/** + * Exposes the JavaScript [WorkerNavigator](https://developer.mozilla.org/en/docs/Web/API/WorkerNavigator) to Kotlin + */ public external abstract class WorkerNavigator : NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorConcurrentHardware { open val serviceWorker: ServiceWorkerContainer } +/** + * Exposes the JavaScript [WorkerLocation](https://developer.mozilla.org/en/docs/Web/API/WorkerLocation) to Kotlin + */ public external abstract class WorkerLocation { open var href: String open val origin: String @@ -2257,6 +2629,9 @@ public external abstract class WorkerLocation { open val hash: String } +/** + * Exposes the JavaScript [Storage](https://developer.mozilla.org/en/docs/Web/API/Storage) to Kotlin + */ public external abstract class Storage { open val length: Int fun key(index: Int): String? @@ -2268,14 +2643,23 @@ public external abstract class Storage { @kotlin.internal.InlineOnly inline operator fun Storage.get(key: String): String? = asDynamic()[key] @kotlin.internal.InlineOnly inline operator fun Storage.set(key: String, value: String): Unit { asDynamic()[key] = value; } +/** + * Exposes the JavaScript [WindowSessionStorage](https://developer.mozilla.org/en/docs/Web/API/WindowSessionStorage) to Kotlin + */ public external interface WindowSessionStorage { val sessionStorage: Storage } +/** + * Exposes the JavaScript [WindowLocalStorage](https://developer.mozilla.org/en/docs/Web/API/WindowLocalStorage) to Kotlin + */ public external interface WindowLocalStorage { val localStorage: Storage } +/** + * Exposes the JavaScript [StorageEvent](https://developer.mozilla.org/en/docs/Web/API/StorageEvent) to Kotlin + */ public external open class StorageEvent(type: String, eventInitDict: StorageEventInit = definedExternally) : Event { open val key: String? open val oldValue: String? @@ -2351,6 +2735,9 @@ public external abstract class HTMLMarqueeElement : HTMLElement { fun stop(): Unit } +/** + * Exposes the JavaScript [HTMLFrameSetElement](https://developer.mozilla.org/en/docs/Web/API/HTMLFrameSetElement) to Kotlin + */ public external abstract class HTMLFrameSetElement : HTMLElement, WindowEventHandlers { open var cols: String open var rows: String @@ -2373,6 +2760,9 @@ public external abstract class HTMLDirectoryElement : HTMLElement { open var compact: Boolean } +/** + * Exposes the JavaScript [HTMLFontElement](https://developer.mozilla.org/en/docs/Web/API/HTMLFontElement) to Kotlin + */ public external abstract class HTMLFontElement : HTMLElement { open var color: String open var face: String @@ -2407,6 +2797,9 @@ public inline fun EventInit(bubbles: Boolean? = false, cancelable: Boolean? = fa return o } +/** + * Exposes the JavaScript [CustomEvent](https://developer.mozilla.org/en/docs/Web/API/CustomEvent) to Kotlin + */ public external open class CustomEvent(type: String, eventInitDict: CustomEventInit = definedExternally) : Event { open val detail: Any? fun initCustomEvent(type: String, bubbles: Boolean, cancelable: Boolean, detail: Any?): Unit @@ -2469,10 +2862,16 @@ public external interface NonElementParentNode { fun getElementById(elementId: String): Element? } +/** + * Exposes the JavaScript [DocumentOrShadowRoot](https://developer.mozilla.org/en/docs/Web/API/DocumentOrShadowRoot) to Kotlin + */ public external interface DocumentOrShadowRoot { val fullscreenElement: Element? } +/** + * Exposes the JavaScript [ParentNode](https://developer.mozilla.org/en/docs/Web/API/ParentNode) to Kotlin + */ public external interface ParentNode { val children: HTMLCollection val firstElementChild: Element? @@ -2484,11 +2883,17 @@ public external interface ParentNode { fun querySelectorAll(selectors: String): NodeList } +/** + * Exposes the JavaScript [NonDocumentTypeChildNode](https://developer.mozilla.org/en/docs/Web/API/NonDocumentTypeChildNode) to Kotlin + */ public external interface NonDocumentTypeChildNode { val previousElementSibling: Element? val nextElementSibling: Element? } +/** + * Exposes the JavaScript [ChildNode](https://developer.mozilla.org/en/docs/Web/API/ChildNode) to Kotlin + */ public external interface ChildNode { fun before(vararg nodes: dynamic): Unit fun after(vararg nodes: dynamic): Unit @@ -2500,12 +2905,18 @@ public external interface Slotable { val assignedSlot: HTMLSlotElement? } +/** + * Exposes the JavaScript [NodeList](https://developer.mozilla.org/en/docs/Web/API/NodeList) to Kotlin + */ public external abstract class NodeList : ItemArrayLike { override val length: Int override fun item(index: Int): Node? } @kotlin.internal.InlineOnly inline operator fun NodeList.get(index: Int): Node? = asDynamic()[index] +/** + * Exposes the JavaScript [HTMLCollection](https://developer.mozilla.org/en/docs/Web/API/HTMLCollection) to Kotlin + */ public external abstract class HTMLCollection : UnionElementOrHTMLCollection, ItemArrayLike { override val length: Int override fun item(index: Int): Element? @@ -2514,6 +2925,9 @@ public external abstract class HTMLCollection : UnionElementOrHTMLCollection, It @kotlin.internal.InlineOnly inline operator fun HTMLCollection.get(index: Int): Element? = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun HTMLCollection.get(name: String): Element? = asDynamic()[name] +/** + * Exposes the JavaScript [MutationObserver](https://developer.mozilla.org/en/docs/Web/API/MutationObserver) to Kotlin + */ public external open class MutationObserver(callback: (Array, MutationObserver) -> Unit) { fun observe(target: Node, options: MutationObserverInit = definedExternally): Unit fun disconnect(): Unit @@ -2559,6 +2973,9 @@ public inline fun MutationObserverInit(childList: Boolean? = false, attributes: return o } +/** + * Exposes the JavaScript [MutationRecord](https://developer.mozilla.org/en/docs/Web/API/MutationRecord) to Kotlin + */ public external abstract class MutationRecord { open val type: String open val target: Node @@ -2571,6 +2988,9 @@ public external abstract class MutationRecord { open val oldValue: String? } +/** + * Exposes the JavaScript [Node](https://developer.mozilla.org/en/docs/Web/API/Node) to Kotlin + */ public external abstract class Node : EventTarget { open val nodeType: Short open val nodeName: String @@ -2639,6 +3059,9 @@ public inline fun GetRootNodeOptions(composed: Boolean? = false): GetRootNodeOpt return o } +/** + * Exposes the JavaScript [XMLDocument](https://developer.mozilla.org/en/docs/Web/API/XMLDocument) to Kotlin + */ public external open class XMLDocument : Document { override fun getElementById(elementId: String): Element? override fun prepend(vararg nodes: dynamic): Unit @@ -2666,6 +3089,9 @@ public inline fun ElementCreationOptions(is_: String? = null): ElementCreationOp return o } +/** + * Exposes the JavaScript [DOMImplementation](https://developer.mozilla.org/en/docs/Web/API/DOMImplementation) to Kotlin + */ public external abstract class DOMImplementation { fun createDocumentType(qualifiedName: String, publicId: String, systemId: String): DocumentType fun createDocument(namespace: String?, qualifiedName: String, doctype: DocumentType? = definedExternally): XMLDocument @@ -2673,12 +3099,18 @@ public external abstract class DOMImplementation { fun hasFeature(): Boolean } +/** + * Exposes the JavaScript [DocumentType](https://developer.mozilla.org/en/docs/Web/API/DocumentType) to Kotlin + */ public external abstract class DocumentType : Node, ChildNode { open val name: String open val publicId: String open val systemId: String } +/** + * Exposes the JavaScript [DocumentFragment](https://developer.mozilla.org/en/docs/Web/API/DocumentFragment) to Kotlin + */ public external open class DocumentFragment : Node, NonElementParentNode, ParentNode { override val children: HTMLCollection override val firstElementChild: Element? @@ -2691,6 +3123,9 @@ public external open class DocumentFragment : Node, NonElementParentNode, Parent override fun querySelectorAll(selectors: String): NodeList } +/** + * Exposes the JavaScript [ShadowRoot](https://developer.mozilla.org/en/docs/Web/API/ShadowRoot) to Kotlin + */ public external open class ShadowRoot : DocumentFragment, DocumentOrShadowRoot { open val mode: ShadowRootMode open val host: Element @@ -2702,6 +3137,9 @@ public external open class ShadowRoot : DocumentFragment, DocumentOrShadowRoot { override fun querySelectorAll(selectors: String): NodeList } +/** + * Exposes the JavaScript [Element](https://developer.mozilla.org/en/docs/Web/API/Element) to Kotlin + */ public external abstract class Element : Node, ParentNode, NonDocumentTypeChildNode, ChildNode, Slotable, GeometryUtils, UnionElementOrProcessingInstruction, UnionElementOrHTMLCollection, UnionElementOrRadioNodeList, UnionElementOrMouseEvent { open var innerHTML: String open var outerHTML: String @@ -2776,6 +3214,9 @@ public inline fun ShadowRootInit(mode: ShadowRootMode?): ShadowRootInit { return o } +/** + * Exposes the JavaScript [NamedNodeMap](https://developer.mozilla.org/en/docs/Web/API/NamedNodeMap) to Kotlin + */ public external abstract class NamedNodeMap : ItemArrayLike { override val length: Int override fun item(index: Int): Attr? @@ -2789,6 +3230,9 @@ public external abstract class NamedNodeMap : ItemArrayLike { @kotlin.internal.InlineOnly inline operator fun NamedNodeMap.get(index: Int): Attr? = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun NamedNodeMap.get(qualifiedName: String): Attr? = asDynamic()[qualifiedName] +/** + * Exposes the JavaScript [Attr](https://developer.mozilla.org/en/docs/Web/API/Attr) to Kotlin + */ public external abstract class Attr : Node { open val namespaceURI: String? open val prefix: String? @@ -2799,6 +3243,9 @@ public external abstract class Attr : Node { open val specified: Boolean } +/** + * Exposes the JavaScript [CharacterData](https://developer.mozilla.org/en/docs/Web/API/CharacterData) to Kotlin + */ public external abstract class CharacterData : Node, NonDocumentTypeChildNode, ChildNode { open var data: String open val length: Int @@ -2809,6 +3256,9 @@ public external abstract class CharacterData : Node, NonDocumentTypeChildNode, C fun replaceData(offset: Int, count: Int, data: String): Unit } +/** + * Exposes the JavaScript [Text](https://developer.mozilla.org/en/docs/Web/API/Text) to Kotlin + */ public external open class Text(data: String = definedExternally) : CharacterData, Slotable, GeometryUtils { open val wholeText: String override val previousElementSibling: Element? @@ -2825,6 +3275,9 @@ public external open class Text(data: String = definedExternally) : CharacterDat override fun convertPointFromNode(point: DOMPointInit, from: dynamic, options: ConvertCoordinateOptions /* = definedExternally */): DOMPoint } +/** + * Exposes the JavaScript [CDATASection](https://developer.mozilla.org/en/docs/Web/API/CDATASection) to Kotlin + */ public external open class CDATASection : Text { override fun before(vararg nodes: dynamic): Unit override fun after(vararg nodes: dynamic): Unit @@ -2836,10 +3289,16 @@ public external open class CDATASection : Text { override fun convertPointFromNode(point: DOMPointInit, from: dynamic, options: ConvertCoordinateOptions /* = definedExternally */): DOMPoint } +/** + * Exposes the JavaScript [ProcessingInstruction](https://developer.mozilla.org/en/docs/Web/API/ProcessingInstruction) to Kotlin + */ public external abstract class ProcessingInstruction : CharacterData, LinkStyle, UnionElementOrProcessingInstruction { open val target: String } +/** + * Exposes the JavaScript [Comment](https://developer.mozilla.org/en/docs/Web/API/Comment) to Kotlin + */ public external open class Comment(data: String = definedExternally) : CharacterData { override val previousElementSibling: Element? override val nextElementSibling: Element? @@ -2849,6 +3308,9 @@ public external open class Comment(data: String = definedExternally) : Character override fun remove(): Unit } +/** + * Exposes the JavaScript [Range](https://developer.mozilla.org/en/docs/Web/API/Range) to Kotlin + */ public external open class Range { open val startContainer: Node open val startOffset: Int @@ -2888,6 +3350,9 @@ public external open class Range { } } +/** + * Exposes the JavaScript [NodeIterator](https://developer.mozilla.org/en/docs/Web/API/NodeIterator) to Kotlin + */ public external abstract class NodeIterator { open val root: Node open val referenceNode: Node @@ -2899,6 +3364,9 @@ public external abstract class NodeIterator { fun detach(): Unit } +/** + * Exposes the JavaScript [TreeWalker](https://developer.mozilla.org/en/docs/Web/API/TreeWalker) to Kotlin + */ public external abstract class TreeWalker { open val root: Node open val whatToShow: Int @@ -2913,6 +3381,9 @@ public external abstract class TreeWalker { fun nextNode(): Node? } +/** + * Exposes the JavaScript [NodeFilter](https://developer.mozilla.org/en/docs/Web/API/NodeFilter) to Kotlin + */ public external interface NodeFilter { fun acceptNode(node: Node): Short @@ -2936,6 +3407,9 @@ public external interface NodeFilter { } } +/** + * Exposes the JavaScript [DOMTokenList](https://developer.mozilla.org/en/docs/Web/API/DOMTokenList) to Kotlin + */ public external abstract class DOMTokenList : ItemArrayLike { override val length: Int open var value: String @@ -2949,6 +3423,9 @@ public external abstract class DOMTokenList : ItemArrayLike { } @kotlin.internal.InlineOnly inline operator fun DOMTokenList.get(index: Int): String? = asDynamic()[index] +/** + * Exposes the JavaScript [DOMPointReadOnly](https://developer.mozilla.org/en/docs/Web/API/DOMPointReadOnly) to Kotlin + */ public external open class DOMPointReadOnly(x: Double, y: Double, z: Double, w: Double) { open val x: Double open val y: Double @@ -2957,6 +3434,9 @@ public external open class DOMPointReadOnly(x: Double, y: Double, z: Double, w: fun matrixTransform(matrix: DOMMatrixReadOnly): DOMPoint } +/** + * Exposes the JavaScript [DOMPoint](https://developer.mozilla.org/en/docs/Web/API/DOMPoint) to Kotlin + */ public external open class DOMPoint : DOMPointReadOnly { constructor(point: DOMPointInit) constructor(x: Double = definedExternally, y: Double = definedExternally, z: Double = definedExternally, w: Double = definedExternally) @@ -2993,6 +3473,9 @@ public inline fun DOMPointInit(x: Double? = 0.0, y: Double? = 0.0, z: Double? = return o } +/** + * Exposes the JavaScript [DOMRect](https://developer.mozilla.org/en/docs/Web/API/DOMRect) to Kotlin + */ public external open class DOMRect(x: Double = definedExternally, y: Double = definedExternally, width: Double = definedExternally, height: Double = definedExternally) : DOMRectReadOnly { override var x: Double override var y: Double @@ -3000,6 +3483,9 @@ public external open class DOMRect(x: Double = definedExternally, y: Double = de override var height: Double } +/** + * Exposes the JavaScript [DOMRectReadOnly](https://developer.mozilla.org/en/docs/Web/API/DOMRectReadOnly) to Kotlin + */ public external open class DOMRectReadOnly(x: Double, y: Double, width: Double, height: Double) { open val x: Double open val y: Double @@ -3053,6 +3539,9 @@ public external open class DOMQuad { open val bounds: DOMRectReadOnly } +/** + * Exposes the JavaScript [DOMMatrixReadOnly](https://developer.mozilla.org/en/docs/Web/API/DOMMatrixReadOnly) to Kotlin + */ public external open class DOMMatrixReadOnly(numberSequence: Array) { open val a: Double open val b: Double @@ -3096,6 +3585,9 @@ public external open class DOMMatrixReadOnly(numberSequence: Array) { fun toFloat64Array(): Float64Array } +/** + * Exposes the JavaScript [DOMMatrix](https://developer.mozilla.org/en/docs/Web/API/DOMMatrix) to Kotlin + */ public external open class DOMMatrix() : DOMMatrixReadOnly { constructor(transformList: String) constructor(other: DOMMatrixReadOnly) @@ -3174,6 +3666,9 @@ public inline fun ScrollToOptions(left: Double? = null, top: Double? = null, beh return o } +/** + * Exposes the JavaScript [MediaQueryList](https://developer.mozilla.org/en/docs/Web/API/MediaQueryList) to Kotlin + */ public external abstract class MediaQueryList : EventTarget { open val media: String open val matches: Boolean @@ -3211,6 +3706,9 @@ public inline fun MediaQueryListEventInit(media: String? = "", matches: Boolean? return o } +/** + * Exposes the JavaScript [Screen](https://developer.mozilla.org/en/docs/Web/API/Screen) to Kotlin + */ public external abstract class Screen { open val availWidth: Int open val availHeight: Int @@ -3220,6 +3718,9 @@ public external abstract class Screen { open val pixelDepth: Int } +/** + * Exposes the JavaScript [CaretPosition](https://developer.mozilla.org/en/docs/Web/API/CaretPosition) to Kotlin + */ public external abstract class CaretPosition { open val offsetNode: Node open val offset: Int diff --git a/js/js.libraries/src/generated/org.w3c.dom.parsing.kt b/js/js.libraries/src/generated/org.w3c.dom.parsing.kt index 8117661db93..f39e1f823b8 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.parsing.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.parsing.kt @@ -22,10 +22,16 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* +/** + * Exposes the JavaScript [DOMParser](https://developer.mozilla.org/en/docs/Web/API/DOMParser) to Kotlin + */ public external open class DOMParser { fun parseFromString(str: String, type: dynamic): Document } +/** + * Exposes the JavaScript [XMLSerializer](https://developer.mozilla.org/en/docs/Web/API/XMLSerializer) to Kotlin + */ public external open class XMLSerializer { fun serializeToString(root: Node): String } diff --git a/js/js.libraries/src/generated/org.w3c.dom.svg.kt b/js/js.libraries/src/generated/org.w3c.dom.svg.kt index 3b0a62b31de..9eda5f065ae 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.svg.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.svg.kt @@ -22,6 +22,9 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* +/** + * Exposes the JavaScript [SVGElement](https://developer.mozilla.org/en/docs/Web/API/SVGElement) to Kotlin + */ public external abstract class SVGElement : Element, ElementCSSInlineStyle, GlobalEventHandlers, SVGElementInstance { open val dataset: DOMStringMap open val ownerSVGElement: SVGSVGElement? @@ -58,6 +61,9 @@ public inline fun SVGBoundingBoxOptions(fill: Boolean? = true, stroke: Boolean? return o } +/** + * Exposes the JavaScript [SVGGraphicsElement](https://developer.mozilla.org/en/docs/Web/API/SVGGraphicsElement) to Kotlin + */ public external abstract class SVGGraphicsElement : SVGElement, SVGTests { open val transform: SVGAnimatedTransformList fun getBBox(options: SVGBoundingBoxOptions = definedExternally): DOMRect @@ -65,6 +71,9 @@ public external abstract class SVGGraphicsElement : SVGElement, SVGTests { fun getScreenCTM(): DOMMatrix? } +/** + * Exposes the JavaScript [SVGGeometryElement](https://developer.mozilla.org/en/docs/Web/API/SVGGeometryElement) to Kotlin + */ public external abstract class SVGGeometryElement : SVGGraphicsElement { open val pathLength: SVGAnimatedNumber fun isPointInFill(point: DOMPoint): Boolean @@ -73,10 +82,16 @@ public external abstract class SVGGeometryElement : SVGGraphicsElement { fun getPointAtLength(distance: Float): DOMPoint } +/** + * Exposes the JavaScript [SVGNumber](https://developer.mozilla.org/en/docs/Web/API/SVGNumber) to Kotlin + */ public external abstract class SVGNumber { open var value: Float } +/** + * Exposes the JavaScript [SVGLength](https://developer.mozilla.org/en/docs/Web/API/SVGLength) to Kotlin + */ public external abstract class SVGLength { open val unitType: Short open var value: Float @@ -100,6 +115,9 @@ public external abstract class SVGLength { } } +/** + * Exposes the JavaScript [SVGAngle](https://developer.mozilla.org/en/docs/Web/API/SVGAngle) to Kotlin + */ public external abstract class SVGAngle { open val unitType: Short open var value: Float @@ -131,6 +149,9 @@ public external abstract class SVGNameList { @kotlin.internal.InlineOnly inline operator fun SVGNameList.get(index: Int): dynamic = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun SVGNameList.set(index: Int, newItem: dynamic): Unit { asDynamic()[index] = newItem; } +/** + * Exposes the JavaScript [SVGNumberList](https://developer.mozilla.org/en/docs/Web/API/SVGNumberList) to Kotlin + */ public external abstract class SVGNumberList { open val length: Int open val numberOfItems: Int @@ -145,6 +166,9 @@ public external abstract class SVGNumberList { @kotlin.internal.InlineOnly inline operator fun SVGNumberList.get(index: Int): SVGNumber? = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun SVGNumberList.set(index: Int, newItem: SVGNumber): Unit { asDynamic()[index] = newItem; } +/** + * Exposes the JavaScript [SVGLengthList](https://developer.mozilla.org/en/docs/Web/API/SVGLengthList) to Kotlin + */ public external abstract class SVGLengthList { open val length: Int open val numberOfItems: Int @@ -159,56 +183,89 @@ public external abstract class SVGLengthList { @kotlin.internal.InlineOnly inline operator fun SVGLengthList.get(index: Int): SVGLength? = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun SVGLengthList.set(index: Int, newItem: SVGLength): Unit { asDynamic()[index] = newItem; } +/** + * Exposes the JavaScript [SVGAnimatedBoolean](https://developer.mozilla.org/en/docs/Web/API/SVGAnimatedBoolean) to Kotlin + */ public external abstract class SVGAnimatedBoolean { open var baseVal: Boolean open val animVal: Boolean } +/** + * Exposes the JavaScript [SVGAnimatedEnumeration](https://developer.mozilla.org/en/docs/Web/API/SVGAnimatedEnumeration) to Kotlin + */ public external abstract class SVGAnimatedEnumeration { open var baseVal: Short open val animVal: Short } +/** + * Exposes the JavaScript [SVGAnimatedInteger](https://developer.mozilla.org/en/docs/Web/API/SVGAnimatedInteger) to Kotlin + */ public external abstract class SVGAnimatedInteger { open var baseVal: Int open val animVal: Int } +/** + * Exposes the JavaScript [SVGAnimatedNumber](https://developer.mozilla.org/en/docs/Web/API/SVGAnimatedNumber) to Kotlin + */ public external abstract class SVGAnimatedNumber { open var baseVal: Float open val animVal: Float } +/** + * Exposes the JavaScript [SVGAnimatedLength](https://developer.mozilla.org/en/docs/Web/API/SVGAnimatedLength) to Kotlin + */ public external abstract class SVGAnimatedLength { open val baseVal: SVGLength open val animVal: SVGLength } +/** + * Exposes the JavaScript [SVGAnimatedAngle](https://developer.mozilla.org/en/docs/Web/API/SVGAnimatedAngle) to Kotlin + */ public external abstract class SVGAnimatedAngle { open val baseVal: SVGAngle open val animVal: SVGAngle } +/** + * Exposes the JavaScript [SVGAnimatedString](https://developer.mozilla.org/en/docs/Web/API/SVGAnimatedString) to Kotlin + */ public external abstract class SVGAnimatedString { open var baseVal: String open val animVal: String } +/** + * Exposes the JavaScript [SVGAnimatedRect](https://developer.mozilla.org/en/docs/Web/API/SVGAnimatedRect) to Kotlin + */ public external abstract class SVGAnimatedRect { open val baseVal: DOMRect open val animVal: DOMRectReadOnly } +/** + * Exposes the JavaScript [SVGAnimatedNumberList](https://developer.mozilla.org/en/docs/Web/API/SVGAnimatedNumberList) to Kotlin + */ public external abstract class SVGAnimatedNumberList { open val baseVal: SVGNumberList open val animVal: SVGNumberList } +/** + * Exposes the JavaScript [SVGAnimatedLengthList](https://developer.mozilla.org/en/docs/Web/API/SVGAnimatedLengthList) to Kotlin + */ public external abstract class SVGAnimatedLengthList { open val baseVal: SVGLengthList open val animVal: SVGLengthList } +/** + * Exposes the JavaScript [SVGStringList](https://developer.mozilla.org/en/docs/Web/API/SVGStringList) to Kotlin + */ public external abstract class SVGStringList { open val length: Int open val numberOfItems: Int @@ -232,6 +289,9 @@ public external interface SVGUnitTypes { } } +/** + * Exposes the JavaScript [SVGTests](https://developer.mozilla.org/en/docs/Web/API/SVGTests) to Kotlin + */ public external interface SVGTests { val requiredExtensions: SVGStringList val systemLanguage: SVGStringList @@ -256,6 +316,9 @@ public external interface SVGURIReference { val href: SVGAnimatedString } +/** + * Exposes the JavaScript [SVGSVGElement](https://developer.mozilla.org/en/docs/Web/API/SVGSVGElement) to Kotlin + */ public external abstract class SVGSVGElement : SVGGraphicsElement, SVGFitToViewBox, SVGZoomAndPan, WindowEventHandlers { open val x: SVGAnimatedLength open val y: SVGAnimatedLength @@ -289,27 +352,45 @@ public external abstract class SVGSVGElement : SVGGraphicsElement, SVGFitToViewB } } +/** + * Exposes the JavaScript [SVGGElement](https://developer.mozilla.org/en/docs/Web/API/SVGGElement) to Kotlin + */ public external abstract class SVGGElement : SVGGraphicsElement { } public external abstract class SVGUnknownElement : SVGGraphicsElement { } +/** + * Exposes the JavaScript [SVGDefsElement](https://developer.mozilla.org/en/docs/Web/API/SVGDefsElement) to Kotlin + */ public external abstract class SVGDefsElement : SVGGraphicsElement { } +/** + * Exposes the JavaScript [SVGDescElement](https://developer.mozilla.org/en/docs/Web/API/SVGDescElement) to Kotlin + */ public external abstract class SVGDescElement : SVGElement { } public external abstract class SVGMetadataElement : SVGElement { } +/** + * Exposes the JavaScript [SVGTitleElement](https://developer.mozilla.org/en/docs/Web/API/SVGTitleElement) to Kotlin + */ public external abstract class SVGTitleElement : SVGElement { } +/** + * Exposes the JavaScript [SVGSymbolElement](https://developer.mozilla.org/en/docs/Web/API/SVGSymbolElement) to Kotlin + */ public external abstract class SVGSymbolElement : SVGGraphicsElement, SVGFitToViewBox { } +/** + * Exposes the JavaScript [SVGUseElement](https://developer.mozilla.org/en/docs/Web/API/SVGUseElement) to Kotlin + */ public external abstract class SVGUseElement : SVGGraphicsElement, SVGURIReference { open val x: SVGAnimatedLength open val y: SVGAnimatedLength @@ -336,6 +417,9 @@ public external open class ShadowAnimation(source: dynamic, newTarget: dynamic) open val sourceAnimation: dynamic } +/** + * Exposes the JavaScript [SVGSwitchElement](https://developer.mozilla.org/en/docs/Web/API/SVGSwitchElement) to Kotlin + */ public external abstract class SVGSwitchElement : SVGGraphicsElement { } @@ -343,12 +427,18 @@ public external interface GetSVGDocument { fun getSVGDocument(): Document } +/** + * Exposes the JavaScript [SVGStyleElement](https://developer.mozilla.org/en/docs/Web/API/SVGStyleElement) to Kotlin + */ public external abstract class SVGStyleElement : SVGElement, LinkStyle { open var type: String open var media: String open var title: String } +/** + * Exposes the JavaScript [SVGTransform](https://developer.mozilla.org/en/docs/Web/API/SVGTransform) to Kotlin + */ public external abstract class SVGTransform { open val type: Short open val matrix: DOMMatrix @@ -371,6 +461,9 @@ public external abstract class SVGTransform { } } +/** + * Exposes the JavaScript [SVGTransformList](https://developer.mozilla.org/en/docs/Web/API/SVGTransformList) to Kotlin + */ public external abstract class SVGTransformList { open val length: Int open val numberOfItems: Int @@ -387,11 +480,17 @@ public external abstract class SVGTransformList { @kotlin.internal.InlineOnly inline operator fun SVGTransformList.get(index: Int): SVGTransform? = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun SVGTransformList.set(index: Int, newItem: SVGTransform): Unit { asDynamic()[index] = newItem; } +/** + * Exposes the JavaScript [SVGAnimatedTransformList](https://developer.mozilla.org/en/docs/Web/API/SVGAnimatedTransformList) to Kotlin + */ public external abstract class SVGAnimatedTransformList { open val baseVal: SVGTransformList open val animVal: SVGTransformList } +/** + * Exposes the JavaScript [SVGPreserveAspectRatio](https://developer.mozilla.org/en/docs/Web/API/SVGPreserveAspectRatio) to Kotlin + */ public external abstract class SVGPreserveAspectRatio { open var align: Short open var meetOrSlice: Short @@ -414,14 +513,23 @@ public external abstract class SVGPreserveAspectRatio { } } +/** + * Exposes the JavaScript [SVGAnimatedPreserveAspectRatio](https://developer.mozilla.org/en/docs/Web/API/SVGAnimatedPreserveAspectRatio) to Kotlin + */ public external abstract class SVGAnimatedPreserveAspectRatio { open val baseVal: SVGPreserveAspectRatio open val animVal: SVGPreserveAspectRatio } +/** + * Exposes the JavaScript [SVGPathElement](https://developer.mozilla.org/en/docs/Web/API/SVGPathElement) to Kotlin + */ public external abstract class SVGPathElement : SVGGeometryElement { } +/** + * Exposes the JavaScript [SVGRectElement](https://developer.mozilla.org/en/docs/Web/API/SVGRectElement) to Kotlin + */ public external abstract class SVGRectElement : SVGGeometryElement { open val x: SVGAnimatedLength open val y: SVGAnimatedLength @@ -431,12 +539,18 @@ public external abstract class SVGRectElement : SVGGeometryElement { open val ry: SVGAnimatedLength } +/** + * Exposes the JavaScript [SVGCircleElement](https://developer.mozilla.org/en/docs/Web/API/SVGCircleElement) to Kotlin + */ public external abstract class SVGCircleElement : SVGGeometryElement { open val cx: SVGAnimatedLength open val cy: SVGAnimatedLength open val r: SVGAnimatedLength } +/** + * Exposes the JavaScript [SVGEllipseElement](https://developer.mozilla.org/en/docs/Web/API/SVGEllipseElement) to Kotlin + */ public external abstract class SVGEllipseElement : SVGGeometryElement { open val cx: SVGAnimatedLength open val cy: SVGAnimatedLength @@ -444,6 +558,9 @@ public external abstract class SVGEllipseElement : SVGGeometryElement { open val ry: SVGAnimatedLength } +/** + * Exposes the JavaScript [SVGLineElement](https://developer.mozilla.org/en/docs/Web/API/SVGLineElement) to Kotlin + */ public external abstract class SVGLineElement : SVGGeometryElement { open val x1: SVGAnimatedLength open val y1: SVGAnimatedLength @@ -451,9 +568,15 @@ public external abstract class SVGLineElement : SVGGeometryElement { open val y2: SVGAnimatedLength } +/** + * Exposes the JavaScript [SVGMeshElement](https://developer.mozilla.org/en/docs/Web/API/SVGMeshElement) to Kotlin + */ public external abstract class SVGMeshElement : SVGGeometryElement, SVGURIReference { } +/** + * Exposes the JavaScript [SVGAnimatedPoints](https://developer.mozilla.org/en/docs/Web/API/SVGAnimatedPoints) to Kotlin + */ public external interface SVGAnimatedPoints { val points: SVGPointList val animatedPoints: SVGPointList @@ -473,12 +596,21 @@ public external abstract class SVGPointList { @kotlin.internal.InlineOnly inline operator fun SVGPointList.get(index: Int): DOMPoint? = asDynamic()[index] @kotlin.internal.InlineOnly inline operator fun SVGPointList.set(index: Int, newItem: DOMPoint): Unit { asDynamic()[index] = newItem; } +/** + * Exposes the JavaScript [SVGPolylineElement](https://developer.mozilla.org/en/docs/Web/API/SVGPolylineElement) to Kotlin + */ public external abstract class SVGPolylineElement : SVGGeometryElement, SVGAnimatedPoints { } +/** + * Exposes the JavaScript [SVGPolygonElement](https://developer.mozilla.org/en/docs/Web/API/SVGPolygonElement) to Kotlin + */ public external abstract class SVGPolygonElement : SVGGeometryElement, SVGAnimatedPoints { } +/** + * Exposes the JavaScript [SVGTextContentElement](https://developer.mozilla.org/en/docs/Web/API/SVGTextContentElement) to Kotlin + */ public external abstract class SVGTextContentElement : SVGGraphicsElement { open val textLength: SVGAnimatedLength open val lengthAdjust: SVGAnimatedEnumeration @@ -499,6 +631,9 @@ public external abstract class SVGTextContentElement : SVGGraphicsElement { } } +/** + * Exposes the JavaScript [SVGTextPositioningElement](https://developer.mozilla.org/en/docs/Web/API/SVGTextPositioningElement) to Kotlin + */ public external abstract class SVGTextPositioningElement : SVGTextContentElement { open val x: SVGAnimatedLengthList open val y: SVGAnimatedLengthList @@ -507,9 +642,15 @@ public external abstract class SVGTextPositioningElement : SVGTextContentElement open val rotate: SVGAnimatedNumberList } +/** + * Exposes the JavaScript [SVGTextElement](https://developer.mozilla.org/en/docs/Web/API/SVGTextElement) to Kotlin + */ public external abstract class SVGTextElement : SVGTextPositioningElement { } +/** + * Exposes the JavaScript [SVGTSpanElement](https://developer.mozilla.org/en/docs/Web/API/SVGTSpanElement) to Kotlin + */ public external abstract class SVGTSpanElement : SVGTextPositioningElement { } @@ -528,6 +669,9 @@ public external abstract class SVGTextPathElement : SVGTextContentElement, SVGUR } } +/** + * Exposes the JavaScript [SVGImageElement](https://developer.mozilla.org/en/docs/Web/API/SVGImageElement) to Kotlin + */ public external abstract class SVGImageElement : SVGGraphicsElement, SVGURIReference, HTMLOrSVGImageElement { open val x: SVGAnimatedLength open val y: SVGAnimatedLength @@ -537,6 +681,9 @@ public external abstract class SVGImageElement : SVGGraphicsElement, SVGURIRefer open var crossOrigin: String? } +/** + * Exposes the JavaScript [SVGForeignObjectElement](https://developer.mozilla.org/en/docs/Web/API/SVGForeignObjectElement) to Kotlin + */ public external abstract class SVGForeignObjectElement : SVGGraphicsElement { open val x: SVGAnimatedLength open val y: SVGAnimatedLength @@ -569,6 +716,9 @@ public external abstract class SVGMarkerElement : SVGElement, SVGFitToViewBox { public external abstract class SVGSolidcolorElement : SVGElement { } +/** + * Exposes the JavaScript [SVGGradientElement](https://developer.mozilla.org/en/docs/Web/API/SVGGradientElement) to Kotlin + */ public external abstract class SVGGradientElement : SVGElement, SVGURIReference, SVGUnitTypes { open val gradientUnits: SVGAnimatedEnumeration open val gradientTransform: SVGAnimatedTransformList @@ -585,6 +735,9 @@ public external abstract class SVGGradientElement : SVGElement, SVGURIReference, } } +/** + * Exposes the JavaScript [SVGLinearGradientElement](https://developer.mozilla.org/en/docs/Web/API/SVGLinearGradientElement) to Kotlin + */ public external abstract class SVGLinearGradientElement : SVGGradientElement { open val x1: SVGAnimatedLength open val y1: SVGAnimatedLength @@ -592,6 +745,9 @@ public external abstract class SVGLinearGradientElement : SVGGradientElement { open val y2: SVGAnimatedLength } +/** + * Exposes the JavaScript [SVGRadialGradientElement](https://developer.mozilla.org/en/docs/Web/API/SVGRadialGradientElement) to Kotlin + */ public external abstract class SVGRadialGradientElement : SVGGradientElement { open val cx: SVGAnimatedLength open val cy: SVGAnimatedLength @@ -610,10 +766,16 @@ public external abstract class SVGMeshrowElement : SVGElement { public external abstract class SVGMeshpatchElement : SVGElement { } +/** + * Exposes the JavaScript [SVGStopElement](https://developer.mozilla.org/en/docs/Web/API/SVGStopElement) to Kotlin + */ public external abstract class SVGStopElement : SVGElement { open val offset: SVGAnimatedNumber } +/** + * Exposes the JavaScript [SVGPatternElement](https://developer.mozilla.org/en/docs/Web/API/SVGPatternElement) to Kotlin + */ public external abstract class SVGPatternElement : SVGElement, SVGFitToViewBox, SVGURIReference, SVGUnitTypes { open val patternUnits: SVGAnimatedEnumeration open val patternContentUnits: SVGAnimatedEnumeration @@ -636,16 +798,25 @@ public external abstract class SVGHatchElement : SVGElement { public external abstract class SVGHatchpathElement : SVGElement { } +/** + * Exposes the JavaScript [SVGCursorElement](https://developer.mozilla.org/en/docs/Web/API/SVGCursorElement) to Kotlin + */ public external abstract class SVGCursorElement : SVGElement, SVGURIReference { open val x: SVGAnimatedLength open val y: SVGAnimatedLength } +/** + * Exposes the JavaScript [SVGScriptElement](https://developer.mozilla.org/en/docs/Web/API/SVGScriptElement) to Kotlin + */ public external abstract class SVGScriptElement : SVGElement, SVGURIReference, HTMLOrSVGScriptElement { open var type: String open var crossOrigin: String? } +/** + * Exposes the JavaScript [SVGAElement](https://developer.mozilla.org/en/docs/Web/API/SVGAElement) to Kotlin + */ public external abstract class SVGAElement : SVGGraphicsElement, SVGURIReference { open val target: SVGAnimatedString open val download: SVGAnimatedString @@ -655,6 +826,9 @@ public external abstract class SVGAElement : SVGGraphicsElement, SVGURIReference open val type: SVGAnimatedString } +/** + * Exposes the JavaScript [SVGViewElement](https://developer.mozilla.org/en/docs/Web/API/SVGViewElement) to Kotlin + */ public external abstract class SVGViewElement : SVGElement, SVGFitToViewBox, SVGZoomAndPan { companion object { diff --git a/js/js.libraries/src/generated/org.w3c.dom.url.kt b/js/js.libraries/src/generated/org.w3c.dom.url.kt index f29b4934f0e..d17496aa366 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.url.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.url.kt @@ -22,6 +22,9 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* +/** + * Exposes the JavaScript [URL](https://developer.mozilla.org/en/docs/Web/API/URL) to Kotlin + */ public external open class URL(url: String, base: String = definedExternally) { var href: String open val origin: String @@ -45,6 +48,9 @@ public external open class URL(url: String, base: String = definedExternally) { } } +/** + * Exposes the JavaScript [URLSearchParams](https://developer.mozilla.org/en/docs/Web/API/URLSearchParams) to Kotlin + */ public external open class URLSearchParams(init: dynamic = definedExternally) { fun append(name: String, value: String): Unit fun delete(name: String): Unit diff --git a/js/js.libraries/src/generated/org.w3c.fetch.kt b/js/js.libraries/src/generated/org.w3c.fetch.kt index 89a17f0e18f..cdb5aeee4c4 100644 --- a/js/js.libraries/src/generated/org.w3c.fetch.kt +++ b/js/js.libraries/src/generated/org.w3c.fetch.kt @@ -22,6 +22,9 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* +/** + * Exposes the JavaScript [Headers](https://developer.mozilla.org/en/docs/Web/API/Headers) to Kotlin + */ public external open class Headers(init: dynamic = definedExternally) { fun append(name: String, value: String): Unit fun delete(name: String): Unit @@ -30,6 +33,9 @@ public external open class Headers(init: dynamic = definedExternally) { fun set(name: String, value: String): Unit } +/** + * Exposes the JavaScript [Body](https://developer.mozilla.org/en/docs/Web/API/Body) to Kotlin + */ public external interface Body { val bodyUsed: Boolean fun arrayBuffer(): Promise @@ -39,6 +45,9 @@ public external interface Body { fun text(): Promise } +/** + * Exposes the JavaScript [Request](https://developer.mozilla.org/en/docs/Web/API/Request) to Kotlin + */ public external open class Request(input: dynamic, init: RequestInit = definedExternally) : Body { open val method: String open val url: String @@ -121,6 +130,9 @@ public inline fun RequestInit(method: String? = null, headers: dynamic = null, b return o } +/** + * Exposes the JavaScript [Response](https://developer.mozilla.org/en/docs/Web/API/Response) to Kotlin + */ public external open class Response(body: dynamic = definedExternally, init: ResponseInit = definedExternally) : Body { open val type: ResponseType open val url: String diff --git a/js/js.libraries/src/generated/org.w3c.files.kt b/js/js.libraries/src/generated/org.w3c.files.kt index 97c5e347551..bc8429b0966 100644 --- a/js/js.libraries/src/generated/org.w3c.files.kt +++ b/js/js.libraries/src/generated/org.w3c.files.kt @@ -22,6 +22,9 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* +/** + * Exposes the JavaScript [Blob](https://developer.mozilla.org/en/docs/Web/API/Blob) to Kotlin + */ public external open class Blob(blobParts: Array = definedExternally, options: BlobPropertyBag = definedExternally) { open val size: Int open val type: String @@ -45,6 +48,9 @@ public inline fun BlobPropertyBag(type: String? = ""): BlobPropertyBag { return o } +/** + * Exposes the JavaScript [File](https://developer.mozilla.org/en/docs/Web/API/File) to Kotlin + */ public external open class File(fileBits: Array, fileName: String, options: FilePropertyBag = definedExternally) : Blob { open val name: String open val lastModified: Int @@ -66,12 +72,18 @@ public inline fun FilePropertyBag(lastModified: Int? = null, type: String? = "") return o } +/** + * Exposes the JavaScript [FileList](https://developer.mozilla.org/en/docs/Web/API/FileList) to Kotlin + */ public external abstract class FileList : ItemArrayLike { override val length: Int override fun item(index: Int): File? } @kotlin.internal.InlineOnly inline operator fun FileList.get(index: Int): File? = asDynamic()[index] +/** + * Exposes the JavaScript [FileReader](https://developer.mozilla.org/en/docs/Web/API/FileReader) to Kotlin + */ public external open class FileReader : EventTarget { open val readyState: Short open val result: dynamic @@ -95,6 +107,9 @@ public external open class FileReader : EventTarget { } } +/** + * Exposes the JavaScript [FileReaderSync](https://developer.mozilla.org/en/docs/Web/API/FileReaderSync) to Kotlin + */ public external open class FileReaderSync { fun readAsArrayBuffer(blob: Blob): ArrayBuffer fun readAsBinaryString(blob: Blob): String diff --git a/js/js.libraries/src/generated/org.w3c.notifications.kt b/js/js.libraries/src/generated/org.w3c.notifications.kt index e68330992b6..60c824b5c21 100644 --- a/js/js.libraries/src/generated/org.w3c.notifications.kt +++ b/js/js.libraries/src/generated/org.w3c.notifications.kt @@ -22,6 +22,9 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* +/** + * Exposes the JavaScript [Notification](https://developer.mozilla.org/en/docs/Web/API/Notification) to Kotlin + */ public external open class Notification(title: String, options: NotificationOptions = definedExternally) : EventTarget { var onclick: ((Event) -> dynamic)? var onerror: ((Event) -> dynamic)? @@ -169,6 +172,9 @@ public inline fun GetNotificationOptions(tag: String? = ""): GetNotificationOpti return o } +/** + * Exposes the JavaScript [NotificationEvent](https://developer.mozilla.org/en/docs/Web/API/NotificationEvent) to Kotlin + */ public external open class NotificationEvent(type: String, eventInitDict: NotificationEventInit) : ExtendableEvent { open val notification: Notification open val action: String diff --git a/js/js.libraries/src/generated/org.w3c.performance.kt b/js/js.libraries/src/generated/org.w3c.performance.kt index 71312a68e06..2102a713391 100644 --- a/js/js.libraries/src/generated/org.w3c.performance.kt +++ b/js/js.libraries/src/generated/org.w3c.performance.kt @@ -22,6 +22,9 @@ import org.w3c.notifications.* import org.w3c.workers.* import org.w3c.xhr.* +/** + * Exposes the JavaScript [Performance](https://developer.mozilla.org/en/docs/Web/API/Performance) to Kotlin + */ public external abstract class Performance : EventTarget { open val timing: PerformanceTiming open val navigation: PerformanceNavigation @@ -32,6 +35,9 @@ public external interface GlobalPerformance { val performance: Performance } +/** + * Exposes the JavaScript [PerformanceTiming](https://developer.mozilla.org/en/docs/Web/API/PerformanceTiming) to Kotlin + */ public external abstract class PerformanceTiming { open val navigationStart: Int open val unloadEventStart: Int @@ -56,6 +62,9 @@ public external abstract class PerformanceTiming { open val loadEventEnd: Int } +/** + * Exposes the JavaScript [PerformanceNavigation](https://developer.mozilla.org/en/docs/Web/API/PerformanceNavigation) to Kotlin + */ public external abstract class PerformanceNavigation { open val type: Short open val redirectCount: Short diff --git a/js/js.libraries/src/generated/org.w3c.workers.kt b/js/js.libraries/src/generated/org.w3c.workers.kt index ac415793f87..601e728234e 100644 --- a/js/js.libraries/src/generated/org.w3c.workers.kt +++ b/js/js.libraries/src/generated/org.w3c.workers.kt @@ -22,6 +22,9 @@ import org.w3c.notifications.* import org.w3c.performance.* import org.w3c.xhr.* +/** + * Exposes the JavaScript [ServiceWorkerRegistration](https://developer.mozilla.org/en/docs/Web/API/ServiceWorkerRegistration) to Kotlin + */ public external abstract class ServiceWorkerRegistration : EventTarget { open val installing: ServiceWorker? open val waiting: ServiceWorker? @@ -36,6 +39,9 @@ public external abstract class ServiceWorkerRegistration : EventTarget { fun getNotifications(filter: GetNotificationOptions = definedExternally): Promise } +/** + * Exposes the JavaScript [ServiceWorkerGlobalScope](https://developer.mozilla.org/en/docs/Web/API/ServiceWorkerGlobalScope) to Kotlin + */ public external abstract class ServiceWorkerGlobalScope : WorkerGlobalScope { open val clients: Clients open val registration: ServiceWorkerRegistration @@ -50,6 +56,9 @@ public external abstract class ServiceWorkerGlobalScope : WorkerGlobalScope { fun skipWaiting(): Promise } +/** + * Exposes the JavaScript [ServiceWorker](https://developer.mozilla.org/en/docs/Web/API/ServiceWorker) to Kotlin + */ public external abstract class ServiceWorker : EventTarget, AbstractWorker, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker { open val scriptURL: String open val state: ServiceWorkerState @@ -57,6 +66,9 @@ public external abstract class ServiceWorker : EventTarget, AbstractWorker, Unio fun postMessage(message: Any?, transfer: Array = definedExternally): Unit } +/** + * Exposes the JavaScript [ServiceWorkerContainer](https://developer.mozilla.org/en/docs/Web/API/ServiceWorkerContainer) to Kotlin + */ public external abstract class ServiceWorkerContainer : EventTarget { open val controller: ServiceWorker? open val ready: Promise @@ -87,6 +99,9 @@ public inline fun RegistrationOptions(scope: String? = null, type: WorkerType? = return o } +/** + * Exposes the JavaScript [ServiceWorkerMessageEvent](https://developer.mozilla.org/en/docs/Web/API/ServiceWorkerMessageEvent) to Kotlin + */ public external open class ServiceWorkerMessageEvent(type: String, eventInitDict: ServiceWorkerMessageEventInit = definedExternally) : Event { open val data: Any? open val origin: String @@ -129,6 +144,9 @@ public inline fun ServiceWorkerMessageEventInit(data: Any? = null, origin: Strin return o } +/** + * Exposes the JavaScript [Client](https://developer.mozilla.org/en/docs/Web/API/Client) to Kotlin + */ public external abstract class Client : UnionClientOrMessagePortOrServiceWorker { open val url: String open val frameType: FrameType @@ -136,6 +154,9 @@ public external abstract class Client : UnionClientOrMessagePortOrServiceWorker fun postMessage(message: Any?, transfer: Array = definedExternally): Unit } +/** + * Exposes the JavaScript [WindowClient](https://developer.mozilla.org/en/docs/Web/API/WindowClient) to Kotlin + */ public external abstract class WindowClient : Client { open val visibilityState: dynamic open val focused: Boolean @@ -143,6 +164,9 @@ public external abstract class WindowClient : Client { fun navigate(url: String): Promise } +/** + * Exposes the JavaScript [Clients](https://developer.mozilla.org/en/docs/Web/API/Clients) to Kotlin + */ public external abstract class Clients { fun get(id: String): Promise fun matchAll(options: ClientQueryOptions = definedExternally): Promise @@ -169,6 +193,9 @@ public inline fun ClientQueryOptions(includeUncontrolled: Boolean? = false, type return o } +/** + * Exposes the JavaScript [ExtendableEvent](https://developer.mozilla.org/en/docs/Web/API/ExtendableEvent) to Kotlin + */ public external open class ExtendableEvent(type: String, eventInitDict: ExtendableEventInit = definedExternally) : Event { fun waitUntil(f: Promise): Unit } @@ -187,6 +214,9 @@ public inline fun ExtendableEventInit(bubbles: Boolean? = false, cancelable: Boo return o } +/** + * Exposes the JavaScript [InstallEvent](https://developer.mozilla.org/en/docs/Web/API/InstallEvent) to Kotlin + */ public external open class InstallEvent(type: String, eventInitDict: ExtendableEventInit = definedExternally) : ExtendableEvent { fun registerForeignFetch(options: ForeignFetchOptions): Unit } @@ -210,6 +240,9 @@ public inline fun ForeignFetchOptions(scopes: Array?, origins: Array fun matchAll(request: dynamic = definedExternally, options: CacheQueryOptions = definedExternally): Promise @@ -400,6 +439,9 @@ public inline fun CacheBatchOperation(type: String? = null, request: Request? = return o } +/** + * Exposes the JavaScript [CacheStorage](https://developer.mozilla.org/en/docs/Web/API/CacheStorage) to Kotlin + */ public external abstract class CacheStorage { fun match(request: dynamic, options: CacheQueryOptions = definedExternally): Promise fun has(cacheName: String): Promise diff --git a/js/js.libraries/src/generated/org.w3c.xhr.kt b/js/js.libraries/src/generated/org.w3c.xhr.kt index ea2c6637143..ec386a66b4c 100644 --- a/js/js.libraries/src/generated/org.w3c.xhr.kt +++ b/js/js.libraries/src/generated/org.w3c.xhr.kt @@ -22,6 +22,9 @@ import org.w3c.notifications.* import org.w3c.performance.* import org.w3c.workers.* +/** + * Exposes the JavaScript [XMLHttpRequestEventTarget](https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequestEventTarget) to Kotlin + */ public external abstract class XMLHttpRequestEventTarget : EventTarget { open var onloadstart: ((Event) -> dynamic)? open var onprogress: ((Event) -> dynamic)? @@ -35,6 +38,9 @@ public external abstract class XMLHttpRequestEventTarget : EventTarget { public external abstract class XMLHttpRequestUpload : XMLHttpRequestEventTarget { } +/** + * Exposes the JavaScript [XMLHttpRequest](https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest) to Kotlin + */ public external open class XMLHttpRequest : XMLHttpRequestEventTarget { var onreadystatechange: ((Event) -> dynamic)? open val readyState: Short @@ -66,6 +72,9 @@ public external open class XMLHttpRequest : XMLHttpRequestEventTarget { } } +/** + * Exposes the JavaScript [FormData](https://developer.mozilla.org/en/docs/Web/API/FormData) to Kotlin + */ public external open class FormData(form: HTMLFormElement = definedExternally) { fun append(name: String, value: String): Unit fun append(name: String, value: Blob, filename: String = definedExternally): Unit @@ -77,6 +86,9 @@ public external open class FormData(form: HTMLFormElement = definedExternally) { fun set(name: String, value: Blob, filename: String = definedExternally): Unit } +/** + * Exposes the JavaScript [ProgressEvent](https://developer.mozilla.org/en/docs/Web/API/ProgressEvent) to Kotlin + */ public external open class ProgressEvent(type: String, eventInitDict: ProgressEventInit = definedExternally) : Event { open val lengthComputable: Boolean open val loaded: Int