Skip to content

Navigation from software? #289

@Hexorg

Description

@Hexorg

Is there a way to start animation, or even just 1-shot set scene coordinates to a node of choice through software? I tried

let node = g.node(idx.into()).unwrap();
let pos = node.display().pos;
let min = Pos2::new(pos.x - 1.0, pos.y - 1.0);
let max = Pos2::new(pos.x + 1.0, pos.y + 1.0);
g.set_bounds(Rect { min, max});

but that didn't do anything. GraphView settings didn't seem to have had anything related either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions