JSPM

diagram-js-grid

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4687
  • Score
    100M100P100Q126780F
  • License MIT

A visual grid for diagram-js

Package Exports

  • diagram-js-grid
  • diagram-js-grid/dist/index.esm.js
  • diagram-js-grid/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (diagram-js-grid) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

diagram-js-grid

Build Status

A minimal visual grid for diagram-js.

Grid

Features

  • Shows visual grid
  • Supports modeler and viewer
  • Hooks into gridSnapping activation

Usage

Extend your diagram-js application with the grid module. We'll use bpmn-js as an example:

import BpmnModeler from 'bpmn-js/lib/Modeler';

import gridModule from 'diagram-js-grid';

var bpmnModeler = new BpmnModeler({
  additionalModules: [
    gridModule
  ]
});

License

MIT