ohzi-core 11.2.4 → 12.0.0
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/build/index.mjs +2 -0
- package/build/index.mjs.map +1 -0
- package/package.json +10 -8
- package/src/BaseApplication.js +0 -3
- package/src/Browser.js +4 -4
- package/src/Initializer.js +5 -1
- package/src/OS.js +2 -2
- package/src/RenderLoop.js +9 -9
- package/src/ResourceContainer.js +0 -1
- package/src/Screen.js +55 -0
- package/src/Time.js +2 -14
- package/src/action_sequencer/ActionSequencer.js +7 -3
- package/src/gpu_particles/ParticleAttribute.js +2 -2
- package/src/index.js +18 -12
- package/src/loaders/AsyncAbstractLoader.js +144 -0
- package/src/loaders/AsyncAudiosLoader.js +34 -0
- package/src/loaders/AsyncObjectsLoader.js +38 -0
- package/src/loaders/AsyncTexturesLoader.js +70 -0
- package/src/loaders/assets_loader/AbstractLoader.js +129 -0
- package/src/loaders/assets_loader/AssetLoader.js +24 -0
- package/src/loaders/assets_loader/AsyncAssetsLoaderWorker.js +69 -0
- package/src/loaders/assets_loader/ResourceBatch.js +86 -0
- package/src/loaders/assets_loader/ResourceContainer.js +37 -0
- package/src/loaders/assets_loader/ResourceLoaderChecker.js +39 -0
- package/src/render_mode/NormalAORender.js +2 -2
- package/src/resource_loader/AsyncTextureLoader.js +1 -3
- package/src/resource_loader/BasisLoader.js +4 -0
- package/src/scenes/AbstractScene.js +166 -0
- package/src/scenes/loading_states/CompilatorManager.js +41 -0
- package/src/scenes/loading_states/HighQualityLoadingState.js +28 -0
- package/src/scenes/loading_states/LoadingState.js +106 -0
- package/src/scenes/loading_states/RegularLoadingState.js +41 -0
- package/src/utilities/OMath.js +2 -0
- package/src/view_components/ApplicationView.js +26 -3
- package/src/view_components/TransitionManager.js +15 -0
- package/src/view_components/ViewComponent.js +26 -12
- package/src/view_components/ViewComponentManager.js +10 -0
- package/src/view_components/ViewManager.js +52 -14
- package/src/view_components/ViewState.js +7 -7
- package/src/view_components/transition/ActionSequencerBuilder.js +3 -3
- package/src/view_components/transition/TransitionTable.js +2 -9
- package/types/BaseApplication.d.ts +0 -1
- package/types/Browser.d.ts +1 -1
- package/types/CameraManager.d.ts +4 -2
- package/types/Graphics.d.ts +3 -8
- package/types/Initializer.d.ts +1 -1
- package/types/RenderLoop.d.ts +2 -1
- package/types/SceneManager.d.ts +3 -1
- package/types/Time.d.ts +0 -5
- package/types/action_sequencer/ActionSequencer.d.ts +2 -2
- package/types/canvas_drawer/SimpleTextDrawer.d.ts +1 -0
- package/types/index.d.ts +122 -105
- package/types/loaders/AsyncAbstractLoader.d.ts +27 -0
- package/types/loaders/AsyncAudiosLoader.d.ts +5 -0
- package/types/loaders/AsyncObjectsLoader.d.ts +6 -0
- package/types/loaders/AsyncTexturesLoader.d.ts +8 -0
- package/types/render_mode/NormalAORender.d.ts +0 -1
- package/types/resource_loader/AsyncTextureLoader.d.ts +1 -1
- package/types/resource_loader/AudioLoader.d.ts +1 -0
- package/types/resource_loader/BasisLoader.d.ts +1 -0
- package/types/resource_loader/CubemapLoader.d.ts +1 -0
- package/types/resource_loader/DAELoader.d.ts +1 -0
- package/types/resource_loader/FileLoader.d.ts +1 -0
- package/types/resource_loader/FontLoader.d.ts +1 -0
- package/types/resource_loader/GLTFDRACOLoader.d.ts +1 -0
- package/types/resource_loader/GLTFLoader.d.ts +1 -0
- package/types/resource_loader/HDRCubeTextureLoader.d.ts +1 -0
- package/types/resource_loader/OBJLoader.d.ts +1 -0
- package/types/resource_loader/PointArrayLoader.d.ts +1 -0
- package/types/resource_loader/RGBETextureLoader.d.ts +1 -0
- package/types/resource_loader/TextLoader.d.ts +1 -0
- package/types/scenes/AbstractScene.d.ts +31 -0
- package/types/scenes/loading_states/CompilatorManager.d.ts +8 -0
- package/types/scenes/loading_states/HighQualityLoadingState.d.ts +3 -0
- package/types/scenes/loading_states/LoadingState.d.ts +28 -0
- package/types/scenes/loading_states/RegularLoadingState.d.ts +5 -0
- package/types/utilities/FrustumPointFitter.d.ts +3 -1
- package/types/utilities/OMath.d.ts +9 -9
- package/types/view_components/ApplicationView.d.ts +3 -1
- package/types/view_components/ViewComponent.d.ts +5 -1
- package/types/view_components/ViewComponentManager.d.ts +1 -0
- package/types/view_components/ViewManager.d.ts +22 -4
- package/types/view_components/ViewState.d.ts +3 -0
- package/types/view_components/transition/ActionSequencerBuilder.d.ts +1 -1
- package/types/view_components/transition/TransitionTable.d.ts +0 -2
- package/build/index.module.js +0 -2
- package/build/index.module.js.map +0 -1
- package/src/view_components/ApplicationViewController.js +0 -85
- package/src/view_components/VCManager.js +0 -9
- package/src/view_components/ViewComponentController.js +0 -73
- package/src/view_components/ViewComponentControllerManager.js +0 -59
- package/src/view_components/ViewControllerManager.js +0 -91
- package/src/view_components/WorkerToMain.js +0 -25
- package/types/blitter_index.d.ts +0 -6
- package/types/render_mode/TransparencyMixRender.d.ts +0 -21
- package/types/view_components/ApplicationViewController.d.ts +0 -11
- package/types/view_components/VCManager.d.ts +0 -5
- package/types/view_components/ViewComponentController.d.ts +0 -14
- package/types/view_components/ViewComponentControllerManager.d.ts +0 -12
- package/types/view_components/ViewControllerManager.d.ts +0 -12
- package/types/view_components/WorkerToMain.d.ts +0 -8
package/types/index.d.ts
CHANGED
|
@@ -1,106 +1,123 @@
|
|
|
1
|
-
import { BaseApplication } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
|
|
75
|
-
import {
|
|
76
|
-
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
|
|
87
|
-
import {
|
|
88
|
-
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
|
|
1
|
+
import { BaseApplication } from './BaseApplication';
|
|
2
|
+
import { AddMaterial } from './materials/AddMaterial';
|
|
3
|
+
import { BaseShaderMaterial } from './materials/BaseShaderMaterial';
|
|
4
|
+
import { BlitMaterial } from './materials/BlitMaterial';
|
|
5
|
+
import { UnrealBloomComposeMaterial } from './materials/UnrealBloomComposeMaterial';
|
|
6
|
+
import { BaseRender } from './render_mode/BaseRender';
|
|
7
|
+
import { AbstractLoader } from './resource_loader/AbstractLoader';
|
|
8
|
+
import { AbstractScene } from './scenes/AbstractScene';
|
|
9
|
+
import { HighQualityLoadingState } from './scenes/loading_states/HighQualityLoadingState';
|
|
10
|
+
import { LoadingState } from './scenes/loading_states/LoadingState';
|
|
11
|
+
import { RegularLoadingState } from './scenes/loading_states/RegularLoadingState';
|
|
12
|
+
import { ApplicationView } from './view_components/ApplicationView';
|
|
13
|
+
import { ActionSequencerBuilder } from './view_components/transition/ActionSequencerBuilder';
|
|
14
|
+
|
|
15
|
+
import { Browser } from './Browser';
|
|
16
|
+
import { CameraManager } from './CameraManager';
|
|
17
|
+
import { CanvasDrawer } from './canvas_drawer/CanvasDrawer';
|
|
18
|
+
import { SimpleTextDrawer } from './canvas_drawer/SimpleTextDrawer';
|
|
19
|
+
import { Capabilities } from './Capabilities';
|
|
20
|
+
import { Debug } from './Debug';
|
|
21
|
+
import { Graphics } from './Graphics';
|
|
22
|
+
import { CSSAnimator } from './html_utilities/CSSAnimator';
|
|
23
|
+
import { Initializer } from './Initializer';
|
|
24
|
+
import { KeyboardInput } from './KeyboardInput';
|
|
25
|
+
import { OrthographicCamera } from './OrthographicCamera';
|
|
26
|
+
import { OS } from './OS';
|
|
27
|
+
import { OScreen } from './OScreen';
|
|
28
|
+
import { PerspectiveCamera } from './PerspectiveCamera';
|
|
29
|
+
import { DebugNormalsRender } from './render_mode/DebugNormalsRender';
|
|
30
|
+
import { NormalAORender } from './render_mode/NormalAORender';
|
|
31
|
+
import { NormalRender } from './render_mode/NormalRender';
|
|
32
|
+
import { UnrealBloomRender } from './render_mode/UnrealBloomRender';
|
|
33
|
+
import { VRRender } from './render_mode/VRRender';
|
|
34
|
+
import { RenderLoop } from './RenderLoop';
|
|
35
|
+
import { SceneManager } from './SceneManager';
|
|
36
|
+
import { Screen } from './Screen';
|
|
37
|
+
import { Time } from './Time';
|
|
38
|
+
import { UI } from './UI';
|
|
39
|
+
import { DrawIOAnimationSheet } from './view_components/transition/DrawIOAnimationSheet';
|
|
40
|
+
import { TransitionTable } from './view_components/transition/TransitionTable';
|
|
41
|
+
import { ViewComponent } from './view_components/ViewComponent';
|
|
42
|
+
import { ViewComponentManager } from './view_components/ViewComponentManager';
|
|
43
|
+
import { ViewManager } from './view_components/ViewManager';
|
|
44
|
+
|
|
45
|
+
import { Arrow } from './primitives/Arrow';
|
|
46
|
+
import { Cube } from './primitives/Cube';
|
|
47
|
+
import { HorizontalPlane } from './primitives/HorizontalPlane';
|
|
48
|
+
import { Sphere } from './primitives/Sphere';
|
|
49
|
+
import { VerticalPlane } from './primitives/VerticalPlane';
|
|
50
|
+
|
|
51
|
+
import { ArrayUtilities } from './utilities/ArrayUtilities';
|
|
52
|
+
import { CameraUtilities } from './utilities/CameraUtilities';
|
|
53
|
+
import { EasingFunctions } from './utilities/EasingFunctions';
|
|
54
|
+
import { FrustumPointFitter } from './utilities/FrustumPointFitter';
|
|
55
|
+
import { GeometryUtilities } from './utilities/GeometryUtilities';
|
|
56
|
+
import { HTMLUtilities } from './utilities/HTMLUtilities';
|
|
57
|
+
import { ImageUtilities } from './utilities/ImageUtilities';
|
|
58
|
+
import { MeshSampler } from './utilities/MeshSampler';
|
|
59
|
+
import { ModelUtilities } from './utilities/ModelUtilities';
|
|
60
|
+
import { ObjectUtilities } from './utilities/ObjectUtilities';
|
|
61
|
+
import { OMath } from './utilities/OMath';
|
|
62
|
+
import { OrthographicFrustumPointFitter } from './utilities/OrthographicFrustumPointFitter';
|
|
63
|
+
import { PerspectiveFrustumPointFitter } from './utilities/PerspectiveFrustumPointFitter';
|
|
64
|
+
import { StringUtilities } from './utilities/StringUtilities';
|
|
65
|
+
import { TimeUtilities } from './utilities/TimeUtilities';
|
|
66
|
+
import { Validation } from './utilities/Validation';
|
|
67
|
+
|
|
68
|
+
import { Grid } from './components/Grid';
|
|
69
|
+
import { Line } from './components/Line';
|
|
70
|
+
import { Text2D } from './components/Text2D';
|
|
71
|
+
import { UIElement } from './components/UIElement';
|
|
72
|
+
import { UpdatableMaterialMesh } from './components/UpdatableMaterialMesh';
|
|
73
|
+
import { WorldImage } from './components/WorldImage';
|
|
74
|
+
|
|
75
|
+
import { SDFTextBatch } from './components/sdf_text/SDFTextBatch';
|
|
76
|
+
|
|
77
|
+
import { ActionEvent } from './action_sequencer/ActionEvent';
|
|
78
|
+
import { ActionInterpolator } from './action_sequencer/ActionInterpolator';
|
|
79
|
+
import { ActionSequencer } from './action_sequencer/ActionSequencer';
|
|
80
|
+
import { NumberInterpolator } from './action_sequencer/NumberInterpolator';
|
|
81
|
+
import { VectorInterpolator } from './action_sequencer/VectorInterpolator';
|
|
82
|
+
|
|
83
|
+
import { DualFilteringBlurrer } from './render_utilities/DualFilteringBlurrer';
|
|
84
|
+
import { GaussianBlurrer } from './render_utilities/GaussianBlurrer';
|
|
85
|
+
import { MedianFilter } from './render_utilities/MedianFilter';
|
|
86
|
+
|
|
87
|
+
import { Blurrer } from './render_utilities/Blurrer';
|
|
88
|
+
|
|
89
|
+
import { GPUParticleSystem } from './gpu_particles/GPUParticleSystem';
|
|
90
|
+
import { ParticleAttribute } from './gpu_particles/ParticleAttribute';
|
|
91
|
+
import { ParticlePositionAttribute } from './gpu_particles/ParticlePositionAttribute';
|
|
92
|
+
|
|
93
|
+
import { DualFilteringBlurMaterial } from './materials/DualFilteringBlurMaterial';
|
|
94
|
+
import { MeshBatcher } from './static_batcher/MeshBatcher';
|
|
95
|
+
|
|
96
|
+
import { AsyncTextureLoader } from './resource_loader/AsyncTextureLoader';
|
|
97
|
+
import { AudioLoader } from './resource_loader/AudioLoader';
|
|
98
|
+
import { BasisLoader } from './resource_loader/BasisLoader';
|
|
99
|
+
import { CubemapLoader } from './resource_loader/CubemapLoader';
|
|
100
|
+
import { DAELoader } from './resource_loader/DAELoader';
|
|
101
|
+
import { FileLoader } from './resource_loader/FileLoader';
|
|
102
|
+
import { FontLoader } from './resource_loader/FontLoader';
|
|
103
|
+
import { GLTFDRACOLoader } from './resource_loader/GLTFDRACOLoader';
|
|
104
|
+
import { GLTFLoader } from './resource_loader/GLTFLoader';
|
|
105
|
+
import { HDRCubeTextureLoader } from './resource_loader/HDRCubeTextureLoader';
|
|
106
|
+
import { JSONLoader } from './resource_loader/JSONLoader';
|
|
107
|
+
import { OBJLoader } from './resource_loader/OBJLoader';
|
|
108
|
+
import { PointArrayLoader } from './resource_loader/PointArrayLoader';
|
|
109
|
+
import { RGBETextureLoader } from './resource_loader/RGBETextureLoader';
|
|
110
|
+
import { TextLoader } from './resource_loader/TextLoader';
|
|
111
|
+
import { TextureLoader } from './resource_loader/TextureLoader';
|
|
112
|
+
import { VideoLoader } from './resource_loader/VideoLoader';
|
|
113
|
+
|
|
114
|
+
import { AsyncAbstractLoader } from './loaders/AsyncAbstractLoader';
|
|
115
|
+
import { AsyncAudiosLoader } from './loaders/AsyncAudiosLoader';
|
|
116
|
+
import { AsyncObjectsLoader } from './loaders/AsyncObjectsLoader';
|
|
117
|
+
import { AsyncTexturesLoader } from './loaders/AsyncTexturesLoader';
|
|
118
|
+
import { ResourceBatch } from './resource_loader/ResourceBatch';
|
|
119
|
+
import { ResourceContainer } from './ResourceContainer';
|
|
120
|
+
import { TransitionManager } from './view_components/TransitionManager';
|
|
121
|
+
|
|
122
|
+
export { AbstractLoader, AbstractScene, ActionEvent, ActionInterpolator, ActionSequencer, ActionSequencerBuilder, AddMaterial, ApplicationView, ArrayUtilities, Arrow, AsyncAbstractLoader, AsyncAudiosLoader, AsyncObjectsLoader, AsyncTextureLoader, AsyncTexturesLoader, AudioLoader, BaseApplication, BaseRender, BaseShaderMaterial, BasisLoader, BlitMaterial, Blurrer, Browser, BufferGeometryUtils, CameraManager, CameraUtilities, CanvasDrawer, Capabilities, CSSAnimator, Cube, CubemapLoader, DAELoader, Debug, DebugNormalsRender, DrawIOAnimationSheet, DualFilteringBlurMaterial, DualFilteringBlurrer, EasingFunctions, FileLoader, FontLoader, FrustumPointFitter, GaussianBlurrer, GeometryUtilities, GLTFDRACOLoader, GLTFLoader, GPUParticleSystem, Graphics, Grid, HDRCubeTextureLoader, HighQualityLoadingState, HorizontalPlane, HTMLUtilities, ImageUtilities, Initializer, JSONLoader, KeyboardInput, Line, LoadingState, MedianFilter, MeshBatcher, MeshSampler, ModelUtilities, NormalAORender, NormalRender, NumberInterpolator, ObjectUtilities, OBJLoader, OMath, OrthographicCamera, OrthographicFrustumPointFitter, OS, OScreen, ParticleAttribute, ParticlePositionAttribute, PerspectiveCamera, PerspectiveFrustumPointFitter, PointArrayLoader, RegularLoadingState, RenderLoop, ResourceBatch, ResourceContainer, RGBETextureLoader, SceneManager, Screen, SDFTextBatch, SimpleTextDrawer, Sphere, StringUtilities, Text2D, TextLoader, TextureLoader, Time, TimeUtilities, TransitionManager, TransitionTable, UI, UIElement, UnrealBloomComposeMaterial, UnrealBloomRender, UpdatableMaterialMesh, Validation, VectorInterpolator, VerticalPlane, VideoLoader, ViewComponent, ViewComponentManager, ViewManager, VRRender, WorldImage };
|
|
106
123
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export class AsyncAbstractLoader {
|
|
2
|
+
static create_worker(): Worker;
|
|
3
|
+
constructor(name: any, assets: any, worker: any);
|
|
4
|
+
resource_container: {
|
|
5
|
+
init(): void;
|
|
6
|
+
resources: {};
|
|
7
|
+
resources_by_url: {};
|
|
8
|
+
set_resource(name: any, url: any, resource: any): void;
|
|
9
|
+
get_resource(name: any): any;
|
|
10
|
+
get(name: any): any;
|
|
11
|
+
};
|
|
12
|
+
assets: any;
|
|
13
|
+
name: any;
|
|
14
|
+
worker: any;
|
|
15
|
+
bound_on_message: any;
|
|
16
|
+
assets_loaders: void;
|
|
17
|
+
load(): void;
|
|
18
|
+
is_loaded(): boolean;
|
|
19
|
+
get_progress(): number;
|
|
20
|
+
__get_loaded_bytes(): number;
|
|
21
|
+
__get_total_bytes(): number;
|
|
22
|
+
get_assets_names(): any[];
|
|
23
|
+
__setup_worker(): void;
|
|
24
|
+
on_message(e: any): void;
|
|
25
|
+
__on_assets_loaded(resources: any): void;
|
|
26
|
+
__setup_loaders(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export class AsyncObjectsLoader extends AsyncAbstractLoader {
|
|
2
|
+
__setup_loaders(): (GLTFDRACOLoader | GLTFLoader)[];
|
|
3
|
+
}
|
|
4
|
+
import { AsyncAbstractLoader } from "./AsyncAbstractLoader";
|
|
5
|
+
import { GLTFDRACOLoader } from "../resource_loader/GLTFDRACOLoader";
|
|
6
|
+
import { GLTFLoader } from "../resource_loader/GLTFLoader";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export class AsyncTexturesLoader extends AsyncAbstractLoader {
|
|
2
|
+
__setup_loaders(): (AsyncTextureLoader | BasisLoader | CubemapLoader | RGBETextureLoader)[];
|
|
3
|
+
}
|
|
4
|
+
import { AsyncAbstractLoader } from "./AsyncAbstractLoader";
|
|
5
|
+
import { AsyncTextureLoader } from "../resource_loader/AsyncTextureLoader";
|
|
6
|
+
import { BasisLoader } from "../resource_loader/BasisLoader";
|
|
7
|
+
import { CubemapLoader } from "../resource_loader/CubemapLoader";
|
|
8
|
+
import { RGBETextureLoader } from "../resource_loader/RGBETextureLoader";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export class AsyncTextureLoader extends AbstractLoader {
|
|
2
2
|
constructor(resource_id: any, url: any, size: any, flipY?: boolean, premultiplyAlpha?: boolean, colorSpaceConversion?: boolean);
|
|
3
|
-
original_url: string;
|
|
4
3
|
colorSpaceConversion: boolean;
|
|
5
4
|
premultiplyAlpha: boolean;
|
|
6
5
|
flipY: boolean;
|
|
6
|
+
on_preloaded_finished(resource_container: any): void;
|
|
7
7
|
load_with_old_method(resource_container: any): void;
|
|
8
8
|
load_with_new_method(resource_container: any): void;
|
|
9
9
|
}
|
|
@@ -3,6 +3,7 @@ export class AudioLoader extends AbstractLoader {
|
|
|
3
3
|
loop: boolean;
|
|
4
4
|
volume: number;
|
|
5
5
|
positional: boolean;
|
|
6
|
+
on_preloaded_finished(resource_container: any): void;
|
|
6
7
|
instantiate_audio(resource_container: any): void;
|
|
7
8
|
}
|
|
8
9
|
import { AbstractLoader } from "./AbstractLoader";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export class PointArrayLoader extends AbstractLoader {
|
|
2
2
|
constructor(resource_id: any, url: any, size: any);
|
|
3
3
|
loader: any;
|
|
4
|
+
on_preloaded_finished(resource_container: any): void;
|
|
4
5
|
parse_path(raw_data: any): any[];
|
|
5
6
|
}
|
|
6
7
|
import { AbstractLoader } from "./AbstractLoader";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export class AbstractScene {
|
|
2
|
+
constructor({ name, compilators }: {
|
|
3
|
+
name: any;
|
|
4
|
+
compilators: any;
|
|
5
|
+
});
|
|
6
|
+
name: any;
|
|
7
|
+
is_loaded: boolean;
|
|
8
|
+
is_high_loaded: boolean;
|
|
9
|
+
loading_states: {
|
|
10
|
+
regular: RegularLoadingState;
|
|
11
|
+
high: HighQualityLoadingState;
|
|
12
|
+
};
|
|
13
|
+
current_loading_state: LoadingState;
|
|
14
|
+
get loading_progress(): number;
|
|
15
|
+
init(): void;
|
|
16
|
+
load(): void;
|
|
17
|
+
get_objects(): any[];
|
|
18
|
+
dispose_cpu(): void;
|
|
19
|
+
dispose(): void;
|
|
20
|
+
set_assets(scene_objects: any, scene_textures: any, scene_sounds: any): void;
|
|
21
|
+
set_high_assets(scene_objects: any, scene_textures: any, scene_sounds: any): void;
|
|
22
|
+
set_loading_state(state: any): void;
|
|
23
|
+
update_loading_state(): void;
|
|
24
|
+
update(): void;
|
|
25
|
+
on_assets_ready(): void;
|
|
26
|
+
on_assets_compiled(): void;
|
|
27
|
+
on_high_quality_assets_ready(): void;
|
|
28
|
+
}
|
|
29
|
+
import { RegularLoadingState } from "./loading_states/RegularLoadingState";
|
|
30
|
+
import { HighQualityLoadingState } from "./loading_states/HighQualityLoadingState";
|
|
31
|
+
import { LoadingState } from "./loading_states/LoadingState";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export class LoadingState {
|
|
2
|
+
constructor(scene: any, { SceneCompilator, TexturesCompilator, AudiosCompilator }: {
|
|
3
|
+
SceneCompilator: any;
|
|
4
|
+
TexturesCompilator: any;
|
|
5
|
+
AudiosCompilator: any;
|
|
6
|
+
});
|
|
7
|
+
scene: any;
|
|
8
|
+
SceneCompilator: any;
|
|
9
|
+
TexturesCompilator: any;
|
|
10
|
+
AudiosCompilator: any;
|
|
11
|
+
loaders: any[];
|
|
12
|
+
compilators: any[];
|
|
13
|
+
callback_called: boolean;
|
|
14
|
+
set_assets(scene_objects: any, scene_textures: any, scene_sounds: any): void;
|
|
15
|
+
scene_objects: any;
|
|
16
|
+
scene_textures: any;
|
|
17
|
+
scene_sounds: any;
|
|
18
|
+
get loading_progress(): number;
|
|
19
|
+
load(): void;
|
|
20
|
+
on_enter(): void;
|
|
21
|
+
on_exit(): void;
|
|
22
|
+
update(): void;
|
|
23
|
+
setup_loader(): void;
|
|
24
|
+
compilator_manager: CompilatorManager;
|
|
25
|
+
is_loaded(): boolean;
|
|
26
|
+
is_compiled(): boolean;
|
|
27
|
+
}
|
|
28
|
+
import { CompilatorManager } from "./CompilatorManager";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export class FrustumPointFitter {
|
|
2
|
-
sphere:
|
|
2
|
+
sphere: Sphere;
|
|
3
3
|
fit_points(points: any, camera_quaternion: any, vertical_fov: any, aspect: any): any;
|
|
4
4
|
apply_center_correction_to_pos(target_pos: any, points: any, camera_quaternion: any, up_plane: any, down_plane: any, left_plane: any, right_plane: any): void;
|
|
5
5
|
get_vertical_correction(points: any, down_plane: any, up_plane: any, camera_quaternion: any): any;
|
|
@@ -10,3 +10,5 @@ export class FrustumPointFitter {
|
|
|
10
10
|
get_right_plane_normal(camera_quaternion: any, h_fov: any): any;
|
|
11
11
|
get_distance_to_fit_rect(width: any, height: any, vertical_fov: any, aspect: any): number;
|
|
12
12
|
}
|
|
13
|
+
|
|
14
|
+
import { Sphere } from "three";
|
|
@@ -6,16 +6,16 @@ export class OMath {
|
|
|
6
6
|
static project_points_on_plane(points: any, plane: any): any[];
|
|
7
7
|
static matrix4_lerp(from: any, to: any, target: any, t: any): void;
|
|
8
8
|
static equals(x1: any, x2: any): boolean;
|
|
9
|
-
static lerp(x:
|
|
10
|
-
static clamp(value:
|
|
11
|
-
static euclideanModulo(n:
|
|
12
|
-
static pingpong(x:
|
|
13
|
-
static degToRad(degrees:
|
|
14
|
-
static
|
|
15
|
-
static
|
|
16
|
-
static rad_to_deg(radians:
|
|
9
|
+
static lerp(x: number, y: number, t: number): number;
|
|
10
|
+
static clamp(value: number, min: number, max: number): number;
|
|
11
|
+
static euclideanModulo(n: number, m: number): number;
|
|
12
|
+
static pingpong(x: number, length: number): number;
|
|
13
|
+
static degToRad(degrees: number): number;
|
|
14
|
+
static deg_to_rad(degrees: number): number;
|
|
15
|
+
static radToDeg(radians: number): number;
|
|
16
|
+
static rad_to_deg(radians: number): number;
|
|
17
17
|
static perspective_divide(v: any): any;
|
|
18
18
|
static points_average(points: any): any;
|
|
19
19
|
static get_random_color(): string;
|
|
20
|
-
static saturate(x:
|
|
20
|
+
static saturate(x: number): number;
|
|
21
21
|
}
|
|
@@ -6,6 +6,8 @@ export class ApplicationView extends ViewState {
|
|
|
6
6
|
});
|
|
7
7
|
container: any;
|
|
8
8
|
url: any;
|
|
9
|
-
|
|
9
|
+
load_html_images(): void;
|
|
10
|
+
load_html_videos(): void;
|
|
11
|
+
set_opacity(current_state_data: any): void;
|
|
10
12
|
}
|
|
11
13
|
import { ViewState } from "./ViewState";
|
|
@@ -5,9 +5,13 @@ export class ViewComponent {
|
|
|
5
5
|
});
|
|
6
6
|
name: any;
|
|
7
7
|
container: any;
|
|
8
|
+
hidden: boolean;
|
|
8
9
|
start(): void;
|
|
9
10
|
on_enter(): void;
|
|
10
11
|
update(): void;
|
|
11
12
|
on_exit(): void;
|
|
12
|
-
set_opacity(
|
|
13
|
+
set_opacity(current_state_data: any): void;
|
|
14
|
+
toggle_hidden(): void;
|
|
15
|
+
load_html_images(): void;
|
|
16
|
+
load_html_videos(): void;
|
|
13
17
|
}
|
|
@@ -7,6 +7,7 @@ declare class ViewComponentManager {
|
|
|
7
7
|
register_component(component: any): void;
|
|
8
8
|
enable_component(component: any): void;
|
|
9
9
|
disable_component(component: any): void;
|
|
10
|
+
get_component_by_name(component_name: any): void;
|
|
10
11
|
get(component_name: any): any;
|
|
11
12
|
__set_components_opacities(): void;
|
|
12
13
|
}
|