パッケージの詳細

diagram-js-grid

bpmn-io24.2kMIT1.1.0

A visual grid for diagram-js

diagram-js, grid

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

更新履歴

Changelog

All notable changes to diagram-js-grid are documented here. We use semantic versioning for releases.

Unreleased

_Note: Yet to be released changes appear here._

1.1.0

  • FEAT: support diagram-js@15.1.0

1.0.0

  • FEAT: enable grid per default (#11, )
  • FEAT: allow grid to work in viewer (#2)
  • DEPS: dependency updates

0.2.0

  • FEAT: add public API for introspection + toggling

0.1.0

Initial version.