@pixldocs/canvas-renderer 0.5.412 → 0.5.414
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-Df-U5xVu.cjs → index-CzyHWKIb.cjs} +10 -14
- package/dist/index-CzyHWKIb.cjs.map +1 -0
- package/dist/{index-CVR5UGAs.js → index-DMA8h19g.js} +10 -14
- package/dist/index-DMA8h19g.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-pDEJNOs8.js → vectorPdfExport-DaYe9eLB.js} +4 -4
- package/dist/{vectorPdfExport-pDEJNOs8.js.map → vectorPdfExport-DaYe9eLB.js.map} +1 -1
- package/dist/{vectorPdfExport-CywX_PY0.cjs → vectorPdfExport-f5bQ2qJF.cjs} +4 -4
- package/dist/{vectorPdfExport-CywX_PY0.cjs.map → vectorPdfExport-f5bQ2qJF.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-CVR5UGAs.js.map +0 -1
- package/dist/index-Df-U5xVu.cjs.map +0 -1
|
@@ -14646,13 +14646,8 @@ const PageCanvas = react.forwardRef(
|
|
|
14646
14646
|
const asRect0 = obj.getBoundingRect();
|
|
14647
14647
|
let didReflowTextChild = false;
|
|
14648
14648
|
for (const child of obj.getObjects()) {
|
|
14649
|
-
|
|
14650
|
-
|
|
14651
|
-
if (isRotatedChild) {
|
|
14652
|
-
if (child.__asLiveOrigAngle == null) {
|
|
14653
|
-
child.__asLiveOrigAngle = child.angle ?? 0;
|
|
14654
|
-
}
|
|
14655
|
-
continue;
|
|
14649
|
+
if (child.__asLiveOrigAngle == null) {
|
|
14650
|
+
child.__asLiveOrigAngle = child.angle ?? 0;
|
|
14656
14651
|
}
|
|
14657
14652
|
if (child instanceof fabric__namespace.Group && (child.__cropGroup || ((_k = child._ct) == null ? void 0 : _k.isCropGroup))) {
|
|
14658
14653
|
const ct = child.__cropData;
|
|
@@ -16273,7 +16268,8 @@ const PageCanvas = react.forwardRef(
|
|
|
16273
16268
|
const isRotatedImg = Math.min(normAng, 360 - normAng) > 0.5;
|
|
16274
16269
|
if (isRotatedImg && activeObj instanceof fabric__namespace.ActiveSelection) {
|
|
16275
16270
|
try {
|
|
16276
|
-
const cleanAngleI =
|
|
16271
|
+
const cleanAngleI = childLocalAngleSrc;
|
|
16272
|
+
const worldAngleI = (activeObj.angle ?? 0) + childLocalAngleSrc;
|
|
16277
16273
|
const cleanW = Math.max(1, Number(elementUpdate.width ?? finalWidth));
|
|
16278
16274
|
const cleanH = Math.max(1, Number(elementUpdate.height ?? finalHeight));
|
|
16279
16275
|
const cx = decomposed.translateX ?? absoluteLeft + cleanW / 2;
|
|
@@ -16293,7 +16289,7 @@ const PageCanvas = react.forwardRef(
|
|
|
16293
16289
|
elementUpdate.transformMatrix = fabric__namespace.util.composeMatrix({
|
|
16294
16290
|
translateX: cx,
|
|
16295
16291
|
translateY: cy,
|
|
16296
|
-
angle:
|
|
16292
|
+
angle: worldAngleI,
|
|
16297
16293
|
scaleX: 1,
|
|
16298
16294
|
scaleY: 1,
|
|
16299
16295
|
skewX: 0,
|
|
@@ -25539,9 +25535,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25539
25535
|
}
|
|
25540
25536
|
return svgString;
|
|
25541
25537
|
}
|
|
25542
|
-
const resolvedPackageVersion = "0.5.
|
|
25538
|
+
const resolvedPackageVersion = "0.5.414";
|
|
25543
25539
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25544
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25540
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.414";
|
|
25545
25541
|
const roundParityValue = (value) => {
|
|
25546
25542
|
if (typeof value !== "number") return value;
|
|
25547
25543
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26355,7 +26351,7 @@ class PixldocsRenderer {
|
|
|
26355
26351
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26356
26352
|
}
|
|
26357
26353
|
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-
|
|
26354
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-f5bQ2qJF.cjs"));
|
|
26359
26355
|
const prepared = preparePagesForExport(
|
|
26360
26356
|
cloned.pages,
|
|
26361
26357
|
canvasWidth,
|
|
@@ -28675,7 +28671,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28675
28671
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28676
28672
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28677
28673
|
try {
|
|
28678
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
28674
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-f5bQ2qJF.cjs"));
|
|
28679
28675
|
try {
|
|
28680
28676
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28681
28677
|
} catch {
|
|
@@ -29072,4 +29068,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
29072
29068
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
29073
29069
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
29074
29070
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
29075
|
-
//# sourceMappingURL=index-
|
|
29071
|
+
//# sourceMappingURL=index-CzyHWKIb.cjs.map
|