ohzi-core 9.3.0 → 9.4.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.
Files changed (92) hide show
  1. package/build/index.module.js +1 -1
  2. package/build/index.module.js.map +1 -1
  3. package/package.json +1 -1
  4. package/src/Browser.js +26 -0
  5. package/src/resource_loader/AsyncTextureLoader.js +50 -0
  6. package/types/BaseApplication.d.ts +1 -0
  7. package/types/Browser.d.ts +14 -11
  8. package/types/CameraManager.d.ts +10 -5
  9. package/types/Capabilities.d.ts +7 -5
  10. package/types/Configuration.d.ts +7 -5
  11. package/types/CustomBezierCurve.d.ts +7 -0
  12. package/types/Debug.d.ts +36 -37
  13. package/types/EventManager.d.ts +43 -41
  14. package/types/Graphics.d.ts +48 -34
  15. package/types/Initializer.d.ts +5 -3
  16. package/types/Input.d.ts +43 -30
  17. package/types/KeyboardInput.d.ts +20 -0
  18. package/types/OS.d.ts +13 -11
  19. package/types/OScreen.d.ts +21 -17
  20. package/types/OrthographicCamera.d.ts +1 -0
  21. package/types/PerspectiveCamera.d.ts +1 -0
  22. package/types/ReflectionPlaneContext.d.ts +7 -5
  23. package/types/RenderOrder.d.ts +8 -0
  24. package/types/ResourceContainer.d.ts +9 -7
  25. package/types/SceneManager.d.ts +11 -9
  26. package/types/Screen.d.ts +11 -16
  27. package/types/Time.d.ts +14 -10
  28. package/types/UI.d.ts +16 -14
  29. package/types/action_sequencer/ActionSequencer.d.ts +8 -5
  30. package/types/action_sequencer/NumberInterpolator.d.ts +3 -2
  31. package/types/canvas_drawer/SimpleTextDrawer.d.ts +1 -0
  32. package/types/components/AudioClip.d.ts +2 -1
  33. package/types/data_textures/CustomDataTexture.d.ts +11 -0
  34. package/types/data_textures/RGBADataTexture.d.ts +4 -0
  35. package/types/data_textures/RGBAFloatDataTexture.d.ts +4 -0
  36. package/types/data_textures/RGBDataTexture.d.ts +4 -0
  37. package/types/data_textures/RGBFloatDataTexture.d.ts +4 -0
  38. package/types/gpu_particles/GPUParticleSystem.d.ts +9 -6
  39. package/types/gpu_particles/ParticleAttribute.d.ts +8 -5
  40. package/types/gpu_particles/ParticlePositionAttribute.d.ts +3 -1
  41. package/types/html_utilities/CSSAnimator.d.ts +3 -2
  42. package/types/index.d.ts +103 -90
  43. package/types/materials/UnrealBloomComposeMaterial.d.ts +0 -1
  44. package/types/materials/gpu_particles/ParticleStorageMaterial.d.ts +0 -1
  45. package/types/render_mode/DebugNormalsRender.d.ts +2 -4
  46. package/types/render_mode/NormalRender.d.ts +2 -3
  47. package/types/render_mode/UnrealBloomRender.d.ts +1 -0
  48. package/types/render_mode/VRRender.d.ts +4 -0
  49. package/types/render_utilities/Blitter.d.ts +1 -2
  50. package/types/render_utilities/Blurrer.d.ts +1 -2
  51. package/types/render_utilities/DepthAndNormalsRenderer.d.ts +2 -4
  52. package/types/render_utilities/DualFilteringBlurrer.d.ts +2 -4
  53. package/types/render_utilities/GaussianBlurrer.d.ts +1 -2
  54. package/types/render_utilities/MedianFilter.d.ts +1 -2
  55. package/types/resource_loader/AbstractLoader.d.ts +1 -1
  56. package/types/resource_loader/AsyncTextureLoader.d.ts +5 -0
  57. package/types/resource_loader/AudioLoader.d.ts +5 -4
  58. package/types/resource_loader/BasisLoader.d.ts +2 -2
  59. package/types/resource_loader/CubemapLoader.d.ts +2 -2
  60. package/types/resource_loader/DAELoader.d.ts +2 -2
  61. package/types/resource_loader/FileLoader.d.ts +2 -2
  62. package/types/resource_loader/FontLoader.d.ts +2 -2
  63. package/types/resource_loader/GLTFDRACOLoader.d.ts +2 -2
  64. package/types/resource_loader/GLTFLoader.d.ts +2 -3
  65. package/types/resource_loader/HDRCubeTextureLoader.d.ts +2 -2
  66. package/types/resource_loader/JSONLoader.d.ts +1 -3
  67. package/types/resource_loader/OBJLoader.d.ts +2 -2
  68. package/types/resource_loader/PointArrayLoader.d.ts +2 -2
  69. package/types/resource_loader/RGBETextureLoader.d.ts +2 -2
  70. package/types/resource_loader/TextLoader.d.ts +2 -2
  71. package/types/resource_loader/TextureLoader.d.ts +1 -3
  72. package/types/resource_loader/VideoLoader.d.ts +1 -3
  73. package/types/static_batcher/BatchedMesh.d.ts +15 -0
  74. package/types/static_batcher/GeometryBatcher.d.ts +8 -6
  75. package/types/static_batcher/MeshBatcher.d.ts +5 -0
  76. package/types/ui/ui_element_state/OnIdle.d.ts +2 -4
  77. package/types/ui/ui_element_state/OnMouseEnter.d.ts +2 -4
  78. package/types/ui/ui_element_state/OnMouseExit.d.ts +2 -4
  79. package/types/ui/ui_element_state/OnMouseHover.d.ts +1 -2
  80. package/types/utilities/CameraUtilities.d.ts +20 -20
  81. package/types/utilities/EasingFunctions.d.ts +1 -1
  82. package/types/utilities/FrustumPointFitter.d.ts +2 -2
  83. package/types/utilities/MeshSampler.d.ts +13 -7
  84. package/types/utilities/ModelUtilities.d.ts +11 -9
  85. package/types/view_components/ApplicationView.d.ts +1 -1
  86. package/types/view_components/ViewComponent.d.ts +3 -1
  87. package/types/view_components/ViewComponentManager.d.ts +12 -9
  88. package/types/view_components/ViewContext.d.ts +5 -5
  89. package/types/view_components/ViewManager.d.ts +33 -22
  90. package/types/view_components/transition/ActionSequencerBuilder.d.ts +5 -4
  91. package/types/view_components/transition/TransitionTable.d.ts +1 -1
  92. package/types/view_components/transition/ViewStateTransitionHandler.d.ts +3 -2
