@pixldocs/canvas-renderer 0.5.439 → 0.5.440
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-C7_iudsO.js → index-H0u34DDY.js} +23 -7
- package/dist/{index-C7_iudsO.js.map → index-H0u34DDY.js.map} +1 -1
- package/dist/{index-CfAPR8q1.cjs → index-hWZ5kvhb.cjs} +23 -7
- package/dist/{index-CfAPR8q1.cjs.map → index-hWZ5kvhb.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-DNxCx3pQ.js → vectorPdfExport-BkFH66cH.js} +4 -4
- package/dist/{vectorPdfExport-DNxCx3pQ.js.map → vectorPdfExport-BkFH66cH.js.map} +1 -1
- package/dist/{vectorPdfExport-CTMHlR-q.cjs → vectorPdfExport-CtvA0Dck.cjs} +4 -4
- package/dist/{vectorPdfExport-CTMHlR-q.cjs.map → vectorPdfExport-CtvA0Dck.cjs.map} +1 -1
- package/package.json +1 -1
|
@@ -11663,6 +11663,22 @@ const bakeTextboxScaleIntoTypography = (obj, sourceElement) => {
|
|
|
11663
11663
|
};
|
|
11664
11664
|
return updates;
|
|
11665
11665
|
};
|
|
11666
|
+
const applyTransformPreservingFlip = (obj, matrix) => {
|
|
11667
|
+
fabric__namespace.util.applyTransformToObject(obj, matrix);
|
|
11668
|
+
let sx = obj.scaleX ?? 1;
|
|
11669
|
+
let sy = obj.scaleY ?? 1;
|
|
11670
|
+
let flipX = false;
|
|
11671
|
+
let flipY = false;
|
|
11672
|
+
if (sx < 0) {
|
|
11673
|
+
flipX = true;
|
|
11674
|
+
sx = -sx;
|
|
11675
|
+
}
|
|
11676
|
+
if (sy < 0) {
|
|
11677
|
+
flipY = true;
|
|
11678
|
+
sy = -sy;
|
|
11679
|
+
}
|
|
11680
|
+
obj.set({ scaleX: sx, scaleY: sy, flipX, flipY });
|
|
11681
|
+
};
|
|
11666
11682
|
function applyWarpAwareSelectionBorders(selection) {
|
|
11667
11683
|
var _a2;
|
|
11668
11684
|
if (selection.__pixldocsOrigASHasBorders !== void 0) {
|
|
@@ -11760,7 +11776,7 @@ function applyWarpAwareSelectionBorders(selection) {
|
|
|
11760
11776
|
const savedLayout = k.layoutManager;
|
|
11761
11777
|
try {
|
|
11762
11778
|
if (savedLayout) k.layoutManager = void 0;
|
|
11763
|
-
|
|
11779
|
+
applyTransformPreservingFlip(k, localMatrix);
|
|
11764
11780
|
const decomposed = fabric__namespace.util.qrDecompose(
|
|
11765
11781
|
localMatrix
|
|
11766
11782
|
);
|
|
@@ -16793,7 +16809,7 @@ const PageCanvas = react.forwardRef(
|
|
|
16793
16809
|
if (!objId || objId === "__background__") continue;
|
|
16794
16810
|
const objOwnMatrix = obj.calcOwnMatrix();
|
|
16795
16811
|
const absoluteMatrix = fabric__namespace.util.multiplyTransformMatrices(selectionMatrix, objOwnMatrix);
|
|
16796
|
-
|
|
16812
|
+
applyTransformPreservingFlip(obj, absoluteMatrix);
|
|
16797
16813
|
obj.setCoords();
|
|
16798
16814
|
}
|
|
16799
16815
|
});
|
|
@@ -25853,9 +25869,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25853
25869
|
}
|
|
25854
25870
|
return svgString;
|
|
25855
25871
|
}
|
|
25856
|
-
const resolvedPackageVersion = "0.5.
|
|
25872
|
+
const resolvedPackageVersion = "0.5.440";
|
|
25857
25873
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25858
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25874
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.440";
|
|
25859
25875
|
const roundParityValue = (value) => {
|
|
25860
25876
|
if (typeof value !== "number") return value;
|
|
25861
25877
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26669,7 +26685,7 @@ class PixldocsRenderer {
|
|
|
26669
26685
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26670
26686
|
}
|
|
26671
26687
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26672
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
26688
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-CtvA0Dck.cjs"));
|
|
26673
26689
|
const prepared = preparePagesForExport(
|
|
26674
26690
|
cloned.pages,
|
|
26675
26691
|
canvasWidth,
|
|
@@ -28989,7 +29005,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28989
29005
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28990
29006
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28991
29007
|
try {
|
|
28992
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
29008
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-CtvA0Dck.cjs"));
|
|
28993
29009
|
try {
|
|
28994
29010
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28995
29011
|
} catch {
|
|
@@ -29386,4 +29402,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
29386
29402
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
29387
29403
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
29388
29404
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
29389
|
-
//# sourceMappingURL=index-
|
|
29405
|
+
//# sourceMappingURL=index-hWZ5kvhb.cjs.map
|