@pixldocs/canvas-renderer 0.5.405 → 0.5.406
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-A1mT_rQo.js → index-D-UEBi3B.js} +23 -5
- package/dist/{index-A1mT_rQo.js.map → index-D-UEBi3B.js.map} +1 -1
- package/dist/{index-uJf5RraI.cjs → index-D5UViOKA.cjs} +23 -5
- package/dist/{index-uJf5RraI.cjs.map → index-D5UViOKA.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-C3La67Vw.js → vectorPdfExport-BSFv6jYQ.js} +4 -4
- package/dist/{vectorPdfExport-C3La67Vw.js.map → vectorPdfExport-BSFv6jYQ.js.map} +1 -1
- package/dist/{vectorPdfExport-DSku6Anm.cjs → vectorPdfExport-r257koLL.cjs} +4 -4
- package/dist/{vectorPdfExport-DSku6Anm.cjs.map → vectorPdfExport-r257koLL.cjs.map} +1 -1
- package/package.json +1 -1
|
@@ -13258,6 +13258,24 @@ const PageCanvas = react.forwardRef(
|
|
|
13258
13258
|
var _a2, _b2, _c2;
|
|
13259
13259
|
const active = target instanceof fabric__namespace.ActiveSelection ? target : fabricCanvas.getActiveObject();
|
|
13260
13260
|
if (!(active instanceof fabric__namespace.ActiveSelection)) return;
|
|
13261
|
+
try {
|
|
13262
|
+
const asScaleX = Math.abs(active.scaleX ?? 1);
|
|
13263
|
+
const asScaleY = Math.abs(active.scaleY ?? 1);
|
|
13264
|
+
if (Math.abs(asScaleX - 1) > 1e-4 || Math.abs(asScaleY - 1) > 1e-4) {
|
|
13265
|
+
const newW = Math.max(1, (active.width ?? 0) * asScaleX);
|
|
13266
|
+
const newH = Math.max(1, (active.height ?? 0) * asScaleY);
|
|
13267
|
+
active.set({ width: newW, height: newH, scaleX: 1, scaleY: 1 });
|
|
13268
|
+
active.setCoords();
|
|
13269
|
+
const ct = fabricCanvas._currentTransform;
|
|
13270
|
+
if (ct && ct.target === active && ct.original) {
|
|
13271
|
+
ct.original.scaleX = 1;
|
|
13272
|
+
ct.original.scaleY = 1;
|
|
13273
|
+
ct.original.width = newW;
|
|
13274
|
+
ct.original.height = newH;
|
|
13275
|
+
}
|
|
13276
|
+
}
|
|
13277
|
+
} catch {
|
|
13278
|
+
}
|
|
13261
13279
|
if (!activeSelectionMoveStartRef.current || activeSelectionMoveStartRef.current.selection !== active) {
|
|
13262
13280
|
const rect2 = active.getBoundingRect();
|
|
13263
13281
|
activeSelectionMoveStartRef.current = {
|
|
@@ -25156,9 +25174,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25156
25174
|
}
|
|
25157
25175
|
return svgString;
|
|
25158
25176
|
}
|
|
25159
|
-
const resolvedPackageVersion = "0.5.
|
|
25177
|
+
const resolvedPackageVersion = "0.5.406";
|
|
25160
25178
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25161
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25179
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.406";
|
|
25162
25180
|
const roundParityValue = (value) => {
|
|
25163
25181
|
if (typeof value !== "number") return value;
|
|
25164
25182
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25972,7 +25990,7 @@ class PixldocsRenderer {
|
|
|
25972
25990
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25973
25991
|
}
|
|
25974
25992
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25975
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
25993
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-r257koLL.cjs"));
|
|
25976
25994
|
const prepared = preparePagesForExport(
|
|
25977
25995
|
cloned.pages,
|
|
25978
25996
|
canvasWidth,
|
|
@@ -28292,7 +28310,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28292
28310
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28293
28311
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28294
28312
|
try {
|
|
28295
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
28313
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-r257koLL.cjs"));
|
|
28296
28314
|
try {
|
|
28297
28315
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28298
28316
|
} catch {
|
|
@@ -28689,4 +28707,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
28689
28707
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
28690
28708
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
28691
28709
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
28692
|
-
//# sourceMappingURL=index-
|
|
28710
|
+
//# sourceMappingURL=index-D5UViOKA.cjs.map
|