diff --git a/js/js.libraries/src/generated/org.khronos.webgl.kt b/js/js.libraries/src/generated/org.khronos.webgl.kt index b318e7cee73..ce748ae37bf 100644 --- a/js/js.libraries/src/generated/org.khronos.webgl.kt +++ b/js/js.libraries/src/generated/org.khronos.webgl.kt @@ -30,31 +30,31 @@ native public open class WebGLContextAttributes { var failIfMajorPerformanceCaveat: Boolean = false } -native public trait WebGLObject { +native public interface WebGLObject { } -native public trait WebGLBuffer : WebGLObject { +native public interface WebGLBuffer : WebGLObject { } -native public trait WebGLFramebuffer : WebGLObject { +native public interface WebGLFramebuffer : WebGLObject { } -native public trait WebGLProgram : WebGLObject { +native public interface WebGLProgram : WebGLObject { } -native public trait WebGLRenderbuffer : WebGLObject { +native public interface WebGLRenderbuffer : WebGLObject { } -native public trait WebGLShader : WebGLObject { +native public interface WebGLShader : WebGLObject { } -native public trait WebGLTexture : WebGLObject { +native public interface WebGLTexture : WebGLObject { } -native public trait WebGLUniformLocation { +native public interface WebGLUniformLocation { } -native public trait WebGLActiveInfo { +native public interface WebGLActiveInfo { var size: Int get() = noImpl set(value) = noImpl @@ -66,7 +66,7 @@ native public trait WebGLActiveInfo { set(value) = noImpl } -native public trait WebGLShaderPrecisionFormat { +native public interface WebGLShaderPrecisionFormat { var rangeMin: Int get() = noImpl set(value) = noImpl @@ -78,7 +78,7 @@ native public trait WebGLShaderPrecisionFormat { set(value) = noImpl } -native public trait WebGLRenderingContext : RenderingContext { +native public interface WebGLRenderingContext : RenderingContext { var canvas: HTMLCanvasElement get() = noImpl set(value) = 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 8e68a14993e..70e56890d5c 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.css.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.css.kt @@ -19,7 +19,7 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* -native public trait MediaList { +native public interface MediaList { var mediaText: String get() = noImpl set(value) = noImpl @@ -32,7 +32,7 @@ native public trait MediaList { fun deleteMedium(medium: String): Unit = noImpl } -native public trait StyleSheet { +native public interface StyleSheet { var type: String get() = noImpl set(value) = noImpl @@ -56,7 +56,7 @@ native public trait StyleSheet { set(value) = noImpl } -native public trait CSSStyleSheet : StyleSheet { +native public interface CSSStyleSheet : StyleSheet { var ownerRule: CSSRule? get() = noImpl set(value) = noImpl @@ -67,7 +67,7 @@ native public trait CSSStyleSheet : StyleSheet { fun deleteRule(index: Int): Unit = noImpl } -native public trait StyleSheetList { +native public interface StyleSheetList { var length: Int get() = noImpl set(value) = noImpl @@ -75,7 +75,7 @@ native public trait StyleSheetList { nativeGetter fun get(index: Int): StyleSheet? = noImpl } -native public trait CSSRuleList { +native public interface CSSRuleList { var length: Int get() = noImpl set(value) = noImpl @@ -83,7 +83,7 @@ native public trait CSSRuleList { nativeGetter fun get(index: Int): CSSRule? = noImpl } -native public trait CSSRule { +native public interface CSSRule { var type: Short get() = noImpl set(value) = noImpl @@ -109,7 +109,7 @@ native public trait CSSRule { } } -native public trait CSSStyleRule : CSSRule { +native public interface CSSStyleRule : CSSRule { var selectorText: String get() = noImpl set(value) = noImpl @@ -118,7 +118,7 @@ native public trait CSSStyleRule : CSSRule { set(value) = noImpl } -native public trait CSSImportRule : CSSRule { +native public interface CSSImportRule : CSSRule { var href: String get() = noImpl set(value) = noImpl @@ -130,7 +130,7 @@ native public trait CSSImportRule : CSSRule { set(value) = noImpl } -native public trait CSSGroupingRule : CSSRule { +native public interface CSSGroupingRule : CSSRule { var cssRules: CSSRuleList get() = noImpl set(value) = noImpl @@ -138,13 +138,13 @@ native public trait CSSGroupingRule : CSSRule { fun deleteRule(index: Int): Unit = noImpl } -native public trait CSSMediaRule : CSSGroupingRule { +native public interface CSSMediaRule : CSSGroupingRule { var media: MediaList get() = noImpl set(value) = noImpl } -native public trait CSSPageRule : CSSGroupingRule { +native public interface CSSPageRule : CSSGroupingRule { var selectorText: String get() = noImpl set(value) = noImpl @@ -153,7 +153,7 @@ native public trait CSSPageRule : CSSGroupingRule { set(value) = noImpl } -native public trait CSSMarginRule : CSSRule { +native public interface CSSMarginRule : CSSRule { var name: String get() = noImpl set(value) = noImpl @@ -162,7 +162,7 @@ native public trait CSSMarginRule : CSSRule { set(value) = noImpl } -native public trait CSSNamespaceRule : CSSRule { +native public interface CSSNamespaceRule : CSSRule { var namespaceURI: String get() = noImpl set(value) = noImpl @@ -171,7 +171,7 @@ native public trait CSSNamespaceRule : CSSRule { set(value) = noImpl } -native public trait CSSStyleDeclaration { +native public interface CSSStyleDeclaration { var alignContent: String get() = noImpl set(value) = noImpl @@ -869,7 +869,7 @@ native public trait CSSStyleDeclaration { fun removeProperty(property: String): String = noImpl } -native public trait PseudoElement { +native public interface PseudoElement { var cascadedStyle: CSSStyleDeclaration get() = noImpl set(value) = noImpl @@ -884,6 +884,6 @@ native public trait PseudoElement { set(value) = noImpl } -native public trait CSS { +native public interface CSS { } 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 7bca6f67ce7..50dd88db376 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.events.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.events.kt @@ -101,7 +101,7 @@ native public open class Event(type: String, eventInitDict: EventInit = noImpl) } } -native public trait EventTarget { +native public interface EventTarget { fun addEventListener(type: String, callback: EventListener?, capture: Boolean = false): Unit = noImpl fun addEventListener(type: String, callback: ((Event) -> Unit)?, capture: Boolean = false): Unit = noImpl fun removeEventListener(type: String, callback: EventListener?, capture: Boolean = false): Unit = noImpl @@ -109,7 +109,7 @@ native public trait EventTarget { fun dispatchEvent(event: Event): Boolean = noImpl } -native public trait EventListener { +native public interface EventListener { fun handleEvent(event: Event): Unit = noImpl } diff --git a/js/js.libraries/src/generated/org.w3c.dom.kt b/js/js.libraries/src/generated/org.w3c.dom.kt index b2164783a45..77c40526005 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.kt @@ -19,24 +19,24 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* -native public trait HTMLAllCollection : HTMLCollection { +native public interface HTMLAllCollection : HTMLCollection { fun item(name: String): UnionElementOrHTMLCollection? = noImpl // override fun namedItem(name: String): UnionElementOrHTMLCollection? = noImpl // nativeGetter override fun get(name: String): UnionElementOrHTMLCollection? = noImpl } -native public trait HTMLFormControlsCollection : HTMLCollection { +native public interface HTMLFormControlsCollection : HTMLCollection { // override fun namedItem(name: String): UnionElementOrRadioNodeList? = noImpl // nativeGetter override fun get(name: String): UnionElementOrRadioNodeList? = noImpl } -native public trait RadioNodeList : NodeList, UnionElementOrRadioNodeList { +native public interface RadioNodeList : NodeList, UnionElementOrRadioNodeList { var value: String get() = noImpl set(value) = noImpl } -native public trait HTMLOptionsCollection : HTMLCollection { +native public interface HTMLOptionsCollection : HTMLCollection { var selectedIndex: Int get() = noImpl set(value) = noImpl @@ -45,7 +45,7 @@ native public trait HTMLOptionsCollection : HTMLCollection { fun remove(index: Int): Unit = noImpl } -native public trait HTMLPropertiesCollection : HTMLCollection { +native public interface HTMLPropertiesCollection : HTMLCollection { var names: Array get() = noImpl set(value) = noImpl @@ -53,16 +53,16 @@ native public trait HTMLPropertiesCollection : HTMLCollection { // nativeGetter override fun get(name: String): PropertyNodeList? = noImpl } -native public trait PropertyNodeList : NodeList { +native public interface PropertyNodeList : NodeList { fun getValues(): Array = noImpl } -native public trait DOMStringMap { +native public interface DOMStringMap { nativeGetter fun get(name: String): String? = noImpl nativeSetter fun set(name: String, value: String): Unit = noImpl } -native public trait DOMElementMap { +native public interface DOMElementMap { nativeGetter fun get(name: String): Element? = noImpl nativeSetter fun set(name: String, value: Element): Unit = noImpl } @@ -472,7 +472,7 @@ native public open class XMLDocument : Document() { fun load(url: String): Boolean = noImpl } -native public trait HTMLElement : Element { +native public interface HTMLElement : Element { var title: String get() = noImpl set(value) = noImpl @@ -755,25 +755,25 @@ native public trait HTMLElement : Element { fun forceSpellCheck(): Unit = noImpl } -native public trait HTMLUnknownElement : HTMLElement { +native public interface HTMLUnknownElement : HTMLElement { } -native public trait HTMLHtmlElement : HTMLElement { +native public interface HTMLHtmlElement : HTMLElement { var version: String get() = noImpl set(value) = noImpl } -native public trait HTMLHeadElement : HTMLElement { +native public interface HTMLHeadElement : HTMLElement { } -native public trait HTMLTitleElement : HTMLElement { +native public interface HTMLTitleElement : HTMLElement { var text: String get() = noImpl set(value) = noImpl } -native public trait HTMLBaseElement : HTMLElement { +native public interface HTMLBaseElement : HTMLElement { var href: String get() = noImpl set(value) = noImpl @@ -782,7 +782,7 @@ native public trait HTMLBaseElement : HTMLElement { set(value) = noImpl } -native public trait HTMLLinkElement : HTMLElement { +native public interface HTMLLinkElement : HTMLElement { var href: String get() = noImpl set(value) = noImpl @@ -821,7 +821,7 @@ native public trait HTMLLinkElement : HTMLElement { set(value) = noImpl } -native public trait HTMLMetaElement : HTMLElement { +native public interface HTMLMetaElement : HTMLElement { var name: String get() = noImpl set(value) = noImpl @@ -836,7 +836,7 @@ native public trait HTMLMetaElement : HTMLElement { set(value) = noImpl } -native public trait HTMLStyleElement : HTMLElement { +native public interface HTMLStyleElement : HTMLElement { var media: String get() = noImpl set(value) = noImpl @@ -851,7 +851,7 @@ native public trait HTMLStyleElement : HTMLElement { set(value) = noImpl } -native public trait HTMLBodyElement : HTMLElement { +native public interface HTMLBodyElement : HTMLElement { var text: String get() = noImpl set(value) = noImpl @@ -911,19 +911,19 @@ native public trait HTMLBodyElement : HTMLElement { set(value) = noImpl } -native public trait HTMLHeadingElement : HTMLElement { +native public interface HTMLHeadingElement : HTMLElement { var align: String get() = noImpl set(value) = noImpl } -native public trait HTMLParagraphElement : HTMLElement { +native public interface HTMLParagraphElement : HTMLElement { var align: String get() = noImpl set(value) = noImpl } -native public trait HTMLHRElement : HTMLElement { +native public interface HTMLHRElement : HTMLElement { var align: String get() = noImpl set(value) = noImpl @@ -941,19 +941,19 @@ native public trait HTMLHRElement : HTMLElement { set(value) = noImpl } -native public trait HTMLPreElement : HTMLElement { +native public interface HTMLPreElement : HTMLElement { var width: Int get() = noImpl set(value) = noImpl } -native public trait HTMLQuoteElement : HTMLElement { +native public interface HTMLQuoteElement : HTMLElement { var cite: String get() = noImpl set(value) = noImpl } -native public trait HTMLOListElement : HTMLElement { +native public interface HTMLOListElement : HTMLElement { var reversed: Boolean get() = noImpl set(value) = noImpl @@ -968,7 +968,7 @@ native public trait HTMLOListElement : HTMLElement { set(value) = noImpl } -native public trait HTMLUListElement : HTMLElement { +native public interface HTMLUListElement : HTMLElement { var compact: Boolean get() = noImpl set(value) = noImpl @@ -977,7 +977,7 @@ native public trait HTMLUListElement : HTMLElement { set(value) = noImpl } -native public trait HTMLLIElement : HTMLElement { +native public interface HTMLLIElement : HTMLElement { var value: Int get() = noImpl set(value) = noImpl @@ -986,19 +986,19 @@ native public trait HTMLLIElement : HTMLElement { set(value) = noImpl } -native public trait HTMLDListElement : HTMLElement { +native public interface HTMLDListElement : HTMLElement { var compact: Boolean get() = noImpl set(value) = noImpl } -native public trait HTMLDivElement : HTMLElement { +native public interface HTMLDivElement : HTMLElement { var align: String get() = noImpl set(value) = noImpl } -native public trait HTMLAnchorElement : HTMLElement { +native public interface HTMLAnchorElement : HTMLElement { var target: String get() = noImpl set(value) = noImpl @@ -1040,28 +1040,28 @@ native public trait HTMLAnchorElement : HTMLElement { set(value) = noImpl } -native public trait HTMLDataElement : HTMLElement { +native public interface HTMLDataElement : HTMLElement { var value: String get() = noImpl set(value) = noImpl } -native public trait HTMLTimeElement : HTMLElement { +native public interface HTMLTimeElement : HTMLElement { var dateTime: String get() = noImpl set(value) = noImpl } -native public trait HTMLSpanElement : HTMLElement { +native public interface HTMLSpanElement : HTMLElement { } -native public trait HTMLBRElement : HTMLElement { +native public interface HTMLBRElement : HTMLElement { var clear: String get() = noImpl set(value) = noImpl } -native public trait HTMLModElement : HTMLElement { +native public interface HTMLModElement : HTMLElement { var cite: String get() = noImpl set(value) = noImpl @@ -1070,7 +1070,7 @@ native public trait HTMLModElement : HTMLElement { set(value) = noImpl } -native public trait HTMLIFrameElement : HTMLElement { +native public interface HTMLIFrameElement : HTMLElement { var src: String get() = noImpl set(value) = noImpl @@ -1122,7 +1122,7 @@ native public trait HTMLIFrameElement : HTMLElement { fun getSVGDocument(): Document? = noImpl } -native public trait HTMLEmbedElement : HTMLElement { +native public interface HTMLEmbedElement : HTMLElement { var src: String get() = noImpl set(value) = noImpl @@ -1144,7 +1144,7 @@ native public trait HTMLEmbedElement : HTMLElement { fun getSVGDocument(): Document? = noImpl } -native public trait HTMLObjectElement : HTMLElement { +native public interface HTMLObjectElement : HTMLElement { var data: String get() = noImpl set(value) = noImpl @@ -1220,7 +1220,7 @@ native public trait HTMLObjectElement : HTMLElement { fun setCustomValidity(error: String): Unit = noImpl } -native public trait HTMLParamElement : HTMLElement { +native public interface HTMLParamElement : HTMLElement { var name: String get() = noImpl set(value) = noImpl @@ -1235,7 +1235,7 @@ native public trait HTMLParamElement : HTMLElement { set(value) = noImpl } -native public trait HTMLVideoElement : HTMLMediaElement, CanvasImageSource, ImageBitmapSource { +native public interface HTMLVideoElement : HTMLMediaElement, CanvasImageSource, ImageBitmapSource { var width: Int get() = noImpl set(value) = noImpl @@ -1253,10 +1253,10 @@ native public trait HTMLVideoElement : HTMLMediaElement, CanvasImageSource, Imag set(value) = noImpl } -native public trait HTMLAudioElement : HTMLMediaElement { +native public interface HTMLAudioElement : HTMLMediaElement { } -native public trait HTMLSourceElement : HTMLElement { +native public interface HTMLSourceElement : HTMLElement { var src: String get() = noImpl set(value) = noImpl @@ -1274,7 +1274,7 @@ native public trait HTMLSourceElement : HTMLElement { set(value) = noImpl } -native public trait HTMLTrackElement : HTMLElement { +native public interface HTMLTrackElement : HTMLElement { var kind: String get() = noImpl set(value) = noImpl @@ -1305,7 +1305,7 @@ native public trait HTMLTrackElement : HTMLElement { } } -native public trait HTMLMediaElement : HTMLElement { +native public interface HTMLMediaElement : HTMLElement { var error: MediaError? get() = noImpl set(value) = noImpl @@ -1414,7 +1414,7 @@ native public trait HTMLMediaElement : HTMLElement { } } -native public trait MediaError { +native public interface MediaError { var code: Short get() = noImpl set(value) = noImpl @@ -1427,7 +1427,7 @@ native public trait MediaError { } } -native public trait AudioTrackList : EventTarget { +native public interface AudioTrackList : EventTarget { var length: Int get() = noImpl set(value) = noImpl @@ -1444,7 +1444,7 @@ native public trait AudioTrackList : EventTarget { fun getTrackById(id: String): AudioTrack? = noImpl } -native public trait AudioTrack : UnionAudioTrackOrTextTrackOrVideoTrack { +native public interface AudioTrack : UnionAudioTrackOrTextTrackOrVideoTrack { var id: String get() = noImpl set(value) = noImpl @@ -1462,7 +1462,7 @@ native public trait AudioTrack : UnionAudioTrackOrTextTrackOrVideoTrack { set(value) = noImpl } -native public trait VideoTrackList : EventTarget { +native public interface VideoTrackList : EventTarget { var length: Int get() = noImpl set(value) = noImpl @@ -1482,7 +1482,7 @@ native public trait VideoTrackList : EventTarget { fun getTrackById(id: String): VideoTrack? = noImpl } -native public trait VideoTrack : UnionAudioTrackOrTextTrackOrVideoTrack { +native public interface VideoTrack : UnionAudioTrackOrTextTrackOrVideoTrack { var id: String get() = noImpl set(value) = noImpl @@ -1584,7 +1584,7 @@ native public open class MediaController : EventTarget { fun play(): Unit = noImpl } -native public trait TextTrackList : EventTarget { +native public interface TextTrackList : EventTarget { var length: Int get() = noImpl set(value) = noImpl @@ -1601,7 +1601,7 @@ native public trait TextTrackList : EventTarget { fun getTrackById(id: String): TextTrack? = noImpl } -native public trait TextTrack : EventTarget, UnionAudioTrackOrTextTrackOrVideoTrack { +native public interface TextTrack : EventTarget, UnionAudioTrackOrTextTrackOrVideoTrack { var kind: String get() = noImpl set(value) = noImpl @@ -1633,7 +1633,7 @@ native public trait TextTrack : EventTarget, UnionAudioTrackOrTextTrackOrVideoTr fun removeCue(cue: TextTrackCue): Unit = noImpl } -native public trait TextTrackCueList { +native public interface TextTrackCueList { var length: Int get() = noImpl set(value) = noImpl @@ -1641,7 +1641,7 @@ native public trait TextTrackCueList { fun getCueById(id: String): TextTrackCue? = noImpl } -native public trait TextTrackCue : EventTarget { +native public interface TextTrackCue : EventTarget { var track: TextTrack? get() = noImpl set(value) = noImpl @@ -1665,7 +1665,7 @@ native public trait TextTrackCue : EventTarget { set(value) = noImpl } -native public trait TimeRanges { +native public interface TimeRanges { var length: Int get() = noImpl set(value) = noImpl @@ -1683,7 +1683,7 @@ native public open class TrackEventInit : EventInit() { var track: UnionAudioTrackOrTextTrackOrVideoTrack? } -native public trait HTMLMapElement : HTMLElement { +native public interface HTMLMapElement : HTMLElement { var name: String get() = noImpl set(value) = noImpl @@ -1695,7 +1695,7 @@ native public trait HTMLMapElement : HTMLElement { set(value) = noImpl } -native public trait HTMLAreaElement : HTMLElement { +native public interface HTMLAreaElement : HTMLElement { var alt: String get() = noImpl set(value) = noImpl @@ -1731,7 +1731,7 @@ native public trait HTMLAreaElement : HTMLElement { set(value) = noImpl } -native public trait HTMLTableElement : HTMLElement { +native public interface HTMLTableElement : HTMLElement { var caption: HTMLTableCaptionElement? get() = noImpl set(value) = noImpl @@ -1789,13 +1789,13 @@ native public trait HTMLTableElement : HTMLElement { fun stopSorting(): Unit = noImpl } -native public trait HTMLTableCaptionElement : HTMLElement { +native public interface HTMLTableCaptionElement : HTMLElement { var align: String get() = noImpl set(value) = noImpl } -native public trait HTMLTableColElement : HTMLElement { +native public interface HTMLTableColElement : HTMLElement { var span: Int get() = noImpl set(value) = noImpl @@ -1816,7 +1816,7 @@ native public trait HTMLTableColElement : HTMLElement { set(value) = noImpl } -native public trait HTMLTableSectionElement : HTMLElement { +native public interface HTMLTableSectionElement : HTMLElement { var rows: HTMLCollection get() = noImpl set(value) = noImpl @@ -1836,7 +1836,7 @@ native public trait HTMLTableSectionElement : HTMLElement { fun deleteRow(index: Int): Unit = noImpl } -native public trait HTMLTableRowElement : HTMLElement { +native public interface HTMLTableRowElement : HTMLElement { var rowIndex: Int get() = noImpl set(value) = noImpl @@ -1865,13 +1865,13 @@ native public trait HTMLTableRowElement : HTMLElement { fun deleteCell(index: Int): Unit = noImpl } -native public trait HTMLTableDataCellElement : HTMLTableCellElement { +native public interface HTMLTableDataCellElement : HTMLTableCellElement { var abbr: String get() = noImpl set(value) = noImpl } -native public trait HTMLTableHeaderCellElement : HTMLTableCellElement { +native public interface HTMLTableHeaderCellElement : HTMLTableCellElement { var scope: String get() = noImpl set(value) = noImpl @@ -1884,7 +1884,7 @@ native public trait HTMLTableHeaderCellElement : HTMLTableCellElement { fun sort(): Unit = noImpl } -native public trait HTMLTableCellElement : HTMLElement { +native public interface HTMLTableCellElement : HTMLElement { var colSpan: Int get() = noImpl set(value) = noImpl @@ -1926,7 +1926,7 @@ native public trait HTMLTableCellElement : HTMLElement { set(value) = noImpl } -native public trait HTMLFormElement : HTMLElement { +native public interface HTMLFormElement : HTMLElement { var acceptCharset: String get() = noImpl set(value) = noImpl @@ -1969,7 +1969,7 @@ native public trait HTMLFormElement : HTMLElement { fun requestAutocomplete(): Unit = noImpl } -native public trait HTMLLabelElement : HTMLElement { +native public interface HTMLLabelElement : HTMLElement { var form: HTMLFormElement? get() = noImpl set(value) = noImpl @@ -1981,7 +1981,7 @@ native public trait HTMLLabelElement : HTMLElement { set(value) = noImpl } -native public trait HTMLInputElement : HTMLElement { +native public interface HTMLInputElement : HTMLElement { var accept: String get() = noImpl set(value) = noImpl @@ -2140,7 +2140,7 @@ native public trait HTMLInputElement : HTMLElement { fun setSelectionRange(start: Int, end: Int, direction: String = noImpl): Unit = noImpl } -native public trait HTMLButtonElement : HTMLElement { +native public interface HTMLButtonElement : HTMLElement { var autofocus: Boolean get() = noImpl set(value) = noImpl @@ -2194,7 +2194,7 @@ native public trait HTMLButtonElement : HTMLElement { fun setCustomValidity(error: String): Unit = noImpl } -native public trait HTMLSelectElement : HTMLElement { +native public interface HTMLSelectElement : HTMLElement { var autocomplete: String get() = noImpl set(value) = noImpl @@ -2260,13 +2260,13 @@ native public trait HTMLSelectElement : HTMLElement { fun setCustomValidity(error: String): Unit = noImpl } -native public trait HTMLDataListElement : HTMLElement { +native public interface HTMLDataListElement : HTMLElement { var options: HTMLCollection get() = noImpl set(value) = noImpl } -native public trait HTMLOptGroupElement : HTMLElement, UnionHTMLOptGroupElementOrHTMLOptionElement { +native public interface HTMLOptGroupElement : HTMLElement, UnionHTMLOptGroupElementOrHTMLOptionElement { var disabled: Boolean get() = noImpl set(value) = noImpl @@ -2275,7 +2275,7 @@ native public trait HTMLOptGroupElement : HTMLElement, UnionHTMLOptGroupElementO set(value) = noImpl } -native public trait HTMLOptionElement : HTMLElement, UnionHTMLOptGroupElementOrHTMLOptionElement { +native public interface HTMLOptionElement : HTMLElement, UnionHTMLOptGroupElementOrHTMLOptionElement { var disabled: Boolean get() = noImpl set(value) = noImpl @@ -2302,7 +2302,7 @@ native public trait HTMLOptionElement : HTMLElement, UnionHTMLOptGroupElementOrH set(value) = noImpl } -native public trait HTMLTextAreaElement : HTMLElement { +native public interface HTMLTextAreaElement : HTMLElement { var autocomplete: String get() = noImpl set(value) = noImpl @@ -2390,7 +2390,7 @@ native public trait HTMLTextAreaElement : HTMLElement { fun setSelectionRange(start: Int, end: Int, direction: String = noImpl): Unit = noImpl } -native public trait HTMLKeygenElement : HTMLElement { +native public interface HTMLKeygenElement : HTMLElement { var autofocus: Boolean get() = noImpl set(value) = noImpl @@ -2429,7 +2429,7 @@ native public trait HTMLKeygenElement : HTMLElement { fun setCustomValidity(error: String): Unit = noImpl } -native public trait HTMLOutputElement : HTMLElement { +native public interface HTMLOutputElement : HTMLElement { var htmlFor: DOMSettableTokenList get() = noImpl set(value) = noImpl @@ -2465,7 +2465,7 @@ native public trait HTMLOutputElement : HTMLElement { fun setCustomValidity(error: String): Unit = noImpl } -native public trait HTMLProgressElement : HTMLElement { +native public interface HTMLProgressElement : HTMLElement { var value: Double get() = noImpl set(value) = noImpl @@ -2480,7 +2480,7 @@ native public trait HTMLProgressElement : HTMLElement { set(value) = noImpl } -native public trait HTMLMeterElement : HTMLElement { +native public interface HTMLMeterElement : HTMLElement { var value: Double get() = noImpl set(value) = noImpl @@ -2504,7 +2504,7 @@ native public trait HTMLMeterElement : HTMLElement { set(value) = noImpl } -native public trait HTMLFieldSetElement : HTMLElement { +native public interface HTMLFieldSetElement : HTMLElement { var disabled: Boolean get() = noImpl set(value) = noImpl @@ -2534,7 +2534,7 @@ native public trait HTMLFieldSetElement : HTMLElement { fun setCustomValidity(error: String): Unit = noImpl } -native public trait HTMLLegendElement : HTMLElement { +native public interface HTMLLegendElement : HTMLElement { var form: HTMLFormElement? get() = noImpl set(value) = noImpl @@ -2553,7 +2553,7 @@ native public open class AutocompleteErrorEventInit : EventInit() { var reason: String } -native public trait ValidityState { +native public interface ValidityState { var valueMissing: Boolean get() = noImpl set(value) = noImpl @@ -2589,13 +2589,13 @@ native public trait ValidityState { set(value) = noImpl } -native public trait HTMLDetailsElement : HTMLElement { +native public interface HTMLDetailsElement : HTMLElement { var open: Boolean get() = noImpl set(value) = noImpl } -native public trait HTMLMenuElement : HTMLElement { +native public interface HTMLMenuElement : HTMLElement { var type: String get() = noImpl set(value) = noImpl @@ -2607,7 +2607,7 @@ native public trait HTMLMenuElement : HTMLElement { set(value) = noImpl } -native public trait HTMLMenuItemElement : HTMLElement { +native public interface HTMLMenuItemElement : HTMLElement { var type: String get() = noImpl set(value) = noImpl @@ -2644,7 +2644,7 @@ native public open class RelatedEventInit : EventInit() { var relatedTarget: EventTarget? } -native public trait HTMLDialogElement : HTMLElement { +native public interface HTMLDialogElement : HTMLElement { var open: Boolean get() = noImpl set(value) = noImpl @@ -2656,7 +2656,7 @@ native public trait HTMLDialogElement : HTMLElement { fun close(returnValue: String = noImpl): Unit = noImpl } -native public trait HTMLScriptElement : HTMLElement { +native public interface HTMLScriptElement : HTMLElement { var src: String get() = noImpl set(value) = noImpl @@ -2686,13 +2686,13 @@ native public trait HTMLScriptElement : HTMLElement { set(value) = noImpl } -native public trait HTMLTemplateElement : HTMLElement { +native public interface HTMLTemplateElement : HTMLElement { var content: DocumentFragment get() = noImpl set(value) = noImpl } -native public trait HTMLCanvasElement : HTMLElement, CanvasImageSource, ImageBitmapSource { +native public interface HTMLCanvasElement : HTMLElement, CanvasImageSource, ImageBitmapSource { var width: Int get() = noImpl set(value) = noImpl @@ -2707,7 +2707,7 @@ native public trait HTMLCanvasElement : HTMLElement, CanvasImageSource, ImageBit fun toBlob(_callback: ((File) -> Unit)?, type: String = noImpl, vararg arguments: Any?): Unit = noImpl } -native public trait CanvasProxy : Transferable { +native public interface CanvasProxy : Transferable { fun setContext(context: RenderingContext): Unit = noImpl } @@ -2841,15 +2841,15 @@ native public open class CanvasRenderingContext2D : RenderingContext, CanvasImag fun ellipse(x: Double, y: Double, radiusX: Double, radiusY: Double, rotation: Double, startAngle: Double, endAngle: Double, anticlockwise: Boolean = false): Unit = noImpl } -native public trait CanvasGradient { +native public interface CanvasGradient { fun addColorStop(offset: Double, color: String): Unit = noImpl } -native public trait CanvasPattern { +native public interface CanvasPattern { fun setTransform(transform: SVGMatrix): Unit = noImpl } -native public trait TextMetrics { +native public interface TextMetrics { var width: Double get() = noImpl set(value) = noImpl @@ -2962,13 +2962,13 @@ native public open class Path2D { fun ellipse(x: Double, y: Double, radiusX: Double, radiusY: Double, rotation: Double, startAngle: Double, endAngle: Double, anticlockwise: Boolean = false): Unit = noImpl } -native public trait Touch { +native public interface Touch { var region: String? get() = noImpl set(value) = noImpl } -native public trait DataTransfer { +native public interface DataTransfer { var dropEffect: String get() = noImpl set(value) = noImpl @@ -2990,7 +2990,7 @@ native public trait DataTransfer { fun clearData(format: String = noImpl): Unit = noImpl } -native public trait DataTransferItemList { +native public interface DataTransferItemList { var length: Int get() = noImpl set(value) = noImpl @@ -3001,7 +3001,7 @@ native public trait DataTransferItemList { fun clear(): Unit = noImpl } -native public trait DataTransferItem { +native public interface DataTransferItem { var kind: String get() = noImpl set(value) = noImpl @@ -3022,7 +3022,7 @@ native public open class DragEventInit : MouseEventInit() { var dataTransfer: DataTransfer? } -native public trait Window : EventTarget, UnionMessagePortOrWindow { +native public interface Window : EventTarget, UnionMessagePortOrWindow { var caches: CacheStorage get() = noImpl set(value) = noImpl @@ -3365,13 +3365,13 @@ native public trait Window : EventTarget, UnionMessagePortOrWindow { fun fetch(input: dynamic, init: RequestInit = noImpl): dynamic = noImpl } -native public trait BarProp { +native public interface BarProp { var visible: Boolean get() = noImpl set(value) = noImpl } -native public trait History { +native public interface History { var length: Int get() = noImpl set(value) = noImpl @@ -3385,7 +3385,7 @@ native public trait History { fun replaceState(data: Any?, title: String, url: String? = null): Unit = noImpl } -native public trait Location { +native public interface Location { var ancestorOrigins: Array get() = noImpl set(value) = noImpl @@ -3434,7 +3434,7 @@ native public open class BeforeUnloadEvent : Event(noImpl, noImpl) { set(value) = noImpl } -native public trait ApplicationCache : EventTarget { +native public interface ApplicationCache : EventTarget { var status: Short get() = noImpl set(value) = noImpl @@ -3502,7 +3502,7 @@ native public open class ErrorEventInit : EventInit() { var error: Any? } -native public trait Navigator { +native public interface Navigator { var serviceWorker: ServiceWorkerContainer get() = noImpl set(value) = noImpl @@ -3559,7 +3559,7 @@ native public trait Navigator { fun yieldForStorageUpdates(): Unit = noImpl } -native public trait PluginArray { +native public interface PluginArray { var length: Int get() = noImpl set(value) = noImpl @@ -3570,7 +3570,7 @@ native public trait PluginArray { nativeGetter fun get(name: String): Plugin? = noImpl } -native public trait MimeTypeArray { +native public interface MimeTypeArray { var length: Int get() = noImpl set(value) = noImpl @@ -3580,7 +3580,7 @@ native public trait MimeTypeArray { nativeGetter fun get(name: String): MimeType? = noImpl } -native public trait Plugin { +native public interface Plugin { var name: String get() = noImpl set(value) = noImpl @@ -3599,7 +3599,7 @@ native public trait Plugin { nativeGetter fun get(name: String): MimeType? = noImpl } -native public trait MimeType { +native public interface MimeType { var type: String get() = noImpl set(value) = noImpl @@ -3614,12 +3614,12 @@ native public trait MimeType { set(value) = noImpl } -native public trait External { +native public interface External { fun AddSearchProvider(engineURL: String): Unit = noImpl fun IsSearchProviderInstalled(engineURL: String): Int = noImpl } -native public trait ImageBitmap : CanvasImageSource, ImageBitmapSource { +native public interface ImageBitmap : CanvasImageSource, ImageBitmapSource { var width: Int get() = noImpl set(value) = noImpl @@ -3759,7 +3759,7 @@ native public open class MessageChannel { set(value) = noImpl } -native public trait MessagePort : EventTarget, UnionMessagePortOrWindow, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker, Transferable { +native public interface MessagePort : EventTarget, UnionMessagePortOrWindow, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker, Transferable { var onmessage: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -3786,7 +3786,7 @@ native public open class BroadcastChannel(channel: String) : EventTarget { fun close(): Unit = noImpl } -native public trait WorkerGlobalScope : EventTarget { +native public interface WorkerGlobalScope : EventTarget { var caches: CacheStorage get() = noImpl set(value) = noImpl @@ -3826,14 +3826,14 @@ native public trait WorkerGlobalScope : EventTarget { fun fetch(input: dynamic, init: RequestInit = noImpl): dynamic = noImpl } -native public trait DedicatedWorkerGlobalScope : WorkerGlobalScope { +native public interface DedicatedWorkerGlobalScope : WorkerGlobalScope { var onmessage: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl fun postMessage(message: Any?, transfer: Array = noImpl): Unit = noImpl } -native public trait SharedWorkerGlobalScope : WorkerGlobalScope { +native public interface SharedWorkerGlobalScope : WorkerGlobalScope { var name: String get() = noImpl set(value) = noImpl @@ -3865,7 +3865,7 @@ native public open class SharedWorker(scriptURL: String, name: String = noImpl) set(value) = noImpl } -native public trait WorkerNavigator { +native public interface WorkerNavigator { var serviceWorker: ServiceWorkerContainer get() = noImpl set(value) = noImpl @@ -3902,10 +3902,10 @@ native public trait WorkerNavigator { fun taintEnabled(): Boolean = noImpl } -native public trait WorkerLocation { +native public interface WorkerLocation { } -native public trait Storage { +native public interface Storage { var length: Int get() = noImpl set(value) = noImpl @@ -3944,7 +3944,7 @@ native public open class StorageEventInit : EventInit() { var storageArea: Storage? } -native public trait HTMLAppletElement : HTMLElement { +native public interface HTMLAppletElement : HTMLElement { var align: String get() = noImpl set(value) = noImpl @@ -3980,7 +3980,7 @@ native public trait HTMLAppletElement : HTMLElement { set(value) = noImpl } -native public trait HTMLMarqueeElement : HTMLElement { +native public interface HTMLMarqueeElement : HTMLElement { var behavior: String get() = noImpl set(value) = noImpl @@ -4027,7 +4027,7 @@ native public trait HTMLMarqueeElement : HTMLElement { fun stop(): Unit = noImpl } -native public trait HTMLFrameSetElement : HTMLElement { +native public interface HTMLFrameSetElement : HTMLElement { var cols: String get() = noImpl set(value) = noImpl @@ -4075,7 +4075,7 @@ native public trait HTMLFrameSetElement : HTMLElement { set(value) = noImpl } -native public trait HTMLFrameElement : HTMLElement { +native public interface HTMLFrameElement : HTMLElement { var name: String get() = noImpl set(value) = noImpl @@ -4108,13 +4108,13 @@ native public trait HTMLFrameElement : HTMLElement { set(value) = noImpl } -native public trait HTMLDirectoryElement : HTMLElement { +native public interface HTMLDirectoryElement : HTMLElement { var compact: Boolean get() = noImpl set(value) = noImpl } -native public trait HTMLFontElement : HTMLElement { +native public interface HTMLFontElement : HTMLElement { var color: String get() = noImpl set(value) = noImpl @@ -4126,7 +4126,7 @@ native public trait HTMLFontElement : HTMLElement { set(value) = noImpl } -native public trait HTMLImageElement : HTMLElement, CanvasImageSource, ImageBitmapSource { +native public interface HTMLImageElement : HTMLElement, CanvasImageSource, ImageBitmapSource { var name: String get() = noImpl set(value) = noImpl @@ -4189,7 +4189,7 @@ native public trait HTMLImageElement : HTMLElement, CanvasImageSource, ImageBitm set(value) = noImpl } -native public trait HTMLPictureElement : HTMLElement { +native public interface HTMLPictureElement : HTMLElement { } native public open class EventInit { @@ -4208,7 +4208,7 @@ native public open class CustomEventInit : EventInit() { var detail: Any? = null } -native public trait NodeList { +native public interface NodeList { var length: Int get() = noImpl set(value) = noImpl @@ -4216,7 +4216,7 @@ native public trait NodeList { nativeGetter fun get(index: Int): Node? = noImpl } -native public trait HTMLCollection : UnionElementOrHTMLCollection { +native public interface HTMLCollection : UnionElementOrHTMLCollection { var length: Int get() = noImpl set(value) = noImpl @@ -4242,7 +4242,7 @@ native public open class MutationObserverInit { var attributeFilter: Array } -native public trait MutationRecord { +native public interface MutationRecord { var type: String get() = noImpl set(value) = noImpl @@ -4272,7 +4272,7 @@ native public trait MutationRecord { set(value) = noImpl } -native public trait Node : EventTarget { +native public interface Node : EventTarget { var nodeType: Short get() = noImpl set(value) = noImpl @@ -4348,7 +4348,7 @@ native public trait Node : EventTarget { } } -native public trait DOMImplementation { +native public interface DOMImplementation { fun createDocumentType(qualifiedName: String, publicId: String, systemId: String): DocumentType = noImpl fun createDocument(namespace: String?, qualifiedName: String, doctype: DocumentType? = null): XMLDocument = noImpl fun createHTMLDocument(title: String = noImpl): Document = noImpl @@ -4377,7 +4377,7 @@ native public open class DocumentFragment : Node { fun querySelectorAll(selectors: String): NodeList = noImpl } -native public trait DocumentType : Node { +native public interface DocumentType : Node { var name: String get() = noImpl set(value) = noImpl @@ -4393,7 +4393,7 @@ native public trait DocumentType : Node { fun remove(): Unit = noImpl } -native public trait Element : Node, UnionElementOrHTMLCollection, UnionElementOrRadioNodeList, UnionElementOrMouseEvent, UnionElementOrProcessingInstruction { +native public interface Element : Node, UnionElementOrHTMLCollection, UnionElementOrRadioNodeList, UnionElementOrMouseEvent, UnionElementOrProcessingInstruction { var innerHTML: String get() = noImpl set(value) = noImpl @@ -4488,7 +4488,7 @@ native public trait Element : Node, UnionElementOrHTMLCollection, UnionElementOr fun remove(): Unit = noImpl } -native public trait NamedNodeMap { +native public interface NamedNodeMap { var length: Int get() = noImpl set(value) = noImpl @@ -4503,7 +4503,7 @@ native public trait NamedNodeMap { fun removeNamedItemNS(namespace: String?, localName: String): Attr = noImpl } -native public trait Attr { +native public interface Attr { var namespaceURI: String? get() = noImpl set(value) = noImpl @@ -4533,7 +4533,7 @@ native public trait Attr { set(value) = noImpl } -native public trait CharacterData : Node { +native public interface CharacterData : Node { var data: String get() = noImpl set(value) = noImpl @@ -4564,7 +4564,7 @@ native public open class Text(data: String = "") : CharacterData { fun splitText(offset: Int): Text = noImpl } -native public trait ProcessingInstruction : CharacterData, UnionElementOrProcessingInstruction { +native public interface ProcessingInstruction : CharacterData, UnionElementOrProcessingInstruction { var target: String get() = noImpl set(value) = noImpl @@ -4625,7 +4625,7 @@ native public open class Range { } } -native public trait NodeIterator { +native public interface NodeIterator { var root: Node get() = noImpl set(value) = noImpl @@ -4646,7 +4646,7 @@ native public trait NodeIterator { fun detach(): Unit = noImpl } -native public trait TreeWalker { +native public interface TreeWalker { var root: Node get() = noImpl set(value) = noImpl @@ -4668,7 +4668,7 @@ native public trait TreeWalker { fun nextNode(): Node? = noImpl } -native public trait NodeFilter { +native public interface NodeFilter { fun acceptNode(node: Node): Short = noImpl companion object { @@ -4691,7 +4691,7 @@ native public trait NodeFilter { } } -native public trait DOMTokenList { +native public interface DOMTokenList { var length: Int get() = noImpl set(value) = noImpl @@ -4703,13 +4703,13 @@ native public trait DOMTokenList { fun toggle(token: String, force: Boolean = noImpl): Boolean = noImpl } -native public trait DOMSettableTokenList : DOMTokenList { +native public interface DOMSettableTokenList : DOMTokenList { var value: String get() = noImpl set(value) = noImpl } -native public trait Selection { +native public interface Selection { var anchorNode: Node? get() = noImpl set(value) = noImpl @@ -4768,39 +4768,39 @@ native public open class EditingInputEventInit : EventInit() { var value: String } -native public marker trait UnionElementOrHTMLCollection { +native public marker interface UnionElementOrHTMLCollection { } -native public marker trait UnionElementOrRadioNodeList { +native public marker interface UnionElementOrRadioNodeList { } -native public marker trait UnionHTMLOptGroupElementOrHTMLOptionElement { +native public marker interface UnionHTMLOptGroupElementOrHTMLOptionElement { } -native public marker trait UnionAudioTrackOrTextTrackOrVideoTrack { +native public marker interface UnionAudioTrackOrTextTrackOrVideoTrack { } -native public marker trait UnionElementOrMouseEvent { +native public marker interface UnionElementOrMouseEvent { } -native public marker trait UnionMessagePortOrWindow { +native public marker interface UnionMessagePortOrWindow { } -native public marker trait UnionElementOrProcessingInstruction { +native public marker interface UnionElementOrProcessingInstruction { } -native public marker trait ArrayBufferView { +native public marker interface ArrayBufferView { } -native public marker trait Transferable { +native public marker interface Transferable { } -native public marker trait RenderingContext { +native public marker interface RenderingContext { } -native public marker trait CanvasImageSource { +native public marker interface CanvasImageSource { } -native public marker trait ImageBitmapSource { +native public marker interface ImageBitmapSource { } 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 5376d557cc6..ad2885cdef0 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.svg.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.svg.kt @@ -25,7 +25,7 @@ native public open class SVGDocument : Document() { set(value) = noImpl } -native public trait SVGSVGElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGLocatable, SVGFitToViewBox, SVGZoomAndPan { +native public interface SVGSVGElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGLocatable, SVGFitToViewBox, SVGZoomAndPan { var x: SVGAnimatedLength get() = noImpl set(value) = noImpl @@ -96,22 +96,22 @@ native public trait SVGSVGElement : SVGElement, SVGTests, SVGLangSpace, SVGExter fun getElementById(elementId: String): Element = noImpl } -native public trait SVGGElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +native public interface SVGGElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { } -native public trait SVGDefsElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +native public interface SVGDefsElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { } -native public trait SVGDescElement : SVGElement, SVGLangSpace, SVGStylable { +native public interface SVGDescElement : SVGElement, SVGLangSpace, SVGStylable { } -native public trait SVGTitleElement : SVGElement, SVGLangSpace, SVGStylable { +native public interface SVGTitleElement : SVGElement, SVGLangSpace, SVGStylable { } -native public trait SVGSymbolElement : SVGElement, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox { +native public interface SVGSymbolElement : SVGElement, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox { } -native public trait SVGUseElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +native public interface SVGUseElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { var x: SVGAnimatedLength get() = noImpl set(value) = noImpl @@ -132,7 +132,7 @@ native public trait SVGUseElement : SVGElement, SVGURIReference, SVGTests, SVGLa set(value) = noImpl } -native public trait SVGElementInstance : EventTarget { +native public interface SVGElementInstance : EventTarget { var correspondingElement: SVGElement get() = noImpl set(value) = noImpl @@ -159,14 +159,14 @@ native public trait SVGElementInstance : EventTarget { set(value) = noImpl } -native public trait SVGElementInstanceList { +native public interface SVGElementInstanceList { var length: Int get() = noImpl set(value) = noImpl fun item(index: Int): SVGElementInstance = noImpl } -native public trait SVGImageElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +native public interface SVGImageElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { var x: SVGAnimatedLength get() = noImpl set(value) = noImpl @@ -184,14 +184,14 @@ native public trait SVGImageElement : SVGElement, SVGURIReference, SVGTests, SVG set(value) = noImpl } -native public trait SVGSwitchElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +native public interface SVGSwitchElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { } -native public trait GetSVGDocument { +native public interface GetSVGDocument { fun getSVGDocument(): SVGDocument = noImpl } -native public trait SVGElement : Element { +native public interface SVGElement : Element { // var id: dynamic // get() = noImpl // set(value) = noImpl @@ -209,7 +209,7 @@ native public trait SVGElement : Element { set(value) = noImpl } -native public trait SVGAnimatedBoolean { +native public interface SVGAnimatedBoolean { var baseVal: dynamic get() = noImpl set(value) = noImpl @@ -218,7 +218,7 @@ native public trait SVGAnimatedBoolean { set(value) = noImpl } -native public trait SVGAnimatedString { +native public interface SVGAnimatedString { var baseVal: dynamic get() = noImpl set(value) = noImpl @@ -227,7 +227,7 @@ native public trait SVGAnimatedString { set(value) = noImpl } -native public trait SVGStringList { +native public interface SVGStringList { var numberOfItems: Int get() = noImpl set(value) = noImpl @@ -240,7 +240,7 @@ native public trait SVGStringList { fun appendItem(newItem: String): String = noImpl } -native public trait SVGAnimatedEnumeration { +native public interface SVGAnimatedEnumeration { var baseVal: dynamic get() = noImpl set(value) = noImpl @@ -249,7 +249,7 @@ native public trait SVGAnimatedEnumeration { set(value) = noImpl } -native public trait SVGAnimatedInteger { +native public interface SVGAnimatedInteger { var baseVal: dynamic get() = noImpl set(value) = noImpl @@ -258,13 +258,13 @@ native public trait SVGAnimatedInteger { set(value) = noImpl } -native public trait SVGNumber { +native public interface SVGNumber { var value: dynamic get() = noImpl set(value) = noImpl } -native public trait SVGAnimatedNumber { +native public interface SVGAnimatedNumber { var baseVal: dynamic get() = noImpl set(value) = noImpl @@ -273,7 +273,7 @@ native public trait SVGAnimatedNumber { set(value) = noImpl } -native public trait SVGNumberList { +native public interface SVGNumberList { var numberOfItems: Int get() = noImpl set(value) = noImpl @@ -286,7 +286,7 @@ native public trait SVGNumberList { fun appendItem(newItem: SVGNumber): SVGNumber = noImpl } -native public trait SVGAnimatedNumberList { +native public interface SVGAnimatedNumberList { var baseVal: SVGNumberList get() = noImpl set(value) = noImpl @@ -295,7 +295,7 @@ native public trait SVGAnimatedNumberList { set(value) = noImpl } -native public trait SVGLength { +native public interface SVGLength { var unitType: Short get() = noImpl set(value) = noImpl @@ -326,7 +326,7 @@ native public trait SVGLength { } } -native public trait SVGAnimatedLength { +native public interface SVGAnimatedLength { var baseVal: SVGLength get() = noImpl set(value) = noImpl @@ -335,7 +335,7 @@ native public trait SVGAnimatedLength { set(value) = noImpl } -native public trait SVGLengthList { +native public interface SVGLengthList { var numberOfItems: Int get() = noImpl set(value) = noImpl @@ -348,7 +348,7 @@ native public trait SVGLengthList { fun appendItem(newItem: SVGLength): SVGLength = noImpl } -native public trait SVGAnimatedLengthList { +native public interface SVGAnimatedLengthList { var baseVal: SVGLengthList get() = noImpl set(value) = noImpl @@ -357,7 +357,7 @@ native public trait SVGAnimatedLengthList { set(value) = noImpl } -native public trait SVGAngle { +native public interface SVGAngle { var unitType: Short get() = noImpl set(value) = noImpl @@ -382,7 +382,7 @@ native public trait SVGAngle { } } -native public trait SVGAnimatedAngle { +native public interface SVGAnimatedAngle { var baseVal: SVGAngle get() = noImpl set(value) = noImpl @@ -391,7 +391,7 @@ native public trait SVGAnimatedAngle { set(value) = noImpl } -native public trait SVGColor { +native public interface SVGColor { var colorType: Short get() = noImpl set(value) = noImpl @@ -413,7 +413,7 @@ native public trait SVGColor { } } -native public trait SVGICCColor { +native public interface SVGICCColor { var colorProfile: dynamic get() = noImpl set(value) = noImpl @@ -422,7 +422,7 @@ native public trait SVGICCColor { set(value) = noImpl } -native public trait SVGRect { +native public interface SVGRect { var x: dynamic get() = noImpl set(value) = noImpl @@ -437,7 +437,7 @@ native public trait SVGRect { set(value) = noImpl } -native public trait SVGAnimatedRect { +native public interface SVGAnimatedRect { var baseVal: SVGRect get() = noImpl set(value) = noImpl @@ -446,7 +446,7 @@ native public trait SVGAnimatedRect { set(value) = noImpl } -native public trait SVGUnitTypes { +native public interface SVGUnitTypes { companion object { val SVG_UNIT_TYPE_UNKNOWN: Short = 0 @@ -455,11 +455,11 @@ native public trait SVGUnitTypes { } } -native public trait SVGStylable { +native public interface SVGStylable { fun getPresentationAttribute(name: String): dynamic = noImpl } -native public trait SVGLocatable { +native public interface SVGLocatable { var nearestViewportElement: SVGElement get() = noImpl set(value) = noImpl @@ -472,13 +472,13 @@ native public trait SVGLocatable { fun getTransformToElement(element: SVGElement): SVGMatrix = noImpl } -native public trait SVGTransformable : SVGLocatable { +native public interface SVGTransformable : SVGLocatable { var transform: SVGAnimatedTransformList get() = noImpl set(value) = noImpl } -native public trait SVGTests { +native public interface SVGTests { var requiredFeatures: SVGStringList get() = noImpl set(value) = noImpl @@ -491,7 +491,7 @@ native public trait SVGTests { fun hasExtension(extension: String): Boolean = noImpl } -native public trait SVGLangSpace { +native public interface SVGLangSpace { var xmllang: dynamic get() = noImpl set(value) = noImpl @@ -500,13 +500,13 @@ native public trait SVGLangSpace { set(value) = noImpl } -native public trait SVGExternalResourcesRequired { +native public interface SVGExternalResourcesRequired { var externalResourcesRequired: SVGAnimatedBoolean get() = noImpl set(value) = noImpl } -native public trait SVGFitToViewBox { +native public interface SVGFitToViewBox { var viewBox: SVGAnimatedRect get() = noImpl set(value) = noImpl @@ -515,7 +515,7 @@ native public trait SVGFitToViewBox { set(value) = noImpl } -native public trait SVGZoomAndPan { +native public interface SVGZoomAndPan { var zoomAndPan: dynamic get() = noImpl set(value) = noImpl @@ -527,7 +527,7 @@ native public trait SVGZoomAndPan { } } -native public trait SVGViewSpec : SVGZoomAndPan, SVGFitToViewBox { +native public interface SVGViewSpec : SVGZoomAndPan, SVGFitToViewBox { var transform: SVGTransformList get() = noImpl set(value) = noImpl @@ -548,20 +548,20 @@ native public trait SVGViewSpec : SVGZoomAndPan, SVGFitToViewBox { set(value) = noImpl } -native public trait SVGURIReference { +native public interface SVGURIReference { var href: SVGAnimatedString get() = noImpl set(value) = noImpl } -native public trait SVGCSSRule : CSSRule { +native public interface SVGCSSRule : CSSRule { companion object { val COLOR_PROFILE_RULE: Short = 7 } } -native public trait SVGRenderingIntent { +native public interface SVGRenderingIntent { companion object { val RENDERING_INTENT_UNKNOWN: Short = 0 @@ -573,7 +573,7 @@ native public trait SVGRenderingIntent { } } -native public trait SVGStyleElement : SVGElement, SVGLangSpace { +native public interface SVGStyleElement : SVGElement, SVGLangSpace { var type: dynamic get() = noImpl set(value) = noImpl @@ -585,7 +585,7 @@ native public trait SVGStyleElement : SVGElement, SVGLangSpace { set(value) = noImpl } -native public trait SVGPoint { +native public interface SVGPoint { var x: dynamic get() = noImpl set(value) = noImpl @@ -595,7 +595,7 @@ native public trait SVGPoint { fun matrixTransform(matrix: SVGMatrix): SVGPoint = noImpl } -native public trait SVGPointList { +native public interface SVGPointList { var numberOfItems: Int get() = noImpl set(value) = noImpl @@ -608,7 +608,7 @@ native public trait SVGPointList { fun appendItem(newItem: SVGPoint): SVGPoint = noImpl } -native public trait SVGMatrix { +native public interface SVGMatrix { var a: dynamic get() = noImpl set(value) = noImpl @@ -640,7 +640,7 @@ native public trait SVGMatrix { fun skewY(angle: Float): SVGMatrix = noImpl } -native public trait SVGTransform { +native public interface SVGTransform { var type: Short get() = noImpl set(value) = noImpl @@ -668,7 +668,7 @@ native public trait SVGTransform { } } -native public trait SVGTransformList { +native public interface SVGTransformList { var numberOfItems: Int get() = noImpl set(value) = noImpl @@ -683,7 +683,7 @@ native public trait SVGTransformList { fun consolidate(): SVGTransform = noImpl } -native public trait SVGAnimatedTransformList { +native public interface SVGAnimatedTransformList { var baseVal: SVGTransformList get() = noImpl set(value) = noImpl @@ -692,7 +692,7 @@ native public trait SVGAnimatedTransformList { set(value) = noImpl } -native public trait SVGPreserveAspectRatio { +native public interface SVGPreserveAspectRatio { var align: dynamic get() = noImpl set(value) = noImpl @@ -718,7 +718,7 @@ native public trait SVGPreserveAspectRatio { } } -native public trait SVGAnimatedPreserveAspectRatio { +native public interface SVGAnimatedPreserveAspectRatio { var baseVal: SVGPreserveAspectRatio get() = noImpl set(value) = noImpl @@ -727,7 +727,7 @@ native public trait SVGAnimatedPreserveAspectRatio { set(value) = noImpl } -native public trait SVGPathSeg { +native public interface SVGPathSeg { var pathSegType: Short get() = noImpl set(value) = noImpl @@ -759,10 +759,10 @@ native public trait SVGPathSeg { } } -native public trait SVGPathSegClosePath : SVGPathSeg { +native public interface SVGPathSegClosePath : SVGPathSeg { } -native public trait SVGPathSegMovetoAbs : SVGPathSeg { +native public interface SVGPathSegMovetoAbs : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -771,7 +771,7 @@ native public trait SVGPathSegMovetoAbs : SVGPathSeg { set(value) = noImpl } -native public trait SVGPathSegMovetoRel : SVGPathSeg { +native public interface SVGPathSegMovetoRel : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -780,7 +780,7 @@ native public trait SVGPathSegMovetoRel : SVGPathSeg { set(value) = noImpl } -native public trait SVGPathSegLinetoAbs : SVGPathSeg { +native public interface SVGPathSegLinetoAbs : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -789,7 +789,7 @@ native public trait SVGPathSegLinetoAbs : SVGPathSeg { set(value) = noImpl } -native public trait SVGPathSegLinetoRel : SVGPathSeg { +native public interface SVGPathSegLinetoRel : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -798,7 +798,7 @@ native public trait SVGPathSegLinetoRel : SVGPathSeg { set(value) = noImpl } -native public trait SVGPathSegCurvetoCubicAbs : SVGPathSeg { +native public interface SVGPathSegCurvetoCubicAbs : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -819,7 +819,7 @@ native public trait SVGPathSegCurvetoCubicAbs : SVGPathSeg { set(value) = noImpl } -native public trait SVGPathSegCurvetoCubicRel : SVGPathSeg { +native public interface SVGPathSegCurvetoCubicRel : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -840,7 +840,7 @@ native public trait SVGPathSegCurvetoCubicRel : SVGPathSeg { set(value) = noImpl } -native public trait SVGPathSegCurvetoQuadraticAbs : SVGPathSeg { +native public interface SVGPathSegCurvetoQuadraticAbs : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -855,7 +855,7 @@ native public trait SVGPathSegCurvetoQuadraticAbs : SVGPathSeg { set(value) = noImpl } -native public trait SVGPathSegCurvetoQuadraticRel : SVGPathSeg { +native public interface SVGPathSegCurvetoQuadraticRel : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -870,7 +870,7 @@ native public trait SVGPathSegCurvetoQuadraticRel : SVGPathSeg { set(value) = noImpl } -native public trait SVGPathSegArcAbs : SVGPathSeg { +native public interface SVGPathSegArcAbs : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -894,7 +894,7 @@ native public trait SVGPathSegArcAbs : SVGPathSeg { set(value) = noImpl } -native public trait SVGPathSegArcRel : SVGPathSeg { +native public interface SVGPathSegArcRel : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -918,31 +918,31 @@ native public trait SVGPathSegArcRel : SVGPathSeg { set(value) = noImpl } -native public trait SVGPathSegLinetoHorizontalAbs : SVGPathSeg { +native public interface SVGPathSegLinetoHorizontalAbs : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl } -native public trait SVGPathSegLinetoHorizontalRel : SVGPathSeg { +native public interface SVGPathSegLinetoHorizontalRel : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl } -native public trait SVGPathSegLinetoVerticalAbs : SVGPathSeg { +native public interface SVGPathSegLinetoVerticalAbs : SVGPathSeg { var y: dynamic get() = noImpl set(value) = noImpl } -native public trait SVGPathSegLinetoVerticalRel : SVGPathSeg { +native public interface SVGPathSegLinetoVerticalRel : SVGPathSeg { var y: dynamic get() = noImpl set(value) = noImpl } -native public trait SVGPathSegCurvetoCubicSmoothAbs : SVGPathSeg { +native public interface SVGPathSegCurvetoCubicSmoothAbs : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -957,7 +957,7 @@ native public trait SVGPathSegCurvetoCubicSmoothAbs : SVGPathSeg { set(value) = noImpl } -native public trait SVGPathSegCurvetoCubicSmoothRel : SVGPathSeg { +native public interface SVGPathSegCurvetoCubicSmoothRel : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -972,7 +972,7 @@ native public trait SVGPathSegCurvetoCubicSmoothRel : SVGPathSeg { set(value) = noImpl } -native public trait SVGPathSegCurvetoQuadraticSmoothAbs : SVGPathSeg { +native public interface SVGPathSegCurvetoQuadraticSmoothAbs : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -981,7 +981,7 @@ native public trait SVGPathSegCurvetoQuadraticSmoothAbs : SVGPathSeg { set(value) = noImpl } -native public trait SVGPathSegCurvetoQuadraticSmoothRel : SVGPathSeg { +native public interface SVGPathSegCurvetoQuadraticSmoothRel : SVGPathSeg { var x: dynamic get() = noImpl set(value) = noImpl @@ -990,7 +990,7 @@ native public trait SVGPathSegCurvetoQuadraticSmoothRel : SVGPathSeg { set(value) = noImpl } -native public trait SVGPathSegList { +native public interface SVGPathSegList { var numberOfItems: Int get() = noImpl set(value) = noImpl @@ -1003,7 +1003,7 @@ native public trait SVGPathSegList { fun appendItem(newItem: SVGPathSeg): SVGPathSeg = noImpl } -native public trait SVGAnimatedPathData { +native public interface SVGAnimatedPathData { var pathSegList: SVGPathSegList get() = noImpl set(value) = noImpl @@ -1018,7 +1018,7 @@ native public trait SVGAnimatedPathData { set(value) = noImpl } -native public trait SVGPathElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGAnimatedPathData { +native public interface SVGPathElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGAnimatedPathData { var pathLength: SVGAnimatedNumber get() = noImpl set(value) = noImpl @@ -1046,7 +1046,7 @@ native public trait SVGPathElement : SVGElement, SVGTests, SVGLangSpace, SVGExte fun createSVGPathSegCurvetoQuadraticSmoothRel(x: Float, y: Float): SVGPathSegCurvetoQuadraticSmoothRel = noImpl } -native public trait SVGRectElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +native public interface SVGRectElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { var x: SVGAnimatedLength get() = noImpl set(value) = noImpl @@ -1067,7 +1067,7 @@ native public trait SVGRectElement : SVGElement, SVGTests, SVGLangSpace, SVGExte set(value) = noImpl } -native public trait SVGCircleElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +native public interface SVGCircleElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { var cx: SVGAnimatedLength get() = noImpl set(value) = noImpl @@ -1079,7 +1079,7 @@ native public trait SVGCircleElement : SVGElement, SVGTests, SVGLangSpace, SVGEx set(value) = noImpl } -native public trait SVGEllipseElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +native public interface SVGEllipseElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { var cx: SVGAnimatedLength get() = noImpl set(value) = noImpl @@ -1094,7 +1094,7 @@ native public trait SVGEllipseElement : SVGElement, SVGTests, SVGLangSpace, SVGE set(value) = noImpl } -native public trait SVGLineElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +native public interface SVGLineElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { var x1: SVGAnimatedLength get() = noImpl set(value) = noImpl @@ -1109,7 +1109,7 @@ native public trait SVGLineElement : SVGElement, SVGTests, SVGLangSpace, SVGExte set(value) = noImpl } -native public trait SVGAnimatedPoints { +native public interface SVGAnimatedPoints { var points: SVGPointList get() = noImpl set(value) = noImpl @@ -1118,13 +1118,13 @@ native public trait SVGAnimatedPoints { set(value) = noImpl } -native public trait SVGPolylineElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGAnimatedPoints { +native public interface SVGPolylineElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGAnimatedPoints { } -native public trait SVGPolygonElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGAnimatedPoints { +native public interface SVGPolygonElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGAnimatedPoints { } -native public trait SVGTextContentElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable { +native public interface SVGTextContentElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable { var textLength: SVGAnimatedLength get() = noImpl set(value) = noImpl @@ -1148,7 +1148,7 @@ native public trait SVGTextContentElement : SVGElement, SVGTests, SVGLangSpace, } } -native public trait SVGTextPositioningElement : SVGTextContentElement { +native public interface SVGTextPositioningElement : SVGTextContentElement { var x: SVGAnimatedLengthList get() = noImpl set(value) = noImpl @@ -1166,16 +1166,16 @@ native public trait SVGTextPositioningElement : SVGTextContentElement { set(value) = noImpl } -native public trait SVGTextElement : SVGTextPositioningElement, SVGTransformable { +native public interface SVGTextElement : SVGTextPositioningElement, SVGTransformable { } -native public trait SVGTSpanElement : SVGTextPositioningElement { +native public interface SVGTSpanElement : SVGTextPositioningElement { } -native public trait SVGTRefElement : SVGTextPositioningElement, SVGURIReference { +native public interface SVGTRefElement : SVGTextPositioningElement, SVGURIReference { } -native public trait SVGTextPathElement : SVGTextContentElement, SVGURIReference { +native public interface SVGTextPathElement : SVGTextContentElement, SVGURIReference { var startOffset: SVGAnimatedLength get() = noImpl set(value) = noImpl @@ -1196,7 +1196,7 @@ native public trait SVGTextPathElement : SVGTextContentElement, SVGURIReference } } -native public trait SVGAltGlyphElement : SVGTextPositioningElement, SVGURIReference { +native public interface SVGAltGlyphElement : SVGTextPositioningElement, SVGURIReference { var glyphRef: dynamic get() = noImpl set(value) = noImpl @@ -1205,13 +1205,13 @@ native public trait SVGAltGlyphElement : SVGTextPositioningElement, SVGURIRefere set(value) = noImpl } -native public trait SVGAltGlyphDefElement : SVGElement { +native public interface SVGAltGlyphDefElement : SVGElement { } -native public trait SVGAltGlyphItemElement : SVGElement { +native public interface SVGAltGlyphItemElement : SVGElement { } -native public trait SVGGlyphRefElement : SVGElement, SVGURIReference, SVGStylable { +native public interface SVGGlyphRefElement : SVGElement, SVGURIReference, SVGStylable { var glyphRef: dynamic get() = noImpl set(value) = noImpl @@ -1232,7 +1232,7 @@ native public trait SVGGlyphRefElement : SVGElement, SVGURIReference, SVGStylabl set(value) = noImpl } -native public trait SVGPaint : SVGColor { +native public interface SVGPaint : SVGColor { var paintType: Short get() = noImpl set(value) = noImpl @@ -1256,7 +1256,7 @@ native public trait SVGPaint : SVGColor { } } -native public trait SVGMarkerElement : SVGElement, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox { +native public interface SVGMarkerElement : SVGElement, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox { var refX: SVGAnimatedLength get() = noImpl set(value) = noImpl @@ -1291,7 +1291,7 @@ native public trait SVGMarkerElement : SVGElement, SVGLangSpace, SVGExternalReso } } -native public trait SVGColorProfileElement : SVGElement, SVGURIReference, SVGRenderingIntent { +native public interface SVGColorProfileElement : SVGElement, SVGURIReference, SVGRenderingIntent { var local: String get() = noImpl set(value) = noImpl @@ -1303,7 +1303,7 @@ native public trait SVGColorProfileElement : SVGElement, SVGURIReference, SVGRen set(value) = noImpl } -native public trait SVGColorProfileRule : SVGCSSRule, SVGRenderingIntent { +native public interface SVGColorProfileRule : SVGCSSRule, SVGRenderingIntent { var src: dynamic get() = noImpl set(value) = noImpl @@ -1315,7 +1315,7 @@ native public trait SVGColorProfileRule : SVGCSSRule, SVGRenderingIntent { set(value) = noImpl } -native public trait SVGGradientElement : SVGElement, SVGURIReference, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { +native public interface SVGGradientElement : SVGElement, SVGURIReference, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { var gradientUnits: SVGAnimatedEnumeration get() = noImpl set(value) = noImpl @@ -1334,7 +1334,7 @@ native public trait SVGGradientElement : SVGElement, SVGURIReference, SVGExterna } } -native public trait SVGLinearGradientElement : SVGGradientElement { +native public interface SVGLinearGradientElement : SVGGradientElement { var x1: SVGAnimatedLength get() = noImpl set(value) = noImpl @@ -1349,7 +1349,7 @@ native public trait SVGLinearGradientElement : SVGGradientElement { set(value) = noImpl } -native public trait SVGRadialGradientElement : SVGGradientElement { +native public interface SVGRadialGradientElement : SVGGradientElement { var cx: SVGAnimatedLength get() = noImpl set(value) = noImpl @@ -1367,13 +1367,13 @@ native public trait SVGRadialGradientElement : SVGGradientElement { set(value) = noImpl } -native public trait SVGStopElement : SVGElement, SVGStylable { +native public interface SVGStopElement : SVGElement, SVGStylable { var offset: SVGAnimatedNumber get() = noImpl set(value) = noImpl } -native public trait SVGPatternElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox, SVGUnitTypes { +native public interface SVGPatternElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox, SVGUnitTypes { var patternUnits: SVGAnimatedEnumeration get() = noImpl set(value) = noImpl @@ -1397,13 +1397,13 @@ native public trait SVGPatternElement : SVGElement, SVGURIReference, SVGTests, S set(value) = noImpl } -native public trait SVGClipPathElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGUnitTypes { +native public interface SVGClipPathElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGUnitTypes { var clipPathUnits: SVGAnimatedEnumeration get() = noImpl set(value) = noImpl } -native public trait SVGMaskElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { +native public interface SVGMaskElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { var maskUnits: SVGAnimatedEnumeration get() = noImpl set(value) = noImpl @@ -1424,7 +1424,7 @@ native public trait SVGMaskElement : SVGElement, SVGTests, SVGLangSpace, SVGExte set(value) = noImpl } -native public trait SVGFilterElement : SVGElement, SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { +native public interface SVGFilterElement : SVGElement, SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { var filterUnits: SVGAnimatedEnumeration get() = noImpl set(value) = noImpl @@ -1452,7 +1452,7 @@ native public trait SVGFilterElement : SVGElement, SVGURIReference, SVGLangSpace fun setFilterRes(filterResX: Int, filterResY: Int): Unit = noImpl } -native public trait SVGFilterPrimitiveStandardAttributes : SVGStylable { +native public interface SVGFilterPrimitiveStandardAttributes : SVGStylable { var x: SVGAnimatedLength get() = noImpl set(value) = noImpl @@ -1470,7 +1470,7 @@ native public trait SVGFilterPrimitiveStandardAttributes : SVGStylable { set(value) = noImpl } -native public trait SVGFEBlendElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +native public interface SVGFEBlendElement : SVGElement, SVGFilterPrimitiveStandardAttributes { var in1: SVGAnimatedString get() = noImpl set(value) = noImpl @@ -1491,7 +1491,7 @@ native public trait SVGFEBlendElement : SVGElement, SVGFilterPrimitiveStandardAt } } -native public trait SVGFEColorMatrixElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +native public interface SVGFEColorMatrixElement : SVGElement, SVGFilterPrimitiveStandardAttributes { var in1: SVGAnimatedString get() = noImpl set(value) = noImpl @@ -1511,13 +1511,13 @@ native public trait SVGFEColorMatrixElement : SVGElement, SVGFilterPrimitiveStan } } -native public trait SVGFEComponentTransferElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +native public interface SVGFEComponentTransferElement : SVGElement, SVGFilterPrimitiveStandardAttributes { var in1: SVGAnimatedString get() = noImpl set(value) = noImpl } -native public trait SVGComponentTransferFunctionElement : SVGElement { +native public interface SVGComponentTransferFunctionElement : SVGElement { var type: SVGAnimatedEnumeration get() = noImpl set(value) = noImpl @@ -1550,19 +1550,19 @@ native public trait SVGComponentTransferFunctionElement : SVGElement { } } -native public trait SVGFEFuncRElement : SVGComponentTransferFunctionElement { +native public interface SVGFEFuncRElement : SVGComponentTransferFunctionElement { } -native public trait SVGFEFuncGElement : SVGComponentTransferFunctionElement { +native public interface SVGFEFuncGElement : SVGComponentTransferFunctionElement { } -native public trait SVGFEFuncBElement : SVGComponentTransferFunctionElement { +native public interface SVGFEFuncBElement : SVGComponentTransferFunctionElement { } -native public trait SVGFEFuncAElement : SVGComponentTransferFunctionElement { +native public interface SVGFEFuncAElement : SVGComponentTransferFunctionElement { } -native public trait SVGFECompositeElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +native public interface SVGFECompositeElement : SVGElement, SVGFilterPrimitiveStandardAttributes { var in1: SVGAnimatedString get() = noImpl set(value) = noImpl @@ -1596,7 +1596,7 @@ native public trait SVGFECompositeElement : SVGElement, SVGFilterPrimitiveStanda } } -native public trait SVGFEConvolveMatrixElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +native public interface SVGFEConvolveMatrixElement : SVGElement, SVGFilterPrimitiveStandardAttributes { var in1: SVGAnimatedString get() = noImpl set(value) = noImpl @@ -1642,7 +1642,7 @@ native public trait SVGFEConvolveMatrixElement : SVGElement, SVGFilterPrimitiveS } } -native public trait SVGFEDiffuseLightingElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +native public interface SVGFEDiffuseLightingElement : SVGElement, SVGFilterPrimitiveStandardAttributes { var in1: SVGAnimatedString get() = noImpl set(value) = noImpl @@ -1660,7 +1660,7 @@ native public trait SVGFEDiffuseLightingElement : SVGElement, SVGFilterPrimitive set(value) = noImpl } -native public trait SVGFEDistantLightElement : SVGElement { +native public interface SVGFEDistantLightElement : SVGElement { var azimuth: SVGAnimatedNumber get() = noImpl set(value) = noImpl @@ -1669,7 +1669,7 @@ native public trait SVGFEDistantLightElement : SVGElement { set(value) = noImpl } -native public trait SVGFEPointLightElement : SVGElement { +native public interface SVGFEPointLightElement : SVGElement { var x: SVGAnimatedNumber get() = noImpl set(value) = noImpl @@ -1681,7 +1681,7 @@ native public trait SVGFEPointLightElement : SVGElement { set(value) = noImpl } -native public trait SVGFESpotLightElement : SVGElement { +native public interface SVGFESpotLightElement : SVGElement { var x: SVGAnimatedNumber get() = noImpl set(value) = noImpl @@ -1708,7 +1708,7 @@ native public trait SVGFESpotLightElement : SVGElement { set(value) = noImpl } -native public trait SVGFEDisplacementMapElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +native public interface SVGFEDisplacementMapElement : SVGElement, SVGFilterPrimitiveStandardAttributes { var in1: SVGAnimatedString get() = noImpl set(value) = noImpl @@ -1734,10 +1734,10 @@ native public trait SVGFEDisplacementMapElement : SVGElement, SVGFilterPrimitive } } -native public trait SVGFEFloodElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +native public interface SVGFEFloodElement : SVGElement, SVGFilterPrimitiveStandardAttributes { } -native public trait SVGFEGaussianBlurElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +native public interface SVGFEGaussianBlurElement : SVGElement, SVGFilterPrimitiveStandardAttributes { var in1: SVGAnimatedString get() = noImpl set(value) = noImpl @@ -1750,22 +1750,22 @@ native public trait SVGFEGaussianBlurElement : SVGElement, SVGFilterPrimitiveSta fun setStdDeviation(stdDeviationX: Float, stdDeviationY: Float): Unit = noImpl } -native public trait SVGFEImageElement : SVGElement, SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGFilterPrimitiveStandardAttributes { +native public interface SVGFEImageElement : SVGElement, SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGFilterPrimitiveStandardAttributes { var preserveAspectRatio: SVGAnimatedPreserveAspectRatio get() = noImpl set(value) = noImpl } -native public trait SVGFEMergeElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +native public interface SVGFEMergeElement : SVGElement, SVGFilterPrimitiveStandardAttributes { } -native public trait SVGFEMergeNodeElement : SVGElement { +native public interface SVGFEMergeNodeElement : SVGElement { var in1: SVGAnimatedString get() = noImpl set(value) = noImpl } -native public trait SVGFEMorphologyElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +native public interface SVGFEMorphologyElement : SVGElement, SVGFilterPrimitiveStandardAttributes { var in1: SVGAnimatedString get() = noImpl set(value) = noImpl @@ -1786,7 +1786,7 @@ native public trait SVGFEMorphologyElement : SVGElement, SVGFilterPrimitiveStand } } -native public trait SVGFEOffsetElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +native public interface SVGFEOffsetElement : SVGElement, SVGFilterPrimitiveStandardAttributes { var in1: SVGAnimatedString get() = noImpl set(value) = noImpl @@ -1798,7 +1798,7 @@ native public trait SVGFEOffsetElement : SVGElement, SVGFilterPrimitiveStandardA set(value) = noImpl } -native public trait SVGFESpecularLightingElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +native public interface SVGFESpecularLightingElement : SVGElement, SVGFilterPrimitiveStandardAttributes { var in1: SVGAnimatedString get() = noImpl set(value) = noImpl @@ -1819,13 +1819,13 @@ native public trait SVGFESpecularLightingElement : SVGElement, SVGFilterPrimitiv set(value) = noImpl } -native public trait SVGFETileElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +native public interface SVGFETileElement : SVGElement, SVGFilterPrimitiveStandardAttributes { var in1: SVGAnimatedString get() = noImpl set(value) = noImpl } -native public trait SVGFETurbulenceElement : SVGElement, SVGFilterPrimitiveStandardAttributes { +native public interface SVGFETurbulenceElement : SVGElement, SVGFilterPrimitiveStandardAttributes { var baseFrequencyX: SVGAnimatedNumber get() = noImpl set(value) = noImpl @@ -1855,7 +1855,7 @@ native public trait SVGFETurbulenceElement : SVGElement, SVGFilterPrimitiveStand } } -native public trait SVGCursorElement : SVGElement, SVGURIReference, SVGTests, SVGExternalResourcesRequired { +native public interface SVGCursorElement : SVGElement, SVGURIReference, SVGTests, SVGExternalResourcesRequired { var x: SVGAnimatedLength get() = noImpl set(value) = noImpl @@ -1864,19 +1864,19 @@ native public trait SVGCursorElement : SVGElement, SVGURIReference, SVGTests, SV set(value) = noImpl } -native public trait SVGAElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +native public interface SVGAElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { var target: SVGAnimatedString get() = noImpl set(value) = noImpl } -native public trait SVGViewElement : SVGElement, SVGExternalResourcesRequired, SVGFitToViewBox, SVGZoomAndPan { +native public interface SVGViewElement : SVGElement, SVGExternalResourcesRequired, SVGFitToViewBox, SVGZoomAndPan { var viewTarget: SVGStringList get() = noImpl set(value) = noImpl } -native public trait SVGScriptElement : SVGElement, SVGURIReference, SVGExternalResourcesRequired { +native public interface SVGScriptElement : SVGElement, SVGURIReference, SVGExternalResourcesRequired { var type: dynamic get() = noImpl set(value) = noImpl @@ -1900,7 +1900,7 @@ native public open class SVGZoomEvent : UIEvent(noImpl, noImpl) { set(value) = noImpl } -native public trait ElementTimeControl { +native public interface ElementTimeControl { fun beginElement(): Unit = noImpl fun beginElementAt(offset: Float): Unit = noImpl fun endElement(): Unit = noImpl @@ -1917,7 +1917,7 @@ native public open class TimeEvent : Event(noImpl, noImpl) { fun initTimeEvent(typeArg: String, viewArg: dynamic, detailArg: Int): Unit = noImpl } -native public trait SVGAnimationElement : SVGElement, SVGTests, SVGExternalResourcesRequired, ElementTimeControl { +native public interface SVGAnimationElement : SVGElement, SVGTests, SVGExternalResourcesRequired, ElementTimeControl { var targetElement: SVGElement get() = noImpl set(value) = noImpl @@ -1926,58 +1926,58 @@ native public trait SVGAnimationElement : SVGElement, SVGTests, SVGExternalResou fun getSimpleDuration(): Float = noImpl } -native public trait SVGAnimateElement : SVGAnimationElement, SVGStylable { +native public interface SVGAnimateElement : SVGAnimationElement, SVGStylable { } -native public trait SVGSetElement : SVGAnimationElement { +native public interface SVGSetElement : SVGAnimationElement { } -native public trait SVGAnimateMotionElement : SVGAnimationElement { +native public interface SVGAnimateMotionElement : SVGAnimationElement { } -native public trait SVGMPathElement : SVGElement, SVGURIReference, SVGExternalResourcesRequired { +native public interface SVGMPathElement : SVGElement, SVGURIReference, SVGExternalResourcesRequired { } -native public trait SVGAnimateColorElement : SVGAnimationElement, SVGStylable { +native public interface SVGAnimateColorElement : SVGAnimationElement, SVGStylable { } -native public trait SVGAnimateTransformElement : SVGAnimationElement { +native public interface SVGAnimateTransformElement : SVGAnimationElement { } -native public trait SVGFontElement : SVGElement, SVGExternalResourcesRequired, SVGStylable { +native public interface SVGFontElement : SVGElement, SVGExternalResourcesRequired, SVGStylable { } -native public trait SVGGlyphElement : SVGElement, SVGStylable { +native public interface SVGGlyphElement : SVGElement, SVGStylable { } -native public trait SVGMissingGlyphElement : SVGElement, SVGStylable { +native public interface SVGMissingGlyphElement : SVGElement, SVGStylable { } -native public trait SVGHKernElement : SVGElement { +native public interface SVGHKernElement : SVGElement { } -native public trait SVGVKernElement : SVGElement { +native public interface SVGVKernElement : SVGElement { } -native public trait SVGFontFaceElement : SVGElement { +native public interface SVGFontFaceElement : SVGElement { } -native public trait SVGFontFaceSrcElement : SVGElement { +native public interface SVGFontFaceSrcElement : SVGElement { } -native public trait SVGFontFaceUriElement : SVGElement { +native public interface SVGFontFaceUriElement : SVGElement { } -native public trait SVGFontFaceFormatElement : SVGElement { +native public interface SVGFontFaceFormatElement : SVGElement { } -native public trait SVGFontFaceNameElement : SVGElement { +native public interface SVGFontFaceNameElement : SVGElement { } -native public trait SVGMetadataElement : SVGElement { +native public interface SVGMetadataElement : SVGElement { } -native public trait SVGForeignObjectElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +native public interface SVGForeignObjectElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { var x: SVGAnimatedLength get() = noImpl set(value) = noImpl diff --git a/js/js.libraries/src/generated/org.w3c.files.kt b/js/js.libraries/src/generated/org.w3c.files.kt index e187a5aff83..7a75e445002 100644 --- a/js/js.libraries/src/generated/org.w3c.files.kt +++ b/js/js.libraries/src/generated/org.w3c.files.kt @@ -51,7 +51,7 @@ native public open class FilePropertyBag { var lastModified: Long } -native public trait FileList { +native public interface FileList { var length: Int get() = noImpl set(value) = noImpl @@ -105,6 +105,6 @@ native public open class FileReaderSync { fun readAsDataURL(blob: Blob): String = noImpl } -native public trait URL { +native public interface URL { } diff --git a/js/js.libraries/src/generated/org.w3c.performance.kt b/js/js.libraries/src/generated/org.w3c.performance.kt index c66a6e36697..b9adeaa62ac 100644 --- a/js/js.libraries/src/generated/org.w3c.performance.kt +++ b/js/js.libraries/src/generated/org.w3c.performance.kt @@ -19,7 +19,7 @@ import org.w3c.notifications.* import org.w3c.workers.* import org.w3c.xhr.* -native public trait Performance { +native public interface Performance { var timing: PerformanceTiming get() = noImpl set(value) = noImpl @@ -29,7 +29,7 @@ native public trait Performance { fun now(): Double = noImpl } -native public trait PerformanceTiming { +native public interface PerformanceTiming { var navigationStart: Long get() = noImpl set(value) = noImpl @@ -95,7 +95,7 @@ native public trait PerformanceTiming { set(value) = noImpl } -native public trait PerformanceNavigation { +native public interface PerformanceNavigation { var type: Short get() = noImpl set(value) = noImpl diff --git a/js/js.libraries/src/generated/org.w3c.workers.kt b/js/js.libraries/src/generated/org.w3c.workers.kt index 4aff1e44250..476998d7df1 100644 --- a/js/js.libraries/src/generated/org.w3c.workers.kt +++ b/js/js.libraries/src/generated/org.w3c.workers.kt @@ -19,7 +19,7 @@ import org.w3c.notifications.* import org.w3c.performance.* import org.w3c.xhr.* -native public trait ServiceWorkerRegistration : EventTarget { +native public interface ServiceWorkerRegistration : EventTarget { var installing: ServiceWorker? get() = noImpl set(value) = noImpl @@ -45,7 +45,7 @@ native public trait ServiceWorkerRegistration : EventTarget { fun getNotifications(filter: GetNotificationOptions = noImpl): dynamic = noImpl } -native public trait ServiceWorkerGlobalScope : WorkerGlobalScope { +native public interface ServiceWorkerGlobalScope : WorkerGlobalScope { var clients: Clients get() = noImpl set(value) = noImpl @@ -73,7 +73,7 @@ native public trait ServiceWorkerGlobalScope : WorkerGlobalScope { fun skipWaiting(): dynamic = noImpl } -native public trait ServiceWorker : EventTarget, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker { +native public interface ServiceWorker : EventTarget, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker { var scriptURL: String get() = noImpl set(value) = noImpl @@ -92,7 +92,7 @@ native public trait ServiceWorker : EventTarget, UnionMessagePortOrServiceWorker fun postMessage(message: Any?, transfer: Array = noImpl): Unit = noImpl } -native public trait ServiceWorkerContainer : EventTarget { +native public interface ServiceWorkerContainer : EventTarget { var controller: ServiceWorker? get() = noImpl set(value) = noImpl @@ -144,7 +144,7 @@ native public open class ServiceWorkerMessageEventInit : EventInit() { var ports: Array } -native public trait Client : UnionClientOrMessagePortOrServiceWorker { +native public interface Client : UnionClientOrMessagePortOrServiceWorker { var url: String get() = noImpl set(value) = noImpl @@ -157,7 +157,7 @@ native public trait Client : UnionClientOrMessagePortOrServiceWorker { fun postMessage(message: Any?, transfer: Array = noImpl): Unit = noImpl } -native public trait WindowClient : Client { +native public interface WindowClient : Client { var visibilityState: dynamic get() = noImpl set(value) = noImpl @@ -167,7 +167,7 @@ native public trait WindowClient : Client { fun focus(): dynamic = noImpl } -native public trait Clients { +native public interface Clients { fun matchAll(options: ClientQueryOptions = noImpl): dynamic = noImpl fun openWindow(url: String): dynamic = noImpl fun claim(): dynamic = noImpl @@ -231,7 +231,7 @@ native public open class ExtendableMessageEventInit : ExtendableEventInit() { var ports: Array } -native public trait Cache { +native public interface Cache { fun match(request: dynamic, options: CacheQueryOptions = noImpl): dynamic = noImpl fun matchAll(request: dynamic = noImpl, options: CacheQueryOptions = noImpl): dynamic = noImpl fun add(request: dynamic): dynamic = noImpl @@ -255,7 +255,7 @@ native public open class CacheBatchOperation { var options: CacheQueryOptions } -native public trait CacheStorage { +native public interface CacheStorage { fun match(request: dynamic, options: CacheQueryOptions = noImpl): dynamic = noImpl fun has(cacheName: String): dynamic = noImpl fun open(cacheName: String): dynamic = noImpl @@ -266,9 +266,9 @@ native public trait CacheStorage { native public open class FunctionalEvent : ExtendableEvent(noImpl, noImpl) { } -native public marker trait UnionMessagePortOrServiceWorker { +native public marker interface UnionMessagePortOrServiceWorker { } -native public marker trait UnionClientOrMessagePortOrServiceWorker { +native public marker interface UnionClientOrMessagePortOrServiceWorker { } diff --git a/js/js.libraries/src/generated/org.w3c.xhr.kt b/js/js.libraries/src/generated/org.w3c.xhr.kt index 68dd911f80e..63cce9968ec 100644 --- a/js/js.libraries/src/generated/org.w3c.xhr.kt +++ b/js/js.libraries/src/generated/org.w3c.xhr.kt @@ -19,7 +19,7 @@ import org.w3c.notifications.* import org.w3c.performance.* import org.w3c.workers.* -native public trait XMLHttpRequestEventTarget : EventTarget { +native public interface XMLHttpRequestEventTarget : EventTarget { var onloadstart: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -43,7 +43,7 @@ native public trait XMLHttpRequestEventTarget : EventTarget { set(value) = noImpl } -native public trait XMLHttpRequestUpload : XMLHttpRequestEventTarget { +native public interface XMLHttpRequestUpload : XMLHttpRequestEventTarget { } native public open class XMLHttpRequest : XMLHttpRequestEventTarget { diff --git a/libraries/tools/idl2k/src/main/kotlin/render.kt b/libraries/tools/idl2k/src/main/kotlin/render.kt index a5794e8c719..338bfaa2c6e 100644 --- a/libraries/tools/idl2k/src/main/kotlin/render.kt +++ b/libraries/tools/idl2k/src/main/kotlin/render.kt @@ -87,7 +87,7 @@ fun Appendable.render(allTypes: Map, typeNamesToUn } when (iface.kind) { GenerateDefinitionKind.CLASS -> append("open class ") - GenerateDefinitionKind.TRAIT -> append("trait ") + GenerateDefinitionKind.TRAIT -> append("interface ") } append(iface.name)