Commit Graph

3326 Commits (zsviczian-fix-freehand-loops)
 

Author SHA1 Message Date
Aakansha Doshi 9fc15d81a0
ci: introduce bundle size for package @excalidraw/excalidraw (#6785)
* ci: update bundle size limit

* change the size script to track bundle size on the package excalidraw

* fix build command

* fix

* remove

* fix

* update script

* fix
2 years ago
Aakansha Doshi a80ac4c748
ci: add bundle size limit action (#6783)
* ci: add bundle size limit action

* chore: fix lint

* ci: fix

* ci: fix workflow

* ci: fix workflow

* add size limit deps

* use node 18

---------

Co-authored-by: Nitin Kumar <nitin.kumar@razorpay.com>
2 years ago
David Luzar 9f76f8677b
feat: cache most of element selection (#6747) 2 years ago
David Luzar 2e46e27490
fix: use actual dock state to not close docked library on insert (#6766) 2 years ago
David Luzar cf0413338e
feat: support customizing what parts of frames are rendered (#6752) 2 years ago
David Luzar 49e4289878
feat: make `appState.selectedElementIds` more stable (#6745) 2 years ago
zsviczian 3ddcc48e4c
fix: UI disappears when pressing the eyedropper shortcut on mobile (#6725) 2 years ago
Barnabás Molnár 29a5e982c3
feat: support scrollToContent opts.fitToViewport (#6581)
Co-authored-by: dwelle <luzar.david@gmail.com>
Co-authored-by: Arnošt Pleskot <arnostpleskot@gmail.com>
2 years ago
Christopher Chedeau b33fa6d6f6
fix: stronger enforcement of normalizeLink (#6728)
Co-authored-by: dwelle <luzar.david@gmail.com>
2 years ago
Ryan Di b7350f9707
fix: elements in non-existing frame getting removed (#6708)
Co-authored-by: dwelle <luzar.david@gmail.com>
2 years ago
David Luzar 8dfa2a98bb
fix: scrollbars renders but disable (#6706) 2 years ago
Wu Kai fb01ce2a00
fix: typo in chart.ts (#6696)
fix: typo
2 years ago
Excalidraw Bot 3d57112480
chore: Update translations from Crowdin (#6677) 2 years ago
Are 7558a4e2be
feat: overwrite confirmation dialogs (#6658)
Co-authored-by: dwelle <luzar.david@gmail.com>
2 years ago
Aakansha Doshi 6d56634289
fix: do not bind text to container using text tool when it has text already (#6694)
* fix: do not bind text to container using text tool when it has text already

* Update src/element/textWysiwyg.test.tsx
2 years ago
Milos Vetesnik 0aa1e66486
feat: simple analitycs (#6683)
* Simple analytics for iframe and webpage

* added logic for tracking specific categories of events to reduce it

* enviroment vars clean up

* fix: lint for index.html
2 years ago
Aakansha Doshi 7f7128ec09
fix: don't allow binding text to images (#6693) 2 years ago
Aakansha Doshi 6de6a96abf
docs: add info about roadmap (#6687) 2 years ago
Sudharsan Aravind 28ab6531c9
fix: updated link for documentation page under help section (#6654)
* fix: updated link for documentation page under help section

* Update docs link

---------

Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2 years ago
Ryan Di 81ebf82979
feat: introduce frames (#6123)
Co-authored-by: dwelle <luzar.david@gmail.com>
2 years ago
Aakansha Doshi 4d7d96eb7b
feat: add canvas-roundrect-polyfill package (#6675)
* feat: add canvas-roundrect-polyfill instead of maintaining a copy of it and transplile it since its not transpiled in the package

* transform canvas-roundrect-polyfill in jest
2 years ago
David Luzar 1747e93957
feat: polyfill `CanvasRenderingContext2D.roundRect` (#6673) 2 years ago
Arnost Pleskot 3bd5d87cac
feat: disable collab feature when running in iframe (#6646)
Co-authored-by: dwelle <luzar.david@gmail.com>
2 years ago
David Luzar 74d2fc6406
fix: collab username style fixes (#6668) 2 years ago
Excalidraw Bot ce9acfbc55
chore: Update translations from Crowdin (#6641) 2 years ago
Arnost Pleskot 16c7945ca0
feat: assign random user name when not set (#6663) 2 years ago
Arnost Pleskot 5ca3613cc3
feat: redesigned collab cursors (#6659)
Co-authored-by: dwelle <luzar.david@gmail.com>
2 years ago
Alex Kim b4abfad638
fix: bound arrows not updated when rotating multiple elements (#6662) 2 years ago
WBbug a39640ead1
fix: delete setCursor when resize (#6660) 2 years ago
David Luzar 84bd9bd4ff
fix: creating text while color picker open (#6651)
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2 years ago
Aakansha Doshi ae7ff76126
fix: cleanup textWysiwyg and getAdjustedDimensions (#6520)
* fix: cleanup textWysiwyg and getAdjustedDimensions

* fix lint

* fix test
2 years ago
Excalidraw Bot 952aa63f86
chore: Update translations from Crowdin (#6625) 2 years ago
David Luzar a065ec67a9
fix: eye dropper not accounting for offsets (#6640) 2 years ago
David Luzar 079aa72475
feat: eye dropper (#6615) 2 years ago
Sudharsan Aravind 644685a5a8
fix: color picker input closing problem (#6599) 2 years ago
Are 7bf4de5892
feat: redesign of Live Collaboration dialog (#6635)
* feat: redesiged Live Collaboration dialog

* fix: address lints

* fix: inactive dialog dark mode improvements

* fix: follow styleguide with event parameter, add FilledButton size prop

* fix: change timer to be imperative

* fix: add spacing after emoji

* fix: remove unused useEffect

* fix: change margin into whitespace

* fix: add share button check back
2 years ago
Arnost Pleskot 253c5c7866
perf: memoize rendering of library (#6622)
Co-authored-by: dwelle <luzar.david@gmail.com>
2 years ago
Aakansha Doshi 82d8d02697
test: Add coverage script (#6634)
Add coverage script
2 years ago
Arnost Pleskot 1e3c94a37a
feat: recover scrolled position after Library re-opening (#6624)
Co-authored-by: dwelle <luzar.david@gmail.com>
2 years ago
Arnost Pleskot a91e401554
feat: clearing library cache (#6621)
Co-authored-by: dwelle <luzar.david@gmail.com>
2 years ago
Are 08563e7d7b
feat: update design of ImageExportDialog (#6614)
Co-authored-by: dwelle <luzar.david@gmail.com>
2 years ago
Alex Kim 6459ccda6a
feat: add flipping for multiple elements (#5578)
* feat: add flipping when resizing multiple elements

* fix: image elements not flipping its content

* test: fix accidental resizing in grouping test

* fix: angles not flipping vertically when resizing

* feat: add flipping multiple elements with a command

* revert: image elements not flipping its content

This reverts commit cb989a6c66e62a02a8c04ce41f12507806c8d0a0.

* fix: add special cases for flipping text & images

* fix: a few corner cases for flipping

* fix: remove angle flip

* fix: bound text scaling when resizing

* fix: linear elements drifting away after multiple flips

* revert: fix linear elements drifting away after multiple flips

This reverts commit bffc33dd3f.

* fix: linear elements unstable bounds

* revert: linear elements unstable bounds

This reverts commit 22ae9b02c4.

* fix: hand-drawn lines shift after flipping

* test: fix flipping tests

* test: fix the number of context menu items

* fix: incorrect scaling due to ignoring bound text when finding selection bounds

* fix: bound text coordinates not being updated

* fix: lines bound text rotation

* fix: incorrect placement of bound lines on flip

* remove redundant predicates in actionFlip

* update test

* refactor resizeElement with some renaming and comments

* fix grouped bounded text elements not being flipped correctly

* combine mutation for bounded text element

* remove incorrect return

* fix: linear elements bindings after flipping

* revert: remove incorrect return

This reverts commit e6b205ca90.

* fix: minimum size for all elements in selection

---------

Co-authored-by: Ryan Di <ryan.weihao.di@gmail.com>
2 years ago
David Luzar 75bea48b54
fix: export dialog shortcut toggles console on firefox (#6620) 2 years ago
David Luzar 13780f390a
fix: add react v17 `useTransition` polyfill (#6618) 2 years ago
Excalidraw Bot fecbde3f5c
chore: Update translations from Crowdin (#6598)
* New translations en.json (Greek)

* New translations en.json (Slovenian)

* New translations en.json (Portuguese, Brazilian)

* Auto commit: Calculate translation coverage

* New translations en.json (German)

* Auto commit: Calculate translation coverage

* New translations en.json (Korean)

* New translations en.json (Chinese Traditional)

* Auto commit: Calculate translation coverage

* New translations en.json (Norwegian Bokmal)

* Auto commit: Calculate translation coverage

* New translations en.json (Indonesian)

* New translations en.json (Indonesian)

* Auto commit: Calculate translation coverage

* New translations en.json (Indonesian)

* Auto commit: Calculate translation coverage

* New translations en.json (Indonesian)

* Auto commit: Calculate translation coverage

* New translations en.json (Chinese Simplified)

* Auto commit: Calculate translation coverage

* New translations en.json (Romanian)

* Auto commit: Calculate translation coverage

* New translations en.json (Romanian)

* Auto commit: Calculate translation coverage

* New translations en.json (Russian)

* Auto commit: Calculate translation coverage

* New translations en.json (Slovak)

* Auto commit: Calculate translation coverage

* New translations en.json (Italian)

* Auto commit: Calculate translation coverage

* New translations en.json (Italian)

* Auto commit: Calculate translation coverage

* New translations en.json (Kurdish)

* New translations en.json (Swedish)

* Auto commit: Calculate translation coverage

* New translations en.json (Portuguese)

* Auto commit: Calculate translation coverage

* New translations en.json (Portuguese)

* Auto commit: Calculate translation coverage

* New translations en.json (Khmer)

* New translations en.json (Khmer)

* Auto commit: Calculate translation coverage

* New translations en.json (Khmer)

* Auto commit: Calculate translation coverage

* New translations en.json (Khmer)

* Auto commit: Calculate translation coverage

* New translations en.json (Khmer)

* Auto commit: Calculate translation coverage

* New translations en.json (Khmer)

* Auto commit: Calculate translation coverage

* New translations en.json (Khmer)

* New translations en.json (Khmer)

* Auto commit: Calculate translation coverage

* New translations en.json (Khmer)

* Auto commit: Calculate translation coverage

* New translations en.json (Khmer)

* Auto commit: Calculate translation coverage
2 years ago
Arnost Pleskot 7340c70a06
perf: improve rendering performance for Library (#6587)
* perf: improve rendering performance for Library

* fix: return onDrag and onToggle functionality to Library Items

* perf: cache exportToSvg output

* fix: lint warning

* fix: add onClick handler into LibraryUnit

* feat: better spinner

* fix: useCallback for getInsertedElements to fix linter error

* feat: different batch size when svgs are cached

* fix: library items alignment in row

* feat: skeleton instead of spinner

* fix: remove unused variables

* feat: use css vars instead of hadcoded colors

* feat: reverting skeleton, removing spinner

* cleanup and unrelated refactor

* change ROWS_RENDERED_PER_BATCH to 6

---------

Co-authored-by: dwelle <luzar.david@gmail.com>
2 years ago
Rounik Prashar a4f05339aa
fix: Library dropdown visibility issue for mobile (#6613)
Fix: Library dropdown visibility issue for mobile

Co-authored-by: Rounik Prashar <rounik.prashar@increff.com>
2 years ago
David Luzar a8f0a14610
fix: `withInternalFallback` leaking state in multi-instance scenarios (#6602) 2 years ago
Excalidraw Bot a89952e32f
chore: Update translations from Crowdin (#6589) 2 years ago
Barnabás Molnár 5b7596582f
feat: color picker redesign (#6216)
Co-authored-by: Maielo <maielo.mv@gmail.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2 years ago