@pixldocs/canvas-renderer 0.5.257 → 0.5.259
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-oOI_SYzS.cjs → index-CUomvTwt.cjs} +5 -49
- package/dist/index-CUomvTwt.cjs.map +1 -0
- package/dist/{index-bZ7LCfUb.js → index-DhFcz1Sq.js} +5 -49
- package/dist/index-DhFcz1Sq.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-EysRHv2h.cjs → vectorPdfExport-Bbu4wM29.cjs} +4 -4
- package/dist/{vectorPdfExport-EysRHv2h.cjs.map → vectorPdfExport-Bbu4wM29.cjs.map} +1 -1
- package/dist/{vectorPdfExport-tca2qSZa.js → vectorPdfExport-CNA_nPL_.js} +4 -4
- package/dist/{vectorPdfExport-tca2qSZa.js.map → vectorPdfExport-CNA_nPL_.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-bZ7LCfUb.js.map +0 -1
- package/dist/index-oOI_SYzS.cjs.map +0 -1
|
@@ -11180,50 +11180,6 @@ const PageCanvas = forwardRef(
|
|
|
11180
11180
|
}
|
|
11181
11181
|
}
|
|
11182
11182
|
applyWarpAwareSelectionBorders(selection);
|
|
11183
|
-
try {
|
|
11184
|
-
if (members.length >= 2 && Math.abs((selection.angle ?? 0) % 360) < 0.01 && !selection.__pixldocsGroupAngleApplied) {
|
|
11185
|
-
const someBusy = members.some((m) => m.__pdCircleRadiusDrag || m.__pixldocsSectionGroup);
|
|
11186
|
-
if (!someBusy) {
|
|
11187
|
-
const first = ((members[0].angle ?? 0) % 360 + 360) % 360;
|
|
11188
|
-
const EPS = 0.5;
|
|
11189
|
-
const allSame = members.every((m) => {
|
|
11190
|
-
const a = ((m.angle ?? 0) % 360 + 360) % 360;
|
|
11191
|
-
const d = Math.min(Math.abs(a - first), 360 - Math.abs(a - first));
|
|
11192
|
-
return d <= EPS;
|
|
11193
|
-
});
|
|
11194
|
-
if (allSame && first > EPS && first < 360 - EPS) {
|
|
11195
|
-
const worldMatrices = members.map((c) => c.calcTransformMatrix());
|
|
11196
|
-
selection.set({ angle: first });
|
|
11197
|
-
selection.setCoords();
|
|
11198
|
-
const selMatrix = selection.calcTransformMatrix();
|
|
11199
|
-
const invSel = fabric.util.invertTransform(selMatrix);
|
|
11200
|
-
for (let i = 0; i < members.length; i++) {
|
|
11201
|
-
const child = members[i];
|
|
11202
|
-
const rel = fabric.util.multiplyTransformMatrices(invSel, worldMatrices[i]);
|
|
11203
|
-
const d = fabric.util.qrDecompose(rel);
|
|
11204
|
-
child.flipX = false;
|
|
11205
|
-
child.flipY = false;
|
|
11206
|
-
child.set({
|
|
11207
|
-
scaleX: d.scaleX,
|
|
11208
|
-
scaleY: d.scaleY,
|
|
11209
|
-
skewX: d.skewX,
|
|
11210
|
-
skewY: d.skewY,
|
|
11211
|
-
angle: d.angle
|
|
11212
|
-
});
|
|
11213
|
-
child.setPositionByOrigin(
|
|
11214
|
-
new fabric.Point(d.translateX, d.translateY),
|
|
11215
|
-
"center",
|
|
11216
|
-
"center"
|
|
11217
|
-
);
|
|
11218
|
-
child.setCoords();
|
|
11219
|
-
}
|
|
11220
|
-
selection.__pixldocsGroupAngleApplied = first;
|
|
11221
|
-
}
|
|
11222
|
-
}
|
|
11223
|
-
}
|
|
11224
|
-
} catch (err) {
|
|
11225
|
-
console.warn("[group-rotation-align] skipped", err);
|
|
11226
|
-
}
|
|
11227
11183
|
}, []);
|
|
11228
11184
|
const pageBoundsOptions = useMemo(
|
|
11229
11185
|
() => ({ pageContentWidth: canvasWidth, pageContentHeight: canvasHeight }),
|
|
@@ -23572,9 +23528,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
23572
23528
|
}
|
|
23573
23529
|
return svgString;
|
|
23574
23530
|
}
|
|
23575
|
-
const resolvedPackageVersion = "0.5.
|
|
23531
|
+
const resolvedPackageVersion = "0.5.259";
|
|
23576
23532
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
23577
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
23533
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.259";
|
|
23578
23534
|
const roundParityValue = (value) => {
|
|
23579
23535
|
if (typeof value !== "number") return value;
|
|
23580
23536
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -24388,7 +24344,7 @@ class PixldocsRenderer {
|
|
|
24388
24344
|
await this.waitForCanvasScene(container, cloned, i);
|
|
24389
24345
|
}
|
|
24390
24346
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
24391
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
24347
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CNA_nPL_.js");
|
|
24392
24348
|
const prepared = preparePagesForExport(
|
|
24393
24349
|
cloned.pages,
|
|
24394
24350
|
canvasWidth,
|
|
@@ -26708,7 +26664,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
26708
26664
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
26709
26665
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
26710
26666
|
try {
|
|
26711
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
26667
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CNA_nPL_.js");
|
|
26712
26668
|
try {
|
|
26713
26669
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
26714
26670
|
} catch {
|
|
@@ -27108,4 +27064,4 @@ export {
|
|
|
27108
27064
|
buildTeaserBlurFlatKeys as y,
|
|
27109
27065
|
collectFontDescriptorsFromConfig as z
|
|
27110
27066
|
};
|
|
27111
|
-
//# sourceMappingURL=index-
|
|
27067
|
+
//# sourceMappingURL=index-DhFcz1Sq.js.map
|