API reference / Common / Affine
Interface: Affine
2D affine transformation matrix, stored in PDF / SVG [a b c d e f] tuple order.
Represents the matrix
text
| a c e | | scale_x skew_x translate_x |
| b d f | = | skew_y scale_y translate_y |
| 0 0 1 | | 0 0 1 |applied to a column vector (x, y, 1). Equivalently, the tuple [a, b, c, d, e, f] matches PDF's cm operator argument order and SVG matrix(...) order.
Properties
| Property | Type |
|---|---|
scaleX | number |
skewY | number |
skewX | number |
scaleY | number |
translateX | number |
translateY | number |