illutions 0.32.0 → 0.34.0
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/CHANGELOG.md +247 -209
- package/dist/main.d.ts +324 -176
- package/dist/main.min.cjs +1 -1
- package/dist/main.min.js +1 -1
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { AnyEventObject } from 'xstate';
|
|
2
2
|
import { AnyStateMachine } from 'xstate';
|
|
3
|
+
import { degToRad } from 'three/src/math/MathUtils.js';
|
|
3
4
|
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
|
|
5
|
+
import { radToDeg } from 'three/src/math/MathUtils.js';
|
|
4
6
|
import { ReflectorForSSRPass } from 'three/addons/objects/ReflectorForSSRPass.js';
|
|
5
7
|
import type * as THREE_TYPE from 'three';
|
|
6
8
|
import type * as THREE_WEBGPU_TYPE from 'three/webgpu';
|
|
@@ -59,17 +61,15 @@ export declare interface AnimEvent {
|
|
|
59
61
|
fct: string;
|
|
60
62
|
}
|
|
61
63
|
|
|
62
|
-
/** @event Fired when a numeric
|
|
63
|
-
export declare interface
|
|
64
|
-
type: '
|
|
65
|
-
/** The name of the
|
|
66
|
-
|
|
64
|
+
/** @event Fired when a material color or numeric property animation starts, completes, or is canceled. */
|
|
65
|
+
export declare interface AnimMaterialEvent {
|
|
66
|
+
type: 'Anim_Material_Complete' | 'Anim_Material_Start' | 'Anim_Material_Cancel';
|
|
67
|
+
/** The name of the material whose animation changed state. */
|
|
68
|
+
materialName: string;
|
|
67
69
|
/** The name of the calling method. */
|
|
68
70
|
fct: string;
|
|
69
|
-
/**
|
|
70
|
-
|
|
71
|
-
/** The target value used for the fade operation. */
|
|
72
|
-
value: any;
|
|
71
|
+
/** Snapshot of all animated properties; colors are represented as hex strings. */
|
|
72
|
+
values: Record<string, number | string>;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/**
|
|
@@ -151,11 +151,11 @@ declare class Audio_2 {
|
|
|
151
151
|
* Loads an audio file and plays it automatically when loading is complete.
|
|
152
152
|
* Use this method when no separate `Audio_Loaded` handling is required.
|
|
153
153
|
* @param params - The sound options.
|
|
154
|
-
* @param params.
|
|
154
|
+
* @param params.time - Fade-in duration for this start in seconds. Defaults to 0 (no fade).
|
|
155
155
|
* @param params.ease - GSAP easing for the fade-in. Defaults to linear ('none').
|
|
156
156
|
*/
|
|
157
|
-
loadAndPlay({
|
|
158
|
-
|
|
157
|
+
loadAndPlay({ time, ease, ...params }: {
|
|
158
|
+
time?: number;
|
|
159
159
|
ease?: string;
|
|
160
160
|
} & SoundParams): void;
|
|
161
161
|
/**
|
|
@@ -164,24 +164,24 @@ declare class Audio_2 {
|
|
|
164
164
|
* This method does not wait for an audio file that is still loading.
|
|
165
165
|
* @param params - Sound selection.
|
|
166
166
|
* @param params.name - Loaded sound name.
|
|
167
|
-
* @param params.
|
|
167
|
+
* @param params.time - Fade-in duration in seconds. Defaults to 0 (no fade).
|
|
168
168
|
* @param params.ease - GSAP easing for the fade-in. Defaults to linear ('none').
|
|
169
169
|
*/
|
|
170
|
-
play({ name,
|
|
170
|
+
play({ name, time, ease }: {
|
|
171
171
|
name: string;
|
|
172
|
-
|
|
172
|
+
time?: number;
|
|
173
173
|
ease?: string;
|
|
174
174
|
}): void;
|
|
175
175
|
/**
|
|
176
176
|
* Pauses a playing sound and keeps its position for the next play().
|
|
177
177
|
* @param params - Sound selection and optional fade-out settings.
|
|
178
178
|
* @param params.name - Sound name.
|
|
179
|
-
* @param params.
|
|
179
|
+
* @param params.time - Fade-out duration in seconds. Defaults to 0 (no fade).
|
|
180
180
|
* @param params.ease - GSAP easing for the fade-out. Defaults to linear ('none').
|
|
181
181
|
*/
|
|
182
|
-
pause({ name,
|
|
182
|
+
pause({ name, time, ease }: {
|
|
183
183
|
name: string;
|
|
184
|
-
|
|
184
|
+
time?: number;
|
|
185
185
|
ease?: string;
|
|
186
186
|
}): void;
|
|
187
187
|
/**
|
|
@@ -217,12 +217,12 @@ declare class Audio_2 {
|
|
|
217
217
|
* Stops a playing or paused sound and resets its position, optionally fading out.
|
|
218
218
|
* @param params - Sound selection.
|
|
219
219
|
* @param params.name - Sound name.
|
|
220
|
-
* @param params.
|
|
220
|
+
* @param params.time - Fade-out duration in seconds. Defaults to 0 (no fade).
|
|
221
221
|
* @param params.ease - GSAP easing for the fade-out. Defaults to linear ('none').
|
|
222
222
|
*/
|
|
223
|
-
stop({ name,
|
|
223
|
+
stop({ name, time, ease }: {
|
|
224
224
|
name: string;
|
|
225
|
-
|
|
225
|
+
time?: number;
|
|
226
226
|
ease?: string;
|
|
227
227
|
}): void;
|
|
228
228
|
/**
|
|
@@ -286,6 +286,7 @@ export declare class Cam3D extends Obj3D {
|
|
|
286
286
|
/** Reference to the original target `THREE.Object3D` loaded from the GLTF scene. */
|
|
287
287
|
targetGltf: THREE_TYPE.Object3D | null;
|
|
288
288
|
private readonly tmpVec;
|
|
289
|
+
animVelRotTo(params: Parameters<Obj3D['animVelRotTo']>[0]): void;
|
|
289
290
|
/**
|
|
290
291
|
* Called when a matching GLTF camera is found. Adopts its projection and world transform when the camera types match.
|
|
291
292
|
* @param objGltf - The GLTF `THREE.Camera` object.
|
|
@@ -526,6 +527,9 @@ export declare interface CompsOverlapCfg {
|
|
|
526
527
|
padding: number;
|
|
527
528
|
}
|
|
528
529
|
|
|
530
|
+
/** Coordinate space used for transformations. */
|
|
531
|
+
export declare type CoordinateSpace = 'parent' | 'local' | 'world';
|
|
532
|
+
|
|
529
533
|
/**
|
|
530
534
|
* Controls diagnostic console output.
|
|
531
535
|
* @category Cfg
|
|
@@ -549,6 +553,8 @@ declare type DeepPartial<T> = T extends readonly unknown[] ? T : T extends objec
|
|
|
549
553
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
550
554
|
} : T;
|
|
551
555
|
|
|
556
|
+
export { degToRad }
|
|
557
|
+
|
|
552
558
|
/**
|
|
553
559
|
* Renders the scene and controls post-processing and adaptive performance.
|
|
554
560
|
* @category Core
|
|
@@ -676,7 +682,7 @@ export declare class EnvCtrls {
|
|
|
676
682
|
/** Removes environment lighting and background maps, cancels pending updates, and stops rotation. */
|
|
677
683
|
disable(): void;
|
|
678
684
|
/**
|
|
679
|
-
* Returns a snapshot of environment rotation, intensity, and background blurriness.
|
|
685
|
+
* Returns a snapshot of environment rotation in radians, rotation speed in radians per second, intensity, and background blurriness.
|
|
680
686
|
*/
|
|
681
687
|
get(): Partial<EnvCtrlsCfg>;
|
|
682
688
|
/**
|
|
@@ -687,7 +693,7 @@ export declare class EnvCtrls {
|
|
|
687
693
|
private loadText;
|
|
688
694
|
/**
|
|
689
695
|
* Updates supported environment control values at runtime.
|
|
690
|
-
* @param params - Runtime values to update: rotation speed, intensities, background blurriness or rotation.
|
|
696
|
+
* @param params - Runtime values to update: rotation speed in radians per second, intensities, background blurriness or rotation in radians.
|
|
691
697
|
*/
|
|
692
698
|
set(params: Partial<EnvCtrlsCfg>): void;
|
|
693
699
|
private setEnv;
|
|
@@ -741,7 +747,7 @@ export declare interface EnvCtrlsCfg {
|
|
|
741
747
|
*/
|
|
742
748
|
map: string[];
|
|
743
749
|
/**
|
|
744
|
-
* Environment and background rotation values in
|
|
750
|
+
* Environment and background rotation values in radians.
|
|
745
751
|
* @default { x: 0, y: 0, z: 0 }
|
|
746
752
|
*/
|
|
747
753
|
rotation: {
|
|
@@ -750,7 +756,7 @@ export declare interface EnvCtrlsCfg {
|
|
|
750
756
|
z: number;
|
|
751
757
|
};
|
|
752
758
|
/**
|
|
753
|
-
* Environment and background rotation speed in
|
|
759
|
+
* Environment and background rotation speed in radians per second.
|
|
754
760
|
* @default 0
|
|
755
761
|
*/
|
|
756
762
|
rotationSpeed: number;
|
|
@@ -787,7 +793,7 @@ export declare class Events {
|
|
|
787
793
|
/**
|
|
788
794
|
* Controls what happens after the final animation loop.
|
|
789
795
|
* - `'hold'`: Keeps the action enabled and holds its final pose.
|
|
790
|
-
* - `'fadeOut'`: Fades out over `
|
|
796
|
+
* - `'fadeOut'`: Fades out over `fadeTimeFinish` seconds, or stops immediately when the duration is `0`.
|
|
791
797
|
*/
|
|
792
798
|
export declare type FinishMode = 'hold' | 'fadeOut';
|
|
793
799
|
|
|
@@ -1243,30 +1249,21 @@ export declare class Mesh3D extends Obj3D {
|
|
|
1243
1249
|
reflectivesSSR: THREE_TYPE.Object3D[];
|
|
1244
1250
|
private model;
|
|
1245
1251
|
/**
|
|
1246
|
-
* Animates
|
|
1247
|
-
* @param params -
|
|
1248
|
-
* @param params.
|
|
1249
|
-
* @param params.
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
}): void;
|
|
1257
|
-
/**
|
|
1258
|
-
* Animates the first numeric material property passed for this mesh.
|
|
1259
|
-
* @param params - Animation parameters and the target numeric material property.
|
|
1260
|
-
* @param params.startValue - Starting value. Defaults to the current material value.
|
|
1261
|
-
* @param params.infinite - Whether the animation repeats indefinitely. Default: **false**
|
|
1262
|
-
* @param params.duration - Animation duration in seconds. Default: **0**
|
|
1263
|
-
* @param params.ease - GSAP easing function name. Default: **'power1.inOut'**
|
|
1264
|
-
* @param params.needsUpdate - Requests one material recompilation when the animation starts. Default: **false**
|
|
1252
|
+
* Animates all assigned materials of this mesh, optionally including descendant meshes.
|
|
1253
|
+
* @param params - Numeric and color targets with shared animation settings.
|
|
1254
|
+
* @param params.recursive - Includes descendant meshes. Default: **false**
|
|
1255
|
+
* @param params.infinite - Repeats each animation indefinitely. Default: **false**
|
|
1256
|
+
* @param params.time - Duration in seconds. Default: **0**
|
|
1257
|
+
* @param params.ease - GSAP easing function. Default: **'power1.inOut'**
|
|
1258
|
+
* @param params.needsUpdate - Recompiles materials when animation starts. Default: **false**
|
|
1259
|
+
*
|
|
1260
|
+
* @remarks
|
|
1261
|
+
* Tweens and animation events are managed per material.
|
|
1265
1262
|
*/
|
|
1266
|
-
|
|
1267
|
-
|
|
1263
|
+
animMaterialsTo(params: {
|
|
1264
|
+
recursive?: boolean;
|
|
1268
1265
|
infinite?: boolean;
|
|
1269
|
-
|
|
1266
|
+
time?: number;
|
|
1270
1267
|
ease?: string;
|
|
1271
1268
|
needsUpdate?: boolean;
|
|
1272
1269
|
[key: string]: any;
|
|
@@ -1299,7 +1296,7 @@ export declare class Mesh3D extends Obj3D {
|
|
|
1299
1296
|
* @param properties.recursive - Includes all descendant meshes when true. Default: **false**
|
|
1300
1297
|
* @param properties.needsUpdate - Requests material recompilation after applying the properties. Default: **false**
|
|
1301
1298
|
*/
|
|
1302
|
-
|
|
1299
|
+
setMaterialsProps({ recursive, needsUpdate, ...properties }: {
|
|
1303
1300
|
recursive?: boolean;
|
|
1304
1301
|
needsUpdate?: boolean;
|
|
1305
1302
|
[key: string]: any;
|
|
@@ -1420,23 +1417,31 @@ export declare class Obj3D {
|
|
|
1420
1417
|
* @public
|
|
1421
1418
|
*/
|
|
1422
1419
|
scene: Scene;
|
|
1423
|
-
private
|
|
1424
|
-
private
|
|
1420
|
+
private coordTransl;
|
|
1421
|
+
private coordRot;
|
|
1422
|
+
private readonly tweensVel;
|
|
1423
|
+
private readonly posNdc;
|
|
1424
|
+
private readonly posScreen;
|
|
1425
1425
|
private posScreenLast;
|
|
1426
|
-
private posWorld;
|
|
1426
|
+
private readonly posWorld;
|
|
1427
1427
|
private posWorldLast;
|
|
1428
|
-
private posCamWorld;
|
|
1428
|
+
private readonly posCamWorld;
|
|
1429
1429
|
private posWorldOccl;
|
|
1430
1430
|
private posCamWorldOccl;
|
|
1431
|
-
private
|
|
1432
|
-
private
|
|
1433
|
-
private
|
|
1434
|
-
private
|
|
1431
|
+
private readonly orientWorld;
|
|
1432
|
+
private orientWorldLast;
|
|
1433
|
+
private readonly orientAnglesWorld;
|
|
1434
|
+
private readonly velQuat;
|
|
1435
|
+
private readonly velRotAxis;
|
|
1436
|
+
private readonly velRotWorldToParent;
|
|
1437
|
+
private readonly velTranslFrame;
|
|
1438
|
+
private readonly velTranslWorldToParent;
|
|
1435
1439
|
private inFrustum;
|
|
1436
1440
|
private inFrustumLast;
|
|
1437
|
-
private visibleLast;
|
|
1438
1441
|
private occluded;
|
|
1439
1442
|
private objHidden;
|
|
1443
|
+
private visible;
|
|
1444
|
+
private visibleLast;
|
|
1440
1445
|
private visibleBeforeHidden;
|
|
1441
1446
|
/**
|
|
1442
1447
|
* Subscribes to an object event.
|
|
@@ -1447,11 +1452,90 @@ export declare class Obj3D {
|
|
|
1447
1452
|
addEventListener<TType extends Obj3DEvent['type']>(type: TType, listener: (event: Extract<Obj3DEvent, {
|
|
1448
1453
|
type: TType;
|
|
1449
1454
|
}>) => void): Unsubscribe;
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
+
/**
|
|
1456
|
+
* Animates this object's orientation in radians through {@link Scene.animRotTo}.
|
|
1457
|
+
* @param params - Target orientation and animation settings, without an object parameter.
|
|
1458
|
+
*/
|
|
1459
|
+
animRotTo(params: Omit<Parameters<Scene['animRotTo']>[0], 'obj'>): void;
|
|
1460
|
+
/**
|
|
1461
|
+
* Animates this object's scale through {@link Scene.animScaleTo}.
|
|
1462
|
+
* @param params - Target scale and animation settings, without an object parameter.
|
|
1463
|
+
*/
|
|
1464
|
+
animScaleTo(params: Omit<Parameters<Scene['animScaleTo']>[0], 'obj'>): void;
|
|
1465
|
+
/**
|
|
1466
|
+
* Animates this object's position through {@link Scene.animTranslTo}.
|
|
1467
|
+
* @param params - Target position and animation settings, without an object parameter.
|
|
1468
|
+
*/
|
|
1469
|
+
animTranslTo(params: Omit<Parameters<Scene['animTranslTo']>[0], 'obj'>): void;
|
|
1470
|
+
/**
|
|
1471
|
+
* Animates angular velocity in radians per second. World rotation requires uniformly scaled parents.
|
|
1472
|
+
* @param params - Target angular velocity and animation settings.
|
|
1473
|
+
* @param params.vx - Target velocity around X; omitted axes remain unchanged.
|
|
1474
|
+
* @param params.vy - Target velocity around Y.
|
|
1475
|
+
* @param params.vz - Target velocity around Z.
|
|
1476
|
+
* @param params.space - Coordinate space. Default: **'local'**
|
|
1477
|
+
* @param params.time - Duration in seconds. Default: **0** (immediate).
|
|
1478
|
+
* @param params.ease - GSAP easing. Default: **'none'** (linear).
|
|
1479
|
+
* @remarks
|
|
1480
|
+
* Emits {@link AnimEvent}: `Anim_Start`, `Anim_Complete`, or `Anim_Cancel` when replaced.
|
|
1481
|
+
* Completion means the target velocity is reached; motion continues unless the target is zero.
|
|
1482
|
+
* With `time: 0`, start and completion are emitted immediately.
|
|
1483
|
+
*/
|
|
1484
|
+
animVelRotTo({ vx, vy, vz, space, time, ease }: {
|
|
1485
|
+
vx?: number;
|
|
1486
|
+
vy?: number;
|
|
1487
|
+
vz?: number;
|
|
1488
|
+
space?: CoordinateSpace;
|
|
1489
|
+
time?: number;
|
|
1490
|
+
ease?: string;
|
|
1491
|
+
}): void;
|
|
1492
|
+
/**
|
|
1493
|
+
* Animates additive local scale velocity in scale units per second.
|
|
1494
|
+
* @param params - Target scale velocity and animation settings.
|
|
1495
|
+
* @param params.vx - Target velocity along X; omitted axes remain unchanged.
|
|
1496
|
+
* @param params.vy - Target velocity along Y.
|
|
1497
|
+
* @param params.vz - Target velocity along Z.
|
|
1498
|
+
* @param params.time - Duration in seconds. Default: **0** (immediate).
|
|
1499
|
+
* @param params.ease - GSAP easing. Default: **'none'** (linear).
|
|
1500
|
+
* @remarks
|
|
1501
|
+
* Emits {@link AnimEvent}: `Anim_Start`, `Anim_Complete`, or `Anim_Cancel` when replaced.
|
|
1502
|
+
* Completion means the target velocity is reached; motion continues unless the target is zero.
|
|
1503
|
+
* With `time: 0`, start and completion are emitted immediately.
|
|
1504
|
+
*/
|
|
1505
|
+
animVelScaleTo({ vx, vy, vz, time, ease }: {
|
|
1506
|
+
vx?: number;
|
|
1507
|
+
vy?: number;
|
|
1508
|
+
vz?: number;
|
|
1509
|
+
time?: number;
|
|
1510
|
+
ease?: string;
|
|
1511
|
+
}): void;
|
|
1512
|
+
private animVelTo;
|
|
1513
|
+
/**
|
|
1514
|
+
* Animates translation velocity in coordinate units per second. Parent scaling affects parent and local movement.
|
|
1515
|
+
* @param params - Target translation velocity and animation settings.
|
|
1516
|
+
* @param params.vx - Target velocity along X; omitted axes remain unchanged.
|
|
1517
|
+
* @param params.vy - Target velocity along Y.
|
|
1518
|
+
* @param params.vz - Target velocity along Z.
|
|
1519
|
+
* @param params.space - Coordinate space. Default: **'parent'**
|
|
1520
|
+
* @param params.time - Duration in seconds. Default: **0** (immediate).
|
|
1521
|
+
* @param params.ease - GSAP easing. Default: **'none'** (linear).
|
|
1522
|
+
* @remarks
|
|
1523
|
+
* Emits {@link AnimEvent}: `Anim_Start`, `Anim_Complete`, or `Anim_Cancel` when replaced.
|
|
1524
|
+
* Completion means the target velocity is reached; motion continues unless the target is zero.
|
|
1525
|
+
* With `time: 0`, start and completion are emitted immediately.
|
|
1526
|
+
*/
|
|
1527
|
+
animVelTranslTo({ vx, vy, vz, space, time, ease }: {
|
|
1528
|
+
vx?: number;
|
|
1529
|
+
vy?: number;
|
|
1530
|
+
vz?: number;
|
|
1531
|
+
space?: CoordinateSpace;
|
|
1532
|
+
time?: number;
|
|
1533
|
+
ease?: string;
|
|
1534
|
+
}): void;
|
|
1535
|
+
private checkFrustumVisible;
|
|
1536
|
+
private checkPosOccl;
|
|
1537
|
+
private checkPosScreen;
|
|
1538
|
+
private checkRotWorld;
|
|
1455
1539
|
/**
|
|
1456
1540
|
* Returns the object's screen position in canvas coordinates.
|
|
1457
1541
|
* @param cam3D - Camera used for projection to canvas coordinates.
|
|
@@ -1492,6 +1576,7 @@ export declare class Obj3D {
|
|
|
1492
1576
|
type: TType;
|
|
1493
1577
|
}>) => void): void;
|
|
1494
1578
|
private resetEventState;
|
|
1579
|
+
private updVisible;
|
|
1495
1580
|
}
|
|
1496
1581
|
|
|
1497
1582
|
/** Object events available to registered listeners. */
|
|
@@ -1659,7 +1744,7 @@ export declare interface OrbitCtrlsCfg {
|
|
|
1659
1744
|
*/
|
|
1660
1745
|
load: boolean;
|
|
1661
1746
|
/**
|
|
1662
|
-
* Maximum allowed horizontal orbit angle in
|
|
1747
|
+
* Maximum allowed horizontal orbit angle in radians.
|
|
1663
1748
|
* @default Infinity
|
|
1664
1749
|
*/
|
|
1665
1750
|
maxAzimuthAngle: number;
|
|
@@ -1669,12 +1754,12 @@ export declare interface OrbitCtrlsCfg {
|
|
|
1669
1754
|
*/
|
|
1670
1755
|
maxDistance: number;
|
|
1671
1756
|
/**
|
|
1672
|
-
* Maximum allowed vertical orbit angle in
|
|
1673
|
-
* @default
|
|
1757
|
+
* Maximum allowed vertical orbit angle in radians.
|
|
1758
|
+
* @default Math.PI
|
|
1674
1759
|
*/
|
|
1675
1760
|
maxPolarAngle: number;
|
|
1676
1761
|
/**
|
|
1677
|
-
* Minimum allowed horizontal orbit angle in
|
|
1762
|
+
* Minimum allowed horizontal orbit angle in radians.
|
|
1678
1763
|
* @default -Infinity
|
|
1679
1764
|
*/
|
|
1680
1765
|
minAzimuthAngle: number;
|
|
@@ -1684,7 +1769,7 @@ export declare interface OrbitCtrlsCfg {
|
|
|
1684
1769
|
*/
|
|
1685
1770
|
minDistance: number;
|
|
1686
1771
|
/**
|
|
1687
|
-
* Minimum allowed vertical orbit angle in
|
|
1772
|
+
* Minimum allowed vertical orbit angle in radians.
|
|
1688
1773
|
* @default 0
|
|
1689
1774
|
*/
|
|
1690
1775
|
minPolarAngle: number;
|
|
@@ -1754,6 +1839,8 @@ export declare interface ProgressBarHiddenEvent {
|
|
|
1754
1839
|
type: 'ProgressBar_Hidden';
|
|
1755
1840
|
}
|
|
1756
1841
|
|
|
1842
|
+
export { radToDeg }
|
|
1843
|
+
|
|
1757
1844
|
/**
|
|
1758
1845
|
* Manages collider-based occlusion and pointer picking in a `THREE.Scene`. Collider roles determine which objects block rays, emit pointer events, or remain hidden while participating in raycasting.
|
|
1759
1846
|
* @category Core
|
|
@@ -2065,170 +2152,217 @@ export declare class Scene {
|
|
|
2065
2152
|
private readonly cam3D;
|
|
2066
2153
|
private readonly events;
|
|
2067
2154
|
private readonly objs3D;
|
|
2068
|
-
private readonly
|
|
2155
|
+
private readonly tweensObj;
|
|
2156
|
+
private readonly tweensMtrl;
|
|
2157
|
+
private readonly mtrls;
|
|
2158
|
+
/** The underlying Three.js scene. */
|
|
2159
|
+
readonly obj: THREE_TYPE.Scene;
|
|
2069
2160
|
private ambientLight;
|
|
2070
2161
|
private hemisphereLight;
|
|
2071
|
-
/**
|
|
2072
|
-
* The underlying Three.js scene.
|
|
2073
|
-
*/
|
|
2074
|
-
readonly obj: THREE_TYPE.Scene;
|
|
2075
2162
|
/**
|
|
2076
2163
|
* Moves the camera along a curved path, optionally turning it toward a new target.
|
|
2077
2164
|
* @param params - Camera movement settings.
|
|
2078
2165
|
* @param params.camTarget - Destination position or object.
|
|
2079
2166
|
* @param params.aimTarget - Position or object to look at while moving.
|
|
2080
2167
|
* @param params.radiusOut - Outward curve radius. Default: **1**
|
|
2081
|
-
* @param params.
|
|
2168
|
+
* @param params.time - Duration in seconds. Default: **2**
|
|
2082
2169
|
* @param params.ease - GSAP easing function. Default: **'power1.inOut'**
|
|
2083
2170
|
*
|
|
2084
2171
|
* @remarks
|
|
2085
2172
|
* Emits {@link AnimEvent} when the animation starts and completes.
|
|
2086
2173
|
*/
|
|
2087
|
-
animCamCurveTo({ camTarget, aimTarget, radiusOut,
|
|
2174
|
+
animCamCurveTo({ camTarget, aimTarget, radiusOut, time, ease }: {
|
|
2088
2175
|
camTarget: THREE_TYPE.Vector3 | string | Obj3D;
|
|
2089
2176
|
aimTarget?: THREE_TYPE.Vector3 | string | Obj3D;
|
|
2090
2177
|
radiusOut?: number;
|
|
2091
|
-
|
|
2178
|
+
time?: number;
|
|
2092
2179
|
ease?: string;
|
|
2093
2180
|
}): void;
|
|
2094
2181
|
/**
|
|
2095
2182
|
* Moves a perspective camera to frame an object while looking at it. Only the object's own geometry is used; child objects are excluded.
|
|
2096
2183
|
* @param params - Camera movement settings.
|
|
2097
2184
|
* @param params.target - Object or scene object name to frame.
|
|
2098
|
-
* @param params.
|
|
2185
|
+
* @param params.time - Duration in seconds. Default: **1**
|
|
2099
2186
|
* @param params.ease - GSAP easing function. Default: **'power2.inOut'**
|
|
2100
2187
|
* @param params.dist - Multiplier for the calculated camera distance. Default: **1.25**
|
|
2101
2188
|
*
|
|
2102
2189
|
* @remarks
|
|
2103
2190
|
* Emits {@link AnimEvent} when the animation starts and completes.
|
|
2104
2191
|
*/
|
|
2105
|
-
animCamTo({ target,
|
|
2192
|
+
animCamTo({ target, time, ease, dist }: {
|
|
2106
2193
|
target: string | Obj3D;
|
|
2107
|
-
|
|
2194
|
+
time?: number;
|
|
2108
2195
|
ease?: string;
|
|
2109
2196
|
dist?: number;
|
|
2110
2197
|
}): void;
|
|
2111
2198
|
/**
|
|
2112
|
-
* Animates
|
|
2113
|
-
* @param params - Target
|
|
2114
|
-
* @param params.
|
|
2115
|
-
* @param params.
|
|
2199
|
+
* Animates numeric and color properties of a named material from their current values.
|
|
2200
|
+
* @param params - Target values and shared animation settings.
|
|
2201
|
+
* @param params.name - Material name.
|
|
2202
|
+
* @param params.infinite - Repeats the animation indefinitely. Default: **false**
|
|
2203
|
+
* @param params.time - Duration in seconds. Default: **0**
|
|
2116
2204
|
* @param params.ease - GSAP easing function. Default: **'power1.inOut'**
|
|
2205
|
+
* @param params.needsUpdate - Recompiles the material when animation starts. Default: **false**
|
|
2117
2206
|
*
|
|
2118
2207
|
* @remarks
|
|
2119
|
-
* Colors may be strings, numbers, or `THREE.Color` values.
|
|
2208
|
+
* Colors may be strings, numbers, or `THREE.Color` values. All properties share one tween.
|
|
2209
|
+
* Unknown materials, unknown easing functions, and empty property lists leave a running animation unchanged.
|
|
2210
|
+
* Property names and target values are the caller's responsibility. Only numeric and color properties are animated.
|
|
2211
|
+
* A new call cancels the entire previous animation of the same material.
|
|
2212
|
+
* Emits {@link AnimMaterialEvent} once on start, completion, or cancellation with all current values.
|
|
2120
2213
|
*/
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2214
|
+
animMaterialTo({ name, infinite, time, ease, needsUpdate, ...props }: {
|
|
2215
|
+
name: string;
|
|
2216
|
+
infinite?: boolean;
|
|
2217
|
+
time?: number;
|
|
2124
2218
|
ease?: string;
|
|
2125
|
-
|
|
2126
|
-
[key: string]:
|
|
2219
|
+
needsUpdate?: boolean;
|
|
2220
|
+
[key: string]: any;
|
|
2127
2221
|
}): void;
|
|
2128
2222
|
/**
|
|
2129
|
-
* Animates
|
|
2130
|
-
* @param params - Target
|
|
2131
|
-
* @param params.
|
|
2132
|
-
* @param params.
|
|
2133
|
-
* @param params.infinite - Repeats
|
|
2134
|
-
* @param params.
|
|
2223
|
+
* Animates all assigned materials of an object, optionally including descendant meshes.
|
|
2224
|
+
* @param params - Target material values and shared animation settings.
|
|
2225
|
+
* @param params.obj - Scene object name or `Mesh3D` component.
|
|
2226
|
+
* @param params.recursive - Includes descendant meshes. Default: **false**
|
|
2227
|
+
* @param params.infinite - Repeats each animation indefinitely. Default: **false**
|
|
2228
|
+
* @param params.time - Duration in seconds. Default: **0**
|
|
2135
2229
|
* @param params.ease - GSAP easing function. Default: **'power1.inOut'**
|
|
2136
|
-
* @param params.needsUpdate - Recompiles
|
|
2230
|
+
* @param params.needsUpdate - Recompiles materials when animation starts. Default: **false**
|
|
2137
2231
|
*
|
|
2138
2232
|
* @remarks
|
|
2139
|
-
*
|
|
2233
|
+
* Each shared material is animated once. Tweens and {@link AnimMaterialEvent} are managed per material.
|
|
2140
2234
|
*/
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2235
|
+
animMaterialsTo({ obj, recursive, ...params }: {
|
|
2236
|
+
obj: string | Mesh3D;
|
|
2237
|
+
recursive?: boolean;
|
|
2144
2238
|
infinite?: boolean;
|
|
2145
|
-
|
|
2239
|
+
time?: number;
|
|
2146
2240
|
ease?: string;
|
|
2147
2241
|
needsUpdate?: boolean;
|
|
2148
2242
|
[key: string]: any;
|
|
2149
2243
|
}): void;
|
|
2150
2244
|
/**
|
|
2151
|
-
* Animates
|
|
2152
|
-
* @param params - Target object and
|
|
2245
|
+
* Animates orientation from its current value using Euler angles in radians.
|
|
2246
|
+
* @param params - Target object, orientation, and animation settings.
|
|
2153
2247
|
* @param params.obj - Scene object name or component, including cameras.
|
|
2154
|
-
* @param params.
|
|
2155
|
-
* @param params.
|
|
2156
|
-
* @param params.
|
|
2157
|
-
* @param params.
|
|
2248
|
+
* @param params.x - Target X angle in radians; omitted axes keep their starting target angles.
|
|
2249
|
+
* @param params.y - Target Y angle in radians.
|
|
2250
|
+
* @param params.z - Target Z angle in radians.
|
|
2251
|
+
* @param params.path - Rotation interpolation. Default: **'euler'**; **'quat'** takes the shortest orientation path.
|
|
2252
|
+
* @param params.order - Euler order for interpreting angles in both paths. Default: **'XYZ'**
|
|
2253
|
+
* @param params.space - Orientation space. Default: **'parent'**
|
|
2254
|
+
* @param params.time - Duration in seconds. Default: **1**. A value of 0 applies the values immediately.
|
|
2158
2255
|
* @param params.ease - GSAP easing function. Default: **'power2.inOut'**
|
|
2159
|
-
*
|
|
2160
2256
|
* @remarks
|
|
2161
|
-
*
|
|
2162
|
-
*
|
|
2257
|
+
* Euler interpolation supports full turns. Each call starts from the current orientation without retaining previous turns.
|
|
2258
|
+
* Quaternion interpolation takes the shortest path; omitted Euler axes may change during interpolation.
|
|
2259
|
+
* World targets account for moving parents. The caller is responsible for non-uniform parent scaling.
|
|
2163
2260
|
* Cameras switch to free look mode. The caller coordinates other animations and controls.
|
|
2164
|
-
* A new call cancels the
|
|
2261
|
+
* A new call cancels only the previous orientation animation of the same object.
|
|
2165
2262
|
* Emits {@link AnimEvent}: `Anim_Start`, `Anim_Complete`, or `Anim_Cancel` when replaced.
|
|
2166
2263
|
*/
|
|
2167
|
-
|
|
2264
|
+
animRotTo({ obj, x, y, z, path, order, space, time, ease }: {
|
|
2168
2265
|
obj: string | Obj3D;
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2266
|
+
x?: number;
|
|
2267
|
+
y?: number;
|
|
2268
|
+
z?: number;
|
|
2269
|
+
path?: 'euler' | 'quat';
|
|
2270
|
+
order?: THREE_TYPE.EulerOrder;
|
|
2271
|
+
space?: 'parent' | 'world';
|
|
2272
|
+
time?: number;
|
|
2273
|
+
ease?: string;
|
|
2274
|
+
}): void;
|
|
2275
|
+
/**
|
|
2276
|
+
* Animates selected local scale axes from their current values.
|
|
2277
|
+
* @param params - Target object, scale, and animation settings.
|
|
2278
|
+
* @param params.obj - Scene object name or component, including cameras.
|
|
2279
|
+
* @param params.x - Target X scale; omitted axes remain unchanged.
|
|
2280
|
+
* @param params.y - Target Y scale.
|
|
2281
|
+
* @param params.z - Target Z scale.
|
|
2282
|
+
* @param params.time - Duration in seconds. Default: **1**. A value of 0 applies the values immediately.
|
|
2283
|
+
* @param params.ease - GSAP easing function. Default: **'power2.inOut'**
|
|
2284
|
+
* @remarks
|
|
2285
|
+
* A new call cancels only the previous scale animation of the same object.
|
|
2286
|
+
* Emits {@link AnimEvent}: `Anim_Start`, `Anim_Complete`, or `Anim_Cancel` when replaced.
|
|
2287
|
+
*/
|
|
2288
|
+
animScaleTo({ obj, x, y, z, time, ease }: {
|
|
2289
|
+
obj: string | Obj3D;
|
|
2290
|
+
x?: number;
|
|
2291
|
+
y?: number;
|
|
2292
|
+
z?: number;
|
|
2293
|
+
time?: number;
|
|
2185
2294
|
ease?: string;
|
|
2186
2295
|
}): void;
|
|
2187
|
-
|
|
2296
|
+
/**
|
|
2297
|
+
* Animates selected position axes from their current values in parent or world space.
|
|
2298
|
+
* @param params - Target object, position, and animation settings.
|
|
2299
|
+
* @param params.obj - Scene object name or component, including cameras.
|
|
2300
|
+
* @param params.x - Target X position; omitted axes keep their starting values.
|
|
2301
|
+
* @param params.y - Target Y position.
|
|
2302
|
+
* @param params.z - Target Z position.
|
|
2303
|
+
* @param params.space - Position space. Default: **'parent'**
|
|
2304
|
+
* @param params.time - Duration in seconds. Default: **1**. A value of 0 applies the values immediately.
|
|
2305
|
+
* @param params.ease - GSAP easing function. Default: **'power2.inOut'**
|
|
2306
|
+
* @remarks
|
|
2307
|
+
* World targets account for moving parents. Cameras switch to free look mode.
|
|
2308
|
+
* A new call cancels only the previous position animation of the same object.
|
|
2309
|
+
* Emits {@link AnimEvent}: `Anim_Start`, `Anim_Complete`, or `Anim_Cancel` when replaced.
|
|
2310
|
+
*/
|
|
2311
|
+
animTranslTo({ obj, x, y, z, space, time, ease }: {
|
|
2312
|
+
obj: string | Obj3D;
|
|
2313
|
+
x?: number;
|
|
2314
|
+
y?: number;
|
|
2315
|
+
z?: number;
|
|
2316
|
+
space?: 'parent' | 'world';
|
|
2317
|
+
time?: number;
|
|
2318
|
+
ease?: string;
|
|
2319
|
+
}): void;
|
|
2320
|
+
private getMtrls;
|
|
2321
|
+
private getObj;
|
|
2188
2322
|
/**
|
|
2189
2323
|
* Plays a named animation clip with blending, looping, and speed control.
|
|
2190
2324
|
*
|
|
2191
2325
|
* @param params - Parameters for controlling the animation playback.
|
|
2192
2326
|
* @param params.layer - The freely named layer used to group animation actions.
|
|
2193
2327
|
* @param params.clip - The name of the animation clip to play.
|
|
2194
|
-
* @param params.
|
|
2195
|
-
* @param params.
|
|
2196
|
-
* @param params.
|
|
2197
|
-
* @param params.
|
|
2198
|
-
* @param params.
|
|
2199
|
-
* @param params.
|
|
2328
|
+
* @param params.modeBlend - How the action is blended with other active actions. Default: **'normal'**
|
|
2329
|
+
* @param params.modeFinish - Whether the final pose is held or faded out after the final loop. Default: **'hold'**
|
|
2330
|
+
* @param params.modeLoop - Number of plays or `'infinite'` for endless looping. Default: **1**
|
|
2331
|
+
* @param params.modeStop - Which previous actions of the same layer are stopped before playback. Default: **'all'**
|
|
2332
|
+
* @param params.fadeTime - Duration in seconds for fading affected previous actions out and the new action in. Default: **0**
|
|
2333
|
+
* @param params.fadeTimeFinish - Duration in seconds for `modeFinish: 'fadeOut'`. Default: **0**
|
|
2200
2334
|
* @param params.reverse - If `true`, plays the clip in reverse. Default: **false**
|
|
2201
2335
|
* @param params.reset - If `true`, resets the clip before a new playback. Default: **false**
|
|
2202
|
-
* @param params.
|
|
2203
|
-
* @param params.
|
|
2204
|
-
* @param params.
|
|
2205
|
-
* @param params.
|
|
2336
|
+
* @param params.speedStart - Initial playback speed for speed interpolation. Default: **0**
|
|
2337
|
+
* @param params.speedEnd - Target playback speed. Default: **1**
|
|
2338
|
+
* @param params.speedTime - Duration in seconds for speed interpolation. Default: **0**
|
|
2339
|
+
* @param params.speedEase - GSAP easing function name. Default: **'power1.inOut'**
|
|
2206
2340
|
*
|
|
2207
2341
|
* @remarks
|
|
2208
2342
|
* Playing an active or fading-in action again updates its speed without restarting it. Finished or stopped actions restart; fading-out actions resume from their current time and weight.
|
|
2209
2343
|
*
|
|
2210
|
-
* `
|
|
2344
|
+
* `modeFinish` and `fadeTimeFinish` have no effect when `modeLoop` is `'infinite'`.
|
|
2211
2345
|
*
|
|
2212
2346
|
* **Events**
|
|
2213
2347
|
*
|
|
2214
2348
|
* {@link ClipEvent}
|
|
2215
2349
|
*/
|
|
2216
|
-
playClip({ layer, clip: clipName,
|
|
2350
|
+
playClip({ layer, clip: clipName, modeBlend, modeFinish, modeLoop, modeStop, fadeTime, fadeTimeFinish, reverse, reset, speedStart, speedEnd, speedTime, speedEase }: {
|
|
2217
2351
|
layer: string;
|
|
2218
2352
|
clip: string;
|
|
2219
2353
|
singleAction?: boolean;
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2354
|
+
modeBlend?: BlendMode;
|
|
2355
|
+
modeFinish?: FinishMode;
|
|
2356
|
+
modeLoop?: LoopMode;
|
|
2357
|
+
modeStop?: StopMode;
|
|
2358
|
+
fadeTime?: number;
|
|
2359
|
+
fadeTimeFinish?: number;
|
|
2226
2360
|
reverse?: boolean;
|
|
2227
2361
|
reset?: boolean;
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2362
|
+
speedStart?: number;
|
|
2363
|
+
speedEnd?: number;
|
|
2364
|
+
speedTime?: number;
|
|
2365
|
+
speedEase?: string;
|
|
2232
2366
|
}): void;
|
|
2233
2367
|
/**
|
|
2234
2368
|
* Plays a named camera animation clip with blending, looping, and speed control.
|
|
@@ -2236,16 +2370,16 @@ export declare class Scene {
|
|
|
2236
2370
|
* @param params - Parameters for controlling the camera animation playback.
|
|
2237
2371
|
* @param params.layer - The freely named layer used to group camera animation actions.
|
|
2238
2372
|
* @param params.clip - The name of the camera animation clip to play.
|
|
2239
|
-
* @param params.
|
|
2240
|
-
* @param params.
|
|
2241
|
-
* @param params.
|
|
2242
|
-
* @param params.
|
|
2373
|
+
* @param params.modeBlend - How the action is blended with other active actions. Default: **'normal'**
|
|
2374
|
+
* @param params.modeLoop - Number of plays or `'infinite'` for endless looping. Default: **1**
|
|
2375
|
+
* @param params.modeStop - Which previous actions of the same layer are stopped before playback. Default: **'all'**
|
|
2376
|
+
* @param params.fadeTime - Duration in seconds for fading affected previous actions out and the new action in. Default: **0**
|
|
2243
2377
|
* @param params.reverse - If `true`, plays the clip in reverse. Default: **false**
|
|
2244
2378
|
* @param params.reset - If `true`, resets the clip before a new playback. Default: **false**
|
|
2245
|
-
* @param params.
|
|
2246
|
-
* @param params.
|
|
2247
|
-
* @param params.
|
|
2248
|
-
* @param params.
|
|
2379
|
+
* @param params.speedStart - Initial playback speed for speed interpolation. Default: **0**
|
|
2380
|
+
* @param params.speedEnd - Target playback speed. Default: **1**
|
|
2381
|
+
* @param params.speedTime - Duration in seconds for speed interpolation. Default: **0**
|
|
2382
|
+
* @param params.speedEase - GSAP easing function name. Default: **'power1.inOut'**
|
|
2249
2383
|
*
|
|
2250
2384
|
* @remarks
|
|
2251
2385
|
* Playing an active or fading-in action again updates its speed without restarting it. Finished or stopped actions restart; fading-out actions resume from their current time and weight.
|
|
@@ -2254,19 +2388,19 @@ export declare class Scene {
|
|
|
2254
2388
|
*
|
|
2255
2389
|
* {@link ClipEvent}
|
|
2256
2390
|
*/
|
|
2257
|
-
playClipCam({ layer, clip: clipName,
|
|
2391
|
+
playClipCam({ layer, clip: clipName, modeBlend, modeLoop, modeStop, fadeTime, reverse, reset, speedStart, speedEnd, speedTime, speedEase }: {
|
|
2258
2392
|
layer: string;
|
|
2259
2393
|
clip: string;
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2394
|
+
modeBlend?: BlendMode;
|
|
2395
|
+
modeLoop?: LoopMode;
|
|
2396
|
+
modeStop?: StopMode;
|
|
2397
|
+
fadeTime?: number;
|
|
2264
2398
|
reverse?: boolean;
|
|
2265
2399
|
reset?: boolean;
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2400
|
+
speedStart?: number;
|
|
2401
|
+
speedEnd?: number;
|
|
2402
|
+
speedTime?: number;
|
|
2403
|
+
speedEase?: string;
|
|
2270
2404
|
}): void;
|
|
2271
2405
|
/**
|
|
2272
2406
|
* Removes the built-in ambient light and releases its resources.
|
|
@@ -2315,16 +2449,30 @@ export declare class Scene {
|
|
|
2315
2449
|
intensity?: number;
|
|
2316
2450
|
}): void;
|
|
2317
2451
|
/**
|
|
2318
|
-
* Updates
|
|
2452
|
+
* Updates properties of a named material. Shared materials also affect other objects that use them.
|
|
2453
|
+
* @param params - Target material values, such as `color`, `roughness`, or `map`.
|
|
2454
|
+
* @param params.name - Material name.
|
|
2455
|
+
* @param params.needsUpdate - Recompiles the material after applying the values. Default: **false**
|
|
2456
|
+
*
|
|
2457
|
+
* @remarks
|
|
2458
|
+
* Texture paths for `map` and `emissiveMap` load asynchronously. Property names and values are the caller's responsibility.
|
|
2459
|
+
*/
|
|
2460
|
+
setMaterialProps({ name, needsUpdate, ...props }: {
|
|
2461
|
+
name: string;
|
|
2462
|
+
needsUpdate?: boolean;
|
|
2463
|
+
[key: string]: any;
|
|
2464
|
+
}): void;
|
|
2465
|
+
/**
|
|
2466
|
+
* Updates all assigned materials of an object, optionally including descendant meshes.
|
|
2319
2467
|
* @param params - Target material values, such as `color`, `roughness`, or `map`.
|
|
2320
2468
|
* @param params.obj - Scene object name or `Mesh3D` component.
|
|
2321
2469
|
* @param params.recursive - Includes descendant meshes. Default: **false**
|
|
2322
2470
|
* @param params.needsUpdate - Recompiles materials after applying the values. Default: **false**
|
|
2323
2471
|
*
|
|
2324
2472
|
* @remarks
|
|
2325
|
-
* Texture paths for `map` and `emissiveMap` load asynchronously.
|
|
2473
|
+
* Each shared material is updated once. Texture paths for `map` and `emissiveMap` load asynchronously.
|
|
2326
2474
|
*/
|
|
2327
|
-
|
|
2475
|
+
setMaterialsProps({ obj, recursive, ...props }: {
|
|
2328
2476
|
obj: string | Mesh3D;
|
|
2329
2477
|
recursive?: boolean;
|
|
2330
2478
|
needsUpdate?: boolean;
|
|
@@ -2334,16 +2482,16 @@ export declare class Scene {
|
|
|
2334
2482
|
* Stops a named animation clip, optionally slowing it to a halt first.
|
|
2335
2483
|
* @param params - Stop settings.
|
|
2336
2484
|
* @param params.clipName - Animation clip name.
|
|
2337
|
-
* @param params.
|
|
2338
|
-
* @param params.
|
|
2485
|
+
* @param params.speedTime - Slowdown duration in seconds. Default: **0**
|
|
2486
|
+
* @param params.speedEase - GSAP easing function for the slowdown. Default: **'power1.inOut'**
|
|
2339
2487
|
*
|
|
2340
2488
|
* @remarks
|
|
2341
2489
|
* A slowdown emits `Clip_Speed_Start` and `Clip_Speed_Complete`, followed by `Clip_Cancel`. A duration of `0` cancels immediately. See {@link ClipEvent}.
|
|
2342
2490
|
*/
|
|
2343
|
-
|
|
2491
|
+
stopClip({ clipName, speedTime, speedEase }: {
|
|
2344
2492
|
clipName: string;
|
|
2345
|
-
|
|
2346
|
-
|
|
2493
|
+
speedTime?: number;
|
|
2494
|
+
speedEase?: string;
|
|
2347
2495
|
}): void;
|
|
2348
2496
|
}
|
|
2349
2497
|
|