I want to use the arborjs library for drawing graphs (I did not find the installation via npm), how can I connect it in my angular project and use it?
library code is: "src / lib / arbor"
my code if: "src/app/*.component.ts"
jQuery library is connected. She needed to work 'Arbor'
if you simply put on the html connection, and go to the localhost project, it does not work, and if you just start the html, then it works, do you have any ideas?
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script src="../lib/arbor.js"></script>
<script src="main.js"></script>
Graph() {
const sys = arbor.ParticleSystem(1000);
sys.parameters({gravity: true});
sys.renderer = this.rendererCanvas('#viewport');
...
}
At the top of the system initialization code in the * .component.ts file.
cannot find
arbor.ParticleSystem (1000)