Skip to content

multi-selecting with Interaction.link() #116

Description

@kushalkolar

just some brainstorming

link() takes a kwarg, multi = False | True, if it is True then use allow the use of Crtl as a modifier. In _set_feature we don't call _reset_feature if the modifier is present, and we use a list of PreviouslyModifiedData to store the orig data of the selected stuff.

Seems like Event has a modifiers attribute so this should be straight forward: https://github.com/pygfx/pygfx/blob/6e39c3470ec3956753f189f56451e5336be77b79/examples/feature_demo/multi_select.py#L63

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions