Nitrate Processed Mincemeat

    @softwareatlas/blueprinted-diagram-js
    TypeScript icon, indicating that this package has built-in type declarations

    1.5.2 • Public • Published

    blueprinted-diagram-js

    This package provides an opinionated wrapper for the excellent diagram-js library.

    Elements and rules can be configured for each instance through a typed blueprint.

    Installation

    Install diagram-js, bpmn-font and this package together:

    npm install diagram-js bpmn-font @softwareatlas/blueprinted-diagram-js
    

    Styling

    Make sure you import all required stylesheets in the appropriate order. For example, when using webpack with css-loader:

    @import '~diagram-js/assets/diagram-js.css';
    @import '~bpmn-font/dist/css/bpmn.css';
    @import '~@softwareatlas/blueprinted-diagram-js/styles.css';

    Development

    For easy develop of this package, link it to a typescripted client application (e.g. an Angular app).

    Check https://docs.npmjs.com/cli/v8/commands/npm-link for more information.

    Publishing

    To publish this package, use npm to give it a version and push the tag to git:

    npm version v1.0.2
    git push --tags

    Be sure to use semantic versioning!

    Next, create a release in Gitlab using this tag. The version will automatically be published to NPM by a Github action

    Install

    npm i @softwareatlas/blueprinted-diagram-js

    DownloadsWeekly Downloads

    27

    Version

    1.5.2

    License

    MIT

    Unpacked Size

    85.9 kB

    Total Files

    53

    Last publish

    Collaborators

    • lboschker