@pixldocs/canvas-renderer 0.5.374 → 0.5.375
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-DQyoK8Nv.js → index-B0HRibrY.js} +23 -5
- package/dist/index-B0HRibrY.js.map +1 -0
- package/dist/{index-DpwFuxG9.cjs → index-DGMdAoOS.cjs} +23 -5
- package/dist/index-DGMdAoOS.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-HghwbAxV.js → vectorPdfExport-BDdjWeve.js} +4 -4
- package/dist/{vectorPdfExport-HghwbAxV.js.map → vectorPdfExport-BDdjWeve.js.map} +1 -1
- package/dist/{vectorPdfExport-Cfe50WTF.cjs → vectorPdfExport-DsexMYcA.cjs} +4 -4
- package/dist/{vectorPdfExport-Cfe50WTF.cjs.map → vectorPdfExport-DsexMYcA.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-DQyoK8Nv.js.map +0 -1
- package/dist/index-DpwFuxG9.cjs.map +0 -1
|
@@ -10514,6 +10514,24 @@ try {
|
|
|
10514
10514
|
const height = Math.max(0, ((size == null ? void 0 : size.y) ?? 0) - border);
|
|
10515
10515
|
ctx.strokeRect(-width / 2, -height / 2, width, height);
|
|
10516
10516
|
};
|
|
10517
|
+
if (typeof InteractiveBase.prototype.drawControlsConnectingLines === "function") {
|
|
10518
|
+
const originalDrawControlConnections = InteractiveBase.prototype.drawControlsConnectingLines;
|
|
10519
|
+
InteractiveBase.prototype.drawControlsConnectingLines = function(ctx, size) {
|
|
10520
|
+
var _a2;
|
|
10521
|
+
const disabledRotateConnections = [];
|
|
10522
|
+
try {
|
|
10523
|
+
(_a2 = this.forEachControl) == null ? void 0 : _a2.call(this, (control, key) => {
|
|
10524
|
+
if (key === "mtr" || String((control == null ? void 0 : control.actionName) ?? "") === "rotate") {
|
|
10525
|
+
disabledRotateConnections.push([control, control.withConnection]);
|
|
10526
|
+
control.withConnection = false;
|
|
10527
|
+
}
|
|
10528
|
+
});
|
|
10529
|
+
originalDrawControlConnections.call(this, ctx, size);
|
|
10530
|
+
} finally {
|
|
10531
|
+
for (const [control, wasConnected] of disabledRotateConnections) control.withConnection = wasConnected;
|
|
10532
|
+
}
|
|
10533
|
+
};
|
|
10534
|
+
}
|
|
10517
10535
|
}
|
|
10518
10536
|
if (InteractiveBase == null ? void 0 : InteractiveBase.ownDefaults) {
|
|
10519
10537
|
Object.assign(InteractiveBase.ownDefaults, {
|
|
@@ -24692,9 +24710,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24692
24710
|
}
|
|
24693
24711
|
return svgString;
|
|
24694
24712
|
}
|
|
24695
|
-
const resolvedPackageVersion = "0.5.
|
|
24713
|
+
const resolvedPackageVersion = "0.5.375";
|
|
24696
24714
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24697
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24715
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.375";
|
|
24698
24716
|
const roundParityValue = (value) => {
|
|
24699
24717
|
if (typeof value !== "number") return value;
|
|
24700
24718
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25508,7 +25526,7 @@ class PixldocsRenderer {
|
|
|
25508
25526
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25509
25527
|
}
|
|
25510
25528
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25511
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
25529
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-BDdjWeve.js");
|
|
25512
25530
|
const prepared = preparePagesForExport(
|
|
25513
25531
|
cloned.pages,
|
|
25514
25532
|
canvasWidth,
|
|
@@ -27828,7 +27846,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27828
27846
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27829
27847
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27830
27848
|
try {
|
|
27831
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
27849
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-BDdjWeve.js");
|
|
27832
27850
|
try {
|
|
27833
27851
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27834
27852
|
} catch {
|
|
@@ -28228,4 +28246,4 @@ export {
|
|
|
28228
28246
|
buildTeaserBlurFlatKeys as y,
|
|
28229
28247
|
collectFontDescriptorsFromConfig as z
|
|
28230
28248
|
};
|
|
28231
|
-
//# sourceMappingURL=index-
|
|
28249
|
+
//# sourceMappingURL=index-B0HRibrY.js.map
|