From b596c6dd0654b7d1770d3d882ab83e2d84762fae Mon Sep 17 00:00:00 2001 From: Philipp Fromme Date: Mon, 1 Apr 2019 16:54:24 +0200 Subject: [PATCH] feat(snapping): add grid snapping Related to #973 --- lib/Modeler.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Modeler.js b/lib/Modeler.js index 6509a720..1f44b4d5 100644 --- a/lib/Modeler.js +++ b/lib/Modeler.js @@ -20,6 +20,7 @@ import ContextPadModule from './features/context-pad'; import CopyPasteModule from './features/copy-paste'; import DistributeElementsModule from './features/distribute-elements'; import EditorActionsModule from './features/editor-actions'; +import GridSnappingModule from 'diagram-js/lib/features/grid-snapping'; import KeyboardModule from './features/keyboard'; import KeyboardMoveSelectionModule from 'diagram-js/lib/features/keyboard-move-selection'; import LabelEditingModule from './features/label-editing'; @@ -210,6 +211,7 @@ Modeler.prototype._modelingModules = [ CopyPasteModule, DistributeElementsModule, EditorActionsModule, + GridSnappingModule, KeyboardModule, KeyboardMoveSelectionModule, LabelEditingModule,