@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.
- package/dist/{index-Dl-ilqW_.cjs → index-BtiEg8-C.cjs} +17 -6
- package/dist/index-BtiEg8-C.cjs.map +1 -0
- package/dist/{index-XUxKXZ1L.js → index-CAzQTttO.js} +17 -6
- package/dist/index-CAzQTttO.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-6d2YhE8F.js → vectorPdfExport-BLi6yU52.js} +4 -4
- package/dist/{vectorPdfExport-6d2YhE8F.js.map → vectorPdfExport-BLi6yU52.js.map} +1 -1
- package/dist/{vectorPdfExport-BXdCe5ek.cjs → vectorPdfExport-CRHNGoGg.cjs} +4 -4
- package/dist/{vectorPdfExport-BXdCe5ek.cjs.map → vectorPdfExport-CRHNGoGg.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-Dl-ilqW_.cjs.map +0 -1
- package/dist/index-XUxKXZ1L.js.map +0 -1
|
@@ -14036,7 +14036,7 @@ const PageCanvas = forwardRef(
|
|
|
14036
14036
|
};
|
|
14037
14037
|
fabricCanvas.__updateDrilledGroupOutline = updateDrilledGroupOutline;
|
|
14038
14038
|
fabricCanvas.on("mouse:down:before", (opt) => {
|
|
14039
|
-
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
14039
|
+
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
14040
14040
|
const activeBeforeMouseDown = fabricCanvas.getActiveObject();
|
|
14041
14041
|
if (editLockRef.current) {
|
|
14042
14042
|
const active = fabricCanvas.getActiveObject();
|
|
@@ -14162,6 +14162,17 @@ const PageCanvas = forwardRef(
|
|
|
14162
14162
|
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));
|
|
14163
14163
|
if (isMultiSelectKey) return;
|
|
14164
14164
|
if ((_m = opt.e) == null ? void 0 : _m.altKey) return;
|
|
14165
|
+
try {
|
|
14166
|
+
const activeForCornerCheck = fabricCanvas.getActiveObject();
|
|
14167
|
+
if (activeForCornerCheck) {
|
|
14168
|
+
const ptrForCorner = fabricCanvas.getPointer(opt.e);
|
|
14169
|
+
const cornerHit = ((_n = activeForCornerCheck.findControl) == null ? void 0 : _n.call(activeForCornerCheck, ptrForCorner)) || ((_o = activeForCornerCheck._findTargetCorner) == null ? void 0 : _o.call(activeForCornerCheck, ptrForCorner));
|
|
14170
|
+
if (cornerHit) {
|
|
14171
|
+
return;
|
|
14172
|
+
}
|
|
14173
|
+
}
|
|
14174
|
+
} catch {
|
|
14175
|
+
}
|
|
14165
14176
|
try {
|
|
14166
14177
|
const pointer = fabricCanvas.getPointer(opt.e);
|
|
14167
14178
|
const px = pointer.x;
|
|
@@ -25792,9 +25803,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25792
25803
|
}
|
|
25793
25804
|
return svgString;
|
|
25794
25805
|
}
|
|
25795
|
-
const resolvedPackageVersion = "0.5.
|
|
25806
|
+
const resolvedPackageVersion = "0.5.434";
|
|
25796
25807
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25797
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25808
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.434";
|
|
25798
25809
|
const roundParityValue = (value) => {
|
|
25799
25810
|
if (typeof value !== "number") return value;
|
|
25800
25811
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26608,7 +26619,7 @@ class PixldocsRenderer {
|
|
|
26608
26619
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26609
26620
|
}
|
|
26610
26621
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26611
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
26622
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-BLi6yU52.js");
|
|
26612
26623
|
const prepared = preparePagesForExport(
|
|
26613
26624
|
cloned.pages,
|
|
26614
26625
|
canvasWidth,
|
|
@@ -28928,7 +28939,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28928
28939
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28929
28940
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28930
28941
|
try {
|
|
28931
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
28942
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-BLi6yU52.js");
|
|
28932
28943
|
try {
|
|
28933
28944
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28934
28945
|
} catch {
|
|
@@ -29328,4 +29339,4 @@ export {
|
|
|
29328
29339
|
buildTeaserBlurFlatKeys as y,
|
|
29329
29340
|
collectFontDescriptorsFromConfig as z
|
|
29330
29341
|
};
|
|
29331
|
-
//# sourceMappingURL=index-
|
|
29342
|
+
//# sourceMappingURL=index-CAzQTttO.js.map
|