-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): zoom in and out from cursor position (#262)
* fix(ui): zoom in and out from cursor position * fix(ui): zoom to fit Co-authored-by: Samuel Massé <[email protected]> Co-authored-by: Laurent Leclerc-Poulin <[email protected]>
- Loading branch information
1 parent
e3a1a43
commit 6ed8110
Showing
7 changed files
with
165 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
.label { | ||
display: block; | ||
margin: 0 var(--spacing-medium); | ||
min-width: 35px; | ||
} | ||
|
||
label { | ||
|
5 changes: 5 additions & 0 deletions
5
packages/studio-ui/src/web/views/FlowBuilder/diagram/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const DIAGRAM_PADDING = 50 | ||
export const ZOOM_SPEED_SCALAR = 10 | ||
export const ZOOM_MIN = 25 | ||
export const ZOOM_MAX = 200 | ||
export const ZOOM_IN_OUT_AMT = 25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.