tldraw 5.2.0-next.a6104dd18d03 → 5.2.0-next.cd4a35fc06d5
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/DOCS.md +1 -1
- package/RELEASE_NOTES.md +1 -1
- package/dist-cjs/index.js +1 -1
- package/dist-cjs/lib/ui/version.js +3 -3
- package/dist-cjs/lib/ui/version.js.map +1 -1
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/ui/version.mjs +3 -3
- package/dist-esm/lib/ui/version.mjs.map +1 -1
- package/package.json +4 -4
- package/src/lib/ui/version.ts +3 -3
- package/src/test/rightClickPanning.test.ts +11 -0
package/DOCS.md
CHANGED
package/RELEASE_NOTES.md
CHANGED
package/dist-cjs/index.js
CHANGED
|
@@ -650,7 +650,7 @@ var import_buildFromV1Document = require("./lib/utils/tldr/buildFromV1Document")
|
|
|
650
650
|
var import_file = require("./lib/utils/tldr/file");
|
|
651
651
|
(0, import_editor.registerTldrawLibraryVersion)(
|
|
652
652
|
"tldraw",
|
|
653
|
-
"5.2.0-next.
|
|
653
|
+
"5.2.0-next.cd4a35fc06d5",
|
|
654
654
|
"cjs"
|
|
655
655
|
);
|
|
656
656
|
//# sourceMappingURL=index.js.map
|
|
@@ -22,10 +22,10 @@ __export(version_exports, {
|
|
|
22
22
|
version: () => version
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(version_exports);
|
|
25
|
-
const version = "5.2.0-next.
|
|
25
|
+
const version = "5.2.0-next.cd4a35fc06d5";
|
|
26
26
|
const publishDates = {
|
|
27
27
|
major: "2026-05-06T16:28:18.473Z",
|
|
28
|
-
minor: "2026-06-
|
|
29
|
-
patch: "2026-06-
|
|
28
|
+
minor: "2026-06-12T08:51:03.446Z",
|
|
29
|
+
patch: "2026-06-12T08:51:03.446Z"
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=version.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/lib/ui/version.ts"],
|
|
4
|
-
"sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '5.2.0-next.
|
|
4
|
+
"sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '5.2.0-next.cd4a35fc06d5'\nexport const publishDates = {\n\tmajor: '2026-05-06T16:28:18.473Z',\n\tminor: '2026-06-12T08:51:03.446Z',\n\tpatch: '2026-06-12T08:51:03.446Z',\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,UAAU;AAChB,MAAM,eAAe;AAAA,EAC3B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACR;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist-esm/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const version = "5.2.0-next.
|
|
1
|
+
const version = "5.2.0-next.cd4a35fc06d5";
|
|
2
2
|
const publishDates = {
|
|
3
3
|
major: "2026-05-06T16:28:18.473Z",
|
|
4
|
-
minor: "2026-06-
|
|
5
|
-
patch: "2026-06-
|
|
4
|
+
minor: "2026-06-12T08:51:03.446Z",
|
|
5
|
+
patch: "2026-06-12T08:51:03.446Z"
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
8
|
publishDates,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/lib/ui/version.ts"],
|
|
4
|
-
"sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '5.2.0-next.
|
|
4
|
+
"sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '5.2.0-next.cd4a35fc06d5'\nexport const publishDates = {\n\tmajor: '2026-05-06T16:28:18.473Z',\n\tminor: '2026-06-12T08:51:03.446Z',\n\tpatch: '2026-06-12T08:51:03.446Z',\n}\n"],
|
|
5
5
|
"mappings": "AAGO,MAAM,UAAU;AAChB,MAAM,eAAe;AAAA,EAC3B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACR;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tldraw",
|
|
3
3
|
"description": "A tiny little drawing editor.",
|
|
4
|
-
"version": "5.2.0-next.
|
|
4
|
+
"version": "5.2.0-next.cd4a35fc06d5",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"@tiptap/pm": "^3.12.1",
|
|
64
64
|
"@tiptap/react": "^3.12.1",
|
|
65
65
|
"@tiptap/starter-kit": "^3.12.1",
|
|
66
|
-
"@tldraw/driver": "5.2.0-next.
|
|
67
|
-
"@tldraw/editor": "5.2.0-next.
|
|
68
|
-
"@tldraw/store": "5.2.0-next.
|
|
66
|
+
"@tldraw/driver": "5.2.0-next.cd4a35fc06d5",
|
|
67
|
+
"@tldraw/editor": "5.2.0-next.cd4a35fc06d5",
|
|
68
|
+
"@tldraw/store": "5.2.0-next.cd4a35fc06d5",
|
|
69
69
|
"classnames": "^2.5.1",
|
|
70
70
|
"idb": "^7.1.1",
|
|
71
71
|
"lz-string": "^1.5.0",
|
package/src/lib/ui/version.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// This file is automatically generated by internal/scripts/refresh-assets.ts.
|
|
2
2
|
// Do not edit manually. Or do, I'm a comment, not a cop.
|
|
3
3
|
|
|
4
|
-
export const version = '5.2.0-next.
|
|
4
|
+
export const version = '5.2.0-next.cd4a35fc06d5'
|
|
5
5
|
export const publishDates = {
|
|
6
6
|
major: '2026-05-06T16:28:18.473Z',
|
|
7
|
-
minor: '2026-06-
|
|
8
|
-
patch: '2026-06-
|
|
7
|
+
minor: '2026-06-12T08:51:03.446Z',
|
|
8
|
+
patch: '2026-06-12T08:51:03.446Z',
|
|
9
9
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Vec } from '@tldraw/editor'
|
|
1
2
|
import { TestEditor } from './TestEditor'
|
|
2
3
|
|
|
3
4
|
describe('with rightClickPanning enabled (default)', () => {
|
|
@@ -17,6 +18,16 @@ describe('with rightClickPanning enabled (default)', () => {
|
|
|
17
18
|
expect(editor.inputs.getIsPanning()).toBe(false)
|
|
18
19
|
})
|
|
19
20
|
|
|
21
|
+
it('does not zoom when momentum panning on release', () => {
|
|
22
|
+
editor.pointerDown(100, 100, { button: 2 })
|
|
23
|
+
editor.pointerMove(200, 200)
|
|
24
|
+
expect(editor.inputs.getIsPanning()).toBe(true)
|
|
25
|
+
editor.inputs.setPointerVelocity(new Vec(1, 1))
|
|
26
|
+
editor.pointerUp(200, 200, { button: 2 }).forceTick()
|
|
27
|
+
|
|
28
|
+
expect(editor.getCamera().z).toBe(1)
|
|
29
|
+
})
|
|
30
|
+
|
|
20
31
|
it('does not pan on a static right-click', () => {
|
|
21
32
|
editor.pointerDown(100, 100, { button: 2 })
|
|
22
33
|
editor.pointerUp(100, 100, { button: 2 })
|