A BF diagram web component
Demo: https://lcnetdev.github.io/bf-diagram-webcomponent/
Include the Javascript file in your page:
<script type="module" src="bf-diagram.js">
Add the web component custom element:
<bf-diagram instances="22181412,22183166" works="22181412" fixinstanceof/>
See the demo page for the parameters you can set.
git clone https://github.com/lcnetdev/bf-diagram-webcomponent.git
cd bf-diagram-webcomponent
npm install
npm run dev
The file bf-diagram.ts
contains all the code and CSS.
To build:
npm run build
The files will be dist/assets/bf-diagram.js