Comments (7)
Hi @calumk, thank you for the comment.
To begin with, the insProps
was implemented to avoid accessing via API. That is, the properties are private fields in old ECMAScript. In other words, the insProps
is not required if those are accessible, and those should be moved to instance properties.
Therefore, your plan means breaking the API design above obviously. And also, that should make more problems.
If you really want to do that, you can fork and customize the library to make a special one for your app. Or, you had better use another great library instead. The LeaderLine is inappropriate for your app maybe.
from leader-line.
Is there some way you could consider modifying the API, such that it is possible to access the SVG, by accessing the line object, without breaking the api.
I dont really mind how it exposes it, but access to the rendered SVG, from the PlainDraggable object, seems like a good idea?
For now i have forked the project
from leader-line.
Sorry, my English is poor.
Do you mean that you want to use LeaderLine with PlainDraggable and you can't do that?
from leader-line.
Sorry - Typo
I dont really mind how it exposes it, but access to the rendered SVG, from the [LeaderLine] object, seems like a good idea?
from leader-line.
No, that is not good idea.
You should not change the code if you can't understand why the insProps
exists.
You had better use another great library instead. The LeaderLine is inappropriate for your app. You maybe need a library as helper for handling SVG, the LeaderLine is not.
from leader-line.
I have used leader-line extensivly over the last few years - So i disagree that it is inappropriate, but it is your library, your choice.
https://www.youtube.com/watch?v=OBI3qEEFtBg&feature=youtu.be
from leader-line.
You may understand that when you learn the ECMAScript.
π
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
- 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
- Uncaught TypeError: Cannot read properties of null (reading 'appendChild') HOT 8
- 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.