flowbee
TypeScript icon, indicating that this package has built-in type declarations

1.1.14 • Public • Published

flowbee

Simple, flexible, open flow diagramming.

See flowbee-demo.

Install

npm install --save flowbee

Themes

Themeable styles are here:
node_modules/flowbee/dist/style.css

Built-in themes are 'light' and 'dark'. You can override specific settings in these in your own css:

.flowbee-diagram-light .title {
  visibility: visible; /* show title in diagram */
}

Or you can create custom themes. For example, custom diagram theme styles should follow this pattern:
flowbee-diagram-<themename> By default your theme will extend flowbee-diagram-light styles. To extend flowbee-diagram-dark styles, your theme name should end with '-dark'.

Here's an ugly example:

.flowbee-diagram-garish {
  color: darkblue;
  background-color: pink;
}

.flowbee-diagram-garish .grid {
  color: yellow;
  width: 44px;
}

.flowbee-diagram-garish.line {
  width: 5px;
}

.flowbee-diagram-garish .step .start {
  background-color: purple;
}

To utilize your theme pass its name to FlowbeeDiagram.render():

flowDiagram.render('garish', contents, filename);

No Inline Styles

By default Flowbee uses inline styles via stylesheet injection. If you have a Content Security Policy and wish to avoid inline styles, you can point to the no-styles version of Flowbee:

import * as flowbee from '../node_modules/flowbee/dist/nostyles.js';

Then you'd want to separately include Flowbee's css in your HTML:

  <link href="flowbee/dist/css/style.css" rel="stylesheet" />

Readme

Keywords

Package Sidebar

Install

npm i flowbee

Weekly Downloads

153

Version

1.1.14

License

MIT

Unpacked Size

2.5 MB

Total Files

188

Last publish

Collaborators

  • rich_tq_1
  • donoakes
  • ply-org