@tldraw/editor 3.14.0-canary.f6a0206007b3 → 3.14.0-canary.f8af44c4d1e2
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 +1 -1
- package/dist-cjs/lib/editor/Editor.js +1 -4
- package/dist-cjs/lib/editor/Editor.js.map +2 -2
- package/dist-cjs/lib/editor/managers/FontManager.js +5 -1
- package/dist-cjs/lib/editor/managers/FontManager.js.map +2 -2
- package/dist-cjs/lib/primitives/Box.js +33 -33
- package/dist-cjs/lib/primitives/Box.js.map +2 -2
- package/dist-cjs/version.js +3 -3
- package/dist-cjs/version.js.map +1 -1
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/editor/Editor.mjs +1 -4
- package/dist-esm/lib/editor/Editor.mjs.map +2 -2
- package/dist-esm/lib/editor/managers/FontManager.mjs +5 -1
- package/dist-esm/lib/editor/managers/FontManager.mjs.map +2 -2
- package/dist-esm/lib/primitives/Box.mjs +33 -33
- package/dist-esm/lib/primitives/Box.mjs.map +2 -2
- package/dist-esm/version.mjs +3 -3
- package/dist-esm/version.mjs.map +1 -1
- package/package.json +7 -7
- package/src/lib/editor/Editor.ts +1 -4
- package/src/lib/editor/managers/FontManager.ts +5 -1
- package/src/lib/primitives/Box.test.ts +588 -7
- package/src/lib/primitives/Box.ts +33 -33
- package/src/version.ts +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -2820,10 +2820,7 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
|
|
|
2820
2820
|
}
|
|
2821
2821
|
getViewportScreenCenter() {
|
|
2822
2822
|
const viewportScreenBounds = this.getViewportScreenBounds();
|
|
2823
|
-
return new import_Vec.Vec(
|
|
2824
|
-
viewportScreenBounds.midX - viewportScreenBounds.minX,
|
|
2825
|
-
viewportScreenBounds.midY - viewportScreenBounds.minY
|
|
2826
|
-
);
|
|
2823
|
+
return new import_Vec.Vec(viewportScreenBounds.w / 2, viewportScreenBounds.h / 2);
|
|
2827
2824
|
}
|
|
2828
2825
|
getViewportPageBounds() {
|
|
2829
2826
|
const { w, h } = this.getViewportScreenBounds();
|