soonspacejs 2.7.2 → 2.7.3
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "soonspacejs",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.3",
|
|
4
4
|
"homepage": "http://www.xwbuilders.com:8800/",
|
|
5
5
|
"description": "soonspacejs 2.x",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"three": ">=0.152.2"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "a445b461f74282fe6cf92de2e35ad752f2b7e297"
|
|
30
30
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Box3, Vector3, Euler, Mesh, BufferGeometry, Material } from 'three';
|
|
2
2
|
import { Tween } from '@tweenjs/tween.js';
|
|
3
|
-
import { Position, Rotation, Scale, Level, BaseObjectInfo, AnimationOptions
|
|
3
|
+
import { Position, Rotation, Scale, Level, BaseObjectInfo, AnimationOptions } from '../Interface';
|
|
4
4
|
type BaseMeshInfo = BaseObjectInfo<BaseMesh>;
|
|
5
5
|
declare class BaseMesh extends Mesh {
|
|
6
6
|
sid: string | number;
|
|
@@ -13,7 +13,7 @@ declare class BaseMesh extends Mesh {
|
|
|
13
13
|
show(): void;
|
|
14
14
|
hide(): void;
|
|
15
15
|
setMove(position: Position | Vector3, options?: AnimationOptions, onUpdate?: (source: Position, tween: Tween<Position>) => void, onStart?: (tween: Tween<Position>) => void): Promise<void>;
|
|
16
|
-
setRotate(rotation: Rotation | Euler, options?: AnimationOptions, onUpdate?: (source: Rotation, tween: Tween<
|
|
16
|
+
setRotate(rotation: Rotation | Euler, options?: AnimationOptions, onUpdate?: (source: Rotation, tween: Tween<Rotation>) => void, onStart?: (tween: Tween<Rotation>) => void): Promise<void>;
|
|
17
17
|
setScale(scale: Scale | Vector3, options?: AnimationOptions, onUpdate?: (source: Scale, tween: Tween<Scale>) => void, onStart?: (tween: Tween<Scale>) => void): Promise<void>;
|
|
18
18
|
getBoundingBox(): Box3;
|
|
19
19
|
eventPropagation(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Object3D, Vector3, Euler, BaseEvent, Box3 } from 'three';
|
|
2
2
|
import { Tween } from '@tweenjs/tween.js';
|
|
3
|
-
import { Position, Rotation, Scale, Level, BaseObjectEvents, BaseObjectInfo, BaseObjectEventsListener, AnimationOptions
|
|
3
|
+
import { Position, Rotation, Scale, Level, BaseObjectEvents, BaseObjectInfo, BaseObjectEventsListener, AnimationOptions } from '../Interface';
|
|
4
4
|
type BaseObject3DInfo = BaseObjectInfo<BaseObject3D>;
|
|
5
5
|
declare class BaseObject3D<Event extends BaseEvent = BaseObjectEventsListener> extends Object3D<Event> implements BaseObjectEvents<BaseObject3D> {
|
|
6
6
|
sid: string | number;
|
|
@@ -18,7 +18,7 @@ declare class BaseObject3D<Event extends BaseEvent = BaseObjectEventsListener> e
|
|
|
18
18
|
show(): void;
|
|
19
19
|
hide(): void;
|
|
20
20
|
setMove(position: Position | Vector3, options?: AnimationOptions, onUpdate?: (source: Position, tween: Tween<Position>) => void, onStart?: (tween: Tween<Position>) => void): Promise<void>;
|
|
21
|
-
setRotate(rotation: Rotation | Euler, options?: AnimationOptions, onUpdate?: (source: Rotation, tween: Tween<
|
|
21
|
+
setRotate(rotation: Rotation | Euler, options?: AnimationOptions, onUpdate?: (source: Rotation, tween: Tween<Rotation>) => void, onStart?: (tween: Tween<Rotation>) => void): Promise<void>;
|
|
22
22
|
setScale(scale: Scale | Vector3, options?: AnimationOptions, onUpdate?: (source: Scale, tween: Tween<Scale>) => void, onStart?: (tween: Tween<Scale>) => void): Promise<void>;
|
|
23
23
|
sClone<T extends BaseObject3D>(recursive?: boolean): T;
|
|
24
24
|
sCopy<T extends BaseObject3D>(source: BaseObject3D, recursive?: boolean): T;
|