You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2019. It is now read-only.
A big thank you to ember-leaflet for their container/child-mixins.
Installation
Make sure you are using a somewhat recent version of nodejs when installing. Everything > 4 should be fine.
ember install ember-cli-visjs
Usage
{{#visjs-networkbackgroundImage='wp.png'}}{{!-- Adding nodes is as simple as passing a unique id to a component. The rest is optional --}}{{visjs-nodenId=1label='A'select=(action'nodeClicked') color='#ff0000'}}{{visjs-nodenId=2label='B'}}{{visjs-nodenId=3label='C'posX=100posY=100}}{{!-- Node-Relations are given by edges --}}{{visjs-edgefrom=1to=2}}{{visjs-edgefrom=1to=3arrows='to'}}{{!-- Feel free to use whatever nesting you wish. It's just hbs --}}{{#iffooIsTrue}}{{visjs-nodenId=5label='Optional'}}{{/if}}{{#eachbarsas |bar|}}{{visjs-nodenId=bar.id}}{{/each}}{{/visjs-network}}