David Luzar
59e9651547
feat: log FS abortError to console ( #4279 )
2021-11-19 10:54:23 +01:00
Lipis
8d4f455cd3
chore: Update Typescript to 4.4.4 ( #4188 )
2021-11-02 14:24:16 +02:00
David Luzar
163ad1f4c4
feat: image support ( #4011 )
...
Co-authored-by: Emil Atanasov <heitara@gmail.com>
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2021-10-21 22:05:48 +02:00
Aakansha Doshi
ff29780760
Refactor: convert initializeApp to func component and use JSX transform in the codebase ( #4056 )
2021-10-14 22:56:51 +05:30
Aakansha Doshi
463857ad9a
feat: Export THEME from the package ( #4055 )
...
* Use Theme type everywhere
* Rename Appearance type to Theme for consistency
* Reorder headers in readme
The host don't need to pass hardcoded strings any more and instead can use the exported constant
2021-10-14 14:15:57 +05:30
David Luzar
54739cd2df
fix: abstract and fix legacy fs ( #4032 )
2021-10-07 13:19:40 +02:00
David Luzar
bea4a1e066
chore: bump browser-fs-acccess to 0.20.5 ( #4018 )
...
* bump browser-fs-acccess to 0.20.5
* add null check
2021-10-02 18:27:26 +02:00
David Luzar
99623334d1
feat: add undo/redo buttons & tweak footer ( #3832 )
...
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2021-07-15 18:48:03 +02:00
David Laban
685abac81a
feat: resave to png/svg with metadata if you loaded your scene from a png/svg file ( #3645 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2021-07-15 15:54:26 +02:00
David Luzar
097362662d
feat: pass localElements to restore and restoreElement API's and bump versions of duplicate elements on import ( #3797 )
2021-07-04 22:23:35 +02:00
Arun
74a2f16501
feat: Show active file name when saving to current file ( #3733 )
...
* feat: Show active file name when saving to current file
* Make requested changes
* More changes
2021-06-13 21:11:07 +05:30
David Laban
abfc58eb24
feat: save exportScale in AppState ( #3580 )
...
Co-authored-by: David Luzar <luzar.david@gmail.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
2021-05-30 16:31:12 +02:00
Aakansha Doshi
ba48974351
feat: customise export dialog with UIOptions.canvasActions.export prop ( #3658 )
...
* refactor: update UIOptions.canvasActions.export to be a an object
* fix
* fix
* dnt show export icon when false
* fix
* inline
* memoize UIOptions
* update docs
* fix
* tweak readme
Co-authored-by: David Luzar <luzar.david@gmail.com>
2021-05-29 02:56:25 +05:30
Aakansha Doshi
bc0b6e1888
refactor: rename UIOptions.canvasActions.saveScene to UIOptions.canvasActions.saveToActiveFile ( #3657 )
...
* refactor rename action saveScene to saveFileToDisk
* docs
* fix
* fix
2021-05-28 02:10:33 +05:30
David Luzar
dd12abc583
refactor: remove watermark code ( #3639 )
...
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2021-05-26 21:44:54 +02:00
David Luzar
790c9fd02e
feat: exporting redesign ( #3613 )
...
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2021-05-25 21:37:14 +02:00
David Luzar
357266e9ab
feat: auto-position tooltip and suport overflowing container ( #3631 )
2021-05-25 13:52:04 +02:00
David Luzar
09dfd16b17
feat: use component dimensions to break to mobile ( #3414 )
...
Co-authored-by: Jed Fox <git@jedfox.com>
2021-04-08 19:54:50 +02:00
Arun
233576628c
feat: Support customising canvas actions 🎉 ( #3364 )
...
* feat: Support hiding save, save as, clear & export
* Remove canvasActions from state & minor changes
* Rename prop to UIOptions & pass default value
* Make requested changes
* better type checking so that optional check not needed at every point
* remove optional checks
* Add few tests
* Add describe block for canvasActions & use snapshot tests
* Add support for hiding canvas background picker
* Take snapshot of canvasActions instead of the whole app
* Add support for hiding dark mode toggle
* Update README.md
* Rename table heading
* Update changelog
* Make requested changes
* Update test name
* tweaks
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2021-04-04 15:57:14 +05:30
Lipis
722e5ca845
refactor: Use arrow function where possible ( #3315 )
2021-03-29 17:09:20 +03:00
Thomas Steiner
f7e17a28fa
fix: Update browser-fs-access to use new supported export ( #3303 )
...
* Use new exported supported
* Bump to v0.15.3
2021-03-22 14:58:26 +01:00
Aakansha Doshi
efb6d0825b
feat: Add label for name field and use input when editable in export dialog ( #3286 )
...
* feat: Add label for name field and use input when editable in export dialog
* fix
* review fix
* dnt allow to edit file name when view mode
* Update src/components/ProjectName.tsx
Co-authored-by: David Luzar <luzar.david@gmail.com>
Co-authored-by: David Luzar <luzar.david@gmail.com>
2021-03-20 21:57:58 +05:30
Arun
c3ecbcb3ab
feat: Allow host app to update title of drawing ( #3273 )
...
* Allow updating name on updateScene
* Revert "Allow updating name on updateScene"
This reverts commit 4e07a608d38a585e0f3c04e26b9f5e0e404824b1.
* Make requested changes
* Make requested changes
* Remove customName from state
* Remove redundant if statement
* Add tests, update changelog and minor fixes
* remove eempty lines
* minor fixes
* no border and on hover no background change
* Give preference to name prop when initialData.appState.name is present and update specs
* minor fix
* Fix name input style in dark mode
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2021-03-20 16:08:03 +05:30
Aakansha Doshi
f1daff2437
refactor: Rename appearance to theme ( #3237 )
...
* refactor: Rename appearance to theme
* fix
* update changelog
* rename theme_dark to theme--dark
* add about migration
2021-03-13 18:58:06 +05:30
Arun
4e421e6e9e
feat: Support exporting with dark mode ( #3046 )
...
Co-authored-by: Lipis <lipiridis@gmail.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
2021-02-24 15:22:17 +01:00
David Luzar
9c51ba6067
feat: show toast when saving to existing file ( #2988 )
2021-02-07 22:01:22 +01:00
David Luzar
778e4b08af
feat: Add cmd+o shortcut to load scene ( #2732 )
2021-01-06 13:36:55 +01:00
Lipis
3aa01ad272
chore: Remove tracking ( #2722 )
...
* chore: Remove tracking
* process
* rename
* remove
* prod
* Update public/index.html
Co-authored-by: David Luzar <luzar.david@gmail.com>
* Update public/index.html
* eol
* more
* stats
Co-authored-by: David Luzar <luzar.david@gmail.com>
2021-01-05 19:06:14 +01:00
Kartik Prajapati
60864ace54
feat: Add tooltip with icon for embedding scenes ( #2532 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-12-14 14:24:54 +01:00
Lipis
66e5b18e4e
Add more events for sharing and refactor I/O, dialogs ( #2443 )
2020-12-03 17:03:02 +02:00
Lipis
abde1daba4
Add basic event actions to analytics ( #2375 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-12-02 23:57:51 +02:00
Lipis
014097a97e
refactor: Stop using the deprecated keyCode ( #2426 )
...
Co-authored-by: Lipis <lipiridis@gmail.com>
Co-authored-by: David Luzar <luzar.david@gmail.com>
2020-12-01 22:36:06 +01:00
David Luzar
36980160ae
Revert "Remove unused project name from export dialog ( #2427 )" ( #2436 )
2020-12-01 14:00:13 +01:00
Lipis
b21fd49412
chore: Minor refactoring for consistency ( #2425 )
2020-11-29 17:32:51 +01:00
Lipis
204c8370a0
Remove unused project name from export dialog ( #2427 )
...
* Remove unused project name from export dialog
* snaps
2020-11-29 15:42:44 +02:00
David Luzar
1484c5a63b
fileHandle refactor & fixes ( #2252 )
2020-10-19 10:53:37 +02:00
David Luzar
5950fa9a40
support embedding scene data to PNG/SVG ( #2219 )
...
Co-authored-by: Lipis <lipiridis@gmail.com>
2020-10-13 14:47:07 +02:00
Thomas Steiner
b2822f3538
Make File Handling actually work ( #2181 )
...
Follow-up from #1736
2020-09-22 15:21:22 +02:00
David Luzar
aaddde5dd9
Fix history initialization ( #2115 )
2020-09-09 21:08:06 +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
Thomas Steiner
880cac2359
Update browser-nativefs ( #1963 )
...
Incorporates the latest changes in the Native File System API
2020-07-25 15:34:51 +02:00
David Luzar
494b7d08c5
mute FS abort errors ( #1929 )
2020-07-17 11:34:21 +02:00
Thomas Steiner
5d3867d8ac
Implement Save without re-prompt and Save as ( #1709 )
...
* Implement Save without re-prompt and Save as
Fixes #1668
* Add save-as icon
* Make .excalidraw the default extension
* Only show save as button on supporting browsers
2020-06-12 18:35:04 +02:00
David Luzar
a4b49ea350
ignore fileOpen error when user cancels ( #1486 )
2020-04-25 09:02:31 -07:00
Ed Bentley
5822117e23
Add optional watermark on export ( #1365 )
...
* Add optional watermark on export
* Address init PR feedback
* Add SVG export with refactoring
* Update export.ts
* Move addWatermark to appState
* Update snapshots
* Fit watermark in small scene
* Rename watermark things
Co-authored-by: Lipis <lipiridis@gmail.com>
2020-04-19 12:50:23 -07: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
b60f5fcf06
Save on CTRL/CMD + S ( #1287 )
...
* save on shortcut
* revert keys files
* remove constant
2020-04-06 23:24:50 +01: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