Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bpmn-io/diagram-js-grid

A visual grid for diagram-js
https://github.com/bpmn-io/diagram-js-grid

diagram-js grid

Last synced: 3 months ago
JSON representation

A visual grid for diagram-js

Awesome Lists containing this project

README

        

# diagram-js-grid

[![Build Status](https://github.com/bpmn-io/diagram-js-grid/actions/workflows/CI.yml/badge.svg)](https://github.com/bpmn-io/diagram-js-grid/actions/workflows/CI.yml)

A minimal visual grid for [diagram-js](https://github.com/bpmn-io/diagram-js).

![Grid](resources/screenshot.png)

## 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](https://github.com/bpmn-io/bpmn-js) as an example:

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

import gridModule from 'diagram-js-grid';

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

## License

MIT