David Luzar
026949204d
fix: fix brave error i18n string and remove unused ( #6561 )
2023-05-06 10:36:42 +02:00
Luka Zakrajšek
1184a8c0e9
feat: Add Trans component for interpolating JSX in translations ( #6534 )
...
* feat: add Trans component
* Add comments
* tweak
* Move brave to trans component
* fix test and tweaks
* remove any
* fix
* fix
* comment
* replace render function type
* Use tags for Trans
* Fix a typo
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
* Cleanup, add comments, add support for kebab case
* tweaks
---------
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
2023-05-05 21:35:18 +05:30
David Luzar
e9cae918a7
feat: sidebar tabs support ( #6213 )
...
* feat: Sidebar tabs support [wip]
* tab trigger styling tweaks
* add `:hover` & `:active` states
* replace `@dwelle/tunnel-rat` with `tunnel-rat`
* make stuff more explicit
- remove `Sidebar.Header` fallback (host apps need to render manually), and stop tunneling it (render in place)
- make `docked` state explicit
- stop tunneling `Sidebar.TabTriggers` (render in place)
* redesign sidebar / library as per latest spec
* support no label on `Sidebar.Trigger`
* add Sidebar `props.onStateChange`
* style fixes
* make `appState.isSidebarDocked` into a soft user preference
* px -> rem & refactor
* remove `props.renderSidebar`
* update tests
* remove
* refactor
* rename constants
* tab triggers styling fixes
* factor out library-related logic from generic sidebar trigger
* change `props.onClose` to `onToggle`
* rename `props.value` -> `props.tab`
* add displayNames
* allow HTMLAttributes on applicable compos
* fix example App
* more styling tweaks and fixes
* fix not setting `dockable`
* more style fixes
* fix and align sidebar header button styling
* make DefaultSidebar dockable on if host apps supplies `onDock`
* stop `Sidebar.Trigger` hiding label on mobile
this should be only the default sidebar trigger behavior, and for that we don't need to use `device` hook as we handle in CSS
* fix `dockable` prop of defaultSidebar
* remove extra `typescript` dep
* remove `defaultTab` prop
in favor of explicit `tab` value in `<Sidebar.Trigger/>` and `toggleSidebar()`, to reduce API surface area and solve inconsistency of `appState.openSidebar.tab` not reflecting actual UI value if `defaultTab` was supported (without additional syncing logic which feels like the wrong solution).
* remove `onToggle` in favor of `onStateChange`
reducing API surface area
* fix restore
* comment no longer applies
* reuse `Button` component in sidebar buttons
* fix tests
* split Sidebar sub-components into files
* remove `props.dockable` in favor of `props.onDock` only
* split tests
* fix sidebar showing dock button if no `props.docked` supplied & add more tests
* reorder and group sidebar tests
* clarify
* rename classes & dedupe css
* refactor tests
* update changelog
* update changelog
---------
Co-authored-by: barnabasmolnar <barnabas@excalidraw.com>
2023-05-04 17:33:31 +00:00
Excalidraw Bot
2a39d0b9a7
chore: Update translations from Crowdin ( #6471 )
2023-04-27 19:27:36 +02:00
Milos Vetesnik
6b0218b012
feat: testing simple analytics and fathom analytics for better privacy of the users ( #6529 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2023-04-27 19:11:42 +02:00
Aakansha Doshi
45a57d70de
fix: don't refresh dimensions for text containers on font load ( #6523 )
2023-04-26 21:35:06 +05:30
Aakansha Doshi
da8dd389a9
fix: cleanup getMaxContainerHeight and getMaxContainerWidth ( #6519 )
...
* fix: cleanup getMaxContainerHeight and getMaxContainerWidth
* rename getMaxContainerWidth -> getBoundTextMaxMaxWidth and getMaxContainerHeight -> getBoundTextMaxHeight
* add specs
2023-04-25 18:06:23 +05:30
Aakansha Doshi
dae81c0a2c
fix: cleanup redrawTextBoundingBox ( #6518 )
...
* chore: cleanup redrawTextBoundingBox
* fix
2023-04-25 17:57:53 +05:30
suwalkanishka
1e9943323a
style: fix font family inconsistencies ( #6501 )
...
style: font fix for four components
The browser default font was showing up in various locations. Fixed them to show the desired ui font.
2023-04-25 17:20:19 +05:30
David Luzar
d35386755f
feat: retain seed
on shift-paste ( #6509 )
...
thanks for the review 👍
2023-04-24 10:26:21 +02:00
zsviczian
9d5cfbbfb7
fix: text jumps when editing on Android Chrome ( #6503 )
...
* debug logging
* debug
* debugging
* Update textWysiwyg.tsx
* Update textWysiwyg.tsx
* extended debug information
* debug
* debug
* trace
* further debug
* don't drag while editing
* removing all console.logs
* revert all changes to textWysiwyt.tsx
* updated comment
2023-04-22 14:17:13 +02:00
David Luzar
fee760d38c
feat: allow avif
, jfif
, webp
, bmp
, ico
image types ( #6500
...
* feat: allow `avif`, `jfif`, `webp`, `bmp`, `ico` image types
* dedupe for SSOT
* more SSOT
2023-04-21 22:53:49 +02:00
Aakansha Doshi
c4445c181b
docs: release @excalidraw/excalidraw@0.15.2 🎉 ( #6495 )
2023-04-20 17:34:06 +05:30
siddhant
851b9b7aec
fix: rotate the text element when binding to a rotated container ( #6477 )
...
* Updated logic to update the bound child angle from the parent
* update angle when generating text element
* add test
* remove
* fix
---------
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2023-04-20 16:34:39 +05:30
Aakansha Doshi
5ddb28d378
fix: support breaking words containing hyphen - ( #6014 )
...
* fix: support breaking words containing hyphen -
* fix
* add spec
* fix
* fix
* fix
* fix and add spec
* improve code and add more tests
2023-04-20 11:10:46 +05:30
Max Kovalenko
404a79e241
chore: typo (collab) - reconciliation.ts ( #6447 )
2023-04-19 19:18:03 +02:00
David Luzar
eea30da05a
fix: incorrect background fill button active state ( #6491 )
2023-04-19 16:23:24 +02:00
Aakansha Doshi
98a77d7426
chore: show bounding box only when flag is true ( #6490 )
2023-04-19 17:02:20 +05:30
Aakansha Doshi
ff3c2e5a16
docs: fix docs link in readme ( #6486 )
...
* docs: fix docs link in readme
* update changelog
2023-04-18 21:52:08 +05:30
Aakansha Doshi
b64beaf5ba
docs: release @excalidraw/excalidraw@0.15.1 🎉 ( #6485 )
2023-04-18 21:32:33 +05:30
Aakansha Doshi
89304c9f66
fix: add readme back to npm package which was mistakenly removed ( #6484 )
...
* fix: remove update readme script from release
* update docs
* remove
* fix
2023-04-18 21:23:47 +05:30
Aakansha Doshi
c9c79646c5
docs: release @excalidraw/excalidraw@0.15.0 🎉 ( #6481 )
2023-04-18 20:48:30 +05:30
Aakansha Doshi
979312f779
fix: center align text when wrapped in container via context menu ( #6480 )
...
* rename action to wrapTextInContainer
* fix: center align text when wrapped in container via context menu
* revert translation key
* fix tests
2023-04-18 19:44:14 +05:30
David Luzar
4d0d844e39
feat: constrain export dialog preview size ( #6475 )
2023-04-18 15:27:51 +02:00
Aakansha Doshi
801412bf6b
fix: restore original container height when unbinding text which was binded via context menu ( #6444 )
...
* fix: restore original container height when unbinding text which was binded via context menu
* remove flag
* comment
2023-04-18 18:50:25 +05:30
Aakansha Doshi
21726e22cc
fix: mark more props as optional for element ( #6448 )
...
* fix: mark more props as optional for element
* fix
2023-04-18 18:42:48 +05:30
David Luzar
c3e8ddaf58
fix: improperly cache-busting on canvas scale instead of zoom ( #6473 )
2023-04-17 11:41:27 +02:00
David Luzar
f640ddc2aa
fix: incorrectly duplicating items on paste/library insert ( #6467
...
* fix: incorrectly duplicating items on paste/library insert
* fix: deduplicate element ids on restore
* tests
2023-04-16 17:22:16 +02:00
Excalidraw Bot
e7e54814e7
chore: Update translations from Crowdin ( #6290 )
...
* New translations en.json (Occitan)
* New translations en.json (Kabyle)
* Auto commit: Calculate translation coverage
* New translations en.json (Romanian)
* New translations en.json (French)
* New translations en.json (Slovenian)
* New translations en.json (Norwegian Bokmal)
* Auto commit: Calculate translation coverage
* New translations en.json (Dutch)
* Auto commit: Calculate translation coverage
* New translations en.json (Thai)
* Auto commit: Calculate translation coverage
* New translations en.json (Thai)
* Auto commit: Calculate translation coverage
* New translations en.json (Chinese Traditional)
* New translations en.json (Thai)
* Auto commit: Calculate translation coverage
* New translations en.json (Galician)
* Auto commit: Calculate translation coverage
* New translations en.json (German)
* Auto commit: Calculate translation coverage
* New translations en.json (Marathi)
* New translations en.json (Hindi)
* Auto commit: Calculate translation coverage
* New translations en.json (Thai)
* Auto commit: Calculate translation coverage
* New translations en.json (Thai)
* Auto commit: Calculate translation coverage
* New translations en.json (Thai)
* Auto commit: Calculate translation coverage
* New translations en.json (Thai)
* Auto commit: Calculate translation coverage
* New translations en.json (Basque)
* Auto commit: Calculate translation coverage
* New translations en.json (Swedish)
* Auto commit: Calculate translation coverage
* New translations en.json (Spanish)
* Auto commit: Calculate translation coverage
* New translations en.json (Hebrew)
* Auto commit: Calculate translation coverage
* New translations en.json (Hebrew)
* Auto commit: Calculate translation coverage
* New translations en.json (Hebrew)
* New translations en.json (Chinese Simplified)
* Auto commit: Calculate translation coverage
* New translations en.json (Slovak)
* Auto commit: Calculate translation coverage
* New translations en.json (Thai)
* Auto commit: Calculate translation coverage
* New translations en.json (Thai)
* Auto commit: Calculate translation coverage
* New translations en.json (Turkish)
* Auto commit: Calculate translation coverage
* New translations en.json (Romanian)
* New translations en.json (Spanish)
* New translations en.json (Catalan)
* New translations en.json (Basque)
* New translations en.json (Finnish)
* New translations en.json (Portuguese)
* New translations en.json (Slovak)
* New translations en.json (Chinese Simplified)
* New translations en.json (Portuguese, Brazilian)
* New translations en.json (Tamil)
* New translations en.json (Marathi)
* New translations en.json (Hindi)
* New translations en.json (French)
* New translations en.json (Arabic)
* New translations en.json (Bulgarian)
* New translations en.json (Czech)
* New translations en.json (Danish)
* New translations en.json (German)
* New translations en.json (Greek)
* New translations en.json (Hebrew)
* New translations en.json (Hungarian)
* New translations en.json (Italian)
* New translations en.json (Japanese)
* New translations en.json (Korean)
* New translations en.json (Kurdish)
* New translations en.json (Lithuanian)
* New translations en.json (Dutch)
* New translations en.json (Punjabi)
* New translations en.json (Polish)
* New translations en.json (Russian)
* New translations en.json (Slovenian)
* New translations en.json (Swedish)
* New translations en.json (Turkish)
* New translations en.json (Ukrainian)
* New translations en.json (Chinese Traditional)
* New translations en.json (Vietnamese)
* New translations en.json (Galician)
* New translations en.json (Indonesian)
* New translations en.json (Persian)
* New translations en.json (Bengali)
* New translations en.json (Norwegian Nynorsk)
* New translations en.json (Kazakh)
* New translations en.json (Latvian)
* New translations en.json (Burmese)
* New translations en.json (Chinese Traditional, Hong Kong)
* New translations en.json (Sinhala)
* New translations en.json (Norwegian Bokmal)
* New translations en.json (Occitan)
* New translations en.json (Kabyle)
* New translations en.json (Thai)
* Auto commit: Calculate translation coverage
* New translations en.json (Chinese Simplified)
* New translations en.json (Greek)
* New translations en.json (Slovenian)
* New translations en.json (Swedish)
* New translations en.json (Norwegian Bokmal)
* Auto commit: Calculate translation coverage
* New translations en.json (Romanian)
* Auto commit: Calculate translation coverage
* New translations en.json (Chinese Traditional)
* Auto commit: Calculate translation coverage
* New translations en.json (Portuguese)
* Auto commit: Calculate translation coverage
* New translations en.json (Portuguese)
* New translations en.json (German)
* Auto commit: Calculate translation coverage
* New translations en.json (Galician)
* Auto commit: Calculate translation coverage
* New translations en.json (Galician)
* Auto commit: Calculate translation coverage
* New translations en.json (Hebrew)
* Auto commit: Calculate translation coverage
* New translations en.json (Hebrew)
* New translations en.json (French)
* 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 (Italian)
* New translations en.json (Chinese Simplified)
* New translations en.json (Chinese Simplified)
* New translations en.json (Kabyle)
* Auto commit: Calculate translation coverage
* New translations en.json (Kabyle)
* Auto commit: Calculate translation coverage
* New translations en.json (Marathi)
* New translations en.json (Hindi)
* Auto commit: Calculate translation coverage
* New translations en.json (Hindi)
* Auto commit: Calculate translation coverage
* New translations en.json (Slovak)
* Auto commit: Calculate translation coverage
* New translations en.json (Spanish)
* Auto commit: Calculate translation coverage
* New translations en.json (Thai)
* Auto commit: Calculate translation coverage
* New translations en.json (Thai)
* Auto commit: Calculate translation coverage
* New translations en.json (Japanese)
* Auto commit: Calculate translation coverage
* New translations en.json (Dutch)
* Auto commit: Calculate translation coverage
* New translations en.json (Dutch)
* Auto commit: Calculate translation coverage
* New translations en.json (Basque)
* Auto commit: Calculate translation coverage
* New translations en.json (Basque)
* Auto commit: Calculate translation coverage
* New translations en.json (Marathi)
* Auto commit: Calculate translation coverage
* New translations en.json (Marathi)
* Auto commit: Calculate translation coverage
* New translations en.json (Marathi)
* New translations en.json (Hindi)
* Auto commit: Calculate translation coverage
* New translations en.json (Polish)
* Auto commit: Calculate translation coverage
* New translations en.json (Polish)
* New translations en.json (Chinese Simplified)
* New translations en.json (Vietnamese)
* Auto commit: Calculate translation coverage
* New translations en.json (Vietnamese)
* Auto commit: Calculate translation coverage
* New translations en.json (Polish)
* Auto commit: Calculate translation coverage
* New translations en.json (Korean)
* Auto commit: Calculate translation coverage
* New translations en.json (Dutch)
* New translations en.json (Basque)
* New translations en.json (Marathi)
* New translations en.json (Hindi)
* New translations en.json (Polish)
* New translations en.json (Chinese Simplified)
* New translations en.json (Vietnamese)
* New translations en.json (Korean)
* New translations en.json (Romanian)
* New translations en.json (French)
* New translations en.json (Spanish)
* New translations en.json (Arabic)
* New translations en.json (Bulgarian)
* New translations en.json (Catalan)
* New translations en.json (Czech)
* New translations en.json (Danish)
* New translations en.json (German)
* New translations en.json (Greek)
* New translations en.json (Finnish)
* New translations en.json (Hebrew)
* New translations en.json (Hungarian)
* New translations en.json (Italian)
* New translations en.json (Japanese)
* New translations en.json (Kurdish)
* New translations en.json (Lithuanian)
* New translations en.json (Punjabi)
* New translations en.json (Portuguese)
* New translations en.json (Russian)
* New translations en.json (Slovak)
* New translations en.json (Slovenian)
* New translations en.json (Swedish)
* New translations en.json (Turkish)
* New translations en.json (Ukrainian)
* New translations en.json (Chinese Traditional)
* New translations en.json (Galician)
* New translations en.json (Portuguese, Brazilian)
* New translations en.json (Indonesian)
* New translations en.json (Persian)
* New translations en.json (Tamil)
* New translations en.json (Bengali)
* New translations en.json (Thai)
* New translations en.json (Norwegian Nynorsk)
* New translations en.json (Kazakh)
* New translations en.json (Latvian)
* New translations en.json (Burmese)
* New translations en.json (Chinese Traditional, Hong Kong)
* New translations en.json (Sinhala)
* New translations en.json (Norwegian Bokmal)
* New translations en.json (Occitan)
* New translations en.json (Kabyle)
* Auto commit: Calculate translation coverage
* New translations en.json (Slovenian)
* New translations en.json (Norwegian Bokmal)
* Auto commit: Calculate translation coverage
* New translations en.json (Japanese)
* Auto commit: Calculate translation coverage
* New translations en.json (German)
* Auto commit: Calculate translation coverage
* New translations en.json (Chinese Traditional)
* Auto commit: Calculate translation coverage
* New translations en.json (Marathi)
* New translations en.json (Hindi)
* Auto commit: Calculate translation coverage
* New translations en.json (Romanian)
* Auto commit: Calculate translation coverage
* New translations en.json (Italian)
* Auto commit: Calculate translation coverage
* New translations en.json (Turkish)
* Auto commit: Calculate translation coverage
2023-04-16 17:12:37 +02:00
David Luzar
e9064a4a87
fix: library ids cross-contamination on multiple insert ( #6466 )
2023-04-16 17:09:51 +02:00
David Luzar
034113772d
fix: color picker keyboard handling not working ( #6464 )
2023-04-16 15:33:30 +02:00
zsviczian
d34cd3072f
fix: abort freedraw line if second touch is detected ( #6440 )
2023-04-16 15:33:16 +02:00
David Luzar
e31230f78c
refactor: inline SingleLibraryItem
into PublishLibrary
( #6462
...
refactor: inline `SingleLibraryItem` into `PublishLibrary` to reduce api surface area
2023-04-16 11:57:13 +02:00
David Luzar
399c92d882
fix: utils leaking Scene state ( #6461
...
* fix: utils leaking Scene state
* remove debug
* doc
* add tests for group duplicating
* tweaks
2023-04-16 11:56:25 +02:00
Aurélie
b0b23353cf
fix: split "Edit selected shape" shortcut ( #6457 )
...
Co-authored-by: David Luzar <luzar.david@gmail.com>
2023-04-14 21:34:26 +00:00
Bear
6164b5273c
fix: center align text when bind to container via context menu ( #6451 )
2023-04-14 15:22:39 +02:00
Aakansha Doshi
ca3be2c678
fix: exporting labelled arrows via export utils ( #6443 )
...
* fix: exporting labelled arrows via export utils
* add comments
* lint
* update changelog
* fix lint
* initialize scene in the utils so it can be availabe in the helper functions
* fix library rendering
* add comments
2023-04-13 17:19:46 +05:30
Aakansha Doshi
13b27afe0f
fix: update coords when text unbinded from its container ( #6445 )
...
* fix: update coords when text unbinded from its container
* Add specs
2023-04-13 11:45:58 +05:30
Nishant
fc601347cf
fix: fixing popover overflow on small screen ( #6433 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2023-04-11 23:23:36 +02:00
David Luzar
e4d8ba226f
feat: zigzag fill easter egg ( #6439 )
2023-04-10 15:38:50 +02:00
Aakansha Doshi
ec215362a1
fix: introduce baseline to fix the layout shift when switching to text editor ( #6397 )
...
* fix: introduce baseline to fix the layout shift when switching to text editor
* uncomment
* change offset to 8pixels
* [debug]
* introduce DOM baseline in canvas rendering instead
* introduce baseline in element making it backward compat
* fix
* lint
* fix
* update baseline when resizing text element
* fix safari backward compat
* fix for safari
* lint
* reduce safari LS
* floor line height and height when dom height increases than canvas height
* Revert "floor line height and height when dom height increases than canvas height"
This reverts commit 8de65168238b8fb9a638e0c75f596f371983c2c7.
* cleanup
* use DOM height only for safari to fix LS
* Revert "use DOM height only for safari to fix LS"
This reverts commit d75889238da59b7954ec3a6ac2c29dc0ba420635.
* fix lint and test
* fix
* calculate line height by rounding off instead of DOM
* cleanup
---------
Co-authored-by: dwelle <luzar.david@gmail.com>
2023-04-10 18:52:46 +05:30
Aakansha Doshi
0b8fc4f4b6
fix: don't refresh dimensions for deleted text elements ( #6438 )
2023-04-10 16:31:58 +05:30
zsviczian
705ac9c1ab
fix: element vanishes when zoomed in ( #6417 )
...
Co-authored-by: David Luzar <luzar.david@gmail.com>
2023-04-07 15:30:44 +00:00
Chinmay Mhatre
68692b9d4c
feat: add container to multiple text elements ( #6428 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2023-04-07 13:50:36 +00:00
Aakansha Doshi
d61b3cf83d
fix: don't jump text to end when out of viewport in safari ( #6416 )
2023-04-05 12:17:18 +05:30
Coyote
d2b8f4d2f8
fix: getDefaultLineHeight should return default font family line height for unknown font ( #6399 )
...
* fix(getDefaultLineHeight): make getDefaultLineHeight always has a default value
* test: add getDefaultLineHeight test case when using unknown font
* test: add getDefaultLineHeight test case when using unknown font
* Revert "test: add getDefaultLineHeight test case when using unknown font"
This reverts commit d41da5493b6edab9e599a13a23c387d38345bf03.
* test: add getDefaultLineHeight test case when using unknown font
* newline
* newline
* tweaks
* trigger action
* trigger action
* fix
---------
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2023-03-30 00:46:23 +05:30
Aakansha Doshi
f8e65bb77e
fix: Revert use ideographic
textBaseline to improve layout shift when editing text" ( #6400 )
...
Revert "fix: use `ideographic` textBaseline to improve layout shift when editing text (#6384 )"
This reverts commit 9e52c30ce86d7f7e61ffdb5ecad2523e179f620e.
2023-03-29 18:53:03 +05:30
Milos Vetesnik
3030e96d62
feat: starting migration from GA to Matomo for better privacy ( #6398 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2023-03-29 11:13:06 +02:00
dongfang
44453b725d
fix: call stack size exceeded when paste large text ( #6373 ) ( #6396 )
...
* fix: call stack size exceeded when paste large text (#6373 )
* fix: add test case for paste multi-line text
* fix
* tweak
* add missing assertion
* add comments
* lint
---------
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2023-03-29 13:45:30 +05:30
Type Horror
25bb6738ea
feat: Add fitToContent and animate to scrollToContent ( #6319 )
...
Co-authored-by: Brice Leroy <brice@brigalabs.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
2023-03-25 23:26:58 +01:00