chore: consistently use new `getDi` utility

This commit is contained in:
Nico Rehwaldt 2021-08-28 15:31:34 +02:00 committed by Nico Rehwaldt
parent f6d84696a9
commit 7243aa4acc
2 changed files with 7 additions and 5 deletions

View File

@ -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;
}

View File

@ -1,4 +1,4 @@
import { getDi } from '../../draw/BpmnRenderUtil';
import { getDi } from '../../util/ModelUtil';
import {
filter,