schaumb / domarrow.js Goto Github PK
View Code? Open in Web Editor NEWThis javascript library can draw connector line/arrow between any two DOM-element. Without any dependency.
License: GNU General Public License v3.0
This javascript library can draw connector line/arrow between any two DOM-element. Without any dependency.
License: GNU General Public License v3.0
I added to my Angular2 fork an option to use a class, instead of an id for selecting from/to elements.
<ngx-domarrow from="#single" to=".multiple" [tail]="true"
color="#0000FF"></ngx-domarrow>
It won't be easy to create a PR from my repo, since I made a lot of breaking changes. I will write a PR ASAP.
I just made an Angular library, based on your work ;)
If dynamic content added using innerHTML method, you cannot connect both elements.
Hello,
Please add a README.MD and a LICENSE to your project. :)
So, people can better understand the scripts and how to use it.
https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-readmes
https://help.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax
thanks.
Hey, thank you for this library. I've been searching all of Stackoverflow before I found this.
However I'm unable to figure out how to set the offset needed to draw the connection from the outside of the div, rather than the center.
I'm guessing I need to add the height and width of the passed elements in this calculation
var top = (tT + fT) / 2 - W / 2;
var left = (tL + fL) / 2 - H / 2;
But I can't get it to shift and shorten the path correctly.
Got any heads up?
Cheers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.