David Luzar
d2e687ed0a
feat: make file handling more robust ( #5057 )
2022-05-09 15:53:04 +02:00
Aakansha Doshi
aae8e2fa5d
feat: export MIME_TYPES supported by excalidraw ( #5135 )
...
* feat: export MIME_TYPES supported by excalidraw
* Update src/packages/excalidraw/CHANGELOG.md
2022-05-02 15:47:03 +05:30
Aakansha Doshi
9e6d5fdbcb
feat: support src collaborators ( #5114 )
...
* feat: support avatarURLfor collaborators
* fix
* better avatars :)
* use position fixed for tooltips so it renders correctly when offsets updated
* update docs
* Update src/excalidraw-app/collab/CollabWrapper.tsx
* rename avatarUrl to src
2022-05-02 15:15:24 +05:30
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
Aakansha Doshi
da94eb1284
fix: use excalidraw asset path in fonts when exporting to svg ( #5065 )
...
* fix: use excalidraw asset path in fonts when exporting
* fix
* fix
* introduce env variables and determine asset path correctly
* fix snaps
* use env vars to determine pkg name and version
* update docs
* quotes
2022-04-28 20:19:41 +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
Aakansha Doshi
2fa69ddc32
refactor: move elementLocked to activeTool.locked ( #4983 )
...
* refactor: move elementLocked to activeTool.locked
* fix
* fix snap
* update docs
* Update src/packages/excalidraw/CHANGELOG.md
* revert
* make lastActiveToolBeforeEraser required and nullable
* fix snap
2022-03-29 17:10:19 +05:30
Aakansha Doshi
127af9db23
refactor: rename elementType to activeTool and make it an object ( #4968 )
...
* refactor: rename elementType to activeTool
* update docs
* fix snap
* update activeToll to be an object and review fixes
* fix tests
* fix
2022-03-25 20:46:01 +05:30
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
0896892f8a
docs: release @excalidraw/excalidraw@0.11.0 🎉 ( #4799 )
...
* docs: release @excalidraw/excalidraw@0.11.0 🎉
* Add commit link for bad commits
2022-02-17 18:52:44 +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
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
Aakansha Doshi
e4ffc9812e
docs: changelog tweaks ( #4749 )
2022-02-08 18:58:37 +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
rulikrulit
719ae7b72f
fix: reset unmounted state for the component ( #4682 )
...
* Reset unmounted state for the component
* update changelog
Co-authored-by: ad1992 <aakansha1216@gmail.com>
2022-02-01 16:32:22 +05:30
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
David Luzar
bae0e985b2
fix: prevent browser from scrolling when panning ( #4489 )
2021-12-27 14:18:11 +01:00
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
zsviczian
c76784b774
fix: Scope drag and drop events to Excalidraw container to prevent overriding the host drag and drop events ( #4445 )
...
* cross-env
* reverting lib
https://github.com/excalidraw/excalidraw/issues/4282
* Revert "reverting lib"
This reverts commit 840726806a55ac53704024619a498abf767c60cb.
* Update package.json
* Update App.tsx
* Update App.tsx
* lint
* updated changelog
* Update src/packages/excalidraw/CHANGELOG.md
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
* Update src/packages/excalidraw/CHANGELOG.md
* Move fixes above build header
* Update src/packages/excalidraw/CHANGELOG.md
* lint
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
Co-authored-by: David Luzar <luzar.david@gmail.com>
2021-12-22 18:55:34 +05:30
David Luzar
7db63bd397
feat: redesign toolbar & tweaks ( #4387 )
2021-12-15 15:31:44 +01:00
Aakansha Doshi
6e391728fe
build: remove file loader and migrate to asset modules webpack for font assets ( #4380 )
...
* build: use type:javascript/auto so font file assets aren't duplicated
* update changelog
* remove file loader and use asset modules
* fix
2021-12-08 15:56:25 +05:30
David Luzar
dfbfbc3f11
feat: set package build target to es2017
( #4341 )
2021-12-07 16:38:46 +01:00
David Luzar
afa7932c9b
feat: set appState.exportBackground
to true
when exporting to jpg
( #4342 )
2021-11-30 22:08:55 +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
bc88cf5002
fix: Don't show save file to disk when UIOptions.canvasActions.export.saveFileToDisk is false ( #4073 )
2021-10-19 14:39:47 +05:30
Aakansha Doshi
c6ffc06541
feat: support renderTopRightUI in mobile ( #4065 )
2021-10-17 21:44:46 +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
Aakansha Doshi
39d45afc06
build: Enable jsx transform in webpack and release @excalidraw/excalidraw@0.10.0 🎉 ( #4049 )
...
* fix: Enable jsx transform in webpack
* update changelog
* fix
* typo fix in script
* docs: release @excalidraw/excalidraw@0.9.1 🎉
* fix changelog
* release 0.10.0
* Update src/packages/excalidraw/CHANGELOG.md
2021-10-13 17:03:50 +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
Hargobind S. Khalsa
9581c45522
fix: Prevent gradual canvas misalignment ( #3833 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2021-07-14 13:29:22 +02:00
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
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
Aakansha Doshi
9325109836
fix: use excal id so every element has unique id ( #3696 )
...
* fix: use excal id so every element has unique id
* fix
* fix
* fix
* add docs
* fix
2021-06-10 02:46:56 +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