-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Currently, the flowviewer default zoom level to "1", with a current scale limit at 0.5.
Assuming that scale 0.5 means twice as zoomed out as 1, then if there are nodes out of this view, they cannot be seen. until a user zooms and pans accordingly. A quick solution here would be to measures the maximum x/y coordinates of the nodes, adds a padding factor (e.g. 1.05), and then reassert the zoom level to be:
zoom = fudge_factor * (init_window_size.x / max_node_x)e.g. if window width is 300, and a node is found at 450, then with a fudge_factor of 1.05 the zoom level would 0.7.
Metadata
Metadata
Assignees
Labels
No labels