ATI coordinates

This commit is contained in:
siraxe
2025-10-17 16:59:39 +01:00
parent 3f13ed91a5
commit 7c72ca796f
9 changed files with 673 additions and 29 deletions
+3 -3
View File
@@ -26,16 +26,16 @@ export class NodeSizeManager {
buttonBarHeight: options.buttonBarHeight || (LiteGraph.NODE_WIDGET_HEIGHT || 30),
// === CANVAS DIMENSIONS ===
canvasWidth: options.canvasWidth || 600,
canvasWidth: options.canvasWidth || 640,
canvasHeight: options.canvasHeight || 480,
canvasExtraWidth: options.canvasExtraWidth || 45,
minCanvasWidth: options.minCanvasWidth || 600,
minCanvasWidth: options.minCanvasWidth || 640,
maxCanvasWidth: options.maxCanvasWidth || 8192,
minCanvasHeight: options.minCanvasHeight || 480,
maxCanvasHeight: options.maxCanvasHeight || 8192,
// === NODE CONSTRAINTS ===
minNodeWidth: options.minNodeWidth || 600,
minNodeWidth: options.minNodeWidth || 640,
minNodeHeight: options.minNodeHeight || 480,
};
@@ -1719,7 +1719,7 @@ app.registerExtension({
this.imgData = imgData;
try {
const size = JSON.stringify(this.imgData).length;
if (size < 600 * 480) { // 1MB limit
if (size < 640 * 480) { // 1MB limit
sessionStorage.setItem(`spline-editor-img-${this.uuid}`, JSON.stringify(this.imgData));
} else {
console.warn("Spline Editor: Image not saved to session storage because it is too large.", size);