SVGSVGElement
abstract class SVGSVGElement :
SVGGraphicsElement,
SVGFitToViewBox,
SVGZoomAndPan,
WindowEventHandlersExposes the JavaScript SVGSVGElement to Kotlin
Constructors
<init>
Exposes the JavaScript SVGSVGElement to Kotlin
SVGSVGElement()Properties
currentScale
open var currentScale: FloatcurrentTranslate
open val currentTranslate: DOMPointReadOnlyheight
open val height: SVGAnimatedLengthwidth
open val width: SVGAnimatedLengthx
open val x: SVGAnimatedLengthy
open val y: SVGAnimatedLengthFunctions
checkEnclosure
fun checkEnclosure(
element: SVGElement,
rect: DOMRectReadOnly
): BooleancheckIntersection
fun checkIntersection(
element: SVGElement,
rect: DOMRectReadOnly
): BooleancreateSVGAngle
fun createSVGAngle(): SVGAnglecreateSVGLength
fun createSVGLength(): SVGLengthcreateSVGMatrix
fun createSVGMatrix(): DOMMatrixcreateSVGNumber
fun createSVGNumber(): SVGNumbercreateSVGPoint
fun createSVGPoint(): DOMPointcreateSVGRect
fun createSVGRect(): DOMRectcreateSVGTransform
fun createSVGTransform(): SVGTransformcreateSVGTransformFromMatrix
fun createSVGTransformFromMatrix(
matrix: DOMMatrixReadOnly
): SVGTransformdeselectAll
fun deselectAll()forceRedraw
fun forceRedraw()getElementById
fun getElementById(elementId: String): ElementgetEnclosureList
fun getEnclosureList(
rect: DOMRectReadOnly,
referenceElement: SVGElement?
): NodeListgetIntersectionList
fun getIntersectionList(
rect: DOMRectReadOnly,
referenceElement: SVGElement?
): NodeListsuspendRedraw
fun suspendRedraw(maxWaitMilliseconds: Int): IntunsuspendRedraw
fun unsuspendRedraw(suspendHandleID: Int)unsuspendRedrawAll
fun unsuspendRedrawAll()Companion Object Properties
ATTRIBUTE_NODE
val ATTRIBUTE_NODE: ShortCDATA_SECTION_NODE
val CDATA_SECTION_NODE: ShortCOMMENT_NODE
val COMMENT_NODE: ShortDOCUMENT_FRAGMENT_NODE
val DOCUMENT_FRAGMENT_NODE: ShortDOCUMENT_NODE
val DOCUMENT_NODE: ShortDOCUMENT_POSITION_CONTAINED_BY
val DOCUMENT_POSITION_CONTAINED_BY: ShortDOCUMENT_POSITION_CONTAINS
val DOCUMENT_POSITION_CONTAINS: ShortDOCUMENT_POSITION_DISCONNECTED
val DOCUMENT_POSITION_DISCONNECTED: ShortDOCUMENT_POSITION_FOLLOWING
val DOCUMENT_POSITION_FOLLOWING: ShortDOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
val DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: ShortDOCUMENT_POSITION_PRECEDING
val DOCUMENT_POSITION_PRECEDING: ShortDOCUMENT_TYPE_NODE
val DOCUMENT_TYPE_NODE: ShortELEMENT_NODE
val ELEMENT_NODE: ShortENTITY_NODE
val ENTITY_NODE: ShortENTITY_REFERENCE_NODE
val ENTITY_REFERENCE_NODE: ShortNOTATION_NODE
val NOTATION_NODE: ShortPROCESSING_INSTRUCTION_NODE
val PROCESSING_INSTRUCTION_NODE: ShortSVG_ZOOMANDPAN_DISABLE
val SVG_ZOOMANDPAN_DISABLE: ShortSVG_ZOOMANDPAN_MAGNIFY
val SVG_ZOOMANDPAN_MAGNIFY: ShortSVG_ZOOMANDPAN_UNKNOWN
val SVG_ZOOMANDPAN_UNKNOWN: ShortTEXT_NODE
val TEXT_NODE: ShortExtension Properties
Extension Functions
addClass
Adds CSS class to element. Has no effect if all specified classes are already in class attribute of the element
fun Element.addClass(vararg cssClasses: String): BooleanhasClass
Returns true if the element has the given CSS class style in its 'class' attribute
fun Element.hasClass(cssClass: String): BooleanremoveClass
Removes all cssClasses from element. Has no effect if all specified classes are missing in class attribute of the element
fun Element.removeClass(vararg cssClasses: String): Boolean