David Luzar
d53ac2a61e
fix: library init/import race conditions ( #5101 )
2022-04-29 16:45:02 +02:00
Aakansha Doshi
6a0f800716
feat: export exportToClipboard util from package ( #5103 )
...
* feat: export copyToClipboard from package
* use promise constructor for better browser supprt
* add type to exportToClipboard
* update docs
* use json instead of text and use selected element in actionCopy
* pass `files` in example `exportToClipboard`
* fix bad access
Co-authored-by: dwelle <luzar.david@gmail.com>
2022-04-29 18:58:44 +05:30
Achille Lacoin
af93cedc08
EXCALIDRAW_EXPORT_SOURCE_PATH -> EXCALIDRAW_EXPORT_SOURCE ( #5102 )
2022-04-27 10:49:02 +02:00
Achille Lacoin
b6a6f2d465
feat: Expose window.EXCALIDRAW_EXPORT_SOURCE which host can use to overwrite the source field in exports ( #5095 )
...
* Expose `window.EXCALIDRAW_EXPORT_SOURCE` which host can use to overwrite the source field in exports
* Update src/packages/excalidraw/CHANGELOG.md
Co-authored-by: David Luzar <luzar.david@gmail.com>
* address review comments
* Update src/packages/excalidraw/README_NEXT.md
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
* Update src/packages/excalidraw/README_NEXT.md
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
* EXCALIDRAW_EXPORT_SOURCE -> EXCALIDRAW_EXPORT_SOURCE_PATH
Co-authored-by: David Luzar <luzar.david@gmail.com>
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2022-04-26 13:28:39 +02:00
Achille Lacoin
3840e2f4e6
feat: embed scene support for png export in npm package ( #5047 )
...
* feat: embed scene support for png export in npm package
* move logic to the callback function
* add exportEmbedScene checkbox in package example
* update readme and changelog
* add PR link in changelog
* reverse sort changelog items
2022-04-16 16:30:11 +02:00
Aakansha Doshi
96c87f920a
build: export only named exports from the package ( #5045 )
...
* build: export only named exports from the package
* update docs
* Update src/packages/excalidraw/CHANGELOG.md
* fix lint
2022-04-15 18:12:57 +05:30
David Luzar
70b3a9de49
feat: library restoring changes ( #4995 )
...
* restore library items in all cases & refactor
* export `restoreLibraryItems` from package
* feat: rerender library menu when updating via API
* update readme & changelog
* fix changelog
2022-04-14 16:20:35 +02:00
Achille Lacoin
873afdacd3
feat: create and expose serializeLibraryAsJSON ( #5009 )
...
Co-authored-by: David Luzar <luzar.david@gmail.com>
2022-04-05 14:35:38 +02:00
luzpaz
c5a7723185
chore: fix various typos ( #4857 )
...
Found via `codespell -q 3 -S ./src/locales,./yarn.lock,./src/packages/excalidraw/yarn.lock -L afterall,doubleclick,originaly,reenable,whats,sur`
2022-03-02 11:37:12 +05:30
Aakansha Doshi
7fe225ee99
fix: rename --color-primary-chubb to --color-primary-contrast-offset and fallback to primary color if not present ( #4803 )
...
* fix: fallback to primary color if --color-primary-chubb not present
* rename to --color-primary-contrast-offset
* use contarst-offset
Co-authored-by: David Luzar <luzar.david@gmail.com>
* Update src/packages/excalidraw/README_NEXT.md
* remove
* Update src/packages/excalidraw/README_NEXT.md
Co-authored-by: David Luzar <luzar.david@gmail.com>
Co-authored-by: David Luzar <luzar.david@gmail.com>
2022-02-17 18:22:19 +05:30
Aakansha Doshi
987526d1e5
docs: tweak documentation for release and add examples ( #4786 )
...
* docs: tweak documentation for release
* Add image in initial data
* Add image
* remove watermark and make export work
* update readme
2022-02-15 19:13:46 +05:30
Aakansha Doshi
69336b4832
build: rename release command to 'release package' ( #4783 )
2022-02-14 17:47:52 +05:30
Aakansha Doshi
a60860867c
build: release preview package when triggered via comment ( #4750 )
...
* build: autorelease preview on every commit during pull request
* add github workflow
* update readme
* update docs
* log changed files
* remove depth
* fetch pr head
* remove console.log
* log pr number
* pull pr number
* use pull request number in release version
* dummy
* dummy
* dummy
* fix
* dummy
* fix
* Add comment and set output as version
* dummy
* fix
* fix
* set output through js toolkit
* install
* dummy
* update
* fix
* fix
* typo
* update
* condition
* typo
* testing
* wrap conditions
* echo
* hope it works
* test
* test
* yay test again
* test updated
* remove reaction
* run if comment triggered
* fix
* fix
* Update script after testing in fork
* remove
* update changelog
* update readme
* update
* remove
* append pr number then commit hash
2022-02-14 13:54:24 +05:30
David Luzar
a066317d3c
feat: add onLinkOpen component prop ( #4694 )
...
Co-authored-by: ad1992 <aakansha1216@gmail.com>
2022-02-08 11:25:35 +01:00
Aakansha Doshi
b475412199
feat: support updating library in updateScene API ( #4546 )
...
* feat: support updating library in updateScene API
* fix
* update docs
* Update src/packages/excalidraw/CHANGELOG.md
2022-01-06 21:37:33 +05:30
Aakansha Doshi
04f852a40a
build: Added example folder for testing @excalidraw/excalidraw in local ( #4488 )
...
* build: Added example folder for testing @excalidraw/excalidraw in local
* remove unnecessary files
* use scss
* update docs
* newline
* remove index
* remove yarn
* use the bundled excalidraw.development.js for better testing and font will also be available
* remove src folder from example
2021-12-27 18:01:33 +05:30
David Luzar
7db63bd397
feat: redesign toolbar & tweaks ( #4387 )
2021-12-15 15:31:44 +01:00
David Luzar
06db702b5d
feat: support selecting multiple library items via shift ( #4306 )
2021-11-26 12:46:23 +01:00
David Luzar
b53d1f6f3e
feat: improve library preview image generation on publish ( #4321 )
...
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2021-11-26 11:46:13 +01: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
6eecadce60
feat: export isLinearElement and getNonDeletedElements ( #4072 )
...
* feat: export isLinearElement and getNonDeletedElements
* fix
2021-10-19 14:40:48 +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
zsviczian
7d1fddc144
fix: onPaste should return false to prevent paste action ( #3974 )
...
* Update App.tsx
* Update README_NEXT.md
* Update CHANGELOG.md
* Update App.tsx
* Update App.tsx
* Update src/packages/excalidraw/CHANGELOG.md
* fix lint
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2021-09-13 20:58:53 +05:30
Pim Otte
5da3207633
docs: correct exportToBackend to onExportToBackend in README ( #3952 )
...
* docs: correct exportToBackend to onExportToBackend in README
* Update changelog with link to PR
* Add Excalidraw API title to changelog section
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2021-08-30 14:16:44 +05:30
Aakansha Doshi
8787f3dc60
docs: release @excalidraw/excalidraw@0.9.0 🎉 ( #3807 )
...
* docs: release @excalidraw/excalidraw@0.9.0 🎉
* remove
* update changelog
2021-07-10 18:52:19 +05:30
Aakansha Doshi
77aae63006
docs: tweak changelog and readme ( #3796 )
...
* docs: tweak changelog and readme
* moving to discussions :)
* Apply suggestions from code review
Co-authored-by: David Luzar <luzar.david@gmail.com>
* Add about attributes passed to updateScene
Co-authored-by: David Luzar <luzar.david@gmail.com>
2021-07-05 14:21:01 +05:30
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
Aakansha Doshi
bc8ba08ad0
build: Add script to update readme before stable release ( #3781 )
...
* build: Add script to update readme before stable release
* fix
* fix
2021-07-03 18:50:22 +05:30
Aakansha Doshi
f861a9fdd0
feat: support appState.exportEmbedScene to embed scene data in exportToSvg util ( #3777 )
...
* feat: add embedScene attribute to exportToSvg util
* fix
* return promise
* add docs and remove
* fix
* fix tests
* use
* fix
* fix
* remove metadata and use exportEmbedScene
* fix
* fix
* fix
* fix
* IIFE
2021-07-03 02:07:01 +05:30
Aakansha Doshi
bdead4d164
feat: expose getFreeDrawSvg, loadFromBlob and loadLibraryFromBlob from excalidraw package ( #3764 )
...
* feat: expose getFreeDrawSvg, loadFromBlob and loadLibraryFromBlob from excalidraw package
* Add docs
* fix
2021-06-26 02:12:58 +05:30
Aakansha Doshi
6dee02e320
feat: expose fontfamily and refactor FONT_FAMILY ( #3710 )
...
* feat: expose fontfamily and refactor FONT_FAMILY for better readability
* fix
* fix
* fix
* docs
* fix
2021-06-13 21:26:55 +05:30
Karl Horky
54dcb73701
docs: improve grammar and example ( #3699 )
...
* Improve grammar, render only once
* Update README_NEXT.md
2021-06-07 01:38:05 +05:30
Arun
4249de41d4
feat: Add prop autoFocus to set focus on the Excalidraw component ( #3691 )
...
* feat: Add prop autofocus to set focus on Excalidraw component
* Update PR number
* Make requested changes
* Add note
* Update src/packages/excalidraw/CHANGELOG.md
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
* Update src/tests/excalidrawPackage.test.tsx
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
* Remove duplicate sentence
* Indent note
* autofocus -> autoFocus
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2021-06-02 19:54:21 +05:30
Aakansha Doshi
d63b6a3469
feat: support custom UI rendering inside export dialog ( #3666 )
...
* feat: support custom UI rendering inside export dialog
* docs
* add
* remove assertion
Co-authored-by: dwelle <luzar.david@gmail.com>
2021-05-30 00:37:38 +05:30
Aakansha Doshi
360310de31
feat: Add prop UIOptions.canvasActions.saveAsImage to show/hide save image button ( #3662 )
...
* feat: Add prop UIOptions.canvasActions.saveAsImage which implies whether the save as image dialog should be shown
* Add docs
* fix specs
2021-05-29 19:41:50 +05:30
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
Aakansha Doshi
5662c5141d
feat: Auto release @excalidraw/excalidraw-next on every change ( #3614 )
...
* feat: Auto release @excalidraw/excalidraw-next on every change
* fix
* fix name
* fix
* add logs
* use commithash
* yarn installå
* fix
* catch
* log
* fix
* uncomment
* remove console
* add logs
* list files changed between prev and current commit
* fetch last two commits
* remove logs
* fix
* update readme_next
* update readme before release
* temp commit to trigger release
* update package name to excalidraw-next
* bold
* remove temp branch
* add note about next
* fix
* fix
* fix
2021-05-22 19:43:28 +05:30
Aakansha Doshi
ebf64036fd
docs: release @excalidraw/excalidraw@0.8.0 🎉 ( #3581 )
...
* docs: release @excalidraw/excalidraw@0.8.0
* remove
* remove
* add info for each section
* add .
* update
2021-05-15 18:17:44 +05:30
Aakansha Doshi
6271a031a3
fix: move encrypted icon to excalidraw-app add separate animation for renderFooter prop ( #3577 )
...
* fix: move encrypted icon to excalidraw-app
* use grid & separate animation for custom footer
* update docs
* fix
2021-05-15 14:49:58 +05:30
Aakansha Doshi
78da4c075e
feat: support updating appState in updateScene API ( #3576 )
...
* feat: support updating appState in updateScene API
* make `updateScene.data.appState` more type-safe
* restore `appState` when passing to `updateScene`
* fix
Co-authored-by: dwelle <luzar.david@gmail.com>
2021-05-14 17:52:56 +05:30
Aakansha Doshi
3b9290831a
refactor: rename renderTopRight prop to renderTopRightUI ( #3572 )
...
* refactor: rename renderTopRight prop to renderTopRightUI
* update
* fix
* update
2021-05-13 21:02:59 +05:30
David Luzar
8068d1f853
feat: export serializeAsJSON from package ( #3538 )
...
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2021-05-12 00:24:41 +02:00
David Luzar
bac76778ce
feat: add renderTopRight prop & remove GH corner from core ( #3539 )
...
* feat: add `renderTopRight` prop & remove GH corner from core
* reuse `--space-factor` var
* update readme & changelog
2021-05-06 21:00:17 +02:00
Aakansha Doshi
23030a15f2
docs: release @excalidraw/excalidraw 0.7.0 🎉 ( #3497 )
...
* docs: release version 0.7.0
* update
* fix
* fix
* fix
* fix
* fix
* fix
* version bump
* fix readme
* tweaks
Co-authored-by: David Luzar <luzar.david@gmail.com>
* update link
Co-authored-by: David Luzar <luzar.david@gmail.com>
2021-04-25 19:02:06 +05:30
David Luzar
5cc3f7db80
feat: support scroll to center to single element and rename setScrollToContent ( #3482 )
...
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2021-04-25 12:28:41 +02:00
David Luzar
3a0b6fb41b
refactor: move getSyncableElements to CollabWrapper & expose isInvisiblySmallElement helper ( #3471 )
...
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2021-04-21 23:37:44 +02:00
Aakansha Doshi
37d513ad59
feat: Make library local to given excalidraw instance and allow consumer to control it ( #3451 )
...
* feat: dnt share library & attach to the excalidraw instance
* fix
* Add addToLibrary, resetLibrary and libraryItems in initialData
* remove comment
* handle errors & improve types
* remove resetLibrary and addToLibrary and add onLibraryChange prop
* set library cache to empty arrary on reset
* Add i18n for remove/add library
* Update src/locales/en.json
Co-authored-by: David Luzar <luzar.david@gmail.com>
* update docs
* Assign unique ID to
each excalidraw component and remove csrfToken from library as its not needed
* tweaks
Co-authored-by: David Luzar <luzar.david@gmail.com>
* update
* tweak
Co-authored-by: dwelle <luzar.david@gmail.com>
2021-04-21 23:38:24 +05:30
Aakansha Doshi
d5a270f643
fix: tweak readme for syncable elements ( #3444 )
...
* fix: tweak readme for syncable elements
* fix
* tweak
Co-authored-by: David Luzar <luzar.david@gmail.com>
2021-04-13 15:04:02 +05:30