@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
|
@@ -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.
|
|
25824
|
+
const resolvedPackageVersion = "0.5.434";
|
|
25814
25825
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25815
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
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-
|
|
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-
|
|
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-
|
|
29357
|
+
//# sourceMappingURL=index-BtiEg8-C.cjs.map
|