@pixldocs/canvas-renderer 0.5.433 → 0.5.434

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;
14057
+ var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
14058
14058
  const activeBeforeMouseDown = fabricCanvas.getActiveObject();
14059
14059
  if (editLockRef.current) {
14060
14060
  const active = fabricCanvas.getActiveObject();
@@ -14180,6 +14180,17 @@ const PageCanvas = react.forwardRef(
14180
14180
  const isMultiSelectKey = !!(((_j = opt.e) == null ? void 0 : _j.shiftKey) || ((_k = opt.e) == null ? void 0 : _k.metaKey) || ((_l = opt.e) == null ? void 0 : _l.ctrlKey));
14181
14181
  if (isMultiSelectKey) return;
14182
14182
  if ((_m = opt.e) == null ? void 0 : _m.altKey) return;
14183
+ try {
14184
+ const activeForCornerCheck = fabricCanvas.getActiveObject();
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));
14188
+ if (cornerHit) {
14189
+ return;
14190
+ }
14191
+ }
14192
+ } catch {
14193
+ }
14183
14194
  try {
14184
14195
  const pointer = fabricCanvas.getPointer(opt.e);
14185
14196
  const px = pointer.x;
@@ -25810,9 +25821,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
25810
25821
  }
25811
25822
  return svgString;
25812
25823
  }
25813
- const resolvedPackageVersion = "0.5.433";
25824
+ const resolvedPackageVersion = "0.5.434";
25814
25825
  const PACKAGE_VERSION = resolvedPackageVersion;
25815
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.433";
25826
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.434";
25816
25827
  const roundParityValue = (value) => {
25817
25828
  if (typeof value !== "number") return value;
25818
25829
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -26626,7 +26637,7 @@ class PixldocsRenderer {
26626
26637
  await this.waitForCanvasScene(container, cloned, i);
26627
26638
  }
26628
26639
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
26629
- const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-BXdCe5ek.cjs"));
26640
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-CRHNGoGg.cjs"));
26630
26641
  const prepared = preparePagesForExport(
26631
26642
  cloned.pages,
26632
26643
  canvasWidth,
@@ -28946,7 +28957,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
28946
28957
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
28947
28958
  sanitizeSvgTreeForPdf(svgToDraw);
28948
28959
  try {
28949
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-BXdCe5ek.cjs"));
28960
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-CRHNGoGg.cjs"));
28950
28961
  try {
28951
28962
  await logTextMeasurementDiagnostic(svgToDraw);
28952
28963
  } catch {
@@ -29343,4 +29354,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
29343
29354
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
29344
29355
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
29345
29356
  exports.warmTemplateFromForm = warmTemplateFromForm;
29346
- //# sourceMappingURL=index-Dl-ilqW_.cjs.map
29357
+ //# sourceMappingURL=index-BtiEg8-C.cjs.map