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

Independent library for Javascript module #42

Open capy-pl opened 5 years ago

capy-pl commented 5 years ago

Is there any plan for creating an independent library to seperate the js module from other parts? Or consider adding a package.json so user can install the project by using npm install.

clenk commented 5 years ago

Hi, @capy-pl, sorry for the delay in responding. We aren't currently working on this, but it would be a good feature and we'd welcome a pull request if anyone had time to do it. :)

dwjohnston commented 2 years ago

@clenk I may take a look at this.

I think the question I have is, what's the purpose of the python code in this repo?

clenk commented 2 years ago

Hi @dwjohnston thanks for the interest. The python code is used to enable visualizing STIX content inside Jupyter notebooks. More info here. The STIX generator uses it for this purpose.

dwjohnston commented 2 years ago

@clenk with the dependencies that you have copied in here:

Have those been modified in any way?

Also, looks like d3 version is 3.5.14 - I should assume that ^3 is the only supported version?

dwjohnston commented 2 years ago

@clenk Alright man - take a look at the PR.

For testing on your side:

clenk commented 2 years ago

Thanks @dwjohnston I'll take a look when I get the chance. The dependencies have not been modified in any way.

For d3, we've been looking into upgrading it and actually are looking at switching to Apache ECharts.

dwjohnston commented 2 years ago

Thanks @dwjohnston I'll take a look when I get the chance. The dependencies have not been modified in any way.

For d3, we've been looking into upgrading it and actually are looking at switching to Apache ECharts.

Ooh, that reminds me - probably should update the PR to remove the hardcoded d3.js and instead refer to one in the node modules. (Otherwise the published NPM package, the use in Jupyter/local may be different).