GeometryUtils

external interface GeometryUtils(source)

Exposes the JavaScript GeometryUtils to Kotlin

Since Kotlin

1.1

Inheritors

external interface GeometryUtils : JsAny(source)

Exposes the JavaScript GeometryUtils to Kotlin

Since Kotlin

1.8

Inheritors

Functions

Link copied to clipboard
abstract fun convertPointFromNode(point: DOMPointInit, from: dynamic, options: ConvertCoordinateOptions = definedExternally): DOMPoint
Since Kotlin 1.1
abstract fun convertPointFromNode(point: DOMPointInit, from: Document, options: ConvertCoordinateOptions = definedExternally): DOMPoint
abstract fun convertPointFromNode(point: DOMPointInit, from: Element, options: ConvertCoordinateOptions = definedExternally): DOMPoint
abstract fun convertPointFromNode(point: DOMPointInit, from: Text, options: ConvertCoordinateOptions = definedExternally): DOMPoint
Since Kotlin 1.8
Link copied to clipboard
abstract fun convertQuadFromNode(quad: dynamic, from: dynamic, options: ConvertCoordinateOptions = definedExternally): DOMQuad
Since Kotlin 1.1
abstract fun convertQuadFromNode(quad: JsAny?, from: Document, options: ConvertCoordinateOptions = definedExternally): DOMQuad
abstract fun convertQuadFromNode(quad: JsAny?, from: Element, options: ConvertCoordinateOptions = definedExternally): DOMQuad
abstract fun convertQuadFromNode(quad: JsAny?, from: Text, options: ConvertCoordinateOptions = definedExternally): DOMQuad
Since Kotlin 1.8
Link copied to clipboard
abstract fun convertRectFromNode(rect: DOMRectReadOnly, from: dynamic, options: ConvertCoordinateOptions = definedExternally): DOMQuad
Since Kotlin 1.1
abstract fun convertRectFromNode(rect: DOMRectReadOnly, from: Document, options: ConvertCoordinateOptions = definedExternally): DOMQuad
abstract fun convertRectFromNode(rect: DOMRectReadOnly, from: Element, options: ConvertCoordinateOptions = definedExternally): DOMQuad
abstract fun convertRectFromNode(rect: DOMRectReadOnly, from: Text, options: ConvertCoordinateOptions = definedExternally): DOMQuad
Since Kotlin 1.8
Link copied to clipboard
abstract fun getBoxQuads(options: BoxQuadOptions = definedExternally): Array<DOMQuad>
Since Kotlin 1.1
abstract fun getBoxQuads(options: BoxQuadOptions = definedExternally): JsArray<DOMQuad>
Since Kotlin 1.8
Link copied to clipboard

For a Dynamic value caught in JS, returns the corresponding Throwable if it was thrown from Kotlin, or null otherwise.

Since Kotlin 1.8
Link copied to clipboard
fun <T : JsAny> JsAny.unsafeCast(): T

Cast JsAny to other Js type without runtime check

Since Kotlin 1.8