excalidraw/src/data
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
..
blob.ts fix: support d&d of files without extension (#3168) 2021-03-26 22:12:02 +01:00
encode.ts fix encoding of embed data & compress (#2240) 2020-10-15 21:31:21 +02:00
image.ts feat: support pasting file contents & always prefer system clip (#3257) 2021-03-20 20:20:47 +01:00
index.ts feat: Support exporting with dark mode (#3046) 2021-02-24 15:22:17 +01:00
json.ts feat: support pasting file contents & always prefer system clip (#3257) 2021-03-20 20:20:47 +01:00
library.ts feat: don't unnecessarily prompt when installing libraries (#3329) 2021-03-26 18:32:38 +01:00
restore.ts 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
types.ts 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