chore(project): migrate to new attach related Modeling APIs

Related to bpmn-io/diagram-js#242

BREAKING CHANGE:

* as documented in bpmn-io/diagram-js#242 a few modeling APIs changed;
  users of these APIs must adapt accordingly.
This commit is contained in:
Nico Rehwaldt
2017-12-20 10:36:07 +01:00
parent 22d2b97bbe
commit 11354e951c
4 changed files with 13 additions and 6 deletions

View File

@ -51,7 +51,9 @@ function move(elementIds, delta, targetId, isAttach) {
target = targetId && getElement(targetId);
}
return modeling.moveElements(elements, delta, target, isAttach);
var hints = isAttach ? { attach: true } : {};
return modeling.moveElements(elements, delta, target, hints);
});
}
@ -78,7 +80,7 @@ function add(attrs, position, target, isAttach) {
target = getElement(target);
}
return modeling.createShape(attrs, position, target, isAttach);
return modeling.createShape(attrs, position, target, { attach: isAttach });
});
}