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
A minimal visual grid for diagram-js.
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