package/types/Input.d.ts CHANGED
@@ -1,54 +1,55 @@
1
- import { Vector2 } from "three";
2
1
 
3
- export class Input {
2
+ export { input as Input };
3
+ declare const input: Input;
4
+ declare class Input {
4
5
  /**
5
6
  * Works for left mouse button or first touch on the screen (primary touch).
6
7
  */
7
- static left_mouse_button_pressed: boolean;
8
+ left_mouse_button_pressed: boolean;
8
9
  /**
9
10
  * Works for left mouse button or first touch on the screen (primary touch).
10
11
  */
11
- static left_mouse_button_down: boolean;
12
+ left_mouse_button_down: boolean;
12
13
  /**
13
14
  * Works for left mouse button or first touch on the screen (primary touch).
14
15
  */
15
- static left_mouse_button_released: boolean;
16
+ left_mouse_button_released: boolean;
16
17
 
17
18
  /**
18
19
  * Mouse only.
19
20
  */
20
- static middle_mouse_button_pressed: boolean;
21
+ middle_mouse_button_pressed: boolean;
21
22
  /**
22
23
  * Mouse only.
23
24
  */
24
- static middle_mouse_button_down: boolean;
25
+ middle_mouse_button_down: boolean;
25
26
  /**
26
27
  * Mouse only.
27
28
  */
28
- static middle_mouse_button_released: boolean;
29
+ middle_mouse_button_released: boolean;
29
30
 
30
31
  /**
31
32
  * Mouse only.
32
33
  */
33
- static right_mouse_button_pressed: boolean;
34
+ right_mouse_button_pressed: boolean;
34
35
  /**
35
36
  * Mouse only.
36
37
  */
37
- static right_mouse_button_down: boolean;
38
+ right_mouse_button_down: boolean;
38
39
  /**
39
40
  * Mouse only.
40
41
  */
41
- static right_mouse_button_released: boolean;
42
+ right_mouse_button_released: boolean;
42
43
 
43
44
  /**
44
45
  * Mouse and primary touch.
45
46
  */
46
- static clicked: boolean;
47
+ clicked: boolean;
47
48
 
48
49
  /**
49
50
  * Screen coordinates of the mouse (or primary touch) position.
50
51
  */
51
- static pointer_pos: {
52
+ pointer_pos: {
52
53
  x: number;
53
54
  y: number;
54
55
  };
@@ -56,7 +57,7 @@ import { Vector2 } from "three";
56
57
  /**
57
58
  * Difference between previous position and current position.
58
59
  */
59
- static pointer_pos_delta: {
60
+ pointer_pos_delta: {
60
61
  x: number;
61
62
  y: number;
62
63
  };
@@ -64,7 +65,7 @@ import { Vector2 } from "three";
64
65
  /**
65
66
  * Screen coordinates of the mouse (or primary touch) position, where the origin is in the upper left corner (browser coordinates).
66
67
  */
67
- static html_pointer_pos: {
68
+ html_pointer_pos: {
68
69
  x: number;
69
70
  y: number;
70
71
  };
@@ -72,7 +73,7 @@ import { Vector2 } from "three";
72
73
  /**
73
74
  * The center of all active touches. If using mouse, this is the same as pointer_pos.
74
75
  */
75
- static pointer_center: {
76
+ pointer_center: {
76
77
  x: number;
77
78
  y: number;
78
79
  };
@@ -80,7 +81,7 @@ import { Vector2 } from "three";
80
81
  /**
81
82
  * The center of all active touches. If using mouse, this is the same as pointer_pos.
82
83
  */
83
- static pointer_center_delta: {
84
+ pointer_center_delta: {
84
85
  x: number;
85
86
  y: number;
86
87
  };
@@ -88,7 +89,7 @@ import { Vector2 } from "three";
88
89
  /**
89
90
  * [-1..1] the center of all active touches. If using mouse, this is the same as pointer_pos.
90
91
  */
91
- static pointer_center_NDC: {
92
+ pointer_center_NDC: {
92
93
  x: number;
93
94
  y: number;
94
95
  };
@@ -96,7 +97,7 @@ import { Vector2 } from "three";
96
97
  /**
97
98
  * [-1..1] difference between previous normalized center and current one.
98
99
  */
99
- static pointer_center_NDC_delta: {
100
+ pointer_center_NDC_delta: {
100
101
  x: number;
101
102
  y: number;
102
103
  };
@@ -104,7 +105,7 @@ import { Vector2 } from "three";
104
105
  /**
105
106
  * Normalized [-1..1] device coordinates for mouse or primary touch.
106
107
  */
107
- static NDC: {
108
+ NDC: {
108
109
  x: number;
109
110
  y: number;
110
111
  };
@@ -112,7 +113,7 @@ import { Vector2 } from "three";
112
113
  /**
113
114
  * [-1..1] difference between previous normalized position and current normalized position.
114
115
  */
115
- static NDC_delta: {
116
+ NDC_delta: {
116
117
  x: number;
117
118
  y: number;
118
119
  };
@@ -120,7 +121,7 @@ import { Vector2 } from "three";
120
121
  /**
121
122
  * Normalized [-1..1] device coordinates for mouse or primary touch, but in browser space (upper left corner maps to <-1,-1>).
122
123
  */
123
- static html_NDC: {
124
+ html_NDC: {
124
125
  x: number;
125
126
  y: number;
126
127
  };
@@ -128,7 +129,12 @@ import { Vector2 } from "three";
128
129
  /**
129
130
  * Normalized [-1..1] device coordinates for mouse or primary touch, captured when left click is pressed.
130
131
  */
131
- static captured_NDC: {
132
+ captured_NDC: {
133
+ x: number;
134
+ y: number;
135
+ };
136
+
137
+ current_NDC_delta: {
132
138
  x: number;
133
139
  y: number;
134
140
  };
@@ -136,35 +142,42 @@ import { Vector2 } from "three";
136
142
  /**
137
143
  * This is equivalent to the mouse wheel (-1, 0, 1) or dragging with one finger [-x..x] measured in pixels.
138
144
  */
139
- static scroll_delta: float;
145
+ scroll_delta: number;
140
146
 
141
147
  /**
142
148
  * This is equivalent to the mouse wheel (-1, 0, 1) or pinching with two fingers [-x..x] measured in pixels.
143
149
  */
144
- static zoom_delta: float;
150
+ zoom_delta: number;
145
151
 
146
152
  /**
147
153
  * Returns 1 if any mouse button is down, or return the amount of active touches.
148
154
  */
149
- static pointer_count: integer;
155
+ pointer_count: number;
150
156
 
151
157
  /**
152
158
  * True if the mouse or primary touch is contained within the bounds of the subregion
153
159
  */
154
- static pointer_is_within_bounds: boolean;
160
+ pointer_is_within_bounds: boolean;
155
161
 
156
162
  /**
157
163
  * True if the pointer is over an html element
158
164
  */
159
- static pointer_is_over_element(html_element: any): boolean;
165
+ pointer_is_over_element(html_element: any): boolean;
160
166
 
161
167
  /**
162
168
  * Call this at the beginning of the current frame.
163
169
  */
164
- static update(): void;
170
+ update(): void;
165
171
 
166
172
  /**
167
173
  * Call this at the end of the current frame.
168
174
  */
169
- static clear(): void;
175
+ clear(): void;
176
+
177
+ keyboard: KeyboardInput;
178
+
179
+ init(container: any, keyboard_input_container: any): void;
180
+ dispose(): void;
170
181
  }
182
+
183
+ import { KeyboardInput } from "./KeyboardInput";
@@ -0,0 +1,20 @@
1
+ export class KeyboardInput {
2
+ init(container: any): void;
3
+ ctrlz_pressed: boolean;
4
+ ctrlz_fired: boolean;
5
+ keys: {};
6
+ keys_keys: any[] | string[];
7
+ container: any;
8
+ on_key_down(e: any): void;
9
+ on_key_up(e: any): void;
10
+ clear(): void;
11
+ release_key(key_name: any): void;
12
+ release_keys(): void;
13
+ press_key(key_name: any): void;
14
+ is_key_pressed(key_name: any): any;
15
+ is_key_down(key_name: any): any;
16
+ is_key_released(key_name: any): any;
17
+ register_key(key: any): void;
18
+ unregister_key(key_name: any): void;
19
+ dispose(): void;
20
+ }
package/types/OS.d.ts CHANGED
@@ -1,18 +1,20 @@
1
- export class OS {
2
- static init(): void;
3
- static operating_systems: {
1
+ export { os as OS };
2
+ declare const os: OS;
3
+ declare class OS {
4
+ init(): void;
5
+ operating_systems: {
4
6
  ANDROID: string;
5
7
  IOS: string;
6
8
  LINUX: string;
7
9
  MAC: string;
8
10
  WINDOWS: string;
9
11
  };
10
- static get_os(): string;
11
- static get is_android(): boolean;
12
- static get is_ios(): boolean | RegExpMatchArray;
13
- static get is_ipad(): boolean;
14
- static get is_mobile(): boolean;
15
- static get is_linux(): boolean;
16
- static get is_mac(): boolean;
17
- static get is_windows(): boolean;
12
+ is_mobile: boolean;
13
+ is_ipad: boolean;
14
+ is_ios: boolean;
15
+ is_android: boolean;
16
+ is_linux: boolean;
17
+ is_mac: boolean;
18
+ is_windows: boolean;
19
+ get_os(): string;
18
20
  }
@@ -1,18 +1,22 @@
1
- export class OScreen {
2
- static init(): void;
3
- static width: any;
4
- static height: any;
5
- static position: any;
6
- static render_width: number;
7
- static render_height: number;
8
- static width_height: any;
9
- static dpr: number;
10
- static pixel_size: any;
11
- static update_position(x: any, y: any): void;
12
- static update_size(width: any, height: any): void;
13
- static apply_pixel_density_v2(vector2: any): any;
14
- static apply_pixel_density(value: any): number;
15
- static get_pixel_size(): any;
16
- static get aspect_ratio(): number;
17
- static get portrait(): boolean;
1
+ export { oscreen as OScreen };
2
+ declare const oscreen: OScreen;
3
+ declare class OScreen {
4
+ init(): void;
5
+ width: any;
6
+ height: any;
7
+ position: any;
8
+ render_width: number;
9
+ render_height: number;
10
+ width_height: any;
11
+ dpr: number;
12
+ pixel_size: any;
13
+ update_position(x: any, y: any): void;
14
+ update(): void;
15
+ size_changed: boolean;
16
+ update_size(width: any, height: any): void;
17
+ apply_pixel_density_v2(vector2: any): any;
18
+ apply_pixel_density(value: any): number;
19
+ get_pixel_size(): any;
20
+ get aspect_ratio(): number;
21
+ get portrait(): boolean;
18
22
  }
@@ -2,4 +2,5 @@ export class OrthographicCamera {
2
2
  constructor(left: any, right: any, top: any, bottom: any, near: any, far: any);
3
3
  clear_color: any;
4
4
  clear_alpha: number;
5
+ copy(camera: any): OrthographicCamera;
5
6
  }
@@ -2,4 +2,5 @@ export class PerspectiveCamera {
2
2
  constructor(fov: any, aspect: any, near: any, far: any);
3
3
  clear_color: any;
4
4
  clear_alpha: number;
5
+ copy(camera: any): PerspectiveCamera;
5
6
  }
@@ -1,6 +1,8 @@
1
- export class ReflectionPlaneContext {
2
- static init(): void;
3
- static target_geometry: any;
4
- static target_position: any;
5
- static set_target_geometry(geometry: any): void;
1
+ export { reflection_plane_context as ReflectionPlaneContext };
2
+ declare const reflection_plane_context: ReflectionPlaneContext;
3
+ declare class ReflectionPlaneContext {
4
+ init(): void;
5
+ target_geometry: any;
6
+ target_position: any;
7
+ set_target_geometry(geometry: any): void;
6
8
  }
@@ -0,0 +1,8 @@
1
+ export class RenderOrder {
2
+ static get kiosk(): number;
3
+ static get kiosk_circle(): number;
4
+ static get placeholder_image(): number;
5
+ static get step_icon(): number;
6
+ static get line(): number;
7
+ static get placeholder_text(): number;
8
+ }
@@ -1,8 +1,10 @@
1
- export class ResourceContainer {
2
- static init(): void;
3
- static resources: {};
4
- static resources_by_url: {};
5
- static set_resource(name: any, url: any, resource: any): void;
6
- static get_resource(name: any): any;
7
- static get(name: any): any;
1
+ export { resource_container as ResourceContainer };
2
+ declare const resource_container: ResourceContainer;
3
+ declare class ResourceContainer {
4
+ init(): void;
5
+ resources: {};
6
+ resources_by_url: {};
7
+ set_resource(name: any, url: any, resource: any): void;
8
+ get_resource(name: any): any;
9
+ get(name: any): any;
8
10
  }
@@ -1,10 +1,12 @@
1
- import { Scene } from "three";
2
-
3
- export class SceneManager {
4
- static init(): void;
5
- static _current: Scene;
6
- static add_scene(name: string): void;
7
- static set current(arg: Scene);
8
- static get current(): Scene;
9
- static dispose(): void;
1
+ export { scene_manager as SceneManager };
2
+ declare const scene_manager: SceneManager;
3
+ declare class SceneManager {
4
+ init(): void;
5
+ _current: Scene;
6
+ add_scene(name: any): void;
7
+ set current(arg: any);
8
+ get current(): any;
9
+ dispose(): void;
10
10
  }
11
+
12
+ import { Scene } from "three";
package/types/Screen.d.ts CHANGED
@@ -1,17 +1,12 @@
1
- export class Screen {
2
- static init(): void;
3
- static width: any;
4
- static height: any;
5
- static position: any;
6
- static render_width: number;
7
- static render_height: number;
8
- static width_height: any;
9
- static dpr: number;
10
- static pixel_size: any;
11
- static update_position(x: any, y: any): void;
12
- static update_size(width: any, height: any): void;
13
- static apply_pixel_density_v2(vector2: any): any;
14
- static apply_pixel_density(value: any): number;
15
- static get_pixel_size(): any;
16
- static get aspect_ratio(): number;
1
+ export { screen as Screen };
2
+ declare const screen: Screen;
3
+ declare class Screen {
4
+ init(): void;
5
+ update_position(x: any, y: any): void;
6
+ update(): void;
7
+ update_size(width: any, height: any): void;
8
+ apply_pixel_density_v2(vector2: any): any;
9
+ apply_pixel_density(value: any): number;
10
+ get_pixel_size(): any;
11
+ get aspect_ratio(): number;
17
12
  }
package/types/Time.d.ts CHANGED
@@ -1,11 +1,15 @@
1
- export class Time {
2
- static init(): void;
3
- static ___time: any;
4
- static __delta_time: any;
5
- static __elapsed_time: any;
6
- static __allocated_time: any;
7
- static get delta_time(): any;
8
- static get elapsed_time(): any;
9
- static get shader_time(): any;
10
- static __update(): void;
1
+ export { time as Time };
2
+ declare const time: Time;
3
+ declare class Time {
4
+ delta_buffer: number[];
5
+ init(): void;
6
+ ___time: any;
7
+ __raw_delta_time: any;
8
+ __elapsed_time: any;
9
+ __allocated_time: any;
10
+ delta_time: any;
11
+ get elapsed_time(): any;
12
+ get shader_time(): any;
13
+ __update(): void;
14
+ __calculate_delta_time(): void;
11
15
  }
package/types/UI.d.ts CHANGED
@@ -1,15 +1,17 @@
1
- export class UI {
2
- static init(): void;
3
- static ui_elements: any[];
4
- static _tmp_normalized_pos: any;
5
- static ss_scene: any;
6
- static ws_scene: any;
7
- static ss_camera: any;
8
- static delete_element(elem: any): void;
9
- static add_screen_space_element(elem: any): void;
10
- static add_world_space_element(elem: any): void;
11
- static update(): void;
12
- static render(renderer: any): void;
13
- static clear(): void;
14
- static current_clicked_element: any;
1
+ export { ui as UI };
2
+ declare const ui: UI;
3
+ declare class UI {
4
+ init(): void;
5
+ ui_elements: any[];
6
+ _tmp_normalized_pos: any;
7
+ ss_scene: any;
8
+ ws_scene: any;
9
+ ss_camera: any;
10
+ delete_element(elem: any): void;
11
+ add_screen_space_element(elem: any): void;
12
+ add_world_space_element(elem: any): void;
13
+ update(): void;
14
+ render(renderer: any): void;
15
+ clear(): void;
16
+ current_clicked_element: any;
15
17
  }
@@ -1,6 +1,7 @@
1
1
  export class ActionSequencer {
2
2
  constructor(context: any);
3
3
  elapsed_time: number;
4
+ playback_speed: number;
4
5
  playing: boolean;
5
6
  action_events: any[];
6
7
  context: any;
@@ -15,16 +16,18 @@ export class ActionSequencer {
15
16
  update(delta_time: any): void;
16
17
  set_progress(time: any): void;
17
18
  set_normalized_progress(t: any): void;
18
- get_progress(): any;
19
+ get_progress(): number;
19
20
  is_finished(): boolean;
20
21
  add_action_event(trigger_time: any, action: any): void;
21
22
  add_action_interpolator(from: any, to: any, interpolator: any, use_dynamic_from_value?: boolean): void;
22
- get_current_starting_value(name: string): number;
23
- get_current_target_value(name: string): number;
24
- get_current_progress(name: string): number;
23
+ get_current_target_value(name: any): any;
24
+ get_current_starting_value(name: any): any;
25
+ get_current_progress(name: any): any;
25
26
  get_duration(): number;
26
27
  __play_clips(from: any, to: any): void;
27
28
  evaluate_keyframe(keyframe: any, time: any): any;
29
+ get_keyframes(channel_name: any): any;
30
+ is_channel_redefined(channel_name: any): boolean;
28
31
  __linear_map_01(value: any, from_range_start_value: any, from_range_end_value: any): number;
29
- __get_nearest_keyframe(channel_name: any, time: any): any;
32
+ __get_current_keyframe(channel_name: any, time: any): any;
30
33
  }
@@ -1,8 +1,9 @@
1
1
  export class NumberInterpolator extends ActionInterpolator {
2
- constructor(attribute_name: any, from?: number, to?: number, easing_function?: string);
2
+ constructor(attribute_name: any, from?: number, to?: number, initial?: boolean, easing_function?: string);
3
3
  attribute_name: any;
4
4
  from: number;
5
5
  to: number;
6
- evaluate(t: any): any;
6
+ initial: boolean;
7
+ evaluate(t: any): number;
7
8
  }
8
9
  import { ActionInterpolator } from "./ActionInterpolator";
@@ -1,5 +1,6 @@
1
1
  export class SimpleTextDrawer extends CanvasDrawer {
2
2
  constructor();
3
3
  text_margin: any;
4
+ __draw(text: any, ctxOptions: any, canvas: any, ctx: any): void;
4
5
  }
5
6
  import { CanvasDrawer } from "./CanvasDrawer";
@@ -1,8 +1,9 @@
1
1
  export class AudioClip {
2
- constructor(buffer: any, loop?: boolean, volume?: number);
2
+ constructor(buffer: any, loop?: boolean, volume?: number, positional?: boolean);
3
3
  buffer: any;
4
4
  loop: boolean;
5
5
  volume: number;
6
+ positional: boolean;
6
7
  audio: any;
7
8
  init(audio_listener: any): void;
8
9
  play(): void;
@@ -0,0 +1,11 @@
1
+ export class CustomDataTexture {
2
+ constructor(data: any, width: any, height: any, format: any, type: any);
3
+ multiplier: number;
4
+ set_rgba(index: any, r: any, g: any, b: any, a: any): void;
5
+ needsUpdate: boolean;
6
+ set_rgb(index: any, r: any, g: any, b: any): void;
7
+ set_r(index: any, value: any): void;
8
+ set_g(index: any, value: any): void;
9
+ set_b(index: any, value: any): void;
10
+ set_a(index: any, value: any): void;
11
+ }
@@ -0,0 +1,4 @@
1
+ export class RGBADataTexture extends CustomDataTexture {
2
+ constructor(width: any, height: any);
3
+ }
4
+ import { CustomDataTexture } from "./CustomDataTexture";
@@ -0,0 +1,4 @@
1
+ export class RGBAFloatDataTexture extends CustomDataTexture {
2
+ constructor(width: any, height: any);
3
+ }
4
+ import { CustomDataTexture } from "./CustomDataTexture";
@@ -0,0 +1,4 @@
1
+ export class RGBDataTexture extends CustomDataTexture {
2
+ constructor(width: any, height: any);
3
+ }
4
+ import { CustomDataTexture } from "./CustomDataTexture";
@@ -0,0 +1,4 @@
1
+ export class RGBFloatDataTexture extends CustomDataTexture {
2
+ constructor(width: any, height: any);
3
+ }
4
+ import { CustomDataTexture } from "./CustomDataTexture";
@@ -1,12 +1,15 @@
1
1
  export class GPUParticleSystem {
2
+ constructor(particle_count: any, material: any);
2
3
  attributes: any[];
3
- particles: any;
4
- set_from_geometry(geometry: any, material: any, init_attribute_uvs: any): void;
4
+ mesh: any;
5
+ attribute_writter_mesh: any;
6
+ attribute_writter_scene: any;
5
7
  add_texture_attribute(buffer_attribute: any): void;
6
- add_attribute(name: any, buffer_attribute: any): void;
7
- build_uv_storage_attribute(particle_count: any): any;
8
- calculate_resolution(particle_count: any): number;
8
+ add_update_attribute_array(name: any, array: any, item_size: any): void;
9
+ add_attribute_array(name: any, array: any, item_size: any): void;
9
10
  update(): void;
10
- set_attribute_update_material(attribute_name: any, mat: any): void;
11
11
  dispose(): void;
12
+ build_point_mesh(instance_count: number, material: any): any;
13
+ build_attribute_writter_mesh(particle_count: any): any;
14
+ build_uv_storage_attribute(particle_count: any): any;
12
15
  }
@@ -1,15 +1,18 @@
1
1
  export class ParticleAttribute {
2
- constructor(attr_name: any);
2
+ static calculate_resolution(particle_count: any): {
3
+ width: number;
4
+ height: number;
5
+ };
6
+ constructor(attr_name: any, update_material: any);
3
7
  read: any;
4
8
  write: any;
5
9
  name: any;
6
10
  update_material: any;
7
- update_scene: any;
8
11
  init_from_geometry(geometry: any): void;
9
12
  init_from_attribute(particle_attribute: any): void;
10
13
  build_RT(particle_count: any): any;
11
- calculate_resolution(particle_count: any): number;
12
14
  swap_RT(): void;
13
- update(): void;
14
- render_geometry_to_RT(geometry: any, material: any, RT: any): void;
15
+ update(attribute_writter_scene: any): void;
16
+ store_geometry_attribute_in_RT(attribute: any, RT: any, storage_material: any, attribute_writter_scene: any): void;
17
+ get_texture(): any;
15
18
  }
@@ -1,4 +1,6 @@
1
1
  export class ParticlePositionAttribute extends ParticleAttribute {
2
- constructor();
2
+ constructor(update_material: any);
3
+ store_geometry(geometry: any, attribute_writter_scene: any): void;
4
+ store_positions(positions: any, attribute_writter_scene: any): void;
3
5
  }
4
6
  import { ParticleAttribute } from "../gpu_particles/ParticleAttribute";
@@ -7,7 +7,7 @@ export class CSSAnimator {
7
7
  duration?: number;
8
8
  value_prefix?: string;
9
9
  value_suffix?: string;
10
- easing_function?: (x: any) => number;
10
+ easing_function?: typeof EasingFunctions.ease_in_out_cubic;
11
11
  finished_callback?: () => void;
12
12
  });
13
13
  element: any;
@@ -17,7 +17,7 @@ export class CSSAnimator {
17
17
  value_prefix: string;
18
18
  value_suffix: string;
19
19
  duration: number;
20
- easing_function: (x: any) => number;
20
+ easing_function: typeof EasingFunctions.ease_in_out_cubic;
21
21
  finished_callback: () => void;
22
22
  current_state: Idle;
23
23
  animate(): void;
@@ -27,4 +27,5 @@ export class CSSAnimator {
27
27
  get is_animating(): boolean;
28
28
  set_current_state(state: any): void;
29
29
  }
30
+ import { EasingFunctions } from "../utilities/EasingFunctions";
30
31
  import { Idle } from "./css_animator_states/Idle";