@pixldocs/canvas-renderer 0.5.255 → 0.5.256
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-5whx8gZE.cjs → index-C1nsxh7P.cjs} +19 -9
- package/dist/index-C1nsxh7P.cjs.map +1 -0
- package/dist/{index-BF-sKPH7.js → index-DdXbqycP.js} +19 -9
- package/dist/index-DdXbqycP.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-BK2ntULQ.cjs → vectorPdfExport-BNa-hQ-e.cjs} +4 -4
- package/dist/{vectorPdfExport-BK2ntULQ.cjs.map → vectorPdfExport-BNa-hQ-e.cjs.map} +1 -1
- package/dist/{vectorPdfExport-DunkNPyo.js → vectorPdfExport-CZHhQLm0.js} +4 -4
- package/dist/{vectorPdfExport-DunkNPyo.js.map → vectorPdfExport-CZHhQLm0.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-5whx8gZE.cjs.map +0 -1
- package/dist/index-BF-sKPH7.js.map +0 -1
|
@@ -7142,10 +7142,20 @@ function applyTextPathControls(textbox) {
|
|
|
7142
7142
|
ctx.stroke();
|
|
7143
7143
|
ctx.restore();
|
|
7144
7144
|
};
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7145
|
+
const radialCursorHandler = (dir) => (_e2, _control, fabricObject) => {
|
|
7146
|
+
var _a3;
|
|
7147
|
+
const baseAngle = dir === "N" || dir === "S" ? 90 : 0;
|
|
7148
|
+
const objAngle = ((_a3 = fabricObject == null ? void 0 : fabricObject.getTotalAngle) == null ? void 0 : _a3.call(fabricObject)) ?? (fabricObject == null ? void 0 : fabricObject.angle) ?? 0;
|
|
7149
|
+
let a = ((baseAngle + objAngle) % 180 + 180) % 180;
|
|
7150
|
+
if (a < 22.5 || a >= 157.5) return "ew-resize";
|
|
7151
|
+
if (a < 67.5) return "nesw-resize";
|
|
7152
|
+
if (a < 112.5) return "ns-resize";
|
|
7153
|
+
return "nwse-resize";
|
|
7154
|
+
};
|
|
7155
|
+
obj.controls.crN = new fabric.Control({ x: 0, y: -0.5, cursorStyleHandler: radialCursorHandler("N"), actionName: "textPath", actionHandler: dragRadius("N"), positionHandler: positionAtRing("N"), render: renderRingHandle });
|
|
7156
|
+
obj.controls.crE = new fabric.Control({ x: 0.5, y: 0, cursorStyleHandler: radialCursorHandler("E"), actionName: "textPath", actionHandler: dragRadius("E"), positionHandler: positionAtRing("E"), render: renderRingHandle });
|
|
7157
|
+
obj.controls.crS = new fabric.Control({ x: 0, y: 0.5, cursorStyleHandler: radialCursorHandler("S"), actionName: "textPath", actionHandler: dragRadius("S"), positionHandler: positionAtRing("S"), render: renderRingHandle });
|
|
7158
|
+
obj.controls.crW = new fabric.Control({ x: -0.5, y: 0, cursorStyleHandler: radialCursorHandler("W"), actionName: "textPath", actionHandler: dragRadius("W"), positionHandler: positionAtRing("W"), render: renderRingHandle });
|
|
7149
7159
|
(_g = obj.setControlVisible) == null ? void 0 : _g.call(obj, "crN", true);
|
|
7150
7160
|
(_h = obj.setControlVisible) == null ? void 0 : _h.call(obj, "crE", true);
|
|
7151
7161
|
(_i = obj.setControlVisible) == null ? void 0 : _i.call(obj, "crS", true);
|
|
@@ -23511,9 +23521,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
23511
23521
|
}
|
|
23512
23522
|
return svgString;
|
|
23513
23523
|
}
|
|
23514
|
-
const resolvedPackageVersion = "0.5.
|
|
23524
|
+
const resolvedPackageVersion = "0.5.256";
|
|
23515
23525
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
23516
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
23526
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.256";
|
|
23517
23527
|
const roundParityValue = (value) => {
|
|
23518
23528
|
if (typeof value !== "number") return value;
|
|
23519
23529
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -24327,7 +24337,7 @@ class PixldocsRenderer {
|
|
|
24327
24337
|
await this.waitForCanvasScene(container, cloned, i);
|
|
24328
24338
|
}
|
|
24329
24339
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
24330
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
24340
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CZHhQLm0.js");
|
|
24331
24341
|
const prepared = preparePagesForExport(
|
|
24332
24342
|
cloned.pages,
|
|
24333
24343
|
canvasWidth,
|
|
@@ -26647,7 +26657,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
26647
26657
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
26648
26658
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
26649
26659
|
try {
|
|
26650
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
26660
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CZHhQLm0.js");
|
|
26651
26661
|
try {
|
|
26652
26662
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
26653
26663
|
} catch {
|
|
@@ -27047,4 +27057,4 @@ export {
|
|
|
27047
27057
|
buildTeaserBlurFlatKeys as y,
|
|
27048
27058
|
collectFontDescriptorsFromConfig as z
|
|
27049
27059
|
};
|
|
27050
|
-
//# sourceMappingURL=index-
|
|
27060
|
+
//# sourceMappingURL=index-DdXbqycP.js.map
|