Skip to content

auto-size canvas with initial content#252

Open
rambip wants to merge 1 commit into
koaning:mainfrom
rambip:fix/excalidraw-auto-size
Open

auto-size canvas with initial content#252
rambip wants to merge 1 commit into
koaning:mainfrom
rambip:fix/excalidraw-auto-size

Conversation

@rambip

@rambip rambip commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Implemented by IA, tested quickly. seems to work

By error, I opened the PR on my own repository, which makes very little sense 🤡

So here we go again.

Closes #251

What it solves:

I create a big, zoomed-out drawing:

image

I save, reload, and then I see

image

But I would prefer the drawing to open with the correct scale and translation by default.

This PR does exactly that


Btw, I noticed that Excalidraw(path) on a non-existing path throws an error, which defeats the whole point of having an autosave feature. At least there should be a create flag.

Implemented by IA, tested quickly. seems to work
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.

[Excalidraw] fit initial content to widget

1 participant