Skip to content

Is it possible to subscribe to the selected state of a node? #362

Description

@sradigan

I'd like to change the animation state of edges connected to a node that is selected. Would it be possible to make the let:selected boolean access be a svelte store that could be subscribed to for changes in the node selection state?

I've also tried to use the let:node object and pass that to a function to try to access the internal state, but I couldn't figure it out.

Any ideas of how to do this would be great!

If it helps, I've attached a screenshot of the animated state (forced) that would be during selection, but the edges would change depending on what node was selected.

image

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