Commit Graph

609 Commits (3c295559c77d886d445a6c8bce178af6309deffb)

Author SHA1 Message Date
David Luzar 55d3287abf
fix: include deleted elements when passing to restore (#3802) 4 years ago
Aakansha Doshi e3e967421e
fix: import React before using jsx (#3804) 4 years ago
Jakub Koralewski ee64a7e264
fix: ensure `s` and `g` shortcuts work on no selection (#3800)
Co-authored-by: dwelle <luzar.david@gmail.com>
4 years ago
David Luzar 097362662d
feat: pass localElements to restore and restoreElement API's and bump versions of duplicate elements on import (#3797) 4 years ago
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
4 years ago
connorhanafee 44402f42bf
feat: switch to selection tool on library item insert (#3773)
* switch to selection tool on library item insert

* add test

Co-authored-by: dwelle <luzar.david@gmail.com>
4 years ago
connorhanafee 969d3c694a
fix: keep binding for attached arrows after changing text (#3754)
Co-authored-by: David Luzar <luzar.david@gmail.com>
4 years ago
David Luzar 5cd921549a
fix: deselect elements on viewMode toggle (#3741) 4 years ago
Aakansha Doshi 437afcbea4
fix: allow pointer events for disable zen mode button (#3743) 4 years ago
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
4 years ago
David Luzar fd4460be37
feat: add hint around text editing (#3708) 4 years ago
David Luzar 6690215cd1
feat: change library icon to be more clear (#3583) 4 years ago
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
4 years ago
David Luzar 69b6fbb3f4
feat: pass current `theme` when installing libraries (#3701)
* pass current `theme` when installing libraries

* pass `theme` instead of `appState`
4 years ago
Sakito Mukai 6b6002baae
refactor: Delete React SyntheticEvent persist (#3700) 4 years ago
Aakansha Doshi d0867d1c3b
refatcor: make ProjectName a functional component (#3695) 4 years ago
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>
4 years ago
Aakansha Doshi 15f02ba191
refactor: code clean up (#3681)
* refactor: code clean up
Move types from App.tsx to types.ts
Move excalidrawPackage.test.tsx inside src/tests/package

* import type
4 years ago
David Luzar a2e1199907
feat: support exporting json to excalidraw plus (#3678)
* feat: support exporting json to excalidraw plus

* add Firebase Storage rules to codebase

* factor the onClick handler out

* move excal icon to icons.tsx

* handle export error
4 years ago
David Luzar c08e9c4172
fix: use rgba instead of shorthand alpha (#3688) 4 years ago
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>
4 years ago
David Luzar 035c7affff
fix: color pickers not opening on mobile (#3676) 4 years ago
David Luzar c819b653bf
fix: on contextMenu, use selected element regardless of z-index (#3668) 4 years ago
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>
4 years ago
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
4 years ago
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>
4 years ago
Arun 6c3e4417e1
feat: Add shortcuts for stroke and background color picker (#3318)
* feat: Add shortcuts for opening stroke and background color picker

* Use App.tsx keydown handler

* only get selectedElements if applicable (perf)

* fix tests and snaps

* reuse `appState.openMenu`

Co-authored-by: dwelle <luzar.david@gmail.com>
4 years ago
Aakansha Doshi bc0b6e1888
refactor: rename UIOptions.canvasActions.saveScene to UIOptions.canvasActions.saveToActiveFile (#3657)
* refactor rename action saveScene to saveFileToDisk

* docs

* fix

* fix
4 years ago
David Luzar dd12abc583
refactor: remove watermark code (#3639)
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
4 years ago
David Luzar abebf9aff8
fix: small UI issues around image export dialog (#3642) 4 years ago
David Luzar 790c9fd02e
feat: exporting redesign (#3613)
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
4 years ago
David Luzar 357266e9ab
feat: auto-position tooltip and suport overflowing container (#3631) 4 years ago
David Luzar d201d0be1b
fix: disable pointer-events on footer-center container (#3629) 4 years ago
David Luzar 6d40039f08
feat: allow inner-drag-selecting with cmd/ctrl (#3603)
* feat: allow inner-drag-selecting with cmd/ctrl

* don't use  cursor when pressing cmd/ctrl

* ensure we reset deselected groups

* add tests

* add docs

* couple fixes around group selection
4 years ago
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
4 years ago
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>
4 years ago
David Laban f1cf28a84e
refactor: reduce passing-around of canvas in export code (#3571) 4 years ago
Aakansha Doshi 3b9290831a
refactor: rename renderTopRight prop to renderTopRightUI (#3572)
* refactor: rename renderTopRight prop to renderTopRightUI

* update

* fix

* update
4 years ago
Gurkiran Singh bec34f2d57
feat: Shortcut key for nerd stats (#3552)
* added alt+/ as the shortcut key for nerd stats

Signed-off-by: gurkiran_singh <gurkiransinghk@gmail.com>

* added shortcut info in HelpDialog.ts

Signed-off-by: gurkiran_singh <gurkiransinghk@gmail.com>

* resolved conflicts

Signed-off-by: gurkiran_singh <gurkiransinghk@gmail.com>

* added shortcut info in HelpDialog.ts

Signed-off-by: gurkiran_singh <gurkiransinghk@gmail.com>
4 years ago
David Luzar 91ab7f36e2
fix: restore on paste or lib import (#3558) 4 years ago
Steve Ruiz 49c6bdd520
feat: improved freedraw (#3512)
Co-authored-by: dwelle <luzar.david@gmail.com>
4 years ago
Arun 198800136e
feat: Add shortcut for dark mode (#3543)
* Create and move toggle into an action

* Add shortcut on help dialog
4 years ago
David Luzar 178ee04d82
feat: Adds rounded icons, joins and caps. (#3521)
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
4 years ago
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
4 years ago
David Luzar 12e8cc853f
feat: remove `backdrop-filter` to improve perf (#3506)
* feat: remove `backdrop-filter` to improve perf

* remove `backdrop-filter` from Modal
4 years ago
David Luzar 5cc3f7db80
feat: support scroll to center to single element and rename `setScrollToContent` (#3482)
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
4 years ago
Aakansha Doshi 5c42cb5be4
fix: only handle cut/paste events inside excalidraw (#3484)
* fix: only hand cut/paste events inside excalidraw

* changelog

* check if excalidraw is active for copy event

* check if active element is part of excalidraw
4 years ago
Aakansha Doshi d3106495b2
fix: make history local to a given excalidraw instance (#3481)
* fix: make history local to a given excalidraw instance

* changelog

* Update src/packages/excalidraw/CHANGELOG.md
4 years ago
Aakansha Doshi 891ac82447
fix: use active Excalidraw component when editing text (#3478)
* fix: use active excalidraw component when editing text

* changelog

* tweak
4 years ago
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>
4 years ago