DimensionLine Class
NOTES: - offset length can be set by user in world coordinates
Calculate a offset length
Place SVG arrow on position and rotation. Tip of the arrow is pivot
Optional
Generate a line segment in SVG (with SVG coords)
bind parameter to this dimension line and make it interactive
Get rotation in SVG coordinate system (so mirror y!)
Link to Shape so we can export DimensionLine with the shapes
Middle Point of this DimensionLine
Set static value
Output to data (to be send from Webworker to main app)
Make a Line Edge out this DimensionLine
Generate SVG for this dimension line if 3D the Dimension Line is projected to XY plane NOTE: we need to transform from Archiyou coordinate system to the SVG one (flip y)
Type of Annotation, reimplemented in extended classes
Update when linked Shape is updated
Update position after linked Shape has moved !!!! IMPORTANT !!!! Improve this method
Generated using TypeDoc
DimensionLine Class
NOTES: - offset length can be set by user in world coordinates