@tldraw/sync-core 4.3.0-next.921f0bb64804 → 4.3.0-next.943ca6e3346e
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.
package/dist-cjs/index.js
CHANGED
|
@@ -51,7 +51,7 @@ var import_TLSyncClient = require("./lib/TLSyncClient");
|
|
|
51
51
|
var import_TLSyncRoom = require("./lib/TLSyncRoom");
|
|
52
52
|
(0, import_utils.registerTldrawLibraryVersion)(
|
|
53
53
|
"@tldraw/sync-core",
|
|
54
|
-
"4.3.0-next.
|
|
54
|
+
"4.3.0-next.943ca6e3346e",
|
|
55
55
|
"cjs"
|
|
56
56
|
);
|
|
57
57
|
//# sourceMappingURL=index.js.map
|
package/dist-esm/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tldraw/sync-core",
|
|
3
3
|
"description": "tldraw infinite canvas SDK (multiplayer sync).",
|
|
4
|
-
"version": "4.3.0-next.
|
|
4
|
+
"version": "4.3.0-next.943ca6e3346e",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw GB Ltd.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
"@types/uuid-readable": "^0.0.3",
|
|
49
49
|
"react": "^18.3.1",
|
|
50
50
|
"react-dom": "^18.3.1",
|
|
51
|
-
"tldraw": "4.3.0-next.
|
|
51
|
+
"tldraw": "4.3.0-next.943ca6e3346e",
|
|
52
52
|
"typescript": "^5.8.3",
|
|
53
53
|
"uuid-by-string": "^4.0.0",
|
|
54
54
|
"uuid-readable": "^0.0.2",
|
|
55
55
|
"vitest": "^3.2.4"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@tldraw/state": "4.3.0-next.
|
|
59
|
-
"@tldraw/store": "4.3.0-next.
|
|
60
|
-
"@tldraw/tlschema": "4.3.0-next.
|
|
61
|
-
"@tldraw/utils": "4.3.0-next.
|
|
58
|
+
"@tldraw/state": "4.3.0-next.943ca6e3346e",
|
|
59
|
+
"@tldraw/store": "4.3.0-next.943ca6e3346e",
|
|
60
|
+
"@tldraw/tlschema": "4.3.0-next.943ca6e3346e",
|
|
61
|
+
"@tldraw/utils": "4.3.0-next.943ca6e3346e",
|
|
62
62
|
"nanoevents": "^7.0.1",
|
|
63
63
|
"ws": "^8.18.0"
|
|
64
64
|
},
|
package/src/test/FuzzEditor.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Editor,
|
|
3
3
|
PageRecordType,
|
|
4
|
-
TLArrowBinding,
|
|
5
4
|
TLPage,
|
|
6
5
|
TLPageId,
|
|
7
6
|
TLShape,
|
|
@@ -41,8 +40,8 @@ export type Op =
|
|
|
41
40
|
}
|
|
42
41
|
| {
|
|
43
42
|
type: 'create-arrow'
|
|
44
|
-
start:
|
|
45
|
-
end:
|
|
43
|
+
start: VecModel
|
|
44
|
+
end: VecModel
|
|
46
45
|
}
|
|
47
46
|
| {
|
|
48
47
|
type: 'delete-shape'
|
|
@@ -315,8 +314,8 @@ export class FuzzEditor extends RandomSource {
|
|
|
315
314
|
x: 0,
|
|
316
315
|
y: 0,
|
|
317
316
|
props: {
|
|
318
|
-
start: op.start,
|
|
319
|
-
end: op.end,
|
|
317
|
+
start: op.start as any,
|
|
318
|
+
end: op.end as any,
|
|
320
319
|
},
|
|
321
320
|
})
|
|
322
321
|
break
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Editor,
|
|
3
|
-
TLArrowBinding,
|
|
4
|
-
TLArrowShape,
|
|
5
3
|
TLRecord,
|
|
6
4
|
TLStore,
|
|
7
5
|
computed,
|
|
@@ -111,9 +109,9 @@ let totalNumShapes = 0
|
|
|
111
109
|
let totalNumPages = 0
|
|
112
110
|
|
|
113
111
|
function arrowsAreSound(editor: Editor) {
|
|
114
|
-
const arrows = editor.getCurrentPageShapes().filter((s)
|
|
112
|
+
const arrows = editor.getCurrentPageShapes().filter((s) => s.type === 'arrow')
|
|
115
113
|
for (const arrow of arrows) {
|
|
116
|
-
const bindings = editor.getBindingsFromShape
|
|
114
|
+
const bindings = editor.getBindingsFromShape(arrow, 'arrow')
|
|
117
115
|
const terminalsSeen = new Set()
|
|
118
116
|
for (const binding of bindings) {
|
|
119
117
|
if (terminalsSeen.has(binding.props.terminal)) {
|