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 {
    SVG_TRANSFORM_MATRIX: number;
    SVG_TRANSFORM_ROTATE: number;
    SVG_TRANSFORM_SCALE: number;
    SVG_TRANSFORM_SKEWX: number;
    SVG_TRANSFORM_SKEWY: number;
    SVG_TRANSFORM_TRANSLATE: number;
    SVG_TRANSFORM_UNKNOWN: number;
    angle: number;
    matrix: DOMMatrix;
    type: number;
    setMatrix(matrix?): void;
    setRotate(angle, cx, cy): void;
    setScale(sx, sy): void;
    setSkewX(angle): void;
    setSkewY(angle): void;
    setTranslate(tx, ty): void;
}

Properties

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

Methods

  • Parameters

    Returns void

  • Parameters

    • angle: number
    • cx: number
    • cy: number

    Returns void

  • Parameters

    • sx: number
    • sy: number

    Returns void

  • Parameters

    • angle: number

    Returns void

  • Parameters

    • angle: number

    Returns void

  • Parameters

    • tx: number
    • ty: number

    Returns void

Generated using TypeDoc