@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.
- package/dist/main.cjs +4076 -3234
- package/dist/main.cjs.map +1 -1
- package/dist/module.js +4064 -3229
- package/dist/module.js.map +1 -1
- package/package.json +2 -2
- package/types/Component.d.ts +11 -8
- package/types/ComponentManager.d.ts +10 -5
- package/types/ComponentScheduler.d.ts +3 -3
- package/types/Context.d.ts +6 -0
- package/types/DeviceInput.d.ts +41 -11
- package/types/PropertyManager.d.ts +3 -11
- package/types/TaskManager.d.ts +4 -4
- package/types/Viewer.d.ts +81 -64
- package/types/WebGL.d.ts +1 -1
- package/types/asset/Loader.d.ts +4 -3
- package/types/asset/ResourceManager.d.ts +6 -2
- package/types/bmfont/BMFontAtlas.d.ts +44 -0
- package/types/bmfont/BMFontTextGeometry.d.ts +9 -0
- package/types/bmfont/BMFontTextLayout.d.ts +93 -0
- package/types/bmfont/index.d.ts +3 -0
- package/types/bmfont/utils.d.ts +2 -0
- package/types/bmfont/wordwrap.d.ts +8 -0
- package/types/cinestation/FreelookVirtualCamera.d.ts +2 -1
- package/types/cinestation/VirtualCamera.d.ts +2 -0
- package/types/components/BoxProjection.d.ts +15 -0
- package/types/components/DropFile.d.ts +29 -0
- package/types/components/Environment.d.ts +37 -0
- package/types/components/FreelookVirtualCamera.d.ts +110 -0
- package/types/components/Label.d.ts +26 -0
- package/types/components/PerformanceMonitor.d.ts +48 -0
- package/types/components/Reflector.d.ts +6 -5
- package/types/components/RenderTexture.d.ts +7 -0
- package/types/components/Renderer.d.ts +6 -0
- package/types/components/UI.d.ts +30 -0
- package/types/components/index.d.ts +9 -1
- package/types/enums/index.d.ts +9 -0
- package/types/index.d.ts +3 -4
- package/types/loaders/KTX2Loader.d.ts +6 -0
- package/types/loaders/SVGLoader.d.ts +8 -0
- package/types/loaders/index.d.ts +2 -0
- package/types/materials/MSDFMaterial.d.ts +20 -0
- package/types/materials/ReflectorMaterial.d.ts +13 -3
- package/types/plugins/BoxProjection.d.ts +2 -2
- package/types/plugins/DropFile.d.ts +16 -7
- package/types/plugins/Environment.d.ts +2 -2
- package/types/plugins/Exporter.d.ts +7 -0
- package/types/plugins/PerformanceMonitor.d.ts +2 -2
- package/types/plugins/UI.d.ts +2 -2
- package/types/plugins/index.d.ts +0 -4
- package/types/types.d.ts +6 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Object3D, Scene, Texture, TextureDataType, Vector3 } from "three";
|
|
2
|
-
import {
|
|
3
|
-
export declare class Environment extends
|
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
35
|
+
export declare class PerformanceMonitor extends Component {
|
|
36
36
|
fps: number;
|
|
37
37
|
index: number;
|
|
38
38
|
factor: number;
|
package/types/plugins/UI.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Vector2 } from "three";
|
|
2
|
-
import {
|
|
3
|
-
export declare class UI extends
|
|
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;
|
package/types/plugins/index.d.ts
CHANGED
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
|
-
|
|
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
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
55
|
-
* @example ["top", "bottom", "left", "right", "near", "far", "bias", "width", "height"];
|
|
50
|
+
* Manually set the camera’s aspect ratio
|
|
56
51
|
*/
|
|
57
|
-
|
|
52
|
+
manual?: boolean;
|
|
58
53
|
};
|
|
59
54
|
export type __Comp<T, K extends __C<T>> = __Properties<T> & {
|
|
60
55
|
/**
|