enso/lib/rust
Mateusz Czapliński d950499a90
Pan camera to created nodes. (#3552)
If a node created by the user gets placed off-screen, the screen's camera is panned to make the node visible.

https://www.pivotaltracker.com/story/show/181188687

#### Visuals

A screencast showing a number of node creation scenarios when the camera is panned to the newly created node, including when zoomed out.



https://user-images.githubusercontent.com/273837/177169716-50a12b0a-c742-4b01-9766-56206e7938b9.mov

# Important Notes
- Camera is panned also if the node is only partially visible, or if there's not enough free space visible around the node. The specific amount of free space that needs to be visible around a newly created node is configured in the theme.
- If the screen area is so small that the node cannot be fully fit in it (either horizontally or vertically), showing the left and top boundaries of the node's area takes priority over showing the corresponding opposite edges.
2022-07-06 10:33:35 +00:00
..
automata New IDE build script (#3466) 2022-05-23 04:16:04 +02:00
build-utils Linting codebase 2022-03-10 05:32:33 +01:00
callback Linting codebase 2022-03-10 05:32:33 +01:00
code-builder Linting codebase 2022-03-10 05:32:33 +01:00
config-reader New IDE build script (#3466) 2022-05-23 04:16:04 +02:00
data-structures Parser improvements (#3549) 2022-07-01 05:42:29 +02:00
debug-api Multi Component Group Wrapper (#3473) 2022-06-08 11:06:36 +00:00
ensogl Pan camera to created nodes. (#3552) 2022-07-06 10:33:35 +00:00
frp List Panel View Part 2 (#3537) 2022-07-04 14:08:31 +00:00
fuzzly Linting codebase 2022-03-10 05:32:33 +01:00
generics New IDE build script (#3466) 2022-05-23 04:16:04 +02:00
json-rpc Virtual Component Groups in the Hierarchical Action List (1/2) (#3488) 2022-06-03 17:18:20 +00:00
launcher-shims New IDE build script (#3466) 2022-05-23 04:16:04 +02:00
logger New IDE build script (#3466) 2022-05-23 04:16:04 +02:00
macro-utils New IDE build script (#3466) 2022-05-23 04:16:04 +02:00
optics New IDE build script (#3466) 2022-05-23 04:16:04 +02:00
parser Parser improvements (#3549) 2022-07-01 05:42:29 +02:00
prelude Parser improvements (#3549) 2022-07-01 05:42:29 +02:00
profiler Symbol unregistration (#3507) 2022-06-15 03:54:59 +00:00
shapely Symbol unregistration (#3507) 2022-06-15 03:54:59 +00:00
shortcuts New IDE build script (#3466) 2022-05-23 04:16:04 +02:00
text New IDE build script (#3466) 2022-05-23 04:16:04 +02:00
types Virtual Component Groups in the Hierarchical Action List (1/2) (#3488) 2022-06-03 17:18:20 +00:00
web Profiling batch mode (#3428) 2022-05-10 19:34:40 +00:00