Helper class to calculate where the edge attaches to an end marker.
Create a new line attachement info object.
The attachement point can either be an offset from 0,0 or a point relative to 0,0 of the template.
To specify an offset use a single number or a string containing exactly one number.
To specify a point use a string with two numbers seperated by a space or a point object.
The line attachement point must not include any transformations applied to the marker when it is rendered.
If only an offset was specified the attachement info is not directional.
- Arguments:
-
- Returns:
LineAttachementInfo –
-
LineAttachementInfo.getRotationVector(angle, scale)
Return a rotation vector pointing at the translated line attachement point.
- Arguments:
angle (number) –
scale (number) –
- Returns:
RotationVector –