Skip to content

[pull] main from tldraw:main#126

Merged
pull[bot] merged 8 commits intocode:mainfrom
tldraw:main
Aug 6, 2025
Merged

[pull] main from tldraw:main#126
pull[bot] merged 8 commits intocode:mainfrom
tldraw:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Aug 6, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.3)

Can you help keep this open source service alive? 💖 Please sponsor : )

steveruizok and others added 8 commits August 6, 2025 09:08
This pull request adds the ability to separate inner and outer margins
for shape detection. It fixes a bug where hollow shapes could not be
bound-to by arrows when overlapping solid filled shapes.


https://github.com/user-attachments/assets/3866a869-90f3-4400-b20d-02774b71cab0

### Change type

- [x] `bugfix`

### Test plan

1. Create a solid shape
2. Create a hollow shape on top
3. Bind an arrow to the hollow shape

- [x] Unit tests

### Release notes

- Fixed a bug where hollow shapes could not be bound-to by arrows when
overlapping a filled shape.

### API changes
- Non-breaking, obscure. The `Editor.getShapesAtPoint` can now accept a
number _or_ a number tuple for its `margin` option that will be used as
the inner and outer margins. This works best when `hitInside` is `true`;
if `hitInside` is false, then the larger of the two margins will be used
for both inside and outside margin.

---------

Co-authored-by: alex <alex@dytry.ch>
This PR simplifies our dotcom CTA.

### Change type

- [ ] `bugfix`
- [x] `improvement`
- [ ] `feature`
- [ ] `api`
- [ ] `other`
This PR introduces a cosmetic change in Quick Start that can otherwise
be a blocker for users.

### Problem description

If you just copy-paste the code from the existing Quick Start, you may
hit an overused room:


https://github.com/user-attachments/assets/cabd59f6-18db-41ed-8ed0-ca5a9074ef0b

Users who are not familiar with multi-player can have a hard time
figuring out the way out.

### Solution

The current change makes it more explicit that the room should have a
unique ID by making the example more explicit.

### Change type

- [ ] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [ ] `api`
- [X] `other`
This is to address these issues:
- https://linear.app/tldraw/issue/ACC-72/add-labels-to-the-inputs
-
https://linear.app/tldraw/issue/ACC-4/the-light-grey-states-in-the-panel-on-the-right-side-dont-have-enough


https://github.com/user-attachments/assets/3e4f68f0-1468-4e77-98d4-5a10c904ac4a

<img width="952" height="1016" alt="Screenshot 2025-07-11 at 12 43 39"
src="https://github.com/user-attachments/assets/e21b2ddd-513d-44db-aa4e-908a68104383"
/>
<img width="314" height="854" alt="Screenshot 2025-07-11 at 12 43 48"
src="https://github.com/user-attachments/assets/c1442ff2-6ec5-4429-b7d7-a647868719e8"
/>
<img width="424" height="396" alt="Screenshot 2025-07-11 at 13 35 45"
src="https://github.com/user-attachments/assets/8eb4e7dd-5dab-4091-92ba-05a189aace17"
/>
<img width="1090" height="236" alt="Screenshot 2025-07-11 at 13 35 59"
src="https://github.com/user-attachments/assets/b93b0a9c-9f94-4040-b9c6-ebfdf16c5282"
/>

Focus ring for selected items:
<img width="382" height="404" alt="Screenshot 2025-07-14 at 15 07 02"
src="https://github.com/user-attachments/assets/451cac56-6d4b-4438-9be0-298aa5d16675"
/>


### Change type

- [ ] `bugfix`
- [x] `improvement`
- [ ] `feature`
- [ ] `api`
- [ ] `other`

### Release notes

- a11y: add preference to show labels/tooltips

### API changes

- add `showUiLabels` as a preference
- add `TldrawUiTooltip` as a new component

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
Co-authored-by: alex <alex@dytry.ch>
Co-authored-by: Mitja Bezenšek <mitja.bezensek@gmail.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: alex <alex@tldraw.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: huppy-bot[bot] <128400622+huppy-bot[bot]@users.noreply.github.com>
Co-authored-by: David Sheldrick <d.j.sheldrick@gmail.com>
Co-authored-by: Nakul Sharma <110083584+nakul-bigpi@users.noreply.github.com>
This PR updates the i18n strings.

### Change type
- [x] `other`

Co-authored-by: huppy-bot[bot] <128400622+huppy-bot[bot]@users.noreply.github.com>
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
This pull request introduces a new example for tracking and handling
unsaved changes in `tldraw` documents. It keeps track of the set of
diffs that have accumulated since the last save point and checks whether
the diff is empty

### Change type

- [ ] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [x] `api`

### Release notes

- Add an option to `squashRecordDiffs` to allow mutating the first diff
instead of creating a new diff.

### API changes

- Add an option to `squashRecordDiffs` to allow mutating the first diff
instead of creating a new diff.

---------

Co-authored-by: David Sheldrick <d.j.sheldrick@gmail.com>
@pull pull Bot locked and limited conversation to collaborators Aug 6, 2025
@pull pull Bot added the ⤵️ pull label Aug 6, 2025
@pull pull Bot had a problem deploying to deploy-staging August 6, 2025 15:13 Error
@pull pull Bot merged commit a03de71 into code:main Aug 6, 2025
0 of 7 checks passed
@pull pull Bot had a problem deploying to deploy-production August 6, 2025 15:13 Failure
@pull pull Bot had a problem deploying to deploy-staging August 6, 2025 15:13 Error
@pull pull Bot had a problem deploying to deploy-staging August 7, 2025 00:25 Failure
@pull pull Bot temporarily deployed to e2e-dotcom August 7, 2025 02:31 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants