Skip to content

Commit

Permalink
Update declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Dec 25, 2024
1 parent a5030af commit dd58e5a
Show file tree
Hide file tree
Showing 16 changed files with 115 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/
Expand Down Expand Up @@ -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)
Expand Down
10 changes: 1 addition & 9 deletions browser-kotlin/src/jsMain/kotlin/web/dom/Document.kt
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ open external class Document :
*/
fun <T : Node> importNode(
node: T,
deep: Boolean = definedExternally,
subtree: Boolean = definedExternally,
): T

/**
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion browser-kotlin/src/jsMain/kotlin/web/dom/Node.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
22 changes: 22 additions & 0 deletions browser-kotlin/src/jsMain/kotlin/web/geometry/DOMMatrix.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)

/**
Expand Down
4 changes: 4 additions & 0 deletions browser-kotlin/src/jsMain/kotlin/web/html/HTMLElement.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down
7 changes: 7 additions & 0 deletions browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedAngle.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
7 changes: 7 additions & 0 deletions browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedNumber.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
7 changes: 7 additions & 0 deletions browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimatedRect.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
16 changes: 16 additions & 0 deletions browser-kotlin/src/jsMain/kotlin/web/svg/SVGAnimationElement.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions browser-kotlin/src/jsMain/kotlin/web/svg/SVGTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit dd58e5a

Please sign in to comment.