@pixldocs/canvas-renderer 0.5.377 → 0.5.378
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-iKxOfMVS.js → index-CKwhm9vr.js} +20 -7
- package/dist/index-CKwhm9vr.js.map +1 -0
- package/dist/{index-DFJKBhgU.cjs → index-DHsYlRj5.cjs} +20 -7
- package/dist/index-DHsYlRj5.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-B8ZK-SIt.js → vectorPdfExport-B7K76NIW.js} +4 -4
- package/dist/{vectorPdfExport-B8ZK-SIt.js.map → vectorPdfExport-B7K76NIW.js.map} +1 -1
- package/dist/{vectorPdfExport-DvH_Vhmg.cjs → vectorPdfExport-BShYUaFY.cjs} +4 -4
- package/dist/{vectorPdfExport-DvH_Vhmg.cjs.map → vectorPdfExport-BShYUaFY.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-DFJKBhgU.cjs.map +0 -1
- package/dist/index-iKxOfMVS.js.map +0 -1
|
@@ -11006,7 +11006,7 @@ try {
|
|
|
11006
11006
|
const originalCursorHandler = ControlProto.cursorStyleHandler;
|
|
11007
11007
|
ControlProto.cursorStyleHandler = function(eventData, control, fabricObject) {
|
|
11008
11008
|
const actionName = String(this.actionName ?? (control == null ? void 0 : control.actionName) ?? "");
|
|
11009
|
-
const isRotateHandle = actionName === "rotate" || Math.abs(Number(this.x ?? 0)) < 1e-3 && Math.abs(Number(this.y ?? 0) + 0.5) < 1e-3 && Number(this.offsetY ?? 0) < 0;
|
|
11009
|
+
const isRotateHandle = actionName === "rotate" || Math.abs(Number(this.x ?? (control == null ? void 0 : control.x) ?? 0)) < 1e-3 && Math.abs(Number(this.y ?? (control == null ? void 0 : control.y) ?? 0) + 0.5) < 1e-3 && Number(this.offsetY ?? (control == null ? void 0 : control.offsetY) ?? 0) < 0;
|
|
11010
11010
|
if (isRotateHandle) {
|
|
11011
11011
|
const cursor = getRotateCursor(fabricObject);
|
|
11012
11012
|
try {
|
|
@@ -11018,7 +11018,8 @@ try {
|
|
|
11018
11018
|
}
|
|
11019
11019
|
return cursor;
|
|
11020
11020
|
}
|
|
11021
|
-
const
|
|
11021
|
+
const activeCorner = typeof (fabricObject == null ? void 0 : fabricObject.__corner) === "string" ? fabricObject.__corner : null;
|
|
11022
|
+
const key = activeCorner && baseAngleFor[activeCorner] !== void 0 ? activeCorner : inferControlKey(this) ?? inferControlKey(control);
|
|
11022
11023
|
if (key && baseAngleFor[key] !== void 0) {
|
|
11023
11024
|
return getRotatedCursor(key, fabricObject);
|
|
11024
11025
|
}
|
|
@@ -11068,6 +11069,18 @@ try {
|
|
|
11068
11069
|
const prev = target && target.__corner;
|
|
11069
11070
|
const res = origSet.call(this, e, target);
|
|
11070
11071
|
const next = target && target.__corner;
|
|
11072
|
+
try {
|
|
11073
|
+
const control = next && (target == null ? void 0 : target.controls) ? target.controls[next] : null;
|
|
11074
|
+
const actionName = String((control == null ? void 0 : control.actionName) ?? "");
|
|
11075
|
+
const isRotateHandle = next === "mtr" || actionName === "rotate" || control && Math.abs(Number(control.x ?? 0)) < 1e-3 && Math.abs(Number(control.y ?? 0) + 0.5) < 1e-3 && Number(control.offsetY ?? 0) < 0;
|
|
11076
|
+
const key = typeof next === "string" && baseAngleFor[next] !== void 0 ? next : inferControlKey(control);
|
|
11077
|
+
const cursor = isRotateHandle ? getRotateCursor(target) : key ? getRotatedCursor(key, target) : null;
|
|
11078
|
+
if (cursor) {
|
|
11079
|
+
if (typeof this.setCursor === "function") this.setCursor(cursor);
|
|
11080
|
+
else if (this.upperCanvasEl) this.upperCanvasEl.style.cursor = cursor;
|
|
11081
|
+
}
|
|
11082
|
+
} catch {
|
|
11083
|
+
}
|
|
11071
11084
|
if (prev !== next) {
|
|
11072
11085
|
try {
|
|
11073
11086
|
this.requestRenderAll();
|
|
@@ -24750,9 +24763,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24750
24763
|
}
|
|
24751
24764
|
return svgString;
|
|
24752
24765
|
}
|
|
24753
|
-
const resolvedPackageVersion = "0.5.
|
|
24766
|
+
const resolvedPackageVersion = "0.5.378";
|
|
24754
24767
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24755
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24768
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.378";
|
|
24756
24769
|
const roundParityValue = (value) => {
|
|
24757
24770
|
if (typeof value !== "number") return value;
|
|
24758
24771
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25566,7 +25579,7 @@ class PixldocsRenderer {
|
|
|
25566
25579
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25567
25580
|
}
|
|
25568
25581
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25569
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
25582
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-B7K76NIW.js");
|
|
25570
25583
|
const prepared = preparePagesForExport(
|
|
25571
25584
|
cloned.pages,
|
|
25572
25585
|
canvasWidth,
|
|
@@ -27886,7 +27899,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27886
27899
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27887
27900
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27888
27901
|
try {
|
|
27889
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
27902
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-B7K76NIW.js");
|
|
27890
27903
|
try {
|
|
27891
27904
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27892
27905
|
} catch {
|
|
@@ -28286,4 +28299,4 @@ export {
|
|
|
28286
28299
|
buildTeaserBlurFlatKeys as y,
|
|
28287
28300
|
collectFontDescriptorsFromConfig as z
|
|
28288
28301
|
};
|
|
28289
|
-
//# sourceMappingURL=index-
|
|
28302
|
+
//# sourceMappingURL=index-CKwhm9vr.js.map
|