@pixldocs/canvas-renderer 0.5.417 → 0.5.418
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-BcP1ewWF.js → index-DUYPnOdV.js} +7 -6
- package/dist/index-DUYPnOdV.js.map +1 -0
- package/dist/{index-DejgwlrF.cjs → index-VBLDPtqv.cjs} +7 -6
- package/dist/index-VBLDPtqv.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-zoXsqwIv.cjs → vectorPdfExport-D0hfLxQU.cjs} +4 -4
- package/dist/{vectorPdfExport-zoXsqwIv.cjs.map → vectorPdfExport-D0hfLxQU.cjs.map} +1 -1
- package/dist/{vectorPdfExport-DU4hhl6N.js → vectorPdfExport-oncH5akF.js} +4 -4
- package/dist/{vectorPdfExport-DU4hhl6N.js.map → vectorPdfExport-oncH5akF.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BcP1ewWF.js.map +0 -1
- package/dist/index-DejgwlrF.cjs.map +0 -1
|
@@ -14616,7 +14616,8 @@ const PageCanvas = react.forwardRef(
|
|
|
14616
14616
|
const childMatrix = childObj.calcOwnMatrix();
|
|
14617
14617
|
const worldMatrix = fabric__namespace.util.multiplyTransformMatrices(selectionMatrix, childMatrix);
|
|
14618
14618
|
const live = fabric__namespace.util.qrDecompose(worldMatrix);
|
|
14619
|
-
childObj.
|
|
14619
|
+
const childOrigLocalAngle = Number.isFinite(childObj.__asLiveOrigAngle) ? childObj.__asLiveOrigAngle : childObj.angle ?? 0;
|
|
14620
|
+
childObj.__asLiveWorldAngle = (obj.angle ?? 0) + childOrigLocalAngle;
|
|
14620
14621
|
childObj.__asLiveWorldCenterX = live.translateX;
|
|
14621
14622
|
childObj.__asLiveWorldCenterY = live.translateY;
|
|
14622
14623
|
childObj.__asLiveParentWorldAngle = obj.angle ?? 0;
|
|
@@ -25563,9 +25564,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25563
25564
|
}
|
|
25564
25565
|
return svgString;
|
|
25565
25566
|
}
|
|
25566
|
-
const resolvedPackageVersion = "0.5.
|
|
25567
|
+
const resolvedPackageVersion = "0.5.418";
|
|
25567
25568
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25568
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25569
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.418";
|
|
25569
25570
|
const roundParityValue = (value) => {
|
|
25570
25571
|
if (typeof value !== "number") return value;
|
|
25571
25572
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26379,7 +26380,7 @@ class PixldocsRenderer {
|
|
|
26379
26380
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26380
26381
|
}
|
|
26381
26382
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26382
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
26383
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-D0hfLxQU.cjs"));
|
|
26383
26384
|
const prepared = preparePagesForExport(
|
|
26384
26385
|
cloned.pages,
|
|
26385
26386
|
canvasWidth,
|
|
@@ -28699,7 +28700,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28699
28700
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28700
28701
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28701
28702
|
try {
|
|
28702
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
28703
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-D0hfLxQU.cjs"));
|
|
28703
28704
|
try {
|
|
28704
28705
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28705
28706
|
} catch {
|
|
@@ -29096,4 +29097,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
29096
29097
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
29097
29098
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
29098
29099
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
29099
|
-
//# sourceMappingURL=index-
|
|
29100
|
+
//# sourceMappingURL=index-VBLDPtqv.cjs.map
|