Normcore js
dy / connection-line Goto Github PK
View Code? Open in Web Editor NEWConnector line DOM element (NOT MAINTAINED)
Connector line DOM element (NOT MAINTAINED)
Normcore js
I would very much like to see demo page, codepen or even a gif showing this in action before I'll spend time downloading this and configuring on my project...
test.html
file doesn't even work..
makes sense no?
heya, i've tried passing in hardcoded numbers, and also css selectors to "from" and "to" in the config object, but always get a path in the svg without any coords!
let imgSelector = 'img.' + target.getAttribute('data-word'),
spanSelector = 'span.' + target.getAttribute('data-word');
let connector = new ConnectionLine({
from: imgSelector,
to: spanSelector
});
console.log(imgSelector,spanSelector); // all good
this.lines.nativeElement.appendChild(connector.element); // this works too, i see the new element in the DOM
any ideas? thanks!
<div id="a" style="width: 10px; height: 10px; background: green; position: absolute; right: 0; top: 0;">a</div>
<div id="b" style="width: 10px; height: 10px; background: green; position: absolute; left: 0; top: 0;">b</div>
<connection-line from="#a" to="#b"></connection-line>
<connection-line from="0,0" to="100,100"></connection-line>
<script>
import Connector from 'connection-line'
export default {
name: 'Mock',
components: {
'connection-line' : Connector
}
}
</script>
Hi,
Is there a way to use the tag in my angular templates ?
Or even use it as a typescript code in the components ?
I don't want to migrate the project from webpack to browserify because I'm not even sure it will works.
Thanks.
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.