You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changes room name to avoid overcrowding (tldraw#6548)
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`
Copy file name to clipboardExpand all lines: apps/docs/content/getting-started/releases-versioning.mdx
+67-57Lines changed: 67 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,84 +15,94 @@ Unlike many JavaScript packages distributed on [NPM](https://www.npmjs.com/), th
15
15
16
16
{/* START AUTO-GENERATED CHANGELOG */}
17
17
18
-
## Current release: [v3.13.0](/releases/v3.13.0)
18
+
## Current release: [v3.15.0](/releases/v3.15.0)
19
19
20
-
The big new feature in this months release is Elbow Arrows! These connectors supplement our existing arrow shape and are well suited to more technical diagramming type use-cases. We’re also been continuing to work on accessibility in tldraw, and there are plenty of other performance improvements too.
20
+
This release adds `npm create tldraw`to bootstrap new tldraw projects. It also includes several small API additions, accessibility improvements, performance optimizations, and various bug fixes.
21
21
22
-
#### Elbow arrows
22
+
###`npm create tldraw`
23
23
24
-
The arrow shape now supports elbow arrows! Instead of a single straight line or arc, these arrows get from A to B in a series straight lines joined at right angles. Access the new arrow type by selecting the arrow tool, and choosing the new option under the "Line" style.
24
+
You can now run `npm create tldraw` in your terminal to bootstrap a new tldraw project from our starter templates.
We’re continuing to work on accessibility in this release, as we make progress towards WCAG compliance.
28
+
## Breaking changes
29
29
30
-
- You can now focus the style panel with the ⌘⏎ keyboard shortcut. ([#5827](https://github.com/tldraw/tldraw/pull/5827))
31
-
- More icons and handles in the UI now have labels. ([#6001](https://github.com/tldraw/tldraw/pull/6001))
32
-
- ⌘⇧↓ and ⌘⇧↑ moves the selection in and out of container shapes, like frames and groups. ([#5973](https://github.com/tldraw/tldraw/pull/5973))
33
-
- You can now tab into embed shapes. ([#5958](https://github.com/tldraw/tldraw/pull/5958))
34
-
- The toolbars throughout tldraw are now keyboard navigable. ([#5872](https://github.com/tldraw/tldraw/pull/5872))
35
-
- The shortcuts for rich text editing are shown in the keyboard shortcuts help menu. ([#5912](https://github.com/tldraw/tldraw/pull/5912))
30
+
There are no breaking changes in this release.
36
31
37
-
#### Breaking changes
32
+
##User-facing changes
38
33
39
-
-`ShapeUtil.canEditInReadOnly` has been renamed to `ShapeUtil.canEditInReadonly` - note the case-change on “only”. ([#6019](https://github.com/tldraw/tldraw/pull/6019))
34
+
-Improve the 'Select All' action to select within the common parent of the current selection. For example, if you select a shape within a frame, it will select all the shapes within that frame but not the frame itself. ([#6386](https://github.com/tldraw/tldraw/pull/6386))
40
35
41
-
#### Improvements
36
+
- Add a user preference option to turn off keyboard shortcuts. ([#6363](https://github.com/tldraw/tldraw/pull/6363))
42
37
43
-
- When editing the link on a shape, link text is now auto-selected for faster editing. ([#6072](https://github.com/tldraw/tldraw/pull/6072))
44
-
- Pasted text and embeds are now snapped to the grid if it’s enabled. ([#6020](https://github.com/tldraw/tldraw/pull/6020))
45
-
- Figma embed now also work with selection links. ([#6025](https://github.com/tldraw/tldraw/pull/6025))
46
-
- When editing an arrow label, we now block off part of the arrow to show where your label will appear. ([#6029](https://github.com/tldraw/tldraw/pull/6029))
47
-
- Exports of single frames now have the frame background color included in the export. ([#5993](https://github.com/tldraw/tldraw/pull/5993))
48
-
- Standardised gradient and hover effects for open submenu items are standardised across the UI. ([#5974](https://github.com/tldraw/tldraw/pull/5974))
49
-
- Frames can now be resized to fit their contents by double-clicking their edges. ([#5967](https://github.com/tldraw/tldraw/pull/5967))
38
+
## API additions
50
39
51
-
#### API additions
40
+
- Add several new `ShapeUtil` callbacks for handle interactions. ([#6489](https://github.com/tldraw/tldraw/pull/6489))
41
+
- Handle drag start and end callbacks: `onHandleDragStart` and `onHandleDragEnd`.
42
+
- Interaction cancellation callbacks: `onTranslateCancel`, `onResizeCancel`, `onRotateCancel`, and `onHandleDragCancel`.
52
43
53
-
- The text measurement API now accepts arbitrary styles to be applied to the text being measured. ([#6014](https://github.com/tldraw/tldraw/pull/6014))
54
-
- A new `Overlays` component lets you add overlays on top of the canvas that still follow the camera. ([#5952](https://github.com/tldraw/tldraw/pull/5952))
55
-
-`RichTextLabel` now accepts a `hasCustomTabBehavior` prop to disable our default tabbing logic where needed. ([#5908](https://github.com/tldraw/tldraw/pull/5908))
44
+
- Allow custom JSX for icons in UI components. ([#6486](https://github.com/tldraw/tldraw/pull/6486))
56
45
57
-
#### Other improvements
46
+
This applies to tool and action overrides as well as our button and menu item components.
58
47
59
-
- Improve performance of a programatically rotating shape when it is selected ([#6023](https://github.com/tldraw/tldraw/pull/6023))
60
-
- Dragging many shapes at once is now much faster. ([#5821](https://github.com/tldraw/tldraw/pull/5821))
61
-
- Errors in tldraw no longer prompt users to open an issue on GitHub, as they were getting confused between tldraw and products that use the SDK. ([#5947](https://github.com/tldraw/tldraw/pull/5947))
62
-
- License keys now support VS Code extensions. ([#5940](https://github.com/tldraw/tldraw/pull/5940))
48
+
- Add the `StateNode.addChild` method for dynamically adding functionality to tools. ([#6485](https://github.com/tldraw/tldraw/pull/6485))
63
49
64
-
#### Bug fixes
50
+
- The `DefaultSpinner` component is now an SVG, and accepts SVG props like `width`, `height`, and `className`. ([#6459](https://github.com/tldraw/tldraw/pull/6459))
65
51
66
-
- Flattened shapes no longer include an opaque background color. ([#6043](https://github.com/tldraw/tldraw/pull/6043))
67
-
- Screenreader announcements are now only triggered in response to user actions. ([#6041](https://github.com/tldraw/tldraw/pull/6041))
68
-
- The hand tool no longer takes pan speed into account, so it’s consistent with middle-mouse/spacebar panning. ([#6024](https://github.com/tldraw/tldraw/pull/6024))
69
-
- Empty lines and list in text now render consistently. ([#6013](https://github.com/tldraw/tldraw/pull/6013))
70
-
- The escape key now correctly exits the laser tool. ([#6015](https://github.com/tldraw/tldraw/pull/6015))
71
-
- Offscreen shapes are now selected correctly while brushing. ([#6004](https://github.com/tldraw/tldraw/pull/6004))
72
-
-`ShapeUtil.getGeometry` uses `shape.meta` as part of its cache key, instead of just `shape.props`. ([#5988](https://github.com/tldraw/tldraw/pull/5988))
73
-
- Toolbar buttons reflect their active states correctly. ([#5981](https://github.com/tldraw/tldraw/pull/5981))
74
-
- The control key gets released properly when wheeling. ([#5983](https://github.com/tldraw/tldraw/pull/5983))
75
-
- Remove jitter from arrows & lines as their size changes in some browsers. ([#5975](https://github.com/tldraw/tldraw/pull/5975))
76
-
- Long-pressing the enter key no longer enters edit mode. ([#5957](https://github.com/tldraw/tldraw/pull/5957))
77
-
- Partially bound arrows don’t flicker when you rotate them. ([#5951](https://github.com/tldraw/tldraw/pull/5951))
78
-
-`editor.getSelectedShapes` no longer causes re-evaluations unless it actually changed. ([#5928](https://github.com/tldraw/tldraw/pull/5928))
79
-
- Chains of viewport followers now work as expected. ([#5924](https://github.com/tldraw/tldraw/pull/5924))
52
+
- Add a missing export of `HeartToolbarItem`. ([#6438](https://github.com/tldraw/tldraw/pull/6438))
80
53
81
-
#### Authors
54
+
##Bug fixes
82
55
83
-
-[@budatl](https://github.com/budatl)
84
-
- alex ([@SomeHats](https://github.com/SomeHats))
85
-
- Ante Sepic ([@OriginalEXE](https://github.com/OriginalEXE))
86
-
- David Sheldrick ([@ds300](https://github.com/ds300))
87
-
- Lu Wilson ([@TodePond](https://github.com/TodePond))
- Younsang Na ([@nayounsang](https://github.com/nayounsang))
56
+
- Fix HTML entities escaping in pasted content. ([#6396](https://github.com/tldraw/tldraw/pull/6396))
57
+
58
+
- Fix measurement of fixed-size text shapes and labels. ([#6423](https://github.com/tldraw/tldraw/pull/6423))
59
+
60
+
- Fix an issue where text measurement could be wrong due to styles being leaked between measurements. ([#6419](https://github.com/tldraw/tldraw/pull/6419))
61
+
62
+
- Fix an issue that would cause arrows between circles to sometimes render incorrectly. ([#6417](https://github.com/tldraw/tldraw/pull/6417))
63
+
64
+
- Fix text outline rendering in exported SVGs. ([#6371](https://github.com/tldraw/tldraw/pull/6371))
65
+
66
+
- Fix some edge cases where errors were thrown after reaching the maximum number of shapes. ([#6359](https://github.com/tldraw/tldraw/pull/6359))
67
+
68
+
- Fix image toolbar reacting to camera movement. ([#6375](https://github.com/tldraw/tldraw/pull/6375))
69
+
70
+
- Update `fractional-indexing-jittered` to address an issue with certain null values. See [this PR](https://github.com/TMeerhof/fractional-indexing-jittered/pull/5). ([#6479](https://github.com/tldraw/tldraw/pull/6479))
- Apply `aria-hidden` to more elements, and in more intelligent ways. ([#6471](https://github.com/tldraw/tldraw/pull/6471)) ([#6437](https://github.com/tldraw/tldraw/pull/6437))
0 commit comments