@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 CHANGED
@@ -363,7 +363,7 @@ function debugEnableLicensing() {
363
363
  }
364
364
  (0, import_utils.registerTldrawLibraryVersion)(
365
365
  "@tldraw/editor",
366
- "3.14.0-canary.f6a0206007b3",
366
+ "3.14.0-canary.f8af44c4d1e2",
367
367
  "cjs"
368
368
  );
369
369
  //# sourceMappingURL=index.js.map
@@ -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();