@tldraw/editor 3.14.0-canary.d1b8a584b27c → 3.14.0-canary.d1bdfe16b3f2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist-cjs/index.d.ts +96 -13
  2. package/dist-cjs/index.js +4 -1
  3. package/dist-cjs/index.js.map +2 -2
  4. package/dist-cjs/lib/editor/Editor.js +57 -24
  5. package/dist-cjs/lib/editor/Editor.js.map +2 -2
  6. package/dist-cjs/lib/editor/managers/HistoryManager/HistoryManager.js +3 -1
  7. package/dist-cjs/lib/editor/managers/HistoryManager/HistoryManager.js.map +2 -2
  8. package/dist-cjs/lib/editor/shapes/ShapeUtil.js +0 -10
  9. package/dist-cjs/lib/editor/shapes/ShapeUtil.js.map +2 -2
  10. package/dist-cjs/lib/editor/tools/BaseBoxShapeTool/children/Pointing.js +13 -6
  11. package/dist-cjs/lib/editor/tools/BaseBoxShapeTool/children/Pointing.js.map +3 -3
  12. package/dist-cjs/lib/editor/types/emit-types.js.map +1 -1
  13. package/dist-cjs/lib/primitives/geometry/Geometry2d.js +6 -2
  14. package/dist-cjs/lib/primitives/geometry/Geometry2d.js.map +2 -2
  15. package/dist-cjs/lib/primitives/geometry/Group2d.js +11 -6
  16. package/dist-cjs/lib/primitives/geometry/Group2d.js.map +2 -2
  17. package/dist-cjs/lib/utils/dom.js +1 -1
  18. package/dist-cjs/lib/utils/dom.js.map +2 -2
  19. package/dist-cjs/lib/utils/reparenting.js +232 -0
  20. package/dist-cjs/lib/utils/reparenting.js.map +7 -0
  21. package/dist-cjs/version.js +4 -4
  22. package/dist-cjs/version.js.map +1 -1
  23. package/dist-esm/index.d.mts +96 -13
  24. package/dist-esm/index.mjs +4 -1
  25. package/dist-esm/index.mjs.map +2 -2
  26. package/dist-esm/lib/editor/Editor.mjs +57 -24
  27. package/dist-esm/lib/editor/Editor.mjs.map +2 -2
  28. package/dist-esm/lib/editor/managers/HistoryManager/HistoryManager.mjs +3 -1
  29. package/dist-esm/lib/editor/managers/HistoryManager/HistoryManager.mjs.map +2 -2
  30. package/dist-esm/lib/editor/shapes/ShapeUtil.mjs +0 -10
  31. package/dist-esm/lib/editor/shapes/ShapeUtil.mjs.map +2 -2
  32. package/dist-esm/lib/editor/tools/BaseBoxShapeTool/children/Pointing.mjs +13 -6
  33. package/dist-esm/lib/editor/tools/BaseBoxShapeTool/children/Pointing.mjs.map +3 -3
  34. package/dist-esm/lib/primitives/geometry/Geometry2d.mjs +6 -2
  35. package/dist-esm/lib/primitives/geometry/Geometry2d.mjs.map +2 -2
  36. package/dist-esm/lib/primitives/geometry/Group2d.mjs +11 -6
  37. package/dist-esm/lib/primitives/geometry/Group2d.mjs.map +2 -2
  38. package/dist-esm/lib/utils/dom.mjs +1 -1
  39. package/dist-esm/lib/utils/dom.mjs.map +2 -2
  40. package/dist-esm/lib/utils/reparenting.mjs +216 -0
  41. package/dist-esm/lib/utils/reparenting.mjs.map +7 -0
  42. package/dist-esm/version.mjs +4 -4
  43. package/dist-esm/version.mjs.map +1 -1
  44. package/editor.css +17 -11
  45. package/package.json +7 -7
  46. package/src/index.ts +5 -0
  47. package/src/lib/editor/Editor.ts +75 -35
  48. package/src/lib/editor/managers/HistoryManager/HistoryManager.ts +3 -1
  49. package/src/lib/editor/shapes/ShapeUtil.ts +46 -15
  50. package/src/lib/editor/tools/BaseBoxShapeTool/children/Pointing.ts +25 -17
  51. package/src/lib/editor/types/emit-types.ts +4 -0
  52. package/src/lib/primitives/geometry/Geometry2d.ts +7 -2
  53. package/src/lib/primitives/geometry/Group2d.ts +11 -5
  54. package/src/lib/utils/dom.ts +1 -1
  55. package/src/lib/utils/reparenting.ts +383 -0
  56. package/src/version.ts +4 -4
  57. package/CHANGELOG.md +0 -4327
