@xviewer.js/core 1.0.4-alpha.9 → 1.0.4

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": "@xviewer.js/core",
3
- "version": "1.0.4-alpha.9",
3
+ "version": "1.0.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
package/types/Task.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export declare class Task {
2
- excute: () => void;
3
- name: string;
4
2
  static _instanceCount: number;
5
- constructor(excute: () => void, name?: string);
6
3
  instanceId: number;
4
+ name: string;
5
+ excute: () => void;
6
+ constructor(excute: () => void, name?: string);
7
7
  }
@@ -5,8 +5,7 @@ export declare class TaskManager {
5
5
  onError?: (task: Task) => void;
6
6
  private _tasks;
7
7
  private _taskIndex;
8
- private _interval;
9
- private _onstartCalled;
8
+ private _onStartCalled;
10
9
  onStart?: () => void;
11
10
  constructor(onComplete?: () => void, onProgress?: (task: Task, loaded: number, total: number) => void, onError?: (task: Task) => void);
12
11
  destroy(): void;
package/types/Viewer.d.ts CHANGED
@@ -30,6 +30,9 @@ export declare class Viewer extends EventEmitter {
30
30
  private _scene;
31
31
  private _camera;
32
32
  private _renderer;
33
+ private _active;
34
+ private _loading;
35
+ private _tasking;
33
36
  private _running;
34
37
  private _rootRotated;
35
38
  private _time;
@@ -1,4 +1,4 @@
1
- import { Color, IUniform, ShaderMaterial, Texture, WebGLProgramParametersWithUniforms } from "three";
1
+ import { Color, IUniform, ShaderMaterial, Texture, Vector4, WebGLProgramParametersWithUniforms } from "three";
2
2
  import { Reflector } from "../components";
3
3
  export declare class ReflectorMaterial extends ShaderMaterial {
4
4
  vertexShader: string;
@@ -17,8 +17,13 @@ export declare class ReflectorMaterial extends ShaderMaterial {
17
17
  reflectIntensity?: number;
18
18
  transparent?: boolean;
19
19
  depthWrite?: boolean;
20
- roughness?: number;
21
20
  metalness?: number;
21
+ map?: Texture;
22
+ roughness?: number;
23
+ roughnessMap?: Texture;
24
+ normalMap?: Texture;
25
+ normalScaleBias?: Vector4;
26
+ roughnessScaleBias?: Vector4;
22
27
  });
23
28
  onBeforeCompile(shader: WebGLProgramParametersWithUniforms): void;
24
29
  get color(): Color;
@@ -31,8 +36,12 @@ export declare class ReflectorMaterial extends ShaderMaterial {
31
36
  set map(v: Texture);
32
37
  get roughnessMap(): Texture;
33
38
  set roughnessMap(v: Texture);
39
+ get roughnessScaleBias(): Vector4;
40
+ set roughnessScaleBias(v: Vector4);
34
41
  get normalMap(): Texture;
35
42
  set normalMap(v: Texture);
43
+ get normalScaleBias(): Vector4;
44
+ set normalScaleBias(v: Vector4);
36
45
  get aoMap(): Texture;
37
46
  set aoMap(v: Texture);
38
47
  get lightMap(): Texture;