@xviewer.js/core 1.0.0 → 1.0.2
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/dist/{main.js → main.cjs} +2580 -2507
- package/dist/main.cjs.map +1 -0
- package/dist/module.js +2427 -2375
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/Component.d.ts +4 -0
- package/types/DeviceInput.d.ts +1 -0
- package/types/Mount.d.ts +2 -1
- package/types/SystemInfo.d.ts +1 -4
- package/types/Utils.d.ts +4 -4
- package/types/Viewer.d.ts +12 -6
- package/types/asset/{aLoader.d.ts → Loader.d.ts} +1 -1
- package/types/asset/ResourceManager.d.ts +4 -4
- package/types/cinestation/CinestationBlendDefinition.d.ts +4 -4
- package/types/cinestation/FreelookVirtualCamera.d.ts +9 -1
- package/types/components/AccumulativeShadows.d.ts +68 -0
- package/types/components/Center.d.ts +44 -0
- package/types/components/ContactShadows.d.ts +28 -0
- package/types/components/index.d.ts +3 -0
- package/types/constants.d.ts +1 -0
- package/types/index.d.ts +1 -2
- package/types/loaders/BINLoader.d.ts +8 -0
- package/types/loaders/{aEXRLoader.d.ts → EXRLoader.d.ts} +2 -2
- package/types/loaders/{aFBXLoader.d.ts → FBXLoader.d.ts} +2 -2
- package/types/loaders/{aGLTFLoader.d.ts → GLTFLoader.d.ts} +2 -2
- package/types/loaders/{aHDRLoader.d.ts → HDRLoader.d.ts} +2 -2
- package/types/loaders/{aJSONLoader.d.ts → JSONLoader.d.ts} +2 -2
- package/types/loaders/{aTextureLoader.d.ts → TextureLoader.d.ts} +2 -2
- package/types/loaders/index.d.ts +7 -6
- package/types/materials/DiscardMaterial.d.ts +5 -0
- package/types/materials/ShadowMaterial.d.ts +17 -0
- package/types/materials/index.d.ts +1 -0
- package/types/math/Interpolation.d.ts +6 -5
- package/types/math/index.d.ts +1 -0
- package/types/plugins/DropFile.d.ts +3 -1
- package/types/plugins/UI.d.ts +30 -0
- package/types/plugins/index.d.ts +1 -0
- package/types/shaderMaterial.d.ts +8 -0
- package/types/types.d.ts +20 -17
- package/dist/main.js.map +0 -1
- package/types/Plugin.d.ts +0 -4
- package/types/PluginManager.d.ts +0 -17
- package/types/components/PerformanceMonitor.d.ts +0 -48
- package/types/plugins/BoxProjectionPlugin.d.ts +0 -20
- package/types/plugins/DebugPlugin.d.ts +0 -10
- package/types/plugins/DebugScene.d.ts +0 -8
- package/types/plugins/DropFilePlugin.d.ts +0 -18
- package/types/plugins/EnvironmentPlugin.d.ts +0 -41
- package/types/plugins/PerformanceMonitorPlugin.d.ts +0 -48
- package/types/tween/Group.d.ts +0 -16
- package/types/tween/Interpolation.d.ts +0 -19
- package/types/tween/Now.d.ts +0 -2
- package/types/tween/Sequence.d.ts +0 -7
- package/types/tween/Tween.d.ts +0 -98
- package/types/tween/TweenChain.d.ts +0 -26
- package/types/tween/TweenGroup.d.ts +0 -17
- package/types/tween/TweenManager.d.ts +0 -8
- package/types/tween/Version.d.ts +0 -1
- package/types/tween/index.d.ts +0 -6
- package/types/tween/mainGroup.d.ts +0 -2
- /package/types/{tween → math}/Easing.d.ts +0 -0
package/types/types.d.ts
CHANGED
|
@@ -7,7 +7,25 @@ export type __Properties<T> = Omit<Partial<T>, __FunctionKeys<T>> & {
|
|
|
7
7
|
[k: string]: any;
|
|
8
8
|
};
|
|
9
9
|
export type __C<T> = new (...args: any[]) => T;
|
|
10
|
-
export type
|
|
10
|
+
export type __E = {
|
|
11
|
+
/**
|
|
12
|
+
* The object's local scale.
|
|
13
|
+
*/
|
|
14
|
+
scale?: Vector3;
|
|
15
|
+
/**
|
|
16
|
+
* Object's local position.
|
|
17
|
+
*/
|
|
18
|
+
position?: Vector3;
|
|
19
|
+
/**
|
|
20
|
+
* Object's local rotation
|
|
21
|
+
*/
|
|
22
|
+
rotation?: Euler;
|
|
23
|
+
/**
|
|
24
|
+
* Object's layer mask
|
|
25
|
+
*/
|
|
26
|
+
layer?: number;
|
|
27
|
+
};
|
|
28
|
+
export type __P<T, K extends __C<T>> = __Properties<T> & __E & {
|
|
11
29
|
/**
|
|
12
30
|
* Target node for component
|
|
13
31
|
*/
|
|
@@ -37,22 +55,6 @@ export type __P<T, K extends __C<T>> = __Properties<T> & {
|
|
|
37
55
|
* @example ["top", "bottom", "left", "right", "near", "far", "bias", "width", "height"];
|
|
38
56
|
*/
|
|
39
57
|
shadowArgs?: number[];
|
|
40
|
-
/**
|
|
41
|
-
* The object's local scale.
|
|
42
|
-
*/
|
|
43
|
-
scale?: Vector3;
|
|
44
|
-
/**
|
|
45
|
-
* Object's local position.
|
|
46
|
-
*/
|
|
47
|
-
position?: Vector3;
|
|
48
|
-
/**
|
|
49
|
-
* Object's local rotation
|
|
50
|
-
*/
|
|
51
|
-
rotation?: Euler;
|
|
52
|
-
/**
|
|
53
|
-
* Object's layer mask
|
|
54
|
-
*/
|
|
55
|
-
layer?: number;
|
|
56
58
|
};
|
|
57
59
|
export type __Comp<T, K extends __C<T>> = __Properties<T> & {
|
|
58
60
|
/**
|
|
@@ -60,3 +62,4 @@ export type __Comp<T, K extends __C<T>> = __Properties<T> & {
|
|
|
60
62
|
*/
|
|
61
63
|
args?: ConstructorParameters<K>;
|
|
62
64
|
};
|
|
65
|
+
export type ConstructorRepresentation<T = any> = new (...args: any[]) => T;
|