@tldraw/editor 5.5.0-canary.aceb23a4d18f → 5.5.0-canary.ae933fbc1695

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
@@ -392,7 +392,7 @@ var import_uniq = require("./lib/utils/uniq");
392
392
  var import_defaultThemes2 = require("./lib/editor/managers/ThemeManager/defaultThemes");
393
393
  (0, import_utils.registerTldrawLibraryVersion)(
394
394
  "@tldraw/editor",
395
- "5.5.0-canary.aceb23a4d18f",
395
+ "5.5.0-canary.ae933fbc1695",
396
396
  "cjs"
397
397
  );
398
398
  //# sourceMappingURL=index.js.map
@@ -2801,14 +2801,11 @@ class Editor extends import_eventemitter3.default {
2801
2801
  _animateViewport(ms) {
2802
2802
  if (!this._viewportAnimation) return;
2803
2803
  this._viewportAnimation.elapsed += ms;
2804
- const { elapsed, easing, duration, start, end, opts } = this._viewportAnimation;
2804
+ const { elapsed, easing, duration, start, end } = this._viewportAnimation;
2805
2805
  if (elapsed > duration) {
2806
2806
  this.off("tick", this._animateViewport);
2807
2807
  this._viewportAnimation = null;
2808
- this._setCamera(
2809
- new import_Vec.Vec(-end.x, -end.y, this.getViewportScreenBounds().width / end.width),
2810
- opts
2811
- );
2808
+ this._setCamera(new import_Vec.Vec(-end.x, -end.y, this.getViewportScreenBounds().width / end.width));
2812
2809
  return;
2813
2810
  }
2814
2811
  const remaining = duration - elapsed;
@@ -2846,8 +2843,7 @@ class Editor extends import_eventemitter3.default {
2846
2843
  duration: duration / animationSpeed,
2847
2844
  easing,
2848
2845
  start: viewportPageBounds.clone(),
2849
- end: targetViewportPage.clone(),
2850
- opts: rest
2846
+ end: targetViewportPage.clone()
2851
2847
  };
2852
2848
  this.once("stop-camera-animation", () => {
2853
2849
  this.off("tick", this._animateViewport);