@pixldocs/canvas-renderer 0.5.412 → 0.5.413
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-CVR5UGAs.js → index-BTyRFQIc.js} +8 -7
- package/dist/{index-CVR5UGAs.js.map → index-BTyRFQIc.js.map} +1 -1
- package/dist/{index-Df-U5xVu.cjs → index-xSOFCztI.cjs} +8 -7
- package/dist/{index-Df-U5xVu.cjs.map → index-xSOFCztI.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-CywX_PY0.cjs → vectorPdfExport-2r6G4ALY.cjs} +4 -4
- package/dist/{vectorPdfExport-CywX_PY0.cjs.map → vectorPdfExport-2r6G4ALY.cjs.map} +1 -1
- package/dist/{vectorPdfExport-pDEJNOs8.js → vectorPdfExport-dyKsZkp-.js} +4 -4
- package/dist/{vectorPdfExport-pDEJNOs8.js.map → vectorPdfExport-dyKsZkp-.js.map} +1 -1
- package/package.json +1 -1
|
@@ -16273,7 +16273,8 @@ const PageCanvas = react.forwardRef(
|
|
|
16273
16273
|
const isRotatedImg = Math.min(normAng, 360 - normAng) > 0.5;
|
|
16274
16274
|
if (isRotatedImg && activeObj instanceof fabric__namespace.ActiveSelection) {
|
|
16275
16275
|
try {
|
|
16276
|
-
const cleanAngleI =
|
|
16276
|
+
const cleanAngleI = childLocalAngleSrc;
|
|
16277
|
+
const worldAngleI = (activeObj.angle ?? 0) + childLocalAngleSrc;
|
|
16277
16278
|
const cleanW = Math.max(1, Number(elementUpdate.width ?? finalWidth));
|
|
16278
16279
|
const cleanH = Math.max(1, Number(elementUpdate.height ?? finalHeight));
|
|
16279
16280
|
const cx = decomposed.translateX ?? absoluteLeft + cleanW / 2;
|
|
@@ -16293,7 +16294,7 @@ const PageCanvas = react.forwardRef(
|
|
|
16293
16294
|
elementUpdate.transformMatrix = fabric__namespace.util.composeMatrix({
|
|
16294
16295
|
translateX: cx,
|
|
16295
16296
|
translateY: cy,
|
|
16296
|
-
angle:
|
|
16297
|
+
angle: worldAngleI,
|
|
16297
16298
|
scaleX: 1,
|
|
16298
16299
|
scaleY: 1,
|
|
16299
16300
|
skewX: 0,
|
|
@@ -25539,9 +25540,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25539
25540
|
}
|
|
25540
25541
|
return svgString;
|
|
25541
25542
|
}
|
|
25542
|
-
const resolvedPackageVersion = "0.5.
|
|
25543
|
+
const resolvedPackageVersion = "0.5.413";
|
|
25543
25544
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25544
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25545
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.413";
|
|
25545
25546
|
const roundParityValue = (value) => {
|
|
25546
25547
|
if (typeof value !== "number") return value;
|
|
25547
25548
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26355,7 +26356,7 @@ class PixldocsRenderer {
|
|
|
26355
26356
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26356
26357
|
}
|
|
26357
26358
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26358
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
26359
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-2r6G4ALY.cjs"));
|
|
26359
26360
|
const prepared = preparePagesForExport(
|
|
26360
26361
|
cloned.pages,
|
|
26361
26362
|
canvasWidth,
|
|
@@ -28675,7 +28676,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28675
28676
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28676
28677
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28677
28678
|
try {
|
|
28678
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
28679
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-2r6G4ALY.cjs"));
|
|
28679
28680
|
try {
|
|
28680
28681
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28681
28682
|
} catch {
|
|
@@ -29072,4 +29073,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
29072
29073
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
29073
29074
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
29074
29075
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
29075
|
-
//# sourceMappingURL=index-
|
|
29076
|
+
//# sourceMappingURL=index-xSOFCztI.cjs.map
|