@pixldocs/canvas-renderer 0.5.436 → 0.5.437

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.
@@ -14054,7 +14054,7 @@ const PageCanvas = react.forwardRef(
14054
14054
  };
14055
14055
  fabricCanvas.__updateDrilledGroupOutline = updateDrilledGroupOutline;
14056
14056
  fabricCanvas.on("mouse:down:before", (opt) => {
14057
- var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
14057
+ var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
14058
14058
  const activeBeforeMouseDown = fabricCanvas.getActiveObject();
14059
14059
  if (editLockRef.current) {
14060
14060
  const active = fabricCanvas.getActiveObject();
@@ -14183,8 +14183,9 @@ const PageCanvas = react.forwardRef(
14183
14183
  try {
14184
14184
  const activeForCornerCheck = fabricCanvas.getActiveObject();
14185
14185
  if (activeForCornerCheck) {
14186
- const ptrForCorner = fabricCanvas.getPointer(opt.e);
14187
- const cornerHit = ((_n = activeForCornerCheck.findControl) == null ? void 0 : _n.call(activeForCornerCheck, ptrForCorner)) || ((_o = activeForCornerCheck._findTargetCorner) == null ? void 0 : _o.call(activeForCornerCheck, ptrForCorner));
14186
+ const vpPtr = ((_n = fabricCanvas.getViewportPoint) == null ? void 0 : _n.call(fabricCanvas, opt.e)) ?? fabricCanvas.getPointer(opt.e);
14187
+ const scenePtr = fabricCanvas.getPointer(opt.e);
14188
+ const cornerHit = ((_o = activeForCornerCheck.findControl) == null ? void 0 : _o.call(activeForCornerCheck, vpPtr)) || ((_p = activeForCornerCheck.findControl) == null ? void 0 : _p.call(activeForCornerCheck, scenePtr)) || ((_q = activeForCornerCheck._findTargetCorner) == null ? void 0 : _q.call(activeForCornerCheck, scenePtr));
14188
14189
  if (cornerHit) {
14189
14190
  return;
14190
14191
  }
@@ -25847,9 +25848,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
25847
25848
  }
25848
25849
  return svgString;
25849
25850
  }
25850
- const resolvedPackageVersion = "0.5.436";
25851
+ const resolvedPackageVersion = "0.5.437";
25851
25852
  const PACKAGE_VERSION = resolvedPackageVersion;
25852
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.436";
25853
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.437";
25853
25854
  const roundParityValue = (value) => {
25854
25855
  if (typeof value !== "number") return value;
25855
25856
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -26663,7 +26664,7 @@ class PixldocsRenderer {
26663
26664
  await this.waitForCanvasScene(container, cloned, i);
26664
26665
  }
26665
26666
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
26666
- const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-DssOdenf.cjs"));
26667
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-BlzQOLVd.cjs"));
26667
26668
  const prepared = preparePagesForExport(
26668
26669
  cloned.pages,
26669
26670
  canvasWidth,
@@ -28983,7 +28984,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
28983
28984
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
28984
28985
  sanitizeSvgTreeForPdf(svgToDraw);
28985
28986
  try {
28986
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-DssOdenf.cjs"));
28987
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-BlzQOLVd.cjs"));
28987
28988
  try {
28988
28989
  await logTextMeasurementDiagnostic(svgToDraw);
28989
28990
  } catch {
@@ -29380,4 +29381,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
29380
29381
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
29381
29382
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
29382
29383
  exports.warmTemplateFromForm = warmTemplateFromForm;
29383
- //# sourceMappingURL=index-MlXEe3pb.cjs.map
29384
+ //# sourceMappingURL=index-DCwSB2lw.cjs.map