oasis-open / cti-stix-visualization

OASIS TC Open Repository: Lightweight visualization for STIX 2.0 objects and relationships
http://oasis-open.github.io/cti-stix-visualization
BSD 3-Clause "New" or "Revised" License
138 stars 43 forks source link

Make it an NPM package. #51

Open dwjohnston opened 2 years ago

dwjohnston commented 2 years ago

Addresses: #42

Changes:

Notes

Re: the use of requirejs, and the "nbextensions" stuff - I don't really know what I'm doing there - but what I've got looks like it's working.

Possible bug

Take a look at that handleSelected in stix2viscore.js - it looks like it is never defined anywhere.

Worth discussing

Testing

I tested that it works as an npm package here:

https://github.com/dwjohnston/stix-vis-test

Follow the instructions there.

Things that need to be done before this PR is merged:

Future improvements: