You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initially, I wanted the start-marker and end-marker since it creates a coherent drawing element in a sense that if you further enhance the resulting svg in an svg editor such as inkscape, the user can freely manipulate the lines, such as rotating the lines, dragging one of the endpoints. Rendering these arrow heads as polygon may simplify the algorithms in the code, but also losses the nice features of creating a more coherent output.
Might be a good alternative to do it, to keep a consistent look across browsers. This could also be implemented as a flag in the Settings.
This commit adds a parameter in the Settings to specify whether or not Arrow heads will merge with lines. The default value is false, hence the arrow heads will be rendered as polygons instead of a marker to a line. A published version 0.5.0 of the crate have this change.
As of current master:
It looks okay in Chrome and Firefox, but Safari does this:
It would be good to avoid
marker-start
/marker-end
and instead use apolygon class="filled"
to position and draw the arrowheads.The text was updated successfully, but these errors were encountered: