Giter Site home page Giter Site logo

connection-line's Introduction

Normcore js

connection-line's People

Contributors

dy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

connection-line's Issues

is there a demo page?

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?

empty svg path

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!

It's not working

	<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>

Use it with Angular2+ and Webpack

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.