chore: consistently use new `getDi` utility
This commit is contained in:
parent
f6d84696a9
commit
7243aa4acc
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { getDi } from '../../draw/BpmnRenderUtil';
|
||||
import { getDi } from '../../util/ModelUtil';
|
||||
|
||||
import {
|
||||
filter,
|
||||
|
|
Loading…
Reference in New Issue