Transform

js.html.svg.Transform (extern class)

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.

Documentation SVGTransform by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Static Members

SVG_TRANSFORM_UNKNOWN: Int

SVG_TRANSFORM_MATRIX: Int

SVG_TRANSFORM_TRANSLATE: Int

SVG_TRANSFORM_SCALE: Int

SVG_TRANSFORM_ROTATE: Int

SVG_TRANSFORM_SKEWX: Int

SVG_TRANSFORM_SKEWY: Int

Instance Members

type: Int

matrix: Matrix

angle: Float

setMatrix(matrix: Matrix): Void
Name Type
matrix Matrix

setTranslate(tx: Float, ty: Float): Void
Name Type
tx Float
ty Float

setScale(sx: Float, sy: Float): Void
Name Type
sx Float
sy Float

setRotate(angle: Float, cx: Float, cy: Float): Void
Name Type
angle Float
cx Float
cy Float

setSkewX(angle: Float): Void
Name Type
angle Float

setSkewY(angle: Float): Void
Name Type
angle Float