Skip to content

Commit

Permalink
Update declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Jan 16, 2025
1 parent 6abad41 commit 092be83
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
8 changes: 8 additions & 0 deletions browser-kotlin/src/jsMain/kotlin/web/geometry/DOMMatrix.kt
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,16 @@ open external class DOMMatrix(
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf)
*/
fun invertSelf(): DOMMatrix

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf)
*/
fun multiplySelf(other: DOMMatrixInit = definedExternally): DOMMatrix
fun multiplySelf(other: DOMMatrixReadOnly /* DOMMatrixInit */): DOMMatrix

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf)
*/
fun preMultiplySelf(other: DOMMatrixInit = definedExternally): DOMMatrix
fun preMultiplySelf(other: DOMMatrixReadOnly /* DOMMatrixInit */): DOMMatrix
fun rotateAxisAngleSelf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ open external class DOMMatrixReadOnly(
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse)
*/
fun inverse(): DOMMatrix

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply)
*/
fun multiply(other: DOMMatrixInit = definedExternally): DOMMatrix
fun multiply(other: DOMMatrixReadOnly /* DOMMatrixInit */): DOMMatrix
fun rotate(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,39 @@ package web.svg
open external class SVGComponentTransferFunctionElement
private constructor() :
SVGElement {
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/amplitude)
*/
val amplitude: SVGAnimatedNumber

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/exponent)
*/
val exponent: SVGAnimatedNumber

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/intercept)
*/
val intercept: SVGAnimatedNumber

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/offset)
*/
val offset: SVGAnimatedNumber

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/slope)
*/
val slope: SVGAnimatedNumber

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/tableValues)
*/
val tableValues: SVGAnimatedNumberList

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/type)
*/
val type: SVGAnimatedEnumeration<Type>
val SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: Type
val SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: Type
Expand Down
23 changes: 23 additions & 0 deletions browser-kotlin/src/jsMain/kotlin/web/svg/SVGRectElement.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,33 @@ package web.svg
open external class SVGRectElement
private constructor() :
SVGGeometryElement {
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/height)
*/
val height: SVGAnimatedLength

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/rx)
*/
val rx: SVGAnimatedLength

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/ry)
*/
val ry: SVGAnimatedLength

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/width)
*/
val width: SVGAnimatedLength

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/x)
*/
val x: SVGAnimatedLength

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/y)
*/
val y: SVGAnimatedLength
}

0 comments on commit 092be83

Please sign in to comment.