Transforms¶
Generates transform string for SVG elements
| Parameter | Type | Required | Description |
|---|---|---|---|
| translate | STRING | Optional: Translation coordinates (e.g., "10,20") | |
| rotate | STRING | Optional: Rotation with optional center point (e.g., "45" or "45 50 50") | |
| scale | STRING | Optional: Scale factors (e.g., "2" or "2,1.5") | |
| skewX | STRING | Optional: Horizontal skew angle in degrees | |
| skewY | STRING | Optional: Vertical skew angle in degrees |
STRING A transform attribute value that can be used with the transform attribute of SVG elements.
function 'DaxLib.SVG.Transforms' =
(
translate: STRING,
rotate: STRING,
scale: STRING,
skewX: STRING,
skewY: STRING
) =>
IF(NOT ISBLANK(translate), "translate(" & translate & ") ") &
IF(NOT ISBLANK(rotate), "rotate(" & rotate & ") ") &
IF(NOT ISBLANK(scale), "scale(" & scale & ") ") &
IF(NOT ISBLANK(skewX), "skewX(" & skewX & ") ") &
IF(NOT ISBLANK(skewY), "skewY(" & skewY & ") ")