powsybl / powsybl-diagram-viewer

Other
2 stars 1 forks source link

powsybl-diagram-viewer

Typescript library to integrate a powsybl svg diagram in a javascript project. The library is built with the Vite bundler. Node from v18+ is required to build with Vite.

Installation using npm:
'npm install @powsybl/diagram-viewer'

For developers

For development purpose, to install this library locally from an app, you should run these commands in the library project :

Then in the app project :

Warning : with Create React App, we realised the library was not updating correctly if you try to install the library multiple times. To fix this, run this command from the app after running "npm install"

For integrators

If you want to deploy a new version of powsybl-diagram-viewer in the NPM package registry, you need to follow the steps below:

Notes :