@pixldocs/canvas-renderer 0.5.254 → 0.5.255
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-9Lw_NdWM.cjs → index-5whx8gZE.cjs} +19 -5
- package/dist/index-5whx8gZE.cjs.map +1 -0
- package/dist/{index-DNP0J9Fe.js → index-BF-sKPH7.js} +19 -5
- package/dist/index-BF-sKPH7.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-BpVM86xb.cjs → vectorPdfExport-BK2ntULQ.cjs} +4 -4
- package/dist/{vectorPdfExport-BpVM86xb.cjs.map → vectorPdfExport-BK2ntULQ.cjs.map} +1 -1
- package/dist/{vectorPdfExport-MzXdlOEY.js → vectorPdfExport-DunkNPyo.js} +4 -4
- package/dist/{vectorPdfExport-MzXdlOEY.js.map → vectorPdfExport-DunkNPyo.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-9Lw_NdWM.cjs.map +0 -1
- package/dist/index-DNP0J9Fe.js.map +0 -1
|
@@ -13306,6 +13306,7 @@ const PageCanvas = forwardRef(
|
|
|
13306
13306
|
fabricCanvas.on("selection:cleared", () => {
|
|
13307
13307
|
});
|
|
13308
13308
|
fabricCanvas.on("object:scaling", (e) => {
|
|
13309
|
+
var _a2;
|
|
13309
13310
|
if (!isActiveRef.current) return;
|
|
13310
13311
|
const t = e.target;
|
|
13311
13312
|
if (t) lastResizeScaleTargetRef.current = t;
|
|
@@ -13587,8 +13588,15 @@ const PageCanvas = forwardRef(
|
|
|
13587
13588
|
} catch {
|
|
13588
13589
|
}
|
|
13589
13590
|
setGuides(gridGuidesForScale.length ? [...scaleGuides, ...gridGuidesForScale] : scaleGuides);
|
|
13591
|
+
if (drilledGroupIdRef.current) {
|
|
13592
|
+
try {
|
|
13593
|
+
(_a2 = fabricCanvas.__updateDrilledGroupOutline) == null ? void 0 : _a2.call(fabricCanvas);
|
|
13594
|
+
} catch {
|
|
13595
|
+
}
|
|
13596
|
+
}
|
|
13590
13597
|
});
|
|
13591
13598
|
fabricCanvas.on("object:resizing", (e) => {
|
|
13599
|
+
var _a2;
|
|
13592
13600
|
if (!isActiveRef.current) return;
|
|
13593
13601
|
const t = e.target;
|
|
13594
13602
|
if (t) lastResizeScaleTargetRef.current = t;
|
|
@@ -13665,6 +13673,12 @@ const PageCanvas = forwardRef(
|
|
|
13665
13673
|
} catch {
|
|
13666
13674
|
}
|
|
13667
13675
|
setGuides(gridGuidesForTextResize.length ? [...scaleGuides, ...gridGuidesForTextResize] : scaleGuides);
|
|
13676
|
+
if (drilledGroupIdRef.current) {
|
|
13677
|
+
try {
|
|
13678
|
+
(_a2 = fabricCanvas.__updateDrilledGroupOutline) == null ? void 0 : _a2.call(fabricCanvas);
|
|
13679
|
+
} catch {
|
|
13680
|
+
}
|
|
13681
|
+
}
|
|
13668
13682
|
});
|
|
13669
13683
|
fabricCanvas.on("object:rotating", (e) => {
|
|
13670
13684
|
markSimpleTransform(e);
|
|
@@ -23497,9 +23511,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
23497
23511
|
}
|
|
23498
23512
|
return svgString;
|
|
23499
23513
|
}
|
|
23500
|
-
const resolvedPackageVersion = "0.5.
|
|
23514
|
+
const resolvedPackageVersion = "0.5.255";
|
|
23501
23515
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
23502
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
23516
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.255";
|
|
23503
23517
|
const roundParityValue = (value) => {
|
|
23504
23518
|
if (typeof value !== "number") return value;
|
|
23505
23519
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -24313,7 +24327,7 @@ class PixldocsRenderer {
|
|
|
24313
24327
|
await this.waitForCanvasScene(container, cloned, i);
|
|
24314
24328
|
}
|
|
24315
24329
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
24316
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
24330
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-DunkNPyo.js");
|
|
24317
24331
|
const prepared = preparePagesForExport(
|
|
24318
24332
|
cloned.pages,
|
|
24319
24333
|
canvasWidth,
|
|
@@ -26633,7 +26647,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
26633
26647
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
26634
26648
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
26635
26649
|
try {
|
|
26636
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
26650
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-DunkNPyo.js");
|
|
26637
26651
|
try {
|
|
26638
26652
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
26639
26653
|
} catch {
|
|
@@ -27033,4 +27047,4 @@ export {
|
|
|
27033
27047
|
buildTeaserBlurFlatKeys as y,
|
|
27034
27048
|
collectFontDescriptorsFromConfig as z
|
|
27035
27049
|
};
|
|
27036
|
-
//# sourceMappingURL=index-
|
|
27050
|
+
//# sourceMappingURL=index-BF-sKPH7.js.map
|