-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Top-Down Modeling #453
Conversation
9caf58b
to
f43f92d
Compare
I'd love to see this part tested as I think nested ifs might be error-prone. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some questions / comments inlined.
@@ -176,67 +177,169 @@ describe('features/auto-place', function() { | |||
|
|||
describe('util', function() { | |||
|
|||
describe('#deconflictPosition', function() { | |||
describe('#findFreePosition', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From bpmn-js
perspective this is a breaking change. Did you consider implement it in a non breaking fashion?
Alternatively, what is the proposed rollout strategy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is. The result would be a major release of diagram-js. Alternatively, we could decide to not change the name.
From my perspective the code coverage is okay. |
68c2ed6
to
a7a7b9e
Compare
Done. |
a7a7b9e
to
707fb05
Compare
@philippfromme There is a merge conflict, have you noticed? |
707fb05
to
56a3e74
Compare
@barmac Resolved. Resulted from a PR that was merged minutes ago. |
32322e9
to
c4dcd76
Compare
BREAKING CHANGES * change #getConnectedDistance API Related to bpmn-io/dmn-js#479
BREAKING CHANGES * rename #deconflictPosition to #getFreePosition and change API
e38bf65
to
fb737d7
Compare
insert: insert, | ||
bendpointIndex: bendpointIndex | ||
} | ||
hints.bendpointMove = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What additional info is being passed secretly down here? Does it make sense to be explicit and not monkey patch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it does not matter, we monkey patch here, too: https://github.com/bpmn-io/diagram-js/pull/453/files#diff-f0a545ec36c40669962054112f362a58R170
BREAKING CHANGES
deconflictPosition
togetFreePosition
and change APIgetConnectedDIstance
APIRequired by bpmn-io/dmn-js#492