lythreeframe 1.0.33 → 1.0.35
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/bundle.cjs.js +255 -163
- package/dist/bundle.esm.js +254 -163
- package/dist/index.d.ts +5 -4
- package/dist/lythreeframe/AssetManagement/AssetManager.d.ts +13 -9
- package/dist/lythreeframe/Frame/Parameters/AppParameter.d.ts +11 -0
- package/dist/lythreeframe/Object/Actor.d.ts +3 -1
- package/dist/lythreeframe/Object/Actors/Light/DirectionalLightActor.d.ts +2 -1
- package/dist/lythreeframe/Object/Actors/Shape/BoxActor.d.ts +2 -1
- package/dist/lythreeframe/Object/Actors/Shape/PlaneActor.d.ts +2 -1
- package/dist/lythreeframe/Object/Actors/Sky/SkyActor.d.ts +2 -1
- package/dist/lythreeframe/Object/Components/2D/2DComponent.d.ts +2 -1
- package/dist/lythreeframe/Object/Components/Light/DirectionalLight/DirectionalLightComponent.d.ts +2 -1
- package/dist/lythreeframe/Object/Components/Light/LightComponent.d.ts +2 -1
- package/dist/lythreeframe/Object/Components/Mesh/MeshComponent.d.ts +16 -9
- package/dist/lythreeframe/Object/Components/Mesh/Shape/BoxComponent.d.ts +2 -1
- package/dist/lythreeframe/Object/Components/Mesh/Shape/PlaneComponent.d.ts +2 -1
- package/dist/lythreeframe/Object/Components/Mesh/Shape/SphereComponent.d.ts +2 -1
- package/dist/lythreeframe/Object/Components/Mesh/Sprite/SpriteComponent.d.ts +2 -1
- package/dist/lythreeframe/Object/Components/SceneComponent.d.ts +4 -2
- package/dist/lythreeframe/Object/Components/Sky/SkyComponent.d.ts +3 -1
- package/dist/lythreeframe/ThreeJsApp.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { AssetManager } from "./lythreeframe/AssetManagement/AssetManager";
|
|
2
|
+
export { TAssetPointer } from "./lythreeframe/AssetManagement/AssetPointer/AssetPointer";
|
|
3
|
+
export { TSmartPointer } from './lythreeframe/Container/SmartPointer';
|
|
3
4
|
export { AttachmentRules } from "./lythreeframe/Defines";
|
|
4
5
|
export { Delegate } from "./lythreeframe/Delegate";
|
|
5
|
-
export { ThreeJsApp
|
|
6
|
+
export { ThreeJsApp } from "./lythreeframe/ThreeJsApp";
|
|
6
7
|
export { Controller } from "./lythreeframe/Frame/Controller";
|
|
7
8
|
export { Viewport } from "./lythreeframe/Frame/Viewport";
|
|
8
9
|
export { World } from "./lythreeframe/Frame/World";
|
|
9
10
|
export type { CameraParam } from './lythreeframe/Frame/Parameters/CameraParameter';
|
|
10
11
|
export type { DefaultCameraParam } from './lythreeframe/Frame/Parameters/CameraParameter';
|
|
11
|
-
export type { AppParam } from "./lythreeframe/Frame/Parameters/AppParameter";
|
|
12
|
+
export type { AppParam, AppClass } from "./lythreeframe/Frame/Parameters/AppParameter";
|
|
12
13
|
export { DefaultRenderParam, DefaultAppParam } from "./lythreeframe/Frame/Parameters/AppParameter";
|
|
13
14
|
export { Actor } from "./lythreeframe/Object/Actor";
|
|
14
15
|
export { DirectionalLightActor } from "./lythreeframe/Object/Actors/Light/DirectionalLightActor";
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
import { BufferGeometry, LoadingManager, Material, Mesh, Texture } from "three/webgpu";
|
|
2
2
|
import { SceneComponent } from "../Object/Components/SceneComponent";
|
|
3
|
-
import { LYLoadTask } from "./Task/Task";
|
|
4
3
|
import { TAssetPointer } from "./AssetPointer/AssetPointer";
|
|
5
4
|
import { DRACOLoader, GLTF, GLTFLoader } from 'three/examples/jsm/Addons.js';
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import { Object3D } from "three";
|
|
6
|
+
import { ThreeJsApp } from "../ThreeJsApp";
|
|
7
|
+
export declare class AssetManager {
|
|
8
|
+
protected geometryAssets: Map<string, TAssetPointer<BufferGeometry>>;
|
|
9
|
+
protected textureAssets: Map<string, TAssetPointer<Texture>>;
|
|
10
|
+
protected materialAssets: Map<string, TAssetPointer<Material>>;
|
|
8
11
|
protected dracoLoader: DRACOLoader | null;
|
|
9
12
|
protected readonly gltfLoader: GLTFLoader;
|
|
10
13
|
protected readonly loadingManager: LoadingManager;
|
|
11
|
-
|
|
14
|
+
protected app: ThreeJsApp;
|
|
15
|
+
constructor(app: ThreeJsApp);
|
|
12
16
|
get LoadingManager(): LoadingManager;
|
|
13
|
-
static Get(): LYAssetManager;
|
|
14
|
-
static ClearAssets(): void;
|
|
15
17
|
setupDracoLoader(dracoPath: string): void;
|
|
16
18
|
convertThreeObjectToLYObject(parentLYComponent: SceneComponent, threejsObject: any): SceneComponent | null;
|
|
17
|
-
|
|
19
|
+
collectResourcesAndReferences(object: Object3D): void;
|
|
18
20
|
checkMeshResource(mesh: Mesh): void;
|
|
19
|
-
loadMultiGLTFAsGroup(tasks: LYLoadTask[], onProgress?: ((url: string, loaded: number, total: number) => void) | null, onAllFinished?: (() => void) | null): void;
|
|
20
21
|
loadGltfFromBuffer(data: ArrayBuffer | string, path: string, onLoadFinished: (gltf: GLTF) => void): void;
|
|
21
22
|
loadFile(filepath: string | undefined, onLoadFinished: (data: any) => void): void;
|
|
22
|
-
addAsset(asset: BufferGeometry | Material | Texture, referenceCount?: number):
|
|
23
|
+
addAsset(asset: BufferGeometry | Material | Texture, referenceCount?: number): TAssetPointer<BufferGeometry | Material | Texture> | undefined;
|
|
24
|
+
addMaterialAsset(asset: Material, referenceCount?: number): TAssetPointer<Material>;
|
|
25
|
+
addTextureAsset(asset: Texture, referenceCount?: number): TAssetPointer<Texture>;
|
|
26
|
+
addGeometryAsset(asset: BufferGeometry, referenceCount?: number): TAssetPointer<BufferGeometry>;
|
|
23
27
|
releaseAsset(asset: BufferGeometry | Material | Texture): void;
|
|
24
28
|
clearAssets(): void;
|
|
25
29
|
}
|
|
@@ -2,11 +2,22 @@ import { WebGPURendererParameters } from "three/src/renderers/webgpu/WebGPURende
|
|
|
2
2
|
import { CameraParam } from "./CameraParameter";
|
|
3
3
|
import { PostProcessParam } from "@/lythreeframe/PostProcess/PostProcessParam";
|
|
4
4
|
import { WorldParam } from "./WorldParameter";
|
|
5
|
+
import { AssetManager } from "@/lythreeframe/AssetManagement/AssetManager";
|
|
6
|
+
import { Controller } from "../Controller";
|
|
7
|
+
import { World } from "../World";
|
|
8
|
+
import { Viewport } from "../Viewport";
|
|
9
|
+
export interface AppClass {
|
|
10
|
+
assetManagerClass: typeof AssetManager;
|
|
11
|
+
controllerClass: typeof Controller;
|
|
12
|
+
worldClass: typeof World;
|
|
13
|
+
viewportClass: typeof Viewport;
|
|
14
|
+
}
|
|
5
15
|
export interface AppParam {
|
|
6
16
|
renderParam?: WebGPURendererParameters;
|
|
7
17
|
cameraParam?: CameraParam;
|
|
8
18
|
postProcessParam?: PostProcessParam;
|
|
9
19
|
worldParam?: WorldParam;
|
|
20
|
+
classes?: AppClass;
|
|
10
21
|
}
|
|
11
22
|
export declare const DefaultRenderParam: WebGPURendererParameters;
|
|
12
23
|
export declare const DefaultAppParam: AppParam;
|
|
@@ -3,6 +3,7 @@ import { BaseObject } from "./BaseObject";
|
|
|
3
3
|
import { AttachmentRules } from "../Defines";
|
|
4
4
|
import { SceneComponent } from "./Components/SceneComponent";
|
|
5
5
|
import { World } from "../Frame/World";
|
|
6
|
+
import { ThreeJsApp } from "../ThreeJsApp";
|
|
6
7
|
export declare class Actor extends BaseObject {
|
|
7
8
|
get world(): World | null;
|
|
8
9
|
get name(): string;
|
|
@@ -16,11 +17,12 @@ export declare class Actor extends BaseObject {
|
|
|
16
17
|
protected _name: string;
|
|
17
18
|
protected _rootComponent: SceneComponent | null;
|
|
18
19
|
protected _world: World | null;
|
|
20
|
+
protected app: ThreeJsApp;
|
|
19
21
|
protected onClickedEvent: ((component?: SceneComponent) => void)[];
|
|
20
22
|
protected onDoubleClickedEvent: ((component?: SceneComponent) => void)[];
|
|
21
23
|
protected onHoverBeginEvent: ((component?: SceneComponent) => void)[];
|
|
22
24
|
protected onHoverEndEvent: ((component?: SceneComponent) => void)[];
|
|
23
|
-
constructor(myThreeObject?: Object3D | null);
|
|
25
|
+
constructor(app: ThreeJsApp, myThreeObject?: Object3D | null);
|
|
24
26
|
protected constructRootComponent(myThreeObject?: Object3D | null): void;
|
|
25
27
|
getBoundsCenterPosition(bInWorldSpace?: boolean): any;
|
|
26
28
|
getBoundsTopCenterPosition(bInWorldSpace?: boolean): any;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ColorRepresentation } from "three/webgpu";
|
|
2
2
|
import { Actor } from "../../Actor";
|
|
3
3
|
import { DirectionalLightComponent } from "../../Components/Light/DirectionalLight/DirectionalLightComponent";
|
|
4
|
+
import { ThreeJsApp } from "@/lythreeframe/ThreeJsApp";
|
|
4
5
|
export declare class DirectionalLightActor extends Actor {
|
|
5
6
|
protected lightComponent: DirectionalLightComponent | null;
|
|
6
|
-
constructor(color?: ColorRepresentation, intensity?: number);
|
|
7
|
+
constructor(app: ThreeJsApp, color?: ColorRepresentation, intensity?: number);
|
|
7
8
|
protected constructRootComponent(): void;
|
|
8
9
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Material } from "three/webgpu";
|
|
2
2
|
import { Actor } from "../../Actor";
|
|
3
|
+
import { ThreeJsApp } from "@/lythreeframe/ThreeJsApp";
|
|
3
4
|
export declare class BoxActor extends Actor {
|
|
4
|
-
constructor(width?: number, height?: number, depth?: number, widthSegments?: number, heightSegments?: number, depthSegments?: number, material?: Material);
|
|
5
|
+
constructor(app: ThreeJsApp, width?: number, height?: number, depth?: number, widthSegments?: number, heightSegments?: number, depthSegments?: number, material?: Material);
|
|
5
6
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Material } from "three/webgpu";
|
|
2
2
|
import { Actor } from "../../Actor";
|
|
3
3
|
import { PlaneComponent } from "../../Components/Mesh/Shape/PlaneComponent";
|
|
4
|
+
import { ThreeJsApp } from "@/lythreeframe/ThreeJsApp";
|
|
4
5
|
export declare class PlaneActor extends Actor {
|
|
5
6
|
get planeComponent(): PlaneComponent | null;
|
|
6
7
|
private _planeComponent;
|
|
7
|
-
constructor(width: number, height: number, material?: Material, widthSegments?: number, heightSegments?: number);
|
|
8
|
+
constructor(app: ThreeJsApp, width: number, height: number, material?: Material, widthSegments?: number, heightSegments?: number);
|
|
8
9
|
destroy(): void;
|
|
9
10
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ThreeJsApp } from "@/lythreeframe/ThreeJsApp";
|
|
1
2
|
import { Actor } from "../../Actor";
|
|
2
3
|
import { SkyComponent } from "../../Components/Sky/SkyComponent";
|
|
3
4
|
export declare class SkyActor extends Actor {
|
|
4
5
|
protected _name: string;
|
|
5
6
|
protected skyComponent: SkyComponent | null;
|
|
6
|
-
constructor();
|
|
7
|
+
constructor(app: ThreeJsApp);
|
|
7
8
|
protected constructRootComponent(): void;
|
|
8
9
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { CSS2DObject } from "three/examples/jsm/renderers/CSS2DRenderer.js";
|
|
2
2
|
import { SceneComponent } from "../SceneComponent";
|
|
3
|
+
import { ThreeJsApp } from "@/lythreeframe/ThreeJsApp";
|
|
3
4
|
export declare class LabelComponent extends SceneComponent {
|
|
4
5
|
get threeObject(): CSS2DObject;
|
|
5
6
|
set threeObject(newThreeObject: CSS2DObject);
|
|
6
7
|
protected obj: CSS2DObject;
|
|
7
|
-
constructor(domElement: HTMLElement, center?: any);
|
|
8
|
+
constructor(app: ThreeJsApp, domElement: HTMLElement, center?: any);
|
|
8
9
|
set isHoverEnabled(bCanHorver: boolean);
|
|
9
10
|
set isClickEnabled(bCanClick: boolean);
|
|
10
11
|
setVisible(bVisible: boolean): void;
|
package/dist/lythreeframe/Object/Components/Light/DirectionalLight/DirectionalLightComponent.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { LightComponent } from "../LightComponent";
|
|
2
2
|
import { ColorRepresentation, DirectionalLight, Vector3 } from "three/webgpu";
|
|
3
3
|
import { World } from "../../../../Frame/World";
|
|
4
|
+
import { ThreeJsApp } from "@/lythreeframe/ThreeJsApp";
|
|
4
5
|
export declare class DirectionalLightComponent extends LightComponent {
|
|
5
6
|
get threeObject(): DirectionalLight;
|
|
6
7
|
set threeObject(newThreeObject: DirectionalLight);
|
|
7
8
|
get castShadow(): boolean;
|
|
8
9
|
set castShadow(value: boolean);
|
|
9
10
|
protected obj: DirectionalLight | null;
|
|
10
|
-
constructor(color?: ColorRepresentation, intensity?: number);
|
|
11
|
+
constructor(app: ThreeJsApp, color?: ColorRepresentation, intensity?: number);
|
|
11
12
|
setPosition(...args: [Vector3] | [number, number, number]): void;
|
|
12
13
|
update(): void;
|
|
13
14
|
onAddedToWorld(world: World): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ColorRepresentation, Light } from "three/webgpu";
|
|
2
2
|
import { SceneComponent } from "../SceneComponent";
|
|
3
|
+
import { ThreeJsApp } from "@/lythreeframe/ThreeJsApp";
|
|
3
4
|
export declare abstract class LightComponent extends SceneComponent {
|
|
4
5
|
get threeObject(): Light;
|
|
5
6
|
set threeObject(newThreeObject: Light);
|
|
@@ -8,5 +9,5 @@ export declare abstract class LightComponent extends SceneComponent {
|
|
|
8
9
|
get intensity(): number;
|
|
9
10
|
set intensity(intensity: number);
|
|
10
11
|
protected obj: Light | null;
|
|
11
|
-
protected constructor(light: Light);
|
|
12
|
+
protected constructor(app: ThreeJsApp, light: Light);
|
|
12
13
|
}
|
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { BufferGeometry, Material, Mesh } from "three/webgpu";
|
|
2
1
|
import { SceneComponent } from "../SceneComponent";
|
|
2
|
+
import { ThreeJsApp } from "@/lythreeframe/ThreeJsApp";
|
|
3
|
+
import { TAssetPointer } from "@/lythreeframe/AssetManagement/AssetPointer/AssetPointer";
|
|
4
|
+
import { BufferGeometry, Material, Mesh, Vector3 } from "three/webgpu";
|
|
3
5
|
export declare class MeshComponent extends SceneComponent {
|
|
4
6
|
get threeObject(): Mesh | null;
|
|
5
7
|
set threeObject(newThreeObject: Mesh);
|
|
6
8
|
protected obj: Mesh | null;
|
|
7
9
|
get geometry(): BufferGeometry | null;
|
|
8
10
|
set geometry(geo: BufferGeometry);
|
|
9
|
-
get
|
|
11
|
+
get geometryPtr(): TAssetPointer<BufferGeometry>;
|
|
12
|
+
set geometryPtr(geo: TAssetPointer<BufferGeometry>);
|
|
13
|
+
get material(): Material[];
|
|
14
|
+
get materialPtr(): TAssetPointer<Material>[];
|
|
10
15
|
set material(newMat: Material | Material[]);
|
|
11
|
-
|
|
12
|
-
|
|
16
|
+
set materialPtr(newMat: TAssetPointer<Material> | TAssetPointer<Material>[]);
|
|
17
|
+
protected _geometryPtr: TAssetPointer<BufferGeometry> | null;
|
|
18
|
+
protected _materialPtr: TAssetPointer<Material>[];
|
|
19
|
+
constructor(app: ThreeJsApp, geometry: BufferGeometry, material: Material | Material[]);
|
|
13
20
|
set castShadow(bCast: boolean);
|
|
14
21
|
get castShadow(): boolean;
|
|
15
|
-
set receiveShadow(bReceive:
|
|
16
|
-
get receiveShadow():
|
|
17
|
-
getBoundsCenterPosition():
|
|
18
|
-
getBoundsTopCenterPosition():
|
|
19
|
-
getBoundsBottomCenterPosition():
|
|
22
|
+
set receiveShadow(bReceive: boolean);
|
|
23
|
+
get receiveShadow(): boolean;
|
|
24
|
+
getBoundsCenterPosition(): Vector3;
|
|
25
|
+
getBoundsTopCenterPosition(): Vector3;
|
|
26
|
+
getBoundsBottomCenterPosition(): Vector3;
|
|
20
27
|
destroyObject(): void;
|
|
21
28
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Material } from "three/webgpu";
|
|
2
2
|
import { MeshComponent } from "../MeshComponent";
|
|
3
|
+
import { ThreeJsApp } from "@/lythreeframe/ThreeJsApp";
|
|
3
4
|
export declare class BoxComponent extends MeshComponent {
|
|
4
|
-
constructor(width?: number, height?: number, depth?: number, widthSegments?: number, heightSegments?: number, depthSegments?: number, material?: Material);
|
|
5
|
+
constructor(app: ThreeJsApp, width?: number, height?: number, depth?: number, widthSegments?: number, heightSegments?: number, depthSegments?: number, material?: Material);
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Material } from "three/webgpu";
|
|
2
2
|
import { MeshComponent } from "../MeshComponent";
|
|
3
|
+
import { ThreeJsApp } from "@/lythreeframe/ThreeJsApp";
|
|
3
4
|
export declare class PlaneComponent extends MeshComponent {
|
|
4
|
-
constructor(width: number, height: number, material: Material, widthSegments?: number, heightSegments?: number);
|
|
5
|
+
constructor(app: ThreeJsApp, width: number, height: number, material: Material, widthSegments?: number, heightSegments?: number);
|
|
5
6
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MeshComponent } from "../MeshComponent";
|
|
2
|
+
import { ThreeJsApp } from "@/lythreeframe/ThreeJsApp";
|
|
2
3
|
export declare class SphereComponent extends MeshComponent {
|
|
3
|
-
constructor(radius: number, material?: any, widthSegments?: number, heightSegments?: number);
|
|
4
|
+
constructor(app: ThreeJsApp, radius: number, material?: any, widthSegments?: number, heightSegments?: number);
|
|
4
5
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Sprite, Texture } from "three/webgpu";
|
|
2
2
|
import { SceneComponent } from "../../SceneComponent";
|
|
3
|
+
import { ThreeJsApp } from "@/lythreeframe/ThreeJsApp";
|
|
3
4
|
export declare class SpriteComponent extends SceneComponent {
|
|
4
5
|
get threeObject(): Sprite;
|
|
5
6
|
set threeObject(newThreeObject: Sprite);
|
|
6
7
|
protected obj: Sprite;
|
|
7
|
-
constructor(texture: Texture);
|
|
8
|
+
constructor(app: ThreeJsApp, texture: Texture);
|
|
8
9
|
}
|
|
@@ -3,13 +3,15 @@ import { Box3, Euler, Matrix4, Object3D, Quaternion, Vector3 } from "three/webgp
|
|
|
3
3
|
import { Component } from "./Component";
|
|
4
4
|
import { World } from "../../Frame/World";
|
|
5
5
|
import { AttachmentRules } from "../../Defines";
|
|
6
|
+
import { ThreeJsApp } from "@/lythreeframe/ThreeJsApp";
|
|
6
7
|
export declare class SceneComponent extends Component {
|
|
7
8
|
set parentActor(value: Actor | null);
|
|
8
9
|
get parentActor(): Actor | null;
|
|
9
10
|
protected bCanHover: boolean;
|
|
10
11
|
protected bCanClick: boolean;
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
get world(): World;
|
|
13
|
+
protected app: ThreeJsApp;
|
|
14
|
+
constructor(app: ThreeJsApp, newThreeObject: Object3D);
|
|
13
15
|
createDefaultThreeObject(): void;
|
|
14
16
|
get isVisible(): boolean;
|
|
15
17
|
setVisible(bVisible: boolean): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SkyMesh } from "three/examples/jsm/objects/SkyMesh.js";
|
|
2
2
|
import { SceneComponent } from "../SceneComponent";
|
|
3
|
+
import { ThreeJsApp } from "@/lythreeframe/ThreeJsApp";
|
|
3
4
|
export interface SkyComponentParam {
|
|
4
5
|
turbidity: number;
|
|
5
6
|
rayleigh: number;
|
|
@@ -15,6 +16,7 @@ export declare class SkyComponent extends SceneComponent {
|
|
|
15
16
|
protected obj: SkyMesh | null;
|
|
16
17
|
private skyParam;
|
|
17
18
|
private sunPosition;
|
|
18
|
-
constructor(skyparam?: SkyComponentParam);
|
|
19
|
+
constructor(app: ThreeJsApp, skyparam?: SkyComponentParam);
|
|
19
20
|
private updateSky;
|
|
21
|
+
destroyObject(): void;
|
|
20
22
|
}
|
|
@@ -5,20 +5,20 @@ import { Clock, OrthographicCamera, PerspectiveCamera } from "three/webgpu";
|
|
|
5
5
|
import { Delegate } from './Delegate';
|
|
6
6
|
import { CameraParam } from './Frame/Parameters/CameraParameter';
|
|
7
7
|
import { AppParam } from './Frame/Parameters/AppParameter';
|
|
8
|
+
import { AssetManager } from './AssetManagement/AssetManager';
|
|
8
9
|
export declare class ThreeJsApp {
|
|
9
10
|
get camera(): PerspectiveCamera | OrthographicCamera;
|
|
10
11
|
get clock(): Clock;
|
|
11
12
|
get world(): World;
|
|
12
13
|
get viewport(): Viewport;
|
|
13
14
|
get controller(): Controller;
|
|
14
|
-
get
|
|
15
|
-
get viewportClass(): typeof Viewport;
|
|
16
|
-
get controllerClass(): typeof Controller;
|
|
15
|
+
get assetManager(): AssetManager;
|
|
17
16
|
protected _clock: Clock;
|
|
18
17
|
protected _camera: PerspectiveCamera | OrthographicCamera;
|
|
19
18
|
protected _world: World;
|
|
20
19
|
protected _viewport: Viewport;
|
|
21
20
|
protected _controller: Controller;
|
|
21
|
+
protected _assetManager: AssetManager;
|
|
22
22
|
get appParam(): AppParam;
|
|
23
23
|
protected _appParam: AppParam;
|
|
24
24
|
get onCameraChangedDelegate(): Delegate<[void]>;
|