Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 764 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 764 Bytes

bf-diagram-webcomponent

A BF diagram web component

Demo: https://lcnetdev.github.io/bf-diagram-webcomponent/

To use

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.

To develop

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