@pixldocs/canvas-renderer 0.5.419 → 0.5.421
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-7_yV-1gx.cjs → index-CHFRo3xN.cjs} +23 -11
- package/dist/index-CHFRo3xN.cjs.map +1 -0
- package/dist/{index-dbWkHXNX.js → index-DTK00FP2.js} +23 -11
- package/dist/index-DTK00FP2.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-BVOocc4a.js → vectorPdfExport-BehYdYkb.js} +4 -4
- package/dist/{vectorPdfExport-BVOocc4a.js.map → vectorPdfExport-BehYdYkb.js.map} +1 -1
- package/dist/{vectorPdfExport-ftEgzh_b.cjs → vectorPdfExport-CVTsNdX0.cjs} +4 -4
- package/dist/{vectorPdfExport-ftEgzh_b.cjs.map → vectorPdfExport-CVTsNdX0.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-7_yV-1gx.cjs.map +0 -1
- package/dist/index-dbWkHXNX.js.map +0 -1
|
@@ -14354,7 +14354,7 @@ const PageCanvas = forwardRef(
|
|
|
14354
14354
|
fabricCanvas.on("selection:cleared", () => {
|
|
14355
14355
|
});
|
|
14356
14356
|
fabricCanvas.on("object:scaling", (e) => {
|
|
14357
|
-
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
14357
|
+
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
14358
14358
|
if (!isActiveRef.current) return;
|
|
14359
14359
|
const t = e.target;
|
|
14360
14360
|
if (t) lastResizeScaleTargetRef.current = t;
|
|
@@ -14647,9 +14647,12 @@ const PageCanvas = forwardRef(
|
|
|
14647
14647
|
if (child.__asLiveOrigAngle == null) {
|
|
14648
14648
|
const childId = getObjectId(child);
|
|
14649
14649
|
const sourceChild = childId ? elementsRef.current.find((el) => el.id === childId) : void 0;
|
|
14650
|
-
|
|
14650
|
+
const storedWorldAngle = Number.isFinite(sourceChild == null ? void 0 : sourceChild.angle) ? sourceChild.angle ?? 0 : void 0;
|
|
14651
|
+
const logicalGroupId = obj.__pixldocsGroupSelection;
|
|
14652
|
+
const groupWorldAngle = logicalGroupId ? ((_k = groupSelectionTransformStartRef.current) == null ? void 0 : _k.groupId) === logicalGroupId ? groupSelectionTransformStartRef.current.groupAngle : obj.__pixldocsFrozenGroupAngle ?? (obj.angle ?? 0) : 0;
|
|
14653
|
+
child.__asLiveOrigAngle = storedWorldAngle !== void 0 ? storedWorldAngle - groupWorldAngle : child.angle ?? 0;
|
|
14651
14654
|
}
|
|
14652
|
-
if (child instanceof fabric.Group && (child.__cropGroup || ((
|
|
14655
|
+
if (child instanceof fabric.Group && (child.__cropGroup || ((_l = child._ct) == null ? void 0 : _l.isCropGroup))) {
|
|
14653
14656
|
const ct = child.__cropData;
|
|
14654
14657
|
if (!ct) continue;
|
|
14655
14658
|
if (child.__asLiveOrigAngle == null) {
|
|
@@ -14818,7 +14821,7 @@ const PageCanvas = forwardRef(
|
|
|
14818
14821
|
child.dirty = true;
|
|
14819
14822
|
didReflowTextChild = true;
|
|
14820
14823
|
}
|
|
14821
|
-
if (isXSide && ((
|
|
14824
|
+
if (isXSide && ((_m = groupShiftReflowSnapshotRef.current) == null ? void 0 : _m.selection) === obj) {
|
|
14822
14825
|
const snap = groupShiftReflowSnapshotRef.current;
|
|
14823
14826
|
const anchorEntry = snap.children[0];
|
|
14824
14827
|
const anchorTopLive = anchorEntry.obj.top ?? 0;
|
|
@@ -14979,7 +14982,7 @@ const PageCanvas = forwardRef(
|
|
|
14979
14982
|
setGuides(gridGuidesForScale.length ? [...scaleGuides, ...gridGuidesForScale] : scaleGuides);
|
|
14980
14983
|
if (drilledGroupIdRef.current) {
|
|
14981
14984
|
try {
|
|
14982
|
-
(
|
|
14985
|
+
(_n = fabricCanvas.__updateDrilledGroupOutline) == null ? void 0 : _n.call(fabricCanvas);
|
|
14983
14986
|
} catch {
|
|
14984
14987
|
}
|
|
14985
14988
|
}
|
|
@@ -15909,7 +15912,16 @@ const PageCanvas = forwardRef(
|
|
|
15909
15912
|
scaleX: 1,
|
|
15910
15913
|
scaleY: 1,
|
|
15911
15914
|
skewX: 0,
|
|
15912
|
-
skewY: 0
|
|
15915
|
+
skewY: 0,
|
|
15916
|
+
// CRITICAL: restore the child's ORIGINAL local angle (pre-live-preview).
|
|
15917
|
+
// The live preview path mutates obj.angle via qrDecompose(S^-1·R(θ))
|
|
15918
|
+
// to cancel AS shear visually. If we leave that mutated angle on the
|
|
15919
|
+
// object, fabric's AS-discard step bakes (AS.angle + mutatedAngle)
|
|
15920
|
+
// into the standalone image — so the next individual rotation starts
|
|
15921
|
+
// from a wrong base and visibly "snaps back" to the pre-resize angle.
|
|
15922
|
+
// Restoring the original local angle here makes AS-discard bake the
|
|
15923
|
+
// correct world angle (AS.angle + imgChildLocalAngle === worldAngleI).
|
|
15924
|
+
angle: imgChildLocalAngle
|
|
15913
15925
|
});
|
|
15914
15926
|
obj.dirty = true;
|
|
15915
15927
|
obj.setCoords();
|
|
@@ -25547,9 +25559,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25547
25559
|
}
|
|
25548
25560
|
return svgString;
|
|
25549
25561
|
}
|
|
25550
|
-
const resolvedPackageVersion = "0.5.
|
|
25562
|
+
const resolvedPackageVersion = "0.5.421";
|
|
25551
25563
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25552
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25564
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.421";
|
|
25553
25565
|
const roundParityValue = (value) => {
|
|
25554
25566
|
if (typeof value !== "number") return value;
|
|
25555
25567
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26363,7 +26375,7 @@ class PixldocsRenderer {
|
|
|
26363
26375
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26364
26376
|
}
|
|
26365
26377
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26366
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
26378
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-BehYdYkb.js");
|
|
26367
26379
|
const prepared = preparePagesForExport(
|
|
26368
26380
|
cloned.pages,
|
|
26369
26381
|
canvasWidth,
|
|
@@ -28683,7 +28695,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28683
28695
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28684
28696
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28685
28697
|
try {
|
|
28686
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
28698
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-BehYdYkb.js");
|
|
28687
28699
|
try {
|
|
28688
28700
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28689
28701
|
} catch {
|
|
@@ -29083,4 +29095,4 @@ export {
|
|
|
29083
29095
|
buildTeaserBlurFlatKeys as y,
|
|
29084
29096
|
collectFontDescriptorsFromConfig as z
|
|
29085
29097
|
};
|
|
29086
|
-
//# sourceMappingURL=index-
|
|
29098
|
+
//# sourceMappingURL=index-DTK00FP2.js.map
|