ohzi-core 10.6.7 → 11.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.module.js +1 -1
- package/build/index.module.js.map +1 -1
- package/package.json +9 -11
- package/src/BaseApplication.js +3 -0
- package/src/Browser.js +4 -4
- package/src/Graphics.js +17 -19
- package/src/Initializer.js +1 -7
- package/src/OS.js +2 -2
- package/src/RenderLoop.js +16 -13
- package/src/action_sequencer/ActionEvent.js +1 -2
- package/src/action_sequencer/ActionSequencer.js +3 -7
- package/src/gpu_particles/ParticleAttribute.js +2 -7
- package/src/index.js +41 -141
- package/src/render_mode/NormalAORender.js +7 -8
- package/src/resource_loader/AsyncTextureLoader.js +5 -3
- package/src/resource_loader/BasisLoader.js +0 -4
- package/src/view_components/ApplicationView.js +2 -29
- package/src/view_components/ApplicationViewController.js +95 -0
- package/src/view_components/TransitionManager.js +60 -0
- package/src/view_components/VCManager.js +9 -0
- package/src/view_components/ViewComponent.js +9 -36
- package/src/view_components/ViewComponentController.js +73 -0
- package/src/view_components/ViewComponentControllerManager.js +59 -0
- package/src/view_components/ViewComponentManager.js +3 -13
- package/src/view_components/ViewControllerManager.js +91 -0
- package/src/view_components/ViewManager.js +11 -104
- package/src/view_components/ViewState.js +0 -7
- package/src/view_components/WorkerToMain.js +25 -0
- package/src/view_components/transition/ActionSequencerBuilder.js +3 -3
- package/src/view_components/transition/TransitionTable.js +9 -2
- package/types/BaseApplication.d.ts +1 -0
- package/types/Browser.d.ts +1 -1
- package/types/CameraManager.d.ts +2 -4
- package/types/Graphics.d.ts +8 -3
- package/types/Initializer.d.ts +1 -1
- package/types/RenderLoop.d.ts +1 -2
- package/types/SceneManager.d.ts +1 -3
- package/types/action_sequencer/ActionSequencer.d.ts +2 -2
- package/types/blitter_index.d.ts +6 -0
- package/types/index.d.ts +75 -73
- package/types/render_mode/NormalAORender.d.ts +1 -0
- package/types/resource_loader/AsyncTextureLoader.d.ts +1 -0
- package/types/utilities/FrustumPointFitter.d.ts +1 -3
- package/types/utilities/OMath.d.ts +9 -9
- package/types/view_components/ApplicationView.d.ts +1 -3
- package/types/view_components/ApplicationViewController.d.ts +11 -0
- package/types/view_components/TransitionManager.d.ts +17 -0
- package/types/view_components/VCManager.d.ts +5 -0
- package/types/view_components/ViewComponent.d.ts +1 -5
- package/types/view_components/ViewComponentController.d.ts +14 -0
- package/types/view_components/ViewComponentControllerManager.d.ts +12 -0
- package/types/view_components/ViewComponentManager.d.ts +0 -1
- package/types/view_components/ViewControllerManager.d.ts +12 -0
- package/types/view_components/ViewManager.d.ts +4 -22
- package/types/view_components/ViewState.d.ts +0 -1
- package/types/view_components/WorkerToMain.d.ts +8 -0
- package/types/view_components/transition/ActionSequencerBuilder.d.ts +1 -1
- package/types/view_components/transition/TransitionTable.d.ts +2 -0
- package/src/Configuration.js +0 -23
- package/src/Screen.js +0 -55
- package/src/render_mode/TransparencyMixRender.js +0 -147
- package/src/view_components/ViewContext.js +0 -15
- package/types/Configuration.d.ts +0 -8
- package/types/view_components/ViewContext.d.ts +0 -6
|
@@ -1,41 +1,17 @@
|
|
|
1
|
-
import { TransitionTable } from './transition/TransitionTable';
|
|
2
|
-
import { ViewStateTransitionHandler } from './transition/ViewStateTransitionHandler';
|
|
3
1
|
|
|
4
2
|
class ViewManager
|
|
5
3
|
{
|
|
6
4
|
constructor()
|
|
7
5
|
{
|
|
8
6
|
this.views = [];
|
|
9
|
-
|
|
10
|
-
this.transition_table = new TransitionTable();
|
|
11
|
-
this.transition_handler = new ViewStateTransitionHandler(this.transition_table);
|
|
12
|
-
|
|
13
|
-
this.view_change_subscribers = [];
|
|
7
|
+
this.main_to_worker = undefined;
|
|
14
8
|
|
|
15
9
|
this.browser_title_suffix = '';
|
|
16
10
|
}
|
|
17
11
|
|
|
18
|
-
before_update()
|
|
19
|
-
{
|
|
20
|
-
this.transition_handler.before_update();
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
update()
|
|
24
|
-
{
|
|
25
|
-
this.transition_handler.update();
|
|
26
|
-
|
|
27
|
-
this.__set_views_opacities();
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
fixed_update()
|
|
31
|
-
{
|
|
32
|
-
this.transition_handler.fixed_update();
|
|
33
|
-
}
|
|
34
|
-
|
|
35
12
|
go_to_view(view_name, change_url = true, skip = false)
|
|
36
13
|
{
|
|
37
14
|
const v = this.get(view_name);
|
|
38
|
-
this.transition_handler.go_to_state(v, skip);
|
|
39
15
|
|
|
40
16
|
if (change_url)
|
|
41
17
|
{
|
|
@@ -43,64 +19,16 @@ class ViewManager
|
|
|
43
19
|
this.__change_browser_title(v.url);
|
|
44
20
|
}
|
|
45
21
|
|
|
46
|
-
this.
|
|
22
|
+
this.main_to_worker.post('go_to_view_controller', { view_controller_name: view_name, skip });
|
|
47
23
|
}
|
|
48
24
|
|
|
49
25
|
go_to_scene(scene_name, change_url = false, skip = false)
|
|
50
26
|
{
|
|
51
|
-
const next_view = this.get(scene_name);
|
|
52
27
|
const transition_view = this.get('transition');
|
|
53
28
|
|
|
54
|
-
transition_view.
|
|
55
|
-
this.go_to_view(transition_view.name, change_url, skip);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
subscribe_to_view_change(subscriber)
|
|
59
|
-
{
|
|
60
|
-
this.view_change_subscribers.push(subscriber);
|
|
61
|
-
}
|
|
29
|
+
transition_view.set_next_view_name(scene_name);
|
|
62
30
|
|
|
63
|
-
|
|
64
|
-
{
|
|
65
|
-
for (let i = 0; i < this.view_change_subscribers.length; i++)
|
|
66
|
-
{
|
|
67
|
-
const subscriber = this.view_change_subscribers[i];
|
|
68
|
-
subscriber.on_view_change(view_name);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
register_view(view)
|
|
73
|
-
{
|
|
74
|
-
this.views.push(view);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
has_view(view_name)
|
|
78
|
-
{
|
|
79
|
-
for (let i = 0; i < this.views.length; i++)
|
|
80
|
-
{
|
|
81
|
-
if (this.views[i].name === view_name)
|
|
82
|
-
{
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
add_transitions(transitions)
|
|
90
|
-
{
|
|
91
|
-
this.transition_table.add_transitions(transitions);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
set_transitions(transitions)
|
|
95
|
-
{
|
|
96
|
-
this.transition_table.set_transitions(transitions);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
set_view(view_name)
|
|
100
|
-
{
|
|
101
|
-
const view = this.get(view_name);
|
|
102
|
-
|
|
103
|
-
this.transition_handler.set_state(view);
|
|
31
|
+
this.go_to_view(transition_view.name, change_url, skip);
|
|
104
32
|
}
|
|
105
33
|
|
|
106
34
|
set_browser_title_suffix(title_suffix)
|
|
@@ -108,17 +36,6 @@ class ViewManager
|
|
|
108
36
|
this.browser_title_suffix = title_suffix;
|
|
109
37
|
}
|
|
110
38
|
|
|
111
|
-
get_current_view()
|
|
112
|
-
{
|
|
113
|
-
return this.transition_handler.current_state;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
get_view_by_name(view_name)
|
|
117
|
-
{
|
|
118
|
-
console.warn('DEPRECATED. Use ViewManager.get instead');
|
|
119
|
-
this.get(view_name);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
39
|
get(view_name)
|
|
123
40
|
{
|
|
124
41
|
for (let i = 0; i < this.views.length; i++)
|
|
@@ -132,12 +49,6 @@ class ViewManager
|
|
|
132
49
|
return undefined;
|
|
133
50
|
}
|
|
134
51
|
|
|
135
|
-
get_view_by_url(url)
|
|
136
|
-
{
|
|
137
|
-
console.warn('DEPRECATED. Use ViewManager.get_by_url instead');
|
|
138
|
-
this.get_by_url(url);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
52
|
get_by_url(url)
|
|
142
53
|
{
|
|
143
54
|
for (let i = 0; i < this.views.length; i++)
|
|
@@ -151,10 +62,14 @@ class ViewManager
|
|
|
151
62
|
return undefined;
|
|
152
63
|
}
|
|
153
64
|
|
|
154
|
-
|
|
65
|
+
register_view(view)
|
|
66
|
+
{
|
|
67
|
+
this.views.push(view);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
set_main_to_worker(main_to_worker)
|
|
155
71
|
{
|
|
156
|
-
this.
|
|
157
|
-
this.transition_handler.set_default_state_data(default_state_data);
|
|
72
|
+
this.main_to_worker = main_to_worker;
|
|
158
73
|
}
|
|
159
74
|
|
|
160
75
|
__change_browser_url(url)
|
|
@@ -169,14 +84,6 @@ class ViewManager
|
|
|
169
84
|
document.title = title ? `${title} | ${this.browser_title_suffix}` : this.browser_title_suffix;
|
|
170
85
|
}
|
|
171
86
|
|
|
172
|
-
__set_views_opacities()
|
|
173
|
-
{
|
|
174
|
-
for (let i = 0; i < this.views.length; i++)
|
|
175
|
-
{
|
|
176
|
-
this.views[i].set_opacity(this.transition_handler.current_state_data);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
87
|
__capitalize(string)
|
|
181
88
|
{
|
|
182
89
|
let aux_string = string.toUpperCase().replace('/', '');
|
|
@@ -39,19 +39,12 @@ class ViewState
|
|
|
39
39
|
|
|
40
40
|
update_enter_transition(global_view_data, transition_progress, action_sequencer)
|
|
41
41
|
{
|
|
42
|
-
// Backward compatibility. It will be removed in future releases.
|
|
43
|
-
this.update_transition(global_view_data, transition_progress, action_sequencer);
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
update_exit_transition(global_view_data, transition_progress, action_sequencer)
|
|
47
45
|
{
|
|
48
46
|
}
|
|
49
47
|
|
|
50
|
-
// Deprecated
|
|
51
|
-
update_transition(global_view_data, transition_progress, action_sequencer)
|
|
52
|
-
{
|
|
53
|
-
}
|
|
54
|
-
|
|
55
48
|
before_exit()
|
|
56
49
|
{
|
|
57
50
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
class WorkerToMain
|
|
3
|
+
{
|
|
4
|
+
constructor()
|
|
5
|
+
{
|
|
6
|
+
// TODO: Use SharedArrayBuffer?
|
|
7
|
+
this.methods = [];
|
|
8
|
+
this.args = [];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
push(method, args = [])
|
|
12
|
+
{
|
|
13
|
+
this.methods.push(method);
|
|
14
|
+
this.args.push(args);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
clear()
|
|
18
|
+
{
|
|
19
|
+
this.methods = [];
|
|
20
|
+
this.args = [];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const worker_to_main = new WorkerToMain();
|
|
25
|
+
export { worker_to_main as WorkerToMain };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ActionEvent } from '../../action_sequencer/ActionEvent';
|
|
1
2
|
import { ActionSequencer } from '../../action_sequencer/ActionSequencer';
|
|
2
3
|
import { NumberInterpolator } from '../../action_sequencer/NumberInterpolator';
|
|
3
|
-
import { ActionEvent } from '../../action_sequencer/ActionEvent';
|
|
4
4
|
import { DrawIOAnimationSheet } from './DrawIOAnimationSheet';
|
|
5
5
|
|
|
6
6
|
class ActionSequencerBuilder
|
|
@@ -10,7 +10,7 @@ class ActionSequencerBuilder
|
|
|
10
10
|
this.default_state_data = default_state_data;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
from_animation_sheet(animation_data, current_context, initial_context)
|
|
13
|
+
from_animation_sheet(animation_data, current_context, initial_context, transitions_velocity)
|
|
14
14
|
{
|
|
15
15
|
initial_context = initial_context || this.default_state_data;
|
|
16
16
|
const tracks = animation_data.animation_tracks;
|
|
@@ -26,7 +26,7 @@ class ActionSequencerBuilder
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
const sequencer = new ActionSequencer(current_context);
|
|
29
|
+
const sequencer = new ActionSequencer(current_context, transitions_velocity);
|
|
30
30
|
|
|
31
31
|
for (let i = 0; i < tracks.length; i++)
|
|
32
32
|
{
|
|
@@ -6,6 +6,8 @@ class TransitionTable
|
|
|
6
6
|
{
|
|
7
7
|
this.transitions = [];
|
|
8
8
|
this.default_state_data = {};
|
|
9
|
+
|
|
10
|
+
this.transitions_velocity = 1;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
get(from_state_name, to_state_name, current_context)
|
|
@@ -14,7 +16,7 @@ class TransitionTable
|
|
|
14
16
|
{
|
|
15
17
|
if (this.transitions[i].from === from_state_name && this.transitions[i].to === to_state_name)
|
|
16
18
|
{
|
|
17
|
-
const action_sequencer = new ActionSequencerBuilder(this.default_state_data).from_animation_sheet(this.transitions[i].data, current_context);
|
|
19
|
+
const action_sequencer = new ActionSequencerBuilder(this.default_state_data).from_animation_sheet(this.transitions[i].data, current_context, this.transitions_velocity);
|
|
18
20
|
return action_sequencer;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -23,7 +25,7 @@ class TransitionTable
|
|
|
23
25
|
{
|
|
24
26
|
if (this.transitions[i].to === to_state_name && this.transitions[i].from === undefined)
|
|
25
27
|
{
|
|
26
|
-
const action_sequencer = new ActionSequencerBuilder(this.default_state_data).from_animation_sheet(this.transitions[i].data, current_context);
|
|
28
|
+
const action_sequencer = new ActionSequencerBuilder(this.default_state_data).from_animation_sheet(this.transitions[i].data, current_context, this.transitions_velocity);
|
|
27
29
|
return action_sequencer;
|
|
28
30
|
}
|
|
29
31
|
}
|
|
@@ -49,6 +51,11 @@ class TransitionTable
|
|
|
49
51
|
{
|
|
50
52
|
this.default_state_data = default_state_data;
|
|
51
53
|
}
|
|
54
|
+
|
|
55
|
+
set_transitions_velocity(transitions_velocity)
|
|
56
|
+
{
|
|
57
|
+
this.transitions_velocity = transitions_velocity;
|
|
58
|
+
}
|
|
52
59
|
}
|
|
53
60
|
|
|
54
61
|
export { TransitionTable };
|
package/types/Browser.d.ts
CHANGED
package/types/CameraManager.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { Camera } from "three";
|
|
2
|
-
|
|
3
1
|
export { camera_manager as CameraManager };
|
|
4
2
|
declare const camera_manager: CameraManager;
|
|
5
3
|
declare class CameraManager {
|
|
6
4
|
init(): void;
|
|
7
|
-
_current:
|
|
8
|
-
_spectator:
|
|
5
|
+
_current: any;
|
|
6
|
+
_spectator: any;
|
|
9
7
|
set current(arg: any);
|
|
10
8
|
get current(): any;
|
|
11
9
|
set spectator(arg: any);
|
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,7 +35,6 @@ 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;
|
|
@@ -40,7 +45,7 @@ declare class Graphics {
|
|
|
40
45
|
__apply_override_material(scene: any, mat: any): void;
|
|
41
46
|
readback_RT(RT: any, buffer: any): void;
|
|
42
47
|
clear(RT: any, camera: any, clear_depth: any, clear_stencil: any): void;
|
|
43
|
-
on_resize(entries: any): void;
|
|
48
|
+
on_resize(entries: any, dpr: any): void;
|
|
44
49
|
material_pass(mat: any, dst: any): void;
|
|
45
50
|
blit(src_RT: any, dst_RT: any, mat: any): void;
|
|
46
51
|
blit_clear_with_material(dst_RT: any, mat: any): void;
|
package/types/Initializer.d.ts
CHANGED
package/types/RenderLoop.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export class RenderLoop {
|
|
2
|
-
constructor(target_application: any, graphics: any
|
|
2
|
+
constructor(target_application: any, graphics: any);
|
|
3
3
|
target_application: any;
|
|
4
4
|
graphics: any;
|
|
5
|
-
input: any;
|
|
6
5
|
is_running: boolean;
|
|
7
6
|
frames_passed: number;
|
|
8
7
|
time_accumulator: number;
|
package/types/SceneManager.d.ts
CHANGED
|
@@ -2,11 +2,9 @@ export { scene_manager as SceneManager };
|
|
|
2
2
|
declare const scene_manager: SceneManager;
|
|
3
3
|
declare class SceneManager {
|
|
4
4
|
init(): void;
|
|
5
|
-
_current:
|
|
5
|
+
_current: any;
|
|
6
6
|
add_scene(name: any): void;
|
|
7
7
|
set current(arg: any);
|
|
8
8
|
get current(): any;
|
|
9
9
|
dispose(): void;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
import { Scene } from "three";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export class ActionSequencer {
|
|
2
|
-
constructor(context
|
|
2
|
+
constructor(context: {}, transitions_velocity: any);
|
|
3
3
|
previous_elapsed_time: number;
|
|
4
4
|
elapsed_time: number;
|
|
5
5
|
playback_speed: number;
|
|
@@ -32,5 +32,5 @@ export class ActionSequencer {
|
|
|
32
32
|
is_channel_redefined(channel_name: any): boolean;
|
|
33
33
|
__linear_map_01(value: any, from_range_start_value: any, from_range_end_value: any): number;
|
|
34
34
|
__get_current_keyframe(channel_name: any, time: any): any;
|
|
35
|
-
__get_playback_speed(): number;
|
|
35
|
+
__get_playback_speed(transitions_velocity: any): number;
|
|
36
36
|
}
|
|
@@ -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,103 +1,105 @@
|
|
|
1
1
|
import { AbstractLoader } from "./resource_loader/AbstractLoader";
|
|
2
|
+
import { ActionEvent } from "./action_sequencer/ActionEvent";
|
|
3
|
+
import { ActionInterpolator } from "./action_sequencer/ActionInterpolator";
|
|
4
|
+
import { ActionSequencer } from "./action_sequencer/ActionSequencer";
|
|
2
5
|
import { ActionSequencerBuilder } from "./view_components/transition/ActionSequencerBuilder";
|
|
6
|
+
import { AddMaterial } from "./materials/AddMaterial";
|
|
3
7
|
import { ApplicationView } from "./view_components/ApplicationView";
|
|
8
|
+
import { ApplicationViewController } from "./view_components/ApplicationViewController";
|
|
9
|
+
import { ArrayUtilities } from "./utilities/ArrayUtilities";
|
|
10
|
+
import { Arrow } from "./primitives/Arrow";
|
|
11
|
+
import { AsyncTextureLoader } from "./resource_loader/AsyncTextureLoader";
|
|
12
|
+
import { AudioLoader } from "./resource_loader/AudioLoader";
|
|
4
13
|
import { BaseApplication } from "./BaseApplication";
|
|
14
|
+
import { BaseRender } from "./render_mode/BaseRender";
|
|
5
15
|
import { BaseShaderMaterial } from "./materials/BaseShaderMaterial";
|
|
16
|
+
import { BasisLoader } from "./resource_loader/BasisLoader";
|
|
17
|
+
import { BlitMaterial } from "./materials/BlitMaterial";
|
|
18
|
+
import { Blurrer } from "./render_utilities/Blurrer";
|
|
6
19
|
import { Browser } from "./Browser";
|
|
7
20
|
import { CameraManager } from "./CameraManager";
|
|
8
|
-
import {
|
|
21
|
+
import { CameraUtilities } from "./utilities/CameraUtilities";
|
|
9
22
|
import { CanvasDrawer } from "./canvas_drawer/CanvasDrawer";
|
|
10
|
-
import {
|
|
23
|
+
import { Capabilities } from "./Capabilities";
|
|
11
24
|
import { CSSAnimator } from "./html_utilities/CSSAnimator";
|
|
12
|
-
import {
|
|
25
|
+
import { Cube } from "./primitives/Cube";
|
|
26
|
+
import { CubemapLoader } from "./resource_loader/CubemapLoader";
|
|
27
|
+
import { DAELoader } from "./resource_loader/DAELoader";
|
|
13
28
|
import { Debug } from "./Debug";
|
|
14
29
|
import { DebugNormalsRender } from "./render_mode/DebugNormalsRender";
|
|
30
|
+
import { DrawIOAnimationSheet } from "./view_components/transition/DrawIOAnimationSheet";
|
|
31
|
+
import { DualFilteringBlurMaterial } from "./materials/DualFilteringBlurMaterial";
|
|
32
|
+
import { DualFilteringBlurrer } from "./render_utilities/DualFilteringBlurrer";
|
|
33
|
+
import { EasingFunctions } from "./utilities/EasingFunctions";
|
|
15
34
|
import { EventManager } from "./EventManager";
|
|
35
|
+
import { FileLoader } from "./resource_loader/FileLoader";
|
|
36
|
+
import { FontLoader } from "./resource_loader/FontLoader";
|
|
37
|
+
import { FrustumPointFitter } from "./utilities/FrustumPointFitter";
|
|
38
|
+
import { GaussianBlurrer } from "./render_utilities/GaussianBlurrer";
|
|
39
|
+
import { GeometryUtilities } from "./utilities/GeometryUtilities";
|
|
40
|
+
import { GLTFDRACOLoader } from "./resource_loader/GLTFDRACOLoader";
|
|
41
|
+
import { GLTFLoader } from "./resource_loader/GLTFLoader";
|
|
42
|
+
import { GPUParticleSystem } from "./gpu_particles/GPUParticleSystem";
|
|
16
43
|
import { Graphics } from "./Graphics";
|
|
17
|
-
import {
|
|
44
|
+
import { Grid } from "./components/Grid";
|
|
45
|
+
import { HDRCubeTextureLoader } from "./resource_loader/HDRCubeTextureLoader";
|
|
46
|
+
import { HorizontalPlane } from "./primitives/HorizontalPlane";
|
|
47
|
+
import { HTMLUtilities } from "./utilities/HTMLUtilities";
|
|
48
|
+
import { ImageUtilities } from "./utilities/ImageUtilities";
|
|
18
49
|
import { Initializer } from "./Initializer";
|
|
50
|
+
import { JSONLoader } from "./resource_loader/JSONLoader";
|
|
51
|
+
import { KeyboardInput } from "./KeyboardInput";
|
|
52
|
+
import { Line } from "./components/Line";
|
|
53
|
+
import { MedianFilter } from "./render_utilities/MedianFilter";
|
|
54
|
+
import { MeshBatcher } from "./static_batcher/MeshBatcher";
|
|
55
|
+
import { MeshSampler } from "./utilities/MeshSampler";
|
|
56
|
+
import { ModelUtilities } from "./utilities/ModelUtilities";
|
|
19
57
|
import { NormalAORender } from "./render_mode/NormalAORender";
|
|
20
58
|
import { NormalRender } from "./render_mode/NormalRender";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
59
|
+
import { NumberInterpolator } from "./action_sequencer/NumberInterpolator";
|
|
60
|
+
import { ObjectUtilities } from "./utilities/ObjectUtilities";
|
|
61
|
+
import { OBJLoader } from "./resource_loader/OBJLoader";
|
|
62
|
+
import { OMath } from "./utilities/OMath";
|
|
23
63
|
import { OrthographicCamera } from "./OrthographicCamera";
|
|
64
|
+
import { OrthographicFrustumPointFitter } from "./utilities/OrthographicFrustumPointFitter";
|
|
24
65
|
import { OS } from "./OS";
|
|
66
|
+
import { OScreen } from "./OScreen";
|
|
67
|
+
import { ParticleAttribute } from "./gpu_particles/ParticleAttribute";
|
|
68
|
+
import { ParticlePositionAttribute } from "./gpu_particles/ParticlePositionAttribute";
|
|
25
69
|
import { PerspectiveCamera } from "./PerspectiveCamera";
|
|
70
|
+
import { PerspectiveFrustumPointFitter } from "./utilities/PerspectiveFrustumPointFitter";
|
|
71
|
+
import { PointArrayLoader } from "./resource_loader/PointArrayLoader";
|
|
26
72
|
import { RenderLoop } from "./RenderLoop";
|
|
73
|
+
import { ResourceBatch } from "./resource_loader/ResourceBatch";
|
|
74
|
+
import { ResourceContainer } from "./ResourceContainer";
|
|
75
|
+
import { RGBETextureLoader } from "./resource_loader/RGBETextureLoader";
|
|
27
76
|
import { SceneManager } from "./SceneManager";
|
|
28
|
-
import {
|
|
29
|
-
import { Screen } from "./Screen";
|
|
77
|
+
import { SDFTextBatch } from "./components/sdf_text/SDFTextBatch";
|
|
30
78
|
import { SimpleTextDrawer } from "./canvas_drawer/SimpleTextDrawer";
|
|
79
|
+
import { Sphere } from "./primitives/Sphere";
|
|
80
|
+
import { StringUtilities } from "./utilities/StringUtilities";
|
|
81
|
+
import { Text2D } from "./components/Text2D";
|
|
82
|
+
import { TextLoader } from "./resource_loader/TextLoader";
|
|
83
|
+
import { TextureLoader } from "./resource_loader/TextureLoader";
|
|
31
84
|
import { Time } from "./Time";
|
|
85
|
+
import { TimeUtilities } from "./utilities/TimeUtilities";
|
|
86
|
+
import { TransitionManager } from "./view_components/TransitionManager";
|
|
87
|
+
import { TransitionTable } from "./view_components/transition/TransitionTable";
|
|
32
88
|
import { UI } from "./UI";
|
|
33
|
-
import {
|
|
34
|
-
import { AddMaterial } from "./materials/AddMaterial";
|
|
89
|
+
import { UIElement } from "./components/UIElement";
|
|
35
90
|
import { UnrealBloomComposeMaterial } from "./materials/UnrealBloomComposeMaterial";
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import { CameraUtilities } from "./utilities/CameraUtilities";
|
|
39
|
-
import { EasingFunctions } from "./utilities/EasingFunctions";
|
|
40
|
-
import { FrustumPointFitter } from "./utilities/FrustumPointFitter";
|
|
41
|
-
import { GeometryUtilities } from "./utilities/GeometryUtilities";
|
|
42
|
-
import { HTMLUtilities } from "./utilities/HTMLUtilities";
|
|
43
|
-
import { ImageUtilities } from "./utilities/ImageUtilities";
|
|
44
|
-
import { OMath } from "./utilities/OMath";
|
|
45
|
-
import { MeshSampler } from "./utilities/MeshSampler";
|
|
46
|
-
import { ModelUtilities } from "./utilities/ModelUtilities";
|
|
47
|
-
import { ObjectUtilities } from "./utilities/ObjectUtilities";
|
|
48
|
-
import { StringUtilities } from "./utilities/StringUtilities";
|
|
49
|
-
import { TimeUtilities } from "./utilities/TimeUtilities";
|
|
91
|
+
import { UnrealBloomRender } from "./render_mode/UnrealBloomRender";
|
|
92
|
+
import { UpdatableMaterialMesh } from "./components/UpdatableMaterialMesh";
|
|
50
93
|
import { Validation } from "./utilities/Validation";
|
|
94
|
+
import { VCManager } from "./view_components/VCManager";
|
|
95
|
+
import { VectorInterpolator } from "./action_sequencer/VectorInterpolator";
|
|
96
|
+
import { VerticalPlane } from "./primitives/VerticalPlane";
|
|
97
|
+
import { VideoLoader } from "./resource_loader/VideoLoader";
|
|
51
98
|
import { ViewComponent } from "./view_components/ViewComponent";
|
|
99
|
+
import { ViewComponentController } from "./view_components/ViewComponentController";
|
|
52
100
|
import { ViewComponentManager } from "./view_components/ViewComponentManager";
|
|
53
101
|
import { ViewManager } from "./view_components/ViewManager";
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import { Text2D } from "./components/Text2D";
|
|
57
|
-
import { TransitionTable } from "./view_components/transition/TransitionTable";
|
|
58
|
-
import { UIElement } from "./components/UIElement";
|
|
59
|
-
import { SDFTextBatch } from "./components/sdf_text/SDFTextBatch";
|
|
60
|
-
import { UpdatableMaterialMesh } from "./components/UpdatableMaterialMesh";
|
|
102
|
+
import { VRRender } from "./render_mode/VRRender";
|
|
103
|
+
import { WorkerToMain } from "./view_components/WorkerToMain";
|
|
61
104
|
import { WorldImage } from "./components/WorldImage";
|
|
62
|
-
|
|
63
|
-
import { Cube } from "./primitives/Cube";
|
|
64
|
-
import { HorizontalPlane } from "./primitives/HorizontalPlane";
|
|
65
|
-
import { Sphere } from "./primitives/Sphere";
|
|
66
|
-
import { VerticalPlane } from "./primitives/VerticalPlane";
|
|
67
|
-
import { ActionSequencer } from "./action_sequencer/ActionSequencer";
|
|
68
|
-
import { ActionEvent } from "./action_sequencer/ActionEvent";
|
|
69
|
-
import { ActionInterpolator } from "./action_sequencer/ActionInterpolator";
|
|
70
|
-
import { NumberInterpolator } from "./action_sequencer/NumberInterpolator";
|
|
71
|
-
import { VectorInterpolator } from "./action_sequencer/VectorInterpolator";
|
|
72
|
-
import { ViewContext } from "./view_components/ViewContext";
|
|
73
|
-
import { MedianFilter } from "./render_utilities/MedianFilter";
|
|
74
|
-
import { GaussianBlurrer } from "./render_utilities/GaussianBlurrer";
|
|
75
|
-
import { Blurrer } from "./render_utilities/Blurrer";
|
|
76
|
-
import { DualFilteringBlurrer } from "./render_utilities/DualFilteringBlurrer";
|
|
77
|
-
import { GPUParticleSystem } from "./gpu_particles/GPUParticleSystem";
|
|
78
|
-
import { ParticleAttribute } from "./gpu_particles/ParticleAttribute";
|
|
79
|
-
import { ParticlePositionAttribute } from "./gpu_particles/ParticlePositionAttribute";
|
|
80
|
-
import { PerspectiveFrustumPointFitter } from "./utilities/PerspectiveFrustumPointFitter";
|
|
81
|
-
import { OrthographicFrustumPointFitter } from "./utilities/OrthographicFrustumPointFitter";
|
|
82
|
-
import { DualFilteringBlurMaterial } from "./materials/DualFilteringBlurMaterial";
|
|
83
|
-
import { MeshBatcher } from "./static_batcher/MeshBatcher";
|
|
84
|
-
import { AudioLoader } from "./resource_loader/AudioLoader";
|
|
85
|
-
import { BasisLoader } from "./resource_loader/BasisLoader";
|
|
86
|
-
import { CubemapLoader } from "./resource_loader/CubemapLoader";
|
|
87
|
-
import { DAELoader } from "./resource_loader/DAELoader";
|
|
88
|
-
import { FileLoader } from "./resource_loader/FileLoader";
|
|
89
|
-
import { FontLoader } from "./resource_loader/FontLoader";
|
|
90
|
-
import { GLTFLoader } from "./resource_loader/GLTFLoader";
|
|
91
|
-
import { GLTFDRACOLoader } from "./resource_loader/GLTFDRACOLoader";
|
|
92
|
-
import { HDRCubeTextureLoader } from "./resource_loader/HDRCubeTextureLoader";
|
|
93
|
-
import { JSONLoader } from "./resource_loader/JSONLoader";
|
|
94
|
-
import { OBJLoader } from "./resource_loader/OBJLoader";
|
|
95
|
-
import { PointArrayLoader } from "./resource_loader/PointArrayLoader";
|
|
96
|
-
import { RGBETextureLoader } from "./resource_loader/RGBETextureLoader";
|
|
97
|
-
import { TextLoader } from "./resource_loader/TextLoader";
|
|
98
|
-
import { AsyncTextureLoader } from "./resource_loader/AsyncTextureLoader";
|
|
99
|
-
import { TextureLoader } from "./resource_loader/TextureLoader";
|
|
100
|
-
import { VideoLoader } from "./resource_loader/VideoLoader";
|
|
101
|
-
import { ResourceBatch } from "./resource_loader/ResourceBatch";
|
|
102
|
-
import { ResourceContainer } from "./ResourceContainer";
|
|
103
|
-
export { AbstractLoader, ActionSequencerBuilder, ApplicationView, BaseApplication, BaseShaderMaterial, Browser, CameraManager, Capabilities, CanvasDrawer, Configuration, CSSAnimator, DrawIOAnimationSheet, Debug, DebugNormalsRender, EventManager, Graphics, KeyboardInput, Initializer, NormalAORender, NormalRender, VRRender, UnrealBloomRender, OrthographicCamera, OS, PerspectiveCamera, RenderLoop, SceneManager, OScreen, Screen, SimpleTextDrawer, Time, UI, BlitMaterial, AddMaterial, UnrealBloomComposeMaterial, BaseRender, ArrayUtilities, CameraUtilities, EasingFunctions, FrustumPointFitter, GeometryUtilities, HTMLUtilities, ImageUtilities, OMath, MeshSampler, ModelUtilities, ObjectUtilities, StringUtilities, TimeUtilities, Validation, ViewComponent, ViewComponentManager, ViewManager, Grid, Line, Text2D, TransitionTable, UIElement, SDFTextBatch, UpdatableMaterialMesh, WorldImage, Arrow, Cube, HorizontalPlane, Sphere, VerticalPlane, ActionSequencer, ActionEvent, ActionInterpolator, NumberInterpolator, VectorInterpolator, ViewContext, MedianFilter, GaussianBlurrer, Blurrer, DualFilteringBlurrer, GPUParticleSystem, ParticleAttribute, ParticlePositionAttribute, PerspectiveFrustumPointFitter, OrthographicFrustumPointFitter, DualFilteringBlurMaterial, BufferGeometryUtils, MeshBatcher, AudioLoader, BasisLoader, CubemapLoader, DAELoader, FileLoader, FontLoader, GLTFLoader, GLTFDRACOLoader, HDRCubeTextureLoader, JSONLoader, OBJLoader, PointArrayLoader, RGBETextureLoader, TextLoader, AsyncTextureLoader, TextureLoader, VideoLoader, ResourceBatch, ResourceContainer };
|
|
105
|
+
export { AbstractLoader, ActionEvent, ActionInterpolator, ActionSequencer, ActionSequencerBuilder, AddMaterial, ApplicationView, ApplicationViewController, ArrayUtilities, Arrow, AsyncTextureLoader, AudioLoader, BaseApplication, BaseRender, BaseShaderMaterial, BasisLoader, BlitMaterial, Blurrer, Browser, BufferGeometryUtils, CameraManager, CameraUtilities, CanvasDrawer, Capabilities, CSSAnimator, Cube, CubemapLoader, DAELoader, Debug, DebugNormalsRender, DrawIOAnimationSheet, DualFilteringBlurMaterial, DualFilteringBlurrer, EasingFunctions, EventManager, FileLoader, FontLoader, FrustumPointFitter, GaussianBlurrer, GeometryUtilities, GLTFDRACOLoader, GLTFLoader, GPUParticleSystem, Graphics, Grid, HDRCubeTextureLoader, HorizontalPlane, HTMLUtilities, ImageUtilities, Initializer, JSONLoader, KeyboardInput, Line, MedianFilter, MeshBatcher, MeshSampler, ModelUtilities, NormalAORender, NormalRender, NumberInterpolator, ObjectUtilities, OBJLoader, OMath, OrthographicCamera, OrthographicFrustumPointFitter, OS, OScreen, ParticleAttribute, ParticlePositionAttribute, PerspectiveCamera, PerspectiveFrustumPointFitter, PointArrayLoader, RenderLoop, ResourceBatch, ResourceContainer, RGBETextureLoader, SceneManager, SDFTextBatch, SimpleTextDrawer, Sphere, StringUtilities, Text2D, TextLoader, TextureLoader, Time, TimeUtilities, TransitionManager, TransitionTable, UI, UIElement, UnrealBloomComposeMaterial, UnrealBloomRender, UpdatableMaterialMesh, Validation, VCManager, VectorInterpolator, VerticalPlane, VideoLoader, ViewComponent, ViewComponentController, ViewComponentManager, ViewManager, VRRender, WorkerToMain, WorldImage };
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
export class FrustumPointFitter {
|
|
2
|
-
sphere:
|
|
2
|
+
sphere: any;
|
|
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,5 +10,3 @@ 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: any, y: any, t: any): number;
|
|
10
|
+
static clamp(value: any, min: any, max: any): number;
|
|
11
|
+
static euclideanModulo(n: any, m: any): number;
|
|
12
|
+
static pingpong(x: any, length?: number): number;
|
|
13
|
+
static degToRad(degrees: any): number;
|
|
14
|
+
static radToDeg(radians: any): number;
|
|
15
|
+
static deg_to_rad(degrees: any): number;
|
|
16
|
+
static rad_to_deg(radians: any): 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: any): number;
|
|
21
21
|
}
|
|
@@ -6,8 +6,6 @@ export class ApplicationView extends ViewState {
|
|
|
6
6
|
});
|
|
7
7
|
container: any;
|
|
8
8
|
url: any;
|
|
9
|
-
|
|
10
|
-
load_html_videos(): void;
|
|
11
|
-
set_opacity(current_state_data: any): void;
|
|
9
|
+
set_opacity(opacity: any): void;
|
|
12
10
|
}
|
|
13
11
|
import { ViewState } from "./ViewState";
|