@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
|
@@ -13593,15 +13593,12 @@ const PageCanvas = react.forwardRef(
|
|
|
13593
13593
|
const t = e.target;
|
|
13594
13594
|
if (t) lastResizeScaleTargetRef.current = t;
|
|
13595
13595
|
try {
|
|
13596
|
-
if (t instanceof fabric__namespace.ActiveSelection) {
|
|
13597
|
-
const
|
|
13598
|
-
if (
|
|
13599
|
-
|
|
13600
|
-
|
|
13601
|
-
|
|
13602
|
-
} else if (corner2 === "mt" || corner2 === "mb") {
|
|
13603
|
-
t.scaleX = t.scaleY;
|
|
13604
|
-
}
|
|
13596
|
+
if (t instanceof fabric__namespace.ActiveSelection && t.__pixldocsMixedRotation) {
|
|
13597
|
+
const corner2 = (_a2 = e.transform) == null ? void 0 : _a2.corner;
|
|
13598
|
+
if (corner2 === "ml" || corner2 === "mr") {
|
|
13599
|
+
t.scaleY = t.scaleX;
|
|
13600
|
+
} else if (corner2 === "mt" || corner2 === "mb") {
|
|
13601
|
+
t.scaleX = t.scaleY;
|
|
13605
13602
|
}
|
|
13606
13603
|
}
|
|
13607
13604
|
} catch {
|
|
@@ -13775,8 +13772,8 @@ const PageCanvas = react.forwardRef(
|
|
|
13775
13772
|
};
|
|
13776
13773
|
}
|
|
13777
13774
|
}
|
|
13778
|
-
const
|
|
13779
|
-
if (obj instanceof fabric__namespace.ActiveSelection && !
|
|
13775
|
+
const _asMixedRotForReflow = obj instanceof fabric__namespace.ActiveSelection && !!obj.__pixldocsMixedRotation;
|
|
13776
|
+
if (obj instanceof fabric__namespace.ActiveSelection && !_asMixedRotForReflow && (corner === "ml" || corner === "mr" || corner === "mt" || corner === "mb")) {
|
|
13780
13777
|
const isXSide = corner === "ml" || corner === "mr";
|
|
13781
13778
|
const sAxis = isXSide ? Math.abs(obj.scaleX ?? 1) : Math.abs(obj.scaleY ?? 1);
|
|
13782
13779
|
if (sAxis > 1e-3) {
|
|
@@ -24307,9 +24304,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24307
24304
|
}
|
|
24308
24305
|
return svgString;
|
|
24309
24306
|
}
|
|
24310
|
-
const resolvedPackageVersion = "0.5.
|
|
24307
|
+
const resolvedPackageVersion = "0.5.319";
|
|
24311
24308
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24312
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24309
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.319";
|
|
24313
24310
|
const roundParityValue = (value) => {
|
|
24314
24311
|
if (typeof value !== "number") return value;
|
|
24315
24312
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25123,7 +25120,7 @@ class PixldocsRenderer {
|
|
|
25123
25120
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25124
25121
|
}
|
|
25125
25122
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25126
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
25123
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-DPghmX4S.cjs"));
|
|
25127
25124
|
const prepared = preparePagesForExport(
|
|
25128
25125
|
cloned.pages,
|
|
25129
25126
|
canvasWidth,
|
|
@@ -27443,7 +27440,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27443
27440
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27444
27441
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27445
27442
|
try {
|
|
27446
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
27443
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-DPghmX4S.cjs"));
|
|
27447
27444
|
try {
|
|
27448
27445
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27449
27446
|
} catch {
|
|
@@ -27840,4 +27837,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
27840
27837
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
27841
27838
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
27842
27839
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
27843
|
-
//# sourceMappingURL=index-
|
|
27840
|
+
//# sourceMappingURL=index-D0nU_guL.cjs.map
|