ohzi-core 12.0.2 → 12.1.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 +1 -1
- package/build/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/resource_loader/JSONLoader.js +8 -5
- package/src/scenes/AbstractScene.js +4 -4
- package/src/scenes/loading_states/LoadingState.js +12 -1
- package/types/Browser.d.ts +2 -4
- package/types/Graphics.d.ts +10 -3
- package/types/blitter_index.d.ts +6 -0
- package/types/index.d.ts +108 -122
- package/types/render_mode/NormalAORender.d.ts +1 -0
- package/types/resource_loader/AbstractLoader.d.ts +3 -0
- package/types/resource_loader/AsyncTextureLoader.d.ts +1 -0
- package/types/resource_loader/HDRCubeTextureLoader.d.ts +2 -2
- package/types/scenes/AbstractScene.d.ts +4 -3
- package/types/scenes/loading_states/LoadingState.d.ts +4 -1
- package/types/view_components/ApplicationView.d.ts +3 -3
- package/types/view_components/TransitionManager.d.ts +3 -0
- package/types/view_components/ViewComponent.d.ts +0 -2
- package/types/view_components/ViewManager.d.ts +0 -13
- package/types/view_components/ViewState.d.ts +2 -5
package/package.json
CHANGED
|
@@ -7,16 +7,19 @@ class JSONLoader extends AbstractLoader
|
|
|
7
7
|
super(resource_id, url, size);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
on_preloaded_finished(resource_container
|
|
10
|
+
on_preloaded_finished(resource_container)
|
|
11
11
|
{
|
|
12
12
|
if (resource_container.resources_by_url[this.url] === undefined)
|
|
13
13
|
{
|
|
14
|
-
|
|
14
|
+
fetch(this.url).then((response) =>
|
|
15
15
|
{
|
|
16
|
-
|
|
16
|
+
response.json().then((json) =>
|
|
17
|
+
{
|
|
18
|
+
resource_container.set_resource(this.resource_id, this.url, json);
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
this.__update_downloaded_bytes(1, 1);
|
|
21
|
+
this.__loading_ended();
|
|
22
|
+
});
|
|
20
23
|
});
|
|
21
24
|
}
|
|
22
25
|
else
|
|
@@ -112,14 +112,14 @@ class AbstractScene extends Scene
|
|
|
112
112
|
// AvatarSystem.component_container.component_instancer.data_texture.data = new Float32Array(4);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
set_assets(scene_objects, scene_textures, scene_sounds)
|
|
115
|
+
set_assets(scene_objects, scene_textures, scene_sounds, custom_loaders, custom_compilators, custom_data)
|
|
116
116
|
{
|
|
117
|
-
this.loading_states.regular.set_assets(scene_objects, scene_textures, scene_sounds);
|
|
117
|
+
this.loading_states.regular.set_assets(scene_objects, scene_textures, scene_sounds, custom_loaders, custom_compilators, custom_data);
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
set_high_assets(scene_objects, scene_textures, scene_sounds)
|
|
120
|
+
set_high_assets(scene_objects, scene_textures, scene_sounds, custom_loaders, custom_compilators, custom_data)
|
|
121
121
|
{
|
|
122
|
-
this.loading_states.high.set_assets(scene_objects, scene_textures, scene_sounds);
|
|
122
|
+
this.loading_states.high.set_assets(scene_objects, scene_textures, scene_sounds, custom_loaders, custom_compilators, custom_data);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
set_loading_state(state)
|
|
@@ -21,11 +21,15 @@ export class LoadingState
|
|
|
21
21
|
this.callback_called = false;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
set_assets(scene_objects, scene_textures, scene_sounds)
|
|
24
|
+
set_assets(scene_objects, scene_textures, scene_sounds, custom_loaders = [], custom_compilators = [], custom_data = [])
|
|
25
25
|
{
|
|
26
26
|
this.scene_objects = scene_objects;
|
|
27
27
|
this.scene_textures = scene_textures;
|
|
28
28
|
this.scene_sounds = scene_sounds;
|
|
29
|
+
|
|
30
|
+
this.custom_loaders = custom_loaders;
|
|
31
|
+
this.custom_compilators = custom_compilators;
|
|
32
|
+
this.custom_data = custom_data;
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
get loading_progress()
|
|
@@ -81,6 +85,13 @@ export class LoadingState
|
|
|
81
85
|
this.loaders.push(audios_loader);
|
|
82
86
|
compilators.push(new this.AudiosCompilator(audios_loader.get_assets_names()));
|
|
83
87
|
|
|
88
|
+
for (let i = 0; i < this.custom_loaders.length; i++)
|
|
89
|
+
{
|
|
90
|
+
const loader = new this.custom_loaders[i](this.scene.name, this.custom_data[i], assets_worker);
|
|
91
|
+
this.loaders.push(loader);
|
|
92
|
+
compilators.push(new this.custom_compilators[i](loader.get_assets_names()));
|
|
93
|
+
}
|
|
94
|
+
|
|
84
95
|
this.compilator_manager = new CompilatorManager(compilators);
|
|
85
96
|
}
|
|
86
97
|
|
package/types/Browser.d.ts
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
export { browser as Browser };
|
|
2
2
|
declare const browser: Browser;
|
|
3
3
|
declare class Browser {
|
|
4
|
-
init(): void
|
|
4
|
+
init(): Promise<void>;
|
|
5
5
|
browser_name: string;
|
|
6
6
|
agent: string;
|
|
7
|
-
vr_browser_keywords: string[];
|
|
8
|
-
vr_browser_name: string;
|
|
9
7
|
has_web_xr_support: boolean;
|
|
8
|
+
is_vr: any;
|
|
10
9
|
version: number;
|
|
11
10
|
get name(): string;
|
|
12
11
|
get is_safari(): boolean;
|
|
13
12
|
get is_chrome(): boolean;
|
|
14
13
|
get is_edge(): boolean;
|
|
15
14
|
get is_edge_chromium(): boolean;
|
|
16
|
-
get is_vr(): boolean;
|
|
17
15
|
get has_webm(): boolean;
|
|
18
16
|
get has_hvec(): boolean;
|
|
19
17
|
get preferred_video_extension(): "webm" | "hvec.mp4" | "mp4";
|
package/types/Graphics.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
export { graphics as Graphics };
|
|
2
2
|
declare const graphics: Graphics;
|
|
3
3
|
declare class Graphics {
|
|
4
|
-
init(canvas
|
|
4
|
+
init({ canvas, core_attributes, context_attributes, threejs_attributes, dpr }: {
|
|
5
|
+
canvas: any;
|
|
6
|
+
core_attributes: any;
|
|
7
|
+
context_attributes: any;
|
|
8
|
+
threejs_attributes: any;
|
|
9
|
+
dpr: any;
|
|
10
|
+
}): void;
|
|
5
11
|
_renderer: any;
|
|
6
12
|
blitter: Blitter;
|
|
7
13
|
canvas: any;
|
|
@@ -29,18 +35,19 @@ declare class Graphics {
|
|
|
29
35
|
threejs_attributes: {
|
|
30
36
|
logarithmicDepthBuffer: boolean;
|
|
31
37
|
};
|
|
32
|
-
resize_observer: ResizeObserver;
|
|
33
38
|
get dom_element(): any;
|
|
34
39
|
get depth_normals_RT(): any;
|
|
35
40
|
set_state(new_state: any): void;
|
|
36
41
|
update(): void;
|
|
37
42
|
__update_current_camera(): void;
|
|
38
43
|
render(scene: any, camera: any, RT: any, override_mat: any): void;
|
|
44
|
+
compile(scene: any, camera: any, RT: any, override_mat: any): void;
|
|
45
|
+
compile_async(scene: any, camera: any, RT: any, override_mat: any, target_scene: any): Promise<any>;
|
|
39
46
|
render_scene(scene: any): void;
|
|
40
47
|
__apply_override_material(scene: any, mat: any): void;
|
|
41
48
|
readback_RT(RT: any, buffer: any): void;
|
|
42
49
|
clear(RT: any, camera: any, clear_depth: any, clear_stencil: any): void;
|
|
43
|
-
on_resize(entries: any): void;
|
|
50
|
+
on_resize(entries: any, dpr: any): void;
|
|
44
51
|
material_pass(mat: any, dst: any): void;
|
|
45
52
|
blit(src_RT: any, dst_RT: any, mat: any): void;
|
|
46
53
|
blit_clear_with_material(dst_RT: any, mat: any): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MedianFilter } from "./render_utilities/MedianFilter";
|
|
2
|
+
import { GaussianBlurrer } from "./render_utilities/GaussianBlurrer";
|
|
3
|
+
import { Blurrer } from "./render_utilities/Blurrer";
|
|
4
|
+
import { Blitter } from "./render_utilities/Blitter";
|
|
5
|
+
import { DualFilteringBlurMaterial } from "./materials/DualFilteringBlurMaterial";
|
|
6
|
+
export { MedianFilter, GaussianBlurrer, Blurrer, Blitter, DualFilteringBlurMaterial };
|
package/types/index.d.ts
CHANGED
|
@@ -1,123 +1,109 @@
|
|
|
1
|
-
import {
|
|
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
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
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
|
-
|
|
1
|
+
import { AbstractLoader } from "./resource_loader/AbstractLoader";
|
|
2
|
+
import { AbstractScene } from "./scenes/AbstractScene";
|
|
3
|
+
import { ActionEvent } from "./action_sequencer/ActionEvent";
|
|
4
|
+
import { ActionInterpolator } from "./action_sequencer/ActionInterpolator";
|
|
5
|
+
import { ActionSequencer } from "./action_sequencer/ActionSequencer";
|
|
6
|
+
import { ActionSequencerBuilder } from "./view_components/transition/ActionSequencerBuilder";
|
|
7
|
+
import { AddMaterial } from "./materials/AddMaterial";
|
|
8
|
+
import { ApplicationView } from "./view_components/ApplicationView";
|
|
9
|
+
import { ArrayUtilities } from "./utilities/ArrayUtilities";
|
|
10
|
+
import { Arrow } from "./primitives/Arrow";
|
|
11
|
+
import { AsyncAbstractLoader } from "./loaders/AsyncAbstractLoader";
|
|
12
|
+
import { AsyncAudiosLoader } from "./loaders/AsyncAudiosLoader";
|
|
13
|
+
import { AsyncObjectsLoader } from "./loaders/AsyncObjectsLoader";
|
|
14
|
+
import { AsyncTextureLoader } from "./resource_loader/AsyncTextureLoader";
|
|
15
|
+
import { AsyncTexturesLoader } from "./loaders/AsyncTexturesLoader";
|
|
16
|
+
import { AudioLoader } from "./resource_loader/AudioLoader";
|
|
17
|
+
import { BaseApplication } from "./BaseApplication";
|
|
18
|
+
import { BaseRender } from "./render_mode/BaseRender";
|
|
19
|
+
import { BaseShaderMaterial } from "./materials/BaseShaderMaterial";
|
|
20
|
+
import { BasisLoader } from "./resource_loader/BasisLoader";
|
|
21
|
+
import { BlitMaterial } from "./materials/BlitMaterial";
|
|
22
|
+
import { Blurrer } from "./render_utilities/Blurrer";
|
|
23
|
+
import { Browser } from "./Browser";
|
|
24
|
+
import { CameraManager } from "./CameraManager";
|
|
25
|
+
import { CameraUtilities } from "./utilities/CameraUtilities";
|
|
26
|
+
import { CanvasDrawer } from "./canvas_drawer/CanvasDrawer";
|
|
27
|
+
import { Capabilities } from "./Capabilities";
|
|
28
|
+
import { CSSAnimator } from "./html_utilities/CSSAnimator";
|
|
29
|
+
import { Cube } from "./primitives/Cube";
|
|
30
|
+
import { CubemapLoader } from "./resource_loader/CubemapLoader";
|
|
31
|
+
import { DAELoader } from "./resource_loader/DAELoader";
|
|
32
|
+
import { Debug } from "./Debug";
|
|
33
|
+
import { DebugNormalsRender } from "./render_mode/DebugNormalsRender";
|
|
34
|
+
import { DrawIOAnimationSheet } from "./view_components/transition/DrawIOAnimationSheet";
|
|
35
|
+
import { DualFilteringBlurMaterial } from "./materials/DualFilteringBlurMaterial";
|
|
36
|
+
import { DualFilteringBlurrer } from "./render_utilities/DualFilteringBlurrer";
|
|
37
|
+
import { EasingFunctions } from "./utilities/EasingFunctions";
|
|
38
|
+
import { FileLoader } from "./resource_loader/FileLoader";
|
|
39
|
+
import { FontLoader } from "./resource_loader/FontLoader";
|
|
40
|
+
import { FrustumPointFitter } from "./utilities/FrustumPointFitter";
|
|
41
|
+
import { GaussianBlurrer } from "./render_utilities/GaussianBlurrer";
|
|
42
|
+
import { GeometryUtilities } from "./utilities/GeometryUtilities";
|
|
43
|
+
import { GLTFDRACOLoader } from "./resource_loader/GLTFDRACOLoader";
|
|
44
|
+
import { GLTFLoader } from "./resource_loader/GLTFLoader";
|
|
45
|
+
import { GPUParticleSystem } from "./gpu_particles/GPUParticleSystem";
|
|
46
|
+
import { Graphics } from "./Graphics";
|
|
47
|
+
import { Grid } from "./components/Grid";
|
|
48
|
+
import { HDRCubeTextureLoader } from "./resource_loader/HDRCubeTextureLoader";
|
|
49
|
+
import { HighQualityLoadingState } from "./scenes/loading_states/HighQualityLoadingState";
|
|
50
|
+
import { HorizontalPlane } from "./primitives/HorizontalPlane";
|
|
51
|
+
import { HTMLUtilities } from "./utilities/HTMLUtilities";
|
|
52
|
+
import { ImageUtilities } from "./utilities/ImageUtilities";
|
|
53
|
+
import { Initializer } from "./Initializer";
|
|
54
|
+
import { JSONLoader } from "./resource_loader/JSONLoader";
|
|
55
|
+
import { KeyboardInput } from "./KeyboardInput";
|
|
56
|
+
import { Line } from "./components/Line";
|
|
57
|
+
import { LoadingState } from "./scenes/loading_states/LoadingState";
|
|
58
|
+
import { MedianFilter } from "./render_utilities/MedianFilter";
|
|
59
|
+
import { MeshBatcher } from "./static_batcher/MeshBatcher";
|
|
60
|
+
import { MeshSampler } from "./utilities/MeshSampler";
|
|
61
|
+
import { ModelUtilities } from "./utilities/ModelUtilities";
|
|
62
|
+
import { NormalAORender } from "./render_mode/NormalAORender";
|
|
63
|
+
import { NormalRender } from "./render_mode/NormalRender";
|
|
64
|
+
import { NumberInterpolator } from "./action_sequencer/NumberInterpolator";
|
|
65
|
+
import { ObjectUtilities } from "./utilities/ObjectUtilities";
|
|
66
|
+
import { OBJLoader } from "./resource_loader/OBJLoader";
|
|
67
|
+
import { OMath } from "./utilities/OMath";
|
|
68
|
+
import { OrthographicCamera } from "./OrthographicCamera";
|
|
69
|
+
import { OrthographicFrustumPointFitter } from "./utilities/OrthographicFrustumPointFitter";
|
|
70
|
+
import { OS } from "./OS";
|
|
71
|
+
import { OScreen } from "./OScreen";
|
|
72
|
+
import { ParticleAttribute } from "./gpu_particles/ParticleAttribute";
|
|
73
|
+
import { ParticlePositionAttribute } from "./gpu_particles/ParticlePositionAttribute";
|
|
74
|
+
import { PerspectiveCamera } from "./PerspectiveCamera";
|
|
75
|
+
import { PerspectiveFrustumPointFitter } from "./utilities/PerspectiveFrustumPointFitter";
|
|
76
|
+
import { PointArrayLoader } from "./resource_loader/PointArrayLoader";
|
|
77
|
+
import { RegularLoadingState } from "./scenes/loading_states/RegularLoadingState";
|
|
78
|
+
import { RenderLoop } from "./RenderLoop";
|
|
79
|
+
import { ResourceBatch } from "./resource_loader/ResourceBatch";
|
|
80
|
+
import { ResourceContainer } from "./ResourceContainer";
|
|
81
|
+
import { RGBETextureLoader } from "./resource_loader/RGBETextureLoader";
|
|
82
|
+
import { SceneManager } from "./SceneManager";
|
|
83
|
+
import { Screen } from "./Screen";
|
|
84
|
+
import { SDFTextBatch } from "./components/sdf_text/SDFTextBatch";
|
|
85
|
+
import { SimpleTextDrawer } from "./canvas_drawer/SimpleTextDrawer";
|
|
86
|
+
import { Sphere } from "./primitives/Sphere";
|
|
87
|
+
import { StringUtilities } from "./utilities/StringUtilities";
|
|
88
|
+
import { Text2D } from "./components/Text2D";
|
|
89
|
+
import { TextLoader } from "./resource_loader/TextLoader";
|
|
90
|
+
import { TextureLoader } from "./resource_loader/TextureLoader";
|
|
91
|
+
import { Time } from "./Time";
|
|
92
|
+
import { TimeUtilities } from "./utilities/TimeUtilities";
|
|
93
|
+
import { TransitionManager } from "./view_components/TransitionManager";
|
|
94
|
+
import { TransitionTable } from "./view_components/transition/TransitionTable";
|
|
95
|
+
import { UI } from "./UI";
|
|
96
|
+
import { UIElement } from "./components/UIElement";
|
|
97
|
+
import { UnrealBloomComposeMaterial } from "./materials/UnrealBloomComposeMaterial";
|
|
98
|
+
import { UnrealBloomRender } from "./render_mode/UnrealBloomRender";
|
|
99
|
+
import { UpdatableMaterialMesh } from "./components/UpdatableMaterialMesh";
|
|
100
|
+
import { Validation } from "./utilities/Validation";
|
|
101
|
+
import { VectorInterpolator } from "./action_sequencer/VectorInterpolator";
|
|
102
|
+
import { VerticalPlane } from "./primitives/VerticalPlane";
|
|
103
|
+
import { VideoLoader } from "./resource_loader/VideoLoader";
|
|
104
|
+
import { ViewComponent } from "./view_components/ViewComponent";
|
|
105
|
+
import { ViewComponentManager } from "./view_components/ViewComponentManager";
|
|
106
|
+
import { ViewManager } from "./view_components/ViewManager";
|
|
107
|
+
import { VRRender } from "./render_mode/VRRender";
|
|
108
|
+
import { WorldImage } from "./components/WorldImage";
|
|
122
109
|
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 };
|
|
123
|
-
|
|
@@ -15,4 +15,7 @@ export class AbstractLoader {
|
|
|
15
15
|
on_progress(resource_container: any, response: any): Promise<void>;
|
|
16
16
|
on_preloaded_finished(resource_container: any, response: any): void;
|
|
17
17
|
__on_error(data: any): void;
|
|
18
|
+
is_int(n: any): boolean;
|
|
19
|
+
is_float(n: any): boolean;
|
|
20
|
+
is_number(n: any): boolean;
|
|
18
21
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
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;
|
|
3
4
|
colorSpaceConversion: boolean;
|
|
4
5
|
premultiplyAlpha: boolean;
|
|
5
6
|
flipY: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export class HDRCubeTextureLoader extends AbstractLoader {
|
|
2
|
-
constructor(resource_id: any, url: any, size: any);
|
|
2
|
+
constructor(resource_id: any, url: any, extension: any, size: any);
|
|
3
3
|
loader: any;
|
|
4
|
-
|
|
4
|
+
urls: string[];
|
|
5
5
|
on_preloaded_finished(resource_container: any): void;
|
|
6
6
|
}
|
|
7
7
|
import { AbstractLoader } from "./AbstractLoader";
|
|
@@ -17,8 +17,8 @@ export class AbstractScene {
|
|
|
17
17
|
get_objects(): any[];
|
|
18
18
|
dispose_cpu(): void;
|
|
19
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;
|
|
20
|
+
set_assets(scene_objects: any, scene_textures: any, scene_sounds: any, custom_loaders: any, custom_compilators: any, custom_data: any): void;
|
|
21
|
+
set_high_assets(scene_objects: any, scene_textures: any, scene_sounds: any, custom_loaders: any, custom_compilators: any, custom_data: any): void;
|
|
22
22
|
set_loading_state(state: any): void;
|
|
23
23
|
update_loading_state(): void;
|
|
24
24
|
update(): void;
|
|
@@ -26,6 +26,7 @@ export class AbstractScene {
|
|
|
26
26
|
on_assets_compiled(): void;
|
|
27
27
|
on_high_quality_assets_ready(): void;
|
|
28
28
|
}
|
|
29
|
-
import { RegularLoadingState } from "./loading_states/RegularLoadingState";
|
|
30
29
|
import { HighQualityLoadingState } from "./loading_states/HighQualityLoadingState";
|
|
31
30
|
import { LoadingState } from "./loading_states/LoadingState";
|
|
31
|
+
import { RegularLoadingState } from "./loading_states/RegularLoadingState";
|
|
32
|
+
|
|
@@ -11,10 +11,13 @@ export class LoadingState {
|
|
|
11
11
|
loaders: any[];
|
|
12
12
|
compilators: any[];
|
|
13
13
|
callback_called: boolean;
|
|
14
|
-
set_assets(scene_objects: any, scene_textures: any, scene_sounds: any): void;
|
|
14
|
+
set_assets(scene_objects: any, scene_textures: any, scene_sounds: any, custom_loaders?: any[], custom_compilators?: any[], custom_data?: any[]): void;
|
|
15
15
|
scene_objects: any;
|
|
16
16
|
scene_textures: any;
|
|
17
17
|
scene_sounds: any;
|
|
18
|
+
custom_loaders: any[];
|
|
19
|
+
custom_compilators: any[];
|
|
20
|
+
custom_data: any[];
|
|
18
21
|
get loading_progress(): number;
|
|
19
22
|
load(): void;
|
|
20
23
|
on_enter(): void;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export class ApplicationView extends ViewState {
|
|
2
|
-
constructor({ name, url, container }: {
|
|
2
|
+
constructor({ name, url, container, transition_data }: {
|
|
3
3
|
name: any;
|
|
4
4
|
url: any;
|
|
5
5
|
container: any;
|
|
6
|
+
transition_data: any;
|
|
6
7
|
});
|
|
7
8
|
container: any;
|
|
8
9
|
url: any;
|
|
9
|
-
|
|
10
|
-
load_html_videos(): void;
|
|
10
|
+
current_opacity: number;
|
|
11
11
|
set_opacity(current_state_data: any): void;
|
|
12
12
|
}
|
|
13
13
|
import { ViewState } from "./ViewState";
|
|
@@ -5,11 +5,14 @@ declare class TransitionManager {
|
|
|
5
5
|
transition_handler: ViewStateTransitionHandler;
|
|
6
6
|
get action_sequencer(): any;
|
|
7
7
|
get current_state_data(): {};
|
|
8
|
+
get_current_state(): import("./ViewState").ViewState;
|
|
9
|
+
go_to_state(state: any, skip?: boolean): void;
|
|
8
10
|
before_update(): void;
|
|
9
11
|
update(): void;
|
|
10
12
|
fixed_update(): void;
|
|
11
13
|
add_transitions(transitions: any): void;
|
|
12
14
|
set_transitions(transitions: any): void;
|
|
15
|
+
set_state(state: any): void;
|
|
13
16
|
set_default_state_data(default_state_data: any): void;
|
|
14
17
|
set_transitions_velocity(transitions_velocity: any): void;
|
|
15
18
|
}
|
|
@@ -2,35 +2,22 @@ export { view_manager as ViewManager };
|
|
|
2
2
|
declare const view_manager: ViewManager;
|
|
3
3
|
declare class ViewManager {
|
|
4
4
|
views: ViewState[];
|
|
5
|
-
transition_table: TransitionTable;
|
|
6
|
-
transition_handler: ViewStateTransitionHandler;
|
|
7
|
-
view_change_subscribers: any[];
|
|
8
5
|
browser_title_suffix: string;
|
|
9
|
-
before_update(): void;
|
|
10
6
|
update(): void;
|
|
11
|
-
fixed_update(): void;
|
|
12
7
|
go_to_view(view_name: any, change_url?: boolean, skip?: boolean): void;
|
|
13
8
|
go_to_scene(scene_name: any, change_url?: boolean, skip?: boolean): void;
|
|
14
|
-
subscribe_to_view_change(subscriber: any): void;
|
|
15
|
-
notify_view_change(view_name: any): void;
|
|
16
9
|
register_view(view: any): void;
|
|
17
10
|
has_view(view_name: any): boolean;
|
|
18
|
-
add_transitions(transitions: any): void;
|
|
19
|
-
set_transitions(transitions: any): void;
|
|
20
11
|
set_view(view_name: any): void;
|
|
21
12
|
set_browser_title_suffix(title_suffix: any): void;
|
|
22
13
|
get_current_view(): import("./ViewState").ViewState;
|
|
23
14
|
get_view_by_name(view_name: any): void;
|
|
24
15
|
get(view_name: any): any;
|
|
25
|
-
get_view_by_url(url: any): void;
|
|
26
16
|
get_by_url(url: any): any;
|
|
27
|
-
set_default_state_data(default_state_data: any): void;
|
|
28
17
|
__change_browser_url(url: any): void;
|
|
29
18
|
__change_browser_title(name: any): void;
|
|
30
19
|
__set_views_opacities(): void;
|
|
31
20
|
__capitalize(string: any): any;
|
|
32
21
|
__snake_to_whitespace(string: any): any;
|
|
33
22
|
}
|
|
34
|
-
import { TransitionTable } from "./transition/TransitionTable";
|
|
35
|
-
import { ViewStateTransitionHandler } from "./transition/ViewStateTransitionHandler";
|
|
36
23
|
import { ViewState } from "./ViewState";
|
|
@@ -2,16 +2,13 @@ export class ViewState {
|
|
|
2
2
|
constructor(name: any);
|
|
3
3
|
name: any;
|
|
4
4
|
start(): void;
|
|
5
|
-
show(): void;
|
|
6
|
-
hide(): void;
|
|
7
5
|
before_enter(): void;
|
|
8
6
|
on_enter(): void;
|
|
7
|
+
before_exit(): void;
|
|
8
|
+
on_exit(): void;
|
|
9
9
|
before_update(): void;
|
|
10
10
|
update(): void;
|
|
11
11
|
fixed_update(): void;
|
|
12
12
|
update_enter_transition(global_view_data: any, transition_progress: any, action_sequencer: any): void;
|
|
13
13
|
update_exit_transition(global_view_data: any, transition_progress: any, action_sequencer: any): void;
|
|
14
|
-
update_transition(global_view_data: any, transition_progress: any, action_sequencer: any): void;
|
|
15
|
-
before_exit(): void;
|
|
16
|
-
on_exit(): void;
|
|
17
14
|
}
|