@pixldocs/canvas-renderer 0.5.422 → 0.5.423
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-DFjuU6N6.js → index-Bai6zGgn.js} +15 -21
- package/dist/index-Bai6zGgn.js.map +1 -0
- package/dist/{index-yOZRi1jo.cjs → index-DNExytIw.cjs} +15 -21
- package/dist/index-DNExytIw.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-CnV1fqDs.js → vectorPdfExport-CpifSUUc.js} +4 -4
- package/dist/{vectorPdfExport-CnV1fqDs.js.map → vectorPdfExport-CpifSUUc.js.map} +1 -1
- package/dist/{vectorPdfExport-DdBfenYt.cjs → vectorPdfExport-DiLsMhi9.cjs} +4 -4
- package/dist/{vectorPdfExport-DdBfenYt.cjs.map → vectorPdfExport-DiLsMhi9.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-DFjuU6N6.js.map +0 -1
- package/dist/index-yOZRi1jo.cjs.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, _o;
|
|
14358
14358
|
if (!isActiveRef.current) return;
|
|
14359
14359
|
const t = e.target;
|
|
14360
14360
|
if (t) lastResizeScaleTargetRef.current = t;
|
|
@@ -14644,20 +14644,12 @@ const PageCanvas = forwardRef(
|
|
|
14644
14644
|
const asRect0 = obj.getBoundingRect();
|
|
14645
14645
|
let didReflowTextChild = false;
|
|
14646
14646
|
for (const child of obj.getObjects()) {
|
|
14647
|
-
|
|
14648
|
-
|
|
14649
|
-
|
|
14650
|
-
|
|
14651
|
-
const selectionMatrix = obj.calcTransformMatrix();
|
|
14652
|
-
const childMatrix = child.calcOwnMatrix();
|
|
14653
|
-
const worldMatrix = fabric.util.multiplyTransformMatrices(selectionMatrix, childMatrix);
|
|
14654
|
-
const liveWorldAngle = fabric.util.qrDecompose(worldMatrix).angle ?? 0;
|
|
14655
|
-
matrixLocalAngle = liveWorldAngle - (obj.angle ?? 0);
|
|
14656
|
-
} catch {
|
|
14657
|
-
}
|
|
14658
|
-
child.__asLiveOrigAngle = currentLocalAngle ?? matrixLocalAngle ?? 0;
|
|
14647
|
+
const liveGestureKey = `${obj.__pixldocsGroupSelection ?? "selection"}:${corner}:${((_k = groupSelectionTransformStartRef.current) == null ? void 0 : _k.selectionLeft) ?? obj.left ?? 0}:${((_l = groupSelectionTransformStartRef.current) == null ? void 0 : _l.selectionTop) ?? obj.top ?? 0}`;
|
|
14648
|
+
if (child.__asLiveGestureKey !== liveGestureKey) {
|
|
14649
|
+
child.__asLiveGestureKey = liveGestureKey;
|
|
14650
|
+
child.__asLiveOrigAngle = Number.isFinite(child.angle) ? child.angle ?? 0 : 0;
|
|
14659
14651
|
}
|
|
14660
|
-
if (child instanceof fabric.Group && (child.__cropGroup || ((
|
|
14652
|
+
if (child instanceof fabric.Group && (child.__cropGroup || ((_m = child._ct) == null ? void 0 : _m.isCropGroup))) {
|
|
14661
14653
|
const ct = child.__cropData;
|
|
14662
14654
|
if (!ct) continue;
|
|
14663
14655
|
if (child.__asLiveOrigAngle == null) {
|
|
@@ -14826,7 +14818,7 @@ const PageCanvas = forwardRef(
|
|
|
14826
14818
|
child.dirty = true;
|
|
14827
14819
|
didReflowTextChild = true;
|
|
14828
14820
|
}
|
|
14829
|
-
if (isXSide && ((
|
|
14821
|
+
if (isXSide && ((_n = groupShiftReflowSnapshotRef.current) == null ? void 0 : _n.selection) === obj) {
|
|
14830
14822
|
const snap = groupShiftReflowSnapshotRef.current;
|
|
14831
14823
|
const anchorEntry = snap.children[0];
|
|
14832
14824
|
const anchorTopLive = anchorEntry.obj.top ?? 0;
|
|
@@ -14987,7 +14979,7 @@ const PageCanvas = forwardRef(
|
|
|
14987
14979
|
setGuides(gridGuidesForScale.length ? [...scaleGuides, ...gridGuidesForScale] : scaleGuides);
|
|
14988
14980
|
if (drilledGroupIdRef.current) {
|
|
14989
14981
|
try {
|
|
14990
|
-
(
|
|
14982
|
+
(_o = fabricCanvas.__updateDrilledGroupOutline) == null ? void 0 : _o.call(fabricCanvas);
|
|
14991
14983
|
} catch {
|
|
14992
14984
|
}
|
|
14993
14985
|
}
|
|
@@ -15211,6 +15203,7 @@ const PageCanvas = forwardRef(
|
|
|
15211
15203
|
delete child.__asLiveOrigW;
|
|
15212
15204
|
delete child.__asLiveOrigH;
|
|
15213
15205
|
delete child.__asLiveRotSnap;
|
|
15206
|
+
delete child.__asLiveGestureKey;
|
|
15214
15207
|
}
|
|
15215
15208
|
}
|
|
15216
15209
|
} catch {
|
|
@@ -16487,6 +16480,7 @@ const PageCanvas = forwardRef(
|
|
|
16487
16480
|
if (t instanceof fabric.ActiveSelection) {
|
|
16488
16481
|
for (const child of t.getObjects()) {
|
|
16489
16482
|
delete child.__asLiveOrigAngle;
|
|
16483
|
+
delete child.__asLiveGestureKey;
|
|
16490
16484
|
delete child.__asLiveWorldAngle;
|
|
16491
16485
|
delete child.__asLiveWorldCenterX;
|
|
16492
16486
|
delete child.__asLiveWorldCenterY;
|
|
@@ -25564,9 +25558,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25564
25558
|
}
|
|
25565
25559
|
return svgString;
|
|
25566
25560
|
}
|
|
25567
|
-
const resolvedPackageVersion = "0.5.
|
|
25561
|
+
const resolvedPackageVersion = "0.5.423";
|
|
25568
25562
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25569
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25563
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.423";
|
|
25570
25564
|
const roundParityValue = (value) => {
|
|
25571
25565
|
if (typeof value !== "number") return value;
|
|
25572
25566
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26380,7 +26374,7 @@ class PixldocsRenderer {
|
|
|
26380
26374
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26381
26375
|
}
|
|
26382
26376
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26383
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
26377
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CpifSUUc.js");
|
|
26384
26378
|
const prepared = preparePagesForExport(
|
|
26385
26379
|
cloned.pages,
|
|
26386
26380
|
canvasWidth,
|
|
@@ -28700,7 +28694,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28700
28694
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28701
28695
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28702
28696
|
try {
|
|
28703
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
28697
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CpifSUUc.js");
|
|
28704
28698
|
try {
|
|
28705
28699
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28706
28700
|
} catch {
|
|
@@ -29100,4 +29094,4 @@ export {
|
|
|
29100
29094
|
buildTeaserBlurFlatKeys as y,
|
|
29101
29095
|
collectFontDescriptorsFromConfig as z
|
|
29102
29096
|
};
|
|
29103
|
-
//# sourceMappingURL=index-
|
|
29097
|
+
//# sourceMappingURL=index-Bai6zGgn.js.map
|