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,5 +1,17 @@
1
- export class UIElementState {
2
- update(ui_element: any, normalized_mouse_position: any): void;
3
- on_enter(ui_element: any): void;
4
- on_exit(ui_element: any): void;
5
- }
1
+ export class UIElementState {
2
+ /**
3
+ * @param {UIElement} ui_element
4
+ * @param {Vector2} normalized_mouse_position
5
+ */
6
+ update(ui_element: UIElement, normalized_mouse_position: Vector2): void;
7
+ /**
8
+ * @param {UIElement} ui_element
9
+ */
10
+ on_enter(ui_element: UIElement): void;
11
+ /**
12
+ * @param {UIElement} ui_element
13
+ */
14
+ on_exit(ui_element: UIElement): void;
15
+ }
16
+ import { UIElement } from "../../components/UIElement";
17
+ import { Vector2 } from "three/src/math/Vector2";
@@ -1,7 +1,7 @@
1
- export class ArrayUtilities {
2
- static merge_from_to(source: any, target: any): void;
3
- static expand_vec3_array(array: any, size: any): void;
4
- static remove_elem(array: any, elem: any): void;
5
- static get_closest_point(points: any, target: any): any;
6
- static object_values_to_array(obj: any): any[];
7
- }
1
+ export class ArrayUtilities {
2
+ static merge_from_to(source: any, target: any): void;
3
+ static expand_vec3_array(array: any, size: any): void;
4
+ static remove_elem(array: any, elem: any): void;
5
+ static get_closest_point(points: any, target: any): any;
6
+ static object_values_to_array(obj: any): any[];
7
+ }
@@ -1,36 +1,40 @@
1
- export { camera_utilities as CameraUtilities };
2
- declare const camera_utilities: CameraUtilities;
3
- declare class CameraUtilities {
4
- init(input: any): void;
5
- tmp_mat: any;
6
- plane: any;
7
- ray: any;
8
- tmp_size: any;
9
- tmp_unproj: any;
10
- input: any;
11
- get_up_dir(camera: any): any;
12
- get_forward_dir(camera: any): any;
13
- get_right_dir(camera: any): any;
14
- unproject_mouse_position(NDC: any, camera: any): any;
15
- get_plane_intersection(plane_position: any, plane_normal: any, NDC: any, camera: any): any;
16
- fit_points_on_camera(points: any, zoom_scale?: number): {
17
- position: any;
18
- zoom: number;
19
- };
20
- get_zoom_to_fit_rect(width: any, height: any): number;
21
- get_zoom_to_fit_box(bb: any, camera: any): number;
22
- get_html_screen_pos(object: any, camera: any): any;
23
- world_pos_to_screen(pos: any, camera: any): any;
24
- update_projection(camera: any): void;
25
- fit_bounding_box_points(camera: any, bb: any, scale?: number): {
26
- zoom: any;
27
- reference_position: any;
28
- camera_position: any;
29
- };
30
- fit_points(camera: any, points: any, zoom_scale?: number): {
31
- zoom: any;
32
- reference_position: any;
33
- camera_position: any;
34
- };
35
- reference_zoom: number;
36
- }
1
+ export { camera_utilities as CameraUtilities };
2
+ declare const camera_utilities: CameraUtilities;
3
+ declare class CameraUtilities {
4
+ init(input: any): void;
5
+ tmp_mat: Matrix4;
6
+ plane: Plane;
7
+ ray: Ray;
8
+ tmp_size: Vector3;
9
+ tmp_unproj: Vector3;
10
+ input: any;
11
+ get_up_dir(camera: any): Vector3;
12
+ get_forward_dir(camera: any): Vector3;
13
+ get_right_dir(camera: any): Vector3;
14
+ unproject_mouse_position(NDC: any, camera: any): Vector3;
15
+ get_plane_intersection(plane_position: any, plane_normal: any, NDC: any, camera: any): Vector3;
16
+ fit_points_on_camera(points: any, zoom_scale?: number): {
17
+ position: Vector3;
18
+ zoom: number;
19
+ };
20
+ get_zoom_to_fit_rect(width: any, height: any): number;
21
+ get_zoom_to_fit_box(bb: any, camera: any): number;
22
+ get_html_screen_pos(object: any, camera: any): Vector3;
23
+ world_pos_to_screen(pos: any, camera: any): Vector3;
24
+ update_projection(camera: any): void;
25
+ fit_bounding_box_points(camera: any, bb: any, scale?: number): {
26
+ zoom: number;
27
+ reference_position: Vector3;
28
+ camera_position: Vector3;
29
+ };
30
+ fit_points(camera: any, points: any, zoom_scale?: number): {
31
+ zoom: number;
32
+ reference_position: Vector3;
33
+ camera_position: Vector3;
34
+ };
35
+ reference_zoom: number;
36
+ }
37
+ import { Matrix4 } from "three/src/math/Matrix4";
38
+ import { Plane } from "three/src/math/Plane";
39
+ import { Ray } from "three/src/math/Ray";
40
+ import { Vector3 } from "three/src/math/Vector3";
@@ -1,35 +1,36 @@
1
- export class EasingFunctions {
2
- static linear(x: any): any;
3
- static triangular(x: any): number;
4
- static ease_in_sine(x: any): number;
5
- static ease_out_sine(x: any): number;
6
- static ease_in_out_sine(x: any): number;
7
- static ease_in_cubic(x: any): number;
8
- static ease_out_cubic(x: any): number;
9
- static ease_in_out_cubic(x: any): number;
10
- static ease_in_quad(x: any): number;
11
- static ease_out_quad(x: any): number;
12
- static ease_in_out_quad(x: any): number;
13
- static ease_in_quart(x: any): number;
14
- static ease_out_quart(x: any): number;
15
- static ease_in_out_quart(x: any): number;
16
- static ease_in_quint(x: any): number;
17
- static ease_out_quint(x: any): number;
18
- static ease_in_out_quint(x: any): number;
19
- static ease_in_expo(x: any): number;
20
- static ease_out_expo(x: any): number;
21
- static ease_in_out_expo(x: any): number;
22
- static ease_in_circ(x: any): number;
23
- static ease_out_circ(x: any): number;
24
- static ease_in_out_circ(x: any): number;
25
- static ease_in_back(x: any): number;
26
- static ease_out_back(x: any): number;
27
- static ease_in_out_back(x: any): number;
28
- static ease_in_elastic(x: any): number;
29
- static ease_out_elastic(x: any): number;
30
- static ease_in_out_elastic(x: any): number;
31
- static ease_in_bounce(x: any): number;
32
- static ease_out_bounce(x: any): number;
33
- static ease_in_out_bounce(x: any): number;
34
- static heartbeat(t: any): number;
35
- }
1
+ export type EasingFunctionType = 'linear' | 'triangular' | 'ease_in_sine' | 'ease_out_sine' | 'ease_in_out_sine' | 'ease_in_cubic' | 'ease_out_cubic' | 'ease_in_out_cubic' | 'ease_in_quad' | 'ease_out_quad' | 'ease_in_out_quad' | 'ease_in_quart' | 'ease_out_quart' | 'ease_in_out_quart' | 'ease_in_quint' | 'ease_out_quint' | 'ease_in_out_quint' | 'ease_in_expo' | 'ease_out_expo' | 'ease_in_out_expo' | 'ease_in_circ' | 'ease_out_circ' | 'ease_in_out_circ' | 'ease_in_back' | 'ease_out_back' | 'ease_in_out_back' | 'ease_in_elastic' | 'ease_out_elastic' | 'ease_in_out_elastic' | 'ease_in_bounce' | 'ease_out_bounce' | 'ease_in_out_bounce' | 'heartbeat';
2
+ export class EasingFunctions {
3
+ static linear(x: any): any;
4
+ static triangular(x: any): number;
5
+ static ease_in_sine(x: any): number;
6
+ static ease_out_sine(x: any): number;
7
+ static ease_in_out_sine(x: any): number;
8
+ static ease_in_cubic(x: any): number;
9
+ static ease_out_cubic(x: any): number;
10
+ static ease_in_out_cubic(x: any): number;
11
+ static ease_in_quad(x: any): number;
12
+ static ease_out_quad(x: any): number;
13
+ static ease_in_out_quad(x: any): number;
14
+ static ease_in_quart(x: any): number;
15
+ static ease_out_quart(x: any): number;
16
+ static ease_in_out_quart(x: any): number;
17
+ static ease_in_quint(x: any): number;
18
+ static ease_out_quint(x: any): number;
19
+ static ease_in_out_quint(x: any): number;
20
+ static ease_in_expo(x: any): number;
21
+ static ease_out_expo(x: any): number;
22
+ static ease_in_out_expo(x: any): number;
23
+ static ease_in_circ(x: any): number;
24
+ static ease_out_circ(x: any): number;
25
+ static ease_in_out_circ(x: any): number;
26
+ static ease_in_back(x: any): number;
27
+ static ease_out_back(x: any): number;
28
+ static ease_in_out_back(x: any): number;
29
+ static ease_in_elastic(x: any): number;
30
+ static ease_out_elastic(x: any): number;
31
+ static ease_in_out_elastic(x: any): number;
32
+ static ease_in_bounce(x: any): number;
33
+ static ease_out_bounce(x: any): number;
34
+ static ease_in_out_bounce(x: any): number;
35
+ static heartbeat(t: any): number;
36
+ }
@@ -1,14 +1,14 @@
1
- export class FrustumPointFitter {
2
- sphere: Sphere;
3
- fit_points(points: any, camera_quaternion: any, vertical_fov: any, aspect: any): any;
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
- get_vertical_correction(points: any, down_plane: any, up_plane: any, camera_quaternion: any): any;
6
- get_hozirontal_correction(points: any, left_plane: any, right_plane: any, camera_quaternion: any): any;
7
- get_up_plane_normal(camera_quaternion: any, v_fov: any): any;
8
- get_down_plane_normal(camera_quaternion: any, v_fov: any): any;
9
- get_left_plane_normal(camera_quaternion: any, h_fov: any): any;
10
- get_right_plane_normal(camera_quaternion: any, h_fov: any): any;
11
- get_distance_to_fit_rect(width: any, height: any, vertical_fov: any, aspect: any): number;
12
- }
13
-
14
- import { Sphere } from "three";
1
+ export class FrustumPointFitter {
2
+ sphere: Sphere;
3
+ fit_points(points: any, camera_quaternion: any, vertical_fov: any, aspect: any): Vector3;
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
+ get_vertical_correction(points: any, down_plane: any, up_plane: any, camera_quaternion: any): Vector3;
6
+ get_hozirontal_correction(points: any, left_plane: any, right_plane: any, camera_quaternion: any): Vector3;
7
+ get_up_plane_normal(camera_quaternion: any, v_fov: any): Vector3;
8
+ get_down_plane_normal(camera_quaternion: any, v_fov: any): Vector3;
9
+ get_left_plane_normal(camera_quaternion: any, h_fov: any): Vector3;
10
+ get_right_plane_normal(camera_quaternion: any, h_fov: any): Vector3;
11
+ get_distance_to_fit_rect(width: any, height: any, vertical_fov: any, aspect: any): number;
12
+ }
13
+ import { Sphere } from "three/src/math/Sphere";
14
+ import { Vector3 } from "three/src/math/Vector3";
@@ -1,4 +1,5 @@
1
- export class GeometryUtilities {
2
- static convert_to_non_indexed_geometry(geometry_buffer: any): any;
3
- static add_barycentric_attribute(non_indexed_geometry_buffer: any): void;
4
- }
1
+ export class GeometryUtilities {
2
+ static convert_to_non_indexed_geometry(geometry_buffer: any): BufferGeometry<import("three").NormalBufferAttributes>;
3
+ static add_barycentric_attribute(non_indexed_geometry_buffer: any): void;
4
+ }
5
+ import { BufferGeometry } from "three/src/core/BufferGeometry";
@@ -1,6 +1,6 @@
1
- export class HTMLUtilities {
2
- static load_images(container: any): void;
3
- static load_videos(container: any): void;
4
- static load_iframes(container: any): void;
5
- static load_elements(container: any, selector: any): void;
6
- }
1
+ export class HTMLUtilities {
2
+ static load_images(container: any): void;
3
+ static load_videos(container: any): void;
4
+ static load_iframes(container: any): void;
5
+ static load_elements(container: any, selector: any): void;
6
+ }
@@ -1,4 +1,5 @@
1
- export class ImageUtilities {
2
- static get_image_data(image: any): ImageData;
3
- static get_pixel(imagedata: any, x: any, y: any): any;
4
- }
1
+ export class ImageUtilities {
2
+ static get_image_data(image: any): ImageData;
3
+ static get_pixel(imagedata: any, x: any, y: any): Vector4;
4
+ }
5
+ import { Vector4 } from "three/src/math/Vector4";
@@ -1,20 +1,20 @@
1
- export { mesh_sampler as MeshSampler };
2
- declare const mesh_sampler: MeshSampler;
3
- declare class MeshSampler {
4
- sample(buffer_geometry: any, sample_count: any): {
5
- points: any[];
6
- normals: any[];
7
- tangents: any[];
8
- uvs: any[];
9
- };
10
- sample_data_from_faces(faces: any): {
11
- points: any[];
12
- normals: any[];
13
- tangents: any[];
14
- uvs: any[];
15
- };
16
- select_random_faces(faces: any, amount: any): any[];
17
- get_uniform_face_distribution(face_areas: any, minimum_area: any, faces: any): any[];
18
- get_face_area(face: any): number;
19
- sample_point_in_face(w1: any, w2: any, v1: any, v2: any, v3: any): any;
20
- }
1
+ export { mesh_sampler as MeshSampler };
2
+ declare const mesh_sampler: MeshSampler;
3
+ declare class MeshSampler {
4
+ sample(buffer_geometry: any, sample_count: any): {
5
+ points: any[];
6
+ normals: any[];
7
+ tangents: any[];
8
+ uvs: any[];
9
+ };
10
+ sample_data_from_faces(faces: any): {
11
+ points: any[];
12
+ normals: any[];
13
+ tangents: any[];
14
+ uvs: any[];
15
+ };
16
+ select_random_faces(faces: any, amount: any): any[];
17
+ get_uniform_face_distribution(face_areas: any, minimum_area: any, faces: any): any[];
18
+ get_face_area(face: any): number;
19
+ sample_point_in_face(w1: any, w2: any, v1: any, v2: any, v3: any): any;
20
+ }
@@ -1,15 +1,15 @@
1
- export { model_utilities as ModelUtilities };
2
- declare const model_utilities: ModelUtilities;
3
- declare class ModelUtilities {
4
- get_mesh(scene: any, result_callback: any): void;
5
- get_geometries(scene: any): any[];
6
- assign_material(scene: any, material: any, name: any): void;
7
- clone_animated_gltf(gltf: any): {
8
- animations: any;
9
- scene: any;
10
- };
11
- set_shadow_config(scene: any, cast: any, receive: any): void;
12
- __find_object(scene: any, object_name: any, result_callback: any): void;
13
- get_object(scene: any, object_name: any): any;
14
- get_object_by_type(scene: any, object_type: any): any;
15
- }
1
+ export { model_utilities as ModelUtilities };
2
+ declare const model_utilities: ModelUtilities;
3
+ declare class ModelUtilities {
4
+ get_mesh(scene: any, result_callback: any): void;
5
+ get_geometries(scene: any): any[];
6
+ assign_material(scene: any, material: any, name: any): void;
7
+ clone_animated_gltf(gltf: any): {
8
+ animations: any;
9
+ scene: any;
10
+ };
11
+ set_shadow_config(scene: any, cast: any, receive: any): void;
12
+ __find_object(scene: any, object_name: any, result_callback: any): void;
13
+ get_object(scene: any, object_name: any): any;
14
+ get_object_by_type(scene: any, object_type: any): any;
15
+ }
@@ -1,21 +1,21 @@
1
- export class OMath {
2
- static linear_map(value: any, from_range_start_value: any, from_range_end_value: any, to_range_start_value: any, to_range_end_value: any): any;
3
- static between(value: any, min: any, max: any): boolean;
4
- static mod(number: any, divisor: any): number;
5
- static rgb_to_hex(rgb: any): string;
6
- static project_points_on_plane(points: any, plane: any): any[];
7
- static matrix4_lerp(from: any, to: any, target: any, t: any): void;
8
- static equals(x1: any, x2: any): boolean;
9
- static lerp(x: number, y: number, t: number): number;
10
- static clamp(value: number, min: number, max: number): number;
11
- static euclideanModulo(n: number, m: number): number;
12
- static pingpong(x: number, length: number): number;
13
- static degToRad(degrees: number): number;
14
- static deg_to_rad(degrees: number): number;
15
- static radToDeg(radians: number): number;
16
- static rad_to_deg(radians: number): number;
17
- static perspective_divide(v: any): any;
18
- static points_average(points: any): any;
19
- static get_random_color(): string;
20
- static saturate(x: number): number;
21
- }
1
+ export class OMath {
2
+ static linear_map(value: any, from_range_start_value: any, from_range_end_value: any, to_range_start_value: any, to_range_end_value: any): any;
3
+ static between(value: any, min: any, max: any): boolean;
4
+ static mod(number: any, divisor: any): number;
5
+ static rgb_to_hex(rgb: any): string;
6
+ static project_points_on_plane(points: any, plane: any): any[];
7
+ static matrix4_lerp(from: any, to: any, target: any, t: any): void;
8
+ static equals(x1: any, x2: any): boolean;
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
+ static perspective_divide(v: any): any;
18
+ static points_average(points: any): any;
19
+ static get_random_color(): string;
20
+ static saturate(x: any): number;
21
+ }
@@ -1,7 +1,7 @@
1
- export class ObjectUtilities {
2
- static is_object(item: any): boolean;
3
- static merge_deep(target: any, ...sources: any[]): any;
4
- static xml_to_json(xml: any): {
5
- '@attributes': {};
6
- };
7
- }
1
+ export class ObjectUtilities {
2
+ static is_object(item: any): boolean;
3
+ static merge_deep(target: any, ...sources: any[]): any;
4
+ static xml_to_json(xml: any): {
5
+ '@attributes': {};
6
+ };
7
+ }
@@ -1,7 +1,8 @@
1
- export class OrthographicFrustumPointFitter {
2
- fit_points(points: any, camera_quaternion: any, vertical_fov: any, aspect: any): {
3
- center: any;
4
- distance_to_center: number;
5
- };
6
- get_distance_to_fit_rect(width: any, height: any, vertical_fov: any, aspect: any): number;
7
- }
1
+ export class OrthographicFrustumPointFitter {
2
+ fit_points(points: any, camera_quaternion: any, vertical_fov: any, aspect: any): {
3
+ center: Vector3;
4
+ distance_to_center: number;
5
+ };
6
+ get_distance_to_fit_rect(width: any, height: any, vertical_fov: any, aspect: any): number;
7
+ }
8
+ import { Vector3 } from "three/src/math/Vector3";
@@ -1,12 +1,14 @@
1
- export class PerspectiveFrustumPointFitter {
2
- sphere: any;
3
- fit_points(points: any, camera_quaternion: any, vertical_fov: any, aspect: any): any;
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
- get_vertical_correction(points: any, down_plane: any, up_plane: any, camera_quaternion: any): any;
6
- get_horizontal_correction(points: any, left_plane: any, right_plane: any, camera_quaternion: any): any;
7
- get_up_plane_normal(camera_quaternion: any, v_fov: any): any;
8
- get_down_plane_normal(camera_quaternion: any, v_fov: any): any;
9
- get_left_plane_normal(camera_quaternion: any, h_fov: any): any;
10
- get_right_plane_normal(camera_quaternion: any, h_fov: any): any;
11
- get_distance_to_fit_rect(width: any, height: any, vertical_fov: any, aspect: any): number;
12
- }
1
+ export class PerspectiveFrustumPointFitter {
2
+ sphere: Sphere;
3
+ fit_points(points: any, camera_quaternion: any, vertical_fov: any, aspect: any): Vector3;
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
+ get_vertical_correction(points: any, down_plane: any, up_plane: any, camera_quaternion: any): Vector3;
6
+ get_horizontal_correction(points: any, left_plane: any, right_plane: any, camera_quaternion: any): Vector3;
7
+ get_up_plane_normal(camera_quaternion: any, v_fov: any): Vector3;
8
+ get_down_plane_normal(camera_quaternion: any, v_fov: any): Vector3;
9
+ get_left_plane_normal(camera_quaternion: any, h_fov: any): Vector3;
10
+ get_right_plane_normal(camera_quaternion: any, h_fov: any): Vector3;
11
+ get_distance_to_fit_rect(width: any, height: any, vertical_fov: any, aspect: any): number;
12
+ }
13
+ import { Sphere } from "three/src/math/Sphere";
14
+ import { Vector3 } from "three/src/math/Vector3";
@@ -1,6 +1,6 @@
1
- export class StringUtilities {
2
- static get_random_color(): string;
3
- static capitalize(string: any): any;
4
- static capitalize_first_letter(string: any): any;
5
- static snake_to_camelcase(string: any): any;
6
- }
1
+ export class StringUtilities {
2
+ static get_random_color(): string;
3
+ static capitalize(string: any): any;
4
+ static capitalize_first_letter(string: any): any;
5
+ static snake_to_camelcase(string: any): any;
6
+ }
@@ -1,3 +1,3 @@
1
- export class TimeUtilities {
2
- time_str_to_ms(time_str: any): number;
3
- }
1
+ export class TimeUtilities {
2
+ time_str_to_ms(time_str: any): number;
3
+ }
@@ -1,6 +1,6 @@
1
- export class Validation {
2
- static is_int(n: any): boolean;
3
- static is_float(n: any): boolean;
4
- static is_number(n: any): boolean;
5
- static is_json(str: any): boolean;
6
- }
1
+ export class Validation {
2
+ static is_int(n: any): boolean;
3
+ static is_float(n: any): boolean;
4
+ static is_number(n: any): boolean;
5
+ static is_json(str: any): boolean;
6
+ }
@@ -1,13 +1,13 @@
1
- export class ApplicationView extends ViewState {
2
- constructor({ name, url, container, transition_data }: {
3
- name: any;
4
- url: any;
5
- container: any;
6
- transition_data: any;
7
- });
8
- container: any;
9
- url: any;
10
- current_opacity: number;
11
- set_opacity(current_state_data: any): void;
12
- }
13
- import { ViewState } from "./ViewState";
1
+ export class ApplicationView extends ViewState {
2
+ constructor({ name, url, container, transition_data }: {
3
+ name: any;
4
+ url: any;
5
+ container: any;
6
+ transition_data: any;
7
+ });
8
+ container: any;
9
+ url: any;
10
+ current_opacity: number;
11
+ set_opacity(current_state_data: any): void;
12
+ }
13
+ import { ViewState } from "./ViewState";
@@ -1,20 +1,20 @@
1
- export { transition_manager as TransitionManager };
2
- declare const transition_manager: TransitionManager;
3
- declare class TransitionManager {
4
- transition_table: TransitionTable;
5
- transition_handler: ViewStateTransitionHandler;
6
- get action_sequencer(): any;
7
- get current_state_data(): {};
8
- get_current_state(): import("./ViewState").ViewState;
9
- go_to_state(state: any, skip?: boolean): void;
10
- before_update(): void;
11
- update(): void;
12
- fixed_update(): void;
13
- add_transitions(transitions: any): void;
14
- set_transitions(transitions: any): void;
15
- set_state(state: any): void;
16
- set_default_state_data(default_state_data: any): void;
17
- set_transitions_velocity(transitions_velocity: any): void;
18
- }
19
- import { TransitionTable } from "./transition/TransitionTable";
20
- import { ViewStateTransitionHandler } from "./transition/ViewStateTransitionHandler";
1
+ export { transition_manager as TransitionManager };
2
+ declare const transition_manager: TransitionManager;
3
+ declare class TransitionManager {
4
+ transition_table: TransitionTable;
5
+ transition_handler: ViewStateTransitionHandler;
6
+ get action_sequencer(): any;
7
+ get current_state_data(): {};
8
+ get_current_state(): import("./ViewState").ViewState;
9
+ go_to_state(state: any, skip?: boolean): void;
10
+ before_update(): void;
11
+ update(): void;
12
+ fixed_update(): void;
13
+ add_transitions(transitions: any): void;
14
+ set_transitions(transitions: any): void;
15
+ set_state(state: any): void;
16
+ set_default_state_data(default_state_data: any): void;
17
+ set_transitions_velocity(transitions_velocity: any): void;
18
+ }
19
+ import { TransitionTable } from "./transition/TransitionTable";
20
+ import { ViewStateTransitionHandler } from "./transition/ViewStateTransitionHandler";
@@ -1,15 +1,15 @@
1
- export class ViewComponent {
2
- constructor({ name, container }: {
3
- name: any;
4
- container: any;
5
- });
6
- name: any;
7
- container: any;
8
- hidden: boolean;
9
- start(): void;
10
- on_enter(): void;
11
- update(): void;
12
- on_exit(): void;
13
- set_opacity(current_state_data: any): void;
14
- toggle_hidden(): void;
15
- }
1
+ export class ViewComponent {
2
+ constructor({ name, container }: {
3
+ name: any;
4
+ container: any;
5
+ });
6
+ name: any;
7
+ container: any;
8
+ hidden: boolean;
9
+ start(): void;
10
+ on_enter(): void;
11
+ update(): void;
12
+ on_exit(): void;
13
+ set_opacity(current_state_data: any): void;
14
+ toggle_hidden(): void;
15
+ }
@@ -1,13 +1,13 @@
1
- export { view_component_manager as ViewComponentManager };
2
- declare const view_component_manager: ViewComponentManager;
3
- declare class ViewComponentManager {
4
- components: any[];
5
- enabled_components: Set<any>;
6
- update(): void;
7
- register_component(component: any): void;
8
- enable_component(component: any): void;
9
- disable_component(component: any): void;
10
- get_component_by_name(component_name: any): void;
11
- get(component_name: any): any;
12
- __set_components_opacities(): void;
13
- }
1
+ export { view_component_manager as ViewComponentManager };
2
+ declare const view_component_manager: ViewComponentManager;
3
+ declare class ViewComponentManager {
4
+ components: any[];
5
+ enabled_components: Set<any>;
6
+ update(): void;
7
+ register_component(component: any): void;
8
+ enable_component(component: any): void;
9
+ disable_component(component: any): void;
10
+ get_component_by_name(component_name: any): void;
11
+ get(component_name: any): any;
12
+ __set_components_opacities(): void;
13
+ }