@pixldocs/canvas-renderer 0.5.257 → 0.5.258
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-bZ7LCfUb.js → index-DZ8rlYH6.js} +12 -47
- package/dist/index-DZ8rlYH6.js.map +1 -0
- package/dist/{index-oOI_SYzS.cjs → index-Dy4oD06S.cjs} +12 -47
- package/dist/index-Dy4oD06S.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-tca2qSZa.js → vectorPdfExport-BrLwOuTP.js} +4 -4
- package/dist/{vectorPdfExport-tca2qSZa.js.map → vectorPdfExport-BrLwOuTP.js.map} +1 -1
- package/dist/{vectorPdfExport-EysRHv2h.cjs → vectorPdfExport-rgv8yUj2.cjs} +4 -4
- package/dist/{vectorPdfExport-EysRHv2h.cjs.map → vectorPdfExport-rgv8yUj2.cjs.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
|
@@ -11181,48 +11181,13 @@ const PageCanvas = forwardRef(
|
|
|
11181
11181
|
}
|
|
11182
11182
|
applyWarpAwareSelectionBorders(selection);
|
|
11183
11183
|
try {
|
|
11184
|
-
|
|
11185
|
-
|
|
11186
|
-
|
|
11187
|
-
|
|
11188
|
-
|
|
11189
|
-
|
|
11190
|
-
|
|
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);
|
|
11184
|
+
selection.setControlsVisibility({
|
|
11185
|
+
ml: false,
|
|
11186
|
+
mr: false,
|
|
11187
|
+
mt: false,
|
|
11188
|
+
mb: false
|
|
11189
|
+
});
|
|
11190
|
+
} catch {
|
|
11226
11191
|
}
|
|
11227
11192
|
}, []);
|
|
11228
11193
|
const pageBoundsOptions = useMemo(
|
|
@@ -23572,9 +23537,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
23572
23537
|
}
|
|
23573
23538
|
return svgString;
|
|
23574
23539
|
}
|
|
23575
|
-
const resolvedPackageVersion = "0.5.
|
|
23540
|
+
const resolvedPackageVersion = "0.5.258";
|
|
23576
23541
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
23577
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
23542
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.258";
|
|
23578
23543
|
const roundParityValue = (value) => {
|
|
23579
23544
|
if (typeof value !== "number") return value;
|
|
23580
23545
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -24388,7 +24353,7 @@ class PixldocsRenderer {
|
|
|
24388
24353
|
await this.waitForCanvasScene(container, cloned, i);
|
|
24389
24354
|
}
|
|
24390
24355
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
24391
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
24356
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-BrLwOuTP.js");
|
|
24392
24357
|
const prepared = preparePagesForExport(
|
|
24393
24358
|
cloned.pages,
|
|
24394
24359
|
canvasWidth,
|
|
@@ -26708,7 +26673,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
26708
26673
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
26709
26674
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
26710
26675
|
try {
|
|
26711
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
26676
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-BrLwOuTP.js");
|
|
26712
26677
|
try {
|
|
26713
26678
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
26714
26679
|
} catch {
|
|
@@ -27108,4 +27073,4 @@ export {
|
|
|
27108
27073
|
buildTeaserBlurFlatKeys as y,
|
|
27109
27074
|
collectFontDescriptorsFromConfig as z
|
|
27110
27075
|
};
|
|
27111
|
-
//# sourceMappingURL=index-
|
|
27076
|
+
//# sourceMappingURL=index-DZ8rlYH6.js.map
|