floor-editor-ts 1.2.8 → 1.2.9

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.
@@ -64741,29 +64741,13 @@ function FloorPlanCanvas($$anchor, $$props) {
64741
64741
  };
64742
64742
  }
64743
64743
  user_effect(() => {
64744
- const unsubZoom = canvasZoom.subscribe((v) => {
64745
- if (v !== get(zoom)) set(zoom, v, true);
64746
- });
64747
- const unsubX = canvasCamX.subscribe((v) => {
64748
- if (v !== get(camX)) set(camX, v, true);
64749
- });
64750
- const unsubY = canvasCamY.subscribe((v) => {
64751
- if (v !== get(camY)) set(camY, v, true);
64752
- });
64753
- return () => {
64754
- unsubZoom();
64755
- unsubX();
64756
- unsubY();
64757
- };
64744
+ canvasZoom.set(get(zoom));
64758
64745
  });
64759
64746
  user_effect(() => {
64760
- if (get$1(canvasZoom) !== get(zoom)) canvasZoom.set(get(zoom));
64747
+ canvasCamX.set(get(camX));
64761
64748
  });
64762
64749
  user_effect(() => {
64763
- if (get$1(canvasCamX) !== get(camX)) canvasCamX.set(get(camX));
64764
- });
64765
- user_effect(() => {
64766
- if (get$1(canvasCamY) !== get(camY)) canvasCamY.set(get(camY));
64750
+ canvasCamY.set(get(camY));
64767
64751
  });
64768
64752
  let wallStart = /* @__PURE__ */ state(null);
64769
64753
  let wallSequenceFirst = /* @__PURE__ */ state(null);
@@ -66445,6 +66429,15 @@ function FloorPlanCanvas($$anchor, $$props) {
66445
66429
  img.src = f.backgroundImage.dataUrl;
66446
66430
  } else if (!(f === null || f === void 0 ? void 0 : f.backgroundImage)) set(bgImage, null);
66447
66431
  });
66432
+ const unsubZoom = canvasZoom.subscribe((v) => {
66433
+ set(zoom, v, true);
66434
+ });
66435
+ const unsubCamX = canvasCamX.subscribe((v) => {
66436
+ set(camX, v, true);
66437
+ });
66438
+ const unsubCamY = canvasCamY.subscribe((v) => {
66439
+ set(camY, v, true);
66440
+ });
66448
66441
  function handlePaste(e) {
66449
66442
  if (!e.clipboardData) return;
66450
66443
  if (get(clipboard) && get(clipboard).items.length > 0) return;
@@ -66487,6 +66480,9 @@ function FloorPlanCanvas($$anchor, $$props) {
66487
66480
  unsub13();
66488
66481
  unsub_multi();
66489
66482
  unsub14();
66483
+ unsubZoom();
66484
+ unsubCamX();
66485
+ unsubCamY();
66490
66486
  unsub_col();
66491
66487
  unsub_cols();
66492
66488
  unsub_layers();