@pixldocs/canvas-renderer 0.5.427 → 0.5.428
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-DKaw5wif.cjs → index-Dk0BUnsP.cjs} +14 -8
- package/dist/index-Dk0BUnsP.cjs.map +1 -0
- package/dist/{index-BMuhbMdO.js → index-lHxjPVDE.js} +14 -8
- package/dist/index-lHxjPVDE.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-Bc2upktw.js → vectorPdfExport-CsSQj8-v.js} +4 -4
- package/dist/{vectorPdfExport-Bc2upktw.js.map → vectorPdfExport-CsSQj8-v.js.map} +1 -1
- package/dist/{vectorPdfExport-BUi4rX_J.cjs → vectorPdfExport-DrbrYFkJ.cjs} +4 -4
- package/dist/{vectorPdfExport-BUi4rX_J.cjs.map → vectorPdfExport-DrbrYFkJ.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BMuhbMdO.js.map +0 -1
- package/dist/index-DKaw5wif.cjs.map +0 -1
|
@@ -11308,9 +11308,15 @@ try {
|
|
|
11308
11308
|
} catch (e) {
|
|
11309
11309
|
}
|
|
11310
11310
|
};
|
|
11311
|
-
const
|
|
11312
|
-
|
|
11313
|
-
|
|
11311
|
+
const canPatchControlsUtils = (key) => {
|
|
11312
|
+
const desc = Object.getOwnPropertyDescriptor(cu, key);
|
|
11313
|
+
return !desc || desc.writable === true || typeof desc.set === "function";
|
|
11314
|
+
};
|
|
11315
|
+
if (canPatchControlsUtils("createObjectDefaultControls")) {
|
|
11316
|
+
const origObj = cu.createObjectDefaultControls.bind(cu);
|
|
11317
|
+
cu.createObjectDefaultControls = () => installPillRenders(origObj());
|
|
11318
|
+
}
|
|
11319
|
+
if (typeof cu.createTextboxDefaultControls === "function" && canPatchControlsUtils("createTextboxDefaultControls")) {
|
|
11314
11320
|
const origTb = cu.createTextboxDefaultControls.bind(cu);
|
|
11315
11321
|
cu.createTextboxDefaultControls = () => installPillRenders(origTb());
|
|
11316
11322
|
}
|
|
@@ -25682,9 +25688,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25682
25688
|
}
|
|
25683
25689
|
return svgString;
|
|
25684
25690
|
}
|
|
25685
|
-
const resolvedPackageVersion = "0.5.
|
|
25691
|
+
const resolvedPackageVersion = "0.5.428";
|
|
25686
25692
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25687
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25693
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.428";
|
|
25688
25694
|
const roundParityValue = (value) => {
|
|
25689
25695
|
if (typeof value !== "number") return value;
|
|
25690
25696
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26498,7 +26504,7 @@ class PixldocsRenderer {
|
|
|
26498
26504
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26499
26505
|
}
|
|
26500
26506
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26501
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
26507
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CsSQj8-v.js");
|
|
26502
26508
|
const prepared = preparePagesForExport(
|
|
26503
26509
|
cloned.pages,
|
|
26504
26510
|
canvasWidth,
|
|
@@ -28818,7 +28824,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28818
28824
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28819
28825
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28820
28826
|
try {
|
|
28821
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
28827
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CsSQj8-v.js");
|
|
28822
28828
|
try {
|
|
28823
28829
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28824
28830
|
} catch {
|
|
@@ -29218,4 +29224,4 @@ export {
|
|
|
29218
29224
|
buildTeaserBlurFlatKeys as y,
|
|
29219
29225
|
collectFontDescriptorsFromConfig as z
|
|
29220
29226
|
};
|
|
29221
|
-
//# sourceMappingURL=index-
|
|
29227
|
+
//# sourceMappingURL=index-lHxjPVDE.js.map
|