@pixldocs/canvas-renderer 0.5.317 → 0.5.319
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-Bx4Y_HmX.cjs → index-D0nU_guL.cjs} +13 -16
- package/dist/index-D0nU_guL.cjs.map +1 -0
- package/dist/{index-CXbCTms2.js → index-D75MmxRi.js} +13 -16
- package/dist/index-D75MmxRi.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-CM-HtbmR.js → vectorPdfExport-9kP7srXG.js} +4 -4
- package/dist/{vectorPdfExport-CM-HtbmR.js.map → vectorPdfExport-9kP7srXG.js.map} +1 -1
- package/dist/{vectorPdfExport-Cbrzzq6K.cjs → vectorPdfExport-DPghmX4S.cjs} +4 -4
- package/dist/{vectorPdfExport-Cbrzzq6K.cjs.map → vectorPdfExport-DPghmX4S.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-Bx4Y_HmX.cjs.map +0 -1
- package/dist/index-CXbCTms2.js.map +0 -1
|
@@ -13575,15 +13575,12 @@ const PageCanvas = forwardRef(
|
|
|
13575
13575
|
const t = e.target;
|
|
13576
13576
|
if (t) lastResizeScaleTargetRef.current = t;
|
|
13577
13577
|
try {
|
|
13578
|
-
if (t instanceof fabric.ActiveSelection) {
|
|
13579
|
-
const
|
|
13580
|
-
if (
|
|
13581
|
-
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
} else if (corner2 === "mt" || corner2 === "mb") {
|
|
13585
|
-
t.scaleX = t.scaleY;
|
|
13586
|
-
}
|
|
13578
|
+
if (t instanceof fabric.ActiveSelection && t.__pixldocsMixedRotation) {
|
|
13579
|
+
const corner2 = (_a2 = e.transform) == null ? void 0 : _a2.corner;
|
|
13580
|
+
if (corner2 === "ml" || corner2 === "mr") {
|
|
13581
|
+
t.scaleY = t.scaleX;
|
|
13582
|
+
} else if (corner2 === "mt" || corner2 === "mb") {
|
|
13583
|
+
t.scaleX = t.scaleY;
|
|
13587
13584
|
}
|
|
13588
13585
|
}
|
|
13589
13586
|
} catch {
|
|
@@ -13757,8 +13754,8 @@ const PageCanvas = forwardRef(
|
|
|
13757
13754
|
};
|
|
13758
13755
|
}
|
|
13759
13756
|
}
|
|
13760
|
-
const
|
|
13761
|
-
if (obj instanceof fabric.ActiveSelection && !
|
|
13757
|
+
const _asMixedRotForReflow = obj instanceof fabric.ActiveSelection && !!obj.__pixldocsMixedRotation;
|
|
13758
|
+
if (obj instanceof fabric.ActiveSelection && !_asMixedRotForReflow && (corner === "ml" || corner === "mr" || corner === "mt" || corner === "mb")) {
|
|
13762
13759
|
const isXSide = corner === "ml" || corner === "mr";
|
|
13763
13760
|
const sAxis = isXSide ? Math.abs(obj.scaleX ?? 1) : Math.abs(obj.scaleY ?? 1);
|
|
13764
13761
|
if (sAxis > 1e-3) {
|
|
@@ -24289,9 +24286,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24289
24286
|
}
|
|
24290
24287
|
return svgString;
|
|
24291
24288
|
}
|
|
24292
|
-
const resolvedPackageVersion = "0.5.
|
|
24289
|
+
const resolvedPackageVersion = "0.5.319";
|
|
24293
24290
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24294
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24291
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.319";
|
|
24295
24292
|
const roundParityValue = (value) => {
|
|
24296
24293
|
if (typeof value !== "number") return value;
|
|
24297
24294
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25105,7 +25102,7 @@ class PixldocsRenderer {
|
|
|
25105
25102
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25106
25103
|
}
|
|
25107
25104
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25108
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
25105
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-9kP7srXG.js");
|
|
25109
25106
|
const prepared = preparePagesForExport(
|
|
25110
25107
|
cloned.pages,
|
|
25111
25108
|
canvasWidth,
|
|
@@ -27425,7 +27422,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27425
27422
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27426
27423
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27427
27424
|
try {
|
|
27428
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
27425
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-9kP7srXG.js");
|
|
27429
27426
|
try {
|
|
27430
27427
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27431
27428
|
} catch {
|
|
@@ -27825,4 +27822,4 @@ export {
|
|
|
27825
27822
|
buildTeaserBlurFlatKeys as y,
|
|
27826
27823
|
collectFontDescriptorsFromConfig as z
|
|
27827
27824
|
};
|
|
27828
|
-
//# sourceMappingURL=index-
|
|
27825
|
+
//# sourceMappingURL=index-D75MmxRi.js.map
|