Module

x/evt/lib/index.ts

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

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