Comments (5)
Hi @zakk616, thank you for the comment.
You have to specify {startSocket: 'bottom', endSocket: 'top'}
to the line, because nobody knows where is a problem and nobody knows a correct line for you.
from leader-line.
Hi @zakk616, thank you for the comment. You have to specify
{startSocket: 'bottom', endSocket: 'top'}
to the line, because nobody knows where is a problem and nobody knows a correct line for you.
actually these cards are being produced dynamically and the screen size is also responsive, I can not specify {startSocket: 'bottom', endSocket: 'top'}
but {startSocket: 'auto', endSocket: 'auto'}
so the line should be drawn and redirected automaticaly.
{startSocket: 'bottom', endSocket: 'top'}
works fine when on desktop and mobile screen.
Desktop Screen:
but when cards are shown on medium screens the line direction does not work properly.
from leader-line.
Sorry, we don't know what the "properly" mean for you.
You can get coordinates of elements easily by using e.g. getBoundingClientRect
, to choose a socket that you want.
from leader-line.
to provide startSocket
endSocket
dynamicaly when the page resizes, one needs to implement getBoundingClientRect
to grab new position of the element first and then draw the line on new position and provide startSocket
endSocket
.
from leader-line.
Yes. π
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
- 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
- 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.