change default Park Position
This commit is contained in:
@@ -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.
|
||||
- **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!
|
||||
- **spots**: Array of target objects.
|
||||
- **id**: Unique identifier for the dropdown list.
|
||||
|
||||
@@ -197,7 +197,7 @@ async function loadSpots() {
|
||||
const res = await fetch(`web/assets/backgrounds/${currentBg}/spots.json?v=${Date.now()}`);
|
||||
const data = await res.json();
|
||||
let parsedSpots = [];
|
||||
let parkPosition = { x: 0, y: 0 };
|
||||
let parkPosition = { x: 0, y: 80 };
|
||||
|
||||
if (Array.isArray(data)) {
|
||||
parsedSpots = data;
|
||||
|
||||
@@ -251,7 +251,7 @@ async function loadSpots() {
|
||||
}
|
||||
|
||||
let parsedSpots = [];
|
||||
let parkPosition = { x: 0, y: 0 };
|
||||
let parkPosition = { x: 0, y: 80 };
|
||||
|
||||
if (Array.isArray(data)) {
|
||||
parsedSpots = data;
|
||||
|
||||
@@ -416,7 +416,7 @@ async function loadSpots() {
|
||||
const res = await fetch(`web/assets/backgrounds/${currentBg}/spots.json?v=${Date.now()}`);
|
||||
const data = await res.json();
|
||||
let parsedSpots = [];
|
||||
let parkPosition = { x: 0, y: 0 };
|
||||
let parkPosition = { x: 0, y: 80 };
|
||||
|
||||
if (Array.isArray(data)) {
|
||||
parsedSpots = data;
|
||||
|
||||
Reference in New Issue
Block a user