Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/lib.dom.ts>SVGTransform

💧EventEmitter's typesafe replacement
Go to Latest
interface SVGTransform
import { type SVGTransform } from "https://deno.land/x/evt@v2.4.19/lib/types/lib.dom.ts";

SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(…) or matrix(…)) within a transform attribute.

Properties

readonly
angle: number
readonly
matrix: SVGMatrix
readonly
type: number
readonly
SVG_TRANSFORM_MATRIX: number
readonly
SVG_TRANSFORM_ROTATE: number
readonly
SVG_TRANSFORM_SCALE: number
readonly
SVG_TRANSFORM_SKEWX: number
readonly
SVG_TRANSFORM_SKEWY: number
readonly
SVG_TRANSFORM_TRANSLATE: number
readonly
SVG_TRANSFORM_UNKNOWN: number

Methods

setMatrix(matrix: SVGMatrix): void
setRotate(
angle: number,
cx: number,
cy: number,
): void
setScale(sx: number, sy: number): void
setSkewX(angle: number): void
setSkewY(angle: number): void
setTranslate(tx: number, ty: number): void