ohzi-core 12.2.0 → 12.3.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 (285) hide show
  1. package/build/index.mjs +1 -1
  2. package/build/index.mjs.map +1 -1
  3. package/package.json +2 -1
  4. package/src/BaseApplication.js +11 -2
  5. package/src/Browser.js +10 -3
  6. package/src/CameraManager.js +5 -0
  7. package/src/Capabilities.js +1 -0
  8. package/src/CustomBezierCurve.js +12 -0
  9. package/src/Debug.js +99 -5
  10. package/src/Graphics.js +86 -6
  11. package/src/Initializer.js +5 -0
  12. package/src/KeyboardInput.js +40 -1
  13. package/src/OS.js +1 -1
  14. package/src/OScreen.js +19 -4
  15. package/src/OrthographicCamera.js +13 -0
  16. package/src/PerspectiveCamera.js +11 -0
  17. package/src/ReflectionPlaneContext.js +5 -1
  18. package/src/RenderLayers.js +1 -1
  19. package/src/RenderLoop.js +9 -0
  20. package/src/RenderOrder.js +1 -1
  21. package/src/ResourceContainer.js +21 -0
  22. package/src/SceneManager.js +14 -4
  23. package/src/Screen.js +71 -0
  24. package/src/Time.js +4 -0
  25. package/src/UI.js +16 -1
  26. package/src/action_sequencer/ActionEvent.js +6 -1
  27. package/src/action_sequencer/ActionInterpolator.js +16 -2
  28. package/src/action_sequencer/ActionSequencer.js +65 -2
  29. package/src/action_sequencer/NumberInterpolator.js +15 -0
  30. package/src/action_sequencer/VectorInterpolator.js +13 -1
  31. package/src/blitter_index.js +1 -0
  32. package/src/canvas_drawer/CanvasDrawer.js +37 -4
  33. package/src/canvas_drawer/MultiLineTextDrawer.js +8 -1
  34. package/src/canvas_drawer/SimpleTextDrawer.js +7 -1
  35. package/src/components/AudioClip.js +11 -1
  36. package/src/components/AxisHelper.js +1 -1
  37. package/src/components/BaseObject.js +8 -5
  38. package/src/components/EdgeMesh.js +30 -2
  39. package/src/components/GeometryEdgeVisualizer.js +10 -1
  40. package/src/components/Grid.js +4 -0
  41. package/src/components/Line.js +31 -7
  42. package/src/components/MultiLinePath.js +9 -5
  43. package/src/components/MultiLineText2D.js +13 -2
  44. package/src/components/ObjectAxis.js +5 -0
  45. package/src/components/ObjectOrientedBoundingBox.js +26 -1
  46. package/src/components/PlaneHelper.js +1 -1
  47. package/src/components/Shape2D.js +11 -3
  48. package/src/components/Shape3D.js +10 -4
  49. package/src/components/Text2D.js +11 -3
  50. package/src/components/UIElement.js +40 -4
  51. package/src/components/UpdatableMaterialMesh.js +11 -3
  52. package/src/components/WorldImage.js +10 -2
  53. package/src/index.js +3 -1
  54. package/src/loaders/AsyncAbstractLoader.js +16 -0
  55. package/src/loaders/AsyncObjectsLoader.js +6 -0
  56. package/src/materials/AddMaterial.js +2 -2
  57. package/src/materials/GaussianBlurMaterial.js +9 -1
  58. package/src/materials/LuminosityHighPassMaterial.js +8 -1
  59. package/src/materials/UnrealBloomComposeMaterial.js +3 -2
  60. package/src/primitives/Arrow.js +6 -0
  61. package/src/primitives/Cube.js +6 -1
  62. package/src/primitives/HorizontalPlane.js +8 -1
  63. package/src/primitives/Sphere.js +7 -0
  64. package/src/primitives/VerticalPlane.js +8 -1
  65. package/src/render_mode/UnrealBloomRender.js +47 -38
  66. package/src/render_utilities/Blitter.js +3 -3
  67. package/src/render_utilities/GaussianBlurrer.js +33 -14
  68. package/src/shaders/add/add.frag +21 -2
  69. package/src/shaders/gaussian_blur/gaussian_blur.frag +23 -4
  70. package/src/shaders/gaussian_blur/unreal_bloom_compose.frag +17 -5
  71. package/src/shaders/luminosity_high_pass/luminosity_high_pass.frag +16 -1
  72. package/src/ui/ui_element_state/OnIdle.js +5 -0
  73. package/src/ui/ui_element_state/OnMouseEnter.js +11 -0
  74. package/src/ui/ui_element_state/OnMouseExit.js +5 -0
  75. package/src/ui/ui_element_state/OnMouseHover.js +13 -0
  76. package/src/ui/ui_element_state/UIElementState.js +17 -3
  77. package/src/utilities/EasingFunctions.js +5 -0
  78. package/types/BaseApplication.d.ts +18 -11
  79. package/types/Browser.d.ts +20 -19
  80. package/types/CameraManager.d.ts +14 -13
  81. package/types/Capabilities.d.ts +8 -8
  82. package/types/CustomBezierCurve.d.ts +19 -7
  83. package/types/Debug.d.ts +198 -37
  84. package/types/Graphics.d.ts +143 -61
  85. package/types/Initializer.d.ts +10 -6
  86. package/types/KeyboardInput.d.ts +65 -20
  87. package/types/OS.d.ts +20 -20
  88. package/types/OScreen.d.ts +37 -22
  89. package/types/OrthographicCamera.d.ts +20 -6
  90. package/types/PerspectiveCamera.d.ts +18 -6
  91. package/types/ReflectionPlaneContext.d.ts +13 -8
  92. package/types/RenderLayers.d.ts +6 -6
  93. package/types/RenderLoop.d.ts +132 -14
  94. package/types/RenderOrder.d.ts +8 -8
  95. package/types/ResourceContainer.d.ts +29 -10
  96. package/types/SceneManager.d.ts +15 -12
  97. package/types/Screen.d.ts +27 -0
  98. package/types/Time.d.ts +29 -24
  99. package/types/UI.d.ts +92 -18
  100. package/types/action_sequencer/ActionEvent.d.ts +12 -7
  101. package/types/action_sequencer/ActionInterpolator.d.ts +18 -5
  102. package/types/action_sequencer/ActionSequencer.d.ts +104 -36
  103. package/types/action_sequencer/NumberInterpolator.d.ts +18 -9
  104. package/types/action_sequencer/VectorInterpolator.d.ts +13 -7
  105. package/types/blitter_index.d.ts +6 -6
  106. package/types/canvas_drawer/CanvasDrawer.d.ts +51 -13
  107. package/types/canvas_drawer/MultiLineTextDrawer.d.ts +13 -5
  108. package/types/canvas_drawer/SimpleTextDrawer.d.ts +13 -6
  109. package/types/components/AudioClip.d.ts +25 -13
  110. package/types/components/AxisHelper.d.ts +6 -6
  111. package/types/components/BaseObject.d.ts +12 -5
  112. package/types/components/EdgeMesh.d.ts +42 -13
  113. package/types/components/GeometryEdgeVisualizer.d.ts +12 -4
  114. package/types/components/Grid.d.ts +4 -2
  115. package/types/components/Line.d.ts +42 -16
  116. package/types/components/MultiLinePath.d.ts +10 -4
  117. package/types/components/MultiLineText2D.d.ts +22 -10
  118. package/types/components/ObjectAxis.d.ts +8 -3
  119. package/types/components/ObjectOrientedBoundingBox.d.ts +45 -18
  120. package/types/components/PlaneHelper.d.ts +6 -6
  121. package/types/components/Shape2D.d.ts +14 -4
  122. package/types/components/Shape3D.d.ts +10 -3
  123. package/types/components/Text2D.d.ts +21 -13
  124. package/types/components/UIElement.d.ts +87 -52
  125. package/types/components/UpdatableMaterialMesh.d.ts +12 -4
  126. package/types/components/WorldImage.d.ts +23 -13
  127. package/types/components/mouse_interactors/ObjectRotator.d.ts +12 -0
  128. package/types/components/sdf_text/SDFText.d.ts +35 -30
  129. package/types/components/sdf_text/SDFTextBatch.d.ts +12 -12
  130. package/types/components/sdf_text/TextGlyph.d.ts +8 -6
  131. package/types/data_textures/CustomDataTexture.d.ts +11 -11
  132. package/types/data_textures/RGBADataTexture.d.ts +4 -4
  133. package/types/data_textures/RGBAFloatDataTexture.d.ts +4 -4
  134. package/types/data_textures/RGBDataTexture.d.ts +4 -4
  135. package/types/data_textures/RGBFloatDataTexture.d.ts +4 -4
  136. package/types/editor/ManipulatorHandle.d.ts +23 -14
  137. package/types/editor/ObjectEditor.d.ts +18 -16
  138. package/types/editor/ObjectManipulator.d.ts +23 -19
  139. package/types/editor/ObjectPicker.d.ts +19 -16
  140. package/types/gpu_particles/GPUParticleSystem.d.ts +22 -15
  141. package/types/gpu_particles/ParticleAttribute.d.ts +19 -18
  142. package/types/gpu_particles/ParticlePositionAttribute.d.ts +6 -6
  143. package/types/html_utilities/CSSAnimator.d.ts +31 -31
  144. package/types/html_utilities/css_animator_states/Animating.d.ts +8 -8
  145. package/types/html_utilities/css_animator_states/Idle.d.ts +6 -6
  146. package/types/index.d.ts +110 -108
  147. package/types/loaders/AsyncAbstractLoader.d.ts +41 -27
  148. package/types/loaders/AsyncAudiosLoader.d.ts +6 -5
  149. package/types/loaders/AsyncObjectsLoader.d.ts +6 -6
  150. package/types/loaders/AsyncTexturesLoader.d.ts +9 -8
  151. package/types/loaders/assets_loader/AssetLoader.d.ts +4 -0
  152. package/types/loaders/assets_loader/AsyncAssetsLoaderWorker.d.ts +1 -0
  153. package/types/loaders/assets_loader/ResourceBatch.d.ts +14 -0
  154. package/types/loaders/assets_loader/ResourceContainer.d.ts +9 -0
  155. package/types/loaders/assets_loader/ResourceLoaderChecker.d.ts +8 -0
  156. package/types/materials/AddMaterial.d.ts +5 -5
  157. package/types/materials/AlphaFilterMaterial.d.ts +6 -6
  158. package/types/materials/BaseShaderMaterial.d.ts +4 -3
  159. package/types/materials/BlitMaterial.d.ts +4 -3
  160. package/types/materials/BloomComposeMaterial.d.ts +4 -7
  161. package/types/materials/BoxBlurMaterial.d.ts +4 -4
  162. package/types/materials/ClearAlphaMaterial.d.ts +3 -3
  163. package/types/materials/ClearColorMaterial.d.ts +7 -7
  164. package/types/materials/ClearDepthNormalMaterial.d.ts +4 -4
  165. package/types/materials/DeferredRendererComposeMaterial.d.ts +7 -7
  166. package/types/materials/DepthNormalMaterial.d.ts +6 -4
  167. package/types/materials/DisplayNormalTextureMaterial.d.ts +4 -4
  168. package/types/materials/DualFilteringBlurMaterial.d.ts +4 -4
  169. package/types/materials/FXAAMaterial.d.ts +3 -3
  170. package/types/materials/GaussianBlurMaterial.d.ts +6 -6
  171. package/types/materials/LuminosityHighPassMaterial.d.ts +4 -4
  172. package/types/materials/MedianFilterMaterial.d.ts +7 -6
  173. package/types/materials/NormalMaterial.d.ts +4 -2
  174. package/types/materials/SDFScreenTextMaterial.d.ts +9 -11
  175. package/types/materials/SDFTextMaterial.d.ts +10 -12
  176. package/types/materials/SSAOComposeMaterial.d.ts +4 -4
  177. package/types/materials/SSAOMaterial.d.ts +8 -6
  178. package/types/materials/ScreenSpaceTextureMaterial.d.ts +7 -7
  179. package/types/materials/UIElementMaterial.d.ts +4 -7
  180. package/types/materials/UnrealBloomComposeMaterial.d.ts +16 -16
  181. package/types/materials/UnrealBlurMaterial.d.ts +4 -4
  182. package/types/materials/UnrealComposeMaterial.d.ts +4 -4
  183. package/types/materials/ViewPositionMaterial.d.ts +4 -3
  184. package/types/materials/deferred/DeferredPointLightMaterial.d.ts +9 -10
  185. package/types/materials/gpu_particles/AttributeUpdateMaterial.d.ts +7 -0
  186. package/types/materials/gpu_particles/BasicParticleMaterial.d.ts +4 -0
  187. package/types/materials/gpu_particles/ParticleStorageMaterial.d.ts +4 -2
  188. package/types/materials/gpu_particles/PositionStorageMaterial.d.ts +3 -4
  189. package/types/object_pool/Pool.d.ts +10 -10
  190. package/types/primitives/Arrow.d.ts +15 -8
  191. package/types/primitives/Cube.d.ts +10 -3
  192. package/types/primitives/HorizontalPlane.d.ts +11 -3
  193. package/types/primitives/Sphere.d.ts +11 -3
  194. package/types/primitives/VerticalPlane.d.ts +11 -3
  195. package/types/raycast/GroupRaycaster.d.ts +15 -13
  196. package/types/raycast/PlaneDragResolver.d.ts +16 -15
  197. package/types/raycast/PlaneRaycastResolver.d.ts +5 -5
  198. package/types/raycast/PlaneRaycaster.d.ts +9 -7
  199. package/types/raycast/RaycastResolver.d.ts +5 -5
  200. package/types/raycast/SurfaceDragResolver.d.ts +15 -13
  201. package/types/raycast/states/BaseState.d.ts +5 -5
  202. package/types/raycast/states/IdleState.d.ts +3 -5
  203. package/types/raycast/states/OnRaycastEnter.d.ts +3 -5
  204. package/types/raycast/states/OnRaycastExit.d.ts +3 -4
  205. package/types/raycast/states/OnRaycastHover.d.ts +3 -5
  206. package/types/render_mode/BaseRender.d.ts +7 -7
  207. package/types/render_mode/BloomRender.d.ts +12 -10
  208. package/types/render_mode/DebugNormalsRender.d.ts +3 -3
  209. package/types/render_mode/DeferredRender.d.ts +13 -9
  210. package/types/render_mode/NormalAORender.d.ts +18 -17
  211. package/types/render_mode/NormalRender.d.ts +3 -3
  212. package/types/render_mode/OutlineRender.d.ts +25 -20
  213. package/types/render_mode/PlanarReflectionsRender.d.ts +19 -13
  214. package/types/render_mode/UnrealBloomRender.d.ts +21 -20
  215. package/types/render_mode/VRRender.d.ts +4 -4
  216. package/types/render_utilities/Blitter.d.ts +19 -15
  217. package/types/render_utilities/Blurrer.d.ts +9 -8
  218. package/types/render_utilities/DepthAndNormalsRenderer.d.ts +11 -10
  219. package/types/render_utilities/DualFilteringBlurrer.d.ts +18 -17
  220. package/types/render_utilities/GaussianBlurrer.d.ts +27 -26
  221. package/types/render_utilities/MedianFilter.d.ts +11 -9
  222. package/types/render_utilities/ViewPositionRenderer.d.ts +10 -9
  223. package/types/resource_loader/AbstractLoader.d.ts +21 -21
  224. package/types/resource_loader/AsyncTextureLoader.d.ts +11 -11
  225. package/types/resource_loader/AudioLoader.d.ts +9 -9
  226. package/types/resource_loader/BasisLoader.d.ts +6 -6
  227. package/types/resource_loader/CubemapLoader.d.ts +8 -7
  228. package/types/resource_loader/DAELoader.d.ts +7 -6
  229. package/types/resource_loader/DDSLoader.d.ts +7 -6
  230. package/types/resource_loader/FileLoader.d.ts +7 -6
  231. package/types/resource_loader/FontLoader.d.ts +7 -6
  232. package/types/resource_loader/GLTFDRACOLoader.d.ts +7 -6
  233. package/types/resource_loader/GLTFLoader.d.ts +7 -6
  234. package/types/resource_loader/HDRCubeTextureLoader.d.ts +8 -7
  235. package/types/resource_loader/JSONLoader.d.ts +5 -4
  236. package/types/resource_loader/OBJLoader.d.ts +7 -6
  237. package/types/resource_loader/PointArrayLoader.d.ts +9 -7
  238. package/types/resource_loader/RGBETextureLoader.d.ts +7 -6
  239. package/types/resource_loader/ResourceBatch.d.ts +13 -13
  240. package/types/resource_loader/SVGLoader.d.ts +7 -6
  241. package/types/resource_loader/TextLoader.d.ts +7 -6
  242. package/types/resource_loader/TextureLoader.d.ts +4 -4
  243. package/types/resource_loader/VideoLoader.d.ts +4 -4
  244. package/types/scenes/AbstractScene.d.ts +32 -32
  245. package/types/scenes/loading_states/CompilatorManager.d.ts +8 -8
  246. package/types/scenes/loading_states/HighQualityLoadingState.d.ts +3 -3
  247. package/types/scenes/loading_states/LoadingState.d.ts +31 -31
  248. package/types/scenes/loading_states/RegularLoadingState.d.ts +5 -5
  249. package/types/static_batcher/BatchedMesh.d.ts +16 -15
  250. package/types/static_batcher/GeometryBatch.d.ts +41 -37
  251. package/types/static_batcher/GeometryBatcher.d.ts +9 -9
  252. package/types/static_batcher/MeshBatcher.d.ts +5 -5
  253. package/types/ui/ui_element_position/ScreenSpacePosition.d.ts +5 -4
  254. package/types/ui/ui_element_position/WorldSpacePosition.d.ts +7 -5
  255. package/types/ui/ui_element_state/OnIdle.d.ts +9 -3
  256. package/types/ui/ui_element_state/OnMouseEnter.d.ts +3 -3
  257. package/types/ui/ui_element_state/OnMouseExit.d.ts +3 -3
  258. package/types/ui/ui_element_state/OnMouseHover.d.ts +8 -4
  259. package/types/ui/ui_element_state/UIElementState.d.ts +17 -5
  260. package/types/utilities/ArrayUtilities.d.ts +7 -7
  261. package/types/utilities/CameraUtilities.d.ts +40 -36
  262. package/types/utilities/EasingFunctions.d.ts +36 -35
  263. package/types/utilities/FrustumPointFitter.d.ts +14 -14
  264. package/types/utilities/GeometryUtilities.d.ts +5 -4
  265. package/types/utilities/HTMLUtilities.d.ts +6 -6
  266. package/types/utilities/ImageUtilities.d.ts +5 -4
  267. package/types/utilities/MeshSampler.d.ts +20 -20
  268. package/types/utilities/ModelUtilities.d.ts +15 -15
  269. package/types/utilities/OMath.d.ts +21 -21
  270. package/types/utilities/ObjectUtilities.d.ts +7 -7
  271. package/types/utilities/OrthographicFrustumPointFitter.d.ts +8 -7
  272. package/types/utilities/PerspectiveFrustumPointFitter.d.ts +14 -12
  273. package/types/utilities/StringUtilities.d.ts +6 -6
  274. package/types/utilities/TimeUtilities.d.ts +3 -3
  275. package/types/utilities/Validation.d.ts +6 -6
  276. package/types/view_components/ApplicationView.d.ts +13 -13
  277. package/types/view_components/TransitionManager.d.ts +20 -20
  278. package/types/view_components/ViewComponent.d.ts +15 -15
  279. package/types/view_components/ViewComponentManager.d.ts +13 -13
  280. package/types/view_components/ViewManager.d.ts +22 -23
  281. package/types/view_components/ViewState.d.ts +14 -14
  282. package/types/view_components/transition/ActionSequencerBuilder.d.ts +16 -16
  283. package/types/view_components/transition/DrawIOAnimationSheet.d.ts +17 -17
  284. package/types/view_components/transition/TransitionTable.d.ts +8 -8
  285. package/types/view_components/transition/ViewStateTransitionHandler.d.ts +19 -19
