Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 : )