From 7243aa4accc7372b4298308c881579871d210894 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Sat, 28 Aug 2021 15:31:34 +0200 Subject: [PATCH] chore: consistently use new `getDi` utility --- lib/draw/BpmnRenderUtil.js | 10 ++++++---- lib/features/di-ordering/BpmnDiOrdering.js | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/draw/BpmnRenderUtil.js b/lib/draw/BpmnRenderUtil.js index f18189e4..0bc24091 100644 --- a/lib/draw/BpmnRenderUtil.js +++ b/lib/draw/BpmnRenderUtil.js @@ -3,10 +3,16 @@ import { some } from 'min-dash'; +import { + getDi +} from '../util/ModelUtil'; + import { componentsToPath } from 'diagram-js/lib/util/RenderUtil'; +// re-export getDi for compatibility +export { getDi }; // element utils ////////////////////// @@ -42,10 +48,6 @@ export function isCollection(element) { return element.isCollection || (dataObject && dataObject.isCollection); } -export function getDi(element) { - return element.di; -} - export function getSemantic(element) { return element.businessObject; } diff --git a/lib/features/di-ordering/BpmnDiOrdering.js b/lib/features/di-ordering/BpmnDiOrdering.js index 85a17ed9..86e8df94 100644 --- a/lib/features/di-ordering/BpmnDiOrdering.js +++ b/lib/features/di-ordering/BpmnDiOrdering.js @@ -1,4 +1,4 @@ -import { getDi } from '../../draw/BpmnRenderUtil'; +import { getDi } from '../../util/ModelUtil'; import { filter,