diff --git a/js/js.libraries/src/generated/org.khronos.webgl.kt b/js/js.libraries/src/generated/org.khronos.webgl.kt index 34e9181f2ed..45d1ae869fa 100644 --- a/js/js.libraries/src/generated/org.khronos.webgl.kt +++ b/js/js.libraries/src/generated/org.khronos.webgl.kt @@ -56,39 +56,30 @@ native public interface WebGLUniformLocation { } native public interface WebGLActiveInfo { - var size: Int + val size: Int get() = noImpl - set(value) = noImpl - var type: Int + val type: Int get() = noImpl - set(value) = noImpl - var name: String + val name: String get() = noImpl - set(value) = noImpl } native public interface WebGLShaderPrecisionFormat { - var rangeMin: Int + val rangeMin: Int get() = noImpl - set(value) = noImpl - var rangeMax: Int + val rangeMax: Int get() = noImpl - set(value) = noImpl - var precision: Int + val precision: Int get() = noImpl - set(value) = noImpl } native public interface WebGLRenderingContext : RenderingContext { - var canvas: HTMLCanvasElement + val canvas: HTMLCanvasElement get() = noImpl - set(value) = noImpl - var drawingBufferWidth: Int + val drawingBufferWidth: Int get() = noImpl - set(value) = noImpl - var drawingBufferHeight: Int + val drawingBufferHeight: Int get() = noImpl - set(value) = noImpl fun getContextAttributes(): WebGLContextAttributes? = noImpl fun isContextLost(): Boolean = noImpl fun getSupportedExtensions(): Array? = noImpl @@ -546,9 +537,8 @@ native public interface WebGLRenderingContext : RenderingContext { } native public open class WebGLContextEvent(type: String, eventInit: WebGLContextEventInit = noImpl) : Event(type, noImpl) { - var statusMessage: String + open val statusMessage: String get() = noImpl - set(value) = noImpl } native public open class WebGLContextEventInit : EventInit() { @@ -556,9 +546,8 @@ native public open class WebGLContextEventInit : EventInit() { } native public open class ArrayBuffer(length: Int) : Transferable { - var byteLength: Int + open val byteLength: Int get() = noImpl - set(value) = noImpl fun slice(begin: Int, end: Int = noImpl): ArrayBuffer = noImpl companion object { @@ -571,18 +560,14 @@ native public open class Int8Array : ArrayBufferView { constructor(array: Int8Array) constructor(array: Array) constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) - var length: Int + open val length: Int get() = noImpl - set(value) = noImpl - var buffer: ArrayBuffer + open val buffer: ArrayBuffer get() = noImpl - set(value) = noImpl - var byteOffset: Int + open val byteOffset: Int get() = noImpl - set(value) = noImpl - var byteLength: Int + open val byteLength: Int get() = noImpl - set(value) = noImpl fun get(index: Int): Byte = noImpl fun set(index: Int, value: Byte): Unit = noImpl fun set(array: Int8Array, offset: Int = noImpl): Unit = noImpl @@ -599,18 +584,14 @@ native public open class Uint8Array : ArrayBufferView { constructor(array: Uint8Array) constructor(array: Array) constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) - var length: Int + open val length: Int get() = noImpl - set(value) = noImpl - var buffer: ArrayBuffer + open val buffer: ArrayBuffer get() = noImpl - set(value) = noImpl - var byteOffset: Int + open val byteOffset: Int get() = noImpl - set(value) = noImpl - var byteLength: Int + open val byteLength: Int get() = noImpl - set(value) = noImpl fun get(index: Int): Byte = noImpl fun set(index: Int, value: Byte): Unit = noImpl fun set(array: Uint8Array, offset: Int = noImpl): Unit = noImpl @@ -627,18 +608,14 @@ native public open class Uint8ClampedArray : ArrayBufferView { constructor(array: Uint8ClampedArray) constructor(array: Array) constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) - var length: Int + open val length: Int get() = noImpl - set(value) = noImpl - var buffer: ArrayBuffer + open val buffer: ArrayBuffer get() = noImpl - set(value) = noImpl - var byteOffset: Int + open val byteOffset: Int get() = noImpl - set(value) = noImpl - var byteLength: Int + open val byteLength: Int get() = noImpl - set(value) = noImpl fun get(index: Int): Byte = noImpl fun set(index: Int, value: Byte): Unit = noImpl fun set(array: Uint8ClampedArray, offset: Int = noImpl): Unit = noImpl @@ -655,18 +632,14 @@ native public open class Int16Array : ArrayBufferView { constructor(array: Int16Array) constructor(array: Array) constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) - var length: Int + open val length: Int get() = noImpl - set(value) = noImpl - var buffer: ArrayBuffer + open val buffer: ArrayBuffer get() = noImpl - set(value) = noImpl - var byteOffset: Int + open val byteOffset: Int get() = noImpl - set(value) = noImpl - var byteLength: Int + open val byteLength: Int get() = noImpl - set(value) = noImpl fun get(index: Int): Short = noImpl fun set(index: Int, value: Short): Unit = noImpl fun set(array: Int16Array, offset: Int = noImpl): Unit = noImpl @@ -683,18 +656,14 @@ native public open class Uint16Array : ArrayBufferView { constructor(array: Uint16Array) constructor(array: Array) constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) - var length: Int + open val length: Int get() = noImpl - set(value) = noImpl - var buffer: ArrayBuffer + open val buffer: ArrayBuffer get() = noImpl - set(value) = noImpl - var byteOffset: Int + open val byteOffset: Int get() = noImpl - set(value) = noImpl - var byteLength: Int + open val byteLength: Int get() = noImpl - set(value) = noImpl fun get(index: Int): Short = noImpl fun set(index: Int, value: Short): Unit = noImpl fun set(array: Uint16Array, offset: Int = noImpl): Unit = noImpl @@ -711,18 +680,14 @@ native public open class Int32Array : ArrayBufferView { constructor(array: Int32Array) constructor(array: Array) constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) - var length: Int + open val length: Int get() = noImpl - set(value) = noImpl - var buffer: ArrayBuffer + open val buffer: ArrayBuffer get() = noImpl - set(value) = noImpl - var byteOffset: Int + open val byteOffset: Int get() = noImpl - set(value) = noImpl - var byteLength: Int + open val byteLength: Int get() = noImpl - set(value) = noImpl fun get(index: Int): Int = noImpl fun set(index: Int, value: Int): Unit = noImpl fun set(array: Int32Array, offset: Int = noImpl): Unit = noImpl @@ -739,18 +704,14 @@ native public open class Uint32Array : ArrayBufferView { constructor(array: Uint32Array) constructor(array: Array) constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) - var length: Int + open val length: Int get() = noImpl - set(value) = noImpl - var buffer: ArrayBuffer + open val buffer: ArrayBuffer get() = noImpl - set(value) = noImpl - var byteOffset: Int + open val byteOffset: Int get() = noImpl - set(value) = noImpl - var byteLength: Int + open val byteLength: Int get() = noImpl - set(value) = noImpl fun get(index: Int): Int = noImpl fun set(index: Int, value: Int): Unit = noImpl fun set(array: Uint32Array, offset: Int = noImpl): Unit = noImpl @@ -767,18 +728,14 @@ native public open class Float32Array : ArrayBufferView { constructor(array: Float32Array) constructor(array: Array) constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) - var length: Int + open val length: Int get() = noImpl - set(value) = noImpl - var buffer: ArrayBuffer + open val buffer: ArrayBuffer get() = noImpl - set(value) = noImpl - var byteOffset: Int + open val byteOffset: Int get() = noImpl - set(value) = noImpl - var byteLength: Int + open val byteLength: Int get() = noImpl - set(value) = noImpl fun get(index: Int): Float = noImpl fun set(index: Int, value: Float): Unit = noImpl fun set(array: Float32Array, offset: Int = noImpl): Unit = noImpl @@ -795,18 +752,14 @@ native public open class Float64Array : ArrayBufferView { constructor(array: Float64Array) constructor(array: Array) constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) - var length: Int + open val length: Int get() = noImpl - set(value) = noImpl - var buffer: ArrayBuffer + open val buffer: ArrayBuffer get() = noImpl - set(value) = noImpl - var byteOffset: Int + open val byteOffset: Int get() = noImpl - set(value) = noImpl - var byteLength: Int + open val byteLength: Int get() = noImpl - set(value) = noImpl fun get(index: Int): Double = noImpl fun set(index: Int, value: Double): Unit = noImpl fun set(array: Float64Array, offset: Int = noImpl): Unit = noImpl @@ -819,15 +772,12 @@ native public open class Float64Array : ArrayBufferView { } native public open class DataView(buffer: ArrayBuffer, byteOffset: Int = noImpl, byteLength: Int = noImpl) : ArrayBufferView { - var buffer: ArrayBuffer + open val buffer: ArrayBuffer get() = noImpl - set(value) = noImpl - var byteOffset: Int + open val byteOffset: Int get() = noImpl - set(value) = noImpl - var byteLength: Int + open val byteLength: Int get() = noImpl - set(value) = noImpl fun getInt8(byteOffset: Int): Byte = noImpl fun getUint8(byteOffset: Int): Byte = noImpl fun getInt16(byteOffset: Int, littleEndian: Boolean = noImpl): Short = noImpl 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 e5ae120428e..15e439b9fee 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.css.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.css.kt @@ -24,9 +24,8 @@ native public interface MediaList { var mediaText: String get() = noImpl set(value) = noImpl - var length: Int + val length: Int get() = noImpl - set(value) = noImpl fun item(index: Int): String? = noImpl nativeGetter fun get(index: Int): String? = noImpl fun appendMedium(medium: String): Unit = noImpl @@ -34,69 +33,56 @@ native public interface MediaList { } native public interface StyleSheet { - var type: String + val type: String get() = noImpl - set(value) = noImpl - var href: String? + val href: String? get() = noImpl - set(value) = noImpl - var ownerNode: UnionElementOrProcessingInstruction? + val ownerNode: UnionElementOrProcessingInstruction? get() = noImpl - set(value) = noImpl - var parentStyleSheet: StyleSheet? + val parentStyleSheet: StyleSheet? get() = noImpl - set(value) = noImpl - var title: String? + val title: String? get() = noImpl - set(value) = noImpl - var media: MediaList + val media: MediaList get() = noImpl - set(value) = noImpl var disabled: Boolean get() = noImpl set(value) = noImpl } native public interface CSSStyleSheet : StyleSheet { - var ownerRule: CSSRule? + val ownerRule: CSSRule? get() = noImpl - set(value) = noImpl - var cssRules: CSSRuleList + val cssRules: CSSRuleList get() = noImpl - set(value) = noImpl fun insertRule(rule: String, index: Int): Int = noImpl fun deleteRule(index: Int): Unit = noImpl } native public interface StyleSheetList { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl fun item(index: Int): StyleSheet? = noImpl nativeGetter fun get(index: Int): StyleSheet? = noImpl } native public interface CSSRuleList { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl fun item(index: Int): CSSRule? = noImpl nativeGetter fun get(index: Int): CSSRule? = noImpl } native public interface CSSRule { - var type: Short + val type: Short get() = noImpl - set(value) = noImpl var cssText: String get() = noImpl set(value) = noImpl - var parentRule: CSSRule? + val parentRule: CSSRule? get() = noImpl - set(value) = noImpl - var parentStyleSheet: CSSStyleSheet? + val parentStyleSheet: CSSStyleSheet? get() = noImpl - set(value) = noImpl companion object { val STYLE_RULE: Short = 1 @@ -114,53 +100,44 @@ native public interface CSSStyleRule : CSSRule { var selectorText: String get() = noImpl set(value) = noImpl - var style: CSSStyleDeclaration + val style: CSSStyleDeclaration get() = noImpl - set(value) = noImpl } native public interface CSSImportRule : CSSRule { - var href: String + val href: String get() = noImpl - set(value) = noImpl - var media: MediaList + val media: MediaList get() = noImpl - set(value) = noImpl - var styleSheet: CSSStyleSheet + val styleSheet: CSSStyleSheet get() = noImpl - set(value) = noImpl } native public interface CSSGroupingRule : CSSRule { - var cssRules: CSSRuleList + val cssRules: CSSRuleList get() = noImpl - set(value) = noImpl fun insertRule(rule: String, index: Int): Int = noImpl fun deleteRule(index: Int): Unit = noImpl } native public interface CSSMediaRule : CSSGroupingRule { - var media: MediaList + val media: MediaList get() = noImpl - set(value) = noImpl } native public interface CSSPageRule : CSSGroupingRule { var selectorText: String get() = noImpl set(value) = noImpl - var style: CSSStyleDeclaration + val style: CSSStyleDeclaration get() = noImpl - set(value) = noImpl } native public interface CSSMarginRule : CSSRule { - var name: String + val name: String get() = noImpl - set(value) = noImpl - var style: CSSStyleDeclaration + val style: CSSStyleDeclaration get() = noImpl - set(value) = noImpl } native public interface CSSNamespaceRule : CSSRule { @@ -848,12 +825,10 @@ native public interface CSSStyleDeclaration { var cssText: String get() = noImpl set(value) = noImpl - var length: Int + val length: Int get() = noImpl - set(value) = noImpl - var parentRule: CSSRule? + val parentRule: CSSRule? get() = noImpl - set(value) = noImpl var _dashed_attribute: String get() = noImpl set(value) = noImpl @@ -871,18 +846,14 @@ native public interface CSSStyleDeclaration { } native public interface PseudoElement : GeometryNode { - var cascadedStyle: CSSStyleDeclaration + val cascadedStyle: CSSStyleDeclaration get() = noImpl - set(value) = noImpl - var defaultStyle: CSSStyleDeclaration + val defaultStyle: CSSStyleDeclaration get() = noImpl - set(value) = noImpl - var rawComputedStyle: CSSStyleDeclaration + val rawComputedStyle: CSSStyleDeclaration get() = noImpl - set(value) = noImpl - var usedStyle: CSSStyleDeclaration + val usedStyle: CSSStyleDeclaration get() = noImpl - set(value) = noImpl fun getBoxQuads(options: BoxQuadOptions = noImpl): Array = noImpl fun convertQuadFromNode(quad: DOMQuad, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMQuad = noImpl fun convertRectFromNode(rect: DOMRectReadOnly, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMQuad = noImpl 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 9d9f6cddda5..0094b17189f 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.events.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.events.kt @@ -21,104 +21,73 @@ import org.w3c.workers.* import org.w3c.xhr.* native public open class MouseEvent(typeArg: String, mouseEventInitDict: MouseEventInit = noImpl) : UIEvent(noImpl, noImpl), UnionElementOrMouseEvent { - var screenX: Int + open val screenX: Int get() = noImpl - set(value) = noImpl - var screenY: Int + open val screenY: Int get() = noImpl - set(value) = noImpl - var clientX: Int + open val clientX: Int get() = noImpl - set(value) = noImpl - var clientY: Int + open val clientY: Int get() = noImpl - set(value) = noImpl - var ctrlKey: Boolean + open val ctrlKey: Boolean get() = noImpl - set(value) = noImpl - var shiftKey: Boolean + open val shiftKey: Boolean get() = noImpl - set(value) = noImpl - var altKey: Boolean + open val altKey: Boolean get() = noImpl - set(value) = noImpl - var metaKey: Boolean + open val metaKey: Boolean get() = noImpl - set(value) = noImpl - var button: Short + open val button: Short get() = noImpl - set(value) = noImpl - var relatedTarget: EventTarget? + open val relatedTarget: EventTarget? get() = noImpl - set(value) = noImpl - var buttons: Short + open val buttons: Short get() = noImpl - set(value) = noImpl - var region: String? + open val region: String? get() = noImpl - set(value) = noImpl -// var screenX: Double +// open val screenX: Double // get() = noImpl -// set(value) = noImpl -// var screenY: Double +// open val screenY: Double // get() = noImpl -// set(value) = noImpl - var pageX: Double + open val pageX: Double get() = noImpl - set(value) = noImpl - var pageY: Double + open val pageY: Double get() = noImpl - set(value) = noImpl -// var clientX: Double +// open val clientX: Double // get() = noImpl -// set(value) = noImpl -// var clientY: Double +// open val clientY: Double // get() = noImpl -// set(value) = noImpl -// var x: Double +// open val x: Double // get() = noImpl -// set(value) = noImpl -// var y: Double +// open val y: Double // get() = noImpl -// set(value) = noImpl - var offsetX: Double + open val offsetX: Double get() = noImpl - set(value) = noImpl - var offsetY: Double + open val offsetY: Double get() = noImpl - set(value) = noImpl fun getModifierState(keyArg: String): Boolean = noImpl fun initMouseEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, detailArg: Int, screenXArg: Int, screenYArg: Int, clientXArg: Int, clientYArg: Int, ctrlKeyArg: Boolean, altKeyArg: Boolean, shiftKeyArg: Boolean, metaKeyArg: Boolean, buttonArg: Short, relatedTargetArg: EventTarget?): Unit = noImpl } native public open class Event(type: String, eventInitDict: EventInit = noImpl) { - var type: String + open val type: String get() = noImpl - set(value) = noImpl - var target: EventTarget? + open val target: EventTarget? get() = noImpl - set(value) = noImpl - var currentTarget: EventTarget? + open val currentTarget: EventTarget? get() = noImpl - set(value) = noImpl - var eventPhase: Short + open val eventPhase: Short get() = noImpl - set(value) = noImpl - var bubbles: Boolean + open val bubbles: Boolean get() = noImpl - set(value) = noImpl - var cancelable: Boolean + open val cancelable: Boolean get() = noImpl - set(value) = noImpl - var defaultPrevented: Boolean + open val defaultPrevented: Boolean get() = noImpl - set(value) = noImpl - var isTrusted: Boolean + open val isTrusted: Boolean get() = noImpl - set(value) = noImpl - var timeStamp: Number + open val timeStamp: Number get() = noImpl - set(value) = noImpl fun stopPropagation(): Unit = noImpl fun stopImmediatePropagation(): Unit = noImpl fun preventDefault(): Unit = noImpl @@ -145,12 +114,10 @@ native public interface EventListener { } native public open class UIEvent(type: String, eventInitDict: UIEventInit = noImpl) : Event(type, eventInitDict) { - var view: Window? + open val view: Window? get() = noImpl - set(value) = noImpl - var detail: Int + open val detail: Int get() = noImpl - set(value) = noImpl fun initUIEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, detailArg: Int): Unit = noImpl } @@ -160,9 +127,8 @@ native public open class UIEventInit : EventInit() { } native public open class FocusEvent(typeArg: String, focusEventInitDict: FocusEventInit = noImpl) : UIEvent(noImpl, noImpl) { - var relatedTarget: EventTarget? + open val relatedTarget: EventTarget? get() = noImpl - set(value) = noImpl fun initFocusEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, detailArg: Int, relatedTargetArg: EventTarget?): Unit = noImpl } @@ -199,18 +165,14 @@ native public open class EventModifierInit : UIEventInit() { } native public open class WheelEvent(typeArg: String, wheelEventInitDict: WheelEventInit = noImpl) : MouseEvent(typeArg, noImpl) { - var deltaX: Double + open val deltaX: Double get() = noImpl - set(value) = noImpl - var deltaY: Double + open val deltaY: Double get() = noImpl - set(value) = noImpl - var deltaZ: Double + open val deltaZ: Double get() = noImpl - set(value) = noImpl - var deltaMode: Int + open val deltaMode: Int get() = noImpl - set(value) = noImpl fun initWheelEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, detailArg: Int, screenXArg: Int, screenYArg: Int, clientXArg: Int, clientYArg: Int, buttonArg: Short, relatedTargetArg: EventTarget?, modifiersListArg: String, deltaXArg: Double, deltaYArg: Double, deltaZArg: Double, deltaMode: Int): Unit = noImpl companion object { @@ -228,42 +190,30 @@ native public open class WheelEventInit : MouseEventInit() { } native public open class KeyboardEvent(typeArg: String, keyboardEventInitDict: KeyboardEventInit = noImpl) : UIEvent(noImpl, noImpl) { - var key: String + open val key: String get() = noImpl - set(value) = noImpl - var code: String + open val code: String get() = noImpl - set(value) = noImpl - var location: Int + open val location: Int get() = noImpl - set(value) = noImpl - var ctrlKey: Boolean + open val ctrlKey: Boolean get() = noImpl - set(value) = noImpl - var shiftKey: Boolean + open val shiftKey: Boolean get() = noImpl - set(value) = noImpl - var altKey: Boolean + open val altKey: Boolean get() = noImpl - set(value) = noImpl - var metaKey: Boolean + open val metaKey: Boolean get() = noImpl - set(value) = noImpl - var repeat: Boolean + open val repeat: Boolean get() = noImpl - set(value) = noImpl - var isComposing: Boolean + open val isComposing: Boolean get() = noImpl - set(value) = noImpl - var charCode: Int + open val charCode: Int get() = noImpl - set(value) = noImpl - var keyCode: Int + open val keyCode: Int get() = noImpl - set(value) = noImpl - var which: Int + open val which: Int get() = noImpl - set(value) = noImpl fun getModifierState(keyArg: String): Boolean = noImpl fun initKeyboardEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, keyArg: String, locationArg: Int, modifiersListArg: String, repeat: Boolean, locale: String): Unit = noImpl @@ -284,9 +234,8 @@ native public open class KeyboardEventInit : EventModifierInit() { } native public open class CompositionEvent(typeArg: String, compositionEventInitDict: CompositionEventInit = noImpl) : UIEvent(noImpl, noImpl) { - var data: String + open val data: String get() = noImpl - set(value) = noImpl fun initCompositionEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, dataArg: String, locale: String): Unit = noImpl } @@ -295,21 +244,16 @@ native public open class CompositionEventInit : UIEventInit() { } native public open class MutationEvent : Event(noImpl, noImpl) { - var relatedNode: Node? + open val relatedNode: Node? get() = noImpl - set(value) = noImpl - var prevValue: String + open val prevValue: String get() = noImpl - set(value) = noImpl - var newValue: String + open val newValue: String get() = noImpl - set(value) = noImpl - var attrName: String + open val attrName: String get() = noImpl - set(value) = noImpl - var attrChange: Short + open val attrChange: Short get() = noImpl - set(value) = noImpl fun initMutationEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, relatedNodeArg: Node?, prevValueArg: String, newValueArg: String, attrNameArg: String, attrChangeArg: Short): Unit = noImpl companion object { diff --git a/js/js.libraries/src/generated/org.w3c.dom.kt b/js/js.libraries/src/generated/org.w3c.dom.kt index ea69ee53799..a019d857067 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.kt @@ -38,6 +38,9 @@ native public interface RadioNodeList : NodeList, UnionElementOrRadioNodeList { } native public interface HTMLOptionsCollection : HTMLCollection { + override var length: Int + get() = noImpl + set(value) = noImpl var selectedIndex: Int get() = noImpl set(value) = noImpl @@ -47,9 +50,8 @@ native public interface HTMLOptionsCollection : HTMLCollection { } native public interface HTMLPropertiesCollection : HTMLCollection { - var names: Array + val names: Array get() = noImpl - set(value) = noImpl // override fun namedItem(name: String): PropertyNodeList? = noImpl // nativeGetter override fun get(name: String): PropertyNodeList? = noImpl } @@ -69,51 +71,41 @@ native public interface DOMElementMap { } native public open class Document : Node, GeometryNode { - var fullscreenEnabled: Boolean + open val fullscreenEnabled: Boolean get() = noImpl - set(value) = noImpl - var fullscreenElement: Element? + open val fullscreenElement: Element? get() = noImpl - set(value) = noImpl var onfullscreenchange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl var onfullscreenerror: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var styleSheets: StyleSheetList + open val styleSheets: StyleSheetList get() = noImpl - set(value) = noImpl var selectedStyleSheetSet: String? get() = noImpl set(value) = noImpl - var lastStyleSheetSet: String? + open val lastStyleSheetSet: String? get() = noImpl - set(value) = noImpl - var preferredStyleSheetSet: String? + open val preferredStyleSheetSet: String? get() = noImpl - set(value) = noImpl - var styleSheetSets: Array + open val styleSheetSets: Array get() = noImpl - set(value) = noImpl - var location: Location? + open val location: Location? get() = noImpl - set(value) = noImpl var domain: String get() = noImpl set(value) = noImpl - var referrer: String + open val referrer: String get() = noImpl - set(value) = noImpl var cookie: String get() = noImpl set(value) = noImpl - var lastModified: String + open val lastModified: String get() = noImpl - set(value) = noImpl - var readyState: String + open val readyState: String get() = noImpl - set(value) = noImpl var title: String get() = noImpl set(value) = noImpl @@ -123,45 +115,33 @@ native public open class Document : Node, GeometryNode { var body: HTMLElement? get() = noImpl set(value) = noImpl - var head: HTMLHeadElement? + open val head: HTMLHeadElement? get() = noImpl - set(value) = noImpl - var images: HTMLCollection + open val images: HTMLCollection get() = noImpl - set(value) = noImpl - var embeds: HTMLCollection + open val embeds: HTMLCollection get() = noImpl - set(value) = noImpl - var plugins: HTMLCollection + open val plugins: HTMLCollection get() = noImpl - set(value) = noImpl - var links: HTMLCollection + open val links: HTMLCollection get() = noImpl - set(value) = noImpl - var forms: HTMLCollection + open val forms: HTMLCollection get() = noImpl - set(value) = noImpl - var scripts: HTMLCollection + open val scripts: HTMLCollection get() = noImpl - set(value) = noImpl - var cssElementMap: DOMElementMap + open val cssElementMap: DOMElementMap get() = noImpl - set(value) = noImpl - var currentScript: HTMLScriptElement? + open val currentScript: HTMLScriptElement? get() = noImpl - set(value) = noImpl - var defaultView: Window? + open val defaultView: Window? get() = noImpl - set(value) = noImpl - var activeElement: Element? + open val activeElement: Element? get() = noImpl - set(value) = noImpl var designMode: String get() = noImpl set(value) = noImpl - var commands: HTMLCollection + open val commands: HTMLCollection get() = noImpl - set(value) = noImpl var onreadystatechange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -180,45 +160,32 @@ native public open class Document : Node, GeometryNode { var bgColor: String get() = noImpl set(value) = noImpl - var anchors: HTMLCollection + open val anchors: HTMLCollection get() = noImpl - set(value) = noImpl - var applets: HTMLCollection + open val applets: HTMLCollection get() = noImpl - set(value) = noImpl - var all: HTMLAllCollection + open val all: HTMLAllCollection get() = noImpl - set(value) = noImpl - var implementation: DOMImplementation + open val implementation: DOMImplementation get() = noImpl - set(value) = noImpl - var URL: String + open val URL: String get() = noImpl - set(value) = noImpl - var documentURI: String + open val documentURI: String get() = noImpl - set(value) = noImpl - var origin: String + open val origin: String get() = noImpl - set(value) = noImpl - var compatMode: String + open val compatMode: String get() = noImpl - set(value) = noImpl - var characterSet: String + open val characterSet: String get() = noImpl - set(value) = noImpl - var inputEncoding: String + open val inputEncoding: String get() = noImpl - set(value) = noImpl - var contentType: String + open val contentType: String get() = noImpl - set(value) = noImpl - var doctype: DocumentType? + open val doctype: DocumentType? get() = noImpl - set(value) = noImpl - var documentElement: Element? + open val documentElement: Element? get() = noImpl - set(value) = noImpl var onabort: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -408,18 +375,14 @@ native public open class Document : Node, GeometryNode { var onwaiting: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var children: HTMLCollection + open val children: HTMLCollection get() = noImpl - set(value) = noImpl - var firstElementChild: Element? + open val firstElementChild: Element? get() = noImpl - set(value) = noImpl - var lastElementChild: Element? + open val lastElementChild: Element? get() = noImpl - set(value) = noImpl - var childElementCount: Int + open val childElementCount: Int get() = noImpl - set(value) = noImpl fun exitFullscreen(): Unit = noImpl fun enableStyleSheetsForSet(name: String?): Unit = noImpl nativeGetter fun get(name: String): dynamic = noImpl @@ -493,27 +456,22 @@ native public interface HTMLElement : Element { var dir: String get() = noImpl set(value) = noImpl - var dataset: DOMStringMap + val dataset: DOMStringMap get() = noImpl - set(value) = noImpl var itemScope: Boolean get() = noImpl set(value) = noImpl - var itemType: DOMSettableTokenList + val itemType: DOMSettableTokenList get() = noImpl - set(value) = noImpl var itemId: String get() = noImpl set(value) = noImpl - var itemRef: DOMSettableTokenList + val itemRef: DOMSettableTokenList get() = noImpl - set(value) = noImpl - var itemProp: DOMSettableTokenList + val itemProp: DOMSettableTokenList get() = noImpl - set(value) = noImpl - var properties: HTMLPropertiesCollection + val properties: HTMLPropertiesCollection get() = noImpl - set(value) = noImpl var itemValue: Any? get() = noImpl set(value) = noImpl @@ -526,54 +484,41 @@ native public interface HTMLElement : Element { var accessKey: String get() = noImpl set(value) = noImpl - var accessKeyLabel: String + val accessKeyLabel: String get() = noImpl - set(value) = noImpl var draggable: Boolean get() = noImpl set(value) = noImpl - var dropzone: DOMSettableTokenList + val dropzone: DOMSettableTokenList get() = noImpl - set(value) = noImpl var contextMenu: HTMLMenuElement? get() = noImpl set(value) = noImpl var spellcheck: Boolean get() = noImpl set(value) = noImpl - var commandType: String? + val commandType: String? get() = noImpl - set(value) = noImpl - var commandLabel: String? + val commandLabel: String? get() = noImpl - set(value) = noImpl - var commandIcon: String? + val commandIcon: String? get() = noImpl - set(value) = noImpl - var commandHidden: Boolean? + val commandHidden: Boolean? get() = noImpl - set(value) = noImpl - var commandDisabled: Boolean? + val commandDisabled: Boolean? get() = noImpl - set(value) = noImpl - var commandChecked: Boolean? + val commandChecked: Boolean? get() = noImpl - set(value) = noImpl - var offsetParent: Element? + val offsetParent: Element? get() = noImpl - set(value) = noImpl - var offsetTop: Double + val offsetTop: Double get() = noImpl - set(value) = noImpl - var offsetLeft: Double + val offsetLeft: Double get() = noImpl - set(value) = noImpl - var offsetWidth: Double + val offsetWidth: Double get() = noImpl - set(value) = noImpl - var offsetHeight: Double + val offsetHeight: Double get() = noImpl - set(value) = noImpl var onabort: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -766,12 +711,10 @@ native public interface HTMLElement : Element { var contentEditable: String get() = noImpl set(value) = noImpl - var isContentEditable: Boolean + val isContentEditable: Boolean get() = noImpl - set(value) = noImpl - var style: CSSStyleDeclaration + val style: CSSStyleDeclaration get() = noImpl - set(value) = noImpl fun click(): Unit = noImpl fun focus(): Unit = noImpl fun blur(): Unit = noImpl @@ -815,9 +758,8 @@ native public interface HTMLLinkElement : HTMLElement { var rel: String get() = noImpl set(value) = noImpl - var relList: DOMTokenList + val relList: DOMTokenList get() = noImpl - set(value) = noImpl var media: String get() = noImpl set(value) = noImpl @@ -827,9 +769,8 @@ native public interface HTMLLinkElement : HTMLElement { var type: String get() = noImpl set(value) = noImpl - var sizes: DOMSettableTokenList + val sizes: DOMSettableTokenList get() = noImpl - set(value) = noImpl var charset: String get() = noImpl set(value) = noImpl @@ -839,9 +780,8 @@ native public interface HTMLLinkElement : HTMLElement { var target: String get() = noImpl set(value) = noImpl - var sheet: StyleSheet? + val sheet: StyleSheet? get() = noImpl - set(value) = noImpl } native public interface HTMLMetaElement : HTMLElement { @@ -869,9 +809,8 @@ native public interface HTMLStyleElement : HTMLElement { var scoped: Boolean get() = noImpl set(value) = noImpl - var sheet: StyleSheet? + val sheet: StyleSheet? get() = noImpl - set(value) = noImpl } native public interface HTMLBodyElement : HTMLElement { @@ -1034,9 +973,8 @@ native public interface HTMLAnchorElement : HTMLElement { var rel: String get() = noImpl set(value) = noImpl - var relList: DOMTokenList + val relList: DOMTokenList get() = noImpl - set(value) = noImpl var hreflang: String get() = noImpl set(value) = noImpl @@ -1064,9 +1002,8 @@ native public interface HTMLAnchorElement : HTMLElement { var href: String get() = noImpl set(value) = noImpl - var origin: String + val origin: String get() = noImpl - set(value) = noImpl var protocol: String get() = noImpl set(value) = noImpl @@ -1139,9 +1076,8 @@ native public interface HTMLIFrameElement : HTMLElement { var name: String get() = noImpl set(value) = noImpl - var sandbox: DOMSettableTokenList + val sandbox: DOMSettableTokenList get() = noImpl - set(value) = noImpl var seamless: Boolean get() = noImpl set(value) = noImpl @@ -1154,12 +1090,10 @@ native public interface HTMLIFrameElement : HTMLElement { var height: String get() = noImpl set(value) = noImpl - var contentDocument: Document? + val contentDocument: Document? get() = noImpl - set(value) = noImpl - var contentWindow: Window? + val contentWindow: Window? get() = noImpl - set(value) = noImpl var align: String get() = noImpl set(value) = noImpl @@ -1219,30 +1153,24 @@ native public interface HTMLObjectElement : HTMLElement { var useMap: String get() = noImpl set(value) = noImpl - var form: HTMLFormElement? + val form: HTMLFormElement? get() = noImpl - set(value) = noImpl var width: String get() = noImpl set(value) = noImpl var height: String get() = noImpl set(value) = noImpl - var contentDocument: Document? + val contentDocument: Document? get() = noImpl - set(value) = noImpl - var contentWindow: Window? + val contentWindow: Window? get() = noImpl - set(value) = noImpl - var willValidate: Boolean + val willValidate: Boolean get() = noImpl - set(value) = noImpl - var validity: ValidityState + val validity: ValidityState get() = noImpl - set(value) = noImpl - var validationMessage: String + val validationMessage: String get() = noImpl - set(value) = noImpl var align: String get() = noImpl set(value) = noImpl @@ -1301,12 +1229,10 @@ native public interface HTMLVideoElement : HTMLMediaElement, CanvasImageSource, var height: Int get() = noImpl set(value) = noImpl - var videoWidth: Int + val videoWidth: Int get() = noImpl - set(value) = noImpl - var videoHeight: Int + val videoHeight: Int get() = noImpl - set(value) = noImpl var poster: String get() = noImpl set(value) = noImpl @@ -1349,12 +1275,10 @@ native public interface HTMLTrackElement : HTMLElement { var default: Boolean get() = noImpl set(value) = noImpl - var readyState: Short + val readyState: Short get() = noImpl - set(value) = noImpl - var track: TextTrack + val track: TextTrack get() = noImpl - set(value) = noImpl companion object { val NONE: Short = 0 @@ -1365,60 +1289,49 @@ native public interface HTMLTrackElement : HTMLElement { } native public interface HTMLMediaElement : HTMLElement { - var error: MediaError? + val error: MediaError? get() = noImpl - set(value) = noImpl var src: String get() = noImpl set(value) = noImpl var srcObject: dynamic get() = noImpl set(value) = noImpl - var currentSrc: String + val currentSrc: String get() = noImpl - set(value) = noImpl var crossOrigin: String? get() = noImpl set(value) = noImpl - var networkState: Short + val networkState: Short get() = noImpl - set(value) = noImpl var preload: String get() = noImpl set(value) = noImpl - var buffered: TimeRanges + val buffered: TimeRanges get() = noImpl - set(value) = noImpl - var readyState: Short + val readyState: Short get() = noImpl - set(value) = noImpl - var seeking: Boolean + val seeking: Boolean get() = noImpl - set(value) = noImpl var currentTime: Double get() = noImpl set(value) = noImpl - var duration: Double + val duration: Double get() = noImpl - set(value) = noImpl - var paused: Boolean + val paused: Boolean get() = noImpl - set(value) = noImpl var defaultPlaybackRate: Double get() = noImpl set(value) = noImpl var playbackRate: Double get() = noImpl set(value) = noImpl - var played: TimeRanges + val played: TimeRanges get() = noImpl - set(value) = noImpl - var seekable: TimeRanges + val seekable: TimeRanges get() = noImpl - set(value) = noImpl - var ended: Boolean + val ended: Boolean get() = noImpl - set(value) = noImpl var autoplay: Boolean get() = noImpl set(value) = noImpl @@ -1443,15 +1356,12 @@ native public interface HTMLMediaElement : HTMLElement { var defaultMuted: Boolean get() = noImpl set(value) = noImpl - var audioTracks: AudioTrackList + val audioTracks: AudioTrackList get() = noImpl - set(value) = noImpl - var videoTracks: VideoTrackList + val videoTracks: VideoTrackList get() = noImpl - set(value) = noImpl - var textTracks: TextTrackList + val textTracks: TextTrackList get() = noImpl - set(value) = noImpl fun load(): Unit = noImpl fun canPlayType(type: String): String = noImpl fun fastSeek(time: Double): Unit = noImpl @@ -1474,9 +1384,8 @@ native public interface HTMLMediaElement : HTMLElement { } native public interface MediaError { - var code: Short + val code: Short get() = noImpl - set(value) = noImpl companion object { val MEDIA_ERR_ABORTED: Short = 1 @@ -1487,9 +1396,8 @@ native public interface MediaError { } native public interface AudioTrackList : EventTarget { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl var onchange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -1504,30 +1412,24 @@ native public interface AudioTrackList : EventTarget { } native public interface AudioTrack : UnionAudioTrackOrTextTrackOrVideoTrack { - var id: String + val id: String get() = noImpl - set(value) = noImpl - var kind: String + val kind: String get() = noImpl - set(value) = noImpl - var label: String + val label: String get() = noImpl - set(value) = noImpl - var language: String + val language: String get() = noImpl - set(value) = noImpl var enabled: Boolean get() = noImpl set(value) = noImpl } native public interface VideoTrackList : EventTarget { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl - var selectedIndex: Int + val selectedIndex: Int get() = noImpl - set(value) = noImpl var onchange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -1542,48 +1444,37 @@ native public interface VideoTrackList : EventTarget { } native public interface VideoTrack : UnionAudioTrackOrTextTrackOrVideoTrack { - var id: String + val id: String get() = noImpl - set(value) = noImpl - var kind: String + val kind: String get() = noImpl - set(value) = noImpl - var label: String + val label: String get() = noImpl - set(value) = noImpl - var language: String + val language: String get() = noImpl - set(value) = noImpl var selected: Boolean get() = noImpl set(value) = noImpl } native public open class MediaController : EventTarget { - var readyState: Short + open val readyState: Short get() = noImpl - set(value) = noImpl - var buffered: TimeRanges + open val buffered: TimeRanges get() = noImpl - set(value) = noImpl - var seekable: TimeRanges + open val seekable: TimeRanges get() = noImpl - set(value) = noImpl - var duration: Double + open val duration: Double get() = noImpl - set(value) = noImpl var currentTime: Double get() = noImpl set(value) = noImpl - var paused: Boolean + open val paused: Boolean get() = noImpl - set(value) = noImpl - var playbackState: String + open val playbackState: String get() = noImpl - set(value) = noImpl - var played: TimeRanges + open val played: TimeRanges get() = noImpl - set(value) = noImpl var defaultPlaybackRate: Double get() = noImpl set(value) = noImpl @@ -1644,9 +1535,8 @@ native public open class MediaController : EventTarget { } native public interface TextTrackList : EventTarget { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl var onchange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -1661,30 +1551,23 @@ native public interface TextTrackList : EventTarget { } native public interface TextTrack : EventTarget, UnionAudioTrackOrTextTrackOrVideoTrack { - var kind: String + val kind: String get() = noImpl - set(value) = noImpl - var label: String + val label: String get() = noImpl - set(value) = noImpl - var language: String + val language: String get() = noImpl - set(value) = noImpl - var id: String + val id: String get() = noImpl - set(value) = noImpl - var inBandMetadataTrackDispatchType: String + val inBandMetadataTrackDispatchType: String get() = noImpl - set(value) = noImpl var mode: String get() = noImpl set(value) = noImpl - var cues: TextTrackCueList? + val cues: TextTrackCueList? get() = noImpl - set(value) = noImpl - var activeCues: TextTrackCueList? + val activeCues: TextTrackCueList? get() = noImpl - set(value) = noImpl var oncuechange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -1693,17 +1576,15 @@ native public interface TextTrack : EventTarget, UnionAudioTrackOrTextTrackOrVid } native public interface TextTrackCueList { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl nativeGetter fun get(index: Int): TextTrackCue? = noImpl fun getCueById(id: String): TextTrackCue? = noImpl } native public interface TextTrackCue : EventTarget { - var track: TextTrack? + val track: TextTrack? get() = noImpl - set(value) = noImpl var id: String get() = noImpl set(value) = noImpl @@ -1725,17 +1606,15 @@ native public interface TextTrackCue : EventTarget { } native public interface TimeRanges { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl fun start(index: Int): Double = noImpl fun end(index: Int): Double = noImpl } native public open class TrackEvent(type: String, eventInitDict: TrackEventInit = noImpl) : Event(type, eventInitDict) { - var track: UnionAudioTrackOrTextTrackOrVideoTrack? + open val track: UnionAudioTrackOrTextTrackOrVideoTrack? get() = noImpl - set(value) = noImpl } native public open class TrackEventInit : EventInit() { @@ -1746,12 +1625,10 @@ native public interface HTMLMapElement : HTMLElement { var name: String get() = noImpl set(value) = noImpl - var areas: HTMLCollection + val areas: HTMLCollection get() = noImpl - set(value) = noImpl - var images: HTMLCollection + val images: HTMLCollection get() = noImpl - set(value) = noImpl } native public interface HTMLAreaElement : HTMLElement { @@ -1776,9 +1653,8 @@ native public interface HTMLAreaElement : HTMLElement { var rel: String get() = noImpl set(value) = noImpl - var relList: DOMTokenList + val relList: DOMTokenList get() = noImpl - set(value) = noImpl var hreflang: String get() = noImpl set(value) = noImpl @@ -1791,9 +1667,8 @@ native public interface HTMLAreaElement : HTMLElement { var href: String get() = noImpl set(value) = noImpl - var origin: String + val origin: String get() = noImpl - set(value) = noImpl var protocol: String get() = noImpl set(value) = noImpl @@ -1836,12 +1711,10 @@ native public interface HTMLTableElement : HTMLElement { var tFoot: HTMLTableSectionElement? get() = noImpl set(value) = noImpl - var tBodies: HTMLCollection + val tBodies: HTMLCollection get() = noImpl - set(value) = noImpl - var rows: HTMLCollection + val rows: HTMLCollection get() = noImpl - set(value) = noImpl var sortable: Boolean get() = noImpl set(value) = noImpl @@ -1912,9 +1785,8 @@ native public interface HTMLTableColElement : HTMLElement { } native public interface HTMLTableSectionElement : HTMLElement { - var rows: HTMLCollection + val rows: HTMLCollection get() = noImpl - set(value) = noImpl var align: String get() = noImpl set(value) = noImpl @@ -1932,15 +1804,12 @@ native public interface HTMLTableSectionElement : HTMLElement { } native public interface HTMLTableRowElement : HTMLElement { - var rowIndex: Int + val rowIndex: Int get() = noImpl - set(value) = noImpl - var sectionRowIndex: Int + val sectionRowIndex: Int get() = noImpl - set(value) = noImpl - var cells: HTMLCollection + val cells: HTMLCollection get() = noImpl - set(value) = noImpl var align: String get() = noImpl set(value) = noImpl @@ -1986,12 +1855,10 @@ native public interface HTMLTableCellElement : HTMLElement { var rowSpan: Int get() = noImpl set(value) = noImpl - var headers: DOMSettableTokenList + val headers: DOMSettableTokenList get() = noImpl - set(value) = noImpl - var cellIndex: Int + val cellIndex: Int get() = noImpl - set(value) = noImpl var align: String get() = noImpl set(value) = noImpl @@ -2049,12 +1916,10 @@ native public interface HTMLFormElement : HTMLElement { var target: String get() = noImpl set(value) = noImpl - var elements: HTMLFormControlsCollection + val elements: HTMLFormControlsCollection get() = noImpl - set(value) = noImpl - var length: Int + val length: Int get() = noImpl - set(value) = noImpl nativeGetter fun get(index: Int): Element? = noImpl nativeGetter fun get(name: String): UnionElementOrRadioNodeList? = noImpl fun submit(): Unit = noImpl @@ -2065,15 +1930,13 @@ native public interface HTMLFormElement : HTMLElement { } native public interface HTMLLabelElement : HTMLElement { - var form: HTMLFormElement? + val form: HTMLFormElement? get() = noImpl - set(value) = noImpl var htmlFor: String get() = noImpl set(value) = noImpl - var control: HTMLElement? + val control: HTMLElement? get() = noImpl - set(value) = noImpl } native public interface HTMLInputElement : HTMLElement { @@ -2101,12 +1964,10 @@ native public interface HTMLInputElement : HTMLElement { var disabled: Boolean get() = noImpl set(value) = noImpl - var form: HTMLFormElement? + val form: HTMLFormElement? get() = noImpl - set(value) = noImpl - var files: FileList? + val files: FileList? get() = noImpl - set(value) = noImpl var formAction: String get() = noImpl set(value) = noImpl @@ -2131,9 +1992,8 @@ native public interface HTMLInputElement : HTMLElement { var inputMode: String get() = noImpl set(value) = noImpl - var list: HTMLElement? + val list: HTMLElement? get() = noImpl - set(value) = noImpl var max: String get() = noImpl set(value) = noImpl @@ -2197,18 +2057,14 @@ native public interface HTMLInputElement : HTMLElement { var width: Int get() = noImpl set(value) = noImpl - var willValidate: Boolean + val willValidate: Boolean get() = noImpl - set(value) = noImpl - var validity: ValidityState + val validity: ValidityState get() = noImpl - set(value) = noImpl - var validationMessage: String + val validationMessage: String get() = noImpl - set(value) = noImpl - var labels: NodeList + val labels: NodeList get() = noImpl - set(value) = noImpl var selectionStart: Int get() = noImpl set(value) = noImpl @@ -2242,9 +2098,8 @@ native public interface HTMLButtonElement : HTMLElement { var disabled: Boolean get() = noImpl set(value) = noImpl - var form: HTMLFormElement? + val form: HTMLFormElement? get() = noImpl - set(value) = noImpl var formAction: String get() = noImpl set(value) = noImpl @@ -2272,18 +2127,14 @@ native public interface HTMLButtonElement : HTMLElement { var menu: HTMLMenuElement? get() = noImpl set(value) = noImpl - var willValidate: Boolean + val willValidate: Boolean get() = noImpl - set(value) = noImpl - var validity: ValidityState + val validity: ValidityState get() = noImpl - set(value) = noImpl - var validationMessage: String + val validationMessage: String get() = noImpl - set(value) = noImpl - var labels: NodeList + val labels: NodeList get() = noImpl - set(value) = noImpl fun checkValidity(): Boolean = noImpl fun reportValidity(): Boolean = noImpl fun setCustomValidity(error: String): Unit = noImpl @@ -2299,9 +2150,8 @@ native public interface HTMLSelectElement : HTMLElement { var disabled: Boolean get() = noImpl set(value) = noImpl - var form: HTMLFormElement? + val form: HTMLFormElement? get() = noImpl - set(value) = noImpl var multiple: Boolean get() = noImpl set(value) = noImpl @@ -2314,36 +2164,29 @@ native public interface HTMLSelectElement : HTMLElement { var size: Int get() = noImpl set(value) = noImpl - var type: String + val type: String get() = noImpl - set(value) = noImpl - var options: HTMLOptionsCollection + val options: HTMLOptionsCollection get() = noImpl - set(value) = noImpl var length: Int get() = noImpl set(value) = noImpl - var selectedOptions: HTMLCollection + val selectedOptions: HTMLCollection get() = noImpl - set(value) = noImpl var selectedIndex: Int get() = noImpl set(value) = noImpl var value: String get() = noImpl set(value) = noImpl - var willValidate: Boolean + val willValidate: Boolean get() = noImpl - set(value) = noImpl - var validity: ValidityState + val validity: ValidityState get() = noImpl - set(value) = noImpl - var validationMessage: String + val validationMessage: String get() = noImpl - set(value) = noImpl - var labels: NodeList + val labels: NodeList get() = noImpl - set(value) = noImpl fun item(index: Int): Element? = noImpl nativeGetter fun get(index: Int): Element? = noImpl fun namedItem(name: String): HTMLOptionElement? = noImpl @@ -2356,9 +2199,8 @@ native public interface HTMLSelectElement : HTMLElement { } native public interface HTMLDataListElement : HTMLElement { - var options: HTMLCollection + val options: HTMLCollection get() = noImpl - set(value) = noImpl } native public interface HTMLOptGroupElement : HTMLElement, UnionHTMLOptGroupElementOrHTMLOptionElement { @@ -2374,9 +2216,8 @@ native public interface HTMLOptionElement : HTMLElement, UnionHTMLOptGroupElemen var disabled: Boolean get() = noImpl set(value) = noImpl - var form: HTMLFormElement? + val form: HTMLFormElement? get() = noImpl - set(value) = noImpl var label: String get() = noImpl set(value) = noImpl @@ -2392,9 +2233,8 @@ native public interface HTMLOptionElement : HTMLElement, UnionHTMLOptGroupElemen var text: String get() = noImpl set(value) = noImpl - var index: Int + val index: Int get() = noImpl - set(value) = noImpl } native public interface HTMLTextAreaElement : HTMLElement { @@ -2413,9 +2253,8 @@ native public interface HTMLTextAreaElement : HTMLElement { var disabled: Boolean get() = noImpl set(value) = noImpl - var form: HTMLFormElement? + val form: HTMLFormElement? get() = noImpl - set(value) = noImpl var inputMode: String get() = noImpl set(value) = noImpl @@ -2443,30 +2282,24 @@ native public interface HTMLTextAreaElement : HTMLElement { var wrap: String get() = noImpl set(value) = noImpl - var type: String + val type: String get() = noImpl - set(value) = noImpl var defaultValue: String get() = noImpl set(value) = noImpl var value: String get() = noImpl set(value) = noImpl - var textLength: Int + val textLength: Int get() = noImpl - set(value) = noImpl - var willValidate: Boolean + val willValidate: Boolean get() = noImpl - set(value) = noImpl - var validity: ValidityState + val validity: ValidityState get() = noImpl - set(value) = noImpl - var validationMessage: String + val validationMessage: String get() = noImpl - set(value) = noImpl - var labels: NodeList + val labels: NodeList get() = noImpl - set(value) = noImpl var selectionStart: Int get() = noImpl set(value) = noImpl @@ -2495,66 +2328,53 @@ native public interface HTMLKeygenElement : HTMLElement { var disabled: Boolean get() = noImpl set(value) = noImpl - var form: HTMLFormElement? + val form: HTMLFormElement? get() = noImpl - set(value) = noImpl var keytype: String get() = noImpl set(value) = noImpl var name: String get() = noImpl set(value) = noImpl - var type: String + val type: String get() = noImpl - set(value) = noImpl - var willValidate: Boolean + val willValidate: Boolean get() = noImpl - set(value) = noImpl - var validity: ValidityState + val validity: ValidityState get() = noImpl - set(value) = noImpl - var validationMessage: String + val validationMessage: String get() = noImpl - set(value) = noImpl - var labels: NodeList + val labels: NodeList get() = noImpl - set(value) = noImpl fun checkValidity(): Boolean = noImpl fun reportValidity(): Boolean = noImpl fun setCustomValidity(error: String): Unit = noImpl } native public interface HTMLOutputElement : HTMLElement { - var htmlFor: DOMSettableTokenList + val htmlFor: DOMSettableTokenList get() = noImpl - set(value) = noImpl - var form: HTMLFormElement? + val form: HTMLFormElement? get() = noImpl - set(value) = noImpl var name: String get() = noImpl set(value) = noImpl - var type: String + val type: String get() = noImpl - set(value) = noImpl var defaultValue: String get() = noImpl set(value) = noImpl var value: String get() = noImpl set(value) = noImpl - var willValidate: Boolean + val willValidate: Boolean get() = noImpl - set(value) = noImpl - var validity: ValidityState + val validity: ValidityState get() = noImpl - set(value) = noImpl - var validationMessage: String + val validationMessage: String get() = noImpl - set(value) = noImpl - var labels: NodeList + val labels: NodeList get() = noImpl - set(value) = noImpl fun checkValidity(): Boolean = noImpl fun reportValidity(): Boolean = noImpl fun setCustomValidity(error: String): Unit = noImpl @@ -2567,12 +2387,10 @@ native public interface HTMLProgressElement : HTMLElement { var max: Double get() = noImpl set(value) = noImpl - var position: Double + val position: Double get() = noImpl - set(value) = noImpl - var labels: NodeList + val labels: NodeList get() = noImpl - set(value) = noImpl } native public interface HTMLMeterElement : HTMLElement { @@ -2594,54 +2412,45 @@ native public interface HTMLMeterElement : HTMLElement { var optimum: Double get() = noImpl set(value) = noImpl - var labels: NodeList + val labels: NodeList get() = noImpl - set(value) = noImpl } native public interface HTMLFieldSetElement : HTMLElement { var disabled: Boolean get() = noImpl set(value) = noImpl - var form: HTMLFormElement? + val form: HTMLFormElement? get() = noImpl - set(value) = noImpl var name: String get() = noImpl set(value) = noImpl - var type: String + val type: String get() = noImpl - set(value) = noImpl - var elements: HTMLFormControlsCollection + val elements: HTMLFormControlsCollection get() = noImpl - set(value) = noImpl - var willValidate: Boolean + val willValidate: Boolean get() = noImpl - set(value) = noImpl - var validity: ValidityState + val validity: ValidityState get() = noImpl - set(value) = noImpl - var validationMessage: String + val validationMessage: String get() = noImpl - set(value) = noImpl fun checkValidity(): Boolean = noImpl fun reportValidity(): Boolean = noImpl fun setCustomValidity(error: String): Unit = noImpl } native public interface HTMLLegendElement : HTMLElement { - var form: HTMLFormElement? + val form: HTMLFormElement? get() = noImpl - set(value) = noImpl var align: String get() = noImpl set(value) = noImpl } native public open class AutocompleteErrorEvent(type: String, eventInitDict: AutocompleteErrorEventInit = noImpl) : Event(type, eventInitDict) { - var reason: String + open val reason: String get() = noImpl - set(value) = noImpl } native public open class AutocompleteErrorEventInit : EventInit() { @@ -2649,39 +2458,28 @@ native public open class AutocompleteErrorEventInit : EventInit() { } native public interface ValidityState { - var valueMissing: Boolean + val valueMissing: Boolean get() = noImpl - set(value) = noImpl - var typeMismatch: Boolean + val typeMismatch: Boolean get() = noImpl - set(value) = noImpl - var patternMismatch: Boolean + val patternMismatch: Boolean get() = noImpl - set(value) = noImpl - var tooLong: Boolean + val tooLong: Boolean get() = noImpl - set(value) = noImpl - var tooShort: Boolean + val tooShort: Boolean get() = noImpl - set(value) = noImpl - var rangeUnderflow: Boolean + val rangeUnderflow: Boolean get() = noImpl - set(value) = noImpl - var rangeOverflow: Boolean + val rangeOverflow: Boolean get() = noImpl - set(value) = noImpl - var stepMismatch: Boolean + val stepMismatch: Boolean get() = noImpl - set(value) = noImpl - var badInput: Boolean + val badInput: Boolean get() = noImpl - set(value) = noImpl - var customError: Boolean + val customError: Boolean get() = noImpl - set(value) = noImpl - var valid: Boolean + val valid: Boolean get() = noImpl - set(value) = noImpl } native public interface HTMLDetailsElement : HTMLElement { @@ -2724,15 +2522,13 @@ native public interface HTMLMenuItemElement : HTMLElement { var default: Boolean get() = noImpl set(value) = noImpl - var command: HTMLElement? + val command: HTMLElement? get() = noImpl - set(value) = noImpl } native public open class RelatedEvent(type: String, eventInitDict: RelatedEventInit = noImpl) : Event(type, eventInitDict) { - var relatedTarget: EventTarget? + open val relatedTarget: EventTarget? get() = noImpl - set(value) = noImpl } native public open class RelatedEventInit : EventInit() { @@ -2782,9 +2578,8 @@ native public interface HTMLScriptElement : HTMLElement { } native public interface HTMLTemplateElement : HTMLElement { - var content: DocumentFragment + val content: DocumentFragment get() = noImpl - set(value) = noImpl } native public interface HTMLCanvasElement : HTMLElement, CanvasImageSource, ImageBitmapSource { @@ -2812,9 +2607,8 @@ native public open class CanvasRenderingContext2DSettings { native public open class CanvasRenderingContext2D() : RenderingContext, CanvasImageSource, ImageBitmapSource { constructor(width: Int, height: Int) : this() - var canvas: HTMLCanvasElement + open val canvas: HTMLCanvasElement get() = noImpl - set(value) = noImpl var width: Int get() = noImpl set(value) = noImpl @@ -2946,42 +2740,30 @@ native public interface CanvasPattern { } native public interface TextMetrics { - var width: Double + val width: Double get() = noImpl - set(value) = noImpl - var actualBoundingBoxLeft: Double + val actualBoundingBoxLeft: Double get() = noImpl - set(value) = noImpl - var actualBoundingBoxRight: Double + val actualBoundingBoxRight: Double get() = noImpl - set(value) = noImpl - var fontBoundingBoxAscent: Double + val fontBoundingBoxAscent: Double get() = noImpl - set(value) = noImpl - var fontBoundingBoxDescent: Double + val fontBoundingBoxDescent: Double get() = noImpl - set(value) = noImpl - var actualBoundingBoxAscent: Double + val actualBoundingBoxAscent: Double get() = noImpl - set(value) = noImpl - var actualBoundingBoxDescent: Double + val actualBoundingBoxDescent: Double get() = noImpl - set(value) = noImpl - var emHeightAscent: Double + val emHeightAscent: Double get() = noImpl - set(value) = noImpl - var emHeightDescent: Double + val emHeightDescent: Double get() = noImpl - set(value) = noImpl - var hangingBaseline: Double + val hangingBaseline: Double get() = noImpl - set(value) = noImpl - var alphabeticBaseline: Double + val alphabeticBaseline: Double get() = noImpl - set(value) = noImpl - var ideographicBaseline: Double + val ideographicBaseline: Double get() = noImpl - set(value) = noImpl } native public open class HitRegionOptions { @@ -2998,15 +2780,12 @@ native public open class HitRegionOptions { native public open class ImageData : ImageBitmapSource { constructor(sw: Int, sh: Int) constructor(data: Uint8ClampedArray, sw: Int, sh: Int = noImpl) - var width: Int + open val width: Int get() = noImpl - set(value) = noImpl - var height: Int + open val height: Int get() = noImpl - set(value) = noImpl - var data: Uint8ClampedArray + open val data: Uint8ClampedArray get() = noImpl - set(value) = noImpl } native public open class DrawingStyle(scope: Element = noImpl) { @@ -3064,9 +2843,8 @@ native public open class Path2D() { } native public interface Touch { - var region: String? + val region: String? get() = noImpl - set(value) = noImpl } native public interface DataTransfer { @@ -3076,15 +2854,12 @@ native public interface DataTransfer { var effectAllowed: String get() = noImpl set(value) = noImpl - var items: DataTransferItemList + val items: DataTransferItemList get() = noImpl - set(value) = noImpl - var types: Array + val types: Array get() = noImpl - set(value) = noImpl - var files: FileList + val files: FileList get() = noImpl - set(value) = noImpl fun setDragImage(image: Element, x: Int, y: Int): Unit = noImpl fun getData(format: String): String = noImpl fun setData(format: String, data: String): Unit = noImpl @@ -3092,9 +2867,8 @@ native public interface DataTransfer { } native public interface DataTransferItemList { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl nativeGetter fun get(index: Int): DataTransferItem? = noImpl fun add(data: String, type: String): DataTransferItem? = noImpl fun add(data: File): DataTransferItem? = noImpl @@ -3103,20 +2877,17 @@ native public interface DataTransferItemList { } native public interface DataTransferItem { - var kind: String + val kind: String get() = noImpl - set(value) = noImpl - var type: String + val type: String get() = noImpl - set(value) = noImpl fun getAsString(_callback: ((String) -> Unit)?): Unit = noImpl fun getAsFile(): File? = noImpl } native public open class DragEvent(type: String, eventInitDict: DragEventInit = noImpl) : MouseEvent(noImpl, noImpl) { - var dataTransfer: DataTransfer? + open val dataTransfer: DataTransfer? get() = noImpl - set(value) = noImpl } native public open class DragEventInit : MouseEventInit() { @@ -3124,117 +2895,83 @@ native public open class DragEventInit : MouseEventInit() { } native public interface Window : EventTarget, UnionMessagePortOrWindow { - var caches: CacheStorage + val caches: CacheStorage get() = noImpl - set(value) = noImpl - var performance: Performance + val performance: Performance get() = noImpl - set(value) = noImpl - var window: Window + val window: Window get() = noImpl - set(value) = noImpl - var self: Window + val self: Window get() = noImpl - set(value) = noImpl - var document: Document + val document: Document get() = noImpl - set(value) = noImpl var name: String get() = noImpl set(value) = noImpl - var location: Location + val location: Location get() = noImpl - set(value) = noImpl - var history: History + val history: History get() = noImpl - set(value) = noImpl - var locationbar: BarProp + val locationbar: BarProp get() = noImpl - set(value) = noImpl - var menubar: BarProp + val menubar: BarProp get() = noImpl - set(value) = noImpl - var personalbar: BarProp + val personalbar: BarProp get() = noImpl - set(value) = noImpl - var scrollbars: BarProp + val scrollbars: BarProp get() = noImpl - set(value) = noImpl - var statusbar: BarProp + val statusbar: BarProp get() = noImpl - set(value) = noImpl - var toolbar: BarProp + val toolbar: BarProp get() = noImpl - set(value) = noImpl var status: String get() = noImpl set(value) = noImpl - var closed: Boolean + val closed: Boolean get() = noImpl - set(value) = noImpl - var frames: Window + val frames: Window get() = noImpl - set(value) = noImpl - var length: Int + val length: Int get() = noImpl - set(value) = noImpl - var top: Window + val top: Window get() = noImpl - set(value) = noImpl var opener: Any? get() = noImpl set(value) = noImpl - var parent: Window + val parent: Window get() = noImpl - set(value) = noImpl - var frameElement: Element? + val frameElement: Element? get() = noImpl - set(value) = noImpl - var navigator: Navigator + val navigator: Navigator get() = noImpl - set(value) = noImpl - var external: External + val external: External get() = noImpl - set(value) = noImpl - var applicationCache: ApplicationCache + val applicationCache: ApplicationCache get() = noImpl - set(value) = noImpl - var screen: Screen + val screen: Screen get() = noImpl - set(value) = noImpl - var innerWidth: Double + val innerWidth: Double get() = noImpl - set(value) = noImpl - var innerHeight: Double + val innerHeight: Double get() = noImpl - set(value) = noImpl - var scrollX: Double + val scrollX: Double get() = noImpl - set(value) = noImpl - var pageXOffset: Double + val pageXOffset: Double get() = noImpl - set(value) = noImpl - var scrollY: Double + val scrollY: Double get() = noImpl - set(value) = noImpl - var pageYOffset: Double + val pageYOffset: Double get() = noImpl - set(value) = noImpl - var screenX: Double + val screenX: Double get() = noImpl - set(value) = noImpl - var screenY: Double + val screenY: Double get() = noImpl - set(value) = noImpl - var outerWidth: Double + val outerWidth: Double get() = noImpl - set(value) = noImpl - var outerHeight: Double + val outerHeight: Double get() = noImpl - set(value) = noImpl - var devicePixelRatio: Double + val devicePixelRatio: Double get() = noImpl - set(value) = noImpl var onabort: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -3463,12 +3200,10 @@ native public interface Window : EventTarget, UnionMessagePortOrWindow { var onunload: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var sessionStorage: Storage + val sessionStorage: Storage get() = noImpl - set(value) = noImpl - var localStorage: Storage + val localStorage: Storage get() = noImpl - set(value) = noImpl fun getComputedStyle(elt: Element, pseudoElt: String? = noImpl): CSSStyleDeclaration = noImpl fun close(): Unit = noImpl fun stop(): Unit = noImpl @@ -3517,12 +3252,10 @@ native public interface BarProp { } native public interface History { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl - var state: Any? + val state: Any? get() = noImpl - set(value) = noImpl fun go(delta: Int = noImpl): Unit = noImpl fun back(): Unit = noImpl fun forward(): Unit = noImpl @@ -3531,15 +3264,13 @@ native public interface History { } native public interface Location { - var ancestorOrigins: Array + val ancestorOrigins: Array get() = noImpl - set(value) = noImpl var href: String get() = noImpl set(value) = noImpl - var origin: String + val origin: String get() = noImpl - set(value) = noImpl var protocol: String get() = noImpl set(value) = noImpl @@ -3576,9 +3307,8 @@ native public interface Location { } native public open class PopStateEvent(type: String, eventInitDict: PopStateEventInit = noImpl) : Event(type, eventInitDict) { - var state: Any? + open val state: Any? get() = noImpl - set(value) = noImpl } native public open class PopStateEventInit : EventInit() { @@ -3586,12 +3316,10 @@ native public open class PopStateEventInit : EventInit() { } native public open class HashChangeEvent(type: String, eventInitDict: HashChangeEventInit = noImpl) : Event(type, eventInitDict) { - var oldURL: String + open val oldURL: String get() = noImpl - set(value) = noImpl - var newURL: String + open val newURL: String get() = noImpl - set(value) = noImpl } native public open class HashChangeEventInit : EventInit() { @@ -3600,9 +3328,8 @@ native public open class HashChangeEventInit : EventInit() { } native public open class PageTransitionEvent(type: String, eventInitDict: PageTransitionEventInit = noImpl) : Event(type, eventInitDict) { - var persisted: Boolean + open val persisted: Boolean get() = noImpl - set(value) = noImpl } native public open class PageTransitionEventInit : EventInit() { @@ -3616,9 +3343,8 @@ native public open class BeforeUnloadEvent : Event(noImpl, noImpl) { } native public interface ApplicationCache : EventTarget { - var status: Short + val status: Short get() = noImpl - set(value) = noImpl var onchecking: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -3658,21 +3384,16 @@ native public interface ApplicationCache : EventTarget { } native public open class ErrorEvent(type: String, eventInitDict: ErrorEventInit = noImpl) : Event(type, eventInitDict) { - var message: String + open val message: String get() = noImpl - set(value) = noImpl - var filename: String + open val filename: String get() = noImpl - set(value) = noImpl - var lineno: Int + open val lineno: Int get() = noImpl - set(value) = noImpl - var colno: Int + open val colno: Int get() = noImpl - set(value) = noImpl - var error: Any? + open val error: Any? get() = noImpl - set(value) = noImpl } native public open class ErrorEventInit : EventInit() { @@ -3684,51 +3405,36 @@ native public open class ErrorEventInit : EventInit() { } native public interface Navigator { - var serviceWorker: ServiceWorkerContainer + val serviceWorker: ServiceWorkerContainer get() = noImpl - set(value) = noImpl - var appCodeName: String + val appCodeName: String get() = noImpl - set(value) = noImpl - var appName: String + val appName: String get() = noImpl - set(value) = noImpl - var appVersion: String + val appVersion: String get() = noImpl - set(value) = noImpl - var platform: String + val platform: String get() = noImpl - set(value) = noImpl - var product: String + val product: String get() = noImpl - set(value) = noImpl - var userAgent: String + val userAgent: String get() = noImpl - set(value) = noImpl - var vendorSub: String + val vendorSub: String get() = noImpl - set(value) = noImpl - var language: String? + val language: String? get() = noImpl - set(value) = noImpl - var languages: Array + val languages: Array get() = noImpl - set(value) = noImpl - var onLine: Boolean + val onLine: Boolean get() = noImpl - set(value) = noImpl - var cookieEnabled: Boolean + val cookieEnabled: Boolean get() = noImpl - set(value) = noImpl - var plugins: PluginArray + val plugins: PluginArray get() = noImpl - set(value) = noImpl - var mimeTypes: MimeTypeArray + val mimeTypes: MimeTypeArray get() = noImpl - set(value) = noImpl - var javaEnabled: Boolean + val javaEnabled: Boolean get() = noImpl - set(value) = noImpl fun vibrate(pattern: dynamic): Boolean = noImpl fun taintEnabled(): Boolean = noImpl fun registerProtocolHandler(scheme: String, url: String, title: String): Unit = noImpl @@ -3741,9 +3447,8 @@ native public interface Navigator { } native public interface PluginArray { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl fun refresh(reload: Boolean = false): Unit = noImpl fun item(index: Int): Plugin? = noImpl nativeGetter fun get(index: Int): Plugin? = noImpl @@ -3752,9 +3457,8 @@ native public interface PluginArray { } native public interface MimeTypeArray { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl fun item(index: Int): MimeType? = noImpl nativeGetter fun get(index: Int): MimeType? = noImpl fun namedItem(name: String): MimeType? = noImpl @@ -3762,18 +3466,14 @@ native public interface MimeTypeArray { } native public interface Plugin { - var name: String + val name: String get() = noImpl - set(value) = noImpl - var description: String + val description: String get() = noImpl - set(value) = noImpl - var filename: String + val filename: String get() = noImpl - set(value) = noImpl - var length: Int + val length: Int get() = noImpl - set(value) = noImpl fun item(index: Int): MimeType? = noImpl nativeGetter fun get(index: Int): MimeType? = noImpl fun namedItem(name: String): MimeType? = noImpl @@ -3781,18 +3481,14 @@ native public interface Plugin { } native public interface MimeType { - var type: String + val type: String get() = noImpl - set(value) = noImpl - var description: String + val description: String get() = noImpl - set(value) = noImpl - var suffixes: String + val suffixes: String get() = noImpl - set(value) = noImpl - var enabledPlugin: Plugin + val enabledPlugin: Plugin get() = noImpl - set(value) = noImpl } native public interface External { @@ -3801,30 +3497,23 @@ native public interface External { } native public interface ImageBitmap : CanvasImageSource, ImageBitmapSource { - var width: Int + val width: Int get() = noImpl - set(value) = noImpl - var height: Int + val height: Int get() = noImpl - set(value) = noImpl } native public open class MessageEvent(type: String, eventInitDict: MessageEventInit = noImpl) : Event(type, eventInitDict) { - var data: Any? + open val data: Any? get() = noImpl - set(value) = noImpl - var origin: String + open val origin: String get() = noImpl - set(value) = noImpl - var lastEventId: String + open val lastEventId: String get() = noImpl - set(value) = noImpl - var source: UnionMessagePortOrWindow? + open val source: UnionMessagePortOrWindow? get() = noImpl - set(value) = noImpl - var ports: Array? + open val ports: Array? get() = noImpl - set(value) = noImpl fun initMessageEvent(typeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean, dataArg: Any?, originArg: String, lastEventIdArg: String, sourceArg: UnionMessagePortOrWindow, portsArg: Array?): Unit = noImpl } @@ -3837,15 +3526,12 @@ native public open class MessageEventInit : EventInit() { } native public open class EventSource(url: String, eventSourceInitDict: EventSourceInit = noImpl) : EventTarget { - var url: String + open val url: String get() = noImpl - set(value) = noImpl - var withCredentials: Boolean + open val withCredentials: Boolean get() = noImpl - set(value) = noImpl - var readyState: Short + open val readyState: Short get() = noImpl - set(value) = noImpl var onopen: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -3869,15 +3555,12 @@ native public open class EventSourceInit { } native public open class WebSocket(url: String, protocols: dynamic = noImpl) : EventTarget { - var url: String + open val url: String get() = noImpl - set(value) = noImpl - var readyState: Short + open val readyState: Short get() = noImpl - set(value) = noImpl - var bufferedAmount: Int + open val bufferedAmount: Int get() = noImpl - set(value) = noImpl var onopen: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -3887,12 +3570,10 @@ native public open class WebSocket(url: String, protocols: dynamic = noImpl) : E var onclose: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var extensions: String + open val extensions: String get() = noImpl - set(value) = noImpl - var protocol: String + open val protocol: String get() = noImpl - set(value) = noImpl var onmessage: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -3914,15 +3595,12 @@ native public open class WebSocket(url: String, protocols: dynamic = noImpl) : E } native public open class CloseEvent(type: String, eventInitDict: CloseEventInit = noImpl) : Event(type, eventInitDict) { - var wasClean: Boolean + open val wasClean: Boolean get() = noImpl - set(value) = noImpl - var code: Short + open val code: Short get() = noImpl - set(value) = noImpl - var reason: String + open val reason: String get() = noImpl - set(value) = noImpl } native public open class CloseEventInit : EventInit() { @@ -3932,12 +3610,10 @@ native public open class CloseEventInit : EventInit() { } native public open class MessageChannel { - var port1: MessagePort + open val port1: MessagePort get() = noImpl - set(value) = noImpl - var port2: MessagePort + open val port2: MessagePort get() = noImpl - set(value) = noImpl } native public interface MessagePort : EventTarget, UnionMessagePortOrWindow, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker, Transferable { @@ -3957,9 +3633,8 @@ native public open class PortCollection { } native public open class BroadcastChannel(channel: String) : EventTarget { - var name: String + open val name: String get() = noImpl - set(value) = noImpl var onmessage: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -3968,15 +3643,12 @@ native public open class BroadcastChannel(channel: String) : EventTarget { } native public interface WorkerGlobalScope : EventTarget { - var caches: CacheStorage + val caches: CacheStorage get() = noImpl - set(value) = noImpl - var self: WorkerGlobalScope + val self: WorkerGlobalScope get() = noImpl - set(value) = noImpl - var location: WorkerLocation + val location: WorkerLocation get() = noImpl - set(value) = noImpl var onerror: ((dynamic, String, Int, Int, Any?) -> dynamic)? get() = noImpl set(value) = noImpl @@ -3989,9 +3661,8 @@ native public interface WorkerGlobalScope : EventTarget { var ononline: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var navigator: WorkerNavigator + val navigator: WorkerNavigator get() = noImpl - set(value) = noImpl fun close(): Unit = noImpl fun importScripts(vararg urls: String): Unit = noImpl fun createImageBitmap(image: ImageBitmapSource): dynamic = noImpl @@ -4015,12 +3686,10 @@ native public interface DedicatedWorkerGlobalScope : WorkerGlobalScope { } native public interface SharedWorkerGlobalScope : WorkerGlobalScope { - var name: String + val name: String get() = noImpl - set(value) = noImpl - var applicationCache: ApplicationCache + val applicationCache: ApplicationCache get() = noImpl - set(value) = noImpl var onconnect: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -4038,48 +3707,36 @@ native public open class Worker(scriptURL: String) : EventTarget { } native public open class SharedWorker(scriptURL: String, name: String = noImpl) : EventTarget { - var port: MessagePort + open val port: MessagePort get() = noImpl - set(value) = noImpl var onerror: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl } native public interface WorkerNavigator { - var serviceWorker: ServiceWorkerContainer + val serviceWorker: ServiceWorkerContainer get() = noImpl - set(value) = noImpl - var appCodeName: String + val appCodeName: String get() = noImpl - set(value) = noImpl - var appName: String + val appName: String get() = noImpl - set(value) = noImpl - var appVersion: String + val appVersion: String get() = noImpl - set(value) = noImpl - var platform: String + val platform: String get() = noImpl - set(value) = noImpl - var product: String + val product: String get() = noImpl - set(value) = noImpl - var userAgent: String + val userAgent: String get() = noImpl - set(value) = noImpl - var vendorSub: String + val vendorSub: String get() = noImpl - set(value) = noImpl - var language: String? + val language: String? get() = noImpl - set(value) = noImpl - var languages: Array + val languages: Array get() = noImpl - set(value) = noImpl - var onLine: Boolean + val onLine: Boolean get() = noImpl - set(value) = noImpl fun taintEnabled(): Boolean = noImpl } @@ -4087,36 +3744,27 @@ native public interface WorkerLocation { var href: String get() = noImpl set(value) = noImpl - var origin: String + val origin: String get() = noImpl - set(value) = noImpl - var protocol: String + val protocol: String get() = noImpl - set(value) = noImpl - var host: String + val host: String get() = noImpl - set(value) = noImpl - var hostname: String + val hostname: String get() = noImpl - set(value) = noImpl - var port: String + val port: String get() = noImpl - set(value) = noImpl - var pathname: String + val pathname: String get() = noImpl - set(value) = noImpl - var search: String + val search: String get() = noImpl - set(value) = noImpl - var hash: String + val hash: String get() = noImpl - set(value) = noImpl } native public interface Storage { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl fun key(index: Int): String? = noImpl fun getItem(key: String): String? = noImpl nativeGetter fun get(key: String): String? = noImpl @@ -4127,21 +3775,16 @@ native public interface Storage { } native public open class StorageEvent(type: String, eventInitDict: StorageEventInit = noImpl) : Event(type, eventInitDict) { - var key: String? + open val key: String? get() = noImpl - set(value) = noImpl - var oldValue: String? + open val oldValue: String? get() = noImpl - set(value) = noImpl - var newValue: String? + open val newValue: String? get() = noImpl - set(value) = noImpl - var url: String + open val url: String get() = noImpl - set(value) = noImpl - var storageArea: Storage? + open val storageArea: Storage? get() = noImpl - set(value) = noImpl } native public open class StorageEventInit : EventInit() { @@ -4302,12 +3945,10 @@ native public interface HTMLFrameElement : HTMLElement { var noResize: Boolean get() = noImpl set(value) = noImpl - var contentDocument: Document? + val contentDocument: Document? get() = noImpl - set(value) = noImpl - var contentWindow: Window? + val contentWindow: Window? get() = noImpl - set(value) = noImpl var marginHeight: String get() = noImpl set(value) = noImpl @@ -4383,24 +4024,18 @@ native public interface HTMLImageElement : HTMLElement, CanvasImageSource, Image var height: Int get() = noImpl set(value) = noImpl - var naturalWidth: Int + val naturalWidth: Int get() = noImpl - set(value) = noImpl - var naturalHeight: Int + val naturalHeight: Int get() = noImpl - set(value) = noImpl - var complete: Boolean + val complete: Boolean get() = noImpl - set(value) = noImpl - var currentSrc: String + val currentSrc: String get() = noImpl - set(value) = noImpl - var x: Double + val x: Double get() = noImpl - set(value) = noImpl - var y: Double + val y: Double get() = noImpl - set(value) = noImpl } native public interface HTMLPictureElement : HTMLElement { @@ -4412,9 +4047,8 @@ native public open class EventInit { } native public open class CustomEvent(type: String, eventInitDict: CustomEventInit = noImpl) : Event(type, eventInitDict) { - var detail: Any? + open val detail: Any? get() = noImpl - set(value) = noImpl fun initCustomEvent(type: String, bubbles: Boolean, cancelable: Boolean, detail: Any?): Unit = noImpl } @@ -4423,17 +4057,15 @@ native public open class CustomEventInit : EventInit() { } native public interface NodeList { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl fun item(index: Int): Node? = noImpl nativeGetter fun get(index: Int): Node? = noImpl } native public interface HTMLCollection : UnionElementOrHTMLCollection { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl fun item(index: Int): Element? = noImpl nativeGetter fun get(index: Int): Element? = noImpl fun namedItem(name: String): Element? = noImpl @@ -4457,69 +4089,49 @@ native public open class MutationObserverInit { } native public interface MutationRecord { - var type: String + val type: String get() = noImpl - set(value) = noImpl - var target: Node + val target: Node get() = noImpl - set(value) = noImpl - var addedNodes: NodeList + val addedNodes: NodeList get() = noImpl - set(value) = noImpl - var removedNodes: NodeList + val removedNodes: NodeList get() = noImpl - set(value) = noImpl - var previousSibling: Node? + val previousSibling: Node? get() = noImpl - set(value) = noImpl - var nextSibling: Node? + val nextSibling: Node? get() = noImpl - set(value) = noImpl - var attributeName: String? + val attributeName: String? get() = noImpl - set(value) = noImpl - var attributeNamespace: String? + val attributeNamespace: String? get() = noImpl - set(value) = noImpl - var oldValue: String? + val oldValue: String? get() = noImpl - set(value) = noImpl } native public interface Node : EventTarget { - var nodeType: Short + val nodeType: Short get() = noImpl - set(value) = noImpl - var nodeName: String + val nodeName: String get() = noImpl - set(value) = noImpl - var baseURI: String? + val baseURI: String? get() = noImpl - set(value) = noImpl - var ownerDocument: Document? + val ownerDocument: Document? get() = noImpl - set(value) = noImpl - var parentNode: Node? + val parentNode: Node? get() = noImpl - set(value) = noImpl - var parentElement: Element? + val parentElement: Element? get() = noImpl - set(value) = noImpl - var childNodes: NodeList + val childNodes: NodeList get() = noImpl - set(value) = noImpl - var firstChild: Node? + val firstChild: Node? get() = noImpl - set(value) = noImpl - var lastChild: Node? + val lastChild: Node? get() = noImpl - set(value) = noImpl - var previousSibling: Node? + val previousSibling: Node? get() = noImpl - set(value) = noImpl - var nextSibling: Node? + val nextSibling: Node? get() = noImpl - set(value) = noImpl var nodeValue: String? get() = noImpl set(value) = noImpl @@ -4570,18 +4182,14 @@ native public interface DOMImplementation { } native public open class DocumentFragment : Node { - var children: HTMLCollection + open val children: HTMLCollection get() = noImpl - set(value) = noImpl - var firstElementChild: Element? + open val firstElementChild: Element? get() = noImpl - set(value) = noImpl - var lastElementChild: Element? + open val lastElementChild: Element? get() = noImpl - set(value) = noImpl - var childElementCount: Int + open val childElementCount: Int get() = noImpl - set(value) = noImpl fun getElementById(elementId: String): Element? = noImpl fun prepend(vararg nodes: dynamic): Unit = noImpl fun append(vararg nodes: dynamic): Unit = noImpl @@ -4592,15 +4200,12 @@ native public open class DocumentFragment : Node { } native public interface DocumentType : Node { - var name: String + val name: String get() = noImpl - set(value) = noImpl - var publicId: String + val publicId: String get() = noImpl - set(value) = noImpl - var systemId: String + val systemId: String get() = noImpl - set(value) = noImpl fun before(vararg nodes: dynamic): Unit = noImpl fun after(vararg nodes: dynamic): Unit = noImpl fun replaceWith(vararg nodes: dynamic): Unit = noImpl @@ -4614,84 +4219,62 @@ native public interface Element : Node, UnionElementOrHTMLCollection, UnionEleme var outerHTML: String get() = noImpl set(value) = noImpl - var namespaceURI: String? + val namespaceURI: String? get() = noImpl - set(value) = noImpl - var prefix: String? + val prefix: String? get() = noImpl - set(value) = noImpl - var localName: String + val localName: String get() = noImpl - set(value) = noImpl - var tagName: String + val tagName: String get() = noImpl - set(value) = noImpl var id: String get() = noImpl set(value) = noImpl var className: String get() = noImpl set(value) = noImpl - var classList: DOMTokenList + val classList: DOMTokenList get() = noImpl - set(value) = noImpl - var attributes: NamedNodeMap + val attributes: NamedNodeMap get() = noImpl - set(value) = noImpl var scrollTop: dynamic get() = noImpl set(value) = noImpl var scrollLeft: dynamic get() = noImpl set(value) = noImpl - var scrollWidth: Double + val scrollWidth: Double get() = noImpl - set(value) = noImpl - var scrollHeight: Double + val scrollHeight: Double get() = noImpl - set(value) = noImpl - var clientTop: Double + val clientTop: Double get() = noImpl - set(value) = noImpl - var clientLeft: Double + val clientLeft: Double get() = noImpl - set(value) = noImpl - var clientWidth: Double + val clientWidth: Double get() = noImpl - set(value) = noImpl - var clientHeight: Double + val clientHeight: Double get() = noImpl - set(value) = noImpl - var children: HTMLCollection + val children: HTMLCollection get() = noImpl - set(value) = noImpl - var firstElementChild: Element? + val firstElementChild: Element? get() = noImpl - set(value) = noImpl - var lastElementChild: Element? + val lastElementChild: Element? get() = noImpl - set(value) = noImpl - var childElementCount: Int + val childElementCount: Int get() = noImpl - set(value) = noImpl - var previousElementSibling: Element? + val previousElementSibling: Element? get() = noImpl - set(value) = noImpl - var nextElementSibling: Element? + val nextElementSibling: Element? get() = noImpl - set(value) = noImpl - var cascadedStyle: CSSStyleDeclaration + val cascadedStyle: CSSStyleDeclaration get() = noImpl - set(value) = noImpl - var defaultStyle: CSSStyleDeclaration + val defaultStyle: CSSStyleDeclaration get() = noImpl - set(value) = noImpl - var rawComputedStyle: CSSStyleDeclaration + val rawComputedStyle: CSSStyleDeclaration get() = noImpl - set(value) = noImpl - var usedStyle: CSSStyleDeclaration + val usedStyle: CSSStyleDeclaration get() = noImpl - set(value) = noImpl fun requestFullscreen(): Unit = noImpl fun pseudo(pseudoElt: String): PseudoElement? = noImpl fun insertAdjacentHTML(position: String, text: String): Unit = noImpl @@ -4735,9 +4318,8 @@ native public interface Element : Node, UnionElementOrHTMLCollection, UnionEleme } native public interface NamedNodeMap { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl fun item(index: Int): Attr? = noImpl nativeGetter fun get(index: Int): Attr? = noImpl fun getNamedItem(name: String): Attr? = noImpl @@ -4750,18 +4332,14 @@ native public interface NamedNodeMap { } native public interface Attr { - var namespaceURI: String? + val namespaceURI: String? get() = noImpl - set(value) = noImpl - var prefix: String? + val prefix: String? get() = noImpl - set(value) = noImpl - var localName: String + val localName: String get() = noImpl - set(value) = noImpl - var name: String + val name: String get() = noImpl - set(value) = noImpl var value: String get() = noImpl set(value) = noImpl @@ -4771,27 +4349,22 @@ native public interface Attr { var textContent: String get() = noImpl set(value) = noImpl - var ownerElement: Element? + val ownerElement: Element? get() = noImpl - set(value) = noImpl - var specified: Boolean + val specified: Boolean get() = noImpl - set(value) = noImpl } native public interface CharacterData : Node { var data: String get() = noImpl set(value) = noImpl - var length: Int + val length: Int get() = noImpl - set(value) = noImpl - var previousElementSibling: Element? + val previousElementSibling: Element? get() = noImpl - set(value) = noImpl - var nextElementSibling: Element? + val nextElementSibling: Element? get() = noImpl - set(value) = noImpl fun substringData(offset: Int, count: Int): String = noImpl fun appendData(data: String): Unit = noImpl fun insertData(offset: Int, data: String): Unit = noImpl @@ -4804,9 +4377,8 @@ native public interface CharacterData : Node { } native public open class Text(data: String = "") : CharacterData, GeometryNode { - var wholeText: String + open val wholeText: String get() = noImpl - set(value) = noImpl fun splitText(offset: Int): Text = noImpl fun getBoxQuads(options: BoxQuadOptions = noImpl): Array = noImpl fun convertQuadFromNode(quad: DOMQuad, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMQuad = noImpl @@ -4815,36 +4387,28 @@ native public open class Text(data: String = "") : CharacterData, GeometryNode { } native public interface ProcessingInstruction : CharacterData, UnionElementOrProcessingInstruction { - var target: String + val target: String get() = noImpl - set(value) = noImpl - var sheet: StyleSheet? + val sheet: StyleSheet? get() = noImpl - set(value) = noImpl } native public open class Comment(data: String = "") : CharacterData { } native public open class Range { - var startContainer: Node + open val startContainer: Node get() = noImpl - set(value) = noImpl - var startOffset: Int + open val startOffset: Int get() = noImpl - set(value) = noImpl - var endContainer: Node + open val endContainer: Node get() = noImpl - set(value) = noImpl - var endOffset: Int + open val endOffset: Int get() = noImpl - set(value) = noImpl - var collapsed: Boolean + open val collapsed: Boolean get() = noImpl - set(value) = noImpl - var commonAncestorContainer: Node + open val commonAncestorContainer: Node get() = noImpl - set(value) = noImpl fun createContextualFragment(fragment: String): DocumentFragment = noImpl fun setStart(node: Node, offset: Int): Unit = noImpl fun setEnd(node: Node, offset: Int): Unit = noImpl @@ -4878,36 +4442,28 @@ native public open class Range { } native public interface NodeIterator { - var root: Node + val root: Node get() = noImpl - set(value) = noImpl - var referenceNode: Node + val referenceNode: Node get() = noImpl - set(value) = noImpl - var pointerBeforeReferenceNode: Boolean + val pointerBeforeReferenceNode: Boolean get() = noImpl - set(value) = noImpl - var whatToShow: Int + val whatToShow: Int get() = noImpl - set(value) = noImpl - var filter: NodeFilter? + val filter: NodeFilter? get() = noImpl - set(value) = noImpl fun nextNode(): Node? = noImpl fun previousNode(): Node? = noImpl fun detach(): Unit = noImpl } native public interface TreeWalker { - var root: Node + val root: Node get() = noImpl - set(value) = noImpl - var whatToShow: Int + val whatToShow: Int get() = noImpl - set(value) = noImpl - var filter: NodeFilter? + val filter: NodeFilter? get() = noImpl - set(value) = noImpl var currentNode: Node get() = noImpl set(value) = noImpl @@ -4944,9 +4500,8 @@ native public interface NodeFilter { } native public interface DOMTokenList { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl fun item(index: Int): String? = noImpl nativeGetter fun get(index: Int): String? = noImpl fun contains(token: String): Boolean = noImpl @@ -4962,24 +4517,18 @@ native public interface DOMSettableTokenList : DOMTokenList { } native public interface Selection { - var anchorNode: Node? + val anchorNode: Node? get() = noImpl - set(value) = noImpl - var anchorOffset: Int + val anchorOffset: Int get() = noImpl - set(value) = noImpl - var focusNode: Node? + val focusNode: Node? get() = noImpl - set(value) = noImpl - var focusOffset: Int + val focusOffset: Int get() = noImpl - set(value) = noImpl - var isCollapsed: Boolean + val isCollapsed: Boolean get() = noImpl - set(value) = noImpl - var rangeCount: Int + val rangeCount: Int get() = noImpl - set(value) = noImpl fun collapse(node: Node, offset: Int): Unit = noImpl fun collapseToStart(): Unit = noImpl fun collapseToEnd(): Unit = noImpl @@ -4993,12 +4542,10 @@ native public interface Selection { } native public open class EditingBeforeInputEvent(type: String, eventInitDict: EditingBeforeInputEventInit = noImpl) : Event(type, eventInitDict) { - var command: String + open val command: String get() = noImpl - set(value) = noImpl - var value: String + open val value: String get() = noImpl - set(value) = noImpl } native public open class EditingBeforeInputEventInit : EventInit() { @@ -5007,12 +4554,10 @@ native public open class EditingBeforeInputEventInit : EventInit() { } native public open class EditingInputEvent(type: String, eventInitDict: EditingInputEventInit = noImpl) : Event(type, eventInitDict) { - var command: String + open val command: String get() = noImpl - set(value) = noImpl - var value: String + open val value: String get() = noImpl - set(value) = noImpl } native public open class EditingInputEventInit : EventInit() { @@ -5021,24 +4566,32 @@ native public open class EditingInputEventInit : EventInit() { } native public open class DOMPointReadOnly(x: Double, y: Double, z: Double, w: Double) { - var x: Double + open val x: Double get() = noImpl - set(value) = noImpl - var y: Double + open val y: Double get() = noImpl - set(value) = noImpl - var z: Double + open val z: Double get() = noImpl - set(value) = noImpl - var w: Double + open val w: Double get() = noImpl - set(value) = noImpl fun matrixTransform(matrix: DOMMatrixReadOnly): DOMPoint = noImpl } native public open class DOMPoint : DOMPointReadOnly { constructor(point: DOMPointInit = noImpl) : super(noImpl, noImpl, noImpl, noImpl) constructor(x: Double = 0.0, y: Double = 0.0, z: Double = 0.0, w: Double = 1.0) : super(x, y, z, w) + override var x: Double + get() = noImpl + set(value) = noImpl + override var y: Double + get() = noImpl + set(value) = noImpl + override var z: Double + get() = noImpl + set(value) = noImpl + override var w: Double + get() = noImpl + set(value) = noImpl } native public open class DOMPointInit { @@ -5049,33 +4602,37 @@ native public open class DOMPointInit { } native public open class DOMRect(x: Double = 0.0, y: Double = 0.0, width: Double = 0.0, height: Double = 0.0) : DOMRectReadOnly(x, y, width, height) { + override var x: Double + get() = noImpl + set(value) = noImpl + override var y: Double + get() = noImpl + set(value) = noImpl + override var width: Double + get() = noImpl + set(value) = noImpl + override var height: Double + get() = noImpl + set(value) = noImpl } native public open class DOMRectReadOnly(x: Double, y: Double, width: Double, height: Double) { - var x: Double + open val x: Double get() = noImpl - set(value) = noImpl - var y: Double + open val y: Double get() = noImpl - set(value) = noImpl - var width: Double + open val width: Double get() = noImpl - set(value) = noImpl - var height: Double + open val height: Double get() = noImpl - set(value) = noImpl - var top: Double + open val top: Double get() = noImpl - set(value) = noImpl - var right: Double + open val right: Double get() = noImpl - set(value) = noImpl - var bottom: Double + open val bottom: Double get() = noImpl - set(value) = noImpl - var left: Double + open val left: Double get() = noImpl - set(value) = noImpl } native public open class DOMRectInit { @@ -5088,96 +4645,67 @@ native public open class DOMRectInit { native public open class DOMQuad { constructor(p1: DOMPointInit = noImpl, p2: DOMPointInit = noImpl, p3: DOMPointInit = noImpl, p4: DOMPointInit = noImpl) constructor(rect: DOMRectInit = noImpl) - var p1: DOMPoint + open val p1: DOMPoint get() = noImpl - set(value) = noImpl - var p2: DOMPoint + open val p2: DOMPoint get() = noImpl - set(value) = noImpl - var p3: DOMPoint + open val p3: DOMPoint get() = noImpl - set(value) = noImpl - var p4: DOMPoint + open val p4: DOMPoint get() = noImpl - set(value) = noImpl - var bounds: DOMRectReadOnly + open val bounds: DOMRectReadOnly get() = noImpl - set(value) = noImpl } native public open class DOMMatrixReadOnly(numberSequence: Array) { - var a: Double + open val a: Double get() = noImpl - set(value) = noImpl - var b: Double + open val b: Double get() = noImpl - set(value) = noImpl - var c: Double + open val c: Double get() = noImpl - set(value) = noImpl - var d: Double + open val d: Double get() = noImpl - set(value) = noImpl - var e: Double + open val e: Double get() = noImpl - set(value) = noImpl - var f: Double + open val f: Double get() = noImpl - set(value) = noImpl - var m11: Double + open val m11: Double get() = noImpl - set(value) = noImpl - var m12: Double + open val m12: Double get() = noImpl - set(value) = noImpl - var m13: Double + open val m13: Double get() = noImpl - set(value) = noImpl - var m14: Double + open val m14: Double get() = noImpl - set(value) = noImpl - var m21: Double + open val m21: Double get() = noImpl - set(value) = noImpl - var m22: Double + open val m22: Double get() = noImpl - set(value) = noImpl - var m23: Double + open val m23: Double get() = noImpl - set(value) = noImpl - var m24: Double + open val m24: Double get() = noImpl - set(value) = noImpl - var m31: Double + open val m31: Double get() = noImpl - set(value) = noImpl - var m32: Double + open val m32: Double get() = noImpl - set(value) = noImpl - var m33: Double + open val m33: Double get() = noImpl - set(value) = noImpl - var m34: Double + open val m34: Double get() = noImpl - set(value) = noImpl - var m41: Double + open val m41: Double get() = noImpl - set(value) = noImpl - var m42: Double + open val m42: Double get() = noImpl - set(value) = noImpl - var m43: Double + open val m43: Double get() = noImpl - set(value) = noImpl - var m44: Double + open val m44: Double get() = noImpl - set(value) = noImpl - var is2D: Boolean + open val is2D: Boolean get() = noImpl - set(value) = noImpl - var isIdentity: Boolean + open val isIdentity: Boolean get() = noImpl - set(value) = noImpl fun translate(tx: Double, ty: Double, tz: Double = 0.0): DOMMatrix = noImpl fun scale(scale: Double, originX: Double = 0.0, originY: Double = 0.0): DOMMatrix = noImpl fun scale3d(scale: Double, originX: Double = 0.0, originY: Double = 0.0, originZ: Double = 0.0): DOMMatrix = noImpl @@ -5202,6 +4730,72 @@ native public open class DOMMatrix() : DOMMatrixReadOnly(noImpl) { constructor(array32: Float32Array) : this() constructor(array64: Float64Array) : this() constructor(numberSequence: Array) : this() + override var a: Double + get() = noImpl + set(value) = noImpl + override var b: Double + get() = noImpl + set(value) = noImpl + override var c: Double + get() = noImpl + set(value) = noImpl + override var d: Double + get() = noImpl + set(value) = noImpl + override var e: Double + get() = noImpl + set(value) = noImpl + override var f: Double + get() = noImpl + set(value) = noImpl + override var m11: Double + get() = noImpl + set(value) = noImpl + override var m12: Double + get() = noImpl + set(value) = noImpl + override var m13: Double + get() = noImpl + set(value) = noImpl + override var m14: Double + get() = noImpl + set(value) = noImpl + override var m21: Double + get() = noImpl + set(value) = noImpl + override var m22: Double + get() = noImpl + set(value) = noImpl + override var m23: Double + get() = noImpl + set(value) = noImpl + override var m24: Double + get() = noImpl + set(value) = noImpl + override var m31: Double + get() = noImpl + set(value) = noImpl + override var m32: Double + get() = noImpl + set(value) = noImpl + override var m33: Double + get() = noImpl + set(value) = noImpl + override var m34: Double + get() = noImpl + set(value) = noImpl + override var m41: Double + get() = noImpl + set(value) = noImpl + override var m42: Double + get() = noImpl + set(value) = noImpl + override var m43: Double + get() = noImpl + set(value) = noImpl + override var m44: Double + get() = noImpl + set(value) = noImpl fun multiplySelf(other: DOMMatrix): DOMMatrix = noImpl fun preMultiplySelf(other: DOMMatrix): DOMMatrix = noImpl fun translateSelf(tx: Double, ty: Double, tz: Double = 0.0): DOMMatrix = noImpl @@ -5222,44 +4816,34 @@ native public open class ScrollOptions { } native public interface MediaQueryList { - var media: String + val media: String get() = noImpl - set(value) = noImpl - var matches: Boolean + val matches: Boolean get() = noImpl - set(value) = noImpl fun addListener(listener: (MediaQueryList) -> Unit): Unit = noImpl fun removeListener(listener: (MediaQueryList) -> Unit): Unit = noImpl } native public interface Screen { - var availWidth: Double + val availWidth: Double get() = noImpl - set(value) = noImpl - var availHeight: Double + val availHeight: Double get() = noImpl - set(value) = noImpl - var width: Double + val width: Double get() = noImpl - set(value) = noImpl - var height: Double + val height: Double get() = noImpl - set(value) = noImpl - var colorDepth: Int + val colorDepth: Int get() = noImpl - set(value) = noImpl - var pixelDepth: Int + val pixelDepth: Int get() = noImpl - set(value) = noImpl } native public interface CaretPosition { - var offsetNode: Node + val offsetNode: Node get() = noImpl - set(value) = noImpl - var offset: Int + val offset: Int get() = noImpl - set(value) = noImpl fun getClientRect(): DOMRect? = noImpl } 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 3080fc52407..a0f3362919a 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.svg.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.svg.kt @@ -21,57 +21,44 @@ import org.w3c.workers.* import org.w3c.xhr.* native public open class SVGDocument : Document() { - var rootElement: SVGSVGElement + open val rootElement: SVGSVGElement get() = noImpl - set(value) = noImpl } native public interface SVGSVGElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGLocatable, SVGFitToViewBox, SVGZoomAndPan { - var x: SVGAnimatedLength + val x: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var y: SVGAnimatedLength + val y: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var width: SVGAnimatedLength + val width: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var height: SVGAnimatedLength + val height: SVGAnimatedLength get() = noImpl - set(value) = noImpl var contentScriptType: dynamic get() = noImpl set(value) = noImpl var contentStyleType: dynamic get() = noImpl set(value) = noImpl - var viewport: SVGRect + val viewport: SVGRect get() = noImpl - set(value) = noImpl - var pixelUnitToMillimeterX: Float + val pixelUnitToMillimeterX: Float get() = noImpl - set(value) = noImpl - var pixelUnitToMillimeterY: Float + val pixelUnitToMillimeterY: Float get() = noImpl - set(value) = noImpl - var screenPixelToMillimeterX: Float + val screenPixelToMillimeterX: Float get() = noImpl - set(value) = noImpl - var screenPixelToMillimeterY: Float + val screenPixelToMillimeterY: Float get() = noImpl - set(value) = noImpl - var useCurrentView: Boolean + val useCurrentView: Boolean get() = noImpl - set(value) = noImpl - var currentView: SVGViewSpec + val currentView: SVGViewSpec get() = noImpl - set(value) = noImpl var currentScale: Float get() = noImpl set(value) = noImpl - var currentTranslate: SVGPoint + val currentTranslate: SVGPoint get() = noImpl - set(value) = noImpl fun suspendRedraw(maxWaitMilliseconds: Int): Int = noImpl fun unsuspendRedraw(suspendHandleID: Int): Unit = noImpl fun unsuspendRedrawAll(): Unit = noImpl @@ -113,76 +100,56 @@ native public interface SVGSymbolElement : SVGElement, SVGLangSpace, SVGExternal } native public interface SVGUseElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { - var x: SVGAnimatedLength + val x: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var y: SVGAnimatedLength + val y: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var width: SVGAnimatedLength + val width: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var height: SVGAnimatedLength + val height: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var instanceRoot: SVGElementInstance + val instanceRoot: SVGElementInstance get() = noImpl - set(value) = noImpl - var animatedInstanceRoot: SVGElementInstance + val animatedInstanceRoot: SVGElementInstance get() = noImpl - set(value) = noImpl } native public interface SVGElementInstance : EventTarget { - var correspondingElement: SVGElement + val correspondingElement: SVGElement get() = noImpl - set(value) = noImpl - var correspondingUseElement: SVGUseElement + val correspondingUseElement: SVGUseElement get() = noImpl - set(value) = noImpl - var parentNode: SVGElementInstance + val parentNode: SVGElementInstance get() = noImpl - set(value) = noImpl - var childNodes: SVGElementInstanceList + val childNodes: SVGElementInstanceList get() = noImpl - set(value) = noImpl - var firstChild: SVGElementInstance + val firstChild: SVGElementInstance get() = noImpl - set(value) = noImpl - var lastChild: SVGElementInstance + val lastChild: SVGElementInstance get() = noImpl - set(value) = noImpl - var previousSibling: SVGElementInstance + val previousSibling: SVGElementInstance get() = noImpl - set(value) = noImpl - var nextSibling: SVGElementInstance + val nextSibling: SVGElementInstance get() = noImpl - set(value) = noImpl } native public interface SVGElementInstanceList { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl fun item(index: Int): SVGElementInstance = noImpl } native public interface SVGImageElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { - var x: SVGAnimatedLength + val x: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var y: SVGAnimatedLength + val y: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var width: SVGAnimatedLength + val width: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var height: SVGAnimatedLength + val height: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var preserveAspectRatio: SVGAnimatedPreserveAspectRatio + val preserveAspectRatio: SVGAnimatedPreserveAspectRatio get() = noImpl - set(value) = noImpl } native public interface SVGSwitchElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { @@ -199,39 +166,33 @@ native public interface SVGElement : Element { var xmlbase: dynamic get() = noImpl set(value) = noImpl - var ownerSVGElement: SVGSVGElement + val ownerSVGElement: SVGSVGElement get() = noImpl - set(value) = noImpl - var viewportElement: SVGElement + val viewportElement: SVGElement get() = noImpl - set(value) = noImpl - var style: CSSStyleDeclaration + val style: CSSStyleDeclaration get() = noImpl - set(value) = noImpl } native public interface SVGAnimatedBoolean { var baseVal: dynamic get() = noImpl set(value) = noImpl - var animVal: Boolean + val animVal: Boolean get() = noImpl - set(value) = noImpl } native public interface SVGAnimatedString { var baseVal: dynamic get() = noImpl set(value) = noImpl - var animVal: String + val animVal: String get() = noImpl - set(value) = noImpl } native public interface SVGStringList { - var numberOfItems: Int + val numberOfItems: Int get() = noImpl - set(value) = noImpl fun clear(): Unit = noImpl fun initialize(newItem: String): String = noImpl fun getItem(index: Int): String = noImpl @@ -245,18 +206,16 @@ native public interface SVGAnimatedEnumeration { var baseVal: dynamic get() = noImpl set(value) = noImpl - var animVal: Short + val animVal: Short get() = noImpl - set(value) = noImpl } native public interface SVGAnimatedInteger { var baseVal: dynamic get() = noImpl set(value) = noImpl - var animVal: Int + val animVal: Int get() = noImpl - set(value) = noImpl } native public interface SVGNumber { @@ -269,15 +228,13 @@ native public interface SVGAnimatedNumber { var baseVal: dynamic get() = noImpl set(value) = noImpl - var animVal: Float + val animVal: Float get() = noImpl - set(value) = noImpl } native public interface SVGNumberList { - var numberOfItems: Int + val numberOfItems: Int get() = noImpl - set(value) = noImpl fun clear(): Unit = noImpl fun initialize(newItem: SVGNumber): SVGNumber = noImpl fun getItem(index: Int): SVGNumber = noImpl @@ -288,18 +245,15 @@ native public interface SVGNumberList { } native public interface SVGAnimatedNumberList { - var baseVal: SVGNumberList + val baseVal: SVGNumberList get() = noImpl - set(value) = noImpl - var animVal: SVGNumberList + val animVal: SVGNumberList get() = noImpl - set(value) = noImpl } native public interface SVGLength { - var unitType: Short + val unitType: Short get() = noImpl - set(value) = noImpl var value: dynamic get() = noImpl set(value) = noImpl @@ -328,18 +282,15 @@ native public interface SVGLength { } native public interface SVGAnimatedLength { - var baseVal: SVGLength + val baseVal: SVGLength get() = noImpl - set(value) = noImpl - var animVal: SVGLength + val animVal: SVGLength get() = noImpl - set(value) = noImpl } native public interface SVGLengthList { - var numberOfItems: Int + val numberOfItems: Int get() = noImpl - set(value) = noImpl fun clear(): Unit = noImpl fun initialize(newItem: SVGLength): SVGLength = noImpl fun getItem(index: Int): SVGLength = noImpl @@ -350,18 +301,15 @@ native public interface SVGLengthList { } native public interface SVGAnimatedLengthList { - var baseVal: SVGLengthList + val baseVal: SVGLengthList get() = noImpl - set(value) = noImpl - var animVal: SVGLengthList + val animVal: SVGLengthList get() = noImpl - set(value) = noImpl } native public interface SVGAngle { - var unitType: Short + val unitType: Short get() = noImpl - set(value) = noImpl var value: dynamic get() = noImpl set(value) = noImpl @@ -384,24 +332,19 @@ native public interface SVGAngle { } native public interface SVGAnimatedAngle { - var baseVal: SVGAngle + val baseVal: SVGAngle get() = noImpl - set(value) = noImpl - var animVal: SVGAngle + val animVal: SVGAngle get() = noImpl - set(value) = noImpl } native public interface SVGColor { - var colorType: Short + val colorType: Short get() = noImpl - set(value) = noImpl - var rgbColor: dynamic + val rgbColor: dynamic get() = noImpl - set(value) = noImpl - var iccColor: SVGICCColor + val iccColor: SVGICCColor get() = noImpl - set(value) = noImpl fun setRGBColor(rgbColor: String): Unit = noImpl fun setRGBColorICCColor(rgbColor: String, iccColor: String): Unit = noImpl fun setColor(colorType: Short, rgbColor: String, iccColor: String): Unit = noImpl @@ -418,9 +361,8 @@ native public interface SVGICCColor { var colorProfile: dynamic get() = noImpl set(value) = noImpl - var colors: SVGNumberList + val colors: SVGNumberList get() = noImpl - set(value) = noImpl } native public interface SVGRect { @@ -439,12 +381,10 @@ native public interface SVGRect { } native public interface SVGAnimatedRect { - var baseVal: SVGRect + val baseVal: SVGRect get() = noImpl - set(value) = noImpl - var animVal: SVGRect + val animVal: SVGRect get() = noImpl - set(value) = noImpl } native public interface SVGUnitTypes { @@ -461,12 +401,10 @@ native public interface SVGStylable { } native public interface SVGLocatable { - var nearestViewportElement: SVGElement + val nearestViewportElement: SVGElement get() = noImpl - set(value) = noImpl - var farthestViewportElement: SVGElement + val farthestViewportElement: SVGElement get() = noImpl - set(value) = noImpl fun getBBox(): SVGRect = noImpl fun getCTM(): SVGMatrix = noImpl fun getScreenCTM(): SVGMatrix = noImpl @@ -474,21 +412,17 @@ native public interface SVGLocatable { } native public interface SVGTransformable : SVGLocatable { - var transform: SVGAnimatedTransformList + val transform: SVGAnimatedTransformList get() = noImpl - set(value) = noImpl } native public interface SVGTests { - var requiredFeatures: SVGStringList + val requiredFeatures: SVGStringList get() = noImpl - set(value) = noImpl - var requiredExtensions: SVGStringList + val requiredExtensions: SVGStringList get() = noImpl - set(value) = noImpl - var systemLanguage: SVGStringList + val systemLanguage: SVGStringList get() = noImpl - set(value) = noImpl fun hasExtension(extension: String): Boolean = noImpl } @@ -502,18 +436,15 @@ native public interface SVGLangSpace { } native public interface SVGExternalResourcesRequired { - var externalResourcesRequired: SVGAnimatedBoolean + val externalResourcesRequired: SVGAnimatedBoolean get() = noImpl - set(value) = noImpl } native public interface SVGFitToViewBox { - var viewBox: SVGAnimatedRect + val viewBox: SVGAnimatedRect get() = noImpl - set(value) = noImpl - var preserveAspectRatio: SVGAnimatedPreserveAspectRatio + val preserveAspectRatio: SVGAnimatedPreserveAspectRatio get() = noImpl - set(value) = noImpl } native public interface SVGZoomAndPan { @@ -529,30 +460,23 @@ native public interface SVGZoomAndPan { } native public interface SVGViewSpec : SVGZoomAndPan, SVGFitToViewBox { - var transform: SVGTransformList + val transform: SVGTransformList get() = noImpl - set(value) = noImpl - var viewTarget: SVGElement + val viewTarget: SVGElement get() = noImpl - set(value) = noImpl - var viewBoxString: String + val viewBoxString: String get() = noImpl - set(value) = noImpl - var preserveAspectRatioString: String + val preserveAspectRatioString: String get() = noImpl - set(value) = noImpl - var transformString: String + val transformString: String get() = noImpl - set(value) = noImpl - var viewTargetString: String + val viewTargetString: String get() = noImpl - set(value) = noImpl } native public interface SVGURIReference { - var href: SVGAnimatedString + val href: SVGAnimatedString get() = noImpl - set(value) = noImpl } native public interface SVGCSSRule : CSSRule { @@ -597,9 +521,8 @@ native public interface SVGPoint { } native public interface SVGPointList { - var numberOfItems: Int + val numberOfItems: Int get() = noImpl - set(value) = noImpl fun clear(): Unit = noImpl fun initialize(newItem: SVGPoint): SVGPoint = noImpl fun getItem(index: Int): SVGPoint = noImpl @@ -642,15 +565,12 @@ native public interface SVGMatrix { } native public interface SVGTransform { - var type: Short + val type: Short get() = noImpl - set(value) = noImpl - var matrix: SVGMatrix + val matrix: SVGMatrix get() = noImpl - set(value) = noImpl - var angle: Float + val angle: Float get() = noImpl - set(value) = noImpl fun setMatrix(matrix: SVGMatrix): Unit = noImpl fun setTranslate(tx: Float, ty: Float): Unit = noImpl fun setScale(sx: Float, sy: Float): Unit = noImpl @@ -670,9 +590,8 @@ native public interface SVGTransform { } native public interface SVGTransformList { - var numberOfItems: Int + val numberOfItems: Int get() = noImpl - set(value) = noImpl fun clear(): Unit = noImpl fun initialize(newItem: SVGTransform): SVGTransform = noImpl fun getItem(index: Int): SVGTransform = noImpl @@ -685,12 +604,10 @@ native public interface SVGTransformList { } native public interface SVGAnimatedTransformList { - var baseVal: SVGTransformList + val baseVal: SVGTransformList get() = noImpl - set(value) = noImpl - var animVal: SVGTransformList + val animVal: SVGTransformList get() = noImpl - set(value) = noImpl } native public interface SVGPreserveAspectRatio { @@ -720,21 +637,17 @@ native public interface SVGPreserveAspectRatio { } native public interface SVGAnimatedPreserveAspectRatio { - var baseVal: SVGPreserveAspectRatio + val baseVal: SVGPreserveAspectRatio get() = noImpl - set(value) = noImpl - var animVal: SVGPreserveAspectRatio + val animVal: SVGPreserveAspectRatio get() = noImpl - set(value) = noImpl } native public interface SVGPathSeg { - var pathSegType: Short + val pathSegType: Short get() = noImpl - set(value) = noImpl - var pathSegTypeAsLetter: String + val pathSegTypeAsLetter: String get() = noImpl - set(value) = noImpl companion object { val PATHSEG_UNKNOWN: Short = 0 @@ -992,9 +905,8 @@ native public interface SVGPathSegCurvetoQuadraticSmoothRel : SVGPathSeg { } native public interface SVGPathSegList { - var numberOfItems: Int + val numberOfItems: Int get() = noImpl - set(value) = noImpl fun clear(): Unit = noImpl fun initialize(newItem: SVGPathSeg): SVGPathSeg = noImpl fun getItem(index: Int): SVGPathSeg = noImpl @@ -1005,24 +917,19 @@ native public interface SVGPathSegList { } native public interface SVGAnimatedPathData { - var pathSegList: SVGPathSegList + val pathSegList: SVGPathSegList get() = noImpl - set(value) = noImpl - var normalizedPathSegList: SVGPathSegList + val normalizedPathSegList: SVGPathSegList get() = noImpl - set(value) = noImpl - var animatedPathSegList: SVGPathSegList + val animatedPathSegList: SVGPathSegList get() = noImpl - set(value) = noImpl - var animatedNormalizedPathSegList: SVGPathSegList + val animatedNormalizedPathSegList: SVGPathSegList get() = noImpl - set(value) = noImpl } native public interface SVGPathElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGAnimatedPathData { - var pathLength: SVGAnimatedNumber + val pathLength: SVGAnimatedNumber get() = noImpl - set(value) = noImpl fun getTotalLength(): Float = noImpl fun getPointAtLength(distance: Float): SVGPoint = noImpl fun getPathSegAtLength(distance: Float): Int = noImpl @@ -1048,75 +955,56 @@ native public interface SVGPathElement : SVGElement, SVGTests, SVGLangSpace, SVG } native public interface SVGRectElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { - var x: SVGAnimatedLength + val x: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var y: SVGAnimatedLength + val y: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var width: SVGAnimatedLength + val width: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var height: SVGAnimatedLength + val height: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var rx: SVGAnimatedLength + val rx: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var ry: SVGAnimatedLength + val ry: SVGAnimatedLength get() = noImpl - set(value) = noImpl } native public interface SVGCircleElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { - var cx: SVGAnimatedLength + val cx: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var cy: SVGAnimatedLength + val cy: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var r: SVGAnimatedLength + val r: SVGAnimatedLength get() = noImpl - set(value) = noImpl } native public interface SVGEllipseElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { - var cx: SVGAnimatedLength + val cx: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var cy: SVGAnimatedLength + val cy: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var rx: SVGAnimatedLength + val rx: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var ry: SVGAnimatedLength + val ry: SVGAnimatedLength get() = noImpl - set(value) = noImpl } native public interface SVGLineElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { - var x1: SVGAnimatedLength + val x1: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var y1: SVGAnimatedLength + val y1: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var x2: SVGAnimatedLength + val x2: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var y2: SVGAnimatedLength + val y2: SVGAnimatedLength get() = noImpl - set(value) = noImpl } native public interface SVGAnimatedPoints { - var points: SVGPointList + val points: SVGPointList get() = noImpl - set(value) = noImpl - var animatedPoints: SVGPointList + val animatedPoints: SVGPointList get() = noImpl - set(value) = noImpl } native public interface SVGPolylineElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGAnimatedPoints { @@ -1126,12 +1014,10 @@ native public interface SVGPolygonElement : SVGElement, SVGTests, SVGLangSpace, } native public interface SVGTextContentElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable { - var textLength: SVGAnimatedLength + val textLength: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var lengthAdjust: SVGAnimatedEnumeration + val lengthAdjust: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl fun getNumberOfChars(): Int = noImpl fun getComputedTextLength(): Float = noImpl fun getSubStringLength(charnum: Int, nchars: Int): Float = noImpl @@ -1150,21 +1036,16 @@ native public interface SVGTextContentElement : SVGElement, SVGTests, SVGLangSpa } native public interface SVGTextPositioningElement : SVGTextContentElement { - var x: SVGAnimatedLengthList + val x: SVGAnimatedLengthList get() = noImpl - set(value) = noImpl - var y: SVGAnimatedLengthList + val y: SVGAnimatedLengthList get() = noImpl - set(value) = noImpl - var dx: SVGAnimatedLengthList + val dx: SVGAnimatedLengthList get() = noImpl - set(value) = noImpl - var dy: SVGAnimatedLengthList + val dy: SVGAnimatedLengthList get() = noImpl - set(value) = noImpl - var rotate: SVGAnimatedNumberList + val rotate: SVGAnimatedNumberList get() = noImpl - set(value) = noImpl } native public interface SVGTextElement : SVGTextPositioningElement, SVGTransformable { @@ -1177,15 +1058,12 @@ native public interface SVGTRefElement : SVGTextPositioningElement, SVGURIRefere } native public interface SVGTextPathElement : SVGTextContentElement, SVGURIReference { - var startOffset: SVGAnimatedLength + val startOffset: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var method: SVGAnimatedEnumeration + val method: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var spacing: SVGAnimatedEnumeration + val spacing: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl companion object { val TEXTPATH_METHODTYPE_UNKNOWN: Short = 0 @@ -1234,12 +1112,10 @@ native public interface SVGGlyphRefElement : SVGElement, SVGURIReference, SVGSty } native public interface SVGPaint : SVGColor { - var paintType: Short + val paintType: Short get() = noImpl - set(value) = noImpl - var uri: String + val uri: String get() = noImpl - set(value) = noImpl fun setUri(uri: String): Unit = noImpl fun setPaint(paintType: Short, uri: String, rgbColor: String, iccColor: String): Unit = noImpl @@ -1258,27 +1134,20 @@ native public interface SVGPaint : SVGColor { } native public interface SVGMarkerElement : SVGElement, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox { - var refX: SVGAnimatedLength + val refX: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var refY: SVGAnimatedLength + val refY: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var markerUnits: SVGAnimatedEnumeration + val markerUnits: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var markerWidth: SVGAnimatedLength + val markerWidth: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var markerHeight: SVGAnimatedLength + val markerHeight: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var orientType: SVGAnimatedEnumeration + val orientType: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var orientAngle: SVGAnimatedAngle + val orientAngle: SVGAnimatedAngle get() = noImpl - set(value) = noImpl fun setOrientToAuto(): Unit = noImpl fun setOrientToAngle(angle: SVGAngle): Unit = noImpl @@ -1317,15 +1186,12 @@ native public interface SVGColorProfileRule : SVGCSSRule, SVGRenderingIntent { } native public interface SVGGradientElement : SVGElement, SVGURIReference, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { - var gradientUnits: SVGAnimatedEnumeration + val gradientUnits: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var gradientTransform: SVGAnimatedTransformList + val gradientTransform: SVGAnimatedTransformList get() = noImpl - set(value) = noImpl - var spreadMethod: SVGAnimatedEnumeration + val spreadMethod: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl companion object { val SVG_SPREADMETHOD_UNKNOWN: Short = 0 @@ -1336,151 +1202,111 @@ native public interface SVGGradientElement : SVGElement, SVGURIReference, SVGExt } native public interface SVGLinearGradientElement : SVGGradientElement { - var x1: SVGAnimatedLength + val x1: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var y1: SVGAnimatedLength + val y1: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var x2: SVGAnimatedLength + val x2: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var y2: SVGAnimatedLength + val y2: SVGAnimatedLength get() = noImpl - set(value) = noImpl } native public interface SVGRadialGradientElement : SVGGradientElement { - var cx: SVGAnimatedLength + val cx: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var cy: SVGAnimatedLength + val cy: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var r: SVGAnimatedLength + val r: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var fx: SVGAnimatedLength + val fx: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var fy: SVGAnimatedLength + val fy: SVGAnimatedLength get() = noImpl - set(value) = noImpl } native public interface SVGStopElement : SVGElement, SVGStylable { - var offset: SVGAnimatedNumber + val offset: SVGAnimatedNumber get() = noImpl - set(value) = noImpl } native public interface SVGPatternElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox, SVGUnitTypes { - var patternUnits: SVGAnimatedEnumeration + val patternUnits: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var patternContentUnits: SVGAnimatedEnumeration + val patternContentUnits: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var patternTransform: SVGAnimatedTransformList + val patternTransform: SVGAnimatedTransformList get() = noImpl - set(value) = noImpl - var x: SVGAnimatedLength + val x: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var y: SVGAnimatedLength + val y: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var width: SVGAnimatedLength + val width: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var height: SVGAnimatedLength + val height: SVGAnimatedLength get() = noImpl - set(value) = noImpl } native public interface SVGClipPathElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGUnitTypes { - var clipPathUnits: SVGAnimatedEnumeration + val clipPathUnits: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl } native public interface SVGMaskElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { - var maskUnits: SVGAnimatedEnumeration + val maskUnits: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var maskContentUnits: SVGAnimatedEnumeration + val maskContentUnits: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var x: SVGAnimatedLength + val x: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var y: SVGAnimatedLength + val y: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var width: SVGAnimatedLength + val width: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var height: SVGAnimatedLength + val height: SVGAnimatedLength get() = noImpl - set(value) = noImpl } native public interface SVGFilterElement : SVGElement, SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { - var filterUnits: SVGAnimatedEnumeration + val filterUnits: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var primitiveUnits: SVGAnimatedEnumeration + val primitiveUnits: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var x: SVGAnimatedLength + val x: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var y: SVGAnimatedLength + val y: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var width: SVGAnimatedLength + val width: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var height: SVGAnimatedLength + val height: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var filterResX: SVGAnimatedInteger + val filterResX: SVGAnimatedInteger get() = noImpl - set(value) = noImpl - var filterResY: SVGAnimatedInteger + val filterResY: SVGAnimatedInteger get() = noImpl - set(value) = noImpl fun setFilterRes(filterResX: Int, filterResY: Int): Unit = noImpl } native public interface SVGFilterPrimitiveStandardAttributes : SVGStylable { - var x: SVGAnimatedLength + val x: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var y: SVGAnimatedLength + val y: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var width: SVGAnimatedLength + val width: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var height: SVGAnimatedLength + val height: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var result: SVGAnimatedString + val result: SVGAnimatedString get() = noImpl - set(value) = noImpl } native public interface SVGFEBlendElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - var in1: SVGAnimatedString + val in1: SVGAnimatedString get() = noImpl - set(value) = noImpl - var in2: SVGAnimatedString + val in2: SVGAnimatedString get() = noImpl - set(value) = noImpl - var mode: SVGAnimatedEnumeration + val mode: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl companion object { val SVG_FEBLEND_MODE_UNKNOWN: Short = 0 @@ -1493,15 +1319,12 @@ native public interface SVGFEBlendElement : SVGElement, SVGFilterPrimitiveStanda } native public interface SVGFEColorMatrixElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - var in1: SVGAnimatedString + val in1: SVGAnimatedString get() = noImpl - set(value) = noImpl - var type: SVGAnimatedEnumeration + val type: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var values: SVGAnimatedNumberList + val values: SVGAnimatedNumberList get() = noImpl - set(value) = noImpl companion object { val SVG_FECOLORMATRIX_TYPE_UNKNOWN: Short = 0 @@ -1513,33 +1336,25 @@ native public interface SVGFEColorMatrixElement : SVGElement, SVGFilterPrimitive } native public interface SVGFEComponentTransferElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - var in1: SVGAnimatedString + val in1: SVGAnimatedString get() = noImpl - set(value) = noImpl } native public interface SVGComponentTransferFunctionElement : SVGElement { - var type: SVGAnimatedEnumeration + val type: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var tableValues: SVGAnimatedNumberList + val tableValues: SVGAnimatedNumberList get() = noImpl - set(value) = noImpl - var slope: SVGAnimatedNumber + val slope: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var intercept: SVGAnimatedNumber + val intercept: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var amplitude: SVGAnimatedNumber + val amplitude: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var exponent: SVGAnimatedNumber + val exponent: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var offset: SVGAnimatedNumber + val offset: SVGAnimatedNumber get() = noImpl - set(value) = noImpl companion object { val SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: Short = 0 @@ -1564,27 +1379,20 @@ native public interface SVGFEFuncAElement : SVGComponentTransferFunctionElement } native public interface SVGFECompositeElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - var in1: SVGAnimatedString + val in1: SVGAnimatedString get() = noImpl - set(value) = noImpl - var in2: SVGAnimatedString + val in2: SVGAnimatedString get() = noImpl - set(value) = noImpl - var operator: SVGAnimatedEnumeration + val operator: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var k1: SVGAnimatedNumber + val k1: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var k2: SVGAnimatedNumber + val k2: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var k3: SVGAnimatedNumber + val k3: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var k4: SVGAnimatedNumber + val k4: SVGAnimatedNumber get() = noImpl - set(value) = noImpl companion object { val SVG_FECOMPOSITE_OPERATOR_UNKNOWN: Short = 0 @@ -1598,42 +1406,30 @@ native public interface SVGFECompositeElement : SVGElement, SVGFilterPrimitiveSt } native public interface SVGFEConvolveMatrixElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - var in1: SVGAnimatedString + val in1: SVGAnimatedString get() = noImpl - set(value) = noImpl - var orderX: SVGAnimatedInteger + val orderX: SVGAnimatedInteger get() = noImpl - set(value) = noImpl - var orderY: SVGAnimatedInteger + val orderY: SVGAnimatedInteger get() = noImpl - set(value) = noImpl - var kernelMatrix: SVGAnimatedNumberList + val kernelMatrix: SVGAnimatedNumberList get() = noImpl - set(value) = noImpl - var divisor: SVGAnimatedNumber + val divisor: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var bias: SVGAnimatedNumber + val bias: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var targetX: SVGAnimatedInteger + val targetX: SVGAnimatedInteger get() = noImpl - set(value) = noImpl - var targetY: SVGAnimatedInteger + val targetY: SVGAnimatedInteger get() = noImpl - set(value) = noImpl - var edgeMode: SVGAnimatedEnumeration + val edgeMode: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var kernelUnitLengthX: SVGAnimatedNumber + val kernelUnitLengthX: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var kernelUnitLengthY: SVGAnimatedNumber + val kernelUnitLengthY: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var preserveAlpha: SVGAnimatedBoolean + val preserveAlpha: SVGAnimatedBoolean get() = noImpl - set(value) = noImpl companion object { val SVG_EDGEMODE_UNKNOWN: Short = 0 @@ -1644,87 +1440,64 @@ native public interface SVGFEConvolveMatrixElement : SVGElement, SVGFilterPrimit } native public interface SVGFEDiffuseLightingElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - var in1: SVGAnimatedString + val in1: SVGAnimatedString get() = noImpl - set(value) = noImpl - var surfaceScale: SVGAnimatedNumber + val surfaceScale: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var diffuseConstant: SVGAnimatedNumber + val diffuseConstant: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var kernelUnitLengthX: SVGAnimatedNumber + val kernelUnitLengthX: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var kernelUnitLengthY: SVGAnimatedNumber + val kernelUnitLengthY: SVGAnimatedNumber get() = noImpl - set(value) = noImpl } native public interface SVGFEDistantLightElement : SVGElement { - var azimuth: SVGAnimatedNumber + val azimuth: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var elevation: SVGAnimatedNumber + val elevation: SVGAnimatedNumber get() = noImpl - set(value) = noImpl } native public interface SVGFEPointLightElement : SVGElement { - var x: SVGAnimatedNumber + val x: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var y: SVGAnimatedNumber + val y: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var z: SVGAnimatedNumber + val z: SVGAnimatedNumber get() = noImpl - set(value) = noImpl } native public interface SVGFESpotLightElement : SVGElement { - var x: SVGAnimatedNumber + val x: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var y: SVGAnimatedNumber + val y: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var z: SVGAnimatedNumber + val z: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var pointsAtX: SVGAnimatedNumber + val pointsAtX: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var pointsAtY: SVGAnimatedNumber + val pointsAtY: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var pointsAtZ: SVGAnimatedNumber + val pointsAtZ: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var specularExponent: SVGAnimatedNumber + val specularExponent: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var limitingConeAngle: SVGAnimatedNumber + val limitingConeAngle: SVGAnimatedNumber get() = noImpl - set(value) = noImpl } native public interface SVGFEDisplacementMapElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - var in1: SVGAnimatedString + val in1: SVGAnimatedString get() = noImpl - set(value) = noImpl - var in2: SVGAnimatedString + val in2: SVGAnimatedString get() = noImpl - set(value) = noImpl - var scale: SVGAnimatedNumber + val scale: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var xChannelSelector: SVGAnimatedEnumeration + val xChannelSelector: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var yChannelSelector: SVGAnimatedEnumeration + val yChannelSelector: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl companion object { val SVG_CHANNEL_UNKNOWN: Short = 0 @@ -1739,46 +1512,37 @@ native public interface SVGFEFloodElement : SVGElement, SVGFilterPrimitiveStanda } native public interface SVGFEGaussianBlurElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - var in1: SVGAnimatedString + val in1: SVGAnimatedString get() = noImpl - set(value) = noImpl - var stdDeviationX: SVGAnimatedNumber + val stdDeviationX: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var stdDeviationY: SVGAnimatedNumber + val stdDeviationY: SVGAnimatedNumber get() = noImpl - set(value) = noImpl fun setStdDeviation(stdDeviationX: Float, stdDeviationY: Float): Unit = noImpl } native public interface SVGFEImageElement : SVGElement, SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGFilterPrimitiveStandardAttributes { - var preserveAspectRatio: SVGAnimatedPreserveAspectRatio + val preserveAspectRatio: SVGAnimatedPreserveAspectRatio get() = noImpl - set(value) = noImpl } native public interface SVGFEMergeElement : SVGElement, SVGFilterPrimitiveStandardAttributes { } native public interface SVGFEMergeNodeElement : SVGElement { - var in1: SVGAnimatedString + val in1: SVGAnimatedString get() = noImpl - set(value) = noImpl } native public interface SVGFEMorphologyElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - var in1: SVGAnimatedString + val in1: SVGAnimatedString get() = noImpl - set(value) = noImpl - var operator: SVGAnimatedEnumeration + val operator: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var radiusX: SVGAnimatedNumber + val radiusX: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var radiusY: SVGAnimatedNumber + val radiusY: SVGAnimatedNumber get() = noImpl - set(value) = noImpl companion object { val SVG_MORPHOLOGY_OPERATOR_UNKNOWN: Short = 0 @@ -1788,63 +1552,47 @@ native public interface SVGFEMorphologyElement : SVGElement, SVGFilterPrimitiveS } native public interface SVGFEOffsetElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - var in1: SVGAnimatedString + val in1: SVGAnimatedString get() = noImpl - set(value) = noImpl - var dx: SVGAnimatedNumber + val dx: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var dy: SVGAnimatedNumber + val dy: SVGAnimatedNumber get() = noImpl - set(value) = noImpl } native public interface SVGFESpecularLightingElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - var in1: SVGAnimatedString + val in1: SVGAnimatedString get() = noImpl - set(value) = noImpl - var surfaceScale: SVGAnimatedNumber + val surfaceScale: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var specularConstant: SVGAnimatedNumber + val specularConstant: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var specularExponent: SVGAnimatedNumber + val specularExponent: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var kernelUnitLengthX: SVGAnimatedNumber + val kernelUnitLengthX: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var kernelUnitLengthY: SVGAnimatedNumber + val kernelUnitLengthY: SVGAnimatedNumber get() = noImpl - set(value) = noImpl } native public interface SVGFETileElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - var in1: SVGAnimatedString + val in1: SVGAnimatedString get() = noImpl - set(value) = noImpl } native public interface SVGFETurbulenceElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - var baseFrequencyX: SVGAnimatedNumber + val baseFrequencyX: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var baseFrequencyY: SVGAnimatedNumber + val baseFrequencyY: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var numOctaves: SVGAnimatedInteger + val numOctaves: SVGAnimatedInteger get() = noImpl - set(value) = noImpl - var seed: SVGAnimatedNumber + val seed: SVGAnimatedNumber get() = noImpl - set(value) = noImpl - var stitchTiles: SVGAnimatedEnumeration + val stitchTiles: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var type: SVGAnimatedEnumeration + val type: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl companion object { val SVG_TURBULENCE_TYPE_UNKNOWN: Short = 0 @@ -1857,24 +1605,20 @@ native public interface SVGFETurbulenceElement : SVGElement, SVGFilterPrimitiveS } native public interface SVGCursorElement : SVGElement, SVGURIReference, SVGTests, SVGExternalResourcesRequired { - var x: SVGAnimatedLength + val x: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var y: SVGAnimatedLength + val y: SVGAnimatedLength get() = noImpl - set(value) = noImpl } native public interface SVGAElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { - var target: SVGAnimatedString + val target: SVGAnimatedString get() = noImpl - set(value) = noImpl } native public interface SVGViewElement : SVGElement, SVGExternalResourcesRequired, SVGFitToViewBox, SVGZoomAndPan { - var viewTarget: SVGStringList + val viewTarget: SVGStringList get() = noImpl - set(value) = noImpl } native public interface SVGScriptElement : SVGElement, SVGURIReference, SVGExternalResourcesRequired { @@ -1884,21 +1628,16 @@ native public interface SVGScriptElement : SVGElement, SVGURIReference, SVGExter } native public open class SVGZoomEvent : UIEvent(noImpl, noImpl) { - var zoomRectScreen: SVGRect + open val zoomRectScreen: SVGRect get() = noImpl - set(value) = noImpl - var previousScale: Float + open val previousScale: Float get() = noImpl - set(value) = noImpl - var previousTranslate: SVGPoint + open val previousTranslate: SVGPoint get() = noImpl - set(value) = noImpl - var newScale: Float + open val newScale: Float get() = noImpl - set(value) = noImpl - var newTranslate: SVGPoint + open val newTranslate: SVGPoint get() = noImpl - set(value) = noImpl } native public interface ElementTimeControl { @@ -1909,19 +1648,16 @@ native public interface ElementTimeControl { } native public open class TimeEvent : Event(noImpl, noImpl) { - var view: dynamic + open val view: dynamic get() = noImpl - set(value) = noImpl - var detail: Int + open val detail: Int get() = noImpl - set(value) = noImpl fun initTimeEvent(typeArg: String, viewArg: dynamic, detailArg: Int): Unit = noImpl } native public interface SVGAnimationElement : SVGElement, SVGTests, SVGExternalResourcesRequired, ElementTimeControl { - var targetElement: SVGElement + val targetElement: SVGElement get() = noImpl - set(value) = noImpl fun getStartTime(): Float = noImpl fun getCurrentTime(): Float = noImpl fun getSimpleDuration(): Float = noImpl @@ -1979,17 +1715,13 @@ native public interface SVGMetadataElement : SVGElement { } native public interface SVGForeignObjectElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { - var x: SVGAnimatedLength + val x: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var y: SVGAnimatedLength + val y: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var width: SVGAnimatedLength + val width: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var height: SVGAnimatedLength + val height: SVGAnimatedLength get() = noImpl - set(value) = noImpl } 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 e362543c3bf..72f101470b7 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.url.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.url.kt @@ -24,9 +24,8 @@ native public open class URL(url: String, base: String = noImpl) { var href: String get() = noImpl set(value) = noImpl - var origin: String + open val origin: String get() = noImpl - set(value) = noImpl var protocol: String get() = noImpl set(value) = noImpl diff --git a/js/js.libraries/src/generated/org.w3c.fetch.kt b/js/js.libraries/src/generated/org.w3c.fetch.kt index 4b3517e9c4c..3260156cc77 100644 --- a/js/js.libraries/src/generated/org.w3c.fetch.kt +++ b/js/js.libraries/src/generated/org.w3c.fetch.kt @@ -30,36 +30,26 @@ native public open class Headers(init: dynamic = noImpl) { } native public open class Request(input: dynamic, init: RequestInit = noImpl) { - var method: String + open val method: String get() = noImpl - set(value) = noImpl - var url: String + open val url: String get() = noImpl - set(value) = noImpl - var headers: Headers + open val headers: Headers get() = noImpl - set(value) = noImpl - var context: String + open val context: String get() = noImpl - set(value) = noImpl - var referrer: String + open val referrer: String get() = noImpl - set(value) = noImpl - var mode: String + open val mode: String get() = noImpl - set(value) = noImpl - var credentials: String + open val credentials: String get() = noImpl - set(value) = noImpl - var cache: String + open val cache: String get() = noImpl - set(value) = noImpl - var redirect: String + open val redirect: String get() = noImpl - set(value) = noImpl - var bodyUsed: Boolean + open val bodyUsed: Boolean get() = noImpl - set(value) = noImpl fun clone(): Request = noImpl fun arrayBuffer(): dynamic = noImpl fun blob(): dynamic = noImpl @@ -79,27 +69,20 @@ native public open class RequestInit { } native public open class Response(body: dynamic = noImpl, init: ResponseInit = noImpl) { - var type: String + open val type: String get() = noImpl - set(value) = noImpl - var url: String + open val url: String get() = noImpl - set(value) = noImpl - var status: Short + open val status: Short get() = noImpl - set(value) = noImpl - var ok: Boolean + open val ok: Boolean get() = noImpl - set(value) = noImpl - var statusText: String + open val statusText: String get() = noImpl - set(value) = noImpl - var headers: Headers + open val headers: Headers get() = noImpl - set(value) = noImpl - var bodyUsed: Boolean + open val bodyUsed: Boolean get() = noImpl - set(value) = noImpl fun clone(): Response = noImpl fun arrayBuffer(): dynamic = noImpl fun blob(): dynamic = noImpl diff --git a/js/js.libraries/src/generated/org.w3c.files.kt b/js/js.libraries/src/generated/org.w3c.files.kt index 26002075743..a74ca876d34 100644 --- a/js/js.libraries/src/generated/org.w3c.files.kt +++ b/js/js.libraries/src/generated/org.w3c.files.kt @@ -22,15 +22,12 @@ import org.w3c.xhr.* native public open class Blob() : ImageBitmapSource { constructor(blobParts: Array, options: BlobPropertyBag = noImpl) : this() - var size: Long + open val size: Long get() = noImpl - set(value) = noImpl - var type: String + open val type: String get() = noImpl - set(value) = noImpl - var isClosed: Boolean + open val isClosed: Boolean get() = noImpl - set(value) = noImpl fun slice(start: Long = noImpl, end: Long = noImpl, contentType: String = noImpl): Blob = noImpl fun close(): Unit = noImpl } @@ -40,12 +37,10 @@ native public open class BlobPropertyBag { } native public open class File(fileBits: Array, fileName: String, options: FilePropertyBag = noImpl) : Blob() { - var name: String + open val name: String get() = noImpl - set(value) = noImpl - var lastModified: Long + open val lastModified: Long get() = noImpl - set(value) = noImpl } native public open class FilePropertyBag { @@ -54,23 +49,19 @@ native public open class FilePropertyBag { } native public interface FileList { - var length: Int + val length: Int get() = noImpl - set(value) = noImpl fun item(index: Int): File? = noImpl nativeGetter fun get(index: Int): File? = noImpl } native public open class FileReader : EventTarget { - var readyState: Short + open val readyState: Short get() = noImpl - set(value) = noImpl - var result: dynamic + open val result: dynamic get() = noImpl - set(value) = noImpl - var error: dynamic + open val error: dynamic get() = noImpl - set(value) = noImpl var onloadstart: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl diff --git a/js/js.libraries/src/generated/org.w3c.notifications.kt b/js/js.libraries/src/generated/org.w3c.notifications.kt index f6252a73be1..c13ee9df069 100644 --- a/js/js.libraries/src/generated/org.w3c.notifications.kt +++ b/js/js.libraries/src/generated/org.w3c.notifications.kt @@ -27,42 +27,30 @@ native public open class Notification(title: String, options: NotificationOption var onerror: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var title: String + open val title: String get() = noImpl - set(value) = noImpl - var dir: String + open val dir: String get() = noImpl - set(value) = noImpl - var lang: String + open val lang: String get() = noImpl - set(value) = noImpl - var body: String + open val body: String get() = noImpl - set(value) = noImpl - var tag: String + open val tag: String get() = noImpl - set(value) = noImpl - var icon: String + open val icon: String get() = noImpl - set(value) = noImpl - var sound: String + open val sound: String get() = noImpl - set(value) = noImpl - var renotify: Boolean + open val renotify: Boolean get() = noImpl - set(value) = noImpl - var silent: Boolean + open val silent: Boolean get() = noImpl - set(value) = noImpl - var noscreen: Boolean + open val noscreen: Boolean get() = noImpl - set(value) = noImpl - var sticky: Boolean + open val sticky: Boolean get() = noImpl - set(value) = noImpl - var data: Any? + open val data: Any? get() = noImpl - set(value) = noImpl fun close(): Unit = noImpl companion object { @@ -93,9 +81,8 @@ native public open class GetNotificationOptions { } native public open class NotificationEvent(type: String, eventInitDict: NotificationEventInit = noImpl) : ExtendableEvent(type, eventInitDict) { - var notification: Notification + open val notification: Notification get() = noImpl - set(value) = noImpl } native public open class NotificationEventInit : ExtendableEventInit() { diff --git a/js/js.libraries/src/generated/org.w3c.performance.kt b/js/js.libraries/src/generated/org.w3c.performance.kt index 46d051f2b2f..98f6714d26e 100644 --- a/js/js.libraries/src/generated/org.w3c.performance.kt +++ b/js/js.libraries/src/generated/org.w3c.performance.kt @@ -21,88 +21,63 @@ import org.w3c.workers.* import org.w3c.xhr.* native public interface Performance { - var timing: PerformanceTiming + val timing: PerformanceTiming get() = noImpl - set(value) = noImpl - var navigation: PerformanceNavigation + val navigation: PerformanceNavigation get() = noImpl - set(value) = noImpl fun now(): Double = noImpl } native public interface PerformanceTiming { - var navigationStart: Long + val navigationStart: Long get() = noImpl - set(value) = noImpl - var unloadEventStart: Long + val unloadEventStart: Long get() = noImpl - set(value) = noImpl - var unloadEventEnd: Long + val unloadEventEnd: Long get() = noImpl - set(value) = noImpl - var redirectStart: Long + val redirectStart: Long get() = noImpl - set(value) = noImpl - var redirectEnd: Long + val redirectEnd: Long get() = noImpl - set(value) = noImpl - var fetchStart: Long + val fetchStart: Long get() = noImpl - set(value) = noImpl - var domainLookupStart: Long + val domainLookupStart: Long get() = noImpl - set(value) = noImpl - var domainLookupEnd: Long + val domainLookupEnd: Long get() = noImpl - set(value) = noImpl - var connectStart: Long + val connectStart: Long get() = noImpl - set(value) = noImpl - var connectEnd: Long + val connectEnd: Long get() = noImpl - set(value) = noImpl - var secureConnectionStart: Long + val secureConnectionStart: Long get() = noImpl - set(value) = noImpl - var requestStart: Long + val requestStart: Long get() = noImpl - set(value) = noImpl - var responseStart: Long + val responseStart: Long get() = noImpl - set(value) = noImpl - var responseEnd: Long + val responseEnd: Long get() = noImpl - set(value) = noImpl - var domLoading: Long + val domLoading: Long get() = noImpl - set(value) = noImpl - var domInteractive: Long + val domInteractive: Long get() = noImpl - set(value) = noImpl - var domContentLoadedEventStart: Long + val domContentLoadedEventStart: Long get() = noImpl - set(value) = noImpl - var domContentLoadedEventEnd: Long + val domContentLoadedEventEnd: Long get() = noImpl - set(value) = noImpl - var domComplete: Long + val domComplete: Long get() = noImpl - set(value) = noImpl - var loadEventStart: Long + val loadEventStart: Long get() = noImpl - set(value) = noImpl - var loadEventEnd: Long + val loadEventEnd: Long get() = noImpl - set(value) = noImpl } native public interface PerformanceNavigation { - var type: Short + val type: Short get() = noImpl - set(value) = noImpl - var redirectCount: Short + val redirectCount: Short get() = noImpl - set(value) = noImpl companion object { val TYPE_NAVIGATE: Short = 0 diff --git a/js/js.libraries/src/generated/org.w3c.workers.kt b/js/js.libraries/src/generated/org.w3c.workers.kt index 7d475f56586..ba12a5fe879 100644 --- a/js/js.libraries/src/generated/org.w3c.workers.kt +++ b/js/js.libraries/src/generated/org.w3c.workers.kt @@ -21,24 +21,19 @@ import org.w3c.performance.* import org.w3c.xhr.* native public interface ServiceWorkerRegistration : EventTarget { - var installing: ServiceWorker? + val installing: ServiceWorker? get() = noImpl - set(value) = noImpl - var waiting: ServiceWorker? + val waiting: ServiceWorker? get() = noImpl - set(value) = noImpl - var active: ServiceWorker? + val active: ServiceWorker? get() = noImpl - set(value) = noImpl - var scope: String + val scope: String get() = noImpl - set(value) = noImpl var onupdatefound: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var APISpace: dynamic + val APISpace: dynamic get() = noImpl - set(value) = noImpl fun update(): Unit = noImpl fun unregister(): dynamic = noImpl fun methodName(of: dynamic): dynamic = noImpl @@ -47,12 +42,10 @@ native public interface ServiceWorkerRegistration : EventTarget { } native public interface ServiceWorkerGlobalScope : WorkerGlobalScope { - var clients: Clients + val clients: Clients get() = noImpl - set(value) = noImpl - var registration: ServiceWorkerRegistration + val registration: ServiceWorkerRegistration get() = noImpl - set(value) = noImpl var oninstall: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -75,15 +68,12 @@ native public interface ServiceWorkerGlobalScope : WorkerGlobalScope { } native public interface ServiceWorker : EventTarget, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker { - var scriptURL: String + val scriptURL: String get() = noImpl - set(value) = noImpl - var state: String + val state: String get() = noImpl - set(value) = noImpl - var id: String + val id: String get() = noImpl - set(value) = noImpl var onstatechange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -94,12 +84,10 @@ native public interface ServiceWorker : EventTarget, UnionMessagePortOrServiceWo } native public interface ServiceWorkerContainer : EventTarget { - var controller: ServiceWorker? + val controller: ServiceWorker? get() = noImpl - set(value) = noImpl - var ready: dynamic + val ready: dynamic get() = noImpl - set(value) = noImpl var oncontrollerchange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -119,21 +107,16 @@ native public open class RegistrationOptions { } native public open class ServiceWorkerMessageEvent(type: String, eventInitDict: ServiceWorkerMessageEventInit = noImpl) : Event(type, eventInitDict) { - var data: Any? + open val data: Any? get() = noImpl - set(value) = noImpl - var origin: String + open val origin: String get() = noImpl - set(value) = noImpl - var lastEventId: String + open val lastEventId: String get() = noImpl - set(value) = noImpl - var source: UnionMessagePortOrServiceWorker? + open val source: UnionMessagePortOrServiceWorker? get() = noImpl - set(value) = noImpl - var ports: Array? + open val ports: Array? get() = noImpl - set(value) = noImpl fun initServiceWorkerMessageEvent(typeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean, dataArg: Any?, originArg: String, lastEventIdArg: String, sourceArg: UnionMessagePortOrServiceWorker, portsArg: Array?): Unit = noImpl } @@ -146,25 +129,20 @@ native public open class ServiceWorkerMessageEventInit : EventInit() { } native public interface Client : UnionClientOrMessagePortOrServiceWorker { - var url: String + val url: String get() = noImpl - set(value) = noImpl - var frameType: String + val frameType: String get() = noImpl - set(value) = noImpl - var id: String + val id: String get() = noImpl - set(value) = noImpl fun postMessage(message: Any?, transfer: Array = noImpl): Unit = noImpl } native public interface WindowClient : Client { - var visibilityState: dynamic + val visibilityState: dynamic get() = noImpl - set(value) = noImpl - var focused: Boolean + val focused: Boolean get() = noImpl - set(value) = noImpl fun focus(): dynamic = noImpl } @@ -187,15 +165,12 @@ native public open class ExtendableEventInit : EventInit() { } native public open class FetchEvent(type: String, eventInitDict: FetchEventInit = noImpl) : ExtendableEvent(type, eventInitDict) { - var request: Request + open val request: Request get() = noImpl - set(value) = noImpl - var client: Client + open val client: Client get() = noImpl - set(value) = noImpl - var isReload: Boolean + open val isReload: Boolean get() = noImpl - set(value) = noImpl fun respondWith(r: dynamic): Unit = noImpl } @@ -206,21 +181,16 @@ native public open class FetchEventInit : ExtendableEventInit() { } native public open class ExtendableMessageEvent(type: String, eventInitDict: ExtendableMessageEventInit = noImpl) : ExtendableEvent(type, eventInitDict) { - var data: Any? + open val data: Any? get() = noImpl - set(value) = noImpl - var origin: String + open val origin: String get() = noImpl - set(value) = noImpl - var lastEventId: String + open val lastEventId: String get() = noImpl - set(value) = noImpl - var source: UnionClientOrMessagePortOrServiceWorker? + open val source: UnionClientOrMessagePortOrServiceWorker? get() = noImpl - set(value) = noImpl - var ports: Array? + open val ports: Array? get() = noImpl - set(value) = noImpl fun initExtendableMessageEvent(typeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean, dataArg: Any?, originArg: String, lastEventIdArg: String, sourceArg: UnionClientOrMessagePortOrServiceWorker, portsArg: Array?): Unit = noImpl } diff --git a/js/js.libraries/src/generated/org.w3c.xhr.kt b/js/js.libraries/src/generated/org.w3c.xhr.kt index f0d9c597944..1058d23603a 100644 --- a/js/js.libraries/src/generated/org.w3c.xhr.kt +++ b/js/js.libraries/src/generated/org.w3c.xhr.kt @@ -51,39 +51,31 @@ native public open class XMLHttpRequest : XMLHttpRequestEventTarget { var onreadystatechange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var readyState: Short + open val readyState: Short get() = noImpl - set(value) = noImpl var timeout: Int get() = noImpl set(value) = noImpl var withCredentials: Boolean get() = noImpl set(value) = noImpl - var upload: XMLHttpRequestUpload + open val upload: XMLHttpRequestUpload get() = noImpl - set(value) = noImpl - var responseURL: String + open val responseURL: String get() = noImpl - set(value) = noImpl - var status: Short + open val status: Short get() = noImpl - set(value) = noImpl - var statusText: String + open val statusText: String get() = noImpl - set(value) = noImpl var responseType: String get() = noImpl set(value) = noImpl - var response: Any? + open val response: Any? get() = noImpl - set(value) = noImpl - var responseText: String + open val responseText: String get() = noImpl - set(value) = noImpl - var responseXML: Document? + open val responseXML: Document? get() = noImpl - set(value) = noImpl fun open(method: String, url: String): Unit = noImpl fun open(method: String, url: String, async: Boolean, username: String? = null, password: String? = null): Unit = noImpl fun setRequestHeader(name: String, value: String): Unit = noImpl @@ -112,15 +104,12 @@ native public open class FormData(form: HTMLFormElement = noImpl) { } native public open class ProgressEvent(type: String, eventInitDict: ProgressEventInit = noImpl) : Event(type, eventInitDict) { - var lengthComputable: Boolean + open val lengthComputable: Boolean get() = noImpl - set(value) = noImpl - var loaded: Long + open val loaded: Long get() = noImpl - set(value) = noImpl - var total: Long + open val total: Long get() = noImpl - set(value) = noImpl } native public open class ProgressEventInit : EventInit() { diff --git a/libraries/tools/idl2k/src/main/kotlin/idl.kt b/libraries/tools/idl2k/src/main/kotlin/idl.kt index 9ac857f2bf0..0ebdd783fa8 100644 --- a/libraries/tools/idl2k/src/main/kotlin/idl.kt +++ b/libraries/tools/idl2k/src/main/kotlin/idl.kt @@ -421,6 +421,14 @@ class DefinitionVisitor(val extendedAttributes: List, val nam return defaultResult() } + override fun visitReadonlyMemberRest(ctx: ReadonlyMemberRestContext?): Definition? { + readOnly = true + visitChildren(ctx) + readOnly = false + + return defaultResult() + } + override fun visitStaticMember(ctx: WebIDLParser.StaticMemberContext): Definition { static = true visitChildren(ctx) diff --git a/libraries/tools/idl2k/src/main/kotlin/render.kt b/libraries/tools/idl2k/src/main/kotlin/render.kt index e7c142480d0..9ddf27179bc 100644 --- a/libraries/tools/idl2k/src/main/kotlin/render.kt +++ b/libraries/tools/idl2k/src/main/kotlin/render.kt @@ -8,11 +8,12 @@ private fun O.indent(level: Int) { } } -private fun Appendable.renderAttributeDeclaration(arg: GenerateAttribute, override: Boolean, level: Int = 1) { +private fun Appendable.renderAttributeDeclaration(arg: GenerateAttribute, override: Boolean, open: Boolean, level: Int = 1) { indent(level) - if (override) { - append("override ") + when { + override -> append("override ") + open -> append("open ") } append(if (arg.readOnly) "val" else "var") @@ -85,6 +86,12 @@ private fun Appendable.renderFunctionDeclaration(f: GenerateFunction, override: appendln(": ${f.returnType.render()} = noImpl") } +private fun List.hasNoVars() = none { it.isVar } +private val GenerateAttribute.isVal: Boolean + get() = readOnly +private val GenerateAttribute.isVar: Boolean + get() = !readOnly + fun Appendable.render(allTypes: Map, typeNamesToUnions: Map>, iface: GenerateTraitOrClass, markerAnnotation: Boolean = false) { append("native public ") if (markerAnnotation) { @@ -130,11 +137,15 @@ fun Appendable.render(allTypes: Map, typeNamesToUn } val superAttributes = allSuperTypes.flatMap { it.memberAttributes }.distinct() + val superAttributesByName = superAttributes.groupBy { it.name } val superFunctions = allSuperTypes.flatMap { it.memberFunctions }.distinct() val superSignatures = superAttributes.map { it.signature } merge superFunctions.map { it.signature } - iface.memberAttributes.filter { it !in superAttributes && !it.static }.map { it.dynamicIfUnknownType(allTypes.keySet()) }.groupBy { it.signature }.reduceValues().values().forEach { arg -> - renderAttributeDeclaration(arg, arg.signature in superSignatures) + iface.memberAttributes + .filter { it !in superAttributes && !it.static && (it.isVar || (it.isVal && superAttributesByName[it.name]?.hasNoVars() ?: true)) } + .map { it.dynamicIfUnknownType(allTypes.keySet()) } + .groupBy { it.signature }.reduceValues().values().forEach { arg -> + renderAttributeDeclaration(arg, override = arg.signature in superSignatures, open = iface.kind == GenerateDefinitionKind.CLASS && arg.readOnly) } iface.memberFunctions.filter { it !in superFunctions && !it.static }.map { it.dynamicIfUnknownType(allTypes.keySet()) }.groupBy { it.signature }.reduceValues(::betterFunction).values().forEach { renderFunctionDeclaration(it, it.signature in superSignatures) @@ -148,10 +159,10 @@ fun Appendable.render(allTypes: Map, typeNamesToUn indent(1) appendln("companion object {") iface.constants.forEach { - renderAttributeDeclaration(it, override = false, level = 2) + renderAttributeDeclaration(it, override = false, open = false, level = 2) } staticAttributes.forEach { - renderAttributeDeclaration(it, override = false, level = 2) + renderAttributeDeclaration(it, override = false, open = false, level = 2) } staticFunctions.forEach { renderFunctionDeclaration(it, override = false, level = 2)