@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.
Files changed (61) hide show
  1. package/dist/{main.js → main.cjs} +2580 -2507
  2. package/dist/main.cjs.map +1 -0
  3. package/dist/module.js +2427 -2375
  4. package/dist/module.js.map +1 -1
  5. package/package.json +3 -3
  6. package/types/Component.d.ts +4 -0
  7. package/types/DeviceInput.d.ts +1 -0
  8. package/types/Mount.d.ts +2 -1
  9. package/types/SystemInfo.d.ts +1 -4
  10. package/types/Utils.d.ts +4 -4
  11. package/types/Viewer.d.ts +12 -6
  12. package/types/asset/{aLoader.d.ts → Loader.d.ts} +1 -1
  13. package/types/asset/ResourceManager.d.ts +4 -4
  14. package/types/cinestation/CinestationBlendDefinition.d.ts +4 -4
  15. package/types/cinestation/FreelookVirtualCamera.d.ts +9 -1
  16. package/types/components/AccumulativeShadows.d.ts +68 -0
  17. package/types/components/Center.d.ts +44 -0
  18. package/types/components/ContactShadows.d.ts +28 -0
  19. package/types/components/index.d.ts +3 -0
  20. package/types/constants.d.ts +1 -0
  21. package/types/index.d.ts +1 -2
  22. package/types/loaders/BINLoader.d.ts +8 -0
  23. package/types/loaders/{aEXRLoader.d.ts → EXRLoader.d.ts} +2 -2
  24. package/types/loaders/{aFBXLoader.d.ts → FBXLoader.d.ts} +2 -2
  25. package/types/loaders/{aGLTFLoader.d.ts → GLTFLoader.d.ts} +2 -2
  26. package/types/loaders/{aHDRLoader.d.ts → HDRLoader.d.ts} +2 -2
  27. package/types/loaders/{aJSONLoader.d.ts → JSONLoader.d.ts} +2 -2
  28. package/types/loaders/{aTextureLoader.d.ts → TextureLoader.d.ts} +2 -2
  29. package/types/loaders/index.d.ts +7 -6
  30. package/types/materials/DiscardMaterial.d.ts +5 -0
  31. package/types/materials/ShadowMaterial.d.ts +17 -0
  32. package/types/materials/index.d.ts +1 -0
  33. package/types/math/Interpolation.d.ts +6 -5
  34. package/types/math/index.d.ts +1 -0
  35. package/types/plugins/DropFile.d.ts +3 -1
  36. package/types/plugins/UI.d.ts +30 -0
  37. package/types/plugins/index.d.ts +1 -0
  38. package/types/shaderMaterial.d.ts +8 -0
  39. package/types/types.d.ts +20 -17
  40. package/dist/main.js.map +0 -1
  41. package/types/Plugin.d.ts +0 -4
  42. package/types/PluginManager.d.ts +0 -17
  43. package/types/components/PerformanceMonitor.d.ts +0 -48
  44. package/types/plugins/BoxProjectionPlugin.d.ts +0 -20
  45. package/types/plugins/DebugPlugin.d.ts +0 -10
  46. package/types/plugins/DebugScene.d.ts +0 -8
  47. package/types/plugins/DropFilePlugin.d.ts +0 -18
  48. package/types/plugins/EnvironmentPlugin.d.ts +0 -41
  49. package/types/plugins/PerformanceMonitorPlugin.d.ts +0 -48
  50. package/types/tween/Group.d.ts +0 -16
  51. package/types/tween/Interpolation.d.ts +0 -19
  52. package/types/tween/Now.d.ts +0 -2
  53. package/types/tween/Sequence.d.ts +0 -7
  54. package/types/tween/Tween.d.ts +0 -98
  55. package/types/tween/TweenChain.d.ts +0 -26
  56. package/types/tween/TweenGroup.d.ts +0 -17
  57. package/types/tween/TweenManager.d.ts +0 -8
  58. package/types/tween/Version.d.ts +0 -1
  59. package/types/tween/index.d.ts +0 -6
  60. package/types/tween/mainGroup.d.ts +0 -2
  61. /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 __P<T, K extends __C<T>> = __Properties<T> & {
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;