Skip to content

Commit

Permalink
Web Types 0.0.190 [generated]
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Jan 9, 2025
1 parent 816c5d5 commit 742a0e8
Show file tree
Hide file tree
Showing 13 changed files with 224 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ import seskar.js.JsValue

sealed external interface PermissionName {
companion object {
@JsValue("camera")
val camera: PermissionName

@JsValue("geolocation")
val geolocation: PermissionName

@JsValue("microphone")
val microphone: PermissionName

@JsValue("midi")
val midi: PermissionName

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@
package web.svg

sealed external interface SVGAnimatedPoints {
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement/animatedPoints)
*/
val animatedPoints: SVGPointList
get() = definedExternally

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement/points)
*/
val points: SVGPointList
get() = definedExternally
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,19 @@ open external class SVGFEColorMatrixElement
private constructor() :
SVGElement,
SVGFilterPrimitiveStandardAttributes {
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/in1)
*/
val in1: SVGAnimatedString

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/type)
*/
val type: SVGAnimatedEnumeration<Type>

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/values)
*/
val values: SVGAnimatedNumberList
val SVG_FECOLORMATRIX_TYPE_UNKNOWN: Type
val SVG_FECOLORMATRIX_TYPE_MATRIX: Type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ package web.svg
open external class SVGFEDistantLightElement
private constructor() :
SVGElement {
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement/azimuth)
*/
val azimuth: SVGAnimatedNumber

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement/elevation)
*/
val elevation: SVGAnimatedNumber
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,24 @@ open external class SVGFEGaussianBlurElement
private constructor() :
SVGElement,
SVGFilterPrimitiveStandardAttributes {
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/in1)
*/
val in1: SVGAnimatedString

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

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

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/setStdDeviation)
*/
fun setStdDeviation(
stdDeviationX: Float,
stdDeviationY: Float,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,25 @@ open external class SVGFESpecularLightingElement
private constructor() :
SVGElement,
SVGFilterPrimitiveStandardAttributes {
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/in1)
*/
val in1: SVGAnimatedString
val kernelUnitLengthX: SVGAnimatedNumber
val kernelUnitLengthY: SVGAnimatedNumber

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

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

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/surfaceScale)
*/
val surfaceScale: SVGAnimatedNumber
}
23 changes: 23 additions & 0 deletions kotlin-browser/src/jsMain/generated/web/svg/SVGFilterElement.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,33 @@ open external class SVGFilterElement
private constructor() :
SVGElement,
SVGURIReference {
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/filterUnits)
*/
val filterUnits: SVGAnimatedEnumeration<SVGUnitTypes.Type>

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

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/primitiveUnits)
*/
val primitiveUnits: SVGAnimatedEnumeration<SVGUnitTypes.Type>

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

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

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/y)
*/
val y: SVGAnimatedLength
}
11 changes: 11 additions & 0 deletions kotlin-browser/src/jsMain/generated/web/svg/SVGGradientElement.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,19 @@ open external class SVGGradientElement
private constructor() :
SVGElement,
SVGURIReference {
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/gradientTransform)
*/
val gradientTransform: SVGAnimatedTransformList

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/gradientUnits)
*/
val gradientUnits: SVGAnimatedEnumeration<SVGUnitTypes.Type>

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/spreadMethod)
*/
val spreadMethod: SVGAnimatedEnumeration<SpreadMethod>
val SVG_SPREADMETHOD_UNKNOWN: SpreadMethod
val SVG_SPREADMETHOD_PAD: SpreadMethod
Expand Down
34 changes: 34 additions & 0 deletions kotlin-browser/src/jsMain/generated/web/svg/SVGNumberList.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,52 @@ external class SVGNumberList
private constructor() :
ArrayLike<SVGNumber>,
JsIterable<SVGNumber> {
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/length)
*/
override val length: Int

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/numberOfItems)
*/
val numberOfItems: Int

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/appendItem)
*/
fun appendItem(newItem: SVGNumber): SVGNumber

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/clear)
*/
fun clear()

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/getItem)
*/
fun getItem(index: Int): SVGNumber

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/initialize)
*/
fun initialize(newItem: SVGNumber): SVGNumber

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/insertItemBefore)
*/
fun insertItemBefore(
newItem: SVGNumber,
index: Int,
): SVGNumber

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/removeItem)
*/
fun removeItem(index: Int): SVGNumber

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/replaceItem)
*/
fun replaceItem(
newItem: SVGNumber,
index: Int,
Expand Down
3 changes: 3 additions & 0 deletions kotlin-browser/src/jsMain/generated/web/svg/SVGStopElement.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ package web.svg
open external class SVGStopElement
private constructor() :
SVGElement {
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement/offset)
*/
val offset: SVGAnimatedNumber
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,55 @@ import web.geometry.DOMRect
open external class SVGTextContentElement
private constructor() :
SVGGraphicsElement {
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/lengthAdjust)
*/
val lengthAdjust: SVGAnimatedEnumeration<LengthAdjust>

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

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getCharNumAtPosition)
*/
fun getCharNumAtPosition(point: DOMPointInit = definedExternally): Int
fun getCharNumAtPosition(point: DOMPointReadOnly /* DOMPointInit */): Int

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getComputedTextLength)
*/
fun getComputedTextLength(): Float

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getEndPositionOfChar)
*/
fun getEndPositionOfChar(charnum: Int): DOMPoint

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getExtentOfChar)
*/
fun getExtentOfChar(charnum: Int): DOMRect

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getNumberOfChars)
*/
fun getNumberOfChars(): Int

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getRotationOfChar)
*/
fun getRotationOfChar(charnum: Int): Float

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getStartPositionOfChar)
*/
fun getStartPositionOfChar(charnum: Int): DOMPoint

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getSubStringLength)
*/
fun getSubStringLength(
charnum: Int,
nchars: Int,
Expand Down
11 changes: 11 additions & 0 deletions kotlin-browser/src/jsMain/generated/web/svg/SVGTextPathElement.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,19 @@ open external class SVGTextPathElement
private constructor() :
SVGTextContentElement,
SVGURIReference {
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/method)
*/
val method: SVGAnimatedEnumeration<Method>

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/spacing)
*/
val spacing: SVGAnimatedEnumeration<Spacing>

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/startOffset)
*/
val startOffset: SVGAnimatedLength
val TEXTPATH_METHODTYPE_UNKNOWN: Method
val TEXTPATH_METHODTYPE_ALIGN: Method
Expand Down
42 changes: 42 additions & 0 deletions kotlin-browser/src/jsMain/generated/web/svg/SVGTransformList.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,63 @@ external class SVGTransformList
private constructor() :
ArrayLike<SVGTransform>,
JsIterable<SVGTransform> {
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/length)
*/
override val length: Int

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/numberOfItems)
*/
val numberOfItems: Int

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/appendItem)
*/
fun appendItem(newItem: SVGTransform): SVGTransform

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/clear)
*/
fun clear()

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/consolidate)
*/
fun consolidate(): SVGTransform?

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/createSVGTransformFromMatrix)
*/
fun createSVGTransformFromMatrix(matrix: DOMMatrix2DInit = definedExternally): SVGTransform
fun createSVGTransformFromMatrix(matrix: DOMMatrixReadOnly /* DOMMatrix2DInit */): SVGTransform

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/getItem)
*/
fun getItem(index: Int): SVGTransform

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/initialize)
*/
fun initialize(newItem: SVGTransform): SVGTransform

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/insertItemBefore)
*/
fun insertItemBefore(
newItem: SVGTransform,
index: Int,
): SVGTransform

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/removeItem)
*/
fun removeItem(index: Int): SVGTransform

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/replaceItem)
*/
fun replaceItem(
newItem: SVGTransform,
index: Int,
Expand Down

0 comments on commit 742a0e8

Please sign in to comment.