Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/gauntlet/imports/happy_dom.ts>SVGSVGElement

Work-in-progress front-end tool which does put a smile on my face
Latest
class SVGSVGElement
Re-export
import { SVGSVGElement } from "https://deno.land/x/gauntlet@v0.0.9/imports/happy_dom.ts";

SVGSVGElement.

Properties

contentScriptType: string

Returns contentScriptType.

currentScale: number

Returns currentScale.

readonly
currentTranslate: SVGPoint

Returns current translate.

height: string

Returns height.

preserveAspectRatio: string

Returns preserveAspectRatio.

readonly
viewBox: SVGAnimatedRect

Returns view box.

readonly
viewport: SVGRect

Returns viewport.

width: string

Returns width.

x: string

Returns x.

y: string

Returns y.

Methods

animationsPaused(): boolean

Returns "true" if animation is paused.

checkEnclosure(): boolean

Returns true if the rendered content of the given element is entirely contained within the supplied rectangle.

Returns true if the rendered content of the given element intersects the supplied rectangle.

cloneNode(deep?: boolean): ISVGSVGElement

Clones a node.

createSVGAngle(): SVGAngle

Returns a angle.

createSVGLength(): SVGLength

Returns a length.

createSVGNumber(): SVGNumber

Returns a number.

createSVGPoint(): SVGPoint

Returns a point.

createSVGRect(): SVGRect

Returns a rect.

createSVGTransform(): SVGTransform

Returns a transform.

deselectAll(): void

Unselects any selected objects, including any selections of text strings and type-in bars.

getCurrentTime(): number

Returns the current time in seconds relative to the start time for the current SVG document fragment.

Returns enclousure list.

Returns intersection list.

Pauses animation.

Sets current time.

Unpauses animation.