Commit Graph

1083 Commits (bac20fa6418efd7b9eebcfd54b89e46bfed1ac7c)
 

Author SHA1 Message Date
dependabot-preview[bot] 23f67c55d1
Bump node-sass from 4.13.1 to 4.14.0 ()
Bumps [node-sass](https://github.com/sass/node-sass) from 4.13.1 to 4.14.0.
- [Release notes](https://github.com/sass/node-sass/releases)
- [Changelog](https://github.com/sass/node-sass/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sass/node-sass/compare/v4.13.1...v4.14.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
dependabot-preview[bot] 5389399421
Bump prettier from 2.0.4 to 2.0.5 ()
Bumps [prettier](https://github.com/prettier/prettier) from 2.0.4 to 2.0.5.
- [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/2.0.4...2.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Daishi Kato da1031aeb4
Fix resize logic (partly) ()
Lipis 4824f9e1d4
New Crowdin translations ()
Lipis 5855fcf946
New Crowdin translations ()
* New translations en.json (French)

* New translations en.json (Hebrew)

* New translations en.json (Hebrew)

* New translations en.json (Hebrew)

* New translations en.json (Hebrew)

* New translations en.json (Hebrew)
Lipis 9cd2b78d79
New Crowdin translations ()
* New translations en.json (Norwegian)

* New translations en.json (French)

* New translations en.json (Dutch)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Russian)

* New translations en.json (Portuguese)

* New translations en.json (Polish)

* New translations en.json (Norwegian)

* New translations en.json (Korean)

* New translations en.json (Spanish)

* New translations en.json (Italian)

* New translations en.json (Hungarian)

* New translations en.json (Finnish)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Bulgarian)

* New translations en.json (Arabic)

* New translations en.json (Dutch)

* New translations en.json (Portuguese)

* New translations en.json (Polish)

* New translations en.json (Norwegian)

* New translations en.json (Italian)

* New translations en.json (Finnish)

* New translations en.json (German)

* New translations en.json (Finnish)

* New translations en.json (Norwegian)

* New translations en.json (Polish)

* New translations en.json (Portuguese)

* New translations en.json (German)

* New translations en.json (French)

* New translations en.json (Dutch)

* New translations en.json (Indonesian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Russian)

* New translations en.json (Portuguese)

* New translations en.json (Polish)

* New translations en.json (Norwegian)

* New translations en.json (Korean)

* New translations en.json (Spanish)

* New translations en.json (Japanese)

* New translations en.json (Italian)

* New translations en.json (Hungarian)

* New translations en.json (Finnish)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Bulgarian)

* New translations en.json (Arabic)

* New translations en.json (Hindi)

* New translations en.json (Greek)

* New translations en.json (Norwegian)

* New translations en.json (Hebrew)

* New translations en.json (Hebrew)

* New translations en.json (Hebrew)

* Add Hebrew to dropdown

Co-authored-by: Jed Fox <git@twopointzero.us>
Faustino Kialungila 582d26e858
fix tool icon button on mobile ()
David Luzar 2c5c770e78
rewrite picker color handling ()
David Luzar a4b49ea350
ignore fileOpen error when user cancels ()
Aakansha Doshi 1866074c07
Add Zen mode for distraction free drawing ()
Warren Seine 71e7f130bc
Generalize color normalization () ()
Following , a bug was found related to transparent backgrounds. As Excalidraw only supports `transparent` as a valid transparent color, this commits generalizes the use of canvas to normalize color values.

It changes a few details:
- `rgba()` or `hsla()` syntaxes are not accepted anymore
- pasting values goes through the same normalization step, avoiding invalid values
- color validation is not regex-based anymore
- any CSS-valid black color is now accepted (e.g. previously, `rgb(0,0,0)` was rejected)
Lipis 0220341966
Rename .eslintrc to .eslintrc.json ()
So it will be auto formatted on commits
Youssef Meskini 28f4ee5783
extract eslint rules from package.json ()
Warren Seine fa8354e306
Support different color inputs () ()
Lipis fc802c758f
Update shield's tooltip ()
José Quinto ed6fb60337
resize elements from center point ()
* add hint & support multi-line hints

* resize from center point using the new resize maths

* resize with origin element when lifting alt key

* add readonly to elementOriginPosition

* add setResizeWithCenterKeyLifted

* isResizeFromCenter logic

* offsetX and offsetY

* simplify equations

* creating element from center point

* lint

* lint

* lint

* remove revert on key up logic

Co-authored-by: dwelle <luzar.david@gmail.com>
Co-authored-by: daishi <daishi@axlight.com>
Daishi Kato 8c49770e3b
Better resize cursors on rotated elements ()
* better resize cursor on rotated elements

* refactor with Math.round
Jed Fox d7729d295a
RTL for the security badge, add an arrow to the tooltip ()
* FIx RTL on the encryption shield

* Add an arrow to the tooltip
Lipis d1086f3624
New Crowdin translations ()
Preet 9ac79061fa
Bump roughjs and resolve breaking change in roughjs refactoring… ()
* Fix for roughjs refactoring curve-estinmation code into a separate package

* Update jest transformIgnorePatterns
Ed Bentley 9b7a743e8b
Fix bug: Undo multi element ()
* Add failing test

* Fix multi element undo

* Update snapshots
dependabot-preview[bot] b8a9ad208d
Bump i18next-browser-languagedetector from 4.0.2 to 4.1.1 ()
Bumps [i18next-browser-languagedetector](https://github.com/i18next/i18next-browser-languageDetector) from 4.0.2 to 4.1.1.
- [Release notes](https://github.com/i18next/i18next-browser-languageDetector/releases)
- [Changelog](https://github.com/i18next/i18next-browser-languageDetector/blob/master/CHANGELOG.md)
- [Commits](https://github.com/i18next/i18next-browser-languageDetector/compare/v4.0.2...v4.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
dependabot-preview[bot] 2581608ae3
Bump browser-nativefs from 0.7.0 to 0.7.1 ()
Bumps [browser-nativefs](https://github.com/GoogleChromeLabs/browser-nativefs) from 0.7.0 to 0.7.1.
- [Release notes](https://github.com/GoogleChromeLabs/browser-nativefs/releases)
- [Commits](https://github.com/GoogleChromeLabs/browser-nativefs/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
dependabot-preview[bot] d909ea24a2
Bump lint-staged from 10.1.3 to 10.1.6 ()
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.1.3 to 10.1.6.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.1.3...v10.1.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Ed Bentley 5822117e23
Add optional watermark on export ()
* 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>
Lipis 13cea081f3
New Crowdin translations ()
* New translations en.json (Arabic)

* New translations en.json (Korean)

* New translations en.json (Bulgarian)

* New translations en.json (Turkish)

* New translations en.json (Spanish)

* New translations en.json (Russian)

* New translations en.json (Portuguese)

* New translations en.json (Polish)

* New translations en.json (Norwegian)

* New translations en.json (Italian)

* New translations en.json (Chinese Simplified)

* New translations en.json (Indonesian)

* New translations en.json (Hungarian)

* New translations en.json (Hindi)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (French)

* New translations en.json (Dutch)

* New translations en.json (Chinese Traditional)

* New translations en.json (Japanese)

* New translations en.json (Dutch)

* New translations en.json (Polish)

* New translations en.json (Norwegian)

* New translations en.json (Arabic)

* New translations en.json (Korean)

* New translations en.json (Bulgarian)

* New translations en.json (Turkish)

* New translations en.json (Spanish)

* New translations en.json (Russian)

* New translations en.json (Portuguese)

* New translations en.json (Polish)

* New translations en.json (Norwegian)

* New translations en.json (Italian)

* New translations en.json (Chinese Simplified)

* New translations en.json (Indonesian)

* New translations en.json (Hungarian)

* New translations en.json (Hindi)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (French)

* New translations en.json (Dutch)

* New translations en.json (Chinese Traditional)

* New translations en.json (Japanese)

* New translations en.json (Norwegian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (German)
fujimoto kyosuke 38c7d5a7bf
Reflect `textAlign` when pasting a style ()
* Reflect `textAlign` when pasting a style

* Re-run Actions
Steven Nguyen 2bfb0c20c3
Add a button to show all content, if the zoom allows it. ()
* add zoom center action button

* enhance zoom calculation and scroll to center

* add zoom out and center button

* filter deleted elements

* improve complexity

* add key shortcut

* calculate zoom value

* don't render zoomCenter action

* offset from top to account for shape menu

* change shortcut & add to shortcut dialog

* decrease offset

* revert offset

* change hotkey & description

* rename to zoomToFit

* change shortcut label & position

Co-authored-by: dwelle <luzar.david@gmail.com>
Aakansha Doshi ff0ecb5e33
add always visible lock icon on top right to show info about e… ()
* improvement(layerui.js): add lock icon on top right to show encrypted info about excalidraw

fixes https://github.com/excalidraw/excalidraw/issues/1313

* swap lock with shield

* fix dimensions

* make link open in new tab

* add newline between toolip text and link

* increase tooltip line-height

* remove unused GitHubCorner compo

* reposition; reintroduce GH icon

* make shield into link

* make tooltip not show when drawing

* Review fix

* remove link from tooltip

Co-authored-by: dwelle <luzar.david@gmail.com>
Aakansha Doshi a18342b5b5
Refactor LayerUI ()
* chore(gitignore): add .idea to gitignore

* refactor(layerui): pass named function to react.memo so that in dev tools the name shows up

This makes debugging easier as well

* refactor(layerui): break the functional component into multiple render methods
Lipis 9131813661
New Crowdin translations ()
* New translations en.json (German)

* New translations en.json (French)

* New translations en.json (German)

* New translations en.json (Chinese Simplified)

* New translations en.json (Chinese Traditional)

* New translations en.json (Dutch)
Thomas Steiner 38616e6c60
Update to browser-nativefs ()
Fixes 
David Luzar 83199164ae
don't prevent select-element devTools action ()
Mohit kumar Bajoria 519a9ca493
Close sharing dialog on Enter when changing the username ()
David Luzar 8cfc64a3ab
fix bg color picker rendered behind shape menu ()
* fix bg color picker rendered behind shape menu

* add comment
Thomas Steiner c35d76cb4c
Use application/vnd.excalidraw+json and .excalidraw ()
* Use application/vnd.excalidraw+json and .excalidraw

* UA sniff and use appication/json on mobile Safari
Thomas Steiner 9a59b7496e
Only load PWACompat when we really need it ()
Thomas Steiner fe5e71a4e5
Add PWACompat ()
* Add PWACompat (attempt)
Fixes 

* Fix CSS, use custom splash screen font

* Respect bottom safe area
David Luzar 75e0163dd1
tweak blurry bg for legibility & remove from modals ()
Tom Hicks 3b357d8332
Improve UI continuity behind panels ()
* Add variable for island color

* Make islands semi-transparent

This preserves the notion of the infinite canvas and helps
maintain context, especially on smaller screens.
Thomas Steiner fbcb3ee6ff
Sign us up for Native File System API v2 Origin Trial ()
Lipis 08e467f1a1
New Crowdin translations ()
* New translations en.json (Portuguese)

* New translations en.json (Korean)

* New translations en.json (Russian)

* New translations en.json (German)
David Luzar d998a190df
persist pointerDown event ()
Thomas Steiner fcf2a73ffb
Remove superfluous meta tag ()
dependabot-preview[bot] 7df16c1b1d
Bump prettier from 2.0.3 to 2.0.4 ()
* Bump prettier from 2.0.3 to 2.0.4

Bumps [prettier](https://github.com/prettier/prettier) from 2.0.3 to 2.0.4.
- [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/2.0.3...2.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* format

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
Daishi Kato e77e2255bd
Add test for getElementBounds ()
* fix calc diamond bounds

* Add test for getElementBounds

* use toEqual
Faustino Kialungila 51ccf61cc6
Bring root fonts back ()
* redirect font loading

* bring preloading back

* change paths

* add css type

* move fonts to root

* correct paths

* remove redirects

* correct ext

* remove fonts from main CSS

* remove unneeded fonts

Co-authored-by: kbariotis <konmpar@gmail.com>
Faustino Kialungila cca15b0640
Disable notifications ()
* Remove notifications

* remove dead component
David Luzar 692ceece65
fix not using className when querying container ()
Kostas Bariotis 0e94303791
Ignore `undefined is not an object (evaluating 'window.__pad.pe… ()