Skip to content
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

feat: select participant by click but not move #1646

Merged
merged 2 commits into from
May 18, 2022

Conversation

barmac
Copy link
Member

@barmac barmac commented May 17, 2022

This adds the no-move hit boxes to the subprocess, participant, and lane shapes.

Related to camunda/camunda-modeler#2859

Requires bpmn-io/diagram-js#638 to be merged and released.

Test with:

npx @bpmn-io/sr bpmn-io/bpmn-js#improve-selection-of-a-pool

@bpmn-io-tasks bpmn-io-tasks bot added the in progress Currently worked on label May 17, 2022
@@ -68,6 +68,12 @@ BpmnInteractionEvents.prototype.createParticipantHit = function(element, gfx) {
// remove existing hits
this._interactionEvents.removeHits(gfx);

// add body hit
this._interactionEvents.createBoxHit(gfx, 'no-move', {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incredible, actually we had all infrastructure in place already. Know your tooling I guess (which I forgot about) 😸.

@barmac barmac force-pushed the improve-selection-of-a-pool branch from 7c8f098 to 69dbec1 Compare May 18, 2022 07:39
@barmac barmac force-pushed the improve-selection-of-a-pool branch from 69dbec1 to a90c26f Compare May 18, 2022 07:43
@barmac barmac marked this pull request as ready for review May 18, 2022 07:45
@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending and removed in progress Currently worked on labels May 18, 2022
@barmac barmac requested review from nikku, a team and pinussilvestrus and removed request for a team May 18, 2022 07:45
@barmac
Copy link
Member Author

barmac commented May 18, 2022

Ready for review.

Copy link
Member

@nikku nikku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just works ™️

@nikku nikku merged commit 1b7ce15 into develop May 18, 2022
@nikku nikku deleted the improve-selection-of-a-pool branch May 18, 2022 08:22
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants