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
alex
121ec72f25
Alex/test ( #1202 )
2023-04-25 17:17:31 +01:00
David Sheldrick
4c65cb8db4
[lite] upgrade lazyrepo ( #1198 )
...
* upgrade lazyrepo
* update lockfile + lazy.config
2023-04-25 14:32:17 +01:00
alex
39aa01b974
lite: tweak lockfile name
2023-04-25 12:01:38 +01:00
alex
1c8b9c9b13
lite: common logfile name
2023-04-25 12:01:38 +01:00
alex
67e94eb641
lite: open runners
2023-04-25 12:01:38 +01:00
alex
0994827b71
poke
2023-04-25 12:01:38 +01:00
alex
4066d06f93
lite: standalone?
2023-04-25 12:01:38 +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
b306d7cb41
Revert "Use dark title bar color on prefer dark scheme ( #1180 )" ( #1194 )
...
This reverts commit ec8f6c2735
.
2023-04-20 07:04:42 -04:00
Beto Osorio
ec8f6c2735
Use dark title bar color on prefer dark scheme ( #1180 )
2023-04-20 07:02:45 -04:00
Steve Ruiz
dc02db4357
Update README.md
2023-04-10 18:23:12 +01:00
Steve Ruiz
135238b53f
Update README.md
2023-04-10 18:17:49 +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
Lu[ke] Wilson
14bc4decdf
Add link to beta repo in issue template, and fix 'feature' issue label ( #1167 )
...
* fix label for feature issue template
* add link to beta issues on issue template
* tweak wording of issue templates
2023-03-20 08:40:18 +00:00
alex
39b784aa60
alex/maintenance-mode: Add maintenance mode ( #1164 )
2023-03-14 16:08:12 +00:00
Steve Ruiz
fd9200c200
1.29
2023-03-10 11:42:43 +00:00
Steve Ruiz
8b8b823012
v1.28.2
2023-03-10 11:37: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
Steve Ruiz
38b8ce4c54
Merge branch 'main' of https://github.com/tldraw/tldraw
2023-02-06 09:48:09 +00:00
Steve Ruiz
12c0b2ac1f
Create warm-drinks-repair.md
2023-02-06 09:32:55 +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