Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SVGTransform

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.

interface SVGTransform {
readonly angle: number;
readonly matrix: DOMMatrix;
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;
readonly type: number;
setMatrix(matrix?: DOMMatrix2DInit): 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;
}
var SVGTransform: {
prototype: SVGTransform;
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;
new (): SVGTransform;
}
;

§Properties

§
readonly angle: number
[src]
§
readonly matrix: DOMMatrix
[src]
§
readonly SVG_TRANSFORM_MATRIX: number
[src]
§
readonly SVG_TRANSFORM_ROTATE: number
[src]
§
readonly SVG_TRANSFORM_SCALE: number
[src]
§
readonly SVG_TRANSFORM_SKEWX: number
[src]
§
readonly SVG_TRANSFORM_SKEWY: number
[src]
§
readonly SVG_TRANSFORM_TRANSLATE: number
[src]
§
readonly SVG_TRANSFORM_UNKNOWN: number
[src]
§
readonly type: number
[src]

§Methods

§
setMatrix(matrix?: DOMMatrix2DInit): void
[src]
§
setRotate(
angle: number,
cx: number,
cy: number,
): void
[src]
§
setScale(sx: number, sy: number): void
[src]
§
setSkewX(angle: number): void
[src]
§
setSkewY(angle: number): void
[src]
§
setTranslate(tx: number, ty: number): void
[src]