@xviewer.js/core 1.0.4-alpha.0 → 1.0.4-alpha.10

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 (50) hide show
  1. package/dist/main.cjs +4076 -3234
  2. package/dist/main.cjs.map +1 -1
  3. package/dist/module.js +4064 -3229
  4. package/dist/module.js.map +1 -1
  5. package/package.json +2 -2
  6. package/types/Component.d.ts +11 -8
  7. package/types/ComponentManager.d.ts +10 -5
  8. package/types/ComponentScheduler.d.ts +3 -3
  9. package/types/Context.d.ts +6 -0
  10. package/types/DeviceInput.d.ts +41 -11
  11. package/types/PropertyManager.d.ts +3 -11
  12. package/types/TaskManager.d.ts +4 -4
  13. package/types/Viewer.d.ts +81 -64
  14. package/types/WebGL.d.ts +1 -1
  15. package/types/asset/Loader.d.ts +4 -3
  16. package/types/asset/ResourceManager.d.ts +6 -2
  17. package/types/bmfont/BMFontAtlas.d.ts +44 -0
  18. package/types/bmfont/BMFontTextGeometry.d.ts +9 -0
  19. package/types/bmfont/BMFontTextLayout.d.ts +93 -0
  20. package/types/bmfont/index.d.ts +3 -0
  21. package/types/bmfont/utils.d.ts +2 -0
  22. package/types/bmfont/wordwrap.d.ts +8 -0
  23. package/types/cinestation/FreelookVirtualCamera.d.ts +2 -1
  24. package/types/cinestation/VirtualCamera.d.ts +2 -0
  25. package/types/components/BoxProjection.d.ts +15 -0
  26. package/types/components/DropFile.d.ts +29 -0
  27. package/types/components/Environment.d.ts +37 -0
  28. package/types/components/FreelookVirtualCamera.d.ts +110 -0
  29. package/types/components/Label.d.ts +26 -0
  30. package/types/components/PerformanceMonitor.d.ts +48 -0
  31. package/types/components/Reflector.d.ts +6 -5
  32. package/types/components/RenderTexture.d.ts +7 -0
  33. package/types/components/Renderer.d.ts +6 -0
  34. package/types/components/UI.d.ts +30 -0
  35. package/types/components/index.d.ts +9 -1
  36. package/types/enums/index.d.ts +9 -0
  37. package/types/index.d.ts +3 -4
  38. package/types/loaders/KTX2Loader.d.ts +6 -0
  39. package/types/loaders/SVGLoader.d.ts +8 -0
  40. package/types/loaders/index.d.ts +2 -0
  41. package/types/materials/MSDFMaterial.d.ts +20 -0
  42. package/types/materials/ReflectorMaterial.d.ts +13 -3
  43. package/types/plugins/BoxProjection.d.ts +2 -2
  44. package/types/plugins/DropFile.d.ts +16 -7
  45. package/types/plugins/Environment.d.ts +2 -2
  46. package/types/plugins/Exporter.d.ts +7 -0
  47. package/types/plugins/PerformanceMonitor.d.ts +2 -2
  48. package/types/plugins/UI.d.ts +2 -2
  49. package/types/plugins/index.d.ts +0 -4
  50. package/types/types.d.ts +6 -11
@@ -1,6 +1,6 @@
1
1
  import { Object3D, Scene, Texture, TextureDataType, Vector3 } from "three";
2
- import { Mount } from "../Mount";
3
- export declare class Environment extends Mount {
2
+ import { Component } from "../Component";
3
+ export declare class Environment extends Component {
4
4
  static readonly Quality: {
5
5
  LOW: number;
6
6
  MEDIUM: number;
@@ -0,0 +1,7 @@
1
+ import { Mount } from "../Mount";
2
+ export declare class Exporter extends Mount {
3
+ trs: boolean;
4
+ binary: boolean;
5
+ maxTextureSize: number;
6
+ export(): void;
7
+ }
@@ -1,4 +1,4 @@
1
- import { Mount } from "../Mount";
1
+ import { Component } from "../Component";
2
2
  type PerformanceMonitorProps = {
3
3
  /** How much time in milliseconds to collect an average fps, 250 */
4
4
  ms?: number;
@@ -32,7 +32,7 @@ type PerformanceMonitorSubscriber = {
32
32
  /** Called after when the number of flipflops is reached, it indicates instability, use the function to set a fixed baseline */
33
33
  onFallback?: (monitor: PerformanceMonitor) => void;
34
34
  };
35
- export declare class PerformanceMonitor extends Mount {
35
+ export declare class PerformanceMonitor extends Component {
36
36
  fps: number;
37
37
  index: number;
38
38
  factor: number;
@@ -1,6 +1,6 @@
1
1
  import { Vector2 } from "three";
2
- import { Mount } from "../Mount";
3
- export declare class UI extends Mount {
2
+ import { Component } from "../Component";
3
+ export declare class UI extends Component {
4
4
  static __loc0: Vector2;
5
5
  static __loc1: Vector2;
6
6
  static __panOffset: Vector2;
@@ -1,5 +1 @@
1
1
  export { UI } from "./UI";
2
- export { Environment } from "./Environment";
3
- export { BoxProjection } from "./BoxProjection";
4
- export { PerformanceMonitor } from "./PerformanceMonitor";
5
- export { DropFile } from "./DropFile";
package/types/types.d.ts CHANGED
@@ -9,8 +9,8 @@ export type __Properties<T> = Omit<Partial<T>, __FunctionKeys<T>> & {
9
9
  export type __C<T> = new (...args: any[]) => T;
10
10
  export type __E = {
11
11
  /**
12
- * The object's local scale.
13
- */
12
+ * The object's local scale.
13
+ */
14
14
  scale?: Vector3;
15
15
  /**
16
16
  * Object's local position.
@@ -23,7 +23,7 @@ export type __E = {
23
23
  /**
24
24
  * Object's layer mask
25
25
  */
26
- layer?: number;
26
+ layerMask?: number;
27
27
  };
28
28
  export type __P<T, K extends __C<T>> = __Properties<T> & __E & {
29
29
  /**
@@ -43,18 +43,13 @@ export type __P<T, K extends __C<T>> = __Properties<T> & __E & {
43
43
  */
44
44
  parent?: Object3D;
45
45
  /**
46
- * Debug node
47
- */
48
- debug?: boolean;
49
- /**
50
- * Set as default camera, only valid for camera
46
+ * Set as default
51
47
  */
52
48
  makeDefault?: boolean;
53
49
  /**
54
- * Set shadow arguments, only valid for Directional Light
55
- * @example ["top", "bottom", "left", "right", "near", "far", "bias", "width", "height"];
50
+ * Manually set the camera’s aspect ratio
56
51
  */
57
- shadowArgs?: number[];
52
+ manual?: boolean;
58
53
  };
59
54
  export type __Comp<T, K extends __C<T>> = __Properties<T> & {
60
55
  /**