Rename canvas size methods and labels to output area

Refactored method and variable names from 'canvas size' to 'output area size' across multiple files for clarity. Updated UI labels and related function calls to reflect this terminology change.
This commit is contained in:
Dariusz L
2025-06-26 18:06:40 +02:00
parent 8b9edddc6a
commit dd6a9dfc85
5 changed files with 113 additions and 129 deletions

View File

@@ -406,7 +406,7 @@ async function createCanvasWidget(node, widget, app) {
$el("div.painter-separator"),
$el("div.painter-button-group", {}, [
$el("button.painter-button", {
textContent: "Canvas Size",
textContent: "Output Area Size",
onclick: () => {
const dialog = $el("div.painter-dialog", {
style: {
@@ -479,7 +479,7 @@ async function createCanvasWidget(node, widget, app) {
document.getElementById('confirm-size').onclick = () => {
const width = parseInt(document.getElementById('canvas-width').value) || canvas.width;
const height = parseInt(document.getElementById('canvas-height').value) || canvas.height;
canvas.updateCanvasSize(width, height);
canvas.updateOutputAreaSize(width, height);
document.body.removeChild(dialog);
};