Commit graph

1171 commits

Author SHA1 Message Date
Orange Mug
00d4648ef5
Use strokePathData for <ShapeFill/> path to avoid bugs in the inner path algo (#1207)
This avoids some bug with fills in the new inky path algo. This is a
temp fix as it reuses the outer path, but it's fairly broken at the
moment so probably a good hotfix.

Before (notice the background fill busting the bounds of the shape) 

<img width="575" alt="Screenshot 2023-04-27 at 16 54 53"
src="https://user-images.githubusercontent.com/235915/234921462-3f2d81a4-f209-427e-ba33-bfc6b919bba9.png">

After

<img width="575" alt="Screenshot 2023-04-27 at 16 55 24"
src="https://user-images.githubusercontent.com/235915/234921460-7f36ab3e-ec97-4c4a-8634-868bf8eec791.png">

This isn't perfect because we're filling it with this double fill shape,
which I assume has perf issues.

<img width="1058" alt="Screenshot 2023-04-27 at 17 08 28"
src="https://user-images.githubusercontent.com/235915/234921788-f400bac0-fd2c-469a-beec-3e0a0d2f309d.png">

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2023-04-29 22:58:18 +00:00
Orange Mug
77175a9dc4
Added pHYs to import/export of png images (#1200)
Added the following

 - Always export pngs with a pixel-ratio of `2`
- Added the `pHYs` png metadata chunk describing the pixel ratio so it
opens with the correct size
 - When importing PNGs read the `pHYs` chunk for the sizing info
 
All the exporting is done via just modifying the bytes from the browsers
native image handling.


https://user-images.githubusercontent.com/235915/234309015-19f39f3a-66ce-4ec2-b7d0-b34a07ed346b.mov

I've also added `ANALYZE=true` option to get the build metadata from
esbuild on boot of `yarn dev` which allow me to see the bundle size info
in https://esbuild.github.io/analyze/

![esbuild github
io_analyze_](https://user-images.githubusercontent.com/235915/234310302-c6fe8109-c82d-480a-8c65-c7638b09e71e.png)

You can see that `crc` adds about `4.4kb`

<img width="280" alt="Screenshot 2023-04-25 at 15 33 26"
src="https://user-images.githubusercontent.com/235915/234310669-99e3e787-ddca-4ad2-81cf-b4a541631d62.png">

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2023-04-29 22:10:01 +00:00
David Sheldrick
731da1bc77
derived presence state (#1204)
This PR adds

- A new `TLInstancePresence` record type, to collect info about the
presence state in a particular instance of the editor. This will
eventually be used to sync presence data instead of sending
instance-only state across the wire.
- **Record Scopes**

`RecordType` now has a `scope` property which can be one of three
things:
- `document`: the record belongs to the document and should be synced
and persisted freely. Currently: `TLDocument`, `TLPage`, `TLShape`, and
`TLAsset`
- `instance`: the record belongs to a single instance of the store and
should not be synced at all. It should not be persisted directly in most
cases, but rather compiled into a kind of 'instance configuration' to
store alongside the local document data so that when reopening the
associated document it can remember some of the previous instance state.
Currently: `TLInstance`, `TLInstancePageState`, `TLCamera`, `TLUser`,
`TLUserDocument`, `TLUserPresence`
- `presence`: the record belongs to a single instance of the store and
should not be persisted, but may be synced using the special presence
sync protocol. Currently just `TLInstancePresence`

This sets us up for the following changes, which are gonna be pretty
high-impact in terms of integrating tldraw into existing systems:

- Removing `instanceId` as a config option. Each instance gets a
randomly generated ID.
- We'd replace it with an `instanceConfig` option that has stuff like
selectedIds, camera positions, and so on. Then it's up to library users
to get and reinstate the instance config at persistence boundaries.
- Removing `userId` as config option, and removing the `TLUser` type
altogether.
- We might need to revisit when doing auth-enabled features like locking
shapes, but I suspect that will be separate.
2023-04-27 18:03:19 +00:00
Orange Mug
da613ea6ef
Fix to not ignore the userId option for <Tldraw/> component in @tldraw/tldraw (#1205)
The `userId` prop in the `<Tldraw/>` component from the `@tldraw/tldraw`
was previously ignored. This PR fixes that to make it operational again.
2023-04-27 10:03:21 +00:00
David Sheldrick
4c65cb8db4
[lite] upgrade lazyrepo (#1198)
* upgrade lazyrepo

* update lockfile + lazy.config
2023-04-25 14:32:17 +01:00
alex
29ed921c67 transfer-out: transfer out 2023-04-25 12:01:25 +01:00
alex
ec84f64e63 lite: delete all 2023-04-21 16:53:31 +01:00
Steve Ruiz
325d494a8a 1.29.2 2023-04-01 07:09:12 +01:00
Steve Ruiz
9967b281be
Update useKeyboardShortcuts.tsx (#1181) 2023-04-01 06:29:06 +01:00
alex
784b4503aa
alex/v2-file-notice: quick note when trying to open a v1 file (#1177) 2023-03-24 14:42:28 +00:00
Mark Eibes
bd124dc308
Update README.md (#1168) 2023-03-23 10:56:30 +00:00
alex
1051f4c28c
Add notice that tldraw will be down for maintenance (#1174)
* alex/offline-notice: offline notice

* alex/offline-notice: cleanup

* update copy

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2023-03-21 11:45:47 +00:00
Steve Ruiz
ef089bf0f6
Update StyleMenu.tsx (#1172) 2023-03-20 09:33:55 +00:00
Steve Ruiz
fd9200c200 1.29 2023-03-10 11:42:43 +00:00
Steve Ruiz
d0e265fc80
more user select (#1163) 2023-03-10 11:20:10 +00:00
Jang Min
257a7e750c
fix: add PreferencesMenu aria-label (#1131)
* Add aria-label

* Add DMCheckboxItemProps ariaLabel
2023-03-09 19:59:54 +00:00
Jang Min
967efd6b7f
test: aria-label check (#1133)
* Install jest-each

* Add accessibility.spec.tsx

It render App and click button to render context menu.
Then it check if aria-label exists.

* restore lock

* Delete package-lock.json

* Update accessibility.spec.tsx

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2023-03-09 19:59:31 +00:00
Jang Min
d00c06144d
Remove DropdownMenu.Root modal property (#1132) 2023-03-09 19:42:18 +00:00
Jang Min
80b4f5aedd
fix: copy and paste without selection occurs error (#1135)
* Add optional chaining

* dont allow empty clipboard data

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2023-03-09 19:41:23 +00:00
Steve Ruiz
a9f1a6ccc7
fix buttons, help button placement (#1145) 2023-02-10 13:51:30 +00:00
Karol Stawowski
b6dacdc1cd
fix: fix copy as png feature (#1143) 2023-02-10 13:42:25 +00:00
Steve Ruiz
3d1d329b6f 1.28.0 2023-02-06 14:26:40 +00:00
Jan Werder
0080a78bcd
Updated German translation (#1140) 2023-02-06 09:31:23 +00:00
Jang Min
d38f5a037b
feat: export menu accessibility (#1121)
* Move export submenu(Edit -> File)

* Add export menu to context menu with no selection

* Add export shortcuts
2023-02-02 16:14:39 +00:00
Jang Min
e02a5cb62e
Remove literals (#1114)
https://tldraw.com -> window.location.origin
2023-02-02 16:11:39 +00:00
Jang Min
34d06b17b3
Add aria-label to undo/redo buttons (#1115) 2023-02-02 16:10:42 +00:00
hiroshisuga
dd5c4ae66e
Update ja.json (#1126) 2023-02-02 16:09:13 +00:00
Mohammad Kazemi
0a6d35e8c2
Update Farsi language translation (#1128)
Added new words and translated them. Also edited and reviewed some of the old translation to make them more consistent.
2023-02-02 16:08:46 +00:00
JuanCasad0
7c688d52e0
Added Galician language + full spanish (#1122)
* Add files via upload

Added Galician translation and Spanish (completed)

* Update translations.ts

Added galician language (gl).

* Fixed identation

* Fixed identation
2023-02-02 16:07:25 +00:00
Simon Riisnæs Dagfinrud
6b7eb77846
Add/fix Norwegian translations (#1127)
* Add `nn-no` translation

* Correct `nb-no` translation

* Add Norwegian translations

* Fix typo
2023-02-02 16:06:41 +00:00
Kevin Park
e2a13d5992
Fix image export bug on multiplayer mode (#1130) 2023-02-02 16:06:09 +00:00
Steve Ruiz
55a8831a6b 1.27.0 2023-01-15 11:22:09 +00:00
KDSBrowne
6f87ff022a
add aria-labels to elements for screen readers (#1106) 2023-01-15 11:16:06 +00:00
Jang Min
60728e069a
fix(tooltip): add tooltips for undo/redo buttons (#1095)
* fix(tooltip): add lack tooltips for undo/redo buttons

* fix: change id of undo/redo buttons
2023-01-15 11:15:32 +00:00
Jang Min
33dde339aa
fix: change StyleMenu id(language-menu -> TD_StyleMenu) (#1102) 2023-01-15 11:14:58 +00:00
yashkumar barot
b5e2f00f6e
[bug] Zoom to 100% translated into Japanese should be 100%にズーム #1058 (#1105) 2023-01-15 11:14:29 +00:00
hiroshisuga
303b60c7e3
Update TldrawApp.ts (#1104) 2023-01-15 11:11:38 +00:00
Daniel Alberski
77943e6f85
fix: updated Polish translations (#1111) 2023-01-15 11:11:04 +00:00
Abedalrahman Shamia
b7d2254298
Add missing Arabic translations (#1113)
* add arabic missing translations

* fix image trans ar
2023-01-15 11:09:50 +00:00
Steve Ruiz
70ca73555b fix tests 2022-12-30 18:05:18 -06:00
Steve Ruiz
4208445a8c 1.26.4 2022-12-30 18:02:02 -06:00
Daniel Molkentin
065c3ddc4a
serve fonts locally via fontsource (#1091)
* [fix] serve fonts locally via fontsource (#1077)

* fix vscode extension build

Co-authored-by: zfgrnzfsberire <noreply@github.com>
2022-12-30 17:56:33 -06:00
Brian Hung
b74a6d71f1
create new ids for new shapes and map old ids to new ids (#1082)
* create new ids for new shapes and map old parent ids to new ids

* duplicate bindings and update shape handles

* spacing

Co-authored-by: Bruno <33330711+bybruno@users.noreply.github.com>

* Update duplicatePage.ts

* Update duplicatePage.ts

Co-authored-by: Bruno <33330711+bybruno@users.noreply.github.com>
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-12-30 17:53:32 -06:00
hiroshisuga
9eb5e56319
Small translation change (#1088) 2022-12-30 16:19:40 -06:00
Cing Sian Dal
cd11fa4892
feat: added Myanmar (Burmese) translation (#1086) 2022-12-30 16:19:19 -06:00
hiroshisuga
ce09e0464a
translation fix (ja) (#1089) 2022-12-30 16:18:50 -06:00
Ahmad Saman
011ccb3052
feat: add kurdish language (#1078)
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-12-16 18:10:39 +00:00
Kevin Park
737168a930
[Tranlation] update ko-kr translation (#1071) 2022-12-16 18:06:28 +00:00
Malte Janßen
b799b51674
Fix spelling mistake in packages/core README (#1070) 2022-12-16 18:06:02 +00:00
Steve Ruiz
24cad6959f 1.7.24 2022-12-03 14:12:31 +00:00
Steve Ruiz
cfa7f6e357
[fix] text export placement (#1066)
* Fix text export placement

* remove console.log

* Update getTextSvgElement.ts
2022-12-03 13:48:56 +00:00
Peng Xiao
8404528aa6
fix: wheel event handled twice issue (#1050) 2022-12-03 13:10:19 +00:00
Ricardo Crespo
d155ac5968
set pointer capture when the pointer is down so it can be checked on pointer move (#1054) 2022-12-03 13:09:41 +00:00
Steve Ruiz
7be4a27d59
add link to new beta (#1065) 2022-12-03 12:26:48 +00:00
Ricardo Crespo
412d4db618
avoid pointerUptime update before calculating isDoubleClick (#1055) 2022-12-03 12:03:22 +00:00
Kishore Chitrapu
73e87d8732
telugu translation files (#1064)
* telugu translation files

* changed language label to Telugu script
2022-12-03 12:02:22 +00:00
Steve Ruiz
c5ff2da775 1.25.2 2022-11-14 15:53:12 +00:00
Steve Ruiz
8feb565794
[fix] types in core (#1044)
* Fix types

* Update README.md
2022-11-14 15:48:56 +00:00
Peng Xiao
8c1195450c
fix: horizontal pan logic (#1040) 2022-11-14 15:43:42 +00:00
Steve Ruiz
0f2abaf286 1.26.1 2022-11-09 16:35:43 +00:00
Steve Ruiz
cde5f711a5
Fix editing blurs (#1037) 2022-11-09 16:32:13 +00:00
Steve Ruiz
6e275f09ef 1.26.0 2022-10-26 14:06:20 +01:00
kazu
6c7ee29625
update cusor component props (#1024)
* update cusor component props

* add metadata property

* add example

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-10-26 13:59:12 +01:00
Thai Pangsakulyanont
a85e80961d
Add support for Microsoft Surface Pen eraser (#1009) 2022-10-26 13:55:53 +01:00
Anders Bech Mellson
586c320138
Updated danish translation (#1014) 2022-10-26 13:51:15 +01:00
James Vaughan
7e2395884e
Call onPointerUp on right pointer up (#1008)
* Call onPointerUp on right pointer up

* Set pointer capture on right point events on the canvas
2022-10-26 13:50:58 +01:00
Lucas
6bbff94464
Updated pt-br translation (#1023)
* Update pt-br translation

* Update packages/tldraw/src/translations/pt-br.json

Co-authored-by: Bruno <33330711+bybruno@users.noreply.github.com>

* Update packages/tldraw/src/translations/pt-br.json

Co-authored-by: Bruno <33330711+bybruno@users.noreply.github.com>

* Update packages/tldraw/src/translations/pt-br.json

Co-authored-by: Bruno <33330711+bybruno@users.noreply.github.com>

* Update packages/tldraw/src/translations/pt-br.json

Co-authored-by: Bruno <33330711+bybruno@users.noreply.github.com>

* Update packages/tldraw/src/translations/pt-br.json

Co-authored-by: Bruno <33330711+bybruno@users.noreply.github.com>

* Update packages/tldraw/src/translations/pt-br.json

Co-authored-by: Bruno <33330711+bybruno@users.noreply.github.com>

* Update packages/tldraw/src/translations/pt-br.json

Co-authored-by: Bruno <33330711+bybruno@users.noreply.github.com>

* Update packages/tldraw/src/translations/pt-br.json

Co-authored-by: Bruno <33330711+bybruno@users.noreply.github.com>

* Update packages/tldraw/src/translations/pt-br.json

Co-authored-by: Bruno <33330711+bybruno@users.noreply.github.com>

* Update packages/tldraw/src/translations/pt-br.json

Co-authored-by: Bruno <33330711+bybruno@users.noreply.github.com>

* Update packages/tldraw/src/translations/pt-br.json

Co-authored-by: Bruno <33330711+bybruno@users.noreply.github.com>

* fix: typos, articles and prepositions

Co-authored-by: Bruno <33330711+bybruno@users.noreply.github.com>
2022-10-26 13:50:05 +01:00
Steve Ruiz
0eebdddb5b 1.24.0 2022-10-04 13:08:31 +01:00
James Vaughan
84d78e4d56
Add documentation for the components prop (#1004)
* Add documentation for the components prop

* Add documentation for `hideCursors`
2022-10-04 12:56:54 +01:00
James Vaughan
c5bee7b1be
Call onRightPointCanvas in the canvas onPointerDown handler (#1001) 2022-10-03 11:56:13 +01:00
watchakorn-18k
a7618ff854
Add Thai language (#1002) 2022-10-03 11:55:37 +01:00
Steve Ruiz
e722fcdb4d
Update migrate.ts (#1000) 2022-09-30 15:28:55 +01:00
James Vaughan
d721ae6a2f
Add support for custom cursor components (#994)
* Add support for custom cursor components

* Add tests for the custom cursor props

* Make the main tldraw app take the components prop

* feat: add the ability to hide cursors

* Update cursor props

* Update imports

Co-authored-by: Judicael <46365844+judicaelandria@users.noreply.github.com>
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-09-24 20:24:11 +01:00
Noah Shipley
b7c968e2aa
Feature/nospread use shape tree (#991)
* Improve useShapeTree performance by removing unneeded spread operation

* Update useShapeTree.tsx

Co-authored-by: Noah Shipley <nshipley@centricsoftware.com>
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-09-24 20:04:03 +01:00
Steve Ruiz
6077ebdd90 Update TranslateSession.ts 2022-09-24 18:28:43 +01:00
Judicael
a128b7464a
fix: arrow binding id (#993)
* fix: arrow binding id

* add test for bindingId

* Fix arrows

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-09-24 18:27:15 +01:00
Steve Ruiz
31f0f02adf
Update utils.ts (#989) 2022-09-19 16:54:53 +01:00
Alex Kim
0e8e000f79
fix scrolling menus (#977)
* attempt to fix scrolling menus

* add container to keyboard shortuts

Co-authored-by: Judicael <46365844+judicaelandria@users.noreply.github.com>
2022-09-19 09:27:18 +01:00
Alex Kim
8f2dba8311
remove white space in tldr files for prod (#985) 2022-09-19 09:25:35 +01:00
Judicael
4ea39a0263
fix: flipping and resizing arrows (#979)
* fix: flipping horizontal for arrows

* fix: horizontal flip

* fix return

* add test for flipping arrow

* visualize arc points

* adding test for vertically flipping

* remove arc points

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-09-13 12:38:42 +01:00
Steve Ruiz
8e55e263bf 1.24.5 2022-09-09 09:54:48 +01:00
Steve Ruiz
254dfdfd77
Fix buttons (again) (#976) 2022-09-09 09:42:46 +01:00
Steve Ruiz
5e24e5a4cb 1.24.4 2022-09-08 13:36:08 +01:00
Steve Ruiz
3ffb9fcfd3 Update KeyboardShortcutDialog.tsx 2022-09-08 13:33:47 +01:00
Steve Ruiz
5fea5b4c69
fix (#968) 2022-09-08 13:33:04 +01:00
Steve Ruiz
0549660244 1.24.3 2022-09-08 11:33:57 +01:00
Steve Ruiz
00e17b65f3 hot fix 2022-09-08 11:13:29 +01:00
Steve Ruiz
b56a3a6982 1.24.1 2022-09-08 10:58:42 +01:00
Steve Ruiz
7774d00e74
[fix] Buttons (#964)
* fix buttons

* update dependencies
2022-09-08 10:45:08 +01:00
Steve Ruiz
760f6494e3 1.24.0 2022-09-08 09:48:50 +01:00
Steve Ruiz
d0cd924ca7
[chore] remove mobx (#961)
* remove mobx as dependency

* fix bugs
2022-09-08 09:38:28 +01:00
Steve Ruiz
c3ff5a51bf Update useCursor.ts 2022-09-07 16:56:29 +01:00
Steve Ruiz
34ce1ed68c 1.22.0 2022-09-07 15:25:47 +01:00
Judicael
ef613af788
fix: include assets when importing document (package tldraw) (#950)
* fix: include asset when importing document

* defensive tweak

* fixey back

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-09-07 15:08:32 +01:00
Judicael
e1689d678e
feat: change cursor when panning (#939)
* feat: change icon when panning

* add support for panning with the middle mouse

* Remove state at top tldraw

* logic tweaks

* accept middle clicks on objects

* Update useCursor.ts

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-09-07 14:58:32 +01:00
Anders Rex
bb9e7ee47c
Use id as assetId (#949) 2022-09-07 14:09:18 +01:00
Alex Kim
55ea729e3e
fix and complete russian traslation (#948) 2022-09-07 14:06:04 +01:00
Steve Ruiz
ca91e56b29
[improvement] faster svg paths (#959)
* improve svg paths

* split methods add tldraw 1.2.0
2022-09-07 14:05:30 +01:00
Judicael
3957282515
fix: fix text align in a shape on export (#952)
* fix: fix text align in a shape on export

* remove unused import

* fix text alignment
2022-09-07 13:47:34 +01:00
Alex Kim
b327f62bbe
prevent pasting while panning with the middle mouse button on linux (#953) 2022-09-07 13:07:51 +01:00
turkerdev
590aef15ec
Fix reversed zoom in and zoom out (#956)
Fixes #954
2022-09-07 13:07:07 +01:00
Judicael
1130525fdf
fix: draw and eraser direction when holding shift (#958) 2022-09-07 13:06:33 +01:00
Steve Ruiz
9dab372b81 1.22.1 2022-09-01 17:24:33 +01:00
Steve Ruiz
3cfae6278c
Remove share menu (#946)
* Remove share menu

* Delete ShareMenu.tsx

* Remove alert, etc
2022-09-01 16:19:22 +01:00
David Sheldrick
8351936321
Merge pull request #944 from judicaelandria/fix/url
fix: use location origin
2022-09-01 11:45:42 +01:00
David Sheldrick
759407e40c
Merge pull request #940 from judicaelandria/feat/save-project-as-support
feat: save project as (support for firefox and safari)
2022-09-01 11:23:43 +01:00
Judicael
f55a73f827 fix: use location origin 2022-09-01 12:45:17 +03:00
Steve Ruiz
f98310e5bf 1.22.0 2022-09-01 10:13:32 +01:00
Judicael
d816c4567f
Merge branch 'main' into feat/save-project-as-support 2022-09-01 11:18:20 +03:00
David Sheldrick
1be09d2204
Merge pull request #917 from judicaelandria/feat/share-via-link
feat: share via URL
2022-09-01 09:16:54 +01:00
Judicael
f03a79c5a9 add default value to file name, extension file 2022-08-30 17:06:29 +03:00
Judicael
e29e2e5924 generate new snapshot 2022-08-30 16:22:04 +03:00
Judicael
4ec151ba4f change function name, and useffect dep 2022-08-30 16:18:43 +03:00
Judicael
6079b3cb14 wait for the app to be ready and load docs 2022-08-30 13:35:10 +03:00
Judicael
0f79d4ea68 remove comment 2022-08-29 19:50:44 +03:00
Judicael
7efba8ea68 feat: add rename file dialog 2022-08-29 19:48:37 +03:00
Judicael
bd2fbe08c1 add default value for filename 2022-08-29 18:10:37 +03:00
Judicael
facd5fe4c7 feat: save project as (support for firefox and safari) 2022-08-29 16:32:19 +03:00
Steve Ruiz
a22124b3a7 1.21.1 2022-08-28 08:19:11 +01:00
Steve Ruiz
11c3d1ba27
[fix] text to svg (#936)
* rewrite export text logic

* Update tests

* Update getTextSvgElement.ts

* Update getTextSvgElement.ts

* improve line breaking

* labels + arrows

* small offset for padding

* Fix string bug
2022-08-28 07:07:07 +01:00
Judicael
e984acbd30 update alert dialog text 2022-08-25 18:22:04 +03:00
Judicael
c8a1dd41b7 use intl for description 2022-08-25 15:50:41 +03:00
Judicael
c8b839b43e add alert dialog for alert in share button 2022-08-25 15:49:55 +03:00
Judicael
e1861122f6
Merge branch 'main' into feat/share-via-link 2022-08-25 15:48:30 +03:00
Judicael
4285965fab
feat: use system theme by default (#932)
* feat: use system theme by default

* Move logic to default prop

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-08-25 09:32:43 +01:00
moonrailgun
9fbf317046
Update translation label for chinese (#926) 2022-08-25 09:19:27 +01:00
Wes Lord
2ebeb01b8a
[chore] Assorted small improvements to docs (#928)
* Remove leftover references to removed Electron app

(Experimental Electron app was purged in #893)

* Correct thanking organization in CONTRIBUTING.md

* Remove reference to pressure (ease) in Vec.pointsBetween description

Used to have an "ease" param, removed in #163

* Make links to core examples from core/README.md more explicit
2022-08-25 09:18:53 +01:00
Wes Lord
2c8e202c1f
Change value of FontStyle.Serif from "erif" to "serif" (#929) 2022-08-25 09:18:10 +01:00
Marcus Stenbeck
cc3f06771f
fix: change Swedish translation (#933) 2022-08-25 09:17:36 +01:00
Hugo
4d51e7b23e
Create European Portuguese translation (#934) 2022-08-25 09:17:16 +01:00
David Sheldrick
aabeb17ea0
Merge pull request #922 from judicaelandria/fix/flip-group
Fix/flip group
2022-08-23 14:59:35 +01:00
Judicael
a5e2597681 feat: flip group shape 2022-08-23 16:27:19 +03:00
Judicael
0d923b4700 fix: undo, redo, add shape to tree 2022-08-23 14:32:59 +03:00
Judicael
49fc0a261e
fix: shape parent id on duplicate page (#920) 2022-08-21 09:49:45 +01:00
Rozstone
ae4a1b6fbe
dialog i18 support (#915) 2022-08-21 07:40:17 +01:00
Judicael
18e47ad56b move grouped shape when flipping 2022-08-19 21:29:53 +03:00
Judicael
ac9802570c fix: move group when flipping 2022-08-19 21:15:25 +03:00
Judicael
d0bcbbae69 use loadDocument for project link 2022-08-18 19:20:45 +03:00
Judicael
caba25e7f5 remove unused code 2022-08-18 16:17:18 +03:00
Judicael
26865a0a57 refix the load document from URL 2022-08-18 15:48:05 +03:00
Judicael
d6140aad8a fix load document 2022-08-18 15:22:18 +03:00
Judicael
7db8d0e825 fix message id 2022-08-18 08:40:59 +03:00
Judicael
5eb3dfc204 share project and current page 2022-08-18 08:11:26 +03:00
Judicael
f6073f3021 feat: share via link 2022-08-17 22:01:32 +03:00
Rozstone
56747e67a5
Pagename i18 support (#907)
* add i18 support for page

* add more cn translations
2022-08-15 22:52:33 +01:00
Judicael
97b0b52a6e
feat: replace window confirm with a dialog (#898)
* feat: replace window confirm with react dialog

* add dialog provider

* export func

* remove unused code

* changes

* Create file_open.tldr

* Update TldrawApp.ts

* clean, and add description

* add a custom container for alert dialog

* Fix fonts

* Fix logic for open project

* Style panel

* Improve styling

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-08-15 22:45:48 +01:00
Judicael
6dccf26c43
exit dialog when pressing enter (#906) 2022-08-15 22:12:37 +01:00
Zachary Ho
1ea10ca865
Fix tooltips for buttons under ActionButton being partially covered by superseding buttons (#911)
* made Tooltip wrap ToolButton instead of the other way around for items in ActionButton

* removes unnecessary icon variant

* Add tooltips to align/distribute

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-08-15 22:11:50 +01:00
Judicael
b54a217f13
fix: text align in a shape on export (#914)
* fix: text align in a shape on export

* force align type to Start for labels

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-08-15 21:45:08 +01:00
Marcus Stenbeck
394dd87cd9
fix: more fitting translations (#900) 2022-08-11 08:58:49 +01:00