Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG Overlay #36

Open
PpyMohan opened this issue Aug 23, 2019 · 1 comment
Open

SVG Overlay #36

PpyMohan opened this issue Aug 23, 2019 · 1 comment
Labels

Comments

@PpyMohan
Copy link

PpyMohan commented Aug 23, 2019

Hi,
i have few doubt's ,

  1. is that possible to add fabricjsOverlay on svgOverlay?
  2. Clear svg overlay and add new overlay.
  3. Need help in Arrow head. i am not able to add arrow head
@iangilman
Copy link
Member

is that possible to add fabricjsOverlay on svgOverlay?

I believe that's discussed in #35.

Clear svg overlay and add new overlay.

You don't need to remove the overlay

You should be able to clear the overlay however you normally work with SVG. Are you using D3 or just straight SVG? I think in D3 it would be something like:

d3.select(viewer.svgOverlay().node()).selectAll("*").remove();
Need help in Arrow head. i am not able to add arrow head

You would just draw an arrowhead however you normally would in SVG. For instance you might take a look at the marker feature of SVG:

https://developer.mozilla.org/en-US/docs/Web/SVG/Element/marker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants