feat(snapping): add grid snapping

Related to #973
This commit is contained in:
Philipp Fromme 2019-04-01 16:54:24 +02:00 committed by Nico Rehwaldt
parent 9c8294e2c2
commit b596c6dd06
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@ import ContextPadModule from './features/context-pad';
import CopyPasteModule from './features/copy-paste'; import CopyPasteModule from './features/copy-paste';
import DistributeElementsModule from './features/distribute-elements'; import DistributeElementsModule from './features/distribute-elements';
import EditorActionsModule from './features/editor-actions'; import EditorActionsModule from './features/editor-actions';
import GridSnappingModule from 'diagram-js/lib/features/grid-snapping';
import KeyboardModule from './features/keyboard'; import KeyboardModule from './features/keyboard';
import KeyboardMoveSelectionModule from 'diagram-js/lib/features/keyboard-move-selection'; import KeyboardMoveSelectionModule from 'diagram-js/lib/features/keyboard-move-selection';
import LabelEditingModule from './features/label-editing'; import LabelEditingModule from './features/label-editing';
@ -210,6 +211,7 @@ Modeler.prototype._modelingModules = [
CopyPasteModule, CopyPasteModule,
DistributeElementsModule, DistributeElementsModule,
EditorActionsModule, EditorActionsModule,
GridSnappingModule,
KeyboardModule, KeyboardModule,
KeyboardMoveSelectionModule, KeyboardMoveSelectionModule,
LabelEditingModule, LabelEditingModule,