-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spike: Infinite Canvas #657
base: main
Are you sure you want to change the base?
Conversation
|
packages/react-sdk/src/components/Whiteboard/WhiteboardHost.tsx
Outdated
Show resolved
Hide resolved
return state; | ||
} | ||
|
||
if (newScale > 5) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5
(and 1
) should be a const in constants.ts. We also need them as a transformation factor to scale between the canvas coordinate system and the viewport coordinate system.
export const whiteboardWidth = 9600; | ||
export const whiteboardHeight = 5400; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should use initialWhiteboardWidth * $maxZoom
9d6a741
to
75137c5
Compare
Signed-off-by: Michael Weimann <[email protected]>
Signed-off-by: Kim Brose <[email protected]>
Signed-off-by: Kim Brose <[email protected]>
Signed-off-by: Kim Brose <[email protected]>
Signed-off-by: Kim Brose <[email protected]>
Signed-off-by: Michael Weimann <[email protected]>
Signed-off-by: Michael Weimann <[email protected]>
Signed-off-by: Kim Brose <[email protected]>
Signed-off-by: Kim Brose <[email protected]>
Signed-off-by: Kim Brose <[email protected]>
Signed-off-by: Kim Brose <[email protected]>
Signed-off-by: Michael Weimann <[email protected]>
Signed-off-by: Kim Brose <[email protected]>
Signed-off-by: Michael Weimann <[email protected]>
Signed-off-by: Michael Weimann <[email protected]>
Signed-off-by: Michael Weimann <[email protected]>
✔️ Checklist
Signed-off-by
line in the message (more info).