@@ -1,15 +1,22 @@
1
- export class GPUParticleSystem {
2
- constructor(particle_count: any, material: any);
3
- attributes: any[];
4
- mesh: any;
5
- attribute_writter_mesh: any;
6
- attribute_writter_scene: any;
7
- add_texture_attribute(buffer_attribute: any): void;
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;
10
- update(): void;
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;
15
- }
1
+ export class GPUParticleSystem extends Object3D<import("three").Object3DEventMap> {
2
+ constructor(particle_count: any, material: any);
3
+ attributes: any[];
4
+ mesh: Mesh<InstancedBufferGeometry, any, import("three").Object3DEventMap>;
5
+ attribute_writter_mesh: Points<BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap>;
6
+ attribute_writter_scene: Scene;
7
+ add_texture_attribute(buffer_attribute: any): void;
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;
10
+ update(): void;
11
+ dispose(): void;
12
+ build_point_mesh(instance_count: number, material: any): Mesh<InstancedBufferGeometry, any, import("three").Object3DEventMap>;
13
+ build_attribute_writter_mesh(particle_count: any): Points<BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap>;
14
+ build_uv_storage_attribute(particle_count: any): InstancedBufferAttribute;
15
+ }
16
+ import { Object3D } from "three/src/core/Object3D";
17
+ import { InstancedBufferGeometry } from "three/src/core/InstancedBufferGeometry";
18
+ import { Mesh } from "three/src/objects/Mesh";
19
+ import { BufferGeometry } from "three/src/core/BufferGeometry";
20
+ import { Points } from "three/src/objects/Points";
21
+ import { Scene } from "three/src/scenes/Scene";
22
+ import { InstancedBufferAttribute } from "three/src/core/InstancedBufferAttribute";
@@ -1,18 +1,19 @@
1
- export class ParticleAttribute {
2
- static calculate_resolution(particle_count: any): {
3
- width: number;
4
- height: number;
5
- };
6
- constructor(attr_name: any, update_material: any);
7
- read: any;
8
- write: any;
9
- name: any;
10
- update_material: any;
11
- init_from_geometry(geometry: any): void;
12
- init_from_attribute(particle_attribute: any): void;
13
- build_RT(particle_count: any): any;
14
- swap_RT(): 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;
18
- }
1
+ export class ParticleAttribute {
2
+ static calculate_resolution(particle_count: any): {
3
+ width: number;
4
+ height: number;
5
+ };
6
+ constructor(attr_name: any, update_material: any);
7
+ read: any;
8
+ write: any;
9
+ name: any;
10
+ update_material: any;
11
+ init_from_geometry(geometry: any): void;
12
+ init_from_attribute(particle_attribute: any): void;
13
+ build_RT(particle_count: any): WebGLRenderTarget<import("three").Texture>;
14
+ swap_RT(): 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;
18
+ }
19
+ import { WebGLRenderTarget } from "three/src/renderers/WebGLRenderTarget";
@@ -1,6 +1,6 @@
1
- export class ParticlePositionAttribute extends ParticleAttribute {
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;
5
- }
6
- import { ParticleAttribute } from "../gpu_particles/ParticleAttribute";
1
+ export class ParticlePositionAttribute extends ParticleAttribute {
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;
5
+ }
6
+ import { ParticleAttribute } from "../gpu_particles/ParticleAttribute";
@@ -1,31 +1,31 @@
1
- export class CSSAnimator {
2
- constructor({ element, css_property, from, to, duration, value_prefix, value_suffix, easing_function, finished_callback }: {
3
- element: any;
4
- css_property: any;
5
- from?: number;
6
- to?: number;
7
- duration?: number;
8
- value_prefix?: string;
9
- value_suffix?: string;
10
- easing_function?: typeof EasingFunctions.ease_in_out_cubic;
11
- finished_callback?: () => void;
12
- });
13
- element: any;
14
- css_property: any;
15
- from: number;
16
- to: number;
17
- value_prefix: string;
18
- value_suffix: string;
19
- duration: number;
20
- easing_function: typeof EasingFunctions.ease_in_out_cubic;
21
- finished_callback: () => void;
22
- current_state: Idle;
23
- animate(): void;
24
- stop(): void;
25
- set_property_value(value: any): void;
26
- update(): void;
27
- get is_animating(): boolean;
28
- set_current_state(state: any): void;
29
- }
30
- import { EasingFunctions } from "../utilities/EasingFunctions";
31
- import { Idle } from "./css_animator_states/Idle";
1
+ export class CSSAnimator {
2
+ constructor({ element, css_property, from, to, duration, value_prefix, value_suffix, easing_function, finished_callback }: {
3
+ element: any;
4
+ css_property: any;
5
+ from?: number;
6
+ to?: number;
7
+ duration?: number;
8
+ value_prefix?: string;
9
+ value_suffix?: string;
10
+ easing_function?: typeof EasingFunctions.ease_in_out_cubic;
11
+ finished_callback?: () => void;
12
+ });
13
+ element: any;
14
+ css_property: any;
15
+ from: number;
16
+ to: number;
17
+ value_prefix: string;
18
+ value_suffix: string;
19
+ duration: number;
20
+ easing_function: typeof EasingFunctions.ease_in_out_cubic;
21
+ finished_callback: () => void;
22
+ current_state: Idle;
23
+ animate(): void;
24
+ stop(): void;
25
+ set_property_value(value: any): void;
26
+ update(): void;
27
+ get is_animating(): boolean;
28
+ set_current_state(state: any): void;
29
+ }
30
+ import { EasingFunctions } from "../utilities/EasingFunctions";
31
+ import { Idle } from "./css_animator_states/Idle";
@@ -1,8 +1,8 @@
1
- export class Animating {
2
- t: number;
3
- easing_function_t: number;
4
- get is_animating(): boolean;
5
- on_enter(animator: any): void;
6
- update(animator: any): void;
7
- on_exit(view: any): void;
8
- }
1
+ export class Animating {
2
+ t: number;
3
+ easing_function_t: number;
4
+ get is_animating(): boolean;
5
+ on_enter(animator: any): void;
6
+ update(animator: any): void;
7
+ on_exit(view: any): void;
8
+ }
@@ -1,6 +1,6 @@
1
- export class Idle {
2
- get is_animating(): boolean;
3
- on_enter(view: any): void;
4
- update(view: any): void;
5
- on_exit(view: any): void;
6
- }
1
+ export class Idle {
2
+ get is_animating(): boolean;
3
+ on_enter(view: any): void;
4
+ update(view: any): void;
5
+ on_exit(view: any): void;
6
+ }
package/types/index.d.ts CHANGED
@@ -1,108 +1,110 @@
1
- import { BaseApplication } from "./BaseApplication";
2
- import { Browser } from "./Browser";
3
- import { CameraManager } from "./CameraManager";
4
- import { Capabilities } from "./Capabilities";
5
- import { Debug } from "./Debug";
6
- import { Graphics } from "./Graphics";
7
- import { Initializer } from "./Initializer";
8
- import { KeyboardInput } from "./KeyboardInput";
9
- import { OS } from "./OS";
10
- import { OScreen } from "./OScreen";
11
- import { OrthographicCamera } from "./OrthographicCamera";
12
- import { PerspectiveCamera } from "./PerspectiveCamera";
13
- import { RenderLoop } from "./RenderLoop";
14
- import { ResourceContainer } from "./ResourceContainer";
15
- import { SceneManager } from "./SceneManager";
16
- import { Time } from "./Time";
17
- import { UI } from "./UI";
18
- import { ActionEvent } from "./action_sequencer/ActionEvent";
19
- import { ActionInterpolator } from "./action_sequencer/ActionInterpolator";
20
- import { ActionSequencer } from "./action_sequencer/ActionSequencer";
21
- import { NumberInterpolator } from "./action_sequencer/NumberInterpolator";
22
- import { VectorInterpolator } from "./action_sequencer/VectorInterpolator";
23
- import { CanvasDrawer } from "./canvas_drawer/CanvasDrawer";
24
- import { SimpleTextDrawer } from "./canvas_drawer/SimpleTextDrawer";
25
- import { Grid } from "./components/Grid";
26
- import { Line } from "./components/Line";
27
- import { Text2D } from "./components/Text2D";
28
- import { UIElement } from "./components/UIElement";
29
- import { UpdatableMaterialMesh } from "./components/UpdatableMaterialMesh";
30
- import { WorldImage } from "./components/WorldImage";
31
- import { SDFTextBatch } from "./components/sdf_text/SDFTextBatch";
32
- import { GPUParticleSystem } from "./gpu_particles/GPUParticleSystem";
33
- import { ParticleAttribute } from "./gpu_particles/ParticleAttribute";
34
- import { ParticlePositionAttribute } from "./gpu_particles/ParticlePositionAttribute";
35
- import { CSSAnimator } from "./html_utilities/CSSAnimator";
36
- import { AsyncAbstractLoader } from "./loaders/AsyncAbstractLoader";
37
- import { AsyncAudiosLoader } from "./loaders/AsyncAudiosLoader";
38
- import { AsyncObjectsLoader } from "./loaders/AsyncObjectsLoader";
39
- import { AsyncTexturesLoader } from "./loaders/AsyncTexturesLoader";
40
- import { AddMaterial } from "./materials/AddMaterial";
41
- import { BaseShaderMaterial } from "./materials/BaseShaderMaterial";
42
- import { BlitMaterial } from "./materials/BlitMaterial";
43
- import { DualFilteringBlurMaterial } from "./materials/DualFilteringBlurMaterial";
44
- import { UnrealBloomComposeMaterial } from "./materials/UnrealBloomComposeMaterial";
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
- import { BaseRender } from "./render_mode/BaseRender";
51
- import { DebugNormalsRender } from "./render_mode/DebugNormalsRender";
52
- import { NormalAORender } from "./render_mode/NormalAORender";
53
- import { NormalRender } from "./render_mode/NormalRender";
54
- import { UnrealBloomRender } from "./render_mode/UnrealBloomRender";
55
- import { VRRender } from "./render_mode/VRRender";
56
- import { Blurrer } from "./render_utilities/Blurrer";
57
- import { DualFilteringBlurrer } from "./render_utilities/DualFilteringBlurrer";
58
- import { GaussianBlurrer } from "./render_utilities/GaussianBlurrer";
59
- import { MedianFilter } from "./render_utilities/MedianFilter";
60
- import { AbstractLoader } from "./resource_loader/AbstractLoader";
61
- import { AsyncTextureLoader } from "./resource_loader/AsyncTextureLoader";
62
- import { AudioLoader } from "./resource_loader/AudioLoader";
63
- import { BasisLoader } from "./resource_loader/BasisLoader";
64
- import { CubemapLoader } from "./resource_loader/CubemapLoader";
65
- import { DAELoader } from "./resource_loader/DAELoader";
66
- import { FileLoader } from "./resource_loader/FileLoader";
67
- import { FontLoader } from "./resource_loader/FontLoader";
68
- import { GLTFDRACOLoader } from "./resource_loader/GLTFDRACOLoader";
69
- import { GLTFLoader } from "./resource_loader/GLTFLoader";
70
- import { HDRCubeTextureLoader } from "./resource_loader/HDRCubeTextureLoader";
71
- import { JSONLoader } from "./resource_loader/JSONLoader";
72
- import { OBJLoader } from "./resource_loader/OBJLoader";
73
- import { PointArrayLoader } from "./resource_loader/PointArrayLoader";
74
- import { RGBETextureLoader } from "./resource_loader/RGBETextureLoader";
75
- import { ResourceBatch } from "./resource_loader/ResourceBatch";
76
- import { TextLoader } from "./resource_loader/TextLoader";
77
- import { TextureLoader } from "./resource_loader/TextureLoader";
78
- import { VideoLoader } from "./resource_loader/VideoLoader";
79
- import { AbstractScene } from "./scenes/AbstractScene";
80
- import { HighQualityLoadingState } from "./scenes/loading_states/HighQualityLoadingState";
81
- import { LoadingState } from "./scenes/loading_states/LoadingState";
82
- import { RegularLoadingState } from "./scenes/loading_states/RegularLoadingState";
83
- import { MeshBatcher } from "./static_batcher/MeshBatcher";
84
- import { ArrayUtilities } from "./utilities/ArrayUtilities";
85
- import { CameraUtilities } from "./utilities/CameraUtilities";
86
- import { EasingFunctions } from "./utilities/EasingFunctions";
87
- import { FrustumPointFitter } from "./utilities/FrustumPointFitter";
88
- import { GeometryUtilities } from "./utilities/GeometryUtilities";
89
- import { HTMLUtilities } from "./utilities/HTMLUtilities";
90
- import { ImageUtilities } from "./utilities/ImageUtilities";
91
- import { MeshSampler } from "./utilities/MeshSampler";
92
- import { ModelUtilities } from "./utilities/ModelUtilities";
93
- import { OMath } from "./utilities/OMath";
94
- import { ObjectUtilities } from "./utilities/ObjectUtilities";
95
- import { OrthographicFrustumPointFitter } from "./utilities/OrthographicFrustumPointFitter";
96
- import { PerspectiveFrustumPointFitter } from "./utilities/PerspectiveFrustumPointFitter";
97
- import { StringUtilities } from "./utilities/StringUtilities";
98
- import { TimeUtilities } from "./utilities/TimeUtilities";
99
- import { Validation } from "./utilities/Validation";
100
- import { ApplicationView } from "./view_components/ApplicationView";
101
- import { TransitionManager } from "./view_components/TransitionManager";
102
- import { ViewComponent } from "./view_components/ViewComponent";
103
- import { ViewComponentManager } from "./view_components/ViewComponentManager";
104
- import { ViewManager } from "./view_components/ViewManager";
105
- import { ActionSequencerBuilder } from "./view_components/transition/ActionSequencerBuilder";
106
- import { DrawIOAnimationSheet } from "./view_components/transition/DrawIOAnimationSheet";
107
- import { TransitionTable } from "./view_components/transition/TransitionTable";
108
- 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, 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 };
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 * as BufferGeometryUtils from "three/examples/jsm/utils/BufferGeometryUtils.js";
25
+ import { CameraManager } from "./CameraManager";
26
+ import { CameraUtilities } from "./utilities/CameraUtilities";
27
+ import { CanvasDrawer } from "./canvas_drawer/CanvasDrawer";
28
+ import { Capabilities } from "./Capabilities";
29
+ import { CSSAnimator } from "./html_utilities/CSSAnimator";
30
+ import { Cube } from "./primitives/Cube";
31
+ import { CubemapLoader } from "./resource_loader/CubemapLoader";
32
+ import { DAELoader } from "./resource_loader/DAELoader";
33
+ import { Debug } from "./Debug";
34
+ import { DebugNormalsRender } from "./render_mode/DebugNormalsRender";
35
+ import { DrawIOAnimationSheet } from "./view_components/transition/DrawIOAnimationSheet";
36
+ import { DualFilteringBlurMaterial } from "./materials/DualFilteringBlurMaterial";
37
+ import { DualFilteringBlurrer } from "./render_utilities/DualFilteringBlurrer";
38
+ import { EasingFunctions } from "./utilities/EasingFunctions";
39
+ import { FileLoader } from "./resource_loader/FileLoader";
40
+ import { FontLoader } from "./resource_loader/FontLoader";
41
+ import { FrustumPointFitter } from "./utilities/FrustumPointFitter";
42
+ import { GaussianBlurrer } from "./render_utilities/GaussianBlurrer";
43
+ import { GeometryUtilities } from "./utilities/GeometryUtilities";
44
+ import { GLTFDRACOLoader } from "./resource_loader/GLTFDRACOLoader";
45
+ import { GLTFLoader } from "./resource_loader/GLTFLoader";
46
+ import { GPUParticleSystem } from "./gpu_particles/GPUParticleSystem";
47
+ import { Graphics } from "./Graphics";
48
+ import { Grid } from "./components/Grid";
49
+ import { HDRCubeTextureLoader } from "./resource_loader/HDRCubeTextureLoader";
50
+ import { HighQualityLoadingState } from "./scenes/loading_states/HighQualityLoadingState";
51
+ import { HorizontalPlane } from "./primitives/HorizontalPlane";
52
+ import { HTMLUtilities } from "./utilities/HTMLUtilities";
53
+ import { ImageUtilities } from "./utilities/ImageUtilities";
54
+ import { Initializer } from "./Initializer";
55
+ import { JSONLoader } from "./resource_loader/JSONLoader";
56
+ import { KeyboardInput } from "./KeyboardInput";
57
+ import { Line } from "./components/Line";
58
+ import { LoadingState } from "./scenes/loading_states/LoadingState";
59
+ import { MedianFilter } from "./render_utilities/MedianFilter";
60
+ import { MeshBatcher } from "./static_batcher/MeshBatcher";
61
+ import { MeshSampler } from "./utilities/MeshSampler";
62
+ import { ModelUtilities } from "./utilities/ModelUtilities";
63
+ import { NormalAORender } from "./render_mode/NormalAORender";
64
+ import { NormalRender } from "./render_mode/NormalRender";
65
+ import { NumberInterpolator } from "./action_sequencer/NumberInterpolator";
66
+ import { ObjectUtilities } from "./utilities/ObjectUtilities";
67
+ import { OBJLoader } from "./resource_loader/OBJLoader";
68
+ import { OMath } from "./utilities/OMath";
69
+ import { OrthographicCamera } from "./OrthographicCamera";
70
+ import { OrthographicFrustumPointFitter } from "./utilities/OrthographicFrustumPointFitter";
71
+ import { OS } from "./OS";
72
+ import { OScreen } from "./OScreen";
73
+ import { ParticleAttribute } from "./gpu_particles/ParticleAttribute";
74
+ import { ParticlePositionAttribute } from "./gpu_particles/ParticlePositionAttribute";
75
+ import { PerspectiveCamera } from "./PerspectiveCamera";
76
+ import { PerspectiveFrustumPointFitter } from "./utilities/PerspectiveFrustumPointFitter";
77
+ import { PointArrayLoader } from "./resource_loader/PointArrayLoader";
78
+ import { RegularLoadingState } from "./scenes/loading_states/RegularLoadingState";
79
+ import { RenderLoop } from "./RenderLoop";
80
+ import { ResourceBatch } from "./resource_loader/ResourceBatch";
81
+ import { ResourceContainer } from "./ResourceContainer";
82
+ import { RGBETextureLoader } from "./resource_loader/RGBETextureLoader";
83
+ import { SceneManager } from "./SceneManager";
84
+ import { Screen } from "./Screen";
85
+ import { SDFTextBatch } from "./components/sdf_text/SDFTextBatch";
86
+ import { SimpleTextDrawer } from "./canvas_drawer/SimpleTextDrawer";
87
+ import { Sphere } from "./primitives/Sphere";
88
+ import { StringUtilities } from "./utilities/StringUtilities";
89
+ import { Text2D } from "./components/Text2D";
90
+ import { TextLoader } from "./resource_loader/TextLoader";
91
+ import { TextureLoader } from "./resource_loader/TextureLoader";
92
+ import { Time } from "./Time";
93
+ import { TimeUtilities } from "./utilities/TimeUtilities";
94
+ import { TransitionManager } from "./view_components/TransitionManager";
95
+ import { TransitionTable } from "./view_components/transition/TransitionTable";
96
+ import { UI } from "./UI";
97
+ import { UIElement } from "./components/UIElement";
98
+ import { UnrealBloomComposeMaterial } from "./materials/UnrealBloomComposeMaterial";
99
+ import { UnrealBloomRender } from "./render_mode/UnrealBloomRender";
100
+ import { UpdatableMaterialMesh } from "./components/UpdatableMaterialMesh";
101
+ import { Validation } from "./utilities/Validation";
102
+ import { VectorInterpolator } from "./action_sequencer/VectorInterpolator";
103
+ import { VerticalPlane } from "./primitives/VerticalPlane";
104
+ import { VideoLoader } from "./resource_loader/VideoLoader";
105
+ import { ViewComponent } from "./view_components/ViewComponent";
106
+ import { ViewComponentManager } from "./view_components/ViewComponentManager";
107
+ import { ViewManager } from "./view_components/ViewManager";
108
+ import { VRRender } from "./render_mode/VRRender";
109
+ import { WorldImage } from "./components/WorldImage";
110
+ 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 };
@@ -1,27 +1,41 @@
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
- }
1
+ export class AsyncAbstractLoader {
2
+ static create_worker(): Worker;
3
+ /**
4
+ * @param {string} name
5
+ * @param {any[]} assets
6
+ * @param {Worker} worker
7
+ */
8
+ constructor(name: string, assets: any[], worker: Worker);
9
+ resource_container: {
10
+ init(): void;
11
+ resources: Record<string, import("../ResourceContainer").Resource>;
12
+ resources_by_url: Record<string, any>;
13
+ set_resource(name: string, url: string, resource: import("../ResourceContainer").Resource): void;
14
+ get_resource(name: string): import("../ResourceContainer").Resource;
15
+ get(name: string): import("../ResourceContainer").Resource;
16
+ };
17
+ assets: any[];
18
+ name: string;
19
+ worker: Worker;
20
+ bound_on_message: any;
21
+ assets_loaders: any[];
22
+ load(): void;
23
+ is_loaded(): boolean;
24
+ get_progress(): number;
25
+ __get_loaded_bytes(): number;
26
+ __get_total_bytes(): number;
27
+ get_assets_names(): any[];
28
+ __setup_worker(): void;
29
+ /**
30
+ * @param {MessageEvent} e
31
+ */
32
+ on_message(e: MessageEvent): void;
33
+ /**
34
+ * @param {any} resources
35
+ */
36
+ __on_assets_loaded(resources: any): void;
37
+ /**
38
+ * @returns {any[]}
39
+ */
40
+ __setup_loaders(): any[];
41
+ }
@@ -1,5 +1,6 @@
1
- export class AsyncAudiosLoader extends AsyncAbstractLoader {
2
- __setup_loaders(): AudioLoader[];
3
- }
4
- import { AsyncAbstractLoader } from "./AsyncAbstractLoader";
5
- import { AudioLoader } from "../resource_loader/AudioLoader";
1
+ export class AsyncAudiosLoader extends AsyncAbstractLoader {
2
+ constructor(scene_name: any, assets: any, worker: any);
3
+ __setup_loaders(): AudioLoader[];
4
+ }
5
+ import { AsyncAbstractLoader } from "./AsyncAbstractLoader";
6
+ import { AudioLoader } from "../resource_loader/AudioLoader";
@@ -1,6 +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";
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";
@@ -1,8 +1,9 @@
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
+ export class AsyncTexturesLoader extends AsyncAbstractLoader {
2
+ constructor(scene_name: any, assets: any, worker: any);
3
+ __setup_loaders(): (AsyncTextureLoader | BasisLoader | CubemapLoader | RGBETextureLoader)[];
4
+ }
5
+ import { AsyncAbstractLoader } from "./AsyncAbstractLoader";
6
+ import { AsyncTextureLoader } from "../resource_loader/AsyncTextureLoader";
7
+ import { BasisLoader } from "../resource_loader/BasisLoader";
8
+ import { CubemapLoader } from "../resource_loader/CubemapLoader";
9
+ import { RGBETextureLoader } from "../resource_loader/RGBETextureLoader";
@@ -0,0 +1,4 @@
1
+ export class AssetLoader extends AbstractLoader {
2
+ constructor(resource_id: any, url: any, size: any);
3
+ }
4
+ import { AbstractLoader } from "../../resource_loader/AbstractLoader";
@@ -0,0 +1,14 @@
1
+ export class ResourceBatch {
2
+ constructor(batch_name: any, resource_container: any);
3
+ resource_loaders: any[];
4
+ batch_name: any;
5
+ resource_container: any;
6
+ add_loader(loader: any): void;
7
+ load(): void;
8
+ get loading_finished(): boolean;
9
+ get has_errors(): boolean;
10
+ print_errors(): void;
11
+ get_progress(): number;
12
+ get_loaded_bytes(): number;
13
+ get_total_bytes(): number;
14
+ }
@@ -0,0 +1,9 @@
1
+ export class ResourceContainer {
2
+ constructor(name: any);
3
+ name: any;
4
+ resources: {};
5
+ resources_by_url: {};
6
+ set_resource(name: any, url: any, resource: any): void;
7
+ get_resource(name: any): any;
8
+ get(name: any): any;
9
+ }
@@ -0,0 +1,8 @@
1
+ export class ResourceLoaderChecker {
2
+ constructor(batch: any);
3
+ batch: any;
4
+ on_resources_loaded: any;
5
+ timeout: number;
6
+ setup(on_resources_loaded: any, timeout?: number): void;
7
+ check(): void;
8
+ }
@@ -1,5 +1,5 @@
1
- export class AddMaterial extends BlitMaterial {
2
- constructor(nMips: any);
3
- set_add_texture(tex: any): void;
4
- }
5
- import { BlitMaterial } from "./BlitMaterial";
1
+ export class AddMaterial extends BlitMaterial {
2
+ constructor(nMips: any);
3
+ set_add_texture(tex: any): void;
4
+ }
5
+ import { BlitMaterial } from "./BlitMaterial";
@@ -1,6 +1,6 @@
1
- export class AlphaFilterMaterial extends BlitMaterial {
2
- constructor(use_alpha_mask: any, upsample: any);
3
- set offset(arg: any);
4
- get offset(): any;
5
- }
6
- import { BlitMaterial } from "./BlitMaterial";
1
+ export class AlphaFilterMaterial extends BlitMaterial {
2
+ constructor(use_alpha_mask: any, upsample: any);
3
+ set offset(arg: any);
4
+ get offset(): any;
5
+ }
6
+ import { BlitMaterial } from "./BlitMaterial";
@@ -1,3 +1,4 @@
1
- export class BaseShaderMaterial {
2
- constructor(vert: any, frag: any, uniforms: any);
3
- }
1
+ export class BaseShaderMaterial extends ShaderMaterial {
2
+ constructor(vert: any, frag: any, uniforms: any);
3
+ }
4
+ import { ShaderMaterial } from "three/src/materials/ShaderMaterial";