From dd58e5a88690a3a9c0c15c332487553510225f56 Mon Sep 17 00:00:00 2001 From: Victor Turansky Date: Wed, 25 Dec 2024 17:09:28 +0200 Subject: [PATCH] Update declarations --- .../kotlin/web/cssom/CSSStyleDeclaration.kt | 8 +++---- .../src/jsMain/kotlin/web/dom/Document.kt | 10 +-------- .../src/jsMain/kotlin/web/dom/Node.kt | 2 +- .../jsMain/kotlin/web/geometry/DOMMatrix.kt | 22 +++++++++++++++++++ .../kotlin/web/geometry/DOMMatrixReadOnly.kt | 8 +++++++ .../web/gl/WebGLRenderingContextBase.kt | 4 ++++ .../src/jsMain/kotlin/web/html/HTMLElement.kt | 4 ++++ .../jsMain/kotlin/web/svg/SVGAnimatedAngle.kt | 7 ++++++ .../kotlin/web/svg/SVGAnimatedBoolean.kt | 7 ++++++ .../kotlin/web/svg/SVGAnimatedLengthList.kt | 7 ++++++ .../kotlin/web/svg/SVGAnimatedNumber.kt | 7 ++++++ .../kotlin/web/svg/SVGAnimatedNumberList.kt | 7 ++++++ .../jsMain/kotlin/web/svg/SVGAnimatedRect.kt | 7 ++++++ .../web/svg/SVGAnimatedTransformList.kt | 7 ++++++ .../kotlin/web/svg/SVGAnimationElement.kt | 16 ++++++++++++++ .../src/jsMain/kotlin/web/svg/SVGTests.kt | 7 ++++++ 16 files changed, 115 insertions(+), 15 deletions(-) diff --git a/browser-kotlin/src/jsMain/kotlin/web/cssom/CSSStyleDeclaration.kt b/browser-kotlin/src/jsMain/kotlin/web/cssom/CSSStyleDeclaration.kt index c6ca8c100..8ec7b0c52 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/cssom/CSSStyleDeclaration.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/cssom/CSSStyleDeclaration.kt @@ -1567,11 +1567,6 @@ private constructor() : */ var position: String - /** - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position-area) - */ - var positionArea: String - /** * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) */ @@ -1871,6 +1866,9 @@ private constructor() : * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-anchor) */ var textAnchor: String + var textBox: String + var textBoxEdge: String + var textBoxTrim: String /** * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) diff --git a/browser-kotlin/src/jsMain/kotlin/web/dom/Document.kt b/browser-kotlin/src/jsMain/kotlin/web/dom/Document.kt index f413e2422..8f23d78df 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/dom/Document.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/dom/Document.kt @@ -565,7 +565,7 @@ open external class Document : */ fun importNode( node: T, - deep: Boolean = definedExternally, + subtree: Boolean = definedExternally, ): T /** @@ -608,14 +608,6 @@ open external class Document : */ fun startViewTransition(callbackOptions: ViewTransitionUpdateCallback = definedExternally): ViewTransition - /** - * Writes one or more HTML expressions to a document in the specified window. - * @param content Specifies the text and HTML tags to write. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write) - */ - fun write(vararg text: String) - /** * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. * @param content The text and HTML tags to write. diff --git a/browser-kotlin/src/jsMain/kotlin/web/dom/Node.kt b/browser-kotlin/src/jsMain/kotlin/web/dom/Node.kt index 0652d766f..e1cdd4abd 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/dom/Node.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/dom/Node.kt @@ -117,7 +117,7 @@ private constructor() : * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) */ - fun cloneNode(deep: Boolean = definedExternally): Node + fun cloneNode(subtree: Boolean = definedExternally): Node /** * Returns a bitmask indicating the position of other relative to node. diff --git a/browser-kotlin/src/jsMain/kotlin/web/geometry/DOMMatrix.kt b/browser-kotlin/src/jsMain/kotlin/web/geometry/DOMMatrix.kt index abf257de0..4f0391195 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/geometry/DOMMatrix.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/geometry/DOMMatrix.kt @@ -123,6 +123,10 @@ open external class DOMMatrix( * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ override var m44: Double + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf) + */ fun invertSelf(): DOMMatrix fun multiplySelf(other: DOMMatrixInit = definedExternally): DOMMatrix fun multiplySelf(other: DOMMatrixReadOnly /* DOMMatrixInit */): DOMMatrix @@ -140,6 +144,9 @@ open external class DOMMatrix( y: Double = definedExternally, ): DOMMatrix + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf) + */ fun rotateSelf( rotX: Double = definedExternally, rotY: Double = definedExternally, @@ -162,9 +169,24 @@ open external class DOMMatrix( originZ: Double = definedExternally, ): DOMMatrix + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/setMatrixValue) + */ fun setMatrixValue(transformList: String): DOMMatrix + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf) + */ fun skewXSelf(sx: Double = definedExternally): DOMMatrix + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf) + */ fun skewYSelf(sy: Double = definedExternally): DOMMatrix + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf) + */ fun translateSelf( tx: Double = definedExternally, ty: Double = definedExternally, diff --git a/browser-kotlin/src/jsMain/kotlin/web/geometry/DOMMatrixReadOnly.kt b/browser-kotlin/src/jsMain/kotlin/web/geometry/DOMMatrixReadOnly.kt index 351493d3a..79ca5aadf 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/geometry/DOMMatrixReadOnly.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/geometry/DOMMatrixReadOnly.kt @@ -131,6 +131,10 @@ open external class DOMMatrixReadOnly( */ fun flipX(): DOMMatrix fun flipY(): DOMMatrix + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) + */ fun inverse(): DOMMatrix fun multiply(other: DOMMatrixInit = definedExternally): DOMMatrix fun multiply(other: DOMMatrixReadOnly /* DOMMatrixInit */): DOMMatrix @@ -175,6 +179,10 @@ open external class DOMMatrixReadOnly( fun skewY(sy: Double = definedExternally): DOMMatrix fun toFloat32Array(): Float32Array<*> fun toFloat64Array(): Float64Array<*> + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) + */ fun toJSON(): Any fun transformPoint(point: DOMPointInit = definedExternally): DOMPoint fun transformPoint(point: DOMPointReadOnly /* DOMPointInit */): DOMPoint diff --git a/browser-kotlin/src/jsMain/kotlin/web/gl/WebGLRenderingContextBase.kt b/browser-kotlin/src/jsMain/kotlin/web/gl/WebGLRenderingContextBase.kt index 4b7e7e55c..3a9fca1b8 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/gl/WebGLRenderingContextBase.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/gl/WebGLRenderingContextBase.kt @@ -610,6 +610,10 @@ sealed external interface WebGLRenderingContextBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */ fun isTexture(texture: WebGLTexture?): GLboolean + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/lineWidth) + */ fun lineWidth(width: GLfloat) /** diff --git a/browser-kotlin/src/jsMain/kotlin/web/html/HTMLElement.kt b/browser-kotlin/src/jsMain/kotlin/web/html/HTMLElement.kt index fa128cec2..d3d7c3854 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/html/HTMLElement.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/html/HTMLElement.kt @@ -124,6 +124,10 @@ protected constructor() : * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) */ var translate: Boolean + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/writingSuggestions) + */ var writingSuggestions: String /** diff --git a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedAngle.kt b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedAngle.kt index b04d08bbf..33a3f375a 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedAngle.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedAngle.kt @@ -9,6 +9,13 @@ package web.svg */ external class SVGAnimatedAngle private constructor() { + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle/animVal) + */ val animVal: SVGAngle + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle/baseVal) + */ val baseVal: SVGAngle } diff --git a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedBoolean.kt b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedBoolean.kt index 269242718..db16eedac 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedBoolean.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedBoolean.kt @@ -9,6 +9,13 @@ package web.svg */ external class SVGAnimatedBoolean private constructor() { + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean/animVal) + */ val animVal: Boolean + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean/baseVal) + */ var baseVal: Boolean } diff --git a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedLengthList.kt b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedLengthList.kt index 031029c12..77664dc1c 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedLengthList.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedLengthList.kt @@ -9,6 +9,13 @@ package web.svg */ external class SVGAnimatedLengthList private constructor() { + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList/animVal) + */ val animVal: SVGLengthList + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList/baseVal) + */ val baseVal: SVGLengthList } diff --git a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedNumber.kt b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedNumber.kt index 0776d03ea..83067cd00 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedNumber.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedNumber.kt @@ -9,6 +9,13 @@ package web.svg */ external class SVGAnimatedNumber private constructor() { + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber/animVal) + */ val animVal: Float + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber/baseVal) + */ var baseVal: Float } diff --git a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedNumberList.kt b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedNumberList.kt index 038aa096f..dfb427ff8 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedNumberList.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedNumberList.kt @@ -9,6 +9,13 @@ package web.svg */ external class SVGAnimatedNumberList private constructor() { + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList/animVal) + */ val animVal: SVGNumberList + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList/baseVal) + */ val baseVal: SVGNumberList } diff --git a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedRect.kt b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedRect.kt index 889642a17..257c43148 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedRect.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedRect.kt @@ -12,6 +12,13 @@ import web.geometry.DOMRectReadOnly */ external class SVGAnimatedRect private constructor() { + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/animVal) + */ val animVal: DOMRectReadOnly + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/baseVal) + */ val baseVal: DOMRect } diff --git a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedTransformList.kt b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedTransformList.kt index b73ebab9d..0f0e937e8 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedTransformList.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedTransformList.kt @@ -9,6 +9,13 @@ package web.svg */ external class SVGAnimatedTransformList private constructor() { + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList/animVal) + */ val animVal: SVGTransformList + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList/baseVal) + */ val baseVal: SVGTransformList } diff --git a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimationElement.kt b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimationElement.kt index c151c938e..b87c7af76 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimationElement.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimationElement.kt @@ -13,9 +13,25 @@ private constructor() : * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/targetElement) */ val targetElement: SVGElement? + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/beginElement) + */ fun beginElement() + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/beginElementAt) + */ fun beginElementAt(offset: Float) + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/endElement) + */ fun endElement() + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/endElementAt) + */ fun endElementAt(offset: Float) fun getCurrentTime(): Float fun getSimpleDuration(): Float diff --git a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGTests.kt b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGTests.kt index a1f07e91b..7e1f8d72d 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/svg/SVGTests.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/svg/SVGTests.kt @@ -7,8 +7,15 @@ package web.svg sealed external interface SVGTests { + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/requiredExtensions) + */ val requiredExtensions: SVGStringList get() = definedExternally + + /** + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/systemLanguage) + */ val systemLanguage: SVGStringList get() = definedExternally }