change default Park Position

This commit is contained in:
osiu97
2026-07-08 22:07:58 +02:00
parent 40ff0ca913
commit 0c6f691eb5
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ This file tells the web UI where your letters/targets are located in **physical
} }
``` ```
- **hasAlphabet**: (Optional, boolean) If `true`, this background is used for the "Input Text" feature. The letters in `spots` are used to spell out typed input. - **hasAlphabet**: (Optional, boolean) If `true`, this background is used for the "Input Text" feature. The letters in `spots` are used to spell out typed input.
- **parkPosition**: (Optional, object) Defines a background-specific "Park Position" or resting spot where the arm can go when not actively in use. If omitted, defaults to `{ "x": 0, "y": 0 }`. - **parkPosition**: (Optional, object) Defines a background-specific "Park Position" or resting spot where the arm can go when not actively in use. If omitted, defaults to `{ "x": 0, "y": 80 }`.
- **bounds**: Defines the physical bounding box (in mm) that your background image represents. This automatically adjusts the UI's aspect ratio and coordinate mapping! - **bounds**: Defines the physical bounding box (in mm) that your background image represents. This automatically adjusts the UI's aspect ratio and coordinate mapping!
- **spots**: Array of target objects. - **spots**: Array of target objects.
- **id**: Unique identifier for the dropdown list. - **id**: Unique identifier for the dropdown list.
+1 -1
View File
@@ -197,7 +197,7 @@ async function loadSpots() {
const res = await fetch(`web/assets/backgrounds/${currentBg}/spots.json?v=${Date.now()}`); const res = await fetch(`web/assets/backgrounds/${currentBg}/spots.json?v=${Date.now()}`);
const data = await res.json(); const data = await res.json();
let parsedSpots = []; let parsedSpots = [];
let parkPosition = { x: 0, y: 0 }; let parkPosition = { x: 0, y: 80 };
if (Array.isArray(data)) { if (Array.isArray(data)) {
parsedSpots = data; parsedSpots = data;
+1 -1
View File
@@ -251,7 +251,7 @@ async function loadSpots() {
} }
let parsedSpots = []; let parsedSpots = [];
let parkPosition = { x: 0, y: 0 }; let parkPosition = { x: 0, y: 80 };
if (Array.isArray(data)) { if (Array.isArray(data)) {
parsedSpots = data; parsedSpots = data;
+1 -1
View File
@@ -416,7 +416,7 @@ async function loadSpots() {
const res = await fetch(`web/assets/backgrounds/${currentBg}/spots.json?v=${Date.now()}`); const res = await fetch(`web/assets/backgrounds/${currentBg}/spots.json?v=${Date.now()}`);
const data = await res.json(); const data = await res.json();
let parsedSpots = []; let parsedSpots = [];
let parkPosition = { x: 0, y: 0 }; let parkPosition = { x: 0, y: 80 };
if (Array.isArray(data)) { if (Array.isArray(data)) {
parsedSpots = data; parsedSpots = data;