@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.
- package/dist/{index-BNFF4r0P.js → index-CiXC9Gkl.js} +9 -8
- package/dist/index-CiXC9Gkl.js.map +1 -0
- package/dist/{index-MlXEe3pb.cjs → index-DCwSB2lw.cjs} +9 -8
- package/dist/index-DCwSB2lw.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-DssOdenf.cjs → vectorPdfExport-BlzQOLVd.cjs} +4 -4
- package/dist/{vectorPdfExport-DssOdenf.cjs.map → vectorPdfExport-BlzQOLVd.cjs.map} +1 -1
- package/dist/{vectorPdfExport-BoB0l9eY.js → vectorPdfExport-Go5IZl-i.js} +4 -4
- package/dist/{vectorPdfExport-BoB0l9eY.js.map → vectorPdfExport-Go5IZl-i.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BNFF4r0P.js.map +0 -1
- package/dist/index-MlXEe3pb.cjs.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, _n, _o;
|
|
14039
|
+
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
14040
14040
|
const activeBeforeMouseDown = fabricCanvas.getActiveObject();
|
|
14041
14041
|
if (editLockRef.current) {
|
|
14042
14042
|
const active = fabricCanvas.getActiveObject();
|
|
@@ -14165,8 +14165,9 @@ const PageCanvas = forwardRef(
|
|
|
14165
14165
|
try {
|
|
14166
14166
|
const activeForCornerCheck = fabricCanvas.getActiveObject();
|
|
14167
14167
|
if (activeForCornerCheck) {
|
|
14168
|
-
const
|
|
14169
|
-
const
|
|
14168
|
+
const vpPtr = ((_n = fabricCanvas.getViewportPoint) == null ? void 0 : _n.call(fabricCanvas, opt.e)) ?? fabricCanvas.getPointer(opt.e);
|
|
14169
|
+
const scenePtr = fabricCanvas.getPointer(opt.e);
|
|
14170
|
+
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));
|
|
14170
14171
|
if (cornerHit) {
|
|
14171
14172
|
return;
|
|
14172
14173
|
}
|
|
@@ -25829,9 +25830,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25829
25830
|
}
|
|
25830
25831
|
return svgString;
|
|
25831
25832
|
}
|
|
25832
|
-
const resolvedPackageVersion = "0.5.
|
|
25833
|
+
const resolvedPackageVersion = "0.5.437";
|
|
25833
25834
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25834
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25835
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.437";
|
|
25835
25836
|
const roundParityValue = (value) => {
|
|
25836
25837
|
if (typeof value !== "number") return value;
|
|
25837
25838
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26645,7 +26646,7 @@ class PixldocsRenderer {
|
|
|
26645
26646
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26646
26647
|
}
|
|
26647
26648
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26648
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
26649
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-Go5IZl-i.js");
|
|
26649
26650
|
const prepared = preparePagesForExport(
|
|
26650
26651
|
cloned.pages,
|
|
26651
26652
|
canvasWidth,
|
|
@@ -28965,7 +28966,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28965
28966
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28966
28967
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28967
28968
|
try {
|
|
28968
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
28969
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-Go5IZl-i.js");
|
|
28969
28970
|
try {
|
|
28970
28971
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28971
28972
|
} catch {
|
|
@@ -29365,4 +29366,4 @@ export {
|
|
|
29365
29366
|
buildTeaserBlurFlatKeys as y,
|
|
29366
29367
|
collectFontDescriptorsFromConfig as z
|
|
29367
29368
|
};
|
|
29368
|
-
//# sourceMappingURL=index-
|
|
29369
|
+
//# sourceMappingURL=index-CiXC9Gkl.js.map
|