excalidraw/src/excalidraw-app
Aakansha Doshi c54a099010
feat: Calculate width/height of canvas based on container dimensions (".excalidraw" selector) & remove props width & height (#3379)
* Remove width/height from the ".excalidraw" container so it will sized automatically.
* updated all ref calculation to ".excalidraw" instead of parent since now ".excalidraw" will get resized
* Remove props width/height as its not needed anymore.
* Resize handler is also not needed anymore.
* Position absolute canvas due to #3379 (comment)

* move css to style and remove one extra rerendering

* factor out mock logic for test

* set height, width so as to avoid unnecessary updates of regression snap

* better mock

* better type checking and omit width,height from getDefaultAppState and also restore

* revert

* default to window dimensions in constructor

* update docs

* update

* update

* tweaks
2021-04-04 15:05:16 +05:30
..
collab fix: Don't share collab types with core (#3353) 2021-03-28 19:26:03 +05:30
components chore: Update translations from Crowdin (#2742) 2021-01-14 12:09:05 +02:00
data fix: remove JSON.stringify when calculating storage as its not needed (#3373) 2021-04-01 11:19:31 +02:00
app_constants.ts Factor out collaboration code (#2313) 2020-12-05 15:30:53 +01:00
CustomStats.tsx feat: Add renderCustomStats prop and expose setToastMessage API via refs to update toast (#3360) 2021-03-29 20:06:34 +05:30
index.tsx feat: Calculate width/height of canvas based on container dimensions (".excalidraw" selector) & remove props width & height (#3379) 2021-04-04 15:05:16 +05:30
pwa.ts Add "Safari" to PWACompat loading condition 2020-12-09 16:49:12 +01:00
sentry.ts expose resetScene and getSceneElementsIncludingDeleted && move excalidrawApp to excalidraw-app folder (#2272) 2020-10-25 15:09:57 +01:00