Package Exports
- d3-hwschematic
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (d3-hwschematic) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
d3-hwschematic
D3.js and ELK based schematic visualizer.
Use npm install d3-hwschematic --save to install this library and save it to your package.json file.
Features:
- automatic layout
- hierarchical components expandable on click
- net selection on click
- zoom, drag
- input is ELK json
How to use examples
Online
This library is used in generated documentation for HWToolkit projects. One of them is documentation of CRC generator There is much more in hwtLib.
This documentations usually use some older version of this library.
From this git
- download dependencies and build this library
npm install
npm install --only=dev
npm run build- then you can open examples, but current web browsers does not allow to load files from local disk (because of security). It has multiple solution
- You can run chrome with --allow-file-access-from-files option
- (prefered) Or use webserver. One webserver implementation is part of standard python distribution.
# (in root directory of this git)
python3 -m http.server 8888Now you should be able to view example application on http://0.0.0.0:8888/examples/example.html?schematic=/examples/schemes/Crc.json. Where part after schematic= is path to json file where schematic is sotored.
