David Luzar
7618ca48d7
retain local appState props on restore ( #2224 )
...
Co-authored-by: Lipis <lipiridis@gmail.com>
2020-10-13 13:46:52 +02:00
David Luzar
adb1ac5788
fix restoring appState ( #2182 )
2020-09-22 21:51:49 +02:00
Thomas Steiner
b2822f3538
Make File Handling actually work ( #2181 )
...
Follow-up from #1736
2020-09-22 15:21:22 +02:00
Michal Srb
c0dd870c6e
Dark mode ( #2006 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-08-13 13:35:31 +02:00
Mohammed Salman
ee8fa6aaad
Import and export library from/to a file ( #1940 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-07-27 14:29:19 +02:00
Aakansha Doshi
7eff6893c5
calculate coords based on container viewport position ( #1955 )
...
* feat: calculate coords based on parent left and top so it renders correctly in host App
* fix text
* move offsets to state & fix bugs
* fix text jumping
* account for zoom in textWysiwyg & undo incorrect offsetting
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-07-27 13:48:49 +02:00
David Luzar
0ee2c15929
make clearing state for storage more type-safe ( #1884 )
2020-07-11 13:09:40 +02:00
Lipis
c427aa3cce
Prefer arrow functions and callbacks ( #1210 )
2020-05-20 15:21:37 +02:00
Kostas Bariotis
0a284adc18
Allow opening empty excalidraw file ( #1348 )
...
* allow openning empty file
* correctly throw error
* fix error handling
* switch back to error objects
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-04-10 11:58:09 +02:00
Kostas Bariotis
0c9459e9e5
Warn on invalid JSON file ( #1159 )
...
* add error dialog
* show error modal on file dnd
* add locales
* Update src/locales/en.json
Co-Authored-By: Lipis <lipiridis@gmail.com>
* Update src/data/blob.ts
* Update src/data/blob.ts
* fix titles, update snapshots
* make modal smaller
* fix dnd wrong file type
* reset errorMessage
Co-authored-by: Faustino Kialungila <faustino.kialungila@gmail.com>
Co-authored-by: Lipis <lipiridis@gmail.com>
2020-04-03 13:50:51 +02:00
dependabot-preview[bot]
722c498abe
Bump prettier from 1.19.1 to 2.0.1 ( #1060 )
...
* Bump prettier from 1.19.1 to 2.0.1
Bumps [prettier](https://github.com/prettier/prettier ) from 1.19.1 to 2.0.1.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/1.19.1...2.0.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Update formatting
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
2020-03-23 13:05:07 +02:00
Jed Fox
c6a0cfc2b1
Refactor ( #862 )
...
* Initial factoring out of parts of the LayerUI component
2360 → 2224 LOC
* Create a Section component
* Break up src/index.tsx
* Refactor actions to reduce duplication, fix CSS
Also consolidate icons
* Move scene/data.ts to its own directory
* Fix accidental reverts, banish further single-character variables
* ACTIVE_ELEM_COLOR → ACTIVE_ELEMENT_COLOR
* Further refactoring the icons file
* Log all errors
* Pointer Event polyfill to make the tests work
* add test hooks & fix tests
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-03-07 16:20:38 +01:00