Skip to content

feat(engine): focus to exact node - #134

Open
SurenAvagyanG wants to merge 2 commits into
Vonage:mainfrom
SurenAvagyanG:feat/focus-to-exact-node
Open

feat(engine): focus to exact node#134
SurenAvagyanG wants to merge 2 commits into
Vonage:mainfrom
SurenAvagyanG:feat/focus-to-exact-node

Conversation

@SurenAvagyanG

Copy link
Copy Markdown

Ability to keep previous zoom level and focus on a specific node.

(getZoomFactorForOne | getZoomFactorForMulti)
Variable zoomFactor is now calculated with one of these functions, 'getZoomFactorForMulti' is the one for old functionality and 'getZoomFactorForOne' takes actions with the previous zoom level to keep it as same as before.

(getTransformationForOne | getTransformationForMulti)
That specific node should be shown in center of canvas with 'getTransformationForOne' but 'getTransformationForMulti' is neutral with visible positions.

@SurenAvagyanG SurenAvagyanG changed the title Feat/focus to exact node feat(engine): focus to exact node Jul 22, 2021
@DanielNetzer

Copy link
Copy Markdown
Contributor

Hello @SurenAvagyanG if you are willing to contribute this PR to the new and maintained repository at https://github.com/netzerstudio/rxzu that will be great.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants