Closed djpasseyjr closed 2 years ago
Hi @djpasseyjr, thank you for the comment.
I don't know whether you want to customize the library or change current SVG.
If you want to customize the library for the option, you have to edit symbols.html
to recognize your new symbol (*Plug
options) and compile the library with customized files.
Or, if you want to change current SVG only, you can edit the symbol that you will choose in svg#leader-line-defs > defs
(e.g. #leader-line-arrow1
).
This is perfect. I didn't think of editing the existing svgs. I'm just making a prototype so a hacky solutions is fine for now! I'm going to give that a shot. I'll let you know if it works.
I'm glad if I could help you. :smile: Could you close this issue when it is solved?
It worked! Thanks for the help.
If I used:
<script src="path/to/leader-line.min.js"></script>
Then I could create my own svg with id="leader-line-arrow1"
in my document and it was preferred to the arrow1 svg defined in the .min.js file. If I run into problems having multiple elements with the same ID I can always change the one in the min.js file.
:smile:
Hi, I have a site that uses
leader-line
. Can you help me understand howleader-line
works? Can you send me the files and line numbers that I need to change in order to render a customized svgendPlug
option?Here is what I tried:
But the problem is when I call
What can I do to fix this? Where does this happen in the code?