@league-of-foundry-developers/foundry-vtt-types 13.346.0-beta.20250705064131 → 13.346.0-beta.20250705112003
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/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
3
3
|
"name": "@league-of-foundry-developers/foundry-vtt-types",
|
4
|
-
"version": "13.346.0-beta.
|
4
|
+
"version": "13.346.0-beta.20250705112003",
|
5
5
|
"description": "TypeScript type definitions for Foundry VTT",
|
6
6
|
"type": "module",
|
7
7
|
"types": "./src/index.d.mts",
|
@@ -693,7 +693,7 @@ declare class Token extends PlaceableObject<TokenDocument.Implementation> {
|
|
693
693
|
* @returns The job of the movement pathfinder
|
694
694
|
*/
|
695
695
|
findMovementPath(
|
696
|
-
waypoints: Token.FindMovementPathWaypoint,
|
696
|
+
waypoints: Token.FindMovementPathWaypoint[],
|
697
697
|
options?: Token.FindMovementPathOptions,
|
698
698
|
): Token.FindMovementPathJob;
|
699
699
|
|
@@ -1453,93 +1453,94 @@ declare namespace Token {
|
|
1453
1453
|
* The top-left x-coordinate in pixels (integer).
|
1454
1454
|
* @defaultValue the previous or source x-coordinate.
|
1455
1455
|
*/
|
1456
|
-
x
|
1456
|
+
x?: number | undefined;
|
1457
1457
|
|
1458
1458
|
/**
|
1459
1459
|
* The top-left y-coordinate in pixels (integer).
|
1460
1460
|
* @defaultValue the previous or source y-coordinate.
|
1461
1461
|
*/
|
1462
|
-
y
|
1462
|
+
y?: number | undefined;
|
1463
1463
|
|
1464
1464
|
/**
|
1465
1465
|
* The elevation in grid units.
|
1466
1466
|
* @defaultValue the previous or source elevation.
|
1467
1467
|
*/
|
1468
|
-
elevation
|
1468
|
+
elevation?: number | undefined;
|
1469
1469
|
|
1470
1470
|
/**
|
1471
1471
|
* The width in grid spaces (positive).
|
1472
1472
|
* @defaultValue the previous or source width.
|
1473
1473
|
*/
|
1474
|
-
width
|
1474
|
+
width?: number | undefined;
|
1475
1475
|
|
1476
1476
|
/**
|
1477
1477
|
* The height in grid spaces (positive).
|
1478
1478
|
* @defaultValue the previous or source height.
|
1479
1479
|
*/
|
1480
|
-
height
|
1480
|
+
height?: number | undefined;
|
1481
1481
|
|
1482
1482
|
/**
|
1483
1483
|
* The shape type (see {@link CONST.TOKEN_SHAPES}).
|
1484
1484
|
* @defaultValue the previous or source shape.
|
1485
1485
|
*/
|
1486
|
-
shape
|
1486
|
+
shape?: CONST.TOKEN_SHAPES | undefined;
|
1487
1487
|
|
1488
1488
|
/**
|
1489
1489
|
* The movement action from the previous to this waypoint.
|
1490
1490
|
*/
|
1491
|
-
action
|
1491
|
+
action?: string | undefined;
|
1492
1492
|
|
1493
1493
|
/**
|
1494
1494
|
* Was this waypoint snapped to the grid?
|
1495
1495
|
* @defaultValue `false`.
|
1496
1496
|
*/
|
1497
|
-
snapped
|
1497
|
+
snapped?: boolean | undefined;
|
1498
1498
|
|
1499
1499
|
/**
|
1500
1500
|
* Was this waypoint explicitly placed by the user?
|
1501
1501
|
* @defaultValue `false`.
|
1502
1502
|
*/
|
1503
|
-
explicit
|
1503
|
+
explicit?: boolean | undefined;
|
1504
1504
|
|
1505
1505
|
/**
|
1506
1506
|
* Is this waypoint a checkpoint?
|
1507
1507
|
* @defaultValue `false`.
|
1508
1508
|
*/
|
1509
|
-
checkpoint
|
1509
|
+
checkpoint?: boolean | undefined;
|
1510
1510
|
}
|
1511
1511
|
|
1512
1512
|
interface FindMovementPathOptions {
|
1513
1513
|
/**
|
1514
1514
|
* Find a preview path?
|
1515
|
-
* @defaultValue `false
|
1515
|
+
* @defaultValue `false`
|
1516
1516
|
*/
|
1517
|
-
preview
|
1517
|
+
preview?: boolean | undefined;
|
1518
1518
|
|
1519
1519
|
/**
|
1520
1520
|
* Ignore walls?
|
1521
|
-
* @defaultValue `false
|
1521
|
+
* @defaultValue `false`
|
1522
1522
|
*/
|
1523
|
-
ignoreWalls
|
1523
|
+
ignoreWalls?: boolean | undefined;
|
1524
1524
|
|
1525
1525
|
/**
|
1526
1526
|
* Ignore cost?
|
1527
|
-
* @defaultValue `false
|
1527
|
+
* @defaultValue `false`
|
1528
1528
|
*/
|
1529
|
-
ignoreCost
|
1529
|
+
ignoreCost?: boolean | undefined;
|
1530
1530
|
|
1531
1531
|
/**
|
1532
1532
|
* Consider movement history? If true, uses the current movement history.
|
1533
1533
|
* If waypoints are passed, use those as the history.
|
1534
|
-
* @defaultValue `false
|
1534
|
+
* @defaultValue `false`
|
1535
1535
|
*/
|
1536
|
-
history
|
1536
|
+
history?: boolean | TokenDocument.MeasuredMovementWaypoint[] | undefined;
|
1537
1537
|
|
1538
1538
|
/**
|
1539
1539
|
* Unless the path can be found instantly, delay the start of the pathfinding
|
1540
|
-
* computation by this number of milliseconds.
|
1540
|
+
* computation by this number of milliseconds.
|
1541
|
+
* @defaultValue `0`
|
1541
1542
|
*/
|
1542
|
-
delay
|
1543
|
+
delay?: number | undefined;
|
1543
1544
|
}
|
1544
1545
|
|
1545
1546
|
interface FindMovementPathJob {
|