GraphicsJS icon indicating copy to clipboard operation
GraphicsJS copied to clipboard

Add an arrow on the line

Open MichelleCLiao opened this issue 6 years ago • 1 comments

How to add an arrow on the line? I'm having a issue that I would like to paint a line in between of two path() objects and add an arrow at the end of the line indicates that one object points to the other. But I find no where on the manual script telling how to add the arrow. Can anybody help me on this? Thanks in advance!

MichelleCLiao avatar Jan 13 '20 14:01 MichelleCLiao

@MichelleCLiao The GraphicsJS provides only some primitives to help to implement drawing functions, but many special signs, symbols, etc should be implemented manually using these primitives or paths. So, the arrow of any rotation angle can be implemented manually by a path with fill. For horizontal or vertical arrow you can use triangle primitives.

Shestac92 avatar Jan 14 '20 02:01 Shestac92