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

Handle interaction key conflicts by setting them in VisCanvas #1020

Merged
merged 1 commit into from
Mar 21, 2022

Conversation

loichuder
Copy link
Member

Stepping stone for #1013

Following our discussion, here is a first prototype to have interaction configuration stored at a single place (here AxisSystemContext) to have a place where we can handle interactions between interactions (do you follow?).

Also, this allows to have a more permissive behaviour for interactions with a modifierKey set to undefined (Pan in particular). They will now only be prevented if the pressed modifier key is bound to another interaction.

This fixes #1015 as default modifier keys values in these components were removed, allowing modifier keys to be set to undefined.

packages/lib/src/interactions/models.ts Show resolved Hide resolved
packages/lib/src/interactions/models.ts Outdated Show resolved Hide resolved
packages/lib/src/vis/heatmap/HeatmapVis.tsx Show resolved Hide resolved
packages/lib/src/vis/shared/AxisSystemProvider.tsx Outdated Show resolved Hide resolved
packages/lib/src/vis/utils.ts Show resolved Hide resolved
@loichuder loichuder force-pushed the interaction-conflict branch from d9331bd to dff4ccb Compare March 17, 2022 15:49
@loichuder loichuder requested a review from axelboc March 17, 2022 15:50
packages/lib/src/vis/shared/AxisSystemProvider.tsx Outdated Show resolved Hide resolved
packages/lib/src/vis/shared/AxisSystemProvider.tsx Outdated Show resolved Hide resolved
packages/lib/src/vis/utils.ts Show resolved Hide resolved
@loichuder loichuder force-pushed the interaction-conflict branch 4 times, most recently from 5c449aa to a60c6f4 Compare March 21, 2022 13:53
@loichuder loichuder requested a review from axelboc March 21, 2022 14:37
packages/lib/src/vis/shared/AxisSystemProvider.tsx Outdated Show resolved Hide resolved
packages/lib/src/vis/shared/AxisSystemProvider.tsx Outdated Show resolved Hide resolved
packages/lib/src/vis/shared/AxisSystemProvider.tsx Outdated Show resolved Hide resolved
apps/storybook/src/Selection.stories.tsx Outdated Show resolved Hide resolved
packages/lib/src/interactions/models.ts Outdated Show resolved Hide resolved
@loichuder loichuder force-pushed the interaction-conflict branch from a60c6f4 to e00005c Compare March 21, 2022 15:58
@loichuder loichuder merged commit ac4e87b into main Mar 21, 2022
@loichuder loichuder deleted the interaction-conflict branch March 21, 2022 16:11
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.

[SelectToZoom, XAxisZoom, YAxisZoom] Default modifier key cannot be unset
2 participants