KT-16572 Add links to Mozilla Developer Network to kdocs of classes that we generate from IDL
regenerate
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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<String> {
|
||||
open var cssText: String
|
||||
override val length: Int
|
||||
@@ -272,6 +275,9 @@ public external abstract class MediaList : ItemArrayLike<String> {
|
||||
}
|
||||
@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<StyleSheet> {
|
||||
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<CSSRule> {
|
||||
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 {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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<ArrayBuffer>
|
||||
@@ -39,6 +45,9 @@ public external interface Body {
|
||||
fun text(): Promise<String>
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
||||
@@ -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<dynamic> = 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<dynamic>, 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<File> {
|
||||
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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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<dynamic>
|
||||
}
|
||||
|
||||
/**
|
||||
* 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<Unit>
|
||||
}
|
||||
|
||||
/**
|
||||
* 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<dynamic> = 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<ServiceWorkerRegistration>
|
||||
@@ -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<dynamic> = 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<WindowClient>
|
||||
}
|
||||
|
||||
/**
|
||||
* 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<Any?>
|
||||
fun matchAll(options: ClientQueryOptions = definedExternally): Promise<dynamic>
|
||||
@@ -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<Any?>): 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<String>?, origins: Array<Str
|
||||
return o
|
||||
}
|
||||
|
||||
/**
|
||||
* Exposes the JavaScript [FetchEvent](https://developer.mozilla.org/en/docs/Web/API/FetchEvent) to Kotlin
|
||||
*/
|
||||
public external open class FetchEvent(type: String, eventInitDict: FetchEventInit) : ExtendableEvent {
|
||||
open val request: Request
|
||||
open val clientId: String?
|
||||
@@ -294,6 +327,9 @@ public inline fun ForeignFetchResponse(response: Response?, origin: String? = nu
|
||||
return o
|
||||
}
|
||||
|
||||
/**
|
||||
* Exposes the JavaScript [ExtendableMessageEvent](https://developer.mozilla.org/en/docs/Web/API/ExtendableMessageEvent) to Kotlin
|
||||
*/
|
||||
public external open class ExtendableMessageEvent(type: String, eventInitDict: ExtendableMessageEventInit = definedExternally) : ExtendableEvent {
|
||||
open val data: Any?
|
||||
open val origin: String
|
||||
@@ -336,6 +372,9 @@ public inline fun ExtendableMessageEventInit(data: Any? = null, origin: String?
|
||||
return o
|
||||
}
|
||||
|
||||
/**
|
||||
* Exposes the JavaScript [Cache](https://developer.mozilla.org/en/docs/Web/API/Cache) to Kotlin
|
||||
*/
|
||||
public external abstract class Cache {
|
||||
fun match(request: dynamic, options: CacheQueryOptions = definedExternally): Promise<Any?>
|
||||
fun matchAll(request: dynamic = definedExternally, options: CacheQueryOptions = definedExternally): Promise<dynamic>
|
||||
@@ -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<Any?>
|
||||
fun has(cacheName: String): Promise<Boolean>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user