From 73487358a9367977191af0b93899b448869a3a3b Mon Sep 17 00:00:00 2001 From: Philipp Fromme Date: Fri, 5 Aug 2016 10:41:15 +0200 Subject: [PATCH] feat(replace-preview): rename moveVisuals to movePreview related to bpmn-io/diagram-js#182 and bpmn-io/diagram-js#184 --- lib/features/replace-preview/BpmnReplacePreview.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/features/replace-preview/BpmnReplacePreview.js b/lib/features/replace-preview/BpmnReplacePreview.js index 5e437071..ac2c257a 100644 --- a/lib/features/replace-preview/BpmnReplacePreview.js +++ b/lib/features/replace-preview/BpmnReplacePreview.js @@ -9,7 +9,7 @@ var assign = require('lodash/object/assign'), var LOW_PRIORITY = 250; -function BpmnReplacePreview(eventBus, elementRegistry, elementFactory, canvas, moveVisuals) { +function BpmnReplacePreview(eventBus, elementRegistry, elementFactory, canvas, movePreview) { CommandInterceptor.call(this, eventBus); @@ -52,7 +52,7 @@ function BpmnReplacePreview(eventBus, elementRegistry, elementFactory, canvas, m } // clone the gfx of the temporary shape and add it to the drag group - var dragger = moveVisuals.addDragger(context, tempShape); + var dragger = movePreview.addDragger(tempShape, context.dragGroup); context.visualReplacements[id] = dragger; @@ -102,7 +102,7 @@ function BpmnReplacePreview(eventBus, elementRegistry, elementFactory, canvas, m }); } -BpmnReplacePreview.$inject = [ 'eventBus', 'elementRegistry', 'elementFactory', 'canvas', 'moveVisuals' ]; +BpmnReplacePreview.$inject = [ 'eventBus', 'elementRegistry', 'elementFactory', 'canvas', 'movePreview' ]; inherits(BpmnReplacePreview, CommandInterceptor);