Comments (8)
Hi @MDeus, thank you for the comment.
That error means that an element can't be accessed.
To reproduce that, could you show an example by using e.g. https://jsfiddle.net/ ?
from leader-line.
Hi, it works in js fiddle, link: jsfiddle. I am wondering what is the best way to import the library on my local code. because I do:
<script xlink:href="https://cdn.jsdelivr.net/npm/[email protected]/leader-line.min.js"/>
inside the SVG and get that error locally. in jsfiddle I place the link in resources and it works as expected but that does not happen locally.
from leader-line.
Your code (line#40) is wrong:
<script> xlink:href="..." </script>
If you want to load any script file, you have to write this:
<script xlink:href="..."/>
JSFiddle adds <script>
in to HTML (not SVG) if you specified "Resources".
from leader-line.
I have tried both:
<script> xlink:href="..." </script>
and <script xlink:href="..."/>
and neither seems to work.
from leader-line.
If you want to use LeaderLine in your web page, load LeaderLine into your web page.
https://anseki.github.io/leader-line/#usage
That is, you have to add <script>
element to <head>
element. Not SVG.
from leader-line.
I was initially just creating a pure svg file not an HTML file but it looks like it is giving issues with that so I will just switch to creating an HTML file with an SVG tag. Thank you for your help!
from leader-line.
Yes, you should use "Inline SVG" instead of stand alone SVG if you will use a script because some viewers may ignore all script in stand alone SVG.
So, could you close this issue?
from leader-line.
π π
from leader-line.
Related Issues (20)
- γbugγClick on the relationship line, and the adjacent lines disappear HOT 4
- Drawing leaderline from click event HOT 6
- How bind html to Middleabel HOT 1
- Dragging lines after reload HOT 1
- Using remove() HOT 5
- MIN_GRID_LEN dynamic ? HOT 3
- LeaderLine.prototype.getInsProps HOT 7
- How to combine two points with one point HOT 11
- Delay occurs when sliding with position in a dom HOT 5
- How to implement mind mapping with startSocketGravity HOT 2
- Issue connecting two close elements HOT 3
- How can I change how the arc line is drawn? (mirror it) HOT 4
- performant css transformations and position updates HOT 8
- [Request] DOM elements as labels HOT 3
- How to make several parallel connections/lines between couple of nodes HOT 4
- startSocket endSocket position 'auto' not working properly HOT 5
- line position issue in collapse div HOT 3
- position() error HOT 5
- Add TS declarations HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leader-line.