@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
|
@@ -10532,6 +10532,24 @@ try {
|
|
|
10532
10532
|
const height = Math.max(0, ((size == null ? void 0 : size.y) ?? 0) - border);
|
|
10533
10533
|
ctx.strokeRect(-width / 2, -height / 2, width, height);
|
|
10534
10534
|
};
|
|
10535
|
+
if (typeof InteractiveBase.prototype.drawControlsConnectingLines === "function") {
|
|
10536
|
+
const originalDrawControlConnections = InteractiveBase.prototype.drawControlsConnectingLines;
|
|
10537
|
+
InteractiveBase.prototype.drawControlsConnectingLines = function(ctx, size) {
|
|
10538
|
+
var _a2;
|
|
10539
|
+
const disabledRotateConnections = [];
|
|
10540
|
+
try {
|
|
10541
|
+
(_a2 = this.forEachControl) == null ? void 0 : _a2.call(this, (control, key) => {
|
|
10542
|
+
if (key === "mtr" || String((control == null ? void 0 : control.actionName) ?? "") === "rotate") {
|
|
10543
|
+
disabledRotateConnections.push([control, control.withConnection]);
|
|
10544
|
+
control.withConnection = false;
|
|
10545
|
+
}
|
|
10546
|
+
});
|
|
10547
|
+
originalDrawControlConnections.call(this, ctx, size);
|
|
10548
|
+
} finally {
|
|
10549
|
+
for (const [control, wasConnected] of disabledRotateConnections) control.withConnection = wasConnected;
|
|
10550
|
+
}
|
|
10551
|
+
};
|
|
10552
|
+
}
|
|
10535
10553
|
}
|
|
10536
10554
|
if (InteractiveBase == null ? void 0 : InteractiveBase.ownDefaults) {
|
|
10537
10555
|
Object.assign(InteractiveBase.ownDefaults, {
|
|
@@ -24710,9 +24728,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24710
24728
|
}
|
|
24711
24729
|
return svgString;
|
|
24712
24730
|
}
|
|
24713
|
-
const resolvedPackageVersion = "0.5.
|
|
24731
|
+
const resolvedPackageVersion = "0.5.375";
|
|
24714
24732
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24715
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24733
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.375";
|
|
24716
24734
|
const roundParityValue = (value) => {
|
|
24717
24735
|
if (typeof value !== "number") return value;
|
|
24718
24736
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25526,7 +25544,7 @@ class PixldocsRenderer {
|
|
|
25526
25544
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25527
25545
|
}
|
|
25528
25546
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25529
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
25547
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-DsexMYcA.cjs"));
|
|
25530
25548
|
const prepared = preparePagesForExport(
|
|
25531
25549
|
cloned.pages,
|
|
25532
25550
|
canvasWidth,
|
|
@@ -27846,7 +27864,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27846
27864
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27847
27865
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27848
27866
|
try {
|
|
27849
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
27867
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-DsexMYcA.cjs"));
|
|
27850
27868
|
try {
|
|
27851
27869
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27852
27870
|
} catch {
|
|
@@ -28243,4 +28261,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
28243
28261
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
28244
28262
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
28245
28263
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
28246
|
-
//# sourceMappingURL=index-
|
|
28264
|
+
//# sourceMappingURL=index-DGMdAoOS.cjs.map
|