package/CHANGELOG.md DELETED
@@ -1,4327 +0,0 @@
1
- # v3.13.0 (Thu May 22 2025)
2
-
3
- ### Release Notes
4
-
5
- #### scale scrubbing ([#6057](https://github.com/tldraw/tldraw/pull/6057))
6
-
7
- - Fixed a bug with…
8
-
9
- #### a11y: address icons and handles ([#6001](https://github.com/tldraw/tldraw/pull/6001))
10
-
11
- - a11y: add labels to icons and handles
12
-
13
- #### a11y: be able to navigate in/out of container shapes ([#5973](https://github.com/tldraw/tldraw/pull/5973))
14
-
15
- - a11y: Adds Cmd+Shift+Up/Down for container navigation.
16
-
17
- #### refactor: rename canEditOnly to canEditonly ([#6019](https://github.com/tldraw/tldraw/pull/6019))
18
-
19
- close #5899
20
- - Rename `CanEditOnly` to `CanEditonly` to standardize.
21
- - method in `packages/editor/src/lib/editor/shapes/ShapeUtil.ts`
22
- - method in `packages/tldraw/src/lib/shapes/embed/EmbedShapeUtil.tsx`
23
- - used in `packages/tldraw/src/lib/tools/SelectTool/childStates/EditingShape.ts`
24
- - used in `packages/tldraw/src/lib/tools/SelectTool/childStates/Idle.ts`
25
- - used in `packages/tldraw/src/lib/tools/SelectTool/childStates/PointingShape.ts`
26
-
27
- #### Redesign account / help menu ([#6008](https://github.com/tldraw/tldraw/pull/6008))
28
-
29
- - Design improvements on the app sidebar
30
-
31
- #### Remove the selection background ([#6042](https://github.com/tldraw/tldraw/pull/6042))
32
-
33
- - Removes default selection background component
34
-
35
- #### Fix disposing order ([#6030](https://github.com/tldraw/tldraw/pull/6030))
36
-
37
- - Fix an issue that could occur when disposable logic that relied on the store being available was run after the store has already been disposed.
38
-
39
- #### arrows: create min-width for label indicator ([#6029](https://github.com/tldraw/tldraw/pull/6029))
40
-
41
- - arrows: create min-width for label indicator
42
-
43
- #### Fix inconsistent panning. ([#6024](https://github.com/tldraw/tldraw/pull/6024))
44
-
45
- - Don't take pan speed into account for hand tool panning so that it's consistent with middle mouse button / spacebar panning.
46
-
47
- #### Elbow arrows ([#5572](https://github.com/tldraw/tldraw/pull/5572))
48
-
49
- - 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.
50
-
51
- #### rich text: fix up styling of empty lines and lists ([#6013](https://github.com/tldraw/tldraw/pull/6013))
52
-
53
- - rich text: fix styling of empty lines in some cases and lists in some cases
54
-
55
- #### text: be able to add other styling to measure by if applicable ([#6014](https://github.com/tldraw/tldraw/pull/6014))
56
-
57
- - text: be able to add other styling to measure by if applicable
58
-
59
- #### Better computed cache memoization ([#5988](https://github.com/tldraw/tldraw/pull/5988))
60
-
61
- - Allow changes to shape.meta to bust the shape geometry cache.
62
-
63
- #### Indicators perf ([#5821](https://github.com/tldraw/tldraw/pull/5821))
64
-
65
- - Improved performance when dragging many shapes at once
66
-
67
- #### Export custom bg color for single frame exports ([#5993](https://github.com/tldraw/tldraw/pull/5993))
68
-
69
- - When exporting an individual frame as an image, if the frame has a custom color set, use that color for the background.
70
-
71
- #### Fix control button wheel bug ([#5983](https://github.com/tldraw/tldraw/pull/5983))
72
-
73
- - Fixed a bug causing the control key to be seen as pressed even after releasing when wheeling
74
-
75
- #### Restore DPR constrained width/height on shapes. ([#5975](https://github.com/tldraw/tldraw/pull/5975))
76
-
77
- - Prevent arrows and lines from jittering in some browsers as their width/height changes
78
-
79
- #### ENG 3023 Add double-click to fit frame to content on edges and corners ([#5967](https://github.com/tldraw/tldraw/pull/5967))
80
-
81
- - Frames can now be resized to fit their contents by double-clicking their edges.
82
-
83
- #### Add overlays component ([#5952](https://github.com/tldraw/tldraw/pull/5952))
84
-
85
- - A new `Overlays` component lets you add overlays on top of the canvas that still follow the camera.
86
-
87
- #### Fix flickering when rotating arrow ([#5951](https://github.com/tldraw/tldraw/pull/5951))
88
-
89
- - Prevent bound arrows from flickering when you rotate them
90
-
91
- #### a11y: better embed interaction ([#5958](https://github.com/tldraw/tldraw/pull/5958))
92
-
93
- - a11y: make sure we can tab into embeds.
94
-
95
- #### a11y: make toolbars more compliant with keyboard navigation ([#5872](https://github.com/tldraw/tldraw/pull/5872))
96
-
97
- - a11y: make toolbars more compliant with keyboard navigation
98
-
99
- #### INT-1266 Remove GitHub CTA from SDK error dialogs ([#5947](https://github.com/tldraw/tldraw/pull/5947))
100
-
101
- - Removed GitHub and Discord support prompts from SDK error dialogs
102
-
103
- #### license: allow ability to do VS code extensions ([#5940](https://github.com/tldraw/tldraw/pull/5940))
104
-
105
- - License: add ability to use VS code with our licensing scheme.
106
-
107
- #### a11y: fix up select dropdown in share; also error dialog ([#5941](https://github.com/tldraw/tldraw/pull/5941))
108
-
109
- - a11y: fix some more components: Select and error dialog
110
-
111
- #### Fix getSelectedShapes caching ([#5928](https://github.com/tldraw/tldraw/pull/5928))
112
-
113
- - Small perf fix to make sure `editor.getSelectedShapes` doesn't cause signals to fire too often.
114
-
115
- #### Fix user following chains + add loop support ([#5924](https://github.com/tldraw/tldraw/pull/5924))
116
-
117
- - Fixed viewport following for situations when there is a chain of at least three users following one another sequentially.
118
-
119
- ---
120
-
121
- #### 🐛 Bug Fix
122
-
123
- - Revert "scale scrubbing" [#6108](https://github.com/tldraw/tldraw/pull/6108) ([@SomeHats](https://github.com/SomeHats))
124
- - scale scrubbing [#6057](https://github.com/tldraw/tldraw/pull/6057) ([@steveruizok](https://github.com/steveruizok))
125
- - Fix user following chains + add loop support [#5924](https://github.com/tldraw/tldraw/pull/5924) ([@ds300](https://github.com/ds300))
126
-
127
- #### 🐛 Bug Fixes
128
-
129
- - Fix disposing order [#6030](https://github.com/tldraw/tldraw/pull/6030) ([@MitjaBezensek](https://github.com/MitjaBezensek))
130
- - always call on edit end [#6032](https://github.com/tldraw/tldraw/pull/6032) ([@SomeHats](https://github.com/SomeHats))
131
- - Elbow arrow fixes [#6028](https://github.com/tldraw/tldraw/pull/6028) ([@SomeHats](https://github.com/SomeHats) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
132
- - Fix inconsistent panning. [#6024](https://github.com/tldraw/tldraw/pull/6024) ([@MitjaBezensek](https://github.com/MitjaBezensek))
133
- - rich text: fix up styling of empty lines and lists [#6013](https://github.com/tldraw/tldraw/pull/6013) ([@mimecuvalo](https://github.com/mimecuvalo))
134
- - Better computed cache memoization [#5988](https://github.com/tldraw/tldraw/pull/5988) ([@ds300](https://github.com/ds300))
135
- - Export custom bg color for single frame exports [#5993](https://github.com/tldraw/tldraw/pull/5993) ([@ds300](https://github.com/ds300))
136
- - Fix control button wheel bug [#5983](https://github.com/tldraw/tldraw/pull/5983) ([@steveruizok](https://github.com/steveruizok))
137
- - Restore DPR constrained width/height on shapes. [#5975](https://github.com/tldraw/tldraw/pull/5975) ([@SomeHats](https://github.com/SomeHats))
138
- - Fix flickering when rotating arrow [#5951](https://github.com/tldraw/tldraw/pull/5951) ([@SomeHats](https://github.com/SomeHats))
139
- - Fix getSelectedShapes caching [#5928](https://github.com/tldraw/tldraw/pull/5928) ([@ds300](https://github.com/ds300))
140
- - Fix group bounds containing text shapes (#5909) [#5910](https://github.com/tldraw/tldraw/pull/5910) ([@SomeHats](https://github.com/SomeHats))
141
-
142
- #### 💄 Product Improvements
143
-
144
- - a11y: address icons and handles [#6001](https://github.com/tldraw/tldraw/pull/6001) ([@mimecuvalo](https://github.com/mimecuvalo))
145
- - a11y: be able to navigate in/out of container shapes [#5973](https://github.com/tldraw/tldraw/pull/5973) ([@mimecuvalo](https://github.com/mimecuvalo))
146
- - Simplify the cursor logic [#6053](https://github.com/tldraw/tldraw/pull/6053) ([@MitjaBezensek](https://github.com/MitjaBezensek))
147
- - refactor: rename canEditOnly to canEditonly [#6019](https://github.com/tldraw/tldraw/pull/6019) ([@nayounsang](https://github.com/nayounsang))
148
- - Redesign account / help menu [#6008](https://github.com/tldraw/tldraw/pull/6008) ([@steveruizok](https://github.com/steveruizok))
149
- - Remove the selection background [#6042](https://github.com/tldraw/tldraw/pull/6042) ([@steveruizok](https://github.com/steveruizok))
150
- - arrows: create min-width for label indicator [#6029](https://github.com/tldraw/tldraw/pull/6029) ([@mimecuvalo](https://github.com/mimecuvalo) [@SomeHats](https://github.com/SomeHats))
151
- - text: be able to add other styling to measure by if applicable [#6014](https://github.com/tldraw/tldraw/pull/6014) ([@mimecuvalo](https://github.com/mimecuvalo))
152
- - Indicators perf [#5821](https://github.com/tldraw/tldraw/pull/5821) ([@steveruizok](https://github.com/steveruizok))
153
- - a11y: better embed interaction [#5958](https://github.com/tldraw/tldraw/pull/5958) ([@mimecuvalo](https://github.com/mimecuvalo))
154
- - a11y: make toolbars more compliant with keyboard navigation [#5872](https://github.com/tldraw/tldraw/pull/5872) ([@mimecuvalo](https://github.com/mimecuvalo))
155
- - INT-1266 Remove GitHub CTA from SDK error dialogs [#5947](https://github.com/tldraw/tldraw/pull/5947) ([@budatl](https://github.com/budatl))
156
- - a11y: fix up select dropdown in share; also error dialog [#5941](https://github.com/tldraw/tldraw/pull/5941) ([@mimecuvalo](https://github.com/mimecuvalo))
157
-
158
- #### 🎉 New Features
159
-
160
- - Elbow arrows [#5572](https://github.com/tldraw/tldraw/pull/5572) ([@SomeHats](https://github.com/SomeHats) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
161
- - ENG 3023 Add double-click to fit frame to content on edges and corners [#5967](https://github.com/tldraw/tldraw/pull/5967) ([@budatl](https://github.com/budatl) [@mimecuvalo](https://github.com/mimecuvalo))
162
-
163
- #### 🛠️ API Changes
164
-
165
- - Add overlays component [#5952](https://github.com/tldraw/tldraw/pull/5952) ([@SomeHats](https://github.com/SomeHats))
166
- - license: allow ability to do VS code extensions [#5940](https://github.com/tldraw/tldraw/pull/5940) ([@mimecuvalo](https://github.com/mimecuvalo))
167
-
168
- #### Authors: 8
169
-
170
- - [@budatl](https://github.com/budatl)
171
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
172
- - alex ([@SomeHats](https://github.com/SomeHats))
173
- - David Sheldrick ([@ds300](https://github.com/ds300))
174
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
175
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
176
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
177
- - Younsang Na ([@nayounsang](https://github.com/nayounsang))
178
-
179
- ---
180
-
181
- # v3.12.0 (Tue Apr 15 2025)
182
-
183
- ### Release Notes
184
-
185
- #### events: explore using getCoalescedEvents, take 2 ([#5898](https://github.com/tldraw/tldraw/pull/5898))
186
-
187
- - Improve draw fluidity on slower CPUs by using getCoalescedEvents.
188
-
189
- #### Revert "events: explore using getCoalescedEvents (#5554)" ([#5895](https://github.com/tldraw/tldraw/pull/5895))
190
-
191
- - Revert coalesced events for now until we investigate further.
192
-
193
- #### events: fix wrong contentEditable check ([#5888](https://github.com/tldraw/tldraw/pull/5888))
194
-
195
- - Fix regression of iPad Pencil drawing in certain cases.
196
-
197
- #### a11y: add keyboard shortcut items; fix up focus ring in dotcom menus ([#5852](https://github.com/tldraw/tldraw/pull/5852))
198
-
199
- - Add accessibility section to keyboard shortcuts dialog.
200
-
201
- #### a11y: fix up watermark regression ([#5848](https://github.com/tldraw/tldraw/pull/5848))
202
-
203
- - Fix mobile watermark.
204
-
205
- #### a11y: add axe to be able to do audits ([#5840](https://github.com/tldraw/tldraw/pull/5840))
206
-
207
- - a11y: add axe to be able to do audits
208
-
209
- #### a11y: announce shapes as they're visited ([#5773](https://github.com/tldraw/tldraw/pull/5773))
210
-
211
- - a11y: announce shapes as they're visited
212
-
213
- #### a11y: navigable shapes ([#5761](https://github.com/tldraw/tldraw/pull/5761))
214
-
215
- - a11y: navigable shapes using Tab and Cmd/Ctrl+Arrow
216
-
217
- #### Geometry2d Improvements ([#5754](https://github.com/tldraw/tldraw/pull/5754))
218
-
219
- - It's now easier to work with `Geometry2d` objects, with methods for intersections, transforming geometries, and filtering.
220
-
221
- #### Fix unexpected artefacts showing up in exports when the page includes tailwind ([#5792](https://github.com/tldraw/tldraw/pull/5792))
222
-
223
- - Prevent unexpected visual issues in exports from pages that include tailwindcss
224
-
225
- #### isShapeHidden => getShapeVisibility, to allow children of hidden shapes to be visible ([#5762](https://github.com/tldraw/tldraw/pull/5762))
226
-
227
- - Allow the children of a hidden shape to show themselves by returning a 'force_show' override from the `isShapeHidden` predicate.
228
-
229
- #### fix zoom speed for pinch gestures ([#5771](https://github.com/tldraw/tldraw/pull/5771))
230
-
231
- - Setting `zoomSpeed` in camera options no longer breaks zooming on safari trackpads and multitouch pinch to zoom.
232
-
233
- #### a11y: add a live region to announce selected tools ([#5634](https://github.com/tldraw/tldraw/pull/5634))
234
-
235
- - Adds better voiceover support when selecting an action (a11y)
236
-
237
- #### events: explore using getCoalescedEvents ([#5554](https://github.com/tldraw/tldraw/pull/5554))
238
-
239
- - Improve draw fluidity on slower CPUs by using getCoalescedEvents.
240
-
241
- #### fix translation perf regression from rich text font detection ([#5743](https://github.com/tldraw/tldraw/pull/5743))
242
-
243
- - Fix a performance regression when dragging many shapes at the same time.
244
-
245
- #### Cache the fonts extracted from rich text. ([#5735](https://github.com/tldraw/tldraw/pull/5735))
246
-
247
- - Improved performance while editing many geo shapes or text shapes.
248
-
249
- #### When editing a text shape, don't mount the text editor for non-editing empty shapes unless they're hovered ([#5734](https://github.com/tldraw/tldraw/pull/5734))
250
-
251
- - Fixed a bug causing a performance delay when editing text.
252
-
253
- #### Add Frame colors ([#5283](https://github.com/tldraw/tldraw/pull/5283))
254
-
255
- - Added `FrameShapeUtil.options.showColors` option to display colors for frames.
256
-
257
- #### Fix Group2d `getSvgPathData()` missing move markers ([#5580](https://github.com/tldraw/tldraw/pull/5580))
258
-
259
- - Fixed a bug with `Group2D.getSvgPathData()` so that children in the resulting SVG have their starting points defined correctly.
260
-
261
- ---
262
-
263
- #### 🐛 Bug Fix
264
-
265
- - trying out zero custom mutators [#5814](https://github.com/tldraw/tldraw/pull/5814) ([@ds300](https://github.com/ds300) [@MitjaBezensek](https://github.com/MitjaBezensek))
266
- - a11y: fix focus ring on share menu/embed dialog; also slider/watermark [#5837](https://github.com/tldraw/tldraw/pull/5837) ([@mimecuvalo](https://github.com/mimecuvalo))
267
- - isShapeHidden => getShapeVisibility, to allow children of hidden shapes to be visible [#5762](https://github.com/tldraw/tldraw/pull/5762) ([@ds300](https://github.com/ds300))
268
- - Disable currently broken docs links [#5778](https://github.com/tldraw/tldraw/pull/5778) ([@TodePond](https://github.com/TodePond))
269
- - Better whyAmIRunning [#5746](https://github.com/tldraw/tldraw/pull/5746) ([@ds300](https://github.com/ds300))
270
-
271
- #### 🐛 Bug Fixes
272
-
273
- - Fix bad arrow bindings to text shapes (#5902) [#5904](https://github.com/tldraw/tldraw/pull/5904) ([@SomeHats](https://github.com/SomeHats))
274
- - Revert "events: explore using getCoalescedEvents (#5554)" [#5895](https://github.com/tldraw/tldraw/pull/5895) ([@mimecuvalo](https://github.com/mimecuvalo))
275
- - events: fix wrong contentEditable check [#5888](https://github.com/tldraw/tldraw/pull/5888) ([@mimecuvalo](https://github.com/mimecuvalo))
276
- - a11y: fix up watermark regression [#5848](https://github.com/tldraw/tldraw/pull/5848) ([@mimecuvalo](https://github.com/mimecuvalo))
277
- - Fix unexpected artefacts showing up in exports when the page includes tailwind [#5792](https://github.com/tldraw/tldraw/pull/5792) ([@SomeHats](https://github.com/SomeHats))
278
- - fix zoom speed for pinch gestures [#5771](https://github.com/tldraw/tldraw/pull/5771) ([@SomeHats](https://github.com/SomeHats))
279
- - fix translation perf regression from rich text font detection [#5743](https://github.com/tldraw/tldraw/pull/5743) ([@SomeHats](https://github.com/SomeHats))
280
- - When editing a text shape, don't mount the text editor for non-editing empty shapes unless they're hovered [#5734](https://github.com/tldraw/tldraw/pull/5734) ([@steveruizok](https://github.com/steveruizok) [@mimecuvalo](https://github.com/mimecuvalo))
281
- - Add Frame colors [#5283](https://github.com/tldraw/tldraw/pull/5283) ([@steveruizok](https://github.com/steveruizok) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]) [@SomeHats](https://github.com/SomeHats))
282
- - Fix Group2d `getSvgPathData()` missing move markers [#5580](https://github.com/tldraw/tldraw/pull/5580) ([@lorenzolewis](https://github.com/lorenzolewis))
283
-
284
- #### 💄 Product Improvements
285
-
286
- - events: explore using getCoalescedEvents, take 2 [#5898](https://github.com/tldraw/tldraw/pull/5898) ([@mimecuvalo](https://github.com/mimecuvalo))
287
- - a11y: add keyboard shortcut items; fix up focus ring in dotcom menus [#5852](https://github.com/tldraw/tldraw/pull/5852) ([@mimecuvalo](https://github.com/mimecuvalo))
288
- - a11y: add a live region to announce selected tools [#5634](https://github.com/tldraw/tldraw/pull/5634) ([@mimecuvalo](https://github.com/mimecuvalo))
289
- - events: explore using getCoalescedEvents [#5554](https://github.com/tldraw/tldraw/pull/5554) ([@mimecuvalo](https://github.com/mimecuvalo))
290
- - Cache the fonts extracted from rich text. [#5735](https://github.com/tldraw/tldraw/pull/5735) ([@steveruizok](https://github.com/steveruizok) [@mimecuvalo](https://github.com/mimecuvalo))
291
-
292
- #### 🎉 New Features
293
-
294
- - a11y: add axe to be able to do audits [#5840](https://github.com/tldraw/tldraw/pull/5840) ([@mimecuvalo](https://github.com/mimecuvalo))
295
- - a11y: announce shapes as they're visited [#5773](https://github.com/tldraw/tldraw/pull/5773) ([@mimecuvalo](https://github.com/mimecuvalo))
296
- - a11y: navigable shapes [#5761](https://github.com/tldraw/tldraw/pull/5761) ([@mimecuvalo](https://github.com/mimecuvalo))
297
-
298
- #### 🛠️ API Changes
299
-
300
- - Geometry2d Improvements [#5754](https://github.com/tldraw/tldraw/pull/5754) ([@SomeHats](https://github.com/SomeHats))
301
-
302
- #### Authors: 8
303
-
304
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
305
- - alex ([@SomeHats](https://github.com/SomeHats))
306
- - David Sheldrick ([@ds300](https://github.com/ds300))
307
- - Lorenzo Lewis ([@lorenzolewis](https://github.com/lorenzolewis))
308
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
309
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
310
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
311
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
312
-
313
- ---
314
-
315
- # v3.11.0 (Thu Mar 20 2025)
316
-
317
- ### Release Notes
318
-
319
- #### rich text: tweak numbered list padding depending on # of items ([#5709](https://github.com/tldraw/tldraw/pull/5709))
320
-
321
- - Fix issue with rich text numbered lists escaping geometry bounds
322
-
323
- #### text: fix editing for React 19/StrictMode ([#5689](https://github.com/tldraw/tldraw/pull/5689))
324
-
325
- - Fix developing with StrictMode + React 19 when editing text.
326
-
327
- #### [Fix] Rich text perf issue ([#5658](https://github.com/tldraw/tldraw/pull/5658))
328
-
329
- - Improved performance related to rich text.
330
-
331
- #### exports: fix Inter being embedded; reduce excessive styling ([#5676](https://github.com/tldraw/tldraw/pull/5676))
332
-
333
- - Fix issue with exports embedding Inter and having excessive styling.
334
-
335
- #### assets: be able to remove assets that are unused ([#5628](https://github.com/tldraw/tldraw/pull/5628))
336
-
337
- - Cleanup assets from the local indexedDB that are proactively deleted.
338
-
339
- #### 5% minimum zoom / zoom-towards-cursor ([#5584](https://github.com/tldraw/tldraw/pull/5584))
340
-
341
- - Added a new minimum zoom step at 5%
342
- - Added new keyboard shortcuts for zoom in or out towards your cursor (Shift +, Shift -)
343
-
344
- #### [Fix] indicators hideAll / showAll ([#5654](https://github.com/tldraw/tldraw/pull/5654))
345
-
346
- - Improved performance on large projects when hiding / showing shape indicators.
347
- - Added `hideAll` and `showAll` props to the `ShapeIndicators` component props
348
-
349
- #### [Fix] Use adjacent shape margin option in stackShapes, packShapes ([#5656](https://github.com/tldraw/tldraw/pull/5656))
350
-
351
- - Adjusts distance for `stackShapes`.
352
-
353
- #### 'New user' -> 'Guest user' (dotcom only) ([#5614](https://github.com/tldraw/tldraw/pull/5614))
354
-
355
- - Add a translation key 'people-menu.anonymous-user' with the default string 'New User'
356
- - BREAKING CHANGE: `editor.user.getName()` no longer returns `'New user'` if the user has no name set. Instead it returns the empty string `''`.
357
- - BREAKING CHANGE: `defaultUserPreferences.name` is no longer the string `'New user'`, it is now the empty string `''`
358
-
359
- #### a11y: focus ring ([#5401](https://github.com/tldraw/tldraw/pull/5401))
360
-
361
- - a11y: enable focus ring.
362
-
363
- #### security: provide a way to pass through `nonce` to the editor ([#5607](https://github.com/tldraw/tldraw/pull/5607))
364
-
365
- - Provide support to pass through `nonce` to the Editor.
366
-
367
- ---
368
-
369
- #### 🐛 Bug Fix
370
-
371
- - update export snapshots [#5710](https://github.com/tldraw/tldraw/pull/5710) ([@mimecuvalo](https://github.com/mimecuvalo))
372
- - upgrade yarn to 4.7 [#5687](https://github.com/tldraw/tldraw/pull/5687) ([@SomeHats](https://github.com/SomeHats))
373
- - a11y: focus ring [#5401](https://github.com/tldraw/tldraw/pull/5401) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
374
- - Example: create arrow between shapes [#5602](https://github.com/tldraw/tldraw/pull/5602) ([@steveruizok](https://github.com/steveruizok) [@TodePond](https://github.com/TodePond))
375
-
376
- #### 🐛 Bug Fixes
377
-
378
- - rich text: tweak numbered list padding depending on # of items [#5709](https://github.com/tldraw/tldraw/pull/5709) ([@mimecuvalo](https://github.com/mimecuvalo))
379
- - text: fix editing for React 19/StrictMode [#5689](https://github.com/tldraw/tldraw/pull/5689) ([@mimecuvalo](https://github.com/mimecuvalo) [@SomeHats](https://github.com/SomeHats))
380
- - exports: fix Inter being embedded; reduce excessive styling [#5676](https://github.com/tldraw/tldraw/pull/5676) ([@mimecuvalo](https://github.com/mimecuvalo) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
381
- - [Fix] indicators hideAll / showAll [#5654](https://github.com/tldraw/tldraw/pull/5654) ([@steveruizok](https://github.com/steveruizok))
382
-
383
- #### 💄 Product Improvements
384
-
385
- - [Fix] Rich text perf issue [#5658](https://github.com/tldraw/tldraw/pull/5658) ([@steveruizok](https://github.com/steveruizok) [@mimecuvalo](https://github.com/mimecuvalo))
386
- - assets: be able to remove assets that are unused [#5628](https://github.com/tldraw/tldraw/pull/5628) ([@mimecuvalo](https://github.com/mimecuvalo))
387
- - 5% minimum zoom / zoom-towards-cursor [#5584](https://github.com/tldraw/tldraw/pull/5584) ([@steveruizok](https://github.com/steveruizok))
388
- - [Fix] Use adjacent shape margin option in stackShapes, packShapes [#5656](https://github.com/tldraw/tldraw/pull/5656) ([@steveruizok](https://github.com/steveruizok))
389
- - 'New user' -> 'Guest user' (dotcom only) [#5614](https://github.com/tldraw/tldraw/pull/5614) ([@ds300](https://github.com/ds300))
390
-
391
- #### 🎉 New Features
392
-
393
- - security: provide a way to pass through `nonce` to the editor [#5607](https://github.com/tldraw/tldraw/pull/5607) ([@mimecuvalo](https://github.com/mimecuvalo))
394
-
395
- #### Authors: 6
396
-
397
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
398
- - alex ([@SomeHats](https://github.com/SomeHats))
399
- - David Sheldrick ([@ds300](https://github.com/ds300))
400
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
401
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
402
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
403
-
404
- ---
405
-
406
- # v3.10.0 (Tue Mar 11 2025)
407
-
408
- ### Release Notes
409
-
410
- #### export: fix style embedding for foreignObjects in Firefox ([#5593](https://github.com/tldraw/tldraw/pull/5593))
411
-
412
- - Fix exports / style embedding for foreignObjects in Firefox
413
-
414
- #### rich text: fix links getting in the way of some tools and android selection ([#5568](https://github.com/tldraw/tldraw/pull/5568))
415
-
416
- - Fix issue with rich text links taking precedence over tools. Also, fix fine-grained selection on Android.
417
-
418
- #### fix reparentshapes preserve order ([#5565](https://github.com/tldraw/tldraw/pull/5565))
419
-
420
- - Modify the reparentShapes() function to ensure that the original order of the shapes is preserved when reparenting.
421
-
422
- #### media: extract base64 assets from .tldr files ([#5525](https://github.com/tldraw/tldraw/pull/5525))
423
-
424
- - Ensure .tldr files with embedded base64 assets get their assets rehydrated back into the local db.
425
-
426
- #### Make collaboration hooks public ([#5541](https://github.com/tldraw/tldraw/pull/5541))
427
-
428
- - Makes `usePeerIds` and `usePresence` public
429
-
430
- #### remove import from core-js ([#5544](https://github.com/tldraw/tldraw/pull/5544))
431
-
432
- - Fixed bug with loading TLDraw in an SSR environment by removing a core-js import https://github.com/tldraw/tldraw/issues/5543
433
-
434
- #### [feature] add rich text and contextual toolbar ([#4895](https://github.com/tldraw/tldraw/pull/4895))
435
-
436
- - Rich text using ProseMirror as a first-class supported option in the Editor.
437
-
438
- #### Pass userId to collaboration components ([#5534](https://github.com/tldraw/tldraw/pull/5534))
439
-
440
- - Pass `userId` to collaboration components in `LiveCollaborators`
441
-
442
- ---
443
-
444
- #### 🐛 Bug Fix
445
-
446
- - Add eslint rule for "whilst" [#5587](https://github.com/tldraw/tldraw/pull/5587) ([@steveruizok](https://github.com/steveruizok))
447
- - CTA analytics [#5542](https://github.com/tldraw/tldraw/pull/5542) ([@TodePond](https://github.com/TodePond))
448
- - Pass userId to collaboration components [#5534](https://github.com/tldraw/tldraw/pull/5534) ([@MathieuLoutre](https://github.com/MathieuLoutre))
449
-
450
- #### 🐛 Bug Fixes
451
-
452
- - export: fix style embedding for foreignObjects in Firefox [#5593](https://github.com/tldraw/tldraw/pull/5593) ([@mimecuvalo](https://github.com/mimecuvalo))
453
- - rich text: fix links getting in the way of some tools and android selection [#5568](https://github.com/tldraw/tldraw/pull/5568) ([@mimecuvalo](https://github.com/mimecuvalo))
454
- - fix reparentshapes preserve order [#5565](https://github.com/tldraw/tldraw/pull/5565) (riley@toonsquare.co)
455
- - remove import from core-js [#5544](https://github.com/tldraw/tldraw/pull/5544) ([@bluedot74](https://github.com/bluedot74))
456
-
457
- #### 💄 Product Improvements
458
-
459
- - media: extract base64 assets from .tldr files [#5525](https://github.com/tldraw/tldraw/pull/5525) ([@mimecuvalo](https://github.com/mimecuvalo))
460
- - Make collaboration hooks public [#5541](https://github.com/tldraw/tldraw/pull/5541) ([@MathieuLoutre](https://github.com/MathieuLoutre))
461
-
462
- #### 🎉 New Features
463
-
464
- - [feature] add rich text and contextual toolbar [#4895](https://github.com/tldraw/tldraw/pull/4895) ([@mimecuvalo](https://github.com/mimecuvalo) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]) [@SomeHats](https://github.com/SomeHats) [@ds300](https://github.com/ds300) [@steveruizok](https://github.com/steveruizok))
465
-
466
- #### Authors: 9
467
-
468
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
469
- - alex ([@SomeHats](https://github.com/SomeHats))
470
- - David Sheldrick ([@ds300](https://github.com/ds300))
471
- - Josh Willis ([@bluedot74](https://github.com/bluedot74))
472
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
473
- - Mathieu Triay ([@MathieuLoutre](https://github.com/MathieuLoutre))
474
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
475
- - Riley ([@dodo-Riley](https://github.com/dodo-Riley))
476
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
477
-
478
- ---
479
-
480
- # v3.9.0 (Mon Mar 03 2025)
481
-
482
- ### Release Notes
483
-
484
- #### Fix issue with duplicating bound arrows. ([#5495](https://github.com/tldraw/tldraw/pull/5495))
485
-
486
- - Fix a bug with duplicating bound arrows.
487
-
488
- #### Add `AtomMap` & refactor store ([#5496](https://github.com/tldraw/tldraw/pull/5496))
489
-
490
- - **BREAKING**. `store.createSelectedComputedCache` has been removed. Use `store.createCache` and create your own selector `computed` instead.
491
- - **BREAKING**. `createComputerCache` no longer accepts a single `isEqual` fn as its 3rd argument. Instead, pass in an options object, with the `isEqual` fn named `areRecordsEqual`. You can now pass `areResultsEqual`, too.
492
-
493
- #### [botcom] Fix slow export menu in big files ([#5435](https://github.com/tldraw/tldraw/pull/5435))
494
-
495
- - Fixed a bug with export menu performance.
496
-
497
- #### Improve / fix layout methods: alignment, distribute, flip, stack. ([#5479](https://github.com/tldraw/tldraw/pull/5479))
498
-
499
- - Fixes several bugs when aligning / flipping / distributing / stretching / stacking a selection that included with arrows.
500
- - Fixed a bug with distribution with overlapping shapes
501
- - Fixed a bug with distribution that could lead to changed selection.
502
- - Fixed a bug preventing rotated shapes from being stretched.
503
-
504
- #### Fix text padding, add context to shape geometry ([#5487](https://github.com/tldraw/tldraw/pull/5487))
505
-
506
- - Improved horizontal padding for arrows bound to text shapes
507
-
508
- #### Remove canvas size dependency ([#5488](https://github.com/tldraw/tldraw/pull/5488))
509
-
510
- - API: removes canvas-size dependency.
511
-
512
- #### fix svg image export mime type ([#5427](https://github.com/tldraw/tldraw/pull/5427))
513
-
514
- - Fix `<TldrawImage />` not rendering correctly with `format=svg`
515
-
516
- ---
517
-
518
- #### 🐛 Bug Fix
519
-
520
- - Update discord links [#5500](https://github.com/tldraw/tldraw/pull/5500) ([@SomeHats](https://github.com/SomeHats) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]) [@steveruizok](https://github.com/steveruizok) [@TodePond](https://github.com/TodePond))
521
- - Consider `https://localhost` to be development [#5471](https://github.com/tldraw/tldraw/pull/5471) ([@jamesbvaughan](https://github.com/jamesbvaughan) [@steveruizok](https://github.com/steveruizok))
522
-
523
- #### 🐛 Bug Fixes
524
-
525
- - Fix issue with duplicating bound arrows. [#5495](https://github.com/tldraw/tldraw/pull/5495) ([@MitjaBezensek](https://github.com/MitjaBezensek))
526
- - [botcom] Fix slow export menu in big files [#5435](https://github.com/tldraw/tldraw/pull/5435) ([@steveruizok](https://github.com/steveruizok))
527
- - Improve / fix layout methods: alignment, distribute, flip, stack. [#5479](https://github.com/tldraw/tldraw/pull/5479) ([@steveruizok](https://github.com/steveruizok))
528
- - fix svg image export mime type [#5427](https://github.com/tldraw/tldraw/pull/5427) ([@SomeHats](https://github.com/SomeHats))
529
-
530
- #### 💄 Product Improvements
531
-
532
- - Fix text padding, add context to shape geometry [#5487](https://github.com/tldraw/tldraw/pull/5487) ([@steveruizok](https://github.com/steveruizok))
533
- - Remove canvas size dependency [#5488](https://github.com/tldraw/tldraw/pull/5488) ([@steveruizok](https://github.com/steveruizok))
534
-
535
- #### 🛠️ API Changes
536
-
537
- - Add `AtomMap` & refactor store [#5496](https://github.com/tldraw/tldraw/pull/5496) ([@SomeHats](https://github.com/SomeHats))
538
-
539
- #### Authors: 6
540
-
541
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
542
- - alex ([@SomeHats](https://github.com/SomeHats))
543
- - James Vaughan ([@jamesbvaughan](https://github.com/jamesbvaughan))
544
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
545
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
546
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
547
-
548
- ---
549
-
550
- # v3.8.1 (Thu Feb 13 2025)
551
-
552
- ### Release Notes
553
-
554
- #### 3.8.1 ([#5429](https://github.com/tldraw/tldraw/pull/5429))
555
-
556
- - Fix `TldrawImage` not working with `format=png`
557
-
558
- ---
559
-
560
- #### 🐛 Bug Fix
561
-
562
- - 3.8.1 [#5429](https://github.com/tldraw/tldraw/pull/5429) ([@SomeHats](https://github.com/SomeHats))
563
-
564
- #### Authors: 1
565
-
566
- - alex ([@SomeHats](https://github.com/SomeHats))
567
-
568
- ---
569
-
570
- # v3.8.0 (Wed Feb 12 2025)
571
-
572
- ### Release Notes
573
-
574
- #### support dragging urls onto the canvas ([#5411](https://github.com/tldraw/tldraw/pull/5411))
575
-
576
- - Dragging and dropping URLs onto the canvas is now supported (and creates a bookmark by default)
577
-
578
- #### Add tldraw and excalidraw to external content types ([#5402](https://github.com/tldraw/tldraw/pull/5402))
579
-
580
- - You can now customize how pasted tldraw and excalidraw content is handled with `registerExternalContentHandler`.
581
-
582
- #### ShapeUtil.configure for shape options ([#5399](https://github.com/tldraw/tldraw/pull/5399))
583
-
584
- - introduces shape options & `ShapeUtil.configure`, a utility for passing options to a shape util
585
- - moves (unreleased) noteShapeResizeMode to NoteShapeOptions.resizeMode
586
- - If you pass tldraw a shape util with the same type as a default, it'll now replace the default rather than crash
587
- - **BREAKING** `options.maxDrawShapePoints` should now be specified with `DrawShapeUtil.configure({maxPoints})` and `HighlightShapeUtil.configure({maxPoints})`
588
-
589
- #### Shape options ([#5349](https://github.com/tldraw/tldraw/pull/5349))
590
-
591
- - introduces shape options
592
- - moves (unreleased) `noteShapeResizeMode` to `NoteShapeOptions.resizeMode`
593
- - moves `maxDrawShapePoints` to `DrawShapeOptions.maxPoints`
594
- - adds `maxPoints` to `HighlightShapeOptions.maxPoints`
595
- - 💥 breaking change if someone was using `options.maxDrawShapePoints`.
596
-
597
- #### Numeric shortcuts were still getting triggered when used inside some inputs (like the file rename input) ([#5378](https://github.com/tldraw/tldraw/pull/5378))
598
-
599
- - Fix an issue with numeric shortcuts working inside of editable elements.
600
-
601
- #### Don't pass through mousewheel events on scrollable elements ([#5356](https://github.com/tldraw/tldraw/pull/5356))
602
-
603
- - Fixed a bug with scrollable UI elements not being scrollable.
604
-
605
- #### Improve frame heading perf ([#5357](https://github.com/tldraw/tldraw/pull/5357))
606
-
607
- - Fix bug effecting performance when many frames are on the screen.
608
-
609
- #### Add option to disable numbered shortcuts on the toolbar ([#5340](https://github.com/tldraw/tldraw/pull/5340))
610
-
611
- - SDK: Added editor option to disable 0-9 keyboard shortcuts for the toolbar
612
- - Improved keyboard shortcuts for the toolbar
613
-
614
- #### support react 19 ([#5293](https://github.com/tldraw/tldraw/pull/5293))
615
-
616
- - tldraw now supports react 19
617
-
618
- #### separately export default external content/asset handlers ([#5298](https://github.com/tldraw/tldraw/pull/5298))
619
-
620
- - You can now import each of our external asset/content handlers, so you can augment them without having to copy-paste them into your app
621
-
622
- #### BREAKING
623
- - `TLExternalAssetContent` has been renamed to `TLExternalAsset`
624
-
625
- #### Emit a before-event from Editor ([#5319](https://github.com/tldraw/tldraw/pull/5319))
626
-
627
- - Emit a `before-event` from Editor for events before they are handled by tldraw.
628
-
629
- #### fix: consider font style in text measuring ([#5313](https://github.com/tldraw/tldraw/pull/5313))
630
-
631
- - Fixed a bug with…
632
-
633
- #### Add editor option to allow sticky note resizing by scale ([#5273](https://github.com/tldraw/tldraw/pull/5273))
634
-
635
- - Added `options.noteShapeResizeMode` editor option to control how note shapes resize.
636
-
637
- #### Fix an error when embed util is not present. ([#5296](https://github.com/tldraw/tldraw/pull/5296))
638
-
639
- - Fix an issue with embeds logic not gracefully handling cases when we don't have an embed util.
640
-
641
- #### Add an onCrop handler to ShapeUtil ([#5137](https://github.com/tldraw/tldraw/pull/5137))
642
-
643
- - Add support for an onCrop handler on shape utils that allows you to prevent or modify the crop.
644
- - The `TLImageShapeCrop` type has been replaced by `TLShapeCrop`.
645
-
646
- #### Style changing duration reduced from 2 to 1 second ([#5158](https://github.com/tldraw/tldraw/pull/5158))
647
-
648
- - Style changing duration reduced from 2 to 1 second
649
-
650
- #### Asset uploads ([#5218](https://github.com/tldraw/tldraw/pull/5218))
651
-
652
- **Breaking change**
653
-
654
- - `@tldraw/tlschema`: `TLAssetStore.upload` used to return just the `src` of the uploaded asset. It now returns `{src: string, meta?: JsonObject}`. The returned metadata will be added to the asset record and thus allows the users to add some additional data to them when uploading.
655
- - `@tldraw/editor`: `Editor.uploadAsset` used to return `Promise<string>` and now returns `Promise<{ src: string; meta?: JsonObject }> `
656
-
657
- #### Exports DX pass ([#5114](https://github.com/tldraw/tldraw/pull/5114))
658
-
659
- #### Breaking changes / user facing changes
660
- - The copy/export as JSON option has been removed. Data copied/exported from here could not be used anyway. If you need this in your app, look into `Editor.getContentFromCurrentPage`.
661
- - `useImageOrVideoAssetUrl` now expects a `width` parameter representing the rendered width of the asset.
662
- - `Editor.getSvgElement` and `Editor.getSvgString` will now export all shapes on the current page instead of returning undefined when passed an empty array of shape ids.
663
-
664
- #### Product improvement
665
- - When exporting to an image, image assets are now downloaded at a resolution appropriate for how they will appear in the export.
666
-
667
- #### API changes
668
- - There's a new `Editor.toImage` method that makes creating an image from your canvas easier. (`exportToBlob` is deprecated in favour of it)
669
- - `SvgExportContext` now exposes the `scale` and `pixelRatio` options of the current export
670
- - `SvgExportContext` now has a `resolveAssetUrl` method to resolve an asset at a resolution appropriate for the export.
671
- - `copyAs(editor, ids, format, opts)` has been deprecated in favour of `copyAs(editor, ids, opts)`.
672
- - `exportAs(editor, ids, format, name, opts)` has been deprecated in favour of `exportAs(editor, ids, opts)`
673
-
674
- #### Always override session state on initial load ([#5233](https://github.com/tldraw/tldraw/pull/5233))
675
-
676
- - Fixed a bug where grid mode and other settings would not persist across page reloads.
677
-
678
- #### i18n: augment the list so that we hit the top 40 languages ([#5208](https://github.com/tldraw/tldraw/pull/5208))
679
-
680
- - i18n: add top 40 languages into the list
681
-
682
- #### pass custom migrations to useLocalStore ([#5135](https://github.com/tldraw/tldraw/pull/5135))
683
-
684
- - Fixed a bug with locally synced stores where custom migrations were not being passed to the store constructor.
685
-
686
- ---
687
-
688
- #### 🐛 Bug Fix
689
-
690
- - fix: consider font style in text measuring [#5313](https://github.com/tldraw/tldraw/pull/5313) ([@ricardo-crespo](https://github.com/ricardo-crespo))
691
-
692
- #### 🐛 Bug Fixes
693
-
694
- - Numeric shortcuts were still getting triggered when used inside some inputs (like the file rename input) [#5378](https://github.com/tldraw/tldraw/pull/5378) ([@MitjaBezensek](https://github.com/MitjaBezensek))
695
- - Improve frame heading perf [#5357](https://github.com/tldraw/tldraw/pull/5357) ([@steveruizok](https://github.com/steveruizok))
696
- - Fix an error when embed util is not present. [#5296](https://github.com/tldraw/tldraw/pull/5296) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@mimecuvalo](https://github.com/mimecuvalo))
697
- - Always override session state on initial load [#5233](https://github.com/tldraw/tldraw/pull/5233) ([@ds300](https://github.com/ds300))
698
- - i18n: rename two locale codes [#5212](https://github.com/tldraw/tldraw/pull/5212) ([@mimecuvalo](https://github.com/mimecuvalo))
699
- - pass custom migrations to useLocalStore [#5135](https://github.com/tldraw/tldraw/pull/5135) ([@ds300](https://github.com/ds300))
700
-
701
- #### 💄 Product Improvements
702
-
703
- - support dragging urls onto the canvas [#5411](https://github.com/tldraw/tldraw/pull/5411) ([@SomeHats](https://github.com/SomeHats))
704
- - Don't pass through mousewheel events on scrollable elements [#5356](https://github.com/tldraw/tldraw/pull/5356) ([@steveruizok](https://github.com/steveruizok))
705
- - support react 19 [#5293](https://github.com/tldraw/tldraw/pull/5293) ([@SomeHats](https://github.com/SomeHats) [@mimecuvalo](https://github.com/mimecuvalo) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
706
- - Style changing duration reduced from 2 to 1 second [#5158](https://github.com/tldraw/tldraw/pull/5158) (alexander.melnik@pandadoc.com [@melnikkk](https://github.com/melnikkk))
707
- - Asset uploads [#5218](https://github.com/tldraw/tldraw/pull/5218) ([@MitjaBezensek](https://github.com/MitjaBezensek))
708
- - error logging: add more context for errors [#5221](https://github.com/tldraw/tldraw/pull/5221) ([@mimecuvalo](https://github.com/mimecuvalo))
709
-
710
- #### 🎉 New Features
711
-
712
- - i18n: augment the list so that we hit the top 40 languages [#5208](https://github.com/tldraw/tldraw/pull/5208) ([@mimecuvalo](https://github.com/mimecuvalo))
713
-
714
- #### 🛠️ API Changes
715
-
716
- - Add tldraw and excalidraw to external content types [#5402](https://github.com/tldraw/tldraw/pull/5402) ([@SomeHats](https://github.com/SomeHats))
717
- - ShapeUtil.configure for shape options [#5399](https://github.com/tldraw/tldraw/pull/5399) ([@SomeHats](https://github.com/SomeHats))
718
- - Shape options [#5349](https://github.com/tldraw/tldraw/pull/5349) ([@steveruizok](https://github.com/steveruizok))
719
- - Add option to disable numbered shortcuts on the toolbar [#5340](https://github.com/tldraw/tldraw/pull/5340) ([@steveruizok](https://github.com/steveruizok))
720
- - separately export default external content/asset handlers [#5298](https://github.com/tldraw/tldraw/pull/5298) ([@SomeHats](https://github.com/SomeHats))
721
- - Emit a before-event from Editor [#5319](https://github.com/tldraw/tldraw/pull/5319) ([@trygve-aaberge-adsk](https://github.com/trygve-aaberge-adsk))
722
- - Add editor option to allow sticky note resizing by scale [#5273](https://github.com/tldraw/tldraw/pull/5273) ([@steveruizok](https://github.com/steveruizok))
723
- - Add an onCrop handler to ShapeUtil [#5137](https://github.com/tldraw/tldraw/pull/5137) ([@trygve-aaberge-adsk](https://github.com/trygve-aaberge-adsk) [@mimecuvalo](https://github.com/mimecuvalo))
724
- - Exports DX pass [#5114](https://github.com/tldraw/tldraw/pull/5114) ([@SomeHats](https://github.com/SomeHats))
725
-
726
- #### Authors: 10
727
-
728
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
729
- - Aleksander Melnik (alexander.melnik@pandadoc.com)
730
- - alex ([@SomeHats](https://github.com/SomeHats))
731
- - Alexander Melnik ([@melnikkk](https://github.com/melnikkk))
732
- - David Sheldrick ([@ds300](https://github.com/ds300))
733
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
734
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
735
- - Ricardo Crespo ([@ricardo-crespo](https://github.com/ricardo-crespo))
736
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
737
- - Trygve Aaberge ([@trygve-aaberge-adsk](https://github.com/trygve-aaberge-adsk))
738
-
739
- ---
740
-
741
- # v3.7.0 (Tue Jan 07 2025)
742
-
743
- ### Release Notes
744
-
745
- #### Allow expandSelectionOutlinePx to return a Box ([#5168](https://github.com/tldraw/tldraw/pull/5168))
746
-
747
- - Support expanding the selection outline by different amounts on each side by returning a `Box` from `expandSelectionOutlinePx`.
748
-
749
- #### Fix relative CSS import rules failing to be fetched ([#5172](https://github.com/tldraw/tldraw/pull/5172))
750
-
751
- - Fix relative CSS import rules failing to be fetched when exporting or printing.
752
-
753
- #### custom sync presence ([#5071](https://github.com/tldraw/tldraw/pull/5071))
754
-
755
- - It's now possible to customise what presence data is synced between clients, or disable presence syncing entirely.
756
-
757
- #### Don't add the baseElem to the container in textmanager ([#5127](https://github.com/tldraw/tldraw/pull/5127))
758
-
759
- - Prevents divs created for text measurement from leaking during hot reloading.
760
-
761
- #### Improve rerenedring of the page menu and quick actions ([#5057](https://github.com/tldraw/tldraw/pull/5057))
762
-
763
- - Improves rendering of the pages menu and quick actions.
764
-
765
- #### fix: Updating shape props to undefined when using editor.updateShape ([#5029](https://github.com/tldraw/tldraw/pull/5029))
766
-
767
- - Updating shape props to undefined when using editor.updateShape
768
-
769
- ---
770
-
771
- #### 🐛 Bug Fix
772
-
773
- - [botcom] slurp local files on sign in [#5059](https://github.com/tldraw/tldraw/pull/5059) ([@ds300](https://github.com/ds300))
774
-
775
- #### 🐛 Bug Fixes
776
-
777
- - Fix relative CSS import rules failing to be fetched [#5172](https://github.com/tldraw/tldraw/pull/5172) ([@trygve-aaberge-adsk](https://github.com/trygve-aaberge-adsk))
778
- - Don't add the baseElem to the container in textmanager [#5127](https://github.com/tldraw/tldraw/pull/5127) ([@ds300](https://github.com/ds300))
779
- - fix hot reload text measurement bug [#5125](https://github.com/tldraw/tldraw/pull/5125) ([@ds300](https://github.com/ds300))
780
- - fix stale closure in InnerShape [#5117](https://github.com/tldraw/tldraw/pull/5117) ([@ds300](https://github.com/ds300))
781
- - fix: Updating shape props to undefined when using editor.updateShape [#5029](https://github.com/tldraw/tldraw/pull/5029) ([@kazu-2020](https://github.com/kazu-2020) [@steveruizok](https://github.com/steveruizok))
782
-
783
- #### 💄 Product Improvements
784
-
785
- - Improve rerenedring of the page menu and quick actions [#5057](https://github.com/tldraw/tldraw/pull/5057) ([@MitjaBezensek](https://github.com/MitjaBezensek))
786
-
787
- #### 🛠️ API Changes
788
-
789
- - Allow expandSelectionOutlinePx to return a Box [#5168](https://github.com/tldraw/tldraw/pull/5168) ([@trygve-aaberge-adsk](https://github.com/trygve-aaberge-adsk))
790
- - custom sync presence [#5071](https://github.com/tldraw/tldraw/pull/5071) ([@SomeHats](https://github.com/SomeHats))
791
-
792
- #### Authors: 6
793
-
794
- - alex ([@SomeHats](https://github.com/SomeHats))
795
- - David Sheldrick ([@ds300](https://github.com/ds300))
796
- - mimata kazutaka ([@kazu-2020](https://github.com/kazu-2020))
797
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
798
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
799
- - Trygve Aaberge ([@trygve-aaberge-adsk](https://github.com/trygve-aaberge-adsk))
800
-
801
- ---
802
-
803
- # v3.6.0 (Wed Dec 04 2024)
804
-
805
- ### Release Notes
806
-
807
- #### assets: fix up resolving when copy/pasting multiple items; also, videos ([#5061](https://github.com/tldraw/tldraw/pull/5061))
808
-
809
- - Fixed bugs with copy/pasting multilple assets from one board to another.
810
- - Fixed bug with copy/pasting videos from one board to another.
811
-
812
- #### Fix some export bugs ([#5022](https://github.com/tldraw/tldraw/pull/5022))
813
-
814
- - Properly clip scaled text in frames when exporting
815
- - Stop multiple concurrent exports from interfering with each-others fonts
816
-
817
- #### Fix long press bug ([#5032](https://github.com/tldraw/tldraw/pull/5032))
818
-
819
- - Fixed a bug with long press on inset canvases.
820
-
821
- ---
822
-
823
- #### 🐛 Bug Fixes
824
-
825
- - assets: fix up resolving when copy/pasting multiple items; also, videos [#5061](https://github.com/tldraw/tldraw/pull/5061) ([@mimecuvalo](https://github.com/mimecuvalo))
826
- - Fix some export bugs [#5022](https://github.com/tldraw/tldraw/pull/5022) ([@SomeHats](https://github.com/SomeHats) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
827
- - Fix long press bug [#5032](https://github.com/tldraw/tldraw/pull/5032) ([@steveruizok](https://github.com/steveruizok))
828
-
829
- #### Authors: 4
830
-
831
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
832
- - alex ([@SomeHats](https://github.com/SomeHats))
833
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
834
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
835
-
836
- ---
837
-
838
- # v3.5.0 (Tue Nov 26 2024)
839
-
840
- ### Release Notes
841
-
842
- #### Allow custom react providers in SVG exports ([#4991](https://github.com/tldraw/tldraw/pull/4991))
843
-
844
- - You can now supply a custom react context provider for SVG exports
845
-
846
- #### Click / right click on frame headings ([#4979](https://github.com/tldraw/tldraw/pull/4979))
847
-
848
- - Improved clicks for frame headings
849
-
850
- #### Snap to grid when creating shapes ([#4875](https://github.com/tldraw/tldraw/pull/4875))
851
-
852
- - Shapes snap to grid on creation, or when adding points.
853
-
854
- #### Smart bringForward/sendBackward ([#4851](https://github.com/tldraw/tldraw/pull/4851))
855
-
856
- - Improved the 'bring forward' and 'send backward' actions by making them only consider nearby overlapping shapes when deciding the next ordering.
857
-
858
- #### Remove outlines from buttons until we fix radix-ui issues ([#4855](https://github.com/tldraw/tldraw/pull/4855))
859
-
860
- - Fixed a bug with focus outlines appearing in menu items at the wrong time.
861
-
862
- #### Add option to disable text creation on double click ([#4841](https://github.com/tldraw/tldraw/pull/4841))
863
-
864
- - Add option to disable text creation on double click `createTextOnCanvasDoubleClick`
865
-
866
- #### Better support scale / quality in export utilities ([#4795](https://github.com/tldraw/tldraw/pull/4795))
867
-
868
- - Improved treatment of `scale` in image copy / export utilities.
869
-
870
- #### Call ensureStoreIsUsable after mergeRemoteChanges ([#4833](https://github.com/tldraw/tldraw/pull/4833))
871
-
872
- - Add store consistency checks during `mergeRemoteChanges`
873
-
874
- #### Make default color theme light. ([#4796](https://github.com/tldraw/tldraw/pull/4796))
875
-
876
- - Sets the default color theme to light.
877
-
878
- ---
879
-
880
- #### 🐛 Bug Fix
881
-
882
- - [botcom] improve error UX [#4790](https://github.com/tldraw/tldraw/pull/4790) ([@ds300](https://github.com/ds300))
883
-
884
- #### 🐛 Bug Fixes
885
-
886
- - Remove outlines from buttons until we fix radix-ui issues [#4855](https://github.com/tldraw/tldraw/pull/4855) ([@steveruizok](https://github.com/steveruizok))
887
-
888
- #### 💄 Product Improvements
889
-
890
- - Click / right click on frame headings [#4979](https://github.com/tldraw/tldraw/pull/4979) ([@steveruizok](https://github.com/steveruizok) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
891
- - Lokalise: Translations update [#4947](https://github.com/tldraw/tldraw/pull/4947) ([@TodePond](https://github.com/TodePond) [@mimecuvalo](https://github.com/mimecuvalo))
892
- - Snap to grid when creating shapes [#4875](https://github.com/tldraw/tldraw/pull/4875) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git) [@mimecuvalo](https://github.com/mimecuvalo))
893
- - Smart bringForward/sendBackward [#4851](https://github.com/tldraw/tldraw/pull/4851) ([@ds300](https://github.com/ds300))
894
- - Call ensureStoreIsUsable after mergeRemoteChanges [#4833](https://github.com/tldraw/tldraw/pull/4833) ([@ds300](https://github.com/ds300))
895
- - Make default color theme light. [#4796](https://github.com/tldraw/tldraw/pull/4796) ([@steveruizok](https://github.com/steveruizok))
896
-
897
- #### 🎉 New Features
898
-
899
- - Add option to disable text creation on double click [#4841](https://github.com/tldraw/tldraw/pull/4841) ([@ds300](https://github.com/ds300) [@steveruizok](https://github.com/steveruizok))
900
-
901
- #### 🛠️ API Changes
902
-
903
- - Allow custom react providers in SVG exports [#4991](https://github.com/tldraw/tldraw/pull/4991) ([@SomeHats](https://github.com/SomeHats))
904
- - Better support scale / quality in export utilities [#4795](https://github.com/tldraw/tldraw/pull/4795) ([@steveruizok](https://github.com/steveruizok))
905
-
906
- #### Authors: 7
907
-
908
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
909
- - alex ([@SomeHats](https://github.com/SomeHats))
910
- - David Sheldrick ([@ds300](https://github.com/ds300))
911
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
912
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
913
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
914
- - Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
915
-
916
- ---
917
-
918
- # v3.4.0 (Thu Oct 24 2024)
919
-
920
- ### Release Notes
921
-
922
- #### npm: upgrade eslint v8 → v9 ([#4757](https://github.com/tldraw/tldraw/pull/4757))
923
-
924
- - Upgrade eslint v8 → v9
925
-
926
- #### make options object stable ([#4762](https://github.com/tldraw/tldraw/pull/4762))
927
-
928
- - Writing `options` inline in the Tldraw component will no longer cause re-render loops
929
-
930
- #### menus: rework the open menu logic to be in one consistent place ([#4642](https://github.com/tldraw/tldraw/pull/4642))
931
-
932
- - Rework open menu logic to be centralized.
933
-
934
- #### drag: passthrough correct event type for drag events ([#4739](https://github.com/tldraw/tldraw/pull/4739))
935
-
936
- - Fix bug with passing correct event type for drag events
937
-
938
- #### refactor: specify type at bbox ([#4732](https://github.com/tldraw/tldraw/pull/4732))
939
-
940
- - When I see the code in `packages/editor/src/lib/exports/getSvgJsx.tsx`, Improvements were found.
941
- ```
942
- // L57
943
- let bbox: = null // any type
944
- ```
945
- - This is declared as `let`, but it is `any` type.
946
- - I felt this was a risk for future maintenance.
947
- - So I specify the type of `bbox`.
948
- ```
949
- let bbox: null | Box = null
950
- ```
951
-
952
- #### lod: memoize media assets so that zoom level doesn't re-render constantly ([#4659](https://github.com/tldraw/tldraw/pull/4659))
953
-
954
- - Improve performance of image/video rendering.
955
-
956
- #### drag/drop: followup to accidental img drop pr ([#4704](https://github.com/tldraw/tldraw/pull/4704))
957
-
958
- - Fix bug with multiple images being created when dropping it onto the canvas.
959
-
960
- #### links: fix link indicator on stickies ([#4708](https://github.com/tldraw/tldraw/pull/4708))
961
-
962
- - Fix link indicator in sticky notes.
963
-
964
- #### make sure DOM IDs are globally unique ([#4694](https://github.com/tldraw/tldraw/pull/4694))
965
-
966
- - Exports and other tldraw instances no longer can affect how each other are rendered
967
- - **BREAKING:** the `id` attribute that was present on some shapes in the dom has been removed. there's now a data-shape-id attribute on every shape wrapper instead though.
968
-
969
- ---
970
-
971
- #### 🐛 Bug Fix
972
-
973
- - roll back changes from bad deploy [#4780](https://github.com/tldraw/tldraw/pull/4780) ([@SomeHats](https://github.com/SomeHats))
974
- - Update CHANGELOG.md \[skip ci\] ([@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
975
- - [botcom] file state [#4766](https://github.com/tldraw/tldraw/pull/4766) ([@ds300](https://github.com/ds300))
976
- - botcom: account menu [bk] [#4683](https://github.com/tldraw/tldraw/pull/4683) ([@mimecuvalo](https://github.com/mimecuvalo))
977
- - botcom: prevent pinch-zoom on sidebar [#4697](https://github.com/tldraw/tldraw/pull/4697) ([@mimecuvalo](https://github.com/mimecuvalo))
978
-
979
- #### 🐛 Bug Fixes
980
-
981
- - [Fix] Keyboard events on menus [#4745](https://github.com/tldraw/tldraw/pull/4745) ([@steveruizok](https://github.com/steveruizok))
982
- - Make ids public [#4742](https://github.com/tldraw/tldraw/pull/4742) ([@steveruizok](https://github.com/steveruizok))
983
- - drag: passthrough correct event type for drag events [#4739](https://github.com/tldraw/tldraw/pull/4739) ([@mimecuvalo](https://github.com/mimecuvalo))
984
- - drag/drop: followup to accidental img drop pr [#4704](https://github.com/tldraw/tldraw/pull/4704) ([@mimecuvalo](https://github.com/mimecuvalo))
985
- - links: fix link indicator on stickies [#4708](https://github.com/tldraw/tldraw/pull/4708) ([@mimecuvalo](https://github.com/mimecuvalo))
986
- - [fix] Meta key bug [#4701](https://github.com/tldraw/tldraw/pull/4701) ([@steveruizok](https://github.com/steveruizok))
987
- - make sure DOM IDs are globally unique [#4694](https://github.com/tldraw/tldraw/pull/4694) ([@SomeHats](https://github.com/SomeHats))
988
-
989
- #### 💄 Product Improvements
990
-
991
- - npm: upgrade eslint v8 → v9 [#4757](https://github.com/tldraw/tldraw/pull/4757) ([@mimecuvalo](https://github.com/mimecuvalo) [@SomeHats](https://github.com/SomeHats) [@ds300](https://github.com/ds300) [@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
992
- - menus: rework the open menu logic to be in one consistent place [#4642](https://github.com/tldraw/tldraw/pull/4642) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
993
- - refactor: specify type at bbox [#4732](https://github.com/tldraw/tldraw/pull/4732) ([@nayounsang](https://github.com/nayounsang))
994
- - lod: memoize media assets so that zoom level doesn't re-render constantly [#4659](https://github.com/tldraw/tldraw/pull/4659) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
995
-
996
- #### 🛠️ API Changes
997
-
998
- - make options object stable [#4762](https://github.com/tldraw/tldraw/pull/4762) ([@SomeHats](https://github.com/SomeHats))
999
-
1000
- #### Authors: 7
1001
-
1002
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
1003
- - [@nayounsang](https://github.com/nayounsang)
1004
- - alex ([@SomeHats](https://github.com/SomeHats))
1005
- - David Sheldrick ([@ds300](https://github.com/ds300))
1006
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
1007
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
1008
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
1009
-
1010
- ---
1011
-
1012
- # v3.3.0 (Wed Oct 09 2024)
1013
-
1014
- ### Release Notes
1015
-
1016
- #### [sync] Set instance.isReadonly automatically ([#4673](https://github.com/tldraw/tldraw/pull/4673))
1017
-
1018
- - Puts the editor into readonly mode automatically when the tlsync server responds in readonly mode.
1019
- - Adds the `editor.getIsReadonly()` method.
1020
- - Fixes a bug where arrow labels could be edited in readonly mode.
1021
-
1022
- #### Pass through wheel events over non-scrolling user interface elements ([#4662](https://github.com/tldraw/tldraw/pull/4662))
1023
-
1024
- - Fixes a bug where scrolling over user interface elements would not scroll the canvas.
1025
-
1026
- #### prevent accidental image drops ([#4651](https://github.com/tldraw/tldraw/pull/4651))
1027
-
1028
- - Fixed a bug where dropping images or other things on user interface elements would navigate away from the canvas
1029
-
1030
- #### Fix an issue with nearest point and lines that start and end at the same point ([#4650](https://github.com/tldraw/tldraw/pull/4650))
1031
-
1032
- - Fix a bug with nearest points for lines that start and end at the same point.
1033
-
1034
- #### selection: allow cmd/ctrl to add to selection ([#4570](https://github.com/tldraw/tldraw/pull/4570))
1035
-
1036
- - Selection: allow cmd/ctrl to add multiple shapes to the selection.
1037
-
1038
- #### watermark: go behind certain elements on the app ([#4656](https://github.com/tldraw/tldraw/pull/4656))
1039
-
1040
- - Fix issue with watermark and certain UI elements.
1041
-
1042
- #### [dotcom] Menus, dialogs, toasts, etc. ([#4624](https://github.com/tldraw/tldraw/pull/4624))
1043
-
1044
- - exports dialogs system
1045
- - exports toasts system
1046
- - exports translations system
1047
- - create a global `tlmenus` system for menus
1048
- - create a global `tltime` system for timers
1049
- - create a global `tlenv` for environment"
1050
- - create a `useMaybeEditor` hook
1051
-
1052
- #### Fix watermark link opening twice ([#4622](https://github.com/tldraw/tldraw/pull/4622))
1053
-
1054
- - Fix watermark link opening twice
1055
-
1056
- #### Add eslint rule to check that tsdoc params match with function params ([#4615](https://github.com/tldraw/tldraw/pull/4615))
1057
-
1058
- - Add lint rules to check for discrepancies between tsdoc params and function params and fix all the discovered issues.
1059
-
1060
- #### [bugfix] respect camera constraints after switching page + setting constraints ([#4628](https://github.com/tldraw/tldraw/pull/4628))
1061
-
1062
- - Fixed a bug where camera constraints were not upheld after switching pages or setting new camera constraints.
1063
-
1064
- ---
1065
-
1066
- #### 🐛 Bug Fix
1067
-
1068
- - Improve watermark tests [#4669](https://github.com/tldraw/tldraw/pull/4669) ([@steveruizok](https://github.com/steveruizok))
1069
- - [dotcom] Menus, dialogs, toasts, etc. [#4624](https://github.com/tldraw/tldraw/pull/4624) ([@steveruizok](https://github.com/steveruizok))
1070
- - chore: refactor safe id [#4618](https://github.com/tldraw/tldraw/pull/4618) ([@mimecuvalo](https://github.com/mimecuvalo))
1071
-
1072
- #### 🐛 Bug Fixes
1073
-
1074
- - prevent accidental image drops [#4651](https://github.com/tldraw/tldraw/pull/4651) ([@steveruizok](https://github.com/steveruizok))
1075
- - Fix an issue with nearest point and lines that start and end at the same point [#4650](https://github.com/tldraw/tldraw/pull/4650) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1076
- - Fix watermark link opening twice [#4622](https://github.com/tldraw/tldraw/pull/4622) ([@vladh](https://github.com/vladh))
1077
- - [bugfix] respect camera constraints after switching page + setting constraints [#4628](https://github.com/tldraw/tldraw/pull/4628) ([@ds300](https://github.com/ds300))
1078
-
1079
- #### 💄 Product Improvements
1080
-
1081
- - [sync] Set instance.isReadonly automatically [#4673](https://github.com/tldraw/tldraw/pull/4673) ([@ds300](https://github.com/ds300))
1082
- - Pass through wheel events over non-scrolling user interface elements [#4662](https://github.com/tldraw/tldraw/pull/4662) ([@steveruizok](https://github.com/steveruizok))
1083
- - selection: allow cmd/ctrl to add to selection [#4570](https://github.com/tldraw/tldraw/pull/4570) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
1084
- - watermark: go behind certain elements on the app [#4656](https://github.com/tldraw/tldraw/pull/4656) ([@mimecuvalo](https://github.com/mimecuvalo))
1085
- - Add eslint rule to check that tsdoc params match with function params [#4615](https://github.com/tldraw/tldraw/pull/4615) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1086
-
1087
- #### 🏠 Internal
1088
-
1089
- - dotcom top bar / .tldr file drops [#4661](https://github.com/tldraw/tldraw/pull/4661) ([@steveruizok](https://github.com/steveruizok))
1090
-
1091
- #### Authors: 5
1092
-
1093
- - David Sheldrick ([@ds300](https://github.com/ds300))
1094
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
1095
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
1096
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
1097
- - Vlad-Stefan Harbuz ([@vladh](https://github.com/vladh))
1098
-
1099
- ---
1100
-
1101
- # v3.1.0 (Wed Sep 25 2024)
1102
-
1103
- ### Release Notes
1104
-
1105
- #### Fix watermark appearance ([#4589](https://github.com/tldraw/tldraw/pull/4589))
1106
-
1107
- - Fixed a bug with the watermark's opacities and animations.
1108
-
1109
- #### publish useAsset, tweak docs ([#4590](https://github.com/tldraw/tldraw/pull/4590))
1110
-
1111
- - Publish the `useAsset` media asset helper
1112
-
1113
- #### Fix label wrapping ([#4571](https://github.com/tldraw/tldraw/pull/4571))
1114
-
1115
- - Fixed a bug with arrow label text measurements.
1116
-
1117
- #### [feature] isShapeHidden option ([#4446](https://github.com/tldraw/tldraw/pull/4446))
1118
-
1119
- - Adds an `isShapeHidden` option, which allows you to provide custom logic to decide whether or not a shape should be shown on the canvas.
1120
-
1121
- #### Unify links for vs code. ([#4565](https://github.com/tldraw/tldraw/pull/4565))
1122
-
1123
- - Unify vs code extension links. Make the watermark link work in the vs code extension.
1124
-
1125
- #### Add center option to rotateShapesBy ([#4508](https://github.com/tldraw/tldraw/pull/4508))
1126
-
1127
- - Add option to Editor.rotateShapesBy to specify the rotation center point.
1128
-
1129
- #### [fix] container null error ([#4524](https://github.com/tldraw/tldraw/pull/4524))
1130
-
1131
- - Fixed a minor bug related to useContainer's return value being potentially returned from components?
1132
-
1133
- ---
1134
-
1135
- #### 🐛 Bug Fix
1136
-
1137
- - npm: make our React packages consistent [#4547](https://github.com/tldraw/tldraw/pull/4547) ([@mimecuvalo](https://github.com/mimecuvalo) [@MitjaBezensek](https://github.com/MitjaBezensek))
1138
- - docs: cleanup/add readmes/licenses [#4542](https://github.com/tldraw/tldraw/pull/4542) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok) [@MitjaBezensek](https://github.com/MitjaBezensek) [@SomeHats](https://github.com/SomeHats))
1139
- - Clean up `apps` directory [#4548](https://github.com/tldraw/tldraw/pull/4548) ([@SomeHats](https://github.com/SomeHats))
1140
- - fix pre-rendering on blog/legal [#4535](https://github.com/tldraw/tldraw/pull/4535) ([@SomeHats](https://github.com/SomeHats))
1141
-
1142
- #### 🐛 Bug Fixes
1143
-
1144
- - Fix watermark appearance [#4589](https://github.com/tldraw/tldraw/pull/4589) ([@steveruizok](https://github.com/steveruizok))
1145
- - Fix label wrapping [#4571](https://github.com/tldraw/tldraw/pull/4571) ([@steveruizok](https://github.com/steveruizok))
1146
- - [fix] container null error [#4524](https://github.com/tldraw/tldraw/pull/4524) ([@ds300](https://github.com/ds300))
1147
- - Remove feature flag. [#4521](https://github.com/tldraw/tldraw/pull/4521) ([@steveruizok](https://github.com/steveruizok))
1148
- - Enable license feature flag. [#4518](https://github.com/tldraw/tldraw/pull/4518) ([@steveruizok](https://github.com/steveruizok))
1149
-
1150
- #### 💄 Product Improvements
1151
-
1152
- - Unify links for vs code. [#4565](https://github.com/tldraw/tldraw/pull/4565) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1153
-
1154
- #### 🎉 New Features
1155
-
1156
- - [feature] isShapeHidden option [#4446](https://github.com/tldraw/tldraw/pull/4446) ([@ds300](https://github.com/ds300))
1157
-
1158
- #### 🛠️ API Changes
1159
-
1160
- - publish useAsset, tweak docs [#4590](https://github.com/tldraw/tldraw/pull/4590) ([@SomeHats](https://github.com/SomeHats))
1161
- - Add center option to rotateShapesBy [#4508](https://github.com/tldraw/tldraw/pull/4508) ([@ds300](https://github.com/ds300))
1162
-
1163
- #### Authors: 5
1164
-
1165
- - alex ([@SomeHats](https://github.com/SomeHats))
1166
- - David Sheldrick ([@ds300](https://github.com/ds300))
1167
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
1168
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
1169
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
1170
-
1171
- ---
1172
-
1173
- # v3.0.0 (Fri Sep 13 2024)
1174
-
1175
- ### Release Notes
1176
-
1177
- #### paste: fix pasting images from excalidraw ([#4462](https://github.com/tldraw/tldraw/pull/4462))
1178
-
1179
- - Pasting: fix image pasting from Excalidraw.
1180
-
1181
- #### images: dont stop playing a gif on double click ([#4451](https://github.com/tldraw/tldraw/pull/4451))
1182
-
1183
- - Images: dbl-clicking doesn't stop gifs
1184
-
1185
- #### Add sleep fn ([#4454](https://github.com/tldraw/tldraw/pull/4454))
1186
-
1187
- (internal-only change)
1188
-
1189
- #### Fix an issue with firefox ([#4432](https://github.com/tldraw/tldraw/pull/4432))
1190
-
1191
- - Fix an issue with migrating legacy assets in Firefox.
1192
-
1193
- #### add default <foreignObject> based export for shapes ([#4403](https://github.com/tldraw/tldraw/pull/4403))
1194
-
1195
- Custom shapes (and our own bookmark shapes) now render in image exports by default.
1196
-
1197
- #### Use custom mime types in useInsertMedia hook ([#4453](https://github.com/tldraw/tldraw/pull/4453))
1198
-
1199
- - Make the 'insert media' action use custom mime type configurations to restrict which files can be selected in the picker.
1200
-
1201
- #### Rename TLSvgOptions ([#4442](https://github.com/tldraw/tldraw/pull/4442))
1202
-
1203
- - Rename `TLSvgOptions` to `TLImageExportOptions`
1204
-
1205
- #### Use base zoom and zoom steps to calculate min and max zoom for pinch gesture ([#4427](https://github.com/tldraw/tldraw/pull/4427))
1206
-
1207
- - Fixed issue where pinch gestures on Safari would snap camera at low zoom levels
1208
-
1209
- #### Fix exports for dark mode frames and flipped images ([#4424](https://github.com/tldraw/tldraw/pull/4424))
1210
-
1211
- - Flipped images are now respected in exports
1212
- - Dark mode frames are exported with the correct label color
1213
-
1214
- #### Prevent unhandled promise rejection during strict mode ([#4406](https://github.com/tldraw/tldraw/pull/4406))
1215
-
1216
- - Prevented a harmless Unhandled Promise Rejection error message during dev time with React strict mode.
1217
-
1218
- #### Detect multiple installed versions of tldraw packages ([#4398](https://github.com/tldraw/tldraw/pull/4398))
1219
-
1220
- - We detect when there are multiple versions of tldraw installed and let you know, as this can cause bugs in your application
1221
-
1222
- #### [api] Widen snapshots pit of success ([#4392](https://github.com/tldraw/tldraw/pull/4392))
1223
-
1224
- - Improved loadSnapshot to preserve page state like camera position and current page if no session snapshot is provided.
1225
-
1226
- #### Make rotateShapesBy work on any shapes ([#4385](https://github.com/tldraw/tldraw/pull/4385))
1227
-
1228
- - Make `rotateShapesBy` work with any shapes, not just the currently selected shapes.
1229
- - BREAKING CHANGE - removes the `TLRotationSnapshot` type.
1230
-
1231
- #### fix inky path rendering ([#4382](https://github.com/tldraw/tldraw/pull/4382))
1232
-
1233
- - Fix edge case bug in inky path rendering code for clouds.
1234
-
1235
- #### Deep Links ([#4333](https://github.com/tldraw/tldraw/pull/4333))
1236
-
1237
- - Added support for managing deep links.
1238
-
1239
- #### Custom embeds API ([#4326](https://github.com/tldraw/tldraw/pull/4326))
1240
-
1241
- Adds the ability to customize the embeds that are supported. You can now customize or reorder the existing embeds, as well as add completely new ones.
1242
-
1243
- #### Rename `StoreOptions.multiplayerStatus` ([#4349](https://github.com/tldraw/tldraw/pull/4349))
1244
-
1245
- - Renames `StoreOptions.multiplayerStatus` to `StoreOptions.collaboration.status`.
1246
-
1247
- #### why did we have this dpr constrained width/height stuff again? ([#4297](https://github.com/tldraw/tldraw/pull/4297))
1248
-
1249
- - Fixed a bug with…
1250
-
1251
- #### video: rm sync that doesn't really work; fix fullscreen rendering ([#4338](https://github.com/tldraw/tldraw/pull/4338))
1252
-
1253
- - video: rm sync that doesn't really work; fix fullscreen rendering
1254
-
1255
- #### license: allow wildcard to make apex domains also work ([#4334](https://github.com/tldraw/tldraw/pull/4334))
1256
-
1257
- - Improve license domain check for apex domains when using wildcards.
1258
-
1259
- #### License: add docs ([#4217](https://github.com/tldraw/tldraw/pull/4217))
1260
-
1261
- - Add licensing docs.
1262
-
1263
- #### images: show ghost preview image while uploading ([#3988](https://github.com/tldraw/tldraw/pull/3988))
1264
-
1265
- - Media: add image and video upload indicators.
1266
-
1267
- #### [Feature, Example] Text search example and `getText` API ([#4306](https://github.com/tldraw/tldraw/pull/4306))
1268
-
1269
- - Adds `getText` to the `ShapeUtil` api so that we can allow searching for text in a nicely extensible way.
1270
- - Adds an example of how to add text search.
1271
-
1272
- #### remove onEditorMount prop ([#4320](https://github.com/tldraw/tldraw/pull/4320))
1273
-
1274
- - **Breaking:** the `onEditorMount` option to `createTLStore` is now called `onMount`
1275
-
1276
- #### Fix an issue with minimap ([#4318](https://github.com/tldraw/tldraw/pull/4318))
1277
-
1278
- - Fixes a bug with the MiniMap not rendering. Makes the unbound uses safer.
1279
-
1280
- #### Fix duplication of shapes. ([#4316](https://github.com/tldraw/tldraw/pull/4316))
1281
-
1282
- - Fix an issue with duplicating groups.
1283
-
1284
- #### draw: fix dotted line rendering when zoomed out ([#4261](https://github.com/tldraw/tldraw/pull/4261))
1285
-
1286
- - Draw: fix dotted line shape rendering when zoomed out greatly.
1287
-
1288
- #### Move from function properties to methods ([#4288](https://github.com/tldraw/tldraw/pull/4288))
1289
-
1290
- - Adds eslint rules for enforcing the use of methods instead of function properties and fixes / disables all the resulting errors.
1291
-
1292
- #### Add option for max pasted / dropped files ([#4294](https://github.com/tldraw/tldraw/pull/4294))
1293
-
1294
- - We now have an editor option for the maximum number of files that a user can paste at once.
1295
-
1296
- #### support custom delay for laser pointer ([#4300](https://github.com/tldraw/tldraw/pull/4300))
1297
-
1298
- - Added support for laser delay customisation
1299
-
1300
- #### license: add special license option with watermark ([#4296](https://github.com/tldraw/tldraw/pull/4296))
1301
-
1302
- - license: add special license option with watermark
1303
-
1304
- #### Deprecate editor.mark, fix cropping tests ([#4250](https://github.com/tldraw/tldraw/pull/4250))
1305
-
1306
- This deprecates `Editor.mark()` in favour of `Editor.markHistoryStoppingPoint()`.
1307
-
1308
- This was done because calling `editor.mark(id)` is a potential footgun unless you always provide a random ID. So `editor.markHistoryStoppingPoint()` always returns a random id.
1309
-
1310
- #### fix assets prop on tldraw component ([#4283](https://github.com/tldraw/tldraw/pull/4283))
1311
-
1312
- - The `assets` prop on the `<Tldraw />` and `<TldrawEditor />` components is now respected.
1313
-
1314
- #### Allow non default z value for scribble points. ([#4260](https://github.com/tldraw/tldraw/pull/4260))
1315
-
1316
- - Allow scribble points to have non default z values.
1317
-
1318
- #### Fix order of closed menus ([#4247](https://github.com/tldraw/tldraw/pull/4247))
1319
-
1320
- - Prevent accidental drawing / tool usage when closing menus.
1321
-
1322
- ---
1323
-
1324
- #### 🐛 Bug Fix
1325
-
1326
- - [SORRY, PLEASE MERGE] 3.0 megabus [#4494](https://github.com/tldraw/tldraw/pull/4494) ([@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok) [@ds300](https://github.com/ds300))
1327
- - [docs] Improve demo CTA, use actual tldraw [#4481](https://github.com/tldraw/tldraw/pull/4481) ([@ds300](https://github.com/ds300) [@mimecuvalo](https://github.com/mimecuvalo))
1328
- - Add sleep fn [#4454](https://github.com/tldraw/tldraw/pull/4454) ([@SomeHats](https://github.com/SomeHats))
1329
- - Improve some type docs, delete duplicate file [#4383](https://github.com/tldraw/tldraw/pull/4383) ([@ds300](https://github.com/ds300))
1330
- - Update READMEs. [#4377](https://github.com/tldraw/tldraw/pull/4377) ([@steveruizok](https://github.com/steveruizok))
1331
- - Make license debug helper return a cleanup function [#4356](https://github.com/tldraw/tldraw/pull/4356) ([@steveruizok](https://github.com/steveruizok))
1332
- - Fix some broken links in the docs [#4340](https://github.com/tldraw/tldraw/pull/4340) ([@steveruizok](https://github.com/steveruizok))
1333
- - License: add docs [#4217](https://github.com/tldraw/tldraw/pull/4217) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@mimecuvalo](https://github.com/mimecuvalo))
1334
- - license: add special license option with watermark [#4296](https://github.com/tldraw/tldraw/pull/4296) ([@mimecuvalo](https://github.com/mimecuvalo))
1335
- - More sync papercuts [#4273](https://github.com/tldraw/tldraw/pull/4273) ([@SomeHats](https://github.com/SomeHats))
1336
-
1337
- #### 🐛 Bug Fixes
1338
-
1339
- - paste: fix pasting images from excalidraw [#4462](https://github.com/tldraw/tldraw/pull/4462) ([@mimecuvalo](https://github.com/mimecuvalo))
1340
- - Fix local save warning / watermark [#4482](https://github.com/tldraw/tldraw/pull/4482) ([@steveruizok](https://github.com/steveruizok))
1341
- - Fix escape bug [#4470](https://github.com/tldraw/tldraw/pull/4470) ([@steveruizok](https://github.com/steveruizok))
1342
- - Add watermark to tldraw.com [#4449](https://github.com/tldraw/tldraw/pull/4449) ([@steveruizok](https://github.com/steveruizok) [@mimecuvalo](https://github.com/mimecuvalo) [@SomeHats](https://github.com/SomeHats))
1343
- - Fix an issue with firefox [#4432](https://github.com/tldraw/tldraw/pull/4432) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1344
- - Use custom mime types in useInsertMedia hook [#4453](https://github.com/tldraw/tldraw/pull/4453) ([@ds300](https://github.com/ds300))
1345
- - Use base zoom and zoom steps to calculate min and max zoom for pinch gesture [#4427](https://github.com/tldraw/tldraw/pull/4427) ([@zacwood9](https://github.com/zacwood9))
1346
- - Fix exports for dark mode frames and flipped images [#4424](https://github.com/tldraw/tldraw/pull/4424) ([@SomeHats](https://github.com/SomeHats) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
1347
- - fix the box shape tool not exiting the resizing state [#4404](https://github.com/tldraw/tldraw/pull/4404) ([@SomeHats](https://github.com/SomeHats))
1348
- - fix inky path rendering [#4382](https://github.com/tldraw/tldraw/pull/4382) ([@ds300](https://github.com/ds300))
1349
- - Remove the document.hasFocus check [#4373](https://github.com/tldraw/tldraw/pull/4373) ([@steveruizok](https://github.com/steveruizok))
1350
- - video: rm sync that doesn't really work; fix fullscreen rendering [#4338](https://github.com/tldraw/tldraw/pull/4338) ([@mimecuvalo](https://github.com/mimecuvalo))
1351
- - Fix an issue with minimap [#4318](https://github.com/tldraw/tldraw/pull/4318) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1352
- - Fix duplication of shapes. [#4316](https://github.com/tldraw/tldraw/pull/4316) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1353
- - draw: fix dotted line rendering when zoomed out [#4261](https://github.com/tldraw/tldraw/pull/4261) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
1354
- - fix assets prop on tldraw component [#4283](https://github.com/tldraw/tldraw/pull/4283) ([@SomeHats](https://github.com/SomeHats))
1355
- - Fix order of closed menus [#4247](https://github.com/tldraw/tldraw/pull/4247) ([@steveruizok](https://github.com/steveruizok))
1356
-
1357
- #### 💄 Product Improvements
1358
-
1359
- - images: dont stop playing a gif on double click [#4451](https://github.com/tldraw/tldraw/pull/4451) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
1360
- - add default <foreignObject> based export for shapes [#4403](https://github.com/tldraw/tldraw/pull/4403) ([@SomeHats](https://github.com/SomeHats) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
1361
- - inline nanoid [#4410](https://github.com/tldraw/tldraw/pull/4410) ([@SomeHats](https://github.com/SomeHats))
1362
- - Prevent unhandled promise rejection during strict mode [#4406](https://github.com/tldraw/tldraw/pull/4406) ([@ds300](https://github.com/ds300))
1363
- - [api] Widen snapshots pit of success [#4392](https://github.com/tldraw/tldraw/pull/4392) ([@ds300](https://github.com/ds300))
1364
- - Deep Links [#4333](https://github.com/tldraw/tldraw/pull/4333) ([@ds300](https://github.com/ds300))
1365
- - Docs Redesign [#4078](https://github.com/tldraw/tldraw/pull/4078) ([@lukaswiesehan](https://github.com/lukaswiesehan) [@steveruizok](https://github.com/steveruizok) [@SomeHats](https://github.com/SomeHats))
1366
- - Preserve focus search param [#4344](https://github.com/tldraw/tldraw/pull/4344) ([@steveruizok](https://github.com/steveruizok))
1367
- - why did we have this dpr constrained width/height stuff again? [#4297](https://github.com/tldraw/tldraw/pull/4297) ([@ds300](https://github.com/ds300))
1368
- - license: allow wildcard to make apex domains also work [#4334](https://github.com/tldraw/tldraw/pull/4334) ([@mimecuvalo](https://github.com/mimecuvalo))
1369
- - images: show ghost preview image while uploading [#3988](https://github.com/tldraw/tldraw/pull/3988) ([@mimecuvalo](https://github.com/mimecuvalo) [@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok))
1370
- - Add option for max pasted / dropped files [#4294](https://github.com/tldraw/tldraw/pull/4294) ([@steveruizok](https://github.com/steveruizok))
1371
- - support custom delay for laser pointer [#4300](https://github.com/tldraw/tldraw/pull/4300) ([@raviteja83](https://github.com/raviteja83))
1372
- - Allow non default z value for scribble points. [#4260](https://github.com/tldraw/tldraw/pull/4260) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1373
-
1374
- #### 🎉 New Features
1375
-
1376
- - Custom embeds API [#4326](https://github.com/tldraw/tldraw/pull/4326) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1377
- - [Feature, Example] Text search example and `getText` API [#4306](https://github.com/tldraw/tldraw/pull/4306) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1378
-
1379
- #### 🛠️ API Changes
1380
-
1381
- - Rename TLSvgOptions [#4442](https://github.com/tldraw/tldraw/pull/4442) ([@ds300](https://github.com/ds300))
1382
- - Detect multiple installed versions of tldraw packages [#4398](https://github.com/tldraw/tldraw/pull/4398) ([@SomeHats](https://github.com/SomeHats))
1383
- - Make rotateShapesBy work on any shapes [#4385](https://github.com/tldraw/tldraw/pull/4385) ([@ds300](https://github.com/ds300))
1384
- - Rename `StoreOptions.multiplayerStatus` [#4349](https://github.com/tldraw/tldraw/pull/4349) ([@steveruizok](https://github.com/steveruizok))
1385
- - remove onEditorMount prop [#4320](https://github.com/tldraw/tldraw/pull/4320) ([@SomeHats](https://github.com/SomeHats))
1386
- - Move from function properties to methods [#4288](https://github.com/tldraw/tldraw/pull/4288) ([@ds300](https://github.com/ds300) [@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
1387
- - Deprecate editor.mark, fix cropping tests [#4250](https://github.com/tldraw/tldraw/pull/4250) ([@ds300](https://github.com/ds300))
1388
-
1389
- #### Authors: 9
1390
-
1391
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
1392
- - alex ([@SomeHats](https://github.com/SomeHats))
1393
- - David Sheldrick ([@ds300](https://github.com/ds300))
1394
- - Lukas Wiesehan ([@lukaswiesehan](https://github.com/lukaswiesehan))
1395
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
1396
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
1397
- - Ravi theja ([@raviteja83](https://github.com/raviteja83))
1398
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
1399
- - Zachary Wood ([@zacwood9](https://github.com/zacwood9))
1400
-
1401
- ---
1402
-
1403
- # v2.4.0 (Mon Jul 22 2024)
1404
-
1405
- ### Release Notes
1406
-
1407
- #### license: fix up watermark in prod ([#4252](https://github.com/tldraw/tldraw/pull/4252))
1408
-
1409
- - Licensing: fix up watermark in prod
1410
-
1411
- #### Couple of force flag test additions ([#4224](https://github.com/tldraw/tldraw/pull/4224))
1412
-
1413
- - Extra tests for force flag.
1414
-
1415
- #### Support animating opacity. ([#4242](https://github.com/tldraw/tldraw/pull/4242))
1416
-
1417
- - You can now animate the opacity of shapes.
1418
-
1419
- #### db: add fallback for FF versions < 126 ([#4240](https://github.com/tldraw/tldraw/pull/4240))
1420
-
1421
- - Fix issue with indexedDB in older versions of Firefox < 126.
1422
-
1423
- #### Finesse sync api ([#4212](https://github.com/tldraw/tldraw/pull/4212))
1424
-
1425
- - Fixed a bug with…
1426
-
1427
- #### Allow custom tools to decide whether they can be lockable or not. ([#4208](https://github.com/tldraw/tldraw/pull/4208))
1428
-
1429
- - Allows custom tools to control whether they can be lockable or not. By default they are lockable. You can opt out by overriding `StateNode`'s `isLockable` field:
1430
- ```typescript
1431
- export class MyCustomTool extends StateNode {
1432
-
1433
- static override isLockable = false
1434
-
1435
- }
1436
- ```
1437
-
1438
- #### Force flag should override isLocked in more cases ([#4214](https://github.com/tldraw/tldraw/pull/4214))
1439
-
1440
- - Fixed the `force` flag not being taken in account after locking the camera and calling `centerOnPoint`, `resetZoom`, `zoomIn`, `zoomOut`, `zoomToSelection` or `zoomToBounds`.
1441
-
1442
- #### Disable outputs for tests. ([#4201](https://github.com/tldraw/tldraw/pull/4201))
1443
-
1444
- - Remove the license info outputs when testing.
1445
-
1446
- #### csp: followup fixes/dx/tweaks ([#4159](https://github.com/tldraw/tldraw/pull/4159))
1447
-
1448
- - Security: more CSP work on dotcom
1449
-
1450
- #### Relax the params ([#4190](https://github.com/tldraw/tldraw/pull/4190))
1451
-
1452
- - Allow passing partial `TLEditorSnapshot` to `TldrawImage` and `useTLStore`.
1453
-
1454
- #### Explicitly type shape props and defaults ([#4191](https://github.com/tldraw/tldraw/pull/4191))
1455
-
1456
- - Explicitly declare type types of default shapes etc. and shape props for better documentation
1457
-
1458
- #### Show checked theme in color scheme menu ([#4184](https://github.com/tldraw/tldraw/pull/4184))
1459
-
1460
- - Fixed a bug where the user's color scheme was not shown in the menu by default.
1461
-
1462
- #### Editor.run, locked shapes improvements ([#4042](https://github.com/tldraw/tldraw/pull/4042))
1463
-
1464
- - SDK: Adds `Editor.force()` to permit updating / deleting locked shapes
1465
- - Fixed a bug that would allow locked shapes to be updated programmatically
1466
- - Fixed a bug that would allow locked group shapes to be ungrouped programmatically
1467
-
1468
- #### `ShapeUtil.getInterpolatedProps` ([#4162](https://github.com/tldraw/tldraw/pull/4162))
1469
-
1470
- - SDK: adds `ShapeUtil.getInterpolatedProps` so that shapes can better participate in animations.
1471
-
1472
- #### Split @tldraw/state into @tldraw/state and @tldraw/state-react ([#4170](https://github.com/tldraw/tldraw/pull/4170))
1473
-
1474
- - Fixed a bug with…
1475
-
1476
- #### [sdk] make EffectScheduler and useStateTracking public ([#4155](https://github.com/tldraw/tldraw/pull/4155))
1477
-
1478
- - Made `EffectScheduler` and `useStateTracking` public
1479
-
1480
- #### Unify menus. Disable erroring. ([#4143](https://github.com/tldraw/tldraw/pull/4143))
1481
-
1482
- - Unify the VS Code extension menus (Help and Main menus) with what we have on tldraw.com
1483
- - Prevent an onerror cycle.
1484
-
1485
- #### Fix `/new` alert bug, make new user data stable ([#4142](https://github.com/tldraw/tldraw/pull/4142))
1486
-
1487
- - Fixed a bug with…
1488
-
1489
- #### sdk: wires up tldraw to have licensing mechanisms ([#4021](https://github.com/tldraw/tldraw/pull/4021))
1490
-
1491
- - SDK: wires up tldraw to have licensing mechanisms.
1492
-
1493
- #### [1/4] Blob storage in TLStore ([#4068](https://github.com/tldraw/tldraw/pull/4068))
1494
-
1495
- Introduce a new `assets` option for the store, describing how to save and retrieve asset blobs like images & videos from e.g. a user-content CDN. These are accessible through `editor.uploadAsset` and `editor.resolveAssetUrl`. This supplements the existing `registerExternalAssetHandler` API: `registerExternalAssetHandler` is for customising metadata extraction, and should call `editor.uploadAsset` to save assets. Existing `registerExternalAssetHandler` calls will still work, but if you're only using them to configure uploads and don't want to customise metadata extraction, consider switching to the new `assets` store prop.
1496
-
1497
- #### use unique IDs for grid instances ([#4132](https://github.com/tldraw/tldraw/pull/4132))
1498
-
1499
- - Fix a bug causing multiple tldraw instances to share the same grid background
1500
-
1501
- #### Flip images ([#4113](https://github.com/tldraw/tldraw/pull/4113))
1502
-
1503
- - Adds the ability to flip images.
1504
-
1505
- #### fix input coords while viewport following ([#4108](https://github.com/tldraw/tldraw/pull/4108))
1506
-
1507
- - Fixed a bug with…
1508
-
1509
- #### Add "paste at cursor" option, which toggles how `cmd + v` and `cmd + shift + v` work ([#4088](https://github.com/tldraw/tldraw/pull/4088))
1510
-
1511
- - Allow users and sdk users to make pasting at the cursor a default instead of only being available with `⌘ + ⇧ + v`.
1512
-
1513
- #### Fix editor remounting when camera options change ([#4089](https://github.com/tldraw/tldraw/pull/4089))
1514
-
1515
- Fix an issue where changing `cameraOptions` via react would cause the entire editor to re-render
1516
-
1517
- #### Add component for `ShapeIndicators` ([#4083](https://github.com/tldraw/tldraw/pull/4083))
1518
-
1519
- - Added new `ShapeIndicators` component to `components` object.
1520
- - Added new `TldrawShapeIndicators` component.
1521
-
1522
- #### put sync stuff in bemo worker ([#4060](https://github.com/tldraw/tldraw/pull/4060))
1523
-
1524
- - Fixed a bug with...
1525
-
1526
- #### Cleanup z-indices ([#4020](https://github.com/tldraw/tldraw/pull/4020))
1527
-
1528
- - Cleans up z-indexes and removes some unused CSS.
1529
-
1530
- #### Fix `<InFrontOfTheCanvas/>` ([#4024](https://github.com/tldraw/tldraw/pull/4024))
1531
-
1532
- - Fixed placement of the InFrontOfTheCanvas component.
1533
-
1534
- ---
1535
-
1536
- #### 🐛 Bug Fix
1537
-
1538
- - license: add example; fix up example dialog [#4163](https://github.com/tldraw/tldraw/pull/4163) ([@mimecuvalo](https://github.com/mimecuvalo) [@MitjaBezensek](https://github.com/MitjaBezensek))
1539
- - Watermark II [#4196](https://github.com/tldraw/tldraw/pull/4196) ([@steveruizok](https://github.com/steveruizok) [@mimecuvalo](https://github.com/mimecuvalo))
1540
- - csp: followup fixes/dx/tweaks [#4159](https://github.com/tldraw/tldraw/pull/4159) ([@mimecuvalo](https://github.com/mimecuvalo))
1541
- - add version attribute [#4192](https://github.com/tldraw/tldraw/pull/4192) ([@SomeHats](https://github.com/SomeHats))
1542
- - bemo custom shape example [#4174](https://github.com/tldraw/tldraw/pull/4174) ([@SomeHats](https://github.com/SomeHats))
1543
- - Editor.run docs [#4182](https://github.com/tldraw/tldraw/pull/4182) ([@steveruizok](https://github.com/steveruizok))
1544
- - followups to z-index and PR template [#4054](https://github.com/tldraw/tldraw/pull/4054) ([@mimecuvalo](https://github.com/mimecuvalo))
1545
-
1546
- #### 🐛 Bug Fixes
1547
-
1548
- - license: fix up watermark in prod [#4252](https://github.com/tldraw/tldraw/pull/4252) ([@mimecuvalo](https://github.com/mimecuvalo))
1549
- - db: add fallback for FF versions < 126 [#4240](https://github.com/tldraw/tldraw/pull/4240) ([@mimecuvalo](https://github.com/mimecuvalo))
1550
- - Fix snapshots prop [#4233](https://github.com/tldraw/tldraw/pull/4233) ([@SomeHats](https://github.com/SomeHats))
1551
- - Fix watermark after breakpoints [#4216](https://github.com/tldraw/tldraw/pull/4216) ([@steveruizok](https://github.com/steveruizok))
1552
- - Force flag should override isLocked in more cases [#4214](https://github.com/tldraw/tldraw/pull/4214) ([@AlbertBrand](https://github.com/AlbertBrand) [@steveruizok](https://github.com/steveruizok))
1553
- - Fix watermark imports in published packages [#4180](https://github.com/tldraw/tldraw/pull/4180) ([@SomeHats](https://github.com/SomeHats))
1554
- - Show checked theme in color scheme menu [#4184](https://github.com/tldraw/tldraw/pull/4184) ([@steveruizok](https://github.com/steveruizok))
1555
- - Editor.run, locked shapes improvements [#4042](https://github.com/tldraw/tldraw/pull/4042) ([@steveruizok](https://github.com/steveruizok) [@SomeHats](https://github.com/SomeHats))
1556
- - Fix `/new` alert bug, make new user data stable [#4142](https://github.com/tldraw/tldraw/pull/4142) ([@ds300](https://github.com/ds300))
1557
- - use unique IDs for grid instances [#4132](https://github.com/tldraw/tldraw/pull/4132) ([@SomeHats](https://github.com/SomeHats))
1558
- - fix input coords while viewport following [#4108](https://github.com/tldraw/tldraw/pull/4108) ([@ds300](https://github.com/ds300))
1559
- - Fix paste at point [#4104](https://github.com/tldraw/tldraw/pull/4104) ([@steveruizok](https://github.com/steveruizok))
1560
- - Fix editor remounting when camera options change [#4089](https://github.com/tldraw/tldraw/pull/4089) ([@SomeHats](https://github.com/SomeHats))
1561
- - Cleanup z-indices [#4020](https://github.com/tldraw/tldraw/pull/4020) ([@steveruizok](https://github.com/steveruizok))
1562
- - Fix `<InFrontOfTheCanvas/>` [#4024](https://github.com/tldraw/tldraw/pull/4024) ([@steveruizok](https://github.com/steveruizok))
1563
- - local assets: make sure hard reset also clears out new asset db [#3979](https://github.com/tldraw/tldraw/pull/3979) ([@mimecuvalo](https://github.com/mimecuvalo))
1564
-
1565
- #### 💄 Product Improvements
1566
-
1567
- - Load watermark, and fall back to local if it fails or takes too long [#4254](https://github.com/tldraw/tldraw/pull/4254) ([@SomeHats](https://github.com/SomeHats))
1568
- - Couple of force flag test additions [#4224](https://github.com/tldraw/tldraw/pull/4224) ([@AlbertBrand](https://github.com/AlbertBrand))
1569
- - Support animating opacity. [#4242](https://github.com/tldraw/tldraw/pull/4242) ([@steveruizok](https://github.com/steveruizok))
1570
- - Allow custom tools to decide whether they can be lockable or not. [#4208](https://github.com/tldraw/tldraw/pull/4208) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1571
- - Disable outputs for tests. [#4201](https://github.com/tldraw/tldraw/pull/4201) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1572
- - Relax the params [#4190](https://github.com/tldraw/tldraw/pull/4190) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1573
- - Unify menus. Disable erroring. [#4143](https://github.com/tldraw/tldraw/pull/4143) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1574
- - [3/5] Automatically enable multiplayer UI when using demo sync [#4119](https://github.com/tldraw/tldraw/pull/4119) ([@SomeHats](https://github.com/SomeHats))
1575
- - Flip images [#4113](https://github.com/tldraw/tldraw/pull/4113) ([@steveruizok](https://github.com/steveruizok))
1576
- - Add component for `ShapeIndicators` [#4083](https://github.com/tldraw/tldraw/pull/4083) ([@steveruizok](https://github.com/steveruizok))
1577
-
1578
- #### 🎉 New Features
1579
-
1580
- - `ShapeUtil.getInterpolatedProps` [#4162](https://github.com/tldraw/tldraw/pull/4162) ([@steveruizok](https://github.com/steveruizok))
1581
- - sdk: wires up tldraw to have licensing mechanisms [#4021](https://github.com/tldraw/tldraw/pull/4021) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git) [@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
1582
- - Add "paste at cursor" option, which toggles how `cmd + v` and `cmd + shift + v` work [#4088](https://github.com/tldraw/tldraw/pull/4088) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1583
- - put sync stuff in bemo worker [#4060](https://github.com/tldraw/tldraw/pull/4060) ([@ds300](https://github.com/ds300))
1584
-
1585
- #### 🛠️ API Changes
1586
-
1587
- - Finesse sync api [#4212](https://github.com/tldraw/tldraw/pull/4212) ([@ds300](https://github.com/ds300))
1588
- - Explicitly type shape props and defaults [#4191](https://github.com/tldraw/tldraw/pull/4191) ([@SomeHats](https://github.com/SomeHats))
1589
- - Split @tldraw/state into @tldraw/state and @tldraw/state-react [#4170](https://github.com/tldraw/tldraw/pull/4170) ([@ds300](https://github.com/ds300))
1590
- - [sdk] make EffectScheduler and useStateTracking public [#4155](https://github.com/tldraw/tldraw/pull/4155) ([@ds300](https://github.com/ds300))
1591
- - [2/4] Rename sync hooks, add bookmarks to demo [#4094](https://github.com/tldraw/tldraw/pull/4094) ([@SomeHats](https://github.com/SomeHats))
1592
- - [1/4] Blob storage in TLStore [#4068](https://github.com/tldraw/tldraw/pull/4068) ([@SomeHats](https://github.com/SomeHats))
1593
-
1594
- #### Authors: 7
1595
-
1596
- - Albert Brand ([@AlbertBrand](https://github.com/AlbertBrand))
1597
- - alex ([@SomeHats](https://github.com/SomeHats))
1598
- - David Sheldrick ([@ds300](https://github.com/ds300))
1599
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
1600
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
1601
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
1602
- - Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
1603
-
1604
- ---
1605
-
1606
- # v2.3.0 (Tue Jun 25 2024)
1607
-
1608
- ### Release Notes
1609
-
1610
- #### Fix border color for following user ([#3975](https://github.com/tldraw/tldraw/pull/3975))
1611
-
1612
- - Add a brief release note for your PR here.
1613
-
1614
- #### Fix edge scrolling at odd browser zoom levels ([#3973](https://github.com/tldraw/tldraw/pull/3973))
1615
-
1616
- - Add a brief release note for your PR here.
1617
-
1618
- #### [Experiment] Allow users to use system's appearance (dark / light) mode ([#3703](https://github.com/tldraw/tldraw/pull/3703))
1619
-
1620
- - Add a brief release note for your PR here.
1621
-
1622
- #### Improve edge scrolling ([#3950](https://github.com/tldraw/tldraw/pull/3950))
1623
-
1624
- - Add a delay and easing to edge scrolling.
1625
-
1626
- #### bookmark: css tweaks ([#3955](https://github.com/tldraw/tldraw/pull/3955))
1627
-
1628
- - Bookmarks: padding tweaks
1629
-
1630
- #### Dynamic size mode + fill fill ([#3835](https://github.com/tldraw/tldraw/pull/3835))
1631
-
1632
- - Adds a dynamic size user preferences.
1633
- - Removes double click to reset scale on text shapes.
1634
- - Removes double click to reset autosize on text shapes.
1635
-
1636
- #### assets: preload fonts ([#3927](https://github.com/tldraw/tldraw/pull/3927))
1637
-
1638
- - Perf: improve font loading timing on dotcom.
1639
-
1640
- #### [tiny] getSnapshot and loadSnapshot on Editor class ([#3912](https://github.com/tldraw/tldraw/pull/3912))
1641
-
1642
- - Add a brief release note for your PR here.
1643
-
1644
- #### Flatten shapes to image(s) ([#3933](https://github.com/tldraw/tldraw/pull/3933))
1645
-
1646
- - Add Flatten, a new menu item to flatten shapes into images
1647
-
1648
- #### assets: store in indexedDB, not as base64 ([#3836](https://github.com/tldraw/tldraw/pull/3836))
1649
-
1650
- - Assets: store as reference to blob in indexedDB instead of storing directly as base64 in the snapshot.
1651
-
1652
- #### assets: make option to transform urls dynamically / LOD ([#3827](https://github.com/tldraw/tldraw/pull/3827))
1653
-
1654
- - Assets: make option to transform urls dynamically to provide different sized images on demand.
1655
-
1656
- ---
1657
-
1658
- #### 📚 SDK Changes
1659
-
1660
- - assets: mark assetOptions as internal [#4014](https://github.com/tldraw/tldraw/pull/4014) ([@mimecuvalo](https://github.com/mimecuvalo))
1661
- - better auto-generated docs for Tldraw and TldrawEditor [#4012](https://github.com/tldraw/tldraw/pull/4012) ([@SomeHats](https://github.com/SomeHats))
1662
- - Fix border color for following user [#3975](https://github.com/tldraw/tldraw/pull/3975) ([@ds300](https://github.com/ds300))
1663
- - Fix edge scrolling at odd browser zoom levels [#3973](https://github.com/tldraw/tldraw/pull/3973) ([@ds300](https://github.com/ds300))
1664
- - [Experiment] Allow users to use system's appearance (dark / light) mode [#3703](https://github.com/tldraw/tldraw/pull/3703) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1665
- - Improve edge scrolling [#3950](https://github.com/tldraw/tldraw/pull/3950) ([@steveruizok](https://github.com/steveruizok))
1666
- - bookmark: css tweaks [#3955](https://github.com/tldraw/tldraw/pull/3955) ([@mimecuvalo](https://github.com/mimecuvalo))
1667
- - Dynamic size mode + fill fill [#3835](https://github.com/tldraw/tldraw/pull/3835) ([@steveruizok](https://github.com/steveruizok) [@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
1668
- - [tiny] getSnapshot and loadSnapshot on Editor class [#3912](https://github.com/tldraw/tldraw/pull/3912) ([@ds300](https://github.com/ds300))
1669
- - Flatten shapes to image(s) [#3933](https://github.com/tldraw/tldraw/pull/3933) ([@steveruizok](https://github.com/steveruizok))
1670
- - assets: store in indexedDB, not as base64 [#3836](https://github.com/tldraw/tldraw/pull/3836) ([@mimecuvalo](https://github.com/mimecuvalo))
1671
- - image: follow-up fixes for LOD [#3934](https://github.com/tldraw/tldraw/pull/3934) ([@mimecuvalo](https://github.com/mimecuvalo))
1672
- - assets: make option to transform urls dynamically / LOD [#3827](https://github.com/tldraw/tldraw/pull/3827) ([@mimecuvalo](https://github.com/mimecuvalo))
1673
- - security: enforce use of our fetch function and its default referrerpolicy [#3884](https://github.com/tldraw/tldraw/pull/3884) ([@mimecuvalo](https://github.com/mimecuvalo))
1674
-
1675
- #### 🖥️ tldraw.com Changes
1676
-
1677
- - assets: preload fonts [#3927](https://github.com/tldraw/tldraw/pull/3927) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
1678
-
1679
- #### 📖 Documentation changes
1680
-
1681
- - Document inherited members in reference [#3956](https://github.com/tldraw/tldraw/pull/3956) ([@SomeHats](https://github.com/SomeHats))
1682
- - Better generated docs for react components [#3930](https://github.com/tldraw/tldraw/pull/3930) ([@SomeHats](https://github.com/SomeHats))
1683
-
1684
- #### Authors: 7
1685
-
1686
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
1687
- - alex ([@SomeHats](https://github.com/SomeHats))
1688
- - David Sheldrick ([@ds300](https://github.com/ds300))
1689
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
1690
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
1691
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
1692
- - Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
1693
-
1694
- ---
1695
-
1696
- # v2.2.0 (Tue Jun 11 2024)
1697
-
1698
- ### Release Notes
1699
-
1700
- #### Cropping undo/redo UX ([#3891](https://github.com/tldraw/tldraw/pull/3891))
1701
-
1702
- - Add a brief release note for your PR here.
1703
-
1704
- #### Bindings tests ([#3800](https://github.com/tldraw/tldraw/pull/3800))
1705
-
1706
- - Add a brief release note for your PR here.
1707
-
1708
- #### bookmark: fix up double request and rework extractor ([#3856](https://github.com/tldraw/tldraw/pull/3856))
1709
-
1710
- - Bookmarks: fix up double request and rework extractor code.
1711
-
1712
- #### Add option for max points per draw shape ([#3900](https://github.com/tldraw/tldraw/pull/3900))
1713
-
1714
- - SDK: Add option for controlling max length of draw shapes
1715
-
1716
- #### Bindings onBeforeShapeIsolate? ([#3871](https://github.com/tldraw/tldraw/pull/3871))
1717
-
1718
- - Add a brief release note for your PR here.
1719
-
1720
- #### [DX] sensible defaults for createTLStore ([#3886](https://github.com/tldraw/tldraw/pull/3886))
1721
-
1722
- - Add a brief release note for your PR here.
1723
-
1724
- #### Editor.blur method ([#3875](https://github.com/tldraw/tldraw/pull/3875))
1725
-
1726
- - Add a brief release note for your PR here.
1727
-
1728
- #### Prevent stale shape data in render ([#3882](https://github.com/tldraw/tldraw/pull/3882))
1729
-
1730
- - Add a brief release note for your PR here.
1731
-
1732
- #### Fix drag distance ([#3873](https://github.com/tldraw/tldraw/pull/3873))
1733
-
1734
- - Fixed a bug where the minimum distance for a drag was wrong when zoomed in or out.
1735
-
1736
- #### editor: register timeouts/intervals/rafs for disposal ([#3852](https://github.com/tldraw/tldraw/pull/3852))
1737
-
1738
- - Editor: add registry of timeouts/intervals/rafs
1739
-
1740
- #### Snapshots pit of success ([#3811](https://github.com/tldraw/tldraw/pull/3811))
1741
-
1742
- - Add a brief release note for your PR here.
1743
-
1744
- #### [bugfix] Preserve redo stack when selection changes ([#3862](https://github.com/tldraw/tldraw/pull/3862))
1745
-
1746
- - Add a brief release note for your PR here.
1747
-
1748
- #### Add `select` option to `Editor.groupShapes` and `Editor.ungroupShapes` ([#3690](https://github.com/tldraw/tldraw/pull/3690))
1749
-
1750
- - Add a brief release note for your PR here.
1751
-
1752
- #### text labels: address some rendering inconsistencies with the content vs. textarea ([#3830](https://github.com/tldraw/tldraw/pull/3830))
1753
-
1754
- - Text labels: fix some inconsistencies with rendering.
1755
-
1756
- #### Move constants to options prop ([#3799](https://github.com/tldraw/tldraw/pull/3799))
1757
-
1758
- You can now override many options which were previously hard-coded constants. Pass an `options` prop into the tldraw component to change the maximum number of pages, grid steps, or other previously hard-coded values. See `TldrawOptions` for more
1759
-
1760
- #### [fix] setCamera animates to constrained viewport ([#3828](https://github.com/tldraw/tldraw/pull/3828))
1761
-
1762
- - Add a brief release note for your PR here.
1763
-
1764
- #### Add heart geo shape ([#3787](https://github.com/tldraw/tldraw/pull/3787))
1765
-
1766
- - Adds a heart shape to the geo shape set.
1767
-
1768
- #### rework canBind callback ([#3797](https://github.com/tldraw/tldraw/pull/3797))
1769
-
1770
- #### Breaking changes
1771
- The `canBind` flag now accepts an options object instead of just the shape in question. If you're relying on its arguments, you need to change from `canBind(shape) {}` to `canBind({shape}) {}`.
1772
-
1773
- #### fix coarse pointer detection ([#3795](https://github.com/tldraw/tldraw/pull/3795))
1774
-
1775
- - Fix a bug where coarse-pointer mode would get incorrectly detected on some touch devices
1776
-
1777
- #### Tighten up zoom to fit padding ([#3798](https://github.com/tldraw/tldraw/pull/3798))
1778
-
1779
- - Reduce padding when zooming to fit.
1780
-
1781
- #### Fix spacebar/mmb panning bug. ([#3791](https://github.com/tldraw/tldraw/pull/3791))
1782
-
1783
- - Fix bug with panning
1784
-
1785
- #### [bugfix] Cleanup input state after middle-click-to-pan ([#3792](https://github.com/tldraw/tldraw/pull/3792))
1786
-
1787
- - Add a brief release note for your PR here.
1788
-
1789
- #### Move InFrontOfTheCanvas ([#3782](https://github.com/tldraw/tldraw/pull/3782))
1790
-
1791
- - Add a brief release note for your PR here.
1792
-
1793
- #### fix flipping for arrows ([#3780](https://github.com/tldraw/tldraw/pull/3780))
1794
-
1795
- - Add a brief release note for your PR here.
1796
-
1797
- #### [bugfix?] End interactions before switching page ([#3771](https://github.com/tldraw/tldraw/pull/3771))
1798
-
1799
- - Add a brief release note for your PR here.
1800
-
1801
- #### Prevent wobble during viewport following ([#3695](https://github.com/tldraw/tldraw/pull/3695))
1802
-
1803
- - Fixes a bug that caused the cursor & shapes to wiggle around when following someone else's viewport
1804
-
1805
- #### Bump max shapes to 4000 ([#3716](https://github.com/tldraw/tldraw/pull/3716))
1806
-
1807
- - Increase maximum number of shapes per page from 2000 to 4000.
1808
-
1809
- #### Allow DefaultErrorFallback to be used independently ([#3769](https://github.com/tldraw/tldraw/pull/3769))
1810
-
1811
- - Add a brief release note for your PR here.
1812
-
1813
- #### focus: rework and untangle existing focus management logic in the sdk ([#3718](https://github.com/tldraw/tldraw/pull/3718))
1814
-
1815
- - Focus: rework and untangle existing focus management logic in the SDK
1816
-
1817
- #### [bindings] beforeUnbind/afterUnbind to replace beforeDelete/afterDelete ([#3761](https://github.com/tldraw/tldraw/pull/3761))
1818
-
1819
- - Add a brief release note for your PR here.
1820
-
1821
- #### No defaults for contexts ([#3750](https://github.com/tldraw/tldraw/pull/3750))
1822
-
1823
- `useEditor` and other context-based hooks will now throw an error when used out-of-context, instead of returning a fake value.
1824
-
1825
- #### Store-level "operation end" event ([#3748](https://github.com/tldraw/tldraw/pull/3748))
1826
-
1827
- #### Breaking changes
1828
- `editor.registerBatchCompleteHandler` has been replaced with `editor.registerOperationCompleteHandler`
1829
-
1830
- #### Fix imports in Astro ([#3742](https://github.com/tldraw/tldraw/pull/3742))
1831
-
1832
- - Fix bug effecting imports in Astro.
1833
-
1834
- #### Move arrow helpers from editor to tldraw ([#3721](https://github.com/tldraw/tldraw/pull/3721))
1835
-
1836
- #### Breaking changes
1837
- - `editor.getArrowInfo(shape)` has been replaced with `getArrowInfo(editor, shape)`
1838
- - `editor.getArrowsBoundTo(shape)` has been removed. Instead, use `editor.getBindingsToShape(shape, 'arrow')` and follow the `fromId` of each binding to the corresponding arrow shape
1839
- - These types have moved from `@tldraw/editor` to `tldraw`:
1840
- - `TLArcInfo`
1841
- - `TLArrowInfo`
1842
- - `TLArrowPoint`
1843
- - `WeakMapCache` has been removed
1844
-
1845
- #### Bindings ([#3326](https://github.com/tldraw/tldraw/pull/3326))
1846
-
1847
- #### Breaking changes
1848
- - The `start` and `end` properties on `TLArrowShape` no longer have `type: point | binding`. Instead, they're always a point, which may be out of date if a binding exists. To check for & retrieve arrow bindings, use `getArrowBindings(editor, shape)` instead.
1849
- - `getArrowTerminalsInArrowSpace` must be passed a `TLArrowBindings` as a third argument: `getArrowTerminalsInArrowSpace(editor, shape, getArrowBindings(editor, shape))`
1850
- - The following types have been renamed:
1851
- - `ShapeProps` -> `RecordProps`
1852
- - `ShapePropsType` -> `RecordPropsType`
1853
- - `TLShapePropsMigrations` -> `TLPropsMigrations`
1854
- - `SchemaShapeInfo` -> `SchemaPropsInfo`
1855
-
1856
- #### Camera options ([#3282](https://github.com/tldraw/tldraw/pull/3282))
1857
-
1858
- - SDK: Adds camera options.
1859
-
1860
- #### Prevent duplicate from creating any shapes if we reach max allowed shapes ([#3692](https://github.com/tldraw/tldraw/pull/3692))
1861
-
1862
- - Prevent duplicating shapes if we would go over the maximum shape limit. It's now an all or nothing operation, where as before some shapes would get created.
1863
-
1864
- #### textfields: fix RTL layout for SVG exports ([#3680](https://github.com/tldraw/tldraw/pull/3680))
1865
-
1866
- - [Add a brief release note for your PR here.](textfields: fix RTL layout for SVG exports)
1867
-
1868
- #### Fix viewport following ([#3681](https://github.com/tldraw/tldraw/pull/3681))
1869
-
1870
- - Fixes an issue where viewport following was not working
1871
-
1872
- #### Fix className.includes bug ([#3672](https://github.com/tldraw/tldraw/pull/3672))
1873
-
1874
- - Fixes a rare bug effecting text shapes on mobile.
1875
-
1876
- #### fix android long press changing cursor to non-coarse ([#3656](https://github.com/tldraw/tldraw/pull/3656))
1877
-
1878
- - Add a brief release note for your PR here.
1879
-
1880
- #### [bugfix] don't crash if a bound shape doesn't exist ([#3653](https://github.com/tldraw/tldraw/pull/3653))
1881
-
1882
- - fixes an edge case in multiplayer rooms where the room can crash if an arrow's bound shape is deleted by a peer
1883
-
1884
- #### textfields: for unfilled geo shapes fix edit->edit ([#3577](https://github.com/tldraw/tldraw/pull/3577))
1885
-
1886
- - Text labels: fix edit→edit not working as expected when unfilled geo shapes are on 'top' of other shapes.
1887
-
1888
- #### Separate text-align property for shapes ([#3627](https://github.com/tldraw/tldraw/pull/3627))
1889
-
1890
- - Separates the text align property for text shapes and labels.
1891
-
1892
- #### Fix text resizing with alt key ([#3632](https://github.com/tldraw/tldraw/pull/3632))
1893
-
1894
- - Fixed a bug with resizing text shapes from the left and right while holding alt.
1895
-
1896
- #### Don't hover locked shapes ([#3575](https://github.com/tldraw/tldraw/pull/3575))
1897
-
1898
- - Fixed a bug with locked shapes being hoverable.
1899
-
1900
- #### Make coarse pointer check dynamic ([#3572](https://github.com/tldraw/tldraw/pull/3572))
1901
-
1902
- - Add a brief release note for your PR here.
1903
-
1904
- ---
1905
-
1906
- #### 🐛 Bug Fix
1907
-
1908
- - Lokalise: Translations update [#3649](https://github.com/tldraw/tldraw/pull/3649) ([@TodePond](https://github.com/TodePond))
1909
-
1910
- #### 🏎 Performance
1911
-
1912
- - Incremental bindings index [#3685](https://github.com/tldraw/tldraw/pull/3685) ([@ds300](https://github.com/ds300))
1913
-
1914
- #### 📚 SDK Changes
1915
-
1916
- - Cropping undo/redo UX [#3891](https://github.com/tldraw/tldraw/pull/3891) ([@ds300](https://github.com/ds300))
1917
- - Bindings tests [#3800](https://github.com/tldraw/tldraw/pull/3800) ([@ds300](https://github.com/ds300))
1918
- - Add option for max points per draw shape [#3900](https://github.com/tldraw/tldraw/pull/3900) ([@steveruizok](https://github.com/steveruizok))
1919
- - Bindings onBeforeShapeIsolate? [#3871](https://github.com/tldraw/tldraw/pull/3871) ([@ds300](https://github.com/ds300))
1920
- - [DX] sensible defaults for createTLStore [#3886](https://github.com/tldraw/tldraw/pull/3886) ([@ds300](https://github.com/ds300))
1921
- - Editor.blur method [#3875](https://github.com/tldraw/tldraw/pull/3875) ([@ds300](https://github.com/ds300))
1922
- - Prevent stale shape data in render [#3882](https://github.com/tldraw/tldraw/pull/3882) ([@ds300](https://github.com/ds300))
1923
- - Fix drag distance [#3873](https://github.com/tldraw/tldraw/pull/3873) ([@steveruizok](https://github.com/steveruizok))
1924
- - editor: register timeouts/intervals/rafs for disposal [#3852](https://github.com/tldraw/tldraw/pull/3852) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
1925
- - Snapshots pit of success [#3811](https://github.com/tldraw/tldraw/pull/3811) ([@ds300](https://github.com/ds300))
1926
- - [bugfix] Preserve redo stack when selection changes [#3862](https://github.com/tldraw/tldraw/pull/3862) ([@ds300](https://github.com/ds300))
1927
- - Add `select` option to `Editor.groupShapes` and `Editor.ungroupShapes` [#3690](https://github.com/tldraw/tldraw/pull/3690) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git) [@steveruizok](https://github.com/steveruizok))
1928
- - chore: cleanup z-indices so that they're all clearly listed [#3855](https://github.com/tldraw/tldraw/pull/3855) ([@mimecuvalo](https://github.com/mimecuvalo))
1929
- - text labels: address some rendering inconsistencies with the content vs. textarea [#3830](https://github.com/tldraw/tldraw/pull/3830) ([@mimecuvalo](https://github.com/mimecuvalo))
1930
- - Move constants to options prop [#3799](https://github.com/tldraw/tldraw/pull/3799) ([@SomeHats](https://github.com/SomeHats))
1931
- - [fix] setCamera animates to constrained viewport [#3828](https://github.com/tldraw/tldraw/pull/3828) ([@ds300](https://github.com/ds300))
1932
- - Add heart geo shape [#3787](https://github.com/tldraw/tldraw/pull/3787) ([@steveruizok](https://github.com/steveruizok))
1933
- - rework canBind callback [#3797](https://github.com/tldraw/tldraw/pull/3797) ([@SomeHats](https://github.com/SomeHats))
1934
- - Force `interface` instead of `type` for better docs [#3815](https://github.com/tldraw/tldraw/pull/3815) ([@SomeHats](https://github.com/SomeHats))
1935
- - fix coarse pointer detection [#3795](https://github.com/tldraw/tldraw/pull/3795) ([@SomeHats](https://github.com/SomeHats))
1936
- - Tighten up zoom to fit padding [#3798](https://github.com/tldraw/tldraw/pull/3798) ([@steveruizok](https://github.com/steveruizok))
1937
- - Fix spacebar/mmb panning bug. [#3791](https://github.com/tldraw/tldraw/pull/3791) ([@steveruizok](https://github.com/steveruizok))
1938
- - [bugfix] Cleanup input state after middle-click-to-pan [#3792](https://github.com/tldraw/tldraw/pull/3792) ([@ds300](https://github.com/ds300))
1939
- - Move InFrontOfTheCanvas [#3782](https://github.com/tldraw/tldraw/pull/3782) ([@ds300](https://github.com/ds300))
1940
- - fix flipping for arrows [#3780](https://github.com/tldraw/tldraw/pull/3780) ([@ds300](https://github.com/ds300))
1941
- - [bugfix?] End interactions before switching page [#3771](https://github.com/tldraw/tldraw/pull/3771) ([@ds300](https://github.com/ds300))
1942
- - Prevent wobble during viewport following [#3695](https://github.com/tldraw/tldraw/pull/3695) ([@ds300](https://github.com/ds300))
1943
- - Bump max shapes to 4000 [#3716](https://github.com/tldraw/tldraw/pull/3716) ([@steveruizok](https://github.com/steveruizok))
1944
- - Allow DefaultErrorFallback to be used independently [#3769](https://github.com/tldraw/tldraw/pull/3769) ([@ds300](https://github.com/ds300))
1945
- - focus: rework and untangle existing focus management logic in the sdk [#3718](https://github.com/tldraw/tldraw/pull/3718) ([@mimecuvalo](https://github.com/mimecuvalo))
1946
- - [bindings] beforeUnbind/afterUnbind to replace beforeDelete/afterDelete [#3761](https://github.com/tldraw/tldraw/pull/3761) ([@ds300](https://github.com/ds300))
1947
- - No defaults for contexts [#3750](https://github.com/tldraw/tldraw/pull/3750) ([@SomeHats](https://github.com/SomeHats))
1948
- - Store-level "operation end" event [#3748](https://github.com/tldraw/tldraw/pull/3748) ([@SomeHats](https://github.com/SomeHats))
1949
- - Fix imports in Astro [#3742](https://github.com/tldraw/tldraw/pull/3742) ([@steveruizok](https://github.com/steveruizok))
1950
- - Move arrow helpers from editor to tldraw [#3721](https://github.com/tldraw/tldraw/pull/3721) ([@SomeHats](https://github.com/SomeHats))
1951
- - Bindings [#3326](https://github.com/tldraw/tldraw/pull/3326) ([@SomeHats](https://github.com/SomeHats))
1952
- - Camera options followups [#3701](https://github.com/tldraw/tldraw/pull/3701) ([@steveruizok](https://github.com/steveruizok))
1953
- - Camera options [#3282](https://github.com/tldraw/tldraw/pull/3282) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
1954
- - Prevent duplicate from creating any shapes if we reach max allowed shapes [#3692](https://github.com/tldraw/tldraw/pull/3692) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1955
- - textfields: fix RTL layout for SVG exports [#3680](https://github.com/tldraw/tldraw/pull/3680) ([@mimecuvalo](https://github.com/mimecuvalo) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
1956
- - Fix viewport following [#3681](https://github.com/tldraw/tldraw/pull/3681) ([@ds300](https://github.com/ds300))
1957
- - Fix className.includes bug [#3672](https://github.com/tldraw/tldraw/pull/3672) ([@steveruizok](https://github.com/steveruizok))
1958
- - fix undo/redo issues [#3658](https://github.com/tldraw/tldraw/pull/3658) ([@SomeHats](https://github.com/SomeHats))
1959
- - [bugfix] don't crash if a bound shape doesn't exist [#3653](https://github.com/tldraw/tldraw/pull/3653) ([@ds300](https://github.com/ds300))
1960
- - textfields: for unfilled geo shapes fix edit->edit [#3577](https://github.com/tldraw/tldraw/pull/3577) ([@mimecuvalo](https://github.com/mimecuvalo))
1961
- - Separate text-align property for shapes [#3627](https://github.com/tldraw/tldraw/pull/3627) ([@steveruizok](https://github.com/steveruizok) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
1962
- - Fix text resizing with alt key [#3632](https://github.com/tldraw/tldraw/pull/3632) ([@steveruizok](https://github.com/steveruizok))
1963
- - Don't hover locked shapes [#3575](https://github.com/tldraw/tldraw/pull/3575) ([@steveruizok](https://github.com/steveruizok))
1964
- - Automatic undo/redo [#3364](https://github.com/tldraw/tldraw/pull/3364) ([@SomeHats](https://github.com/SomeHats))
1965
-
1966
- #### 🖥️ tldraw.com Changes
1967
-
1968
- - bookmark: fix up double request and rework extractor [#3856](https://github.com/tldraw/tldraw/pull/3856) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
1969
- - fix android long press changing cursor to non-coarse [#3656](https://github.com/tldraw/tldraw/pull/3656) ([@TodePond](https://github.com/TodePond))
1970
- - Make coarse pointer check dynamic [#3572](https://github.com/tldraw/tldraw/pull/3572) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git) [@steveruizok](https://github.com/steveruizok))
1971
-
1972
- #### 📖 Documentation changes
1973
-
1974
- - make sure everything marked @public gets documented [#3892](https://github.com/tldraw/tldraw/pull/3892) ([@SomeHats](https://github.com/SomeHats))
1975
- - Bindings documentation [#3812](https://github.com/tldraw/tldraw/pull/3812) ([@SomeHats](https://github.com/SomeHats))
1976
-
1977
- #### 🏠 Internal
1978
-
1979
- - Update READMEs, add form link [#3741](https://github.com/tldraw/tldraw/pull/3741) ([@steveruizok](https://github.com/steveruizok))
1980
- - Measure action durations and fps for our interactions [#3472](https://github.com/tldraw/tldraw/pull/3472) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1981
- - Don't check api.json files into git [#3565](https://github.com/tldraw/tldraw/pull/3565) ([@SomeHats](https://github.com/SomeHats))
1982
-
1983
- #### Authors: 8
1984
-
1985
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
1986
- - alex ([@SomeHats](https://github.com/SomeHats))
1987
- - David Sheldrick ([@ds300](https://github.com/ds300))
1988
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
1989
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
1990
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
1991
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
1992
- - Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
1993
-
1994
- ---
1995
-
1996
- # v2.1.0 (Tue Apr 23 2024)
1997
-
1998
- ### Release Notes
1999
-
2000
- #### WebGL Minimap ([#3510](https://github.com/tldraw/tldraw/pull/3510))
2001
-
2002
- - Add a brief release note for your PR here.
2003
-
2004
- #### Fix culling. ([#3504](https://github.com/tldraw/tldraw/pull/3504))
2005
-
2006
- - Fix culling.
2007
-
2008
- #### Color tweaks (light and dark mode) ([#3486](https://github.com/tldraw/tldraw/pull/3486))
2009
-
2010
- - Adjusts colors
2011
-
2012
- #### Add slides example ([#3467](https://github.com/tldraw/tldraw/pull/3467))
2013
-
2014
- - Docs: Added a slideshow example
2015
-
2016
- #### New migrations again ([#3220](https://github.com/tldraw/tldraw/pull/3220))
2017
-
2018
- #### BREAKING CHANGES
2019
-
2020
- - The `Migrations` type is now called `LegacyMigrations`.
2021
- - The serialized schema format (e.g. returned by `StoreSchema.serialize()` and `Store.getSnapshot()`) has changed. You don't need to do anything about it unless you were reading data directly from the schema for some reason. In which case it'd be best to avoid that in the future! We have no plans to change the schema format again (this time was traumatic enough) but you never know.
2022
- - `compareRecordVersions` and the `RecordVersion` type have both disappeared. There is no replacement. These were public by mistake anyway, so hopefully nobody had been using it.
2023
- - `compareSchemas` is gone. Comparing the schemas directly is no longer really possible since we introduced some fuzziness. The best thing to do now to check compatibility is to call `schema.getMigraitonsSince(prevSchema)` and it will return an error if the schemas are not compatible, an empty array if there are no migrations to apply since the prev schema, and a nonempty array otherwise.
2024
-
2025
- Generally speaking, the best way to check schema compatibility now is to call `store.schema.getMigrationsSince(persistedSchema)`. This will throw an error if there is no upgrade path from the `persistedSchema` to the current version.
2026
-
2027
- - `defineMigrations` has been deprecated and will be removed in a future release. For upgrade instructions see https://tldraw.dev/docs/persistence#Updating-legacy-shape-migrations-defineMigrations
2028
-
2029
- - `migrate` has been removed. Nobody should have been using this but if you were you'll need to find an alternative. For migrating tldraw data, you should stick to using `schema.migrateStoreSnapshot` and, if you are building a nuanced sync engine that supports some amount of backwards compatibility, also feel free to use `schema.migratePersistedRecord`.
2030
- - the `Migration` type has changed. If you need the old one for some reason it has been renamed to `LegacyMigration`. It will be removed in a future release.
2031
- - the `Migrations` type has been renamed to `LegacyMigrations` and will be removed in a future release.
2032
- - the `SerializedSchema` type has been augmented. If you need the old version specifically you can use `SerializedSchemaV1`
2033
-
2034
- #### Stickies: release candidate ([#3249](https://github.com/tldraw/tldraw/pull/3249))
2035
-
2036
- - Improves sticky notes (see list)
2037
-
2038
- #### Cancel pointer velocity while pinching ([#3462](https://github.com/tldraw/tldraw/pull/3462))
2039
-
2040
- - Fixed a bug that could occur while pinching with the hand tool selected.
2041
-
2042
- #### Faster selection / erasing ([#3454](https://github.com/tldraw/tldraw/pull/3454))
2043
-
2044
- - Improve performance of minimum distance checks.
2045
-
2046
- #### Perf: Improve text outline performance ([#3429](https://github.com/tldraw/tldraw/pull/3429))
2047
-
2048
- - Improves performance of text shapes on iOS / Safari.
2049
-
2050
- #### Perf: block hit tests while moving camera ([#3418](https://github.com/tldraw/tldraw/pull/3418))
2051
-
2052
- - Improves performance of canvas while the camera is moving.
2053
-
2054
- #### Perf: (slightly) faster min dist checks ([#3401](https://github.com/tldraw/tldraw/pull/3401))
2055
-
2056
- - Performance: small improvements to hit testing.
2057
-
2058
- #### Add long press event ([#3275](https://github.com/tldraw/tldraw/pull/3275))
2059
-
2060
- - Add support for long pressing on desktop.
2061
-
2062
- #### Input buffering ([#3223](https://github.com/tldraw/tldraw/pull/3223))
2063
-
2064
- - Add a brief release note for your PR here.
2065
-
2066
- #### Don't trigger pointer move on zoom ([#3305](https://github.com/tldraw/tldraw/pull/3305))
2067
-
2068
- - Improve performance of zooming.
2069
-
2070
- #### Improve performance of culling ([#3272](https://github.com/tldraw/tldraw/pull/3272))
2071
-
2072
- - Improve performance of the canvas when many shapes are present.
2073
-
2074
- #### ui: make toasts look more toasty ([#2988](https://github.com/tldraw/tldraw/pull/2988))
2075
-
2076
- - UI: Add severity to toasts.
2077
-
2078
- #### textfields [1 of 3]: add text into speech bubble; also add rich text example ([#3050](https://github.com/tldraw/tldraw/pull/3050))
2079
-
2080
- - Refactor textfields be composable/swappable.
2081
-
2082
- #### Fix lag while panning + translating at the same time ([#3186](https://github.com/tldraw/tldraw/pull/3186))
2083
-
2084
- - Add a brief release note for your PR here.
2085
-
2086
- #### [fix] Batch tick events ([#3181](https://github.com/tldraw/tldraw/pull/3181))
2087
-
2088
- - Fix a performance issue effecting resizing multiple shapes.
2089
-
2090
- #### [tinyish] Simplify / skip some work in Shape ([#3176](https://github.com/tldraw/tldraw/pull/3176))
2091
-
2092
- - SDK: minor improvements to the Shape component
2093
-
2094
- #### [tiny] Slightly more efficient selection rotated page bounds / page bounds ([#3178](https://github.com/tldraw/tldraw/pull/3178))
2095
-
2096
- - SDK, slightly more performant selection bounds calculations.
2097
-
2098
- #### [fix] Handles extra renders ([#3172](https://github.com/tldraw/tldraw/pull/3172))
2099
-
2100
- - SDK: Fixed a minor rendering issue related to handles.
2101
-
2102
- #### [fix] Cleanup text measures ([#3169](https://github.com/tldraw/tldraw/pull/3169))
2103
-
2104
- - Fixed a bug that could cause multiple text measurement divs in development mode.
2105
-
2106
- #### [perf] Reinstate render throttling ([#3160](https://github.com/tldraw/tldraw/pull/3160))
2107
-
2108
- - Add a brief release note for your PR here.
2109
-
2110
- #### Fix validation errors for `duplicateProps` ([#3065](https://github.com/tldraw/tldraw/pull/3065))
2111
-
2112
- - Add a brief release note for your PR here.
2113
-
2114
- #### Protect local storage calls ([#3043](https://github.com/tldraw/tldraw/pull/3043))
2115
-
2116
- - Fixes a bug that could cause crashes in React Native webviews.
2117
-
2118
- #### Expose `getStyleForNextShape` ([#3039](https://github.com/tldraw/tldraw/pull/3039))
2119
-
2120
- - Expose the API for `Editor.getStyleForNextShape`, previously marked as internal.
2121
-
2122
- #### Show a broken image for files without assets ([#2990](https://github.com/tldraw/tldraw/pull/2990))
2123
-
2124
- - Better handling of broken images / videos.
2125
-
2126
- #### Selection UI example (plus fixes to pageToScreen) ([#3015](https://github.com/tldraw/tldraw/pull/3015))
2127
-
2128
- - Adds selection UI example.
2129
- - Adds `Editor.getSelectionRotatedScreenBounds` method
2130
- - Fixes a bug with `pageToScreen`.
2131
-
2132
- #### [bugfix] Avoid randomness at init time to allow running on cloudflare. ([#3016](https://github.com/tldraw/tldraw/pull/3016))
2133
-
2134
- - Prevent using randomness API at init time, to allow importing the tldraw package in a cloudflare worker.
2135
-
2136
- ---
2137
-
2138
- #### 💥 Breaking Change
2139
-
2140
- - React-powered SVG exports [#3117](https://github.com/tldraw/tldraw/pull/3117) ([@SomeHats](https://github.com/SomeHats) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
2141
- - Component-based toolbar customisation API [#3067](https://github.com/tldraw/tldraw/pull/3067) ([@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok))
2142
-
2143
- #### 🚀 Enhancement
2144
-
2145
- - textfields [1 of 3]: add text into speech bubble; also add rich text example [#3050](https://github.com/tldraw/tldraw/pull/3050) ([@mimecuvalo](https://github.com/mimecuvalo))
2146
- - Selection UI example (plus fixes to pageToScreen) [#3015](https://github.com/tldraw/tldraw/pull/3015) ([@steveruizok](https://github.com/steveruizok))
2147
-
2148
- #### 📚 SDK Changes
2149
-
2150
- - WebGL Minimap [#3510](https://github.com/tldraw/tldraw/pull/3510) ([@ds300](https://github.com/ds300))
2151
- - textfields: on mobile edit->edit, allow going to empty geo [#3469](https://github.com/tldraw/tldraw/pull/3469) ([@mimecuvalo](https://github.com/mimecuvalo))
2152
- - Color tweaks (light and dark mode) [#3486](https://github.com/tldraw/tldraw/pull/3486) ([@steveruizok](https://github.com/steveruizok) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
2153
- - Stickies: fix sticky note clipping [#3503](https://github.com/tldraw/tldraw/pull/3503) ([@steveruizok](https://github.com/steveruizok))
2154
- - css more shapes that need transparent behavior [#3497](https://github.com/tldraw/tldraw/pull/3497) ([@mimecuvalo](https://github.com/mimecuvalo))
2155
- - [fix] use page point for pointer [#3476](https://github.com/tldraw/tldraw/pull/3476) ([@ds300](https://github.com/ds300))
2156
- - perf: calculate hypoteneuse manually instead of using hypot [#3468](https://github.com/tldraw/tldraw/pull/3468) ([@mimecuvalo](https://github.com/mimecuvalo))
2157
- - New migrations again [#3220](https://github.com/tldraw/tldraw/pull/3220) ([@ds300](https://github.com/ds300) [@steveruizok](https://github.com/steveruizok))
2158
- - Stickies: release candidate [#3249](https://github.com/tldraw/tldraw/pull/3249) ([@steveruizok](https://github.com/steveruizok) [@mimecuvalo](https://github.com/mimecuvalo) [@TodePond](https://github.com/TodePond) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
2159
- - Cancel pointer velocity while pinching [#3462](https://github.com/tldraw/tldraw/pull/3462) ([@steveruizok](https://github.com/steveruizok))
2160
- - Perf: Use a computed cache for masked shape page bounds [#3460](https://github.com/tldraw/tldraw/pull/3460) ([@steveruizok](https://github.com/steveruizok))
2161
- - Faster selection / erasing [#3454](https://github.com/tldraw/tldraw/pull/3454) ([@steveruizok](https://github.com/steveruizok))
2162
- - Remove docs for Editor.batch [#3451](https://github.com/tldraw/tldraw/pull/3451) ([@steveruizok](https://github.com/steveruizok))
2163
- - Fix panning. [#3445](https://github.com/tldraw/tldraw/pull/3445) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2164
- - Fix SVG exports in Next.js [#3446](https://github.com/tldraw/tldraw/pull/3446) ([@SomeHats](https://github.com/SomeHats))
2165
- - Improve hand dragging with long press [#3432](https://github.com/tldraw/tldraw/pull/3432) ([@steveruizok](https://github.com/steveruizok))
2166
- - Perf: Incremental culled shapes calculation. [#3411](https://github.com/tldraw/tldraw/pull/3411) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
2167
- - Perf: Improve text outline performance [#3429](https://github.com/tldraw/tldraw/pull/3429) ([@steveruizok](https://github.com/steveruizok))
2168
- - Fix some tests [#3403](https://github.com/tldraw/tldraw/pull/3403) ([@steveruizok](https://github.com/steveruizok))
2169
- - Fix text bug on iOS [#3423](https://github.com/tldraw/tldraw/pull/3423) ([@steveruizok](https://github.com/steveruizok))
2170
- - Perf: block hit tests while moving camera [#3418](https://github.com/tldraw/tldraw/pull/3418) ([@steveruizok](https://github.com/steveruizok))
2171
- - Perf: slightly faster `getShapeAtPoint` [#3416](https://github.com/tldraw/tldraw/pull/3416) ([@steveruizok](https://github.com/steveruizok))
2172
- - Perf: (slightly) faster min dist checks [#3401](https://github.com/tldraw/tldraw/pull/3401) ([@steveruizok](https://github.com/steveruizok))
2173
- - Fix an issue with layers when moving shapes. [#3380](https://github.com/tldraw/tldraw/pull/3380) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2174
- - [culling] minimal culled diff with webgl [#3377](https://github.com/tldraw/tldraw/pull/3377) ([@steveruizok](https://github.com/steveruizok))
2175
- - put `getCurrentPageId` into a computed [#3378](https://github.com/tldraw/tldraw/pull/3378) ([@steveruizok](https://github.com/steveruizok))
2176
- - Add long press event [#3275](https://github.com/tldraw/tldraw/pull/3275) ([@steveruizok](https://github.com/steveruizok))
2177
- - Fix blur bug in editable text [#3343](https://github.com/tldraw/tldraw/pull/3343) ([@steveruizok](https://github.com/steveruizok))
2178
- - textfields: fix regression with Text shape and resizing [#3333](https://github.com/tldraw/tldraw/pull/3333) ([@mimecuvalo](https://github.com/mimecuvalo))
2179
- - Input buffering [#3223](https://github.com/tldraw/tldraw/pull/3223) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
2180
- - Don't trigger pointer move on zoom [#3305](https://github.com/tldraw/tldraw/pull/3305) ([@steveruizok](https://github.com/steveruizok))
2181
- - Improve performance of culling [#3272](https://github.com/tldraw/tldraw/pull/3272) ([@steveruizok](https://github.com/steveruizok))
2182
- - Add image annotator example [#3147](https://github.com/tldraw/tldraw/pull/3147) ([@SomeHats](https://github.com/SomeHats))
2183
- - use native structuredClone on node, cloudflare workers, and in tests [#3166](https://github.com/tldraw/tldraw/pull/3166) ([@si14](https://github.com/si14))
2184
- - Fix lag while panning + translating at the same time [#3186](https://github.com/tldraw/tldraw/pull/3186) ([@ds300](https://github.com/ds300) [@steveruizok](https://github.com/steveruizok))
2185
- - [fix] Batch tick events [#3181](https://github.com/tldraw/tldraw/pull/3181) ([@steveruizok](https://github.com/steveruizok))
2186
- - Skip the random ID for regular history entries [#3183](https://github.com/tldraw/tldraw/pull/3183) ([@steveruizok](https://github.com/steveruizok))
2187
- - [tinyish] Simplify / skip some work in Shape [#3176](https://github.com/tldraw/tldraw/pull/3176) ([@steveruizok](https://github.com/steveruizok))
2188
- - [tiny] Slightly more efficient selection rotated page bounds / page bounds [#3178](https://github.com/tldraw/tldraw/pull/3178) ([@steveruizok](https://github.com/steveruizok))
2189
- - [fix] handles [#3177](https://github.com/tldraw/tldraw/pull/3177) ([@steveruizok](https://github.com/steveruizok))
2190
- - [fix] Handles extra renders [#3172](https://github.com/tldraw/tldraw/pull/3172) ([@steveruizok](https://github.com/steveruizok))
2191
- - [tiny] remove unused shape indicator equality checker [#3171](https://github.com/tldraw/tldraw/pull/3171) ([@steveruizok](https://github.com/steveruizok))
2192
- - [fix] Cleanup text measures [#3169](https://github.com/tldraw/tldraw/pull/3169) ([@steveruizok](https://github.com/steveruizok))
2193
- - [perf] Reinstate render throttling [#3160](https://github.com/tldraw/tldraw/pull/3160) ([@ds300](https://github.com/ds300))
2194
-
2195
- #### 🖥️ tldraw.com Changes
2196
-
2197
- - Enable document name [#3150](https://github.com/tldraw/tldraw/pull/3150) ([@ds300](https://github.com/ds300))
2198
-
2199
- #### 📖 Documentation changes
2200
-
2201
- - Add slides example [#3467](https://github.com/tldraw/tldraw/pull/3467) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@TodePond](https://github.com/TodePond))
2202
- - side effects reference docs & examples [#3258](https://github.com/tldraw/tldraw/pull/3258) ([@SomeHats](https://github.com/SomeHats))
2203
- - fix docs not building due to typo [#3259](https://github.com/tldraw/tldraw/pull/3259) ([@SomeHats](https://github.com/SomeHats))
2204
-
2205
- #### 🏠 Internal
2206
-
2207
- - Use computed cache for getting the parent child relationships [#3508](https://github.com/tldraw/tldraw/pull/3508) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2208
- - Fix culling. [#3504](https://github.com/tldraw/tldraw/pull/3504) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2209
- - Revert "RBush again? (#3439)" [#3481](https://github.com/tldraw/tldraw/pull/3481) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2210
- - RBush again? [#3439](https://github.com/tldraw/tldraw/pull/3439) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
2211
- - Perf: Improve perf of `getCurrentPageShapesSorted` [#3453](https://github.com/tldraw/tldraw/pull/3453) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
2212
- - Only run when shapes change. [#3456](https://github.com/tldraw/tldraw/pull/3456) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2213
- - Reorder dom elements. [#3431](https://github.com/tldraw/tldraw/pull/3431) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
2214
- - [culling] Improve setting of display none. [#3376](https://github.com/tldraw/tldraw/pull/3376) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2215
- - Display none for culled shapes [#3291](https://github.com/tldraw/tldraw/pull/3291) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
2216
- - fix export preview size [#3264](https://github.com/tldraw/tldraw/pull/3264) ([@SomeHats](https://github.com/SomeHats))
2217
- - Revert perf changes [#3217](https://github.com/tldraw/tldraw/pull/3217) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2218
- - A few more async routes [#3023](https://github.com/tldraw/tldraw/pull/3023) ([@steveruizok](https://github.com/steveruizok))
2219
-
2220
- #### 🐛 Bug Fixes
2221
-
2222
- - ui: make toasts look more toasty [#2988](https://github.com/tldraw/tldraw/pull/2988) ([@mimecuvalo](https://github.com/mimecuvalo))
2223
- - Fix validation errors for `duplicateProps` [#3065](https://github.com/tldraw/tldraw/pull/3065) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2224
- - Wrap local/session storage calls in try/catch (take 2) [#3066](https://github.com/tldraw/tldraw/pull/3066) ([@SomeHats](https://github.com/SomeHats))
2225
- - Revert "Protect local storage calls (#3043)" [#3063](https://github.com/tldraw/tldraw/pull/3063) ([@SomeHats](https://github.com/SomeHats))
2226
- - children: any -> children: ReactNode [#3061](https://github.com/tldraw/tldraw/pull/3061) ([@SomeHats](https://github.com/SomeHats))
2227
- - Protect local storage calls [#3043](https://github.com/tldraw/tldraw/pull/3043) ([@steveruizok](https://github.com/steveruizok))
2228
- - Expose `getStyleForNextShape` [#3039](https://github.com/tldraw/tldraw/pull/3039) ([@steveruizok](https://github.com/steveruizok))
2229
- - Show a broken image for files without assets [#2990](https://github.com/tldraw/tldraw/pull/2990) ([@steveruizok](https://github.com/steveruizok))
2230
- - [bugfix] Avoid randomness at init time to allow running on cloudflare. [#3016](https://github.com/tldraw/tldraw/pull/3016) ([@ds300](https://github.com/ds300))
2231
-
2232
- #### 🧪 Tests
2233
-
2234
- - Add tests for Vec.Average [#3071](https://github.com/tldraw/tldraw/pull/3071) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2235
- - [fix] Routes check on e2e tests [#3022](https://github.com/tldraw/tldraw/pull/3022) ([@steveruizok](https://github.com/steveruizok))
2236
-
2237
- #### Authors: 8
2238
-
2239
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
2240
- - alex ([@SomeHats](https://github.com/SomeHats))
2241
- - Dan Groshev ([@si14](https://github.com/si14))
2242
- - David Sheldrick ([@ds300](https://github.com/ds300))
2243
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
2244
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
2245
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
2246
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
2247
-
2248
- ---
2249
-
2250
- # v2.0.0-beta.9 (Thu Feb 29 2024)
2251
-
2252
- #### ⚠️ Pushed to `main`
2253
-
2254
- - fix refresh-assets cache inputs ([@ds300](https://github.com/ds300))
2255
-
2256
- #### Authors: 1
2257
-
2258
- - David Sheldrick ([@ds300](https://github.com/ds300))
2259
-
2260
- ---
2261
-
2262
- # v2.0.0-beta.8 (Thu Feb 29 2024)
2263
-
2264
- #### ⚠️ Pushed to `main`
2265
-
2266
- - use glob to pick up version files? ([@ds300](https://github.com/ds300))
2267
-
2268
- #### Authors: 1
2269
-
2270
- - David Sheldrick ([@ds300](https://github.com/ds300))
2271
-
2272
- ---
2273
-
2274
- # v2.0.0-beta.7 (Thu Feb 29 2024)
2275
-
2276
- ### Release Notes
2277
-
2278
- #### Fix publish script one more time ([#3010](https://github.com/tldraw/tldraw/pull/3010))
2279
-
2280
- - Add a brief release note for your PR here.
2281
-
2282
- ---
2283
-
2284
- #### 🏠 Internal
2285
-
2286
- - Fix publish script one more time [#3010](https://github.com/tldraw/tldraw/pull/3010) ([@ds300](https://github.com/ds300))
2287
-
2288
- #### Authors: 1
2289
-
2290
- - David Sheldrick ([@ds300](https://github.com/ds300))
2291
-
2292
- ---
2293
-
2294
- # v2.0.0-beta.6 (Thu Feb 29 2024)
2295
-
2296
- ### Release Notes
2297
-
2298
- #### Fix publishing scripts ([#3008](https://github.com/tldraw/tldraw/pull/3008))
2299
-
2300
- - Add a brief release note for your PR here.
2301
-
2302
- ---
2303
-
2304
- #### 🏠 Internal
2305
-
2306
- - Fix publishing scripts [#3008](https://github.com/tldraw/tldraw/pull/3008) ([@ds300](https://github.com/ds300))
2307
-
2308
- #### Authors: 1
2309
-
2310
- - David Sheldrick ([@ds300](https://github.com/ds300))
2311
-
2312
- ---
2313
-
2314
- # v2.0.0-beta.5 (Thu Feb 29 2024)
2315
-
2316
- ### Release Notes
2317
-
2318
- #### tldraw_final_v6_final(old version).docx.pdf ([#2998](https://github.com/tldraw/tldraw/pull/2998))
2319
-
2320
- - The `@tldraw/tldraw` package has been renamed to `tldraw`. You can keep using the old version if you want though!
2321
-
2322
- #### Don't add editor / app to window. ([#2995](https://github.com/tldraw/tldraw/pull/2995))
2323
-
2324
- - Remove `window.editor` and `window.app` references to editor.
2325
-
2326
- #### [feature] wrap mode ([#2938](https://github.com/tldraw/tldraw/pull/2938))
2327
-
2328
- - Added `isWrapMode` to user preferences.
2329
- - Added Wrap Mode toggle to user preferences menu.
2330
-
2331
- #### Don't allow edge scrolling when camera is frozen. ([#2992](https://github.com/tldraw/tldraw/pull/2992))
2332
-
2333
- - Don't allow edge scrolling when camera is frozen.
2334
-
2335
- #### Setup papercuts ([#2987](https://github.com/tldraw/tldraw/pull/2987))
2336
-
2337
- - Add a brief release note for your PR here.
2338
-
2339
- #### [fix] Corejs imports ([#2940](https://github.com/tldraw/tldraw/pull/2940))
2340
-
2341
- - Fixes a bug effecting some users related to corejs imports.
2342
-
2343
- #### Fix undo/redo for Opacity Slider + Style dropdowns. ([#2933](https://github.com/tldraw/tldraw/pull/2933))
2344
-
2345
- - Fixed issues where undo/redo entries were not being set up correctly for the opacity slider or the style dropdown menus.
2346
-
2347
- ---
2348
-
2349
- #### 💥 Breaking Change
2350
-
2351
- - Don't add editor / app to window. [#2995](https://github.com/tldraw/tldraw/pull/2995) ([@steveruizok](https://github.com/steveruizok))
2352
-
2353
- #### 🚀 Enhancement
2354
-
2355
- - [feature] wrap mode [#2938](https://github.com/tldraw/tldraw/pull/2938) ([@steveruizok](https://github.com/steveruizok))
2356
-
2357
- #### 🐛 Bug Fix
2358
-
2359
- - Don't allow edge scrolling when camera is frozen. [#2992](https://github.com/tldraw/tldraw/pull/2992) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2360
- - Setup papercuts [#2987](https://github.com/tldraw/tldraw/pull/2987) ([@ds300](https://github.com/ds300))
2361
- - migrate shapes / assets as a store on `putContent` [#2971](https://github.com/tldraw/tldraw/pull/2971) ([@steveruizok](https://github.com/steveruizok))
2362
- - [fix] double spinner [#2963](https://github.com/tldraw/tldraw/pull/2963) ([@steveruizok](https://github.com/steveruizok))
2363
- - Prevent iframe embedding for dotcom (except on tldraw.com) [#2947](https://github.com/tldraw/tldraw/pull/2947) ([@steveruizok](https://github.com/steveruizok))
2364
- - Expand props [#2948](https://github.com/tldraw/tldraw/pull/2948) ([@steveruizok](https://github.com/steveruizok))
2365
- - [fix] Corejs imports [#2940](https://github.com/tldraw/tldraw/pull/2940) ([@steveruizok](https://github.com/steveruizok))
2366
- - Fix undo/redo for Opacity Slider + Style dropdowns. [#2933](https://github.com/tldraw/tldraw/pull/2933) ([@ds300](https://github.com/ds300))
2367
-
2368
- #### 🏠 Internal
2369
-
2370
- - tldraw_final_v6_final(old version).docx.pdf [#2998](https://github.com/tldraw/tldraw/pull/2998) ([@SomeHats](https://github.com/SomeHats))
2371
-
2372
- #### 🔩 Dependency Updates
2373
-
2374
- - bump typescript / api-extractor [#2949](https://github.com/tldraw/tldraw/pull/2949) ([@steveruizok](https://github.com/steveruizok))
2375
-
2376
- #### Authors: 4
2377
-
2378
- - alex ([@SomeHats](https://github.com/SomeHats))
2379
- - David Sheldrick ([@ds300](https://github.com/ds300))
2380
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
2381
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
2382
-
2383
- ---
2384
-
2385
- # v2.0.0-beta.4 (Wed Feb 21 2024)
2386
-
2387
- ### Release Notes
2388
-
2389
- #### [experiment] paste: show little puff when pasting to denote something happened ([#2787](https://github.com/tldraw/tldraw/pull/2787))
2390
-
2391
- - UI: add a little 'puff' when something is pasted to tell that something has happened.
2392
-
2393
- #### Fix 'style panel doesn't always disappear if you switch to the hand/laser tools' ([#2886](https://github.com/tldraw/tldraw/pull/2886))
2394
-
2395
- - Fixes an bug causing the opacity slider to show up in the move tool and laser pointer tool.
2396
-
2397
- #### Faster validations + record reference stability at the same time ([#2848](https://github.com/tldraw/tldraw/pull/2848))
2398
-
2399
- - Add a brief release note for your PR here.
2400
-
2401
- #### [Snapping 6/6] Self-snapping API ([#2869](https://github.com/tldraw/tldraw/pull/2869))
2402
-
2403
- - Line handles now snap to other handles on the same line when holding command
2404
-
2405
- #### Allow users to set document name and use it for exporting / saving ([#2685](https://github.com/tldraw/tldraw/pull/2685))
2406
-
2407
- - Allow users to name their documents.
2408
-
2409
- #### [fix] grid, other insets ([#2858](https://github.com/tldraw/tldraw/pull/2858))
2410
-
2411
- - Fixes a bug with the grid not appearing.
2412
-
2413
- #### Add component for viewing an image of a snapshot ([#2804](https://github.com/tldraw/tldraw/pull/2804))
2414
-
2415
- - Dev: Added the `TldrawImage` component.
2416
-
2417
- #### [Snapping 4/5] Add handle-point snapping ([#2841](https://github.com/tldraw/tldraw/pull/2841))
2418
-
2419
- - Line handles
2420
-
2421
- #### [Snapping 3/5] Custom snapping API ([#2793](https://github.com/tldraw/tldraw/pull/2793))
2422
-
2423
- - Add `ShapeUtil.getSnapInfo` for customising shape snaps.
2424
-
2425
- #### errors: improve msg in dialog when error happens ([#2844](https://github.com/tldraw/tldraw/pull/2844))
2426
-
2427
- - Improves error dialog messaging.
2428
-
2429
- #### [Snapping 2/5] Fix line-handle mid-point snapping ([#2831](https://github.com/tldraw/tldraw/pull/2831))
2430
-
2431
- - Simplify the contents of `TLLineShape.props.handles`
2432
-
2433
- #### emojis! 🧑‍🎨 🎨 ✏️ ([#2814](https://github.com/tldraw/tldraw/pull/2814))
2434
-
2435
- - Adds emoji picker to text fields.
2436
-
2437
- ---
2438
-
2439
- #### 💥 Breaking Change
2440
-
2441
- - Allow users to set document name and use it for exporting / saving [#2685](https://github.com/tldraw/tldraw/pull/2685) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2442
- - [Snapping 2/5] Fix line-handle mid-point snapping [#2831](https://github.com/tldraw/tldraw/pull/2831) ([@SomeHats](https://github.com/SomeHats))
2443
-
2444
- #### 🚀 Enhancement
2445
-
2446
- - [Snapping 6/6] Self-snapping API [#2869](https://github.com/tldraw/tldraw/pull/2869) ([@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok))
2447
- - Add component for viewing an image of a snapshot [#2804](https://github.com/tldraw/tldraw/pull/2804) ([@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok))
2448
- - [Snapping 4/5] Add handle-point snapping [#2841](https://github.com/tldraw/tldraw/pull/2841) ([@SomeHats](https://github.com/SomeHats))
2449
- - [Snapping 3/5] Custom snapping API [#2793](https://github.com/tldraw/tldraw/pull/2793) ([@SomeHats](https://github.com/SomeHats))
2450
- - Lokalise: Translations update [#2830](https://github.com/tldraw/tldraw/pull/2830) ([@TodePond](https://github.com/TodePond) [@MitjaBezensek](https://github.com/MitjaBezensek))
2451
- - emojis! 🧑‍🎨 🎨 ✏️ [#2814](https://github.com/tldraw/tldraw/pull/2814) ([@mimecuvalo](https://github.com/mimecuvalo))
2452
-
2453
- #### 🐛 Bug Fix
2454
-
2455
- - [experiment] paste: show little puff when pasting to denote something happened [#2787](https://github.com/tldraw/tldraw/pull/2787) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
2456
- - Fix 'style panel doesn't always disappear if you switch to the hand/laser tools' [#2886](https://github.com/tldraw/tldraw/pull/2886) ([@ds300](https://github.com/ds300))
2457
- - Faster validations + record reference stability at the same time [#2848](https://github.com/tldraw/tldraw/pull/2848) ([@ds300](https://github.com/ds300))
2458
- - Roundup fixes [#2862](https://github.com/tldraw/tldraw/pull/2862) ([@steveruizok](https://github.com/steveruizok))
2459
- - [fix] grid, other insets [#2858](https://github.com/tldraw/tldraw/pull/2858) ([@steveruizok](https://github.com/steveruizok))
2460
- - [fix] pointer capture logging when debug flag is off [#2850](https://github.com/tldraw/tldraw/pull/2850) ([@steveruizok](https://github.com/steveruizok))
2461
- - errors: improve msg in dialog when error happens [#2844](https://github.com/tldraw/tldraw/pull/2844) ([@mimecuvalo](https://github.com/mimecuvalo))
2462
- - seo: take 2 [#2817](https://github.com/tldraw/tldraw/pull/2817) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
2463
- - [Snapping 1/5] Validation & strict types for fractional indexes [#2827](https://github.com/tldraw/tldraw/pull/2827) ([@SomeHats](https://github.com/SomeHats))
2464
- - [fix] sticky note bug [#2836](https://github.com/tldraw/tldraw/pull/2836) ([@steveruizok](https://github.com/steveruizok))
2465
-
2466
- #### 🏠 Internal
2467
-
2468
- - Check tsconfig "references" arrays [#2891](https://github.com/tldraw/tldraw/pull/2891) ([@ds300](https://github.com/ds300))
2469
- - dev: swap yarn test and test-dev for better dx [#2773](https://github.com/tldraw/tldraw/pull/2773) ([@mimecuvalo](https://github.com/mimecuvalo))
2470
- - Revert "emojis! 🧑‍🎨 🎨 ✏️ (#2814)" [#2822](https://github.com/tldraw/tldraw/pull/2822) ([@si14](https://github.com/si14))
2471
-
2472
- #### Authors: 7
2473
-
2474
- - alex ([@SomeHats](https://github.com/SomeHats))
2475
- - Dan Groshev ([@si14](https://github.com/si14))
2476
- - David Sheldrick ([@ds300](https://github.com/ds300))
2477
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
2478
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
2479
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
2480
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
2481
-
2482
- ---
2483
-
2484
- # v2.0.0-beta.3 (Tue Feb 13 2024)
2485
-
2486
- ### Release Notes
2487
-
2488
- #### Fix camera. ([#2818](https://github.com/tldraw/tldraw/pull/2818))
2489
-
2490
- - Fixes an issue with the camera and zooming.
2491
-
2492
- #### Use canvas bounds for viewport bounds ([#2798](https://github.com/tldraw/tldraw/pull/2798))
2493
-
2494
- - Changes the source of truth for the viewport page bounds to be the canvas instead.
2495
-
2496
- #### error reporting: rm ids from msgs for better Sentry grouping ([#2738](https://github.com/tldraw/tldraw/pull/2738))
2497
-
2498
- - Error reporting: improve grouping for Sentry.
2499
-
2500
- #### i18n: add HR 🇭🇷 ([#2778](https://github.com/tldraw/tldraw/pull/2778))
2501
-
2502
- - i18n: add Croatian / Hrvatski.
2503
-
2504
- #### arrows: account for another NaN ([#2753](https://github.com/tldraw/tldraw/pull/2753))
2505
-
2506
- - Fixes zero-width arrow NaN computation when moving the label.
2507
-
2508
- #### Split snap manager into ShapeBoundsSnaps and HandleSnaps ([#2747](https://github.com/tldraw/tldraw/pull/2747))
2509
-
2510
- - `SnapLine`s are now called `SnapIndicator`s
2511
- - Snapping methods moved from `editor.snaps` to `editor.snaps.shapeBounds` and `editor.snaps.handles` depending on the type of snapping you're trying to do.
2512
-
2513
- #### arrows: update cursor only when in Select mode ([#2742](https://github.com/tldraw/tldraw/pull/2742))
2514
-
2515
- - Cursor tweak for arrow labels.
2516
-
2517
- #### Fix pinch zooming ([#2748](https://github.com/tldraw/tldraw/pull/2748))
2518
-
2519
- - None: Fixes an unreleased bug.
2520
-
2521
- #### [Fix] Camera coordinate issues ([#2719](https://github.com/tldraw/tldraw/pull/2719))
2522
-
2523
- - Fixed bugs with `getViewportScreenCenter` that could effect zooming and pinching on editors that aren't full screen
2524
-
2525
- #### arrows: separate out handle behavior from labels ([#2621](https://github.com/tldraw/tldraw/pull/2621))
2526
-
2527
- - Arrow labels: provide more polish on label placement
2528
-
2529
- #### dev: add test-dev command for easier testing of packages ([#2627](https://github.com/tldraw/tldraw/pull/2627))
2530
-
2531
- - Adds easier testing command for individual packages.
2532
-
2533
- #### [Fix] Overlapping non-adjacent handles ([#2663](https://github.com/tldraw/tldraw/pull/2663))
2534
-
2535
- - Fixed a bug with virtual / create handle visibility.
2536
-
2537
- #### [Fix] Missing bend handles on curved arrows ([#2661](https://github.com/tldraw/tldraw/pull/2661))
2538
-
2539
- - Fixed a bug where the bend handle on arrows with a large curve could sometimes be hidden.
2540
-
2541
- #### [Fix] Wheel bug ([#2657](https://github.com/tldraw/tldraw/pull/2657))
2542
-
2543
- - Fixed a bug with the mouse wheel effecting the pointer location when the editor was not full screen
2544
-
2545
- #### Fix nudge bug ([#2634](https://github.com/tldraw/tldraw/pull/2634))
2546
-
2547
- - Fixes a bug with keyboard nudging.
2548
-
2549
- #### debug: add FPS counter ([#2558](https://github.com/tldraw/tldraw/pull/2558))
2550
-
2551
- - Adds FPS counter to debug panel.
2552
-
2553
- #### arrows: add ability to change label placement ([#2557](https://github.com/tldraw/tldraw/pull/2557))
2554
-
2555
- - Adds ability to change label position on arrows.
2556
-
2557
- #### Export TLCommandHistoryOptions type ([#2598](https://github.com/tldraw/tldraw/pull/2598))
2558
-
2559
- - Added TLCommandHistoryOptions to the exported types.
2560
-
2561
- #### [improvement] better comma control for pointer ([#2568](https://github.com/tldraw/tldraw/pull/2568))
2562
-
2563
- - Improve comma key as a replacement for pointer down / pointer up.
2564
-
2565
- #### Allow snapping of shapes to the frame when dragging inside the frame. ([#2520](https://github.com/tldraw/tldraw/pull/2520))
2566
-
2567
- - Adds snapping to frames when dragging shapes inside a frame.
2568
-
2569
- #### Prevent overlay content disappearing at some browser zoom levels ([#2483](https://github.com/tldraw/tldraw/pull/2483))
2570
-
2571
- - removes the internal `useDprMultiple` hook
2572
-
2573
- #### fix typo in hideRotateHandle method ([#2473](https://github.com/tldraw/tldraw/pull/2473))
2574
-
2575
- - fix typo in hideRotateHandle method
2576
-
2577
- #### Maintain bindings while translating arrows ([#2424](https://github.com/tldraw/tldraw/pull/2424))
2578
-
2579
- - You can now move arrows without them becoming unattached the shapes they're pointing to
2580
-
2581
- #### [improvement] update dark mode ([#2468](https://github.com/tldraw/tldraw/pull/2468))
2582
-
2583
- - Updated dark mode colors.
2584
-
2585
- #### [improvement] account for coarse pointers / insets in edge scrolling ([#2401](https://github.com/tldraw/tldraw/pull/2401))
2586
-
2587
- - Add `instanceState.insets` to track which edges of the component are inset from the edges of the document body.
2588
- - Improve behavior around edge scrolling
2589
-
2590
- ---
2591
-
2592
- #### 💥 Breaking Change
2593
-
2594
- - Use canvas bounds for viewport bounds [#2798](https://github.com/tldraw/tldraw/pull/2798) ([@steveruizok](https://github.com/steveruizok))
2595
- - Remove Geometry2d.isSnappable [#2768](https://github.com/tldraw/tldraw/pull/2768) ([@SomeHats](https://github.com/SomeHats))
2596
- - Split snap manager into ShapeBoundsSnaps and HandleSnaps [#2747](https://github.com/tldraw/tldraw/pull/2747) ([@SomeHats](https://github.com/SomeHats))
2597
- - [Fix] Camera coordinate issues [#2719](https://github.com/tldraw/tldraw/pull/2719) ([@steveruizok](https://github.com/steveruizok))
2598
-
2599
- #### 🚀 Enhancement
2600
-
2601
- - [dx] use Biome instead of Prettier, part 2 [#2731](https://github.com/tldraw/tldraw/pull/2731) ([@si14](https://github.com/si14))
2602
- - debug: add FPS counter [#2558](https://github.com/tldraw/tldraw/pull/2558) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
2603
- - arrows: add ability to change label placement [#2557](https://github.com/tldraw/tldraw/pull/2557) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok) [@SomeHats](https://github.com/SomeHats))
2604
- - [improvement] better comma control for pointer [#2568](https://github.com/tldraw/tldraw/pull/2568) ([@steveruizok](https://github.com/steveruizok))
2605
- - Allow snapping of shapes to the frame when dragging inside the frame. [#2520](https://github.com/tldraw/tldraw/pull/2520) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2606
- - Maintain bindings while translating arrows [#2424](https://github.com/tldraw/tldraw/pull/2424) ([@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok))
2607
- - [improvement] update dark mode [#2468](https://github.com/tldraw/tldraw/pull/2468) ([@steveruizok](https://github.com/steveruizok))
2608
- - [improvement] account for coarse pointers / insets in edge scrolling [#2401](https://github.com/tldraw/tldraw/pull/2401) ([@steveruizok](https://github.com/steveruizok))
2609
-
2610
- #### 🐛 Bug Fix
2611
-
2612
- - Fix camera. [#2818](https://github.com/tldraw/tldraw/pull/2818) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2613
- - [fix] overlays, custom brush example [#2806](https://github.com/tldraw/tldraw/pull/2806) ([@steveruizok](https://github.com/steveruizok))
2614
- - error reporting: rm ids from msgs for better Sentry grouping [#2738](https://github.com/tldraw/tldraw/pull/2738) ([@mimecuvalo](https://github.com/mimecuvalo))
2615
- - i18n: add HR 🇭🇷 [#2778](https://github.com/tldraw/tldraw/pull/2778) ([@mimecuvalo](https://github.com/mimecuvalo))
2616
- - arrows: account for another NaN [#2753](https://github.com/tldraw/tldraw/pull/2753) ([@mimecuvalo](https://github.com/mimecuvalo))
2617
- - arrows: update cursor only when in Select mode [#2742](https://github.com/tldraw/tldraw/pull/2742) ([@mimecuvalo](https://github.com/mimecuvalo))
2618
- - Fix pinch zooming [#2748](https://github.com/tldraw/tldraw/pull/2748) ([@TodePond](https://github.com/TodePond))
2619
- - arrows: separate out handle behavior from labels [#2621](https://github.com/tldraw/tldraw/pull/2621) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
2620
- - [Improvement] Text measurement tweaks [#2670](https://github.com/tldraw/tldraw/pull/2670) ([@steveruizok](https://github.com/steveruizok))
2621
- - [Fix] Overlapping non-adjacent handles [#2663](https://github.com/tldraw/tldraw/pull/2663) ([@steveruizok](https://github.com/steveruizok))
2622
- - [Fix] Missing bend handles on curved arrows [#2661](https://github.com/tldraw/tldraw/pull/2661) ([@steveruizok](https://github.com/steveruizok))
2623
- - [Fix] Wheel bug [#2657](https://github.com/tldraw/tldraw/pull/2657) ([@steveruizok](https://github.com/steveruizok))
2624
- - Fix nudge bug [#2634](https://github.com/tldraw/tldraw/pull/2634) ([@steveruizok](https://github.com/steveruizok))
2625
- - Export TLCommandHistoryOptions type [#2598](https://github.com/tldraw/tldraw/pull/2598) ([@steveruizok](https://github.com/steveruizok))
2626
- - Make sure correct dark mode colours get used in exports [#2492](https://github.com/tldraw/tldraw/pull/2492) ([@SomeHats](https://github.com/SomeHats) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
2627
- - Prevent overlay content disappearing at some browser zoom levels [#2483](https://github.com/tldraw/tldraw/pull/2483) ([@ds300](https://github.com/ds300))
2628
- - [tweak] dark mode colors [#2469](https://github.com/tldraw/tldraw/pull/2469) ([@steveruizok](https://github.com/steveruizok))
2629
-
2630
- #### 🏠 Internal
2631
-
2632
- - Unbiome [#2776](https://github.com/tldraw/tldraw/pull/2776) ([@si14](https://github.com/si14))
2633
- - Update the project to Node 20 [#2691](https://github.com/tldraw/tldraw/pull/2691) ([@si14](https://github.com/si14))
2634
- - dev: add test-dev command for easier testing of packages [#2627](https://github.com/tldraw/tldraw/pull/2627) ([@mimecuvalo](https://github.com/mimecuvalo))
2635
- - Add docs [#2470](https://github.com/tldraw/tldraw/pull/2470) ([@steveruizok](https://github.com/steveruizok))
2636
-
2637
- #### 📝 Documentation
2638
-
2639
- - fix typo in hideRotateHandle method [#2473](https://github.com/tldraw/tldraw/pull/2473) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
2640
-
2641
- #### 🧪 Tests
2642
-
2643
- - Bump jest to fix weird prettier bug [#2716](https://github.com/tldraw/tldraw/pull/2716) ([@steveruizok](https://github.com/steveruizok))
2644
-
2645
- #### 🔩 Dependency Updates
2646
-
2647
- - Bump Yarn to 4.0.2 and add version constraints [#2481](https://github.com/tldraw/tldraw/pull/2481) ([@si14](https://github.com/si14))
2648
-
2649
- #### Authors: 9
2650
-
2651
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
2652
- - alex ([@SomeHats](https://github.com/SomeHats))
2653
- - Dan Groshev ([@si14](https://github.com/si14))
2654
- - David Sheldrick ([@ds300](https://github.com/ds300))
2655
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
2656
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
2657
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
2658
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
2659
- - Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
2660
-
2661
- ---
2662
-
2663
- # v2.0.0-beta.2 (Wed Jan 10 2024)
2664
-
2665
- ### Release Notes
2666
-
2667
- #### [fix] next selected shapes comment ([#2427](https://github.com/tldraw/tldraw/pull/2427))
2668
-
2669
- - Fix error in setStyleForNextSelectedShapes comment
2670
-
2671
- #### Fix issues with clip paths for frames ([#2406](https://github.com/tldraw/tldraw/pull/2406))
2672
-
2673
- - Add a brief release note for your PR here.
2674
-
2675
- #### [fix] edge scrolling when component is inside of screen ([#2398](https://github.com/tldraw/tldraw/pull/2398))
2676
-
2677
- - Add a brief release note for your PR here.
2678
-
2679
- #### [tech debt] Primitives renaming party / cleanup ([#2396](https://github.com/tldraw/tldraw/pull/2396))
2680
-
2681
- - renames Vec2d to Vec
2682
- - renames Vec2dModel to VecModel
2683
- - renames Box2d to Box
2684
- - renames Box2dModel to BoxModel
2685
- - renames Matrix2d to Mat
2686
- - renames Matrix2dModel to MatModel
2687
- - removes unused primitive helpers
2688
-
2689
- #### Fix trademark links ([#2380](https://github.com/tldraw/tldraw/pull/2380))
2690
-
2691
- - Fixes broken links in a number of docs files.
2692
-
2693
- #### [fix] polygon bounds ([#2378](https://github.com/tldraw/tldraw/pull/2378))
2694
-
2695
- - Fixed a bug with the bounds calculation for polygons.
2696
-
2697
- ---
2698
-
2699
- #### 💥 Breaking Change
2700
-
2701
- - [tech debt] Primitives renaming party / cleanup [#2396](https://github.com/tldraw/tldraw/pull/2396) ([@steveruizok](https://github.com/steveruizok))
2702
-
2703
- #### 🐛 Bug Fix
2704
-
2705
- - Fix issues with clip paths for frames [#2406](https://github.com/tldraw/tldraw/pull/2406) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2706
- - [fix] edge scrolling when component is inside of screen [#2398](https://github.com/tldraw/tldraw/pull/2398) ([@steveruizok](https://github.com/steveruizok))
2707
- - [fix] polygon bounds [#2378](https://github.com/tldraw/tldraw/pull/2378) ([@steveruizok](https://github.com/steveruizok))
2708
-
2709
- #### 📝 Documentation
2710
-
2711
- - [fix] next selected shapes comment [#2427](https://github.com/tldraw/tldraw/pull/2427) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
2712
- - Fix trademark links [#2380](https://github.com/tldraw/tldraw/pull/2380) ([@nonparibus](https://github.com/nonparibus))
2713
- - Another typo fix. [#2366](https://github.com/tldraw/tldraw/pull/2366) ([@steveruizok](https://github.com/steveruizok))
2714
-
2715
- #### Authors: 4
2716
-
2717
- - David @ HASH ([@nonparibus](https://github.com/nonparibus))
2718
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
2719
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
2720
- - Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
2721
-
2722
- ---
2723
-
2724
- # v2.0.0-beta.1 (Wed Dec 20 2023)
2725
-
2726
- ### Release Notes
2727
-
2728
- #### Fix clicking off the context menu ([#2355](https://github.com/tldraw/tldraw/pull/2355))
2729
-
2730
- - Fix not being able to close the context menu by clicking on the UI or your selected shape.
2731
-
2732
- #### refactor: Keep hook function convention the same ([#2358](https://github.com/tldraw/tldraw/pull/2358))
2733
-
2734
- - Add a brief release note for your PR here.
2735
-
2736
- #### Stop shape text labels being hoverable when context menu is open ([#2352](https://github.com/tldraw/tldraw/pull/2352))
2737
-
2738
- - Add a brief release note for your PR here.
2739
-
2740
- #### [bug] Fix for issue #2329 ([#2330](https://github.com/tldraw/tldraw/pull/2330))
2741
-
2742
- - Fix for `Matrix2d.Scale` function
2743
-
2744
- #### Remove deprecated getters ([#2333](https://github.com/tldraw/tldraw/pull/2333))
2745
-
2746
- - (Breaking) Removed deprecated getters.
2747
-
2748
- #### Lokalise: Translations update ([#2342](https://github.com/tldraw/tldraw/pull/2342))
2749
-
2750
- Added Czech translations.
2751
- Updated translations for German, Korean, Russian, Ukrainian, Traditional Chinese.
2752
-
2753
- #### Start scrolling if we are dragging close to the window edges. ([#2299](https://github.com/tldraw/tldraw/pull/2299))
2754
-
2755
- - Adds the logic to change the camera position when you get close to the edges of the window. This allows you to drag, resize, brush select past the edges of the current viewport.
2756
-
2757
- ---
2758
-
2759
- #### 💥 Breaking Change
2760
-
2761
- - bump to beta [#2364](https://github.com/tldraw/tldraw/pull/2364) ([@steveruizok](https://github.com/steveruizok))
2762
- - Change licenses to tldraw [#2167](https://github.com/tldraw/tldraw/pull/2167) ([@steveruizok](https://github.com/steveruizok))
2763
- - Remove deprecated getters [#2333](https://github.com/tldraw/tldraw/pull/2333) ([@ds300](https://github.com/ds300))
2764
-
2765
- #### 🚀 Enhancement
2766
-
2767
- - Start scrolling if we are dragging close to the window edges. [#2299](https://github.com/tldraw/tldraw/pull/2299) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
2768
-
2769
- #### 🐛 Bug Fix
2770
-
2771
- - Fix clicking off the context menu [#2355](https://github.com/tldraw/tldraw/pull/2355) ([@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok))
2772
- - Stop shape text labels being hoverable when context menu is open [#2352](https://github.com/tldraw/tldraw/pull/2352) ([@TodePond](https://github.com/TodePond))
2773
- - Drop edge scrolling adjustment for mobile [#2346](https://github.com/tldraw/tldraw/pull/2346) ([@steveruizok](https://github.com/steveruizok))
2774
- - [bug] Fix for issue #2329 [#2330](https://github.com/tldraw/tldraw/pull/2330) ([@zfedoran](https://github.com/zfedoran))
2775
- - Lokalise: Translations update [#2342](https://github.com/tldraw/tldraw/pull/2342) ([@TodePond](https://github.com/TodePond))
2776
-
2777
- #### 🏠 Internal
2778
-
2779
- - refactor: Keep hook function convention the same [#2358](https://github.com/tldraw/tldraw/pull/2358) ([@Lennon57](https://github.com/Lennon57))
2780
-
2781
- #### Authors: 6
2782
-
2783
- - [@zfedoran](https://github.com/zfedoran)
2784
- - David Sheldrick ([@ds300](https://github.com/ds300))
2785
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
2786
- - MinhoPark ([@Lennon57](https://github.com/Lennon57))
2787
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
2788
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
2789
-
2790
- ---
2791
-
2792
- # v2.0.0-alpha.19 (Tue Dec 12 2023)
2793
-
2794
- ### Release Notes
2795
-
2796
- #### zoom to affected shapes after undo/redo ([#2293](https://github.com/tldraw/tldraw/pull/2293))
2797
-
2798
- - Make sure affected shapes are visible after undo/redo
2799
-
2800
- #### Add fit to content for frames. ([#2275](https://github.com/tldraw/tldraw/pull/2275))
2801
-
2802
- - Add Fit to content option to the context menu for frames. This resizes the frames to correctly fit all their content.
2803
-
2804
- #### Fix an issue with a stale editor reference in shape utils ([#2295](https://github.com/tldraw/tldraw/pull/2295))
2805
-
2806
- - Fix an issue where the shape utils could have a stale reference to the editor.
2807
-
2808
- #### fix new page naming ([#2292](https://github.com/tldraw/tldraw/pull/2292))
2809
-
2810
- - Fix naming of pages created by the "move to page" action
2811
-
2812
- #### [improvements] arrows x enclosing shapes x precision. ([#2265](https://github.com/tldraw/tldraw/pull/2265))
2813
-
2814
- - Improves the logic about when to draw "precise" arrows between the center of bound shapes.
2815
-
2816
- #### fix vite HMR issue ([#2279](https://github.com/tldraw/tldraw/pull/2279))
2817
-
2818
- - Fixes a bug that could cause crashes due to a re-render loop with HMR #1989
2819
-
2820
- #### Add connecting screen override. ([#2273](https://github.com/tldraw/tldraw/pull/2273))
2821
-
2822
- - Allow users to customize the connecting screen.
2823
-
2824
- #### Removing frames and adding elements to frames ([#2219](https://github.com/tldraw/tldraw/pull/2219))
2825
-
2826
- - Allow users to remove the frame, but keep it's children. Allow the users to add shapes to the frame directly when creating a frame.
2827
-
2828
- #### fix typo in useFixSafariDoubleTapZoomPencilEvents.ts ([#2242](https://github.com/tldraw/tldraw/pull/2242))
2829
-
2830
- - Add a brief release note for your PR here.
2831
-
2832
- #### Custom Tools DX + screenshot example ([#2198](https://github.com/tldraw/tldraw/pull/2198))
2833
-
2834
- - adds ScreenshotTool custom tool example
2835
- - improvements and new exports related to copying and exporting images / files
2836
- - loosens up types around icons and translations
2837
- - moving `StateNode.isActive` into an atom
2838
- - adding `Editor.path`
2839
-
2840
- #### StateNode atoms ([#2213](https://github.com/tldraw/tldraw/pull/2213))
2841
-
2842
- - adds computed `StateNode.getPath`
2843
- - adds computed StateNode.getCurrent`
2844
- - adds computed StateNode.getIsActive`
2845
- - adds computed `Editor.getPath()`
2846
- - makes transition's second property optional
2847
-
2848
- #### Revert back to the previous color. ([#2210](https://github.com/tldraw/tldraw/pull/2210))
2849
-
2850
- - Fixes the color of culled shapes when using dark mode.
2851
-
2852
- #### Fix an issue with not being able to group a shape an an arrow. ([#2205](https://github.com/tldraw/tldraw/pull/2205))
2853
-
2854
- - Add a brief release note for your PR here.
2855
-
2856
- #### [fix] masked bounds calculation ([#2197](https://github.com/tldraw/tldraw/pull/2197))
2857
-
2858
- - Fix bug with getmaskedpagebounds calculation for identical parent / child sizes
2859
-
2860
- ---
2861
-
2862
- #### 💥 Breaking Change
2863
-
2864
- - No impure getters pt 1 [#2189](https://github.com/tldraw/tldraw/pull/2189) ([@steveruizok](https://github.com/steveruizok) [@ds300](https://github.com/ds300))
2865
-
2866
- #### 🚀 Enhancement
2867
-
2868
- - Add fit to content for frames. [#2275](https://github.com/tldraw/tldraw/pull/2275) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
2869
- - [improvements] arrows x enclosing shapes x precision. [#2265](https://github.com/tldraw/tldraw/pull/2265) ([@steveruizok](https://github.com/steveruizok))
2870
- - Add connecting screen override. [#2273](https://github.com/tldraw/tldraw/pull/2273) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2871
- - Removing frames and adding elements to frames [#2219](https://github.com/tldraw/tldraw/pull/2219) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok) [@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
2872
- - Custom Tools DX + screenshot example [#2198](https://github.com/tldraw/tldraw/pull/2198) ([@steveruizok](https://github.com/steveruizok))
2873
- - StateNode atoms [#2213](https://github.com/tldraw/tldraw/pull/2213) ([@steveruizok](https://github.com/steveruizok))
2874
-
2875
- #### 🐛 Bug Fix
2876
-
2877
- - Revert "zoom to affected shapes after undo/redo" [#2310](https://github.com/tldraw/tldraw/pull/2310) ([@ds300](https://github.com/ds300))
2878
- - zoom to affected shapes after undo/redo [#2293](https://github.com/tldraw/tldraw/pull/2293) ([@ds300](https://github.com/ds300))
2879
- - Fix an issue with a stale editor reference in shape utils [#2295](https://github.com/tldraw/tldraw/pull/2295) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2880
- - Fix the cleanup of event handlers [#2298](https://github.com/tldraw/tldraw/pull/2298) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2881
- - fix new page naming [#2292](https://github.com/tldraw/tldraw/pull/2292) ([@SomeHats](https://github.com/SomeHats))
2882
- - fix vite HMR issue [#2279](https://github.com/tldraw/tldraw/pull/2279) ([@SomeHats](https://github.com/SomeHats))
2883
- - no impure getters pt 11 [#2236](https://github.com/tldraw/tldraw/pull/2236) ([@ds300](https://github.com/ds300))
2884
- - No impure getters pt10 [#2235](https://github.com/tldraw/tldraw/pull/2235) ([@ds300](https://github.com/ds300))
2885
- - No impure getters pt9 [#2222](https://github.com/tldraw/tldraw/pull/2222) ([@ds300](https://github.com/ds300))
2886
- - No impure getters pt8 [#2221](https://github.com/tldraw/tldraw/pull/2221) ([@ds300](https://github.com/ds300))
2887
- - No impure getters pt7 [#2220](https://github.com/tldraw/tldraw/pull/2220) ([@ds300](https://github.com/ds300))
2888
- - No impure getters pt6 [#2218](https://github.com/tldraw/tldraw/pull/2218) ([@ds300](https://github.com/ds300))
2889
- - No impure getters pt5 [#2208](https://github.com/tldraw/tldraw/pull/2208) ([@ds300](https://github.com/ds300))
2890
- - Revert back to the previous color. [#2210](https://github.com/tldraw/tldraw/pull/2210) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2891
- - Fix an issue with not being able to group a shape an an arrow. [#2205](https://github.com/tldraw/tldraw/pull/2205) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2892
- - No impure getters pt4 [#2206](https://github.com/tldraw/tldraw/pull/2206) ([@ds300](https://github.com/ds300))
2893
- - No impure getters pt3 [#2203](https://github.com/tldraw/tldraw/pull/2203) ([@ds300](https://github.com/ds300))
2894
- - No impure getters pt2 [#2202](https://github.com/tldraw/tldraw/pull/2202) ([@ds300](https://github.com/ds300))
2895
- - [fix] masked bounds calculation [#2197](https://github.com/tldraw/tldraw/pull/2197) ([@steveruizok](https://github.com/steveruizok))
2896
-
2897
- #### 📝 Documentation
2898
-
2899
- - Replace getters in examples [#2261](https://github.com/tldraw/tldraw/pull/2261) ([@ds300](https://github.com/ds300))
2900
- - fix typo in useFixSafariDoubleTapZoomPencilEvents.ts [#2242](https://github.com/tldraw/tldraw/pull/2242) ([@eltociear](https://github.com/eltociear))
2901
-
2902
- #### Authors: 6
2903
-
2904
- - alex ([@SomeHats](https://github.com/SomeHats))
2905
- - David Sheldrick ([@ds300](https://github.com/ds300))
2906
- - Ikko Eltociear Ashimine ([@eltociear](https://github.com/eltociear))
2907
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
2908
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
2909
- - Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
2910
-
2911
- ---
2912
-
2913
- # v2.0.0-alpha.18 (Fri Nov 10 2023)
2914
-
2915
- ### Release Notes
2916
-
2917
- #### [fix] actions menu freezing ui ([#2187](https://github.com/tldraw/tldraw/pull/2187))
2918
-
2919
- - Fix actions menu not closing when clicking the canvas after grouping items via the actions menu.
2920
-
2921
- #### add missing semicolon ([#2182](https://github.com/tldraw/tldraw/pull/2182))
2922
-
2923
- - Fix typo in CSS file
2924
-
2925
- #### Fix crash with zero length arrow ([#2173](https://github.com/tldraw/tldraw/pull/2173))
2926
-
2927
- - Fix a hyper niche arrow crash with zero length arrows.
2928
-
2929
- #### Zooming improvement ([#2149](https://github.com/tldraw/tldraw/pull/2149))
2930
-
2931
- - Improves zooming for inactive windows.
2932
-
2933
- #### [feature] Things on the canvas ([#2150](https://github.com/tldraw/tldraw/pull/2150))
2934
-
2935
- - [editor] Adds two new components, `OnTheCanvas` and `InFrontOfTheCanvas`.
2936
-
2937
- #### [feature] multi-scribbles ([#2125](https://github.com/tldraw/tldraw/pull/2125))
2938
-
2939
- - [feature] multi scribbles
2940
-
2941
- #### Tighten up editor ui ([#2102](https://github.com/tldraw/tldraw/pull/2102))
2942
-
2943
- - Small adjustment to editor ui.
2944
-
2945
- #### Taha/initial shape in handle change ([#2117](https://github.com/tldraw/tldraw/pull/2117))
2946
-
2947
- - Add a brief release note for your PR here.
2948
-
2949
- #### Fix an issue with `addEventListener` in old Safari (pre v14) ([#2114](https://github.com/tldraw/tldraw/pull/2114))
2950
-
2951
- - Fixes an issue with `addEventListener` on MediaQueryList object in old versions of Safari.
2952
-
2953
- #### Remove (optional) from jsdocs ([#2109](https://github.com/tldraw/tldraw/pull/2109))
2954
-
2955
- - dev: Removed duplicate/inconsistent `(optional)`s from docs
2956
-
2957
- ---
2958
-
2959
- #### 🚀 Enhancement
2960
-
2961
- - [feature] Things on the canvas [#2150](https://github.com/tldraw/tldraw/pull/2150) ([@steveruizok](https://github.com/steveruizok))
2962
- - [feature] multi-scribbles [#2125](https://github.com/tldraw/tldraw/pull/2125) ([@steveruizok](https://github.com/steveruizok))
2963
- - Tighten up editor ui [#2102](https://github.com/tldraw/tldraw/pull/2102) ([@steveruizok](https://github.com/steveruizok))
2964
-
2965
- #### 🐛 Bug Fix
2966
-
2967
- - [fix] actions menu freezing ui [#2187](https://github.com/tldraw/tldraw/pull/2187) ([@steveruizok](https://github.com/steveruizok))
2968
- - add missing semicolon [#2182](https://github.com/tldraw/tldraw/pull/2182) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
2969
- - fix scroll event coords [#2180](https://github.com/tldraw/tldraw/pull/2180) ([@ds300](https://github.com/ds300))
2970
- - Fix crash with zero length arrow [#2173](https://github.com/tldraw/tldraw/pull/2173) ([@TodePond](https://github.com/TodePond))
2971
- - Zooming improvement [#2149](https://github.com/tldraw/tldraw/pull/2149) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2972
- - Fix an issue with `addEventListener` in old Safari (pre v14) [#2114](https://github.com/tldraw/tldraw/pull/2114) ([@MitjaBezensek](https://github.com/MitjaBezensek))
2973
-
2974
- #### 🏠 Internal
2975
-
2976
- - Revert "bump prerelease from alpha to beta" [#2192](https://github.com/tldraw/tldraw/pull/2192) ([@ds300](https://github.com/ds300))
2977
- - bump prerelease from alpha to beta [#2148](https://github.com/tldraw/tldraw/pull/2148) ([@ds300](https://github.com/ds300))
2978
- - Taha/initial shape in handle change [#2117](https://github.com/tldraw/tldraw/pull/2117) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
2979
-
2980
- #### 📝 Documentation
2981
-
2982
- - Add meta example [#2122](https://github.com/tldraw/tldraw/pull/2122) ([@steveruizok](https://github.com/steveruizok))
2983
- - Remove (optional) from jsdocs [#2109](https://github.com/tldraw/tldraw/pull/2109) ([@TodePond](https://github.com/TodePond))
2984
-
2985
- #### Authors: 5
2986
-
2987
- - David Sheldrick ([@ds300](https://github.com/ds300))
2988
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
2989
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
2990
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
2991
- - Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
2992
-
2993
- ---
2994
-
2995
- # v2.0.0-alpha.17 (Tue Oct 17 2023)
2996
-
2997
- ### Release Notes
2998
-
2999
- #### [fix] Context menu + menus not closing correctly ([#2086](https://github.com/tldraw/tldraw/pull/2086))
3000
-
3001
- - [fix] bug with menus
3002
-
3003
- #### [fix] missing border on group shape when unlocked ([#2075](https://github.com/tldraw/tldraw/pull/2075))
3004
-
3005
- - Fix case where indicator was not shown when unlocking groups
3006
-
3007
- #### [fix] reparenting locked shapes ([#2070](https://github.com/tldraw/tldraw/pull/2070))
3008
-
3009
- - Fix a bug where grouped locked shapes would be deleted when ungrouped.
3010
-
3011
- ---
3012
-
3013
- #### 🐛 Bug Fix
3014
-
3015
- - [fix] Context menu + menus not closing correctly [#2086](https://github.com/tldraw/tldraw/pull/2086) ([@steveruizok](https://github.com/steveruizok))
3016
- - [fix] remove findLast calls [#2081](https://github.com/tldraw/tldraw/pull/2081) ([@steveruizok](https://github.com/steveruizok))
3017
- - [fix] missing border on group shape when unlocked [#2075](https://github.com/tldraw/tldraw/pull/2075) ([@steveruizok](https://github.com/steveruizok))
3018
- - Compact children when updating parents to children. [#2072](https://github.com/tldraw/tldraw/pull/2072) ([@steveruizok](https://github.com/steveruizok))
3019
- - [fix] reparenting locked shapes [#2070](https://github.com/tldraw/tldraw/pull/2070) ([@steveruizok](https://github.com/steveruizok))
3020
-
3021
- #### 🔩 Dependency Updates
3022
-
3023
- - bump nanoid [#2078](https://github.com/tldraw/tldraw/pull/2078) ([@ds300](https://github.com/ds300))
3024
-
3025
- #### Authors: 2
3026
-
3027
- - David Sheldrick ([@ds300](https://github.com/ds300))
3028
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
3029
-
3030
- ---
3031
-
3032
- # v2.0.0-alpha.16 (Wed Oct 11 2023)
3033
-
3034
- ### Release Notes
3035
-
3036
- #### Fix shape opacity when erasing ([#2055](https://github.com/tldraw/tldraw/pull/2055))
3037
-
3038
- - Fixes opacity of shapes while erasing in a group or frame.
3039
-
3040
- #### [fix] Hit testing against zero width / height lines ([#2060](https://github.com/tldraw/tldraw/pull/2060))
3041
-
3042
- - [fix] Bug where arrows would not bind to straight lines
3043
-
3044
- #### [improvement] Scope `getShapeAtPoint` to rendering shapes only ([#2043](https://github.com/tldraw/tldraw/pull/2043))
3045
-
3046
- - Improve perf for hovering shapes / shape hit tests
3047
-
3048
- ---
3049
-
3050
- #### 🚀 Enhancement
3051
-
3052
- - [improvement] Scope `getShapeAtPoint` to rendering shapes only [#2043](https://github.com/tldraw/tldraw/pull/2043) ([@steveruizok](https://github.com/steveruizok))
3053
- - prevent hover indicator from showing when pointer isn't over the canvas [#2023](https://github.com/tldraw/tldraw/pull/2023) ([@SomeHats](https://github.com/SomeHats))
3054
-
3055
- #### 🐛 Bug Fix
3056
-
3057
- - Fix shape opacity when erasing [#2055](https://github.com/tldraw/tldraw/pull/2055) ([@ds300](https://github.com/ds300))
3058
- - [fix] Hit testing against zero width / height lines [#2060](https://github.com/tldraw/tldraw/pull/2060) ([@steveruizok](https://github.com/steveruizok))
3059
- - Fix newlines in text geo shapes [#2059](https://github.com/tldraw/tldraw/pull/2059) ([@SomeHats](https://github.com/SomeHats) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]) [@steveruizok](https://github.com/steveruizok))
3060
- - Restore background [#2037](https://github.com/tldraw/tldraw/pull/2037) ([@steveruizok](https://github.com/steveruizok))
3061
-
3062
- #### 🏠 Internal
3063
-
3064
- - Publish api.json [#2034](https://github.com/tldraw/tldraw/pull/2034) ([@steveruizok](https://github.com/steveruizok))
3065
-
3066
- #### Authors: 4
3067
-
3068
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
3069
- - alex ([@SomeHats](https://github.com/SomeHats))
3070
- - David Sheldrick ([@ds300](https://github.com/ds300))
3071
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
3072
-
3073
- ---
3074
-
3075
- # v2.0.0-alpha.15 (Fri Oct 06 2023)
3076
-
3077
- ### Release Notes
3078
-
3079
- #### frame label fix ([#2016](https://github.com/tldraw/tldraw/pull/2016))
3080
-
3081
- - Add a brief release note for your PR here.
3082
-
3083
- #### [improvement] prevent editing in readonly ([#1990](https://github.com/tldraw/tldraw/pull/1990))
3084
-
3085
- - Prevent editing text shapes in readonly mode.
3086
-
3087
- #### [fix] Hovered indicators shown when coarse pointer ([#1985](https://github.com/tldraw/tldraw/pull/1985))
3088
-
3089
- - Hide hovered indicators on mobile / coarse pointer devices.
3090
-
3091
- #### [fix] pinch events ([#1979](https://github.com/tldraw/tldraw/pull/1979))
3092
-
3093
- - Improve pinch gesture events.
3094
-
3095
- #### Fix text-wrapping on Safari ([#1980](https://github.com/tldraw/tldraw/pull/1980))
3096
-
3097
- - Fix text wrapping differently on Safari and Chrome/Firefox
3098
-
3099
- Before/After
3100
-
3101
- <image width="350" src="https://github.com/tldraw/tldraw/assets/98838967/320171b4-61e0-4a41-b8d3-830bd90bea65">
3102
- <image width="350" src="https://github.com/tldraw/tldraw/assets/98838967/b42d7156-0ce9-4894-9692-9338dc931b79">
3103
-
3104
- #### Remove focus management ([#1953](https://github.com/tldraw/tldraw/pull/1953))
3105
-
3106
- - [editor] Make autofocus default, remove automatic blur / focus events.
3107
-
3108
- #### Allow right clicking selection backgrounds ([#1968](https://github.com/tldraw/tldraw/pull/1968))
3109
-
3110
- - Improved right click behaviour.
3111
-
3112
- #### [improvement] improve arrows (for real) ([#1957](https://github.com/tldraw/tldraw/pull/1957))
3113
-
3114
- - Improve arrows.
3115
-
3116
- #### [feature] Include `sources` in `TLExternalContent` ([#1925](https://github.com/tldraw/tldraw/pull/1925))
3117
-
3118
- - [editor / tldraw] add `sources` to `TLExternalContent`
3119
-
3120
- #### Fix shape drag perf ([#1932](https://github.com/tldraw/tldraw/pull/1932))
3121
-
3122
- - Fixes a perf regression for dragging shapes around
3123
-
3124
- #### Use smarter rounding for shape container div width/height ([#1930](https://github.com/tldraw/tldraw/pull/1930))
3125
-
3126
- - Improves the precision of the shape dimensions rounding logic
3127
-
3128
- #### [fix] Moving group items inside of a frame (dropping) ([#1886](https://github.com/tldraw/tldraw/pull/1886))
3129
-
3130
- - Fix bug: ungroup when moving a shape in a group in a frame.
3131
-
3132
- #### Fix line wobble ([#1915](https://github.com/tldraw/tldraw/pull/1915))
3133
-
3134
- - Fixes an issue where lines would wobble as you dragged the handles around
3135
-
3136
- #### [wip] Viewport focus of editing shapes ([#1873](https://github.com/tldraw/tldraw/pull/1873))
3137
-
3138
- Removed a feature to reset the viewport back to a shape that is being edited.
3139
-
3140
- (Before) Don't be held back by the past
3141
- ![Kapture 2023-09-15 at 10 57 29](https://github.com/tldraw/tldraw/assets/98838967/d8891621-766e-46a2-b1ca-afa968b7f08c)
3142
-
3143
- (After) You are free to find new avenues of exploration
3144
- ![Kapture 2023-09-15 at 11 02 36](https://github.com/tldraw/tldraw/assets/98838967/82f318ab-944b-41bd-8297-a35467a15987)
3145
-
3146
- #### Migrate snapshot ([#1843](https://github.com/tldraw/tldraw/pull/1843))
3147
-
3148
- - [editor] add `Store.migrateSnapshot`
3149
-
3150
- #### [fix] zero width / height bounds ([#1840](https://github.com/tldraw/tldraw/pull/1840))
3151
-
3152
- - Fix bug with straight lines / arrows
3153
-
3154
- #### Fix paste transform ([#1859](https://github.com/tldraw/tldraw/pull/1859))
3155
-
3156
- - Fixes a bug affecting the position of pasted content inside frames.
3157
-
3158
- #### Fix indicator transform miscalculation ([#1852](https://github.com/tldraw/tldraw/pull/1852))
3159
-
3160
- - Fixes indicator transform miscalculation on android and windows
3161
-
3162
- #### [fix] awful rendering issue ([#1842](https://github.com/tldraw/tldraw/pull/1842))
3163
-
3164
- - [fix] iframe rendering issue
3165
-
3166
- #### [fix] snapping bug ([#1819](https://github.com/tldraw/tldraw/pull/1819))
3167
-
3168
- - [fix] crash that could occur when snapping
3169
-
3170
- #### [fix] editing video shapes ([#1821](https://github.com/tldraw/tldraw/pull/1821))
3171
-
3172
- - Fix bug with editing video shapes.
3173
-
3174
- #### [fix] bug with eventemitter3 default export ([#1818](https://github.com/tldraw/tldraw/pull/1818))
3175
-
3176
- - [@tldraw/editor] updates eventemitter3 import to fix issue with Astro builds.
3177
-
3178
- #### Custom rendering margin / don't cull selected shapes ([#1788](https://github.com/tldraw/tldraw/pull/1788))
3179
-
3180
- - [editor] add `Editor.renderingBoundsMargin`
3181
-
3182
- #### Camera APIs ([#1786](https://github.com/tldraw/tldraw/pull/1786))
3183
-
3184
- - (editor) improve camera commands
3185
-
3186
- #### environment manager ([#1784](https://github.com/tldraw/tldraw/pull/1784))
3187
-
3188
- - [editor] Move environment flags to environment manager
3189
-
3190
- #### Editor commands API / effects ([#1778](https://github.com/tldraw/tldraw/pull/1778))
3191
-
3192
- - tbd
3193
-
3194
- #### [fix] shape indicator showing when locked shapes are hovered ([#1771](https://github.com/tldraw/tldraw/pull/1771))
3195
-
3196
- - locked shapes do not show an indicator when hovered
3197
-
3198
- #### remove `selectionPageCenter` ([#1766](https://github.com/tldraw/tldraw/pull/1766))
3199
-
3200
- - [dev] Removes `Editor.selectionPageCenter`
3201
-
3202
- #### rename selection page bounds ([#1763](https://github.com/tldraw/tldraw/pull/1763))
3203
-
3204
- - [editor] rename `selectedPageBounds` to `selectionPageBounds`
3205
-
3206
- #### `ShapeUtil.getGeometry`, selection rewrite ([#1751](https://github.com/tldraw/tldraw/pull/1751))
3207
-
3208
- - [editor] Remove `ShapeUtil.getBounds`, `ShapeUtil.getOutline`, `ShapeUtil.hitTestPoint`, `ShapeUtil.hitTestLineSegment`
3209
- - [editor] Add `ShapeUtil.getGeometry`
3210
- - [editor] Add `Editor.getShapeGeometry`
3211
-
3212
- #### [fix] arrow snapping bug ([#1756](https://github.com/tldraw/tldraw/pull/1756))
3213
-
3214
- - [fix] arrow snapping
3215
-
3216
- #### [fix] dark mode ([#1754](https://github.com/tldraw/tldraw/pull/1754))
3217
-
3218
- - [fix] dark mode colors not updating
3219
-
3220
- #### Remove helpers / extraneous API methods. ([#1745](https://github.com/tldraw/tldraw/pull/1745))
3221
-
3222
- - [tldraw] rename `useReadonly` to `useReadOnly`
3223
- - [editor] remove `Editor.isDarkMode`
3224
- - [editor] remove `Editor.isChangingStyle`
3225
- - [editor] remove `Editor.isCoarsePointer`
3226
- - [editor] remove `Editor.isDarkMode`
3227
- - [editor] remove `Editor.isFocused`
3228
- - [editor] remove `Editor.isGridMode`
3229
- - [editor] remove `Editor.isPenMode`
3230
- - [editor] remove `Editor.isReadOnly`
3231
- - [editor] remove `Editor.isSnapMode`
3232
- - [editor] remove `Editor.isToolLocked`
3233
- - [editor] remove `Editor.locale`
3234
- - [editor] rename `Editor.pageState` to `Editor.currentPageState`
3235
- - [editor] add `Editor.pageStates`
3236
- - [editor] add `Editor.setErasingIds`
3237
- - [editor] add `Editor.setEditingId`
3238
- - [editor] add several new component overrides
3239
-
3240
- #### tldraw zero - package shuffle ([#1710](https://github.com/tldraw/tldraw/pull/1710))
3241
-
3242
- - [@tldraw/editor] lots, wip
3243
- - [@tldraw/ui] gone, merged to tldraw/tldraw
3244
- - [@tldraw/polyfills] gone, merged to tldraw/editor
3245
- - [@tldraw/primitives] gone, merged to tldraw/editor / tldraw/tldraw
3246
- - [@tldraw/indices] gone, merged to tldraw/editor
3247
- - [@tldraw/file-format] gone, merged to tldraw/tldraw
3248
-
3249
- #### tweaks for cloud shape ([#1723](https://github.com/tldraw/tldraw/pull/1723))
3250
-
3251
- - Add a brief release note for your PR here.
3252
-
3253
- #### Add cloud shape ([#1708](https://github.com/tldraw/tldraw/pull/1708))
3254
-
3255
- - Adds a cloud shape.
3256
-
3257
- #### [refactor] reduce dependencies on shape utils in editor ([#1693](https://github.com/tldraw/tldraw/pull/1693))
3258
-
3259
- - removes shape utils from the arguments of `isShapeOfType`, replacing with a generic
3260
- - removes shape utils from the arguments of `getShapeUtil`, replacing with a generic
3261
- - moves custom arrow info cache out of the util and into the editor class
3262
- - changes the a tool's `shapeType` to be a string instead of a shape util
3263
-
3264
- #### Make some missing tsdocs appear on the docs site ([#1706](https://github.com/tldraw/tldraw/pull/1706))
3265
-
3266
- - Docs: Fixed some missing docs for the TldrawEditor component.
3267
-
3268
- #### [hot take] remove `tool` from shape definition ([#1691](https://github.com/tldraw/tldraw/pull/1691))
3269
-
3270
- - [dev] Removed the `tool` property from `defineShape`
3271
-
3272
- #### [refactor] reordering shapes ([#1718](https://github.com/tldraw/tldraw/pull/1718))
3273
-
3274
- - [api] removes `Editor.getParentsMappedToChildren`
3275
- - [api] removes `Editor.reorderShapes`
3276
- - [api] moves reordering shapes code into its own file, outside of the editor
3277
-
3278
- #### remove state checks for brush and zoom brush ([#1717](https://github.com/tldraw/tldraw/pull/1717))
3279
-
3280
- - [editor] remove `editor.isIn` state checks for displaying brush and zoom brush.
3281
-
3282
- #### Go back to default cursor when done resizing. ([#1700](https://github.com/tldraw/tldraw/pull/1700))
3283
-
3284
- - Switch back to the default cursor after you are done inserting a new text shape.
3285
-
3286
- #### Firefox: Fix coarse pointer issue ([#1701](https://github.com/tldraw/tldraw/pull/1701))
3287
-
3288
- - Fixed firefox not being able to use cursor chat when using a touch screen on desktop.
3289
-
3290
- ---
3291
-
3292
- #### 💥 Breaking Change
3293
-
3294
- - [improvement] prevent editing in readonly [#1990](https://github.com/tldraw/tldraw/pull/1990) ([@steveruizok](https://github.com/steveruizok))
3295
- - Remove focus management [#1953](https://github.com/tldraw/tldraw/pull/1953) ([@steveruizok](https://github.com/steveruizok) [@ds300](https://github.com/ds300))
3296
- - Make user preferences optional [#1963](https://github.com/tldraw/tldraw/pull/1963) ([@ds300](https://github.com/ds300))
3297
- - [fix] style changes [#1814](https://github.com/tldraw/tldraw/pull/1814) ([@steveruizok](https://github.com/steveruizok))
3298
- - Cleanup page state commands [#1800](https://github.com/tldraw/tldraw/pull/1800) ([@steveruizok](https://github.com/steveruizok))
3299
- - Rendering / cropping side-effects [#1799](https://github.com/tldraw/tldraw/pull/1799) ([@steveruizok](https://github.com/steveruizok))
3300
- - history options / markId / createPage [#1796](https://github.com/tldraw/tldraw/pull/1796) ([@steveruizok](https://github.com/steveruizok))
3301
- - Update setter names, `setXXShapeId` rather than `setXXId` [#1789](https://github.com/tldraw/tldraw/pull/1789) ([@steveruizok](https://github.com/steveruizok))
3302
- - Rename shapes apis [#1787](https://github.com/tldraw/tldraw/pull/1787) ([@steveruizok](https://github.com/steveruizok))
3303
- - Camera APIs [#1786](https://github.com/tldraw/tldraw/pull/1786) ([@steveruizok](https://github.com/steveruizok))
3304
- - SideEffectManager [#1785](https://github.com/tldraw/tldraw/pull/1785) ([@steveruizok](https://github.com/steveruizok))
3305
- - environment manager [#1784](https://github.com/tldraw/tldraw/pull/1784) ([@steveruizok](https://github.com/steveruizok))
3306
- - Revert "Editor commands API / effects" [#1783](https://github.com/tldraw/tldraw/pull/1783) ([@steveruizok](https://github.com/steveruizok))
3307
- - Editor commands API / effects [#1778](https://github.com/tldraw/tldraw/pull/1778) ([@steveruizok](https://github.com/steveruizok))
3308
- - remove `selectionPageCenter` [#1766](https://github.com/tldraw/tldraw/pull/1766) ([@steveruizok](https://github.com/steveruizok))
3309
- - rename selection page bounds [#1763](https://github.com/tldraw/tldraw/pull/1763) ([@steveruizok](https://github.com/steveruizok))
3310
- - `ShapeUtil.getGeometry`, selection rewrite [#1751](https://github.com/tldraw/tldraw/pull/1751) ([@steveruizok](https://github.com/steveruizok))
3311
- - More cleanup, focus bug fixes [#1749](https://github.com/tldraw/tldraw/pull/1749) ([@steveruizok](https://github.com/steveruizok))
3312
- - move some utils into tldraw/utils [#1750](https://github.com/tldraw/tldraw/pull/1750) ([@steveruizok](https://github.com/steveruizok))
3313
- - Remove helpers / extraneous API methods. [#1745](https://github.com/tldraw/tldraw/pull/1745) ([@steveruizok](https://github.com/steveruizok))
3314
- - tldraw zero - package shuffle [#1710](https://github.com/tldraw/tldraw/pull/1710) ([@steveruizok](https://github.com/steveruizok) [@SomeHats](https://github.com/SomeHats))
3315
- - [refactor] reduce dependencies on shape utils in editor [#1693](https://github.com/tldraw/tldraw/pull/1693) ([@steveruizok](https://github.com/steveruizok))
3316
- - [hot take] remove `tool` from shape definition [#1691](https://github.com/tldraw/tldraw/pull/1691) ([@TodePond](https://github.com/TodePond))
3317
- - [refactor] reordering shapes [#1718](https://github.com/tldraw/tldraw/pull/1718) ([@steveruizok](https://github.com/steveruizok))
3318
-
3319
- #### 🚀 Enhancement
3320
-
3321
- - Debugging cleanup / misc cleanup [#2025](https://github.com/tldraw/tldraw/pull/2025) ([@steveruizok](https://github.com/steveruizok))
3322
- - [feature] Include `sources` in `TLExternalContent` [#1925](https://github.com/tldraw/tldraw/pull/1925) ([@steveruizok](https://github.com/steveruizok))
3323
- - Fix arrow handle snapping, snapping to text labels, selection of text labels [#1910](https://github.com/tldraw/tldraw/pull/1910) ([@steveruizok](https://github.com/steveruizok))
3324
- - Migrate snapshot [#1843](https://github.com/tldraw/tldraw/pull/1843) ([@steveruizok](https://github.com/steveruizok))
3325
- - Add snapshot prop, examples [#1856](https://github.com/tldraw/tldraw/pull/1856) ([@steveruizok](https://github.com/steveruizok))
3326
- - Add className as prop to Canvas [#1827](https://github.com/tldraw/tldraw/pull/1827) ([@steveruizok](https://github.com/steveruizok))
3327
- - [improvement] More selection logic [#1806](https://github.com/tldraw/tldraw/pull/1806) ([@steveruizok](https://github.com/steveruizok))
3328
- - refactor `parentsToChildrenWithIndexes` [#1764](https://github.com/tldraw/tldraw/pull/1764) ([@steveruizok](https://github.com/steveruizok))
3329
- - [fix] arrow snapping bug [#1756](https://github.com/tldraw/tldraw/pull/1756) ([@steveruizok](https://github.com/steveruizok))
3330
- - Add cloud shape [#1708](https://github.com/tldraw/tldraw/pull/1708) ([@ds300](https://github.com/ds300))
3331
- - remove state checks for brush and zoom brush [#1717](https://github.com/tldraw/tldraw/pull/1717) ([@steveruizok](https://github.com/steveruizok))
3332
-
3333
- #### 🐛 Bug Fix
3334
-
3335
- - fix screen bounds not updating [#2022](https://github.com/tldraw/tldraw/pull/2022) ([@SomeHats](https://github.com/SomeHats))
3336
- - frame label fix [#2016](https://github.com/tldraw/tldraw/pull/2016) ([@ds300](https://github.com/ds300))
3337
- - [improvement] Refactor curved arrows [#2019](https://github.com/tldraw/tldraw/pull/2019) ([@steveruizok](https://github.com/steveruizok))
3338
- - [fix] Focus events (actually) [#2015](https://github.com/tldraw/tldraw/pull/2015) ([@steveruizok](https://github.com/steveruizok))
3339
- - [fix] focus events [#2013](https://github.com/tldraw/tldraw/pull/2013) ([@steveruizok](https://github.com/steveruizok))
3340
- - Re-focus on focus. [#2010](https://github.com/tldraw/tldraw/pull/2010) ([@steveruizok](https://github.com/steveruizok))
3341
- - Contain all the things [#1999](https://github.com/tldraw/tldraw/pull/1999) ([@steveruizok](https://github.com/steveruizok))
3342
- - fix text in geo shapes not causing its container to grow [#2003](https://github.com/tldraw/tldraw/pull/2003) ([@SomeHats](https://github.com/SomeHats))
3343
- - Fix an issue with arrow creation. [#2004](https://github.com/tldraw/tldraw/pull/2004) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
3344
- - [fix] X box shape arrow intersections [#2006](https://github.com/tldraw/tldraw/pull/2006) ([@steveruizok](https://github.com/steveruizok))
3345
- - Fix group opacity [#1997](https://github.com/tldraw/tldraw/pull/1997) ([@ds300](https://github.com/ds300))
3346
- - [fix] Escape key exiting full screen while editing shapes [#1986](https://github.com/tldraw/tldraw/pull/1986) ([@steveruizok](https://github.com/steveruizok))
3347
- - [fix] Hovered indicators shown when coarse pointer [#1985](https://github.com/tldraw/tldraw/pull/1985) ([@steveruizok](https://github.com/steveruizok))
3348
- - Sliiiightly darken muted-2 color. [#1981](https://github.com/tldraw/tldraw/pull/1981) ([@steveruizok](https://github.com/steveruizok))
3349
- - [fix] pinch events [#1979](https://github.com/tldraw/tldraw/pull/1979) ([@steveruizok](https://github.com/steveruizok))
3350
- - Fix text-wrapping on Safari [#1980](https://github.com/tldraw/tldraw/pull/1980) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
3351
- - [fix] text shape outline [#1974](https://github.com/tldraw/tldraw/pull/1974) ([@steveruizok](https://github.com/steveruizok))
3352
- - Make state node methods arrow functions [#1973](https://github.com/tldraw/tldraw/pull/1973) ([@steveruizok](https://github.com/steveruizok))
3353
- - Arrows followup [#1972](https://github.com/tldraw/tldraw/pull/1972) ([@steveruizok](https://github.com/steveruizok))
3354
- - Allow right clicking selection backgrounds [#1968](https://github.com/tldraw/tldraw/pull/1968) ([@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok))
3355
- - [improvement] improve arrows (for real) [#1957](https://github.com/tldraw/tldraw/pull/1957) ([@steveruizok](https://github.com/steveruizok))
3356
- - [fix] geo shape text label placement [#1927](https://github.com/tldraw/tldraw/pull/1927) ([@steveruizok](https://github.com/steveruizok) [@ds300](https://github.com/ds300))
3357
- - fix clipping on nested non-intersecting frames [#1934](https://github.com/tldraw/tldraw/pull/1934) ([@SomeHats](https://github.com/SomeHats))
3358
- - expanded highlighter geometry [#1929](https://github.com/tldraw/tldraw/pull/1929) ([@SomeHats](https://github.com/SomeHats))
3359
- - Fix shape drag perf [#1932](https://github.com/tldraw/tldraw/pull/1932) ([@ds300](https://github.com/ds300))
3360
- - Use smarter rounding for shape container div width/height [#1930](https://github.com/tldraw/tldraw/pull/1930) ([@ds300](https://github.com/ds300))
3361
- - [fix] Moving group items inside of a frame (dropping) [#1886](https://github.com/tldraw/tldraw/pull/1886) ([@mr04vv](https://github.com/mr04vv) [@steveruizok](https://github.com/steveruizok))
3362
- - Fix line wobble [#1915](https://github.com/tldraw/tldraw/pull/1915) ([@ds300](https://github.com/ds300))
3363
- - [fix] right click [#1891](https://github.com/tldraw/tldraw/pull/1891) ([@steveruizok](https://github.com/steveruizok))
3364
- - [wip] Viewport focus of editing shapes [#1873](https://github.com/tldraw/tldraw/pull/1873) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
3365
- - [fix] iframe losing focus on pointer down [#1848](https://github.com/tldraw/tldraw/pull/1848) ([@steveruizok](https://github.com/steveruizok))
3366
- - [fix] zero width / height bounds [#1840](https://github.com/tldraw/tldraw/pull/1840) ([@steveruizok](https://github.com/steveruizok))
3367
- - avoid pixel rounding / transformation miscalc for overlay items [#1858](https://github.com/tldraw/tldraw/pull/1858) ([@BrianHung](https://github.com/BrianHung) [@ds300](https://github.com/ds300))
3368
- - Fix paste transform [#1859](https://github.com/tldraw/tldraw/pull/1859) ([@ds300](https://github.com/ds300))
3369
- - Fix indicator transform miscalculation [#1852](https://github.com/tldraw/tldraw/pull/1852) ([@ds300](https://github.com/ds300))
3370
- - [fix] pointer events in shapes [#1855](https://github.com/tldraw/tldraw/pull/1855) ([@steveruizok](https://github.com/steveruizok))
3371
- - [fix] overlays stacking [#1849](https://github.com/tldraw/tldraw/pull/1849) ([@steveruizok](https://github.com/steveruizok))
3372
- - [fix] awful rendering issue [#1842](https://github.com/tldraw/tldraw/pull/1842) ([@steveruizok](https://github.com/steveruizok))
3373
- - [fix] svg overlays when browser zoom is not 100% [#1836](https://github.com/tldraw/tldraw/pull/1836) ([@steveruizok](https://github.com/steveruizok))
3374
- - Allow setting `user` as a prop [#1832](https://github.com/tldraw/tldraw/pull/1832) ([@SomeHats](https://github.com/SomeHats))
3375
- - [fix] text editing outline when scaled [#1826](https://github.com/tldraw/tldraw/pull/1826) ([@steveruizok](https://github.com/steveruizok))
3376
- - [fix] Line shape rendering [#1825](https://github.com/tldraw/tldraw/pull/1825) ([@steveruizok](https://github.com/steveruizok))
3377
- - [fix] remove CSS radius calculations [#1823](https://github.com/tldraw/tldraw/pull/1823) ([@steveruizok](https://github.com/steveruizok))
3378
- - [fix] snapping bug [#1819](https://github.com/tldraw/tldraw/pull/1819) ([@steveruizok](https://github.com/steveruizok))
3379
- - [fix] Replace `findLast` for browser compat [#1822](https://github.com/tldraw/tldraw/pull/1822) ([@steveruizok](https://github.com/steveruizok))
3380
- - [fix] editing video shapes [#1821](https://github.com/tldraw/tldraw/pull/1821) ([@steveruizok](https://github.com/steveruizok))
3381
- - [fix] bug with eventemitter3 default export [#1818](https://github.com/tldraw/tldraw/pull/1818) ([@steveruizok](https://github.com/steveruizok))
3382
- - [fix] Sticky text content / hovered shapes [#1808](https://github.com/tldraw/tldraw/pull/1808) ([@steveruizok](https://github.com/steveruizok))
3383
- - [fix] page to screen [#1797](https://github.com/tldraw/tldraw/pull/1797) ([@steveruizok](https://github.com/steveruizok))
3384
- - Custom rendering margin / don't cull selected shapes [#1788](https://github.com/tldraw/tldraw/pull/1788) ([@steveruizok](https://github.com/steveruizok))
3385
- - [fix] handles updates [#1779](https://github.com/tldraw/tldraw/pull/1779) ([@steveruizok](https://github.com/steveruizok))
3386
- - [fix] transform errors [#1772](https://github.com/tldraw/tldraw/pull/1772) ([@steveruizok](https://github.com/steveruizok))
3387
- - [fix] shape indicator showing when locked shapes are hovered [#1771](https://github.com/tldraw/tldraw/pull/1771) ([@steveruizok](https://github.com/steveruizok))
3388
- - [fix] minimap, common page bounds [#1770](https://github.com/tldraw/tldraw/pull/1770) ([@steveruizok](https://github.com/steveruizok))
3389
- - [fix] restore bg option, fix calculations [#1765](https://github.com/tldraw/tldraw/pull/1765) ([@steveruizok](https://github.com/steveruizok))
3390
- - [fix] dark mode [#1754](https://github.com/tldraw/tldraw/pull/1754) ([@steveruizok](https://github.com/steveruizok))
3391
- - tweaks for cloud shape [#1723](https://github.com/tldraw/tldraw/pull/1723) ([@ds300](https://github.com/ds300))
3392
- - Go back to default cursor when done resizing. [#1700](https://github.com/tldraw/tldraw/pull/1700) ([@MitjaBezensek](https://github.com/MitjaBezensek))
3393
- - Firefox: Fix coarse pointer issue [#1701](https://github.com/tldraw/tldraw/pull/1701) ([@TodePond](https://github.com/TodePond))
3394
-
3395
- #### 📝 Documentation
3396
-
3397
- - Make some missing tsdocs appear on the docs site [#1706](https://github.com/tldraw/tldraw/pull/1706) ([@TodePond](https://github.com/TodePond))
3398
-
3399
- #### 🔩 Dependency Updates
3400
-
3401
- - (chore) bump [#1744](https://github.com/tldraw/tldraw/pull/1744) ([@steveruizok](https://github.com/steveruizok))
3402
-
3403
- #### Authors: 8
3404
-
3405
- - alex ([@SomeHats](https://github.com/SomeHats))
3406
- - Brian Hung ([@BrianHung](https://github.com/BrianHung))
3407
- - David Sheldrick ([@ds300](https://github.com/ds300))
3408
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
3409
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
3410
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
3411
- - Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
3412
- - Takuto Mori Gump ([@mr04vv](https://github.com/mr04vv))
3413
-
3414
- ---
3415
-
3416
- # v2.0.0-alpha.14 (Tue Jul 04 2023)
3417
-
3418
- ### Release Notes
3419
-
3420
- #### [fix] penmode ([#1698](https://github.com/tldraw/tldraw/pull/1698))
3421
-
3422
- - [fix] pen mode
3423
-
3424
- #### [improvement] More nuanced cursor state ([#1682](https://github.com/tldraw/tldraw/pull/1682))
3425
-
3426
- - Improve cursor timeouts and hiding logic.
3427
-
3428
- #### [fix] comma keyboard shortcuts ([#1675](https://github.com/tldraw/tldraw/pull/1675))
3429
-
3430
- - [@tldraw/editor] Bug fixes on document events.
3431
-
3432
- #### [improvement] add box sizing border box ([#1674](https://github.com/tldraw/tldraw/pull/1674))
3433
-
3434
- - [@tldraw/editor] Add `box-sizing: border-box` to `tl-container`
3435
-
3436
- #### [improvemnet] drop crc, Buffer dependency ([#1673](https://github.com/tldraw/tldraw/pull/1673))
3437
-
3438
- - [@tldraw/editor] Remove peer dependency on buffer.
3439
-
3440
- #### [improvement] export scribble manager ([#1671](https://github.com/tldraw/tldraw/pull/1671))
3441
-
3442
- - [@tldraw/tldraw] Export `ScribbleManager`
3443
-
3444
- #### [feature] add `meta` property to records ([#1627](https://github.com/tldraw/tldraw/pull/1627))
3445
-
3446
- - todo
3447
-
3448
- ---
3449
-
3450
- #### 🚀 Enhancement
3451
-
3452
- - [improvement] More nuanced cursor state [#1682](https://github.com/tldraw/tldraw/pull/1682) ([@steveruizok](https://github.com/steveruizok))
3453
- - [improvement] export scribble manager [#1671](https://github.com/tldraw/tldraw/pull/1671) ([@steveruizok](https://github.com/steveruizok))
3454
- - [feature] add `meta` property to records [#1627](https://github.com/tldraw/tldraw/pull/1627) ([@steveruizok](https://github.com/steveruizok))
3455
-
3456
- #### 🐛 Bug Fix
3457
-
3458
- - [fix] penmode [#1698](https://github.com/tldraw/tldraw/pull/1698) ([@steveruizok](https://github.com/steveruizok))
3459
- - [fix] indicator not updating [#1696](https://github.com/tldraw/tldraw/pull/1696) ([@steveruizok](https://github.com/steveruizok))
3460
- - [fix] comma keyboard shortcuts [#1675](https://github.com/tldraw/tldraw/pull/1675) ([@steveruizok](https://github.com/steveruizok))
3461
- - [improvement] add box sizing border box [#1674](https://github.com/tldraw/tldraw/pull/1674) ([@steveruizok](https://github.com/steveruizok))
3462
- - [improvemnet] drop crc, Buffer dependency [#1673](https://github.com/tldraw/tldraw/pull/1673) ([@steveruizok](https://github.com/steveruizok))
3463
- - [fix] Shape rendering [#1670](https://github.com/tldraw/tldraw/pull/1670) ([@steveruizok](https://github.com/steveruizok))
3464
-
3465
- #### Authors: 1
3466
-
3467
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
3468
-
3469
- ---
3470
-
3471
- # v2.0.0-alpha.13 (Wed Jun 28 2023)
3472
-
3473
- ### Release Notes
3474
-
3475
- #### Fix crash when rotating a deleted shape ([#1658](https://github.com/tldraw/tldraw/pull/1658))
3476
-
3477
- - Fixed a crash when trying to rotate a deleted shape.
3478
-
3479
- #### [improvement] store snapshot types ([#1657](https://github.com/tldraw/tldraw/pull/1657))
3480
-
3481
- - [dev] Rename `StoreSnapshot` to `SerializedStore`
3482
- - [dev] Create new `StoreSnapshot` as type related to `getSnapshot`/`loadSnapshot`
3483
-
3484
- #### [fix] pen mode touches ([#1655](https://github.com/tldraw/tldraw/pull/1655))
3485
-
3486
- - Removes three touches to cancel pen mode feature.
3487
-
3488
- #### Fix text shapes not having colour ([#1649](https://github.com/tldraw/tldraw/pull/1649))
3489
-
3490
- - None: Fixes an unreleased bug.
3491
-
3492
- #### Styles API docs ([#1641](https://github.com/tldraw/tldraw/pull/1641))
3493
-
3494
- --
3495
-
3496
- #### Styles API follow-ups ([#1636](https://github.com/tldraw/tldraw/pull/1636))
3497
-
3498
- --
3499
-
3500
- #### Fix SVG cursors not being used ([#1639](https://github.com/tldraw/tldraw/pull/1639))
3501
-
3502
- - None: Fixing an unreleased bug.
3503
-
3504
- #### `ShapeUtil` refactor, `Editor` cleanup ([#1611](https://github.com/tldraw/tldraw/pull/1611))
3505
-
3506
- - [editor] renames `defaultProps` to `getDefaultProps`
3507
- - [editor] removes `outline`, `outlineSegments`, `handles`, `bounds`
3508
- - [editor] renames `renderBackground` to `backgroundComponent`
3509
-
3510
- #### Revert "Update dependencies (#1613)" ([#1617](https://github.com/tldraw/tldraw/pull/1617))
3511
-
3512
- -
3513
-
3514
- #### Remove on drop override ([#1612](https://github.com/tldraw/tldraw/pull/1612))
3515
-
3516
- - [editor] Remove `onDropOverride`
3517
-
3518
- #### Make resizeBox a regular function ([#1610](https://github.com/tldraw/tldraw/pull/1610))
3519
-
3520
- - [editor] Change `resizeBox` to be a regular function.
3521
-
3522
- #### Rename `ShapeUtil.render` -> `ShapeUtil.component` ([#1609](https://github.com/tldraw/tldraw/pull/1609))
3523
-
3524
- - [editor] rename `ShapeUtil.render` to `ShapeUtil.component`
3525
-
3526
- #### tldraw.css ([#1607](https://github.com/tldraw/tldraw/pull/1607))
3527
-
3528
- - [tldraw] Removes `editor.css` and `ui.css` exports, replaces with `tldraw.css`
3529
-
3530
- #### [fix] camera culling ([#1602](https://github.com/tldraw/tldraw/pull/1602))
3531
-
3532
- - [editor] Adds `Editor.cameraState`
3533
- - Adds smart culling to make panning and zooming more smooth
3534
-
3535
- #### Styles API ([#1580](https://github.com/tldraw/tldraw/pull/1580))
3536
-
3537
- -
3538
-
3539
- #### (1/2) Timeout collaborator cursors ([#1525](https://github.com/tldraw/tldraw/pull/1525))
3540
-
3541
- - Brought back cursor timeouts. Collaborator cursors now disappear after 3 seconds of inactivity.
3542
-
3543
- #### (1/2) Cursor Chat - Presence ([#1487](https://github.com/tldraw/tldraw/pull/1487))
3544
-
3545
- - [dev] Added support for cursor chat presence.
3546
-
3547
- #### [refactor] snapping ([#1589](https://github.com/tldraw/tldraw/pull/1589))
3548
-
3549
- - [editor] fix bug in snapping
3550
-
3551
- #### remove `ShapeUtil.transform` ([#1590](https://github.com/tldraw/tldraw/pull/1590))
3552
-
3553
- - [editor] Remove `ShapeUtil.transform`
3554
-
3555
- #### Make sure loading screens use dark mode user preference. ([#1552](https://github.com/tldraw/tldraw/pull/1552))
3556
-
3557
- - Make sure our loading and error screens take dark mode setting into account.
3558
-
3559
- #### remove `ShapeUtil.point` ([#1591](https://github.com/tldraw/tldraw/pull/1591))
3560
-
3561
- - [editor] Remove `ShapeUtil.point`
3562
-
3563
- #### [fix] Remove group shape export backgrounds ([#1587](https://github.com/tldraw/tldraw/pull/1587))
3564
-
3565
- - Fix image exports for groups
3566
-
3567
- #### Add tsdocs to Editor methods ([#1581](https://github.com/tldraw/tldraw/pull/1581))
3568
-
3569
- - [dev] Added initial documentation for the Editor class.
3570
-
3571
- #### Add optional generic to `updateShapes` / `createShapes` ([#1579](https://github.com/tldraw/tldraw/pull/1579))
3572
-
3573
- - [editor] adds an optional shape generic to `updateShapes` and `createShapes`
3574
-
3575
- #### [improvement] Embed shape cleanup ([#1569](https://github.com/tldraw/tldraw/pull/1569))
3576
-
3577
- - [editor] Remove unused props for `TLEditorShape`
3578
- - [editor] Adds `canUnmount` property to embed definitions
3579
-
3580
- #### Move the loading of assets to the TldrawEditorWithReadyStore so that all code paths load the assets. ([#1561](https://github.com/tldraw/tldraw/pull/1561))
3581
-
3582
- - Fix a problem where assets were not loading in some cases (snapshots).
3583
-
3584
- #### shapes folder, move tools into shape defs ([#1574](https://github.com/tldraw/tldraw/pull/1574))
3585
-
3586
- n/a
3587
-
3588
- #### mini `defineShape` API ([#1563](https://github.com/tldraw/tldraw/pull/1563))
3589
-
3590
- [dev-facing, notes to come]
3591
-
3592
- #### yjs example ([#1560](https://github.com/tldraw/tldraw/pull/1560))
3593
-
3594
- - [editor] Adds yjs example project
3595
-
3596
- #### Misc sync fixes ([#1555](https://github.com/tldraw/tldraw/pull/1555))
3597
-
3598
- - Fixes a handful of state management bugs that manifest in multiplayer rooms
3599
-
3600
- #### [Docs] Change some editor properties to methods ([#1553](https://github.com/tldraw/tldraw/pull/1553))
3601
-
3602
- - [docs] Fixed some methods that were incorrectly marked as properties.
3603
-
3604
- #### [Docs] Change some internal methods to public ([#1554](https://github.com/tldraw/tldraw/pull/1554))
3605
-
3606
- - [docs] Changed some Editor methods from internal to public.
3607
-
3608
- #### Use unpkg as a default for serving assets. ([#1548](https://github.com/tldraw/tldraw/pull/1548))
3609
-
3610
- - Use unpkg asset hosting as a default.
3611
-
3612
- #### hoist opacity out of props ([#1526](https://github.com/tldraw/tldraw/pull/1526))
3613
-
3614
- [internal only for now]
3615
-
3616
- #### Fix arrows with weird bends crashing ([#1540](https://github.com/tldraw/tldraw/pull/1540))
3617
-
3618
- - Fixed a rare crash that could happen when you try to curve an arrow with zero distance.
3619
-
3620
- #### [feature] add vertical align to note shape ([#1539](https://github.com/tldraw/tldraw/pull/1539))
3621
-
3622
- - Adds vertical align prop to note shapes
3623
-
3624
- #### [fix] Shift key code / nudge ([#1537](https://github.com/tldraw/tldraw/pull/1537))
3625
-
3626
- - Fix shift key nudging
3627
-
3628
- #### scale exported canvases when they reach the browsers max size ([#1536](https://github.com/tldraw/tldraw/pull/1536))
3629
-
3630
- - Fix a bug where sometimes exports would fail when they were too big for your browser. Now, they're scaled down to the max supported size.
3631
-
3632
- #### [fix] control click on mac ([#1535](https://github.com/tldraw/tldraw/pull/1535))
3633
-
3634
- - Fix control click to open menu on Mac
3635
-
3636
- #### Fix being able to undo following ([#1531](https://github.com/tldraw/tldraw/pull/1531))
3637
-
3638
- - Fixed a bug where you could undo viewport-following and viewport-unfollowing.
3639
-
3640
- #### highlighter fixes ([#1530](https://github.com/tldraw/tldraw/pull/1530))
3641
-
3642
- [aq bug fixes]
3643
-
3644
- #### Simplify static cursors ([#1520](https://github.com/tldraw/tldraw/pull/1520))
3645
-
3646
- - (editor) Simplifies the cursors in our CSS.
3647
-
3648
- #### Renaming types, shape utils, tools ([#1513](https://github.com/tldraw/tldraw/pull/1513))
3649
-
3650
- - Renaming of types, shape utils, tools
3651
-
3652
- #### tlschema cleanup ([#1509](https://github.com/tldraw/tldraw/pull/1509))
3653
-
3654
- - [editor] Remove `app.createShapeId`
3655
- - [tlschema] Cleans up exports
3656
-
3657
- #### Rename tlstore to store ([#1507](https://github.com/tldraw/tldraw/pull/1507))
3658
-
3659
- - Replace @tldraw/tlstore with @tldraw/store
3660
-
3661
- #### Rename tlvalidate to validate ([#1508](https://github.com/tldraw/tldraw/pull/1508))
3662
-
3663
- - Rename tlvalidate to validate
3664
-
3665
- #### rename app to editor ([#1503](https://github.com/tldraw/tldraw/pull/1503))
3666
-
3667
- - Rename `App` to `Editor` and many other things that reference `app` to `editor`.
3668
-
3669
- #### Add support for locking shapes ([#1447](https://github.com/tldraw/tldraw/pull/1447))
3670
-
3671
- - Add support for locking shapes.
3672
-
3673
- #### [3/3] Highlighter styling ([#1490](https://github.com/tldraw/tldraw/pull/1490))
3674
-
3675
- Highlighter pen is here! 🎉🎉🎉
3676
-
3677
- #### [2/3] renderer changes to support "sandwich mode" highlighting ([#1418](https://github.com/tldraw/tldraw/pull/1418))
3678
-
3679
- [not yet!]
3680
-
3681
- #### [1/3] initial highlighter shape/tool ([#1401](https://github.com/tldraw/tldraw/pull/1401))
3682
-
3683
- [internal only change layout ground work for highlighter]
3684
-
3685
- #### [feature] reduce motion ([#1485](https://github.com/tldraw/tldraw/pull/1485))
3686
-
3687
- - [editor] Add `reduceMotion` user preference
3688
- - Add reduce motion option to preferences
3689
-
3690
- #### Feature flags rework ([#1474](https://github.com/tldraw/tldraw/pull/1474))
3691
-
3692
- [internal only change]
3693
-
3694
- #### [tiny] add isPageId ([#1482](https://github.com/tldraw/tldraw/pull/1482))
3695
-
3696
- - [tlschema] Add `isPageId`
3697
-
3698
- #### [refactor] update record names ([#1473](https://github.com/tldraw/tldraw/pull/1473))
3699
-
3700
- - [editor] rename record types
3701
-
3702
- #### [mini-feature] Following indicator ([#1468](https://github.com/tldraw/tldraw/pull/1468))
3703
-
3704
- - Adds viewport following indicator
3705
-
3706
- #### [chore] refactor user preferences ([#1435](https://github.com/tldraw/tldraw/pull/1435))
3707
-
3708
- - Add a brief release note for your PR here.
3709
-
3710
- #### update use-gesture ([#1453](https://github.com/tldraw/tldraw/pull/1453))
3711
-
3712
- - Updates use-gesture to fix pinch gesture bug on iPad.
3713
-
3714
- #### Add migration for horizontal alignment ([#1443](https://github.com/tldraw/tldraw/pull/1443))
3715
-
3716
- - Add support for legacy alignment options.
3717
-
3718
- #### Stricter ID types ([#1439](https://github.com/tldraw/tldraw/pull/1439))
3719
-
3720
- [internal only, covered by #1432 changelog]
3721
-
3722
- #### [refactor] restore createTLSchema ([#1444](https://github.com/tldraw/tldraw/pull/1444))
3723
-
3724
- - [editor] Simplifies custom shape definition
3725
- - [tldraw] Updates props for <TldrawEditor> component to require a `TldrawEditorConfig`.
3726
-
3727
- #### Fix cursor shadow getting clipped ([#1441](https://github.com/tldraw/tldraw/pull/1441))
3728
-
3729
- - Fixed a bug where custom cursors could have their shadow clipped.
3730
-
3731
- #### Add SVG cursors for all cursor types ([#1416](https://github.com/tldraw/tldraw/pull/1416))
3732
-
3733
- - Added consistent custom cursors.
3734
-
3735
- #### [refactor] remove `createTLSchema` ([#1440](https://github.com/tldraw/tldraw/pull/1440))
3736
-
3737
- - [tlschema] Removes `createTLSchema` in favor of `TldrawEditorConfig`
3738
-
3739
- #### [refactor] Remove `TLShapeDef`, `getShapeUtilByType`. ([#1432](https://github.com/tldraw/tldraw/pull/1432))
3740
-
3741
- - [tlschema] Update props of `createTLSchema`
3742
- - [editor] Update props of `TldrawEditorConfig`
3743
- - [editor] Remove `App.getShapeUtilByType`
3744
- - [editor] Update `App.getShapeUtil` to take a type rather than a shape
3745
-
3746
- #### [refactor] record migrations ([#1430](https://github.com/tldraw/tldraw/pull/1430))
3747
-
3748
- - [tlschema] Improve `defineMigrations`
3749
- - [editor] Simplify migration definitions
3750
-
3751
- #### Measure individual words instead of just line breaks for text exports ([#1397](https://github.com/tldraw/tldraw/pull/1397))
3752
-
3753
- - Add a brief release note for your PR here.
3754
-
3755
- #### Create @tldraw/indices package ([#1426](https://github.com/tldraw/tldraw/pull/1426))
3756
-
3757
- - [@tldraw/editor] Remove fractional indices code into `@tldraw/indices`
3758
- - [@tldraw/indices] Create library for fractional indices code
3759
-
3760
- #### [improvement] set horizontal position using text alignment ([#1419](https://github.com/tldraw/tldraw/pull/1419))
3761
-
3762
- - Geo shapes and sticky notes now position their labels based on their alignment.
3763
-
3764
- #### [fix] reorder handles in front of selection ([#1420](https://github.com/tldraw/tldraw/pull/1420))
3765
-
3766
- - Fix a bug where handles would appear behind selection indicators.
3767
-
3768
- #### [feature] add laser pointer ([#1412](https://github.com/tldraw/tldraw/pull/1412))
3769
-
3770
- - Adds the laser pointer tool.
3771
-
3772
- #### [firefox] Fix the pointer getting stuck down when you press the control key ([#1390](https://github.com/tldraw/tldraw/pull/1390))
3773
-
3774
- - [Firefox] Fixed a bug where the pointer could get stuck down when the control key is held down.
3775
-
3776
- #### Vertical text alignment for geo shapes ([#1414](https://github.com/tldraw/tldraw/pull/1414))
3777
-
3778
- - This adds vertical text alignment property to geo shapes.
3779
-
3780
- #### Switch to new collaborators component ([#1405](https://github.com/tldraw/tldraw/pull/1405))
3781
-
3782
- - [Breaking] Removes the old version of LiveCollaborators, replacing it with the new one based on `TLInstancePresence`
3783
-
3784
- #### [improvement] refactor paste to support multi-line text ([#1398](https://github.com/tldraw/tldraw/pull/1398))
3785
-
3786
- - Improves clipboard logic when pasting text
3787
- - Adds support for pasting multi-line text
3788
- - Adds maximum widths when pasting single-line text
3789
- - Adds support for RTL languages when pasting multi-line or wrapped text
3790
- - Strips leading indentation when pasting text
3791
-
3792
- #### remove url state, to private ([#1402](https://github.com/tldraw/tldraw/pull/1402))
3793
-
3794
- - [editor] remove `useUrlState`
3795
-
3796
- #### [fix] Don't synchronize isReadOnly ([#1396](https://github.com/tldraw/tldraw/pull/1396))
3797
-
3798
- - Removes the isReadOnly value from the `user_document_settings` record type.
3799
-
3800
- #### Delete an empty text shape when clicking on another text shape. ([#1384](https://github.com/tldraw/tldraw/pull/1384))
3801
-
3802
- - Fix a problem with empty text shapes not getting deleted if you clicked on another text shape.
3803
-
3804
- #### Fix setting the grid mode. ([#1386](https://github.com/tldraw/tldraw/pull/1386))
3805
-
3806
- - Fix grid mode toggle.
3807
-
3808
- #### Fix selection foreground being misaligned ([#1380](https://github.com/tldraw/tldraw/pull/1380))
3809
-
3810
- - None (fix for a bug that hasn't released)
3811
-
3812
- #### Expand selection outline for single-selected draw shape ([#1379](https://github.com/tldraw/tldraw/pull/1379))
3813
-
3814
- - Improve selection outlines around horizontal or vertical draw shapes
3815
-
3816
- #### [fix] pointer location not updating when moving over editing shape ([#1378](https://github.com/tldraw/tldraw/pull/1378))
3817
-
3818
- - Fix a bug where the pointer location would not update when moving the pointer over an editing shape.
3819
-
3820
- #### [perf] deleteShapes ([#1373](https://github.com/tldraw/tldraw/pull/1373))
3821
-
3822
- - Perf improvement for deleting shapes in a document with lots of pages.
3823
-
3824
- #### fix a couple of consistency assumptions ([#1365](https://github.com/tldraw/tldraw/pull/1365))
3825
-
3826
- - Fixes a couple of minor consistency bugs affecting shape updating and page deletion in multiplayer contexts.
3827
-
3828
- #### avoid lazy race conditions ([#1364](https://github.com/tldraw/tldraw/pull/1364))
3829
-
3830
- [internal only]
3831
-
3832
- #### enable eslint for test files ([#1363](https://github.com/tldraw/tldraw/pull/1363))
3833
-
3834
- internal-only change
3835
-
3836
- #### presence-related fixes ([#1361](https://github.com/tldraw/tldraw/pull/1361))
3837
-
3838
- - Fix a bug where creating a page could throw an error in some multiplayer contexts.
3839
-
3840
- #### [improvement] Ui events followup ([#1354](https://github.com/tldraw/tldraw/pull/1354))
3841
-
3842
- - [ui] Adds source to ui events data object
3843
- - [ui] Corrects source for toolbar events
3844
- - [ui] Corrects source for clipboard events
3845
- - [examples] Updates events example
3846
-
3847
- #### [fix] various text ([#1350](https://github.com/tldraw/tldraw/pull/1350))
3848
-
3849
- - Allow leading whitespace
3850
-
3851
- #### [chore] Bump nanoid ([#1349](https://github.com/tldraw/tldraw/pull/1349))
3852
-
3853
- - Remove unused userId and instanceId props from AppOptions
3854
-
3855
- ---
3856
-
3857
- #### 💥 Breaking Change
3858
-
3859
- - [tweak] migrate store snapshot arguments [#1659](https://github.com/tldraw/tldraw/pull/1659) ([@steveruizok](https://github.com/steveruizok))
3860
- - [improvement] store snapshot types [#1657](https://github.com/tldraw/tldraw/pull/1657) ([@steveruizok](https://github.com/steveruizok))
3861
- - [fix] react component runaways, error boundaries [#1625](https://github.com/tldraw/tldraw/pull/1625) ([@steveruizok](https://github.com/steveruizok))
3862
- - `ShapeUtil` refactor, `Editor` cleanup [#1611](https://github.com/tldraw/tldraw/pull/1611) ([@steveruizok](https://github.com/steveruizok))
3863
- - Remove on drop override [#1612](https://github.com/tldraw/tldraw/pull/1612) ([@steveruizok](https://github.com/steveruizok))
3864
- - Rename `ShapeUtil.render` -> `ShapeUtil.component` [#1609](https://github.com/tldraw/tldraw/pull/1609) ([@steveruizok](https://github.com/steveruizok))
3865
- - tldraw.css [#1607](https://github.com/tldraw/tldraw/pull/1607) ([@steveruizok](https://github.com/steveruizok))
3866
- - [fix] camera culling [#1602](https://github.com/tldraw/tldraw/pull/1602) ([@steveruizok](https://github.com/steveruizok))
3867
- - Tidy up [#1600](https://github.com/tldraw/tldraw/pull/1600) ([@steveruizok](https://github.com/steveruizok))
3868
- - Styles API [#1580](https://github.com/tldraw/tldraw/pull/1580) ([@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok))
3869
- - remove `ShapeUtil.transform` [#1590](https://github.com/tldraw/tldraw/pull/1590) ([@steveruizok](https://github.com/steveruizok))
3870
- - remove `ShapeUtil.point` [#1591](https://github.com/tldraw/tldraw/pull/1591) ([@steveruizok](https://github.com/steveruizok))
3871
- - mini `defineShape` API [#1563](https://github.com/tldraw/tldraw/pull/1563) ([@SomeHats](https://github.com/SomeHats))
3872
- - Use unpkg as a default for serving assets. [#1548](https://github.com/tldraw/tldraw/pull/1548) ([@MitjaBezensek](https://github.com/MitjaBezensek))
3873
- - hoist opacity out of props [#1526](https://github.com/tldraw/tldraw/pull/1526) ([@SomeHats](https://github.com/SomeHats))
3874
- - Independent instance state persistence [#1493](https://github.com/tldraw/tldraw/pull/1493) ([@ds300](https://github.com/ds300))
3875
- - Renaming types, shape utils, tools [#1513](https://github.com/tldraw/tldraw/pull/1513) ([@steveruizok](https://github.com/steveruizok))
3876
- - tlschema cleanup [#1509](https://github.com/tldraw/tldraw/pull/1509) ([@steveruizok](https://github.com/steveruizok))
3877
- - Rename tlstore to store [#1507](https://github.com/tldraw/tldraw/pull/1507) ([@steveruizok](https://github.com/steveruizok))
3878
- - Rename tlvalidate to validate [#1508](https://github.com/tldraw/tldraw/pull/1508) ([@steveruizok](https://github.com/steveruizok))
3879
- - rename app to editor [#1503](https://github.com/tldraw/tldraw/pull/1503) ([@steveruizok](https://github.com/steveruizok))
3880
- - Add support for project names [#1340](https://github.com/tldraw/tldraw/pull/1340) ([@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok))
3881
- - [refactor] User-facing APIs [#1478](https://github.com/tldraw/tldraw/pull/1478) ([@steveruizok](https://github.com/steveruizok))
3882
- - [refactor] update record names [#1473](https://github.com/tldraw/tldraw/pull/1473) ([@steveruizok](https://github.com/steveruizok))
3883
- - [chore] refactor user preferences [#1435](https://github.com/tldraw/tldraw/pull/1435) ([@ds300](https://github.com/ds300))
3884
- - [refactor] restore createTLSchema [#1444](https://github.com/tldraw/tldraw/pull/1444) ([@steveruizok](https://github.com/steveruizok))
3885
- - [refactor] remove `createTLSchema` [#1440](https://github.com/tldraw/tldraw/pull/1440) ([@steveruizok](https://github.com/steveruizok))
3886
- - [refactor] Remove `TLShapeDef`, `getShapeUtilByType`. [#1432](https://github.com/tldraw/tldraw/pull/1432) ([@steveruizok](https://github.com/steveruizok) [@SomeHats](https://github.com/SomeHats))
3887
- - [refactor] record migrations [#1430](https://github.com/tldraw/tldraw/pull/1430) ([@steveruizok](https://github.com/steveruizok))
3888
- - Create @tldraw/indices package [#1426](https://github.com/tldraw/tldraw/pull/1426) ([@steveruizok](https://github.com/steveruizok))
3889
- - Switch to new collaborators component [#1405](https://github.com/tldraw/tldraw/pull/1405) ([@ds300](https://github.com/ds300))
3890
- - remove url state, to private [#1402](https://github.com/tldraw/tldraw/pull/1402) ([@steveruizok](https://github.com/steveruizok))
3891
- - [fix] Don't synchronize isReadOnly [#1396](https://github.com/tldraw/tldraw/pull/1396) ([@ds300](https://github.com/ds300))
3892
- - [improvement] Ui events followup [#1354](https://github.com/tldraw/tldraw/pull/1354) ([@steveruizok](https://github.com/steveruizok))
3893
- - [feature] ui events [#1326](https://github.com/tldraw/tldraw/pull/1326) ([@orangemug](https://github.com/orangemug) [@steveruizok](https://github.com/steveruizok))
3894
- - [chore] Bump nanoid [#1349](https://github.com/tldraw/tldraw/pull/1349) ([@ds300](https://github.com/ds300))
3895
-
3896
- #### 🚀 Enhancement
3897
-
3898
- - Styles API follow-ups [#1636](https://github.com/tldraw/tldraw/pull/1636) ([@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok))
3899
- - Make resizeBox a regular function [#1610](https://github.com/tldraw/tldraw/pull/1610) ([@steveruizok](https://github.com/steveruizok))
3900
- - [fix] yjs presence [#1603](https://github.com/tldraw/tldraw/pull/1603) ([@steveruizok](https://github.com/steveruizok))
3901
- - (1/2) Timeout collaborator cursors [#1525](https://github.com/tldraw/tldraw/pull/1525) ([@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok))
3902
- - (1/2) Cursor Chat - Presence [#1487](https://github.com/tldraw/tldraw/pull/1487) ([@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok))
3903
- - Add optional generic to `updateShapes` / `createShapes` [#1579](https://github.com/tldraw/tldraw/pull/1579) ([@steveruizok](https://github.com/steveruizok))
3904
- - [feature] add vertical align to note shape [#1539](https://github.com/tldraw/tldraw/pull/1539) ([@steveruizok](https://github.com/steveruizok))
3905
- - move v1 migration code into file-format [#1499](https://github.com/tldraw/tldraw/pull/1499) ([@steveruizok](https://github.com/steveruizok))
3906
- - Add support for locking shapes [#1447](https://github.com/tldraw/tldraw/pull/1447) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
3907
- - [3/3] Highlighter styling [#1490](https://github.com/tldraw/tldraw/pull/1490) ([@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok))
3908
- - [2/3] renderer changes to support "sandwich mode" highlighting [#1418](https://github.com/tldraw/tldraw/pull/1418) ([@SomeHats](https://github.com/SomeHats))
3909
- - [1/3] initial highlighter shape/tool [#1401](https://github.com/tldraw/tldraw/pull/1401) ([@SomeHats](https://github.com/SomeHats))
3910
- - [feature] reduce motion [#1485](https://github.com/tldraw/tldraw/pull/1485) ([@steveruizok](https://github.com/steveruizok))
3911
- - [mini-feature] Following indicator [#1468](https://github.com/tldraw/tldraw/pull/1468) ([@steveruizok](https://github.com/steveruizok))
3912
- - Add SVG cursors for all cursor types [#1416](https://github.com/tldraw/tldraw/pull/1416) ([@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok))
3913
- - [improvement] set horizontal position using text alignment [#1419](https://github.com/tldraw/tldraw/pull/1419) ([@steveruizok](https://github.com/steveruizok))
3914
- - [feature] add laser pointer [#1412](https://github.com/tldraw/tldraw/pull/1412) ([@steveruizok](https://github.com/steveruizok))
3915
- - Vertical text alignment for geo shapes [#1414](https://github.com/tldraw/tldraw/pull/1414) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
3916
- - [improvement] refactor paste to support multi-line text [#1398](https://github.com/tldraw/tldraw/pull/1398) ([@steveruizok](https://github.com/steveruizok))
3917
- - [fix] pointer location not updating when moving over editing shape [#1378](https://github.com/tldraw/tldraw/pull/1378) ([@steveruizok](https://github.com/steveruizok))
3918
-
3919
- #### 🐛 Bug Fix
3920
-
3921
- - Fix crash when rotating a deleted shape [#1658](https://github.com/tldraw/tldraw/pull/1658) ([@TodePond](https://github.com/TodePond))
3922
- - [fix] pen mode touches [#1655](https://github.com/tldraw/tldraw/pull/1655) ([@steveruizok](https://github.com/steveruizok))
3923
- - Fix text shapes not having colour [#1649](https://github.com/tldraw/tldraw/pull/1649) ([@TodePond](https://github.com/TodePond))
3924
- - Fix SVG cursors not being used [#1639](https://github.com/tldraw/tldraw/pull/1639) ([@TodePond](https://github.com/TodePond))
3925
- - 3/2 Cursor chat [#1623](https://github.com/tldraw/tldraw/pull/1623) ([@steveruizok](https://github.com/steveruizok))
3926
- - [fix] tldraw file drop [#1616](https://github.com/tldraw/tldraw/pull/1616) ([@steveruizok](https://github.com/steveruizok))
3927
- - [refactor] snapping [#1589](https://github.com/tldraw/tldraw/pull/1589) ([@steveruizok](https://github.com/steveruizok))
3928
- - Make sure loading screens use dark mode user preference. [#1552](https://github.com/tldraw/tldraw/pull/1552) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
3929
- - update exports for user presence [#1583](https://github.com/tldraw/tldraw/pull/1583) ([@steveruizok](https://github.com/steveruizok))
3930
- - [fix] Remove group shape export backgrounds [#1587](https://github.com/tldraw/tldraw/pull/1587) ([@steveruizok](https://github.com/steveruizok))
3931
- - [fix] embeds [#1578](https://github.com/tldraw/tldraw/pull/1578) ([@steveruizok](https://github.com/steveruizok))
3932
- - [improvement] Embed shape cleanup [#1569](https://github.com/tldraw/tldraw/pull/1569) ([@steveruizok](https://github.com/steveruizok))
3933
- - Move the loading of assets to the TldrawEditorWithReadyStore so that all code paths load the assets. [#1561](https://github.com/tldraw/tldraw/pull/1561) ([@MitjaBezensek](https://github.com/MitjaBezensek))
3934
- - shapes folder, move tools into shape defs [#1574](https://github.com/tldraw/tldraw/pull/1574) ([@SomeHats](https://github.com/SomeHats))
3935
- - offset drop point by editor client rect [#1564](https://github.com/tldraw/tldraw/pull/1564) ([@BrianHung](https://github.com/BrianHung))
3936
- - Asset improvements [#1557](https://github.com/tldraw/tldraw/pull/1557) ([@MitjaBezensek](https://github.com/MitjaBezensek))
3937
- - More misc sync fixes [#1559](https://github.com/tldraw/tldraw/pull/1559) ([@ds300](https://github.com/ds300))
3938
- - Misc sync fixes [#1555](https://github.com/tldraw/tldraw/pull/1555) ([@ds300](https://github.com/ds300))
3939
- - Fix arrows with weird bends crashing [#1540](https://github.com/tldraw/tldraw/pull/1540) ([@TodePond](https://github.com/TodePond))
3940
- - [fix] Shift key code / nudge [#1537](https://github.com/tldraw/tldraw/pull/1537) ([@steveruizok](https://github.com/steveruizok))
3941
- - scale exported canvases when they reach the browsers max size [#1536](https://github.com/tldraw/tldraw/pull/1536) ([@SomeHats](https://github.com/SomeHats))
3942
- - [fix] control click on mac [#1535](https://github.com/tldraw/tldraw/pull/1535) ([@steveruizok](https://github.com/steveruizok))
3943
- - Fix being able to undo following [#1531](https://github.com/tldraw/tldraw/pull/1531) ([@TodePond](https://github.com/TodePond))
3944
- - highlighter fixes [#1530](https://github.com/tldraw/tldraw/pull/1530) ([@SomeHats](https://github.com/SomeHats))
3945
- - ensure that fixed points stay fixed [#1523](https://github.com/tldraw/tldraw/pull/1523) ([@steveruizok](https://github.com/steveruizok))
3946
- - Feature flags rework [#1474](https://github.com/tldraw/tldraw/pull/1474) ([@SomeHats](https://github.com/SomeHats))
3947
- - send user prefs data in broadcast msg [#1466](https://github.com/tldraw/tldraw/pull/1466) ([@ds300](https://github.com/ds300))
3948
- - Fix positioning of default cursor [#1458](https://github.com/tldraw/tldraw/pull/1458) ([@TodePond](https://github.com/TodePond))
3949
- - change pointer cursor to white [#1454](https://github.com/tldraw/tldraw/pull/1454) ([@TodePond](https://github.com/TodePond))
3950
- - Add migration for horizontal alignment [#1443](https://github.com/tldraw/tldraw/pull/1443) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
3951
- - Stricter ID types [#1439](https://github.com/tldraw/tldraw/pull/1439) ([@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok))
3952
- - Fix cursor shadow getting clipped [#1441](https://github.com/tldraw/tldraw/pull/1441) ([@TodePond](https://github.com/TodePond))
3953
- - Fix new wobble [#1431](https://github.com/tldraw/tldraw/pull/1431) ([@TodePond](https://github.com/TodePond))
3954
- - Measure individual words instead of just line breaks for text exports [#1397](https://github.com/tldraw/tldraw/pull/1397) ([@SomeHats](https://github.com/SomeHats))
3955
- - [fix] laser pointer [#1429](https://github.com/tldraw/tldraw/pull/1429) ([@steveruizok](https://github.com/steveruizok))
3956
- - [fix] reorder handles in front of selection [#1420](https://github.com/tldraw/tldraw/pull/1420) ([@steveruizok](https://github.com/steveruizok))
3957
- - [firefox] Fix the pointer getting stuck down when you press the control key [#1390](https://github.com/tldraw/tldraw/pull/1390) ([@TodePond](https://github.com/TodePond))
3958
- - fix viewport following [#1411](https://github.com/tldraw/tldraw/pull/1411) ([@ds300](https://github.com/ds300))
3959
- - Delete an empty text shape when clicking on another text shape. [#1384](https://github.com/tldraw/tldraw/pull/1384) ([@MitjaBezensek](https://github.com/MitjaBezensek))
3960
- - Fix setting the grid mode. [#1386](https://github.com/tldraw/tldraw/pull/1386) ([@MitjaBezensek](https://github.com/MitjaBezensek))
3961
- - Fix selection foreground being misaligned [#1380](https://github.com/tldraw/tldraw/pull/1380) ([@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok))
3962
- - Expand selection outline for single-selected draw shape [#1379](https://github.com/tldraw/tldraw/pull/1379) ([@SomeHats](https://github.com/SomeHats))
3963
- - [fix] Allow interactions with embeds in readonly mode [#1333](https://github.com/tldraw/tldraw/pull/1333) ([@MitjaBezensek](https://github.com/MitjaBezensek))
3964
- - [perf] deleteShapes [#1373](https://github.com/tldraw/tldraw/pull/1373) ([@ds300](https://github.com/ds300))
3965
- - fix a couple of consistency assumptions [#1365](https://github.com/tldraw/tldraw/pull/1365) ([@ds300](https://github.com/ds300))
3966
- - presence-related fixes [#1361](https://github.com/tldraw/tldraw/pull/1361) ([@ds300](https://github.com/ds300))
3967
- - [fix] various text [#1350](https://github.com/tldraw/tldraw/pull/1350) ([@steveruizok](https://github.com/steveruizok))
3968
- - [fix] tabs in text exports [#1323](https://github.com/tldraw/tldraw/pull/1323) ([@steveruizok](https://github.com/steveruizok))
3969
- - [chore] move schema construction to tlschema package [#1334](https://github.com/tldraw/tldraw/pull/1334) ([@ds300](https://github.com/ds300))
3970
- - [feature] `check-box` geo shape [#1330](https://github.com/tldraw/tldraw/pull/1330) ([@steveruizok](https://github.com/steveruizok))
3971
- - [fix] update useTransform.ts [#1327](https://github.com/tldraw/tldraw/pull/1327) ([@steveruizok](https://github.com/steveruizok))
3972
- - [improvement] dragging start distance on coarse pointer [#1220](https://github.com/tldraw/tldraw/pull/1220) ([@steveruizok](https://github.com/steveruizok))
3973
- - [fix] SVG export for arrows with labels but no arrowheads [#1229](https://github.com/tldraw/tldraw/pull/1229) ([@steveruizok](https://github.com/steveruizok))
3974
- - remove svg layer, html all the things, rs to tl [#1227](https://github.com/tldraw/tldraw/pull/1227) ([@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok))
3975
- - add docs for TLShapeUtil [#1215](https://github.com/tldraw/tldraw/pull/1215) ([@TodePond](https://github.com/TodePond))
3976
- - New vite-based examples app [#1226](https://github.com/tldraw/tldraw/pull/1226) ([@SomeHats](https://github.com/SomeHats))
3977
- - [fix] publish [#1222](https://github.com/tldraw/tldraw/pull/1222) ([@ds300](https://github.com/ds300))
3978
- - [fix] typo in isFocusingInput [#1221](https://github.com/tldraw/tldraw/pull/1221) ([@ds300](https://github.com/ds300))
3979
- - [feat] new LiveCollaborators behind feature flag [#1219](https://github.com/tldraw/tldraw/pull/1219) ([@ds300](https://github.com/ds300))
3980
- - [fix] collaborator render order [#1213](https://github.com/tldraw/tldraw/pull/1213) ([@steveruizok](https://github.com/steveruizok))
3981
- - [chore] update lazyrepo [#1211](https://github.com/tldraw/tldraw/pull/1211) ([@ds300](https://github.com/ds300))
3982
- - Use `strokePathData` for `<ShapeFill/>` path to avoid bugs in the inner path algo [#1207](https://github.com/tldraw/tldraw/pull/1207) ([@orangemug](https://github.com/orangemug) [@steveruizok](https://github.com/steveruizok))
3983
- - Added `pHYs` to import/export of png images [#1200](https://github.com/tldraw/tldraw/pull/1200) ([@orangemug](https://github.com/orangemug) [@steveruizok](https://github.com/steveruizok))
3984
- - derived presence state [#1204](https://github.com/tldraw/tldraw/pull/1204) ([@ds300](https://github.com/ds300))
3985
- - [lite] upgrade lazyrepo [#1198](https://github.com/tldraw/tldraw/pull/1198) ([@ds300](https://github.com/ds300))
3986
- - transfer-out: transfer out [#1195](https://github.com/tldraw/tldraw/pull/1195) ([@SomeHats](https://github.com/SomeHats))
3987
-
3988
- #### ⚠️ Pushed to `main`
3989
-
3990
- - update lazyrepo ([@ds300](https://github.com/ds300))
3991
-
3992
- #### 🏠 Internal
3993
-
3994
- - Explicit shape type checks [#1594](https://github.com/tldraw/tldraw/pull/1594) ([@steveruizok](https://github.com/steveruizok))
3995
- - [improvement] bookmark shape logic [#1568](https://github.com/tldraw/tldraw/pull/1568) ([@steveruizok](https://github.com/steveruizok))
3996
- - use the right TLEventHandlers [#1486](https://github.com/tldraw/tldraw/pull/1486) ([@judicaelandria](https://github.com/judicaelandria) [@steveruizok](https://github.com/steveruizok))
3997
- - yjs example [#1560](https://github.com/tldraw/tldraw/pull/1560) ([@steveruizok](https://github.com/steveruizok))
3998
- - rename app folder to editor [#1528](https://github.com/tldraw/tldraw/pull/1528) ([@steveruizok](https://github.com/steveruizok))
3999
- - Simplify static cursors [#1520](https://github.com/tldraw/tldraw/pull/1520) ([@steveruizok](https://github.com/steveruizok))
4000
- - [chore] remove benchmark [#1489](https://github.com/tldraw/tldraw/pull/1489) ([@steveruizok](https://github.com/steveruizok))
4001
- - [tiny] add isPageId [#1482](https://github.com/tldraw/tldraw/pull/1482) ([@steveruizok](https://github.com/steveruizok))
4002
- - [fix] overlay rendering issues [#1389](https://github.com/tldraw/tldraw/pull/1389) ([@steveruizok](https://github.com/steveruizok))
4003
- - Remove commented code in App [#1377](https://github.com/tldraw/tldraw/pull/1377) ([@steveruizok](https://github.com/steveruizok))
4004
- - avoid lazy race conditions [#1364](https://github.com/tldraw/tldraw/pull/1364) ([@SomeHats](https://github.com/SomeHats))
4005
- - enable eslint for test files [#1363](https://github.com/tldraw/tldraw/pull/1363) ([@SomeHats](https://github.com/SomeHats))
4006
-
4007
- #### 📝 Documentation
4008
-
4009
- - [improvement] custom shapes example [#1660](https://github.com/tldraw/tldraw/pull/1660) ([@steveruizok](https://github.com/steveruizok))
4010
- - Styles API docs [#1641](https://github.com/tldraw/tldraw/pull/1641) ([@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok))
4011
- - Add tsdocs to Editor methods [#1581](https://github.com/tldraw/tldraw/pull/1581) ([@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok))
4012
- - [Docs] Change some editor properties to methods [#1553](https://github.com/tldraw/tldraw/pull/1553) ([@TodePond](https://github.com/TodePond))
4013
- - [Docs] Change some internal methods to public [#1554](https://github.com/tldraw/tldraw/pull/1554) ([@TodePond](https://github.com/TodePond))
4014
-
4015
- #### 🧪 Tests
4016
-
4017
- - update editor tests [#1547](https://github.com/tldraw/tldraw/pull/1547) ([@steveruizok](https://github.com/steveruizok))
4018
- - Add playwright tests [#1484](https://github.com/tldraw/tldraw/pull/1484) ([@steveruizok](https://github.com/steveruizok))
4019
-
4020
- #### 🔩 Dependency Updates
4021
-
4022
- - Incorporate signia as @tldraw/state [#1620](https://github.com/tldraw/tldraw/pull/1620) ([@steveruizok](https://github.com/steveruizok) [@ds300](https://github.com/ds300))
4023
- - Revert "Update dependencies (#1613)" [#1617](https://github.com/tldraw/tldraw/pull/1617) ([@SomeHats](https://github.com/SomeHats))
4024
- - Update dependencies [#1613](https://github.com/tldraw/tldraw/pull/1613) ([@steveruizok](https://github.com/steveruizok))
4025
- - update use-gesture [#1453](https://github.com/tldraw/tldraw/pull/1453) ([@ds300](https://github.com/ds300))
4026
-
4027
- #### Authors: 8
4028
-
4029
- - alex ([@SomeHats](https://github.com/SomeHats))
4030
- - Brian Hung ([@BrianHung](https://github.com/BrianHung))
4031
- - David Sheldrick ([@ds300](https://github.com/ds300))
4032
- - Judicael ([@judicaelandria](https://github.com/judicaelandria))
4033
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
4034
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
4035
- - Orange Mug ([@orangemug](https://github.com/orangemug))
4036
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
4037
-
4038
- ---
4039
-
4040
- # v2.0.0-alpha.12 (Mon Apr 03 2023)
4041
-
4042
- #### 🐛 Bug Fix
4043
-
4044
- - [fix] Start on page 1 when importing from v1 [#1589](https://github.com/tldraw/tldraw-lite/pull/1589) ([@steveruizok](https://github.com/steveruizok))
4045
- - [fix] Arrow rebinding in v1 imports [#1588](https://github.com/tldraw/tldraw-lite/pull/1588) ([@steveruizok](https://github.com/steveruizok))
4046
- - Move resizing to the correct place. [#1579](https://github.com/tldraw/tldraw-lite/pull/1579) ([@MitjaBezensek](https://github.com/MitjaBezensek))
4047
- - [fix] use masked page bounds for finding drop parent [#1564](https://github.com/tldraw/tldraw-lite/pull/1564) ([@steveruizok](https://github.com/steveruizok))
4048
- - Revert "[fix] text jump bug" [#1566](https://github.com/tldraw/tldraw-lite/pull/1566) ([@ds300](https://github.com/ds300))
4049
- - [improvement] select shapes on paste [#1565](https://github.com/tldraw/tldraw-lite/pull/1565) ([@steveruizok](https://github.com/steveruizok))
4050
- - Fix to `setPenMode` to `false` when `this._touchEventsRemainingBeforeExitingPenMode` reaches zero [#1541](https://github.com/tldraw/tldraw-lite/pull/1541) ([@orangemug](https://github.com/orangemug))
4051
- - [fix] text jump bug [#1555](https://github.com/tldraw/tldraw-lite/pull/1555) ([@ds300](https://github.com/ds300))
4052
- - Add proper messaging & import flows for migration from local & multiplayer rooms [#1506](https://github.com/tldraw/tldraw-lite/pull/1506) ([@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok))
4053
- - fix errors when migrating extremely large v1 rooms or rooms with funky data [#1553](https://github.com/tldraw/tldraw-lite/pull/1553) ([@SomeHats](https://github.com/SomeHats))
4054
- - Fix an error when we have an empty group. [#1549](https://github.com/tldraw/tldraw-lite/pull/1549) ([@MitjaBezensek](https://github.com/MitjaBezensek))
4055
- - Make sure all types and build stuff get run in CI [#1548](https://github.com/tldraw/tldraw-lite/pull/1548) ([@SomeHats](https://github.com/SomeHats))
4056
- - make sure error annotations can't throw [#1550](https://github.com/tldraw/tldraw-lite/pull/1550) ([@SomeHats](https://github.com/SomeHats))
4057
- - [fix] Prevent unwanted offsets when embedding tldraw in scrollable page [#1551](https://github.com/tldraw/tldraw-lite/pull/1551) ([@ds300](https://github.com/ds300))
4058
- - Fix an error with importing certain files. [#1547](https://github.com/tldraw/tldraw-lite/pull/1547) ([@MitjaBezensek](https://github.com/MitjaBezensek))
4059
- - [fix] simplify draw shape's outline [#1537](https://github.com/tldraw/tldraw-lite/pull/1537) ([@steveruizok](https://github.com/steveruizok))
4060
- - [fix] simplify line shape's outline [#1536](https://github.com/tldraw/tldraw-lite/pull/1536) ([@steveruizok](https://github.com/steveruizok))
4061
- - [feature] `App.canMoveCamera` [#1543](https://github.com/tldraw/tldraw-lite/pull/1543) ([@steveruizok](https://github.com/steveruizok))
4062
- - Fix the migration of ovals, size was not correct. [#1544](https://github.com/tldraw/tldraw-lite/pull/1544) ([@MitjaBezensek](https://github.com/MitjaBezensek))
4063
- - An attempt to fix text selection on chrome/android [#1452](https://github.com/tldraw/tldraw-lite/pull/1452) ([@orangemug](https://github.com/orangemug) [@steveruizok](https://github.com/steveruizok))
4064
- - run v1 migrations when rebuilding v1 doc [#1534](https://github.com/tldraw/tldraw-lite/pull/1534) ([@SomeHats](https://github.com/SomeHats))
4065
- - add pre-commit api report generation [#1517](https://github.com/tldraw/tldraw-lite/pull/1517) ([@SomeHats](https://github.com/SomeHats))
4066
- - Migrate assets to v2 storage [#1520](https://github.com/tldraw/tldraw-lite/pull/1520) ([@SomeHats](https://github.com/SomeHats))
4067
- - [improvement] restore snap to center [#1529](https://github.com/tldraw/tldraw-lite/pull/1529) ([@steveruizok](https://github.com/steveruizok))
4068
- - Rename some methods [#1528](https://github.com/tldraw/tldraw-lite/pull/1528) ([@steveruizok](https://github.com/steveruizok))
4069
- - [ux] Don't select draw shapes when you use the draw tool [#1527](https://github.com/tldraw/tldraw-lite/pull/1527) ([@steveruizok](https://github.com/steveruizok))
4070
- - [fix] brush while pinch zooming [#1526](https://github.com/tldraw/tldraw-lite/pull/1526) ([@steveruizok](https://github.com/steveruizok))
4071
- - [fix] Don't let changing screen bounds be undoable [#1525](https://github.com/tldraw/tldraw-lite/pull/1525) ([@steveruizok](https://github.com/steveruizok))
4072
- - [tweak] Center camera on shape in new page [#1522](https://github.com/tldraw/tldraw-lite/pull/1522) ([@steveruizok](https://github.com/steveruizok))
4073
- - [fix] clear editing shape id when window loses focus [#1523](https://github.com/tldraw/tldraw-lite/pull/1523) ([@steveruizok](https://github.com/steveruizok))
4074
- - Fix splitting of chars for wide UTF-8 characters [#1501](https://github.com/tldraw/tldraw-lite/pull/1501) ([@orangemug](https://github.com/orangemug))
4075
- - Don't use previous opacity for new `bookmark`/`embed` shapes [#1510](https://github.com/tldraw/tldraw-lite/pull/1510) ([@orangemug](https://github.com/orangemug))
4076
- - Fix back to content button. [#1519](https://github.com/tldraw/tldraw-lite/pull/1519) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
4077
- - Allow migration of readonly rooms. [#1498](https://github.com/tldraw/tldraw-lite/pull/1498) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
4078
- - [chore] restore api extractor [#1500](https://github.com/tldraw/tldraw-lite/pull/1500) ([@steveruizok](https://github.com/steveruizok))
4079
- - Asset loading overhaul [#1457](https://github.com/tldraw/tldraw-lite/pull/1457) ([@SomeHats](https://github.com/SomeHats))
4080
- - [improvement] docs / api cleanup [#1491](https://github.com/tldraw/tldraw-lite/pull/1491) ([@steveruizok](https://github.com/steveruizok))
4081
- - David/publish good [#1488](https://github.com/tldraw/tldraw-lite/pull/1488) ([@ds300](https://github.com/ds300))
4082
- - [improvement] mobile docs [#1487](https://github.com/tldraw/tldraw-lite/pull/1487) ([@steveruizok](https://github.com/steveruizok))
4083
- - [chore] alpha 10 [#1486](https://github.com/tldraw/tldraw-lite/pull/1486) ([@ds300](https://github.com/ds300))
4084
- - [chore] package build improvements [#1484](https://github.com/tldraw/tldraw-lite/pull/1484) ([@ds300](https://github.com/ds300))
4085
- - [chore] bump for alpha 8 [#1485](https://github.com/tldraw/tldraw-lite/pull/1485) ([@steveruizok](https://github.com/steveruizok))
4086
- - [fix] page point offset [#1483](https://github.com/tldraw/tldraw-lite/pull/1483) ([@steveruizok](https://github.com/steveruizok))
4087
- - [improvement] API Reference docs [#1478](https://github.com/tldraw/tldraw-lite/pull/1478) ([@steveruizok](https://github.com/steveruizok))
4088
- - stop using broken-af turbo for publishing [#1476](https://github.com/tldraw/tldraw-lite/pull/1476) ([@ds300](https://github.com/ds300))
4089
- - [chore] add canary release script [#1423](https://github.com/tldraw/tldraw-lite/pull/1423) ([@ds300](https://github.com/ds300) [@steveruizok](https://github.com/steveruizok))
4090
- - [fix] missing fonts in exports [#1468](https://github.com/tldraw/tldraw-lite/pull/1468) ([@steveruizok](https://github.com/steveruizok))
4091
- - [temp] no preload icons [#1466](https://github.com/tldraw/tldraw-lite/pull/1466) ([@steveruizok](https://github.com/steveruizok))
4092
- - [fix] crash with frames [#1465](https://github.com/tldraw/tldraw-lite/pull/1465) ([@steveruizok](https://github.com/steveruizok))
4093
- - Removed incorrect width recalc in text label for geo shapes [#1396](https://github.com/tldraw/tldraw-lite/pull/1396) ([@orangemug](https://github.com/orangemug) [@steveruizok](https://github.com/steveruizok))
4094
- - derive currentToolId from app.root [#1459](https://github.com/tldraw/tldraw-lite/pull/1459) ([@ds300](https://github.com/ds300) [@steveruizok](https://github.com/steveruizok))
4095
- - Convert multiple spaces in export by converting to nbsp [#1419](https://github.com/tldraw/tldraw-lite/pull/1419) ([@orangemug](https://github.com/orangemug) [@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok))
4096
- - Always file->print with light-mode enabled [#1315](https://github.com/tldraw/tldraw-lite/pull/1315) ([@orangemug](https://github.com/orangemug) [@steveruizok](https://github.com/steveruizok))
4097
- - [chore] export frameutil [#1461](https://github.com/tldraw/tldraw-lite/pull/1461) ([@steveruizok](https://github.com/steveruizok))
4098
- - [chore] upgrade yarn [#1430](https://github.com/tldraw/tldraw-lite/pull/1430) ([@ds300](https://github.com/ds300))
4099
- - Added `preserveAspectRatio` to print for overflow of content [#1453](https://github.com/tldraw/tldraw-lite/pull/1453) ([@orangemug](https://github.com/orangemug))
4100
- - Fixed throttle of `updateBounds` in `useScreenBounds` [#1442](https://github.com/tldraw/tldraw-lite/pull/1442) ([@orangemug](https://github.com/orangemug) [@steveruizok](https://github.com/steveruizok))
4101
- - [update] docs [#1448](https://github.com/tldraw/tldraw-lite/pull/1448) ([@steveruizok](https://github.com/steveruizok))
4102
- - Always paste images with opactiy=1 [#1444](https://github.com/tldraw/tldraw-lite/pull/1444) ([@orangemug](https://github.com/orangemug) [@steveruizok](https://github.com/steveruizok))
4103
- - [improvement] Wrap `buildFromV1Document` in transact [#1435](https://github.com/tldraw/tldraw-lite/pull/1435) ([@steveruizok](https://github.com/steveruizok))
4104
- - Hack around the outline cache for rendering x-box shapes [#1438](https://github.com/tldraw/tldraw-lite/pull/1438) ([@orangemug](https://github.com/orangemug) [@steveruizok](https://github.com/steveruizok))
4105
- - [fix] dev version number for tldraw/tldraw [#1434](https://github.com/tldraw/tldraw-lite/pull/1434) ([@steveruizok](https://github.com/steveruizok))
4106
- - repo cleanup [#1426](https://github.com/tldraw/tldraw-lite/pull/1426) ([@steveruizok](https://github.com/steveruizok))
4107
- - Vscode extension [#1253](https://github.com/tldraw/tldraw-lite/pull/1253) ([@steveruizok](https://github.com/steveruizok) [@MitjaBezensek](https://github.com/MitjaBezensek) [@orangemug](https://github.com/orangemug))
4108
- - [fix] use polyfill for `structuredClone` [#1408](https://github.com/tldraw/tldraw-lite/pull/1408) ([@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok))
4109
- - Run all the tests. Fix linting for tests. [#1389](https://github.com/tldraw/tldraw-lite/pull/1389) ([@MitjaBezensek](https://github.com/MitjaBezensek))
4110
- - Fix an issue with loading v1 draw shapes that don't have any points. [#1404](https://github.com/tldraw/tldraw-lite/pull/1404) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
4111
-
4112
- #### ⚠️ Pushed to `main`
4113
-
4114
- - Revert "update tldraw's bounds" ([@steveruizok](https://github.com/steveruizok))
4115
- - update tldraw's bounds ([@steveruizok](https://github.com/steveruizok))
4116
-
4117
- #### Authors: 6
4118
-
4119
- - alex ([@SomeHats](https://github.com/SomeHats))
4120
- - David Sheldrick ([@ds300](https://github.com/ds300))
4121
- - Lu[ke] Wilson ([@TodePond](https://github.com/TodePond))
4122
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
4123
- - Orange Mug ([@orangemug](https://github.com/orangemug))
4124
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
4125
-
4126
- ---
4127
-
4128
- # @tldraw/tldraw-beta
4129
-
4130
- ## 2.0.0-alpha.11
4131
-
4132
- ### Patch Changes
4133
-
4134
- - fix some package build scripting
4135
- - Updated dependencies
4136
- - @tldraw/primitives@2.0.0-alpha.11
4137
- - @tldraw/tlschema@2.0.0-alpha.11
4138
- - @tldraw/tlstore@2.0.0-alpha.11
4139
- - @tldraw/tlvalidate@2.0.0-alpha.10
4140
- - @tldraw/utils@2.0.0-alpha.10
4141
-
4142
- ## 2.0.0-alpha.10
4143
-
4144
- ### Patch Changes
4145
-
4146
- - Updated dependencies [4b4399b6e]
4147
- - @tldraw/primitives@2.0.0-alpha.10
4148
- - @tldraw/tlschema@2.0.0-alpha.10
4149
- - @tldraw/tlstore@2.0.0-alpha.10
4150
- - @tldraw/tlvalidate@2.0.0-alpha.9
4151
- - @tldraw/utils@2.0.0-alpha.9
4152
-
4153
- ## 2.0.0-alpha.9
4154
-
4155
- ### Patch Changes
4156
-
4157
- - Release day!
4158
- - Updated dependencies
4159
- - @tldraw/primitives@2.0.0-alpha.9
4160
- - @tldraw/tlschema@2.0.0-alpha.9
4161
- - @tldraw/tlstore@2.0.0-alpha.9
4162
- - @tldraw/tlvalidate@2.0.0-alpha.8
4163
- - @tldraw/utils@2.0.0-alpha.8
4164
-
4165
- ## 2.0.0-alpha.8
4166
-
4167
- ### Patch Changes
4168
-
4169
- - 23dd81cfe: Make signia a peer dependency
4170
- - Updated dependencies [23dd81cfe]
4171
- - @tldraw/tlstore@2.0.0-alpha.8
4172
- - @tldraw/tlschema@2.0.0-alpha.8
4173
- - @tldraw/primitives@2.0.0-alpha.8
4174
-
4175
- ## 2.0.0-alpha.7
4176
-
4177
- ### Patch Changes
4178
-
4179
- - Bug fixes.
4180
- - Updated dependencies
4181
- - @tldraw/primitives@2.0.0-alpha.7
4182
- - @tldraw/tlschema@2.0.0-alpha.7
4183
- - @tldraw/tlstore@2.0.0-alpha.7
4184
- - @tldraw/tlvalidate@2.0.0-alpha.7
4185
- - @tldraw/utils@2.0.0-alpha.7
4186
-
4187
- ## 2.0.0-alpha.6
4188
-
4189
- ### Patch Changes
4190
-
4191
- - Add licenses.
4192
- - Updated dependencies
4193
- - @tldraw/primitives@2.0.0-alpha.6
4194
- - @tldraw/tlschema@2.0.0-alpha.6
4195
- - @tldraw/tlstore@2.0.0-alpha.6
4196
- - @tldraw/tlvalidate@2.0.0-alpha.6
4197
- - @tldraw/utils@2.0.0-alpha.6
4198
-
4199
- ## 2.0.0-alpha.5
4200
-
4201
- ### Patch Changes
4202
-
4203
- - Add CSS files to tldraw/tldraw.
4204
- - Updated dependencies
4205
- - @tldraw/primitives@2.0.0-alpha.5
4206
- - @tldraw/tlschema@2.0.0-alpha.5
4207
- - @tldraw/tlstore@2.0.0-alpha.5
4208
- - @tldraw/tlvalidate@2.0.0-alpha.5
4209
- - @tldraw/utils@2.0.0-alpha.5
4210
-
4211
- ## 2.0.0-alpha.4
4212
-
4213
- ### Patch Changes
4214
-
4215
- - Add children to tldraw/tldraw
4216
- - Updated dependencies
4217
- - @tldraw/primitives@2.0.0-alpha.4
4218
- - @tldraw/tlschema@2.0.0-alpha.4
4219
- - @tldraw/tlstore@2.0.0-alpha.4
4220
- - @tldraw/tlvalidate@2.0.0-alpha.4
4221
- - @tldraw/utils@2.0.0-alpha.4
4222
-
4223
- ## 2.0.0-alpha.3
4224
-
4225
- ### Patch Changes
4226
-
4227
- - Change permissions.
4228
- - Updated dependencies
4229
- - @tldraw/primitives@2.0.0-alpha.3
4230
- - @tldraw/tlschema@2.0.0-alpha.3
4231
- - @tldraw/tlstore@2.0.0-alpha.3
4232
- - @tldraw/tlvalidate@2.0.0-alpha.3
4233
- - @tldraw/utils@2.0.0-alpha.3
4234
-
4235
- ## 2.0.0-alpha.2
4236
-
4237
- ### Patch Changes
4238
-
4239
- - Add tldraw, editor
4240
- - Updated dependencies
4241
- - @tldraw/primitives@2.0.0-alpha.2
4242
- - @tldraw/tlschema@2.0.0-alpha.2
4243
- - @tldraw/tlstore@2.0.0-alpha.2
4244
- - @tldraw/tlvalidate@2.0.0-alpha.2
4245
- - @tldraw/utils@2.0.0-alpha.2
4246
-
4247
- ## 0.1.0-alpha.11
4248
-
4249
- ### Patch Changes
4250
-
4251
- - Fix stale reactors.
4252
- - Updated dependencies
4253
- - @tldraw/primitives@0.1.0-alpha.11
4254
- - @tldraw/tlschema@0.1.0-alpha.11
4255
- - @tldraw/tlstore@0.1.0-alpha.11
4256
- - @tldraw/tlvalidate@0.1.0-alpha.11
4257
- - @tldraw/utils@0.1.0-alpha.11
4258
-
4259
- ## 0.1.0-alpha.10
4260
-
4261
- ### Patch Changes
4262
-
4263
- - Fix type export bug.
4264
- - Updated dependencies
4265
- - @tldraw/primitives@0.1.0-alpha.10
4266
- - @tldraw/tlschema@0.1.0-alpha.10
4267
- - @tldraw/tlstore@0.1.0-alpha.10
4268
- - @tldraw/tlvalidate@0.1.0-alpha.10
4269
- - @tldraw/utils@0.1.0-alpha.10
4270
-
4271
- ## 0.1.0-alpha.9
4272
-
4273
- ### Patch Changes
4274
-
4275
- - Fix import bugs.
4276
- - Updated dependencies
4277
- - @tldraw/primitives@0.1.0-alpha.9
4278
- - @tldraw/tlschema@0.1.0-alpha.9
4279
- - @tldraw/tlstore@0.1.0-alpha.9
4280
- - @tldraw/tlvalidate@0.1.0-alpha.9
4281
- - @tldraw/utils@0.1.0-alpha.9
4282
-
4283
- ## 0.1.0-alpha.8
4284
-
4285
- ### Patch Changes
4286
-
4287
- - Changes validation requirements, exports validation helpers.
4288
- - Updated dependencies
4289
- - @tldraw/primitives@0.1.0-alpha.8
4290
- - @tldraw/tlschema@0.1.0-alpha.8
4291
- - @tldraw/tlstore@0.1.0-alpha.8
4292
- - @tldraw/tlvalidate@0.1.0-alpha.8
4293
- - @tldraw/utils@0.1.0-alpha.8
4294
-
4295
- ## 0.1.0-alpha.7
4296
-
4297
- ### Patch Changes
4298
-
4299
- - - Pre-pre-release update
4300
- - Updated dependencies
4301
- - @tldraw/primitives@0.1.0-alpha.7
4302
- - @tldraw/tlschema@0.1.0-alpha.7
4303
- - @tldraw/tlstore@0.1.0-alpha.7
4304
- - @tldraw/tlvalidate@0.1.0-alpha.7
4305
- - @tldraw/utils@0.1.0-alpha.7
4306
-
4307
- ## 0.0.2-alpha.1
4308
-
4309
- ### Patch Changes
4310
-
4311
- - Fix error with HMR
4312
- - Updated dependencies
4313
- - @tldraw/primitives@0.0.2-alpha.1
4314
- - @tldraw/tlschema@0.0.2-alpha.1
4315
- - @tldraw/tlstore@0.0.2-alpha.1
4316
- - @tldraw/utils@0.0.2-alpha.1
4317
-
4318
- ## 0.0.2-alpha.0
4319
-
4320
- ### Patch Changes
4321
-
4322
- - Initial release
4323
- - Updated dependencies
4324
- - @tldraw/primitives@0.0.2-alpha.0
4325
- - @tldraw/tlschema@0.0.2-alpha.0
4326
- - @tldraw/tlstore@0.0.2-alpha.0
4327
- - @tldraw/utils@0.0.2-alpha.0