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,36 +1,104 @@
1
- export class ActionSequencer {
2
- constructor(context?: {});
3
- previous_elapsed_time: number;
4
- elapsed_time: number;
5
- playback_speed: number;
6
- playing: boolean;
7
- action_events: any[];
8
- context: {};
9
- initial_context: any;
10
- tmp_t: number;
11
- channels: {};
12
- duration: number;
13
- play(): void;
14
- stop(): void;
15
- reset(): void;
16
- skip(): void;
17
- update(delta_time: any): void;
18
- set_progress(time: any): void;
19
- set_normalized_progress(t: any): void;
20
- get_progress(): number;
21
- is_finished(): boolean;
22
- add_action_event(trigger_time: any, action: any): void;
23
- add_action_interpolator(from: any, to: any, interpolator: any, use_dynamic_from_value?: boolean): void;
24
- get_current_target_value(name: any): any;
25
- get_current_starting_value(name: any): any;
26
- get_current_progress(name: any): any;
27
- get_duration(): number;
28
- __play_clips(from: any, to: any): void;
29
- __play_events(from: any, to: any): void;
30
- evaluate_keyframe(keyframe: any, time: any): any;
31
- get_keyframes(channel_name: any): any;
32
- is_channel_redefined(channel_name: any): boolean;
33
- __linear_map_01(value: any, from_range_start_value: any, from_range_end_value: any): number;
34
- __get_current_keyframe(channel_name: any, time: any): any;
35
- __get_playback_speed(): number;
36
- }
1
+ export class ActionSequencer {
2
+ /**
3
+ * @param {any} [context]
4
+ */
5
+ constructor(context?: any);
6
+ previous_elapsed_time: number;
7
+ elapsed_time: number;
8
+ playback_speed: number;
9
+ playing: boolean;
10
+ /** @type {{action:ActionEvent, trigger_time:number }[]} */
11
+ action_events: {
12
+ action: ActionEvent;
13
+ trigger_time: number;
14
+ }[];
15
+ context: any;
16
+ initial_context: any;
17
+ tmp_t: number;
18
+ /** @type {{[key:string]:any[]}} */
19
+ channels: {
20
+ [key: string]: any[];
21
+ };
22
+ duration: number;
23
+ play(): void;
24
+ stop(): void;
25
+ reset(): void;
26
+ skip(): void;
27
+ /**
28
+ * @param {number} delta_time
29
+ */
30
+ update(delta_time: number): void;
31
+ /**
32
+ * @param {number} time
33
+ */
34
+ set_progress(time: number): void;
35
+ /**
36
+ * @param {number} t
37
+ */
38
+ set_normalized_progress(t: number): void;
39
+ get_progress(): number;
40
+ is_finished(): boolean;
41
+ /**
42
+ * @param {number} trigger_time
43
+ * @param {ActionEvent} action
44
+ */
45
+ add_action_event(trigger_time: number, action: ActionEvent): void;
46
+ /**
47
+ * @param {number} from
48
+ * @param {number} to
49
+ * @param {ActionInterpolator} interpolator
50
+ * @param {boolean} [use_dynamic_from_value]
51
+ */
52
+ add_action_interpolator(from: number, to: number, interpolator: ActionInterpolator, use_dynamic_from_value?: boolean): void;
53
+ /**
54
+ * @param {string} name
55
+ */
56
+ get_current_target_value(name: string): any;
57
+ /**
58
+ * @param {string} name
59
+ */
60
+ get_current_starting_value(name: string): any;
61
+ /**
62
+ * @param {string} name
63
+ */
64
+ get_current_progress(name: string): any;
65
+ get_duration(): number;
66
+ /**
67
+ * @param {number} from
68
+ * @param {number} to
69
+ */
70
+ __play_clips(from: number, to: number): void;
71
+ /**
72
+ * @param {number} from
73
+ * @param {number} to
74
+ */
75
+ __play_events(from: number, to: number): void;
76
+ /**
77
+ * @param {any} keyframe
78
+ * @param {number} time
79
+ */
80
+ evaluate_keyframe(keyframe: any, time: number): any;
81
+ /**
82
+ * @param {string} channel_name
83
+ */
84
+ get_keyframes(channel_name: string): any[];
85
+ /**
86
+ * @param {string} channel_name
87
+ */
88
+ is_channel_redefined(channel_name: string): boolean;
89
+ /**
90
+ * @param {number} value
91
+ * @param {number} from_range_start_value
92
+ * @param {number} from_range_end_value
93
+ * @returns {number}
94
+ */
95
+ __linear_map_01(value: number, from_range_start_value: number, from_range_end_value: number): number;
96
+ /**
97
+ * @param {string} channel_name
98
+ * @param {number} time
99
+ */
100
+ __get_current_keyframe(channel_name: string, time: number): any;
101
+ __get_playback_speed(): number;
102
+ }
103
+ import { ActionEvent } from "./ActionEvent";
104
+ import { ActionInterpolator } from "./ActionInterpolator";
@@ -1,9 +1,18 @@
1
- export class NumberInterpolator extends ActionInterpolator {
2
- constructor(attribute_name: any, from?: number, to?: number, initial?: boolean, easing_function?: string);
3
- attribute_name: any;
4
- from: number;
5
- to: number;
6
- initial: boolean;
7
- evaluate(t: any): number;
8
- }
9
- import { ActionInterpolator } from "./ActionInterpolator";
1
+ export class NumberInterpolator extends ActionInterpolator {
2
+ /**
3
+ * @param {string} attribute_name
4
+ * @param {number} [from]
5
+ * @param {number} [to]
6
+ * @param {boolean} [initial]
7
+ * @param {import('../utilities/EasingFunctions').EasingFunctionType | function} [easing_function]
8
+ */
9
+ constructor(attribute_name: string, from?: number, to?: number, initial?: boolean, easing_function?: import('../utilities/EasingFunctions').EasingFunctionType | Function);
10
+ from: number;
11
+ to: number;
12
+ initial: boolean;
13
+ /**
14
+ * @param {number} t
15
+ */
16
+ evaluate(t: number): number;
17
+ }
18
+ import { ActionInterpolator } from "./ActionInterpolator";
@@ -1,7 +1,13 @@
1
- export class VectorInterpolator extends ActionInterpolator {
2
- constructor(attribute_name: any, from?: number, to?: number, easing_function?: string);
3
- attribute_name: any;
4
- from: number;
5
- to: number;
6
- }
7
- import { ActionInterpolator } from "./ActionInterpolator";
1
+ export class VectorInterpolator extends ActionInterpolator {
2
+ /**
3
+ * @param {string} attribute_name
4
+ * @param {Vector3} [from]
5
+ * @param {Vector3} [to]
6
+ * @param {import('../utilities/EasingFunctions').EasingFunctionType | function} [easing_function]
7
+ */
8
+ constructor(attribute_name: string, from?: Vector3, to?: Vector3, easing_function?: import('../utilities/EasingFunctions').EasingFunctionType | Function);
9
+ from: Vector3;
10
+ to: Vector3;
11
+ }
12
+ import { ActionInterpolator } from "./ActionInterpolator";
13
+ import { Vector3 } from "three/src/math/Vector3";
@@ -1,6 +1,6 @@
1
- import { MedianFilter } from "./render_utilities/MedianFilter";
2
- import { GaussianBlurrer } from "./render_utilities/GaussianBlurrer";
3
- import { Blurrer } from "./render_utilities/Blurrer";
4
- import { Blitter } from "./render_utilities/Blitter";
5
- import { DualFilteringBlurMaterial } from "./materials/DualFilteringBlurMaterial";
6
- export { MedianFilter, GaussianBlurrer, Blurrer, Blitter, DualFilteringBlurMaterial };
1
+ import { MedianFilter } from "./render_utilities/MedianFilter";
2
+ import { GaussianBlurrer } from "./render_utilities/GaussianBlurrer";
3
+ import { Blurrer } from "./render_utilities/Blurrer";
4
+ import { Blitter } from "./render_utilities/Blitter";
5
+ import { DualFilteringBlurMaterial } from "./materials/DualFilteringBlurMaterial";
6
+ export { MedianFilter, GaussianBlurrer, Blurrer, Blitter, DualFilteringBlurMaterial };
@@ -1,13 +1,51 @@
1
- export class CanvasDrawer {
2
- constructor(uses_dynamic_font: any);
3
- uses_dynamic_font: any;
4
- __textHeight: number;
5
- canvas: HTMLCanvasElement;
6
- ctx: CanvasRenderingContext2D;
7
- getFontHeight(fontStyle?: string): number;
8
- get_text_size(text: any, font?: string): any;
9
- draw_canvas(text: any, ctxOptions?: {}): HTMLCanvasElement;
10
- draw_on_texture(text: any, ctxOptions: any): any;
11
- __draw(text: any, ctxOptions: any): void;
12
- roundRect(ctx: any, x: any, y: any, width: any, height: any, radius: any, fill: any, stroke: any): void;
13
- }
1
+ export class CanvasDrawer {
2
+ /**
3
+ * @param {boolean} [uses_dynamic_font]
4
+ */
5
+ constructor(uses_dynamic_font?: boolean);
6
+ uses_dynamic_font: boolean;
7
+ __textHeight: number;
8
+ canvas: HTMLCanvasElement;
9
+ ctx: CanvasRenderingContext2D;
10
+ getFontHeight(fontStyle?: string): number;
11
+ /**
12
+ * @param {string} text
13
+ * @param {string} font
14
+ */
15
+ get_text_size(text: string, font?: string): Vector2;
16
+ /**
17
+ * @param {string} text
18
+ * @param {any} [ctxOptions]
19
+ */
20
+ draw_canvas(text: string, ctxOptions?: any): HTMLCanvasElement;
21
+ /**
22
+ * @param {string} text
23
+ * @param {any} [ctxOptions]
24
+ */
25
+ draw_on_texture(text: string, ctxOptions?: any): CanvasTexture;
26
+ /**
27
+ * @param {string[] | string} text
28
+ * @param {any} [ctxOptions]
29
+ * @param {HTMLCanvasElement} [canvas]
30
+ * @param {CanvasRenderingContext2D} [ctx]
31
+ */
32
+ __draw(text: string[] | string, ctxOptions?: any, canvas?: HTMLCanvasElement, ctx?: CanvasRenderingContext2D): void;
33
+ /**
34
+ * @param {CanvasRenderingContext2D} ctx
35
+ * @param {number} x
36
+ * @param {number} y
37
+ * @param {number} width
38
+ * @param {number} height
39
+ * @param {number | {tl:number, tr:number, br:number, bl:number}} radius
40
+ * @param {boolean} fill
41
+ * @param {boolean} stroke
42
+ */
43
+ roundRect(ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, radius: number | {
44
+ tl: number;
45
+ tr: number;
46
+ br: number;
47
+ bl: number;
48
+ }, fill: boolean, stroke: boolean): void;
49
+ }
50
+ import { Vector2 } from "three/src/math/Vector2";
51
+ import { CanvasTexture } from "three/src/textures/CanvasTexture";
@@ -1,5 +1,13 @@
1
- export class MultiLineTextDrawer extends CanvasDrawer {
2
- constructor();
3
- text_margin: any;
4
- }
5
- import { CanvasDrawer } from "./CanvasDrawer";
1
+ export class MultiLineTextDrawer extends CanvasDrawer {
2
+ constructor();
3
+ text_margin: Vector2;
4
+ /**
5
+ * @param {string[]} text_array
6
+ * @param {any} [ctxOptions]
7
+ * @param {HTMLCanvasElement} [canvas]
8
+ * @param {CanvasRenderingContext2D} [ctx]
9
+ */
10
+ __draw(text_array: string[], ctxOptions?: any, canvas?: HTMLCanvasElement, ctx?: CanvasRenderingContext2D): void;
11
+ }
12
+ import { CanvasDrawer } from "./CanvasDrawer";
13
+ import { Vector2 } from "three/src/math/Vector2";
@@ -1,6 +1,13 @@
1
- export class SimpleTextDrawer extends CanvasDrawer {
2
- constructor();
3
- text_margin: any;
4
- __draw(text: any, ctxOptions: any, canvas: any, ctx: any): void;
5
- }
6
- import { CanvasDrawer } from "./CanvasDrawer";
1
+ export class SimpleTextDrawer extends CanvasDrawer {
2
+ constructor();
3
+ text_margin: Vector2;
4
+ /**
5
+ * @param {string} text
6
+ * @param {any} [ctxOptions]
7
+ * @param {HTMLCanvasElement} [canvas]
8
+ * @param {CanvasRenderingContext2D} [ctx]
9
+ */
10
+ __draw(text: string, ctxOptions?: any, canvas?: HTMLCanvasElement, ctx?: CanvasRenderingContext2D): void;
11
+ }
12
+ import { CanvasDrawer } from "./CanvasDrawer";
13
+ import { Vector2 } from "three/src/math/Vector2";
@@ -1,13 +1,25 @@
1
- export class AudioClip {
2
- constructor(buffer: any, loop?: boolean, volume?: number, positional?: boolean);
3
- buffer: any;
4
- loop: boolean;
5
- volume: number;
6
- positional: boolean;
7
- audio: any;
8
- init(audio_listener: any): void;
9
- play(): void;
10
- pause(): void;
11
- stop(): void;
12
- get is_playing(): any;
13
- }
1
+ export class AudioClip {
2
+ /**
3
+ * @param {AudioBuffer} buffer
4
+ * @param {boolean} [loop]
5
+ * @param {number} [volume]
6
+ * @param {boolean} [positional]
7
+ */
8
+ constructor(buffer: AudioBuffer, loop?: boolean, volume?: number, positional?: boolean);
9
+ buffer: AudioBuffer;
10
+ loop: boolean;
11
+ volume: number;
12
+ positional: boolean;
13
+ audio: TPositionalAudio | TAudio<GainNode>;
14
+ /**
15
+ * @param {AudioListener} audio_listener
16
+ */
17
+ init(audio_listener: AudioListener): void;
18
+ play(): void;
19
+ pause(): void;
20
+ stop(): void;
21
+ get is_playing(): boolean;
22
+ }
23
+ import { PositionalAudio as TPositionalAudio } from "three/src/audio/PositionalAudio";
24
+ import { Audio as TAudio } from "three/src/audio/Audio";
25
+ import { AudioListener } from "three/src/audio/AudioListener";
@@ -1,6 +1,6 @@
1
- export class AxisHelper {
2
- constructor(scale?: number);
3
- renderOrder: number;
4
- update(): void;
5
- dispose(): void;
6
- }
1
+ export class AxisHelper extends Object3D<import("three").Object3DEventMap> {
2
+ constructor(scale?: number);
3
+ update(): void;
4
+ dispose(): void;
5
+ }
6
+ import { Object3D } from "three/src/core/Object3D";
@@ -1,5 +1,12 @@
1
- export class BaseObject {
2
- ___temp_w_pos: any;
3
- get_world_pos(): any;
4
- deep_dispose(obj: any): void;
5
- }
1
+ export class BaseObject extends Object3D<import("three").Object3DEventMap> {
2
+ constructor();
3
+ ___temp_w_pos: Vector3;
4
+ get_world_pos(): Vector3;
5
+ /**
6
+ * @param {Object3D | Mesh} obj
7
+ */
8
+ deep_dispose(obj: Object3D | Mesh): void;
9
+ }
10
+ import { Object3D } from "three/src/core/Object3D";
11
+ import { Vector3 } from "three/src/math/Vector3";
12
+ import { Mesh } from "three/src/objects/Mesh";
@@ -1,13 +1,42 @@
1
- export class EdgeMesh {
2
- constructor(buffer_geometry: any, thickness: any, color: any);
3
- edges_material: any;
4
- corners_material: any;
5
- edges_mesh: any;
6
- corners_mesh: any;
7
- __get_edges(cube_geometry: any): any[];
8
- update(TIME: any): void;
9
- __get_edges_geometry(points: any): any;
10
- __get_corners_geometry(geometry_vertices: any): any;
11
- set_visible(boolean: any): void;
12
- dispose(): void;
13
- }
1
+ export class EdgeMesh extends Object3D<import("three").Object3DEventMap> {
2
+ /**
3
+ * @param {BufferGeometry} buffer_geometry
4
+ * @param {number} [thickness]
5
+ * @param {string} [color]
6
+ */
7
+ constructor(buffer_geometry: BufferGeometry, thickness?: number, color?: string);
8
+ edges_material: ShaderMaterial;
9
+ corners_material: ShaderMaterial;
10
+ edges_mesh: Mesh<BufferGeometry<import("three").NormalBufferAttributes>, ShaderMaterial, import("three").Object3DEventMap>;
11
+ corners_mesh: Mesh<BufferGeometry<import("three").NormalBufferAttributes>, ShaderMaterial, import("three").Object3DEventMap>;
12
+ /**
13
+ * @param {BufferGeometry} cube_geometry
14
+ * @returns {Vector3[]}
15
+ */
16
+ __get_edges(cube_geometry: BufferGeometry): Vector3[];
17
+ /**
18
+ * @param {number} TIME
19
+ */
20
+ update(TIME: number): void;
21
+ /**
22
+ * @param {Vector3[]} points
23
+ */
24
+ __get_edges_geometry(points: Vector3[]): BufferGeometry<import("three").NormalBufferAttributes>;
25
+ /**
26
+ * @param {BufferAttribute | InterleavedBufferAttribute} geometry_vertices
27
+ * @returns {BufferGeometry}
28
+ */
29
+ __get_corners_geometry(geometry_vertices: BufferAttribute | InterleavedBufferAttribute): BufferGeometry;
30
+ /**
31
+ * @param {boolean} boolean
32
+ */
33
+ set_visible(boolean: boolean): void;
34
+ dispose(): void;
35
+ }
36
+ import { Object3D } from "three/src/core/Object3D";
37
+ import { ShaderMaterial } from "three/src/materials/ShaderMaterial";
38
+ import { BufferGeometry } from "three/src/core/BufferGeometry";
39
+ import { Mesh } from "three/src/objects/Mesh";
40
+ import { Vector3 } from "three/src/math/Vector3";
41
+ import { BufferAttribute } from "three/src/core/BufferAttribute";
42
+ import { InterleavedBufferAttribute } from "three/src/core/InterleavedBufferAttribute";
@@ -1,4 +1,12 @@
1
- export class GeometryEdgeVisualizer {
2
- constructor(geometry: any, line_color: any);
3
- hide_faces(): void;
4
- }
1
+ export class GeometryEdgeVisualizer extends Mesh<BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap> {
2
+ /**
3
+ * @param {BufferGeometry} geometry
4
+ * @param {string | number} [line_color]
5
+ */
6
+ constructor(geometry: BufferGeometry, line_color?: string | number);
7
+ material: ShaderMaterial;
8
+ hide_faces(): void;
9
+ }
10
+ import { BufferGeometry } from "three/src/core/BufferGeometry";
11
+ import { Mesh } from "three/src/objects/Mesh";
12
+ import { ShaderMaterial } from "three/src/materials/ShaderMaterial";
@@ -1,2 +1,4 @@
1
- export class Grid {
2
- }
1
+ export class Grid extends Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap> {
2
+ constructor();
3
+ }
4
+ import { Mesh } from "three/src/objects/Mesh";
@@ -1,16 +1,42 @@
1
- export class Line {
2
- constructor(points: any);
3
- setup(points: any): void;
4
- _length: number;
5
- set thickness(arg: any);
6
- get thickness(): any;
7
- __get_previous_position(points: any, i: any): any;
8
- __get_next_position(points: any, i: any): any;
9
- update(): void;
10
- distance(): any;
11
- total_length(): any;
12
- dispose(): void;
13
- set color(arg: any);
14
- get color(): any;
15
- copy_color(col: any): void;
16
- }
1
+ export class Line extends Mesh<BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap> {
2
+ /**
3
+ * @param {Vector3[]} [points]
4
+ */
5
+ constructor(points?: Vector3[]);
6
+ material: ShaderMaterial;
7
+ /**
8
+ * @param {Vector3[]} points
9
+ */
10
+ setup(points: Vector3[]): void;
11
+ _length: number;
12
+ accumulated_length: number;
13
+ set thickness(arg: any);
14
+ get thickness(): any;
15
+ /**
16
+ * @param {Vector3[]} points
17
+ * @param {number} i
18
+ * @returns {Vector3}
19
+ */
20
+ __get_previous_position(points: Vector3[], i: number): Vector3;
21
+ /**
22
+ * @param {Vector3[]} points
23
+ * @param {number} i
24
+ * @returns {Vector3}
25
+ */
26
+ __get_next_position(points: Vector3[], i: number): Vector3;
27
+ update(): void;
28
+ distance(): number;
29
+ total_length(): number;
30
+ dispose(): void;
31
+ set color(arg: any);
32
+ get color(): any;
33
+ /**
34
+ * @param {Color} col
35
+ */
36
+ copy_color(col: Color): void;
37
+ }
38
+ import { BufferGeometry } from "three/src/core/BufferGeometry";
39
+ import { Mesh } from "three/src/objects/Mesh";
40
+ import { ShaderMaterial } from "three/src/materials/ShaderMaterial";
41
+ import { Vector3 } from "three/src/math/Vector3";
42
+ import { Color } from "three/src/math/Color";
@@ -1,4 +1,10 @@
1
- export class MultiLinePath {
2
- constructor(paths: any, webgl: any);
3
- paths: any[];
4
- }
1
+ export class MultiLinePath extends Object3D<import("three").Object3DEventMap> {
2
+ /**
3
+ * @param {Array<Vector3[]>} paths
4
+ */
5
+ constructor(paths: Array<Vector3[]>);
6
+ paths: Line[];
7
+ }
8
+ import { Object3D } from "three/src/core/Object3D";
9
+ import { Line } from "./Line";
10
+ import { Vector3 } from "three/src/math/Vector3";
@@ -1,10 +1,22 @@
1
- export class MultiLineText2D {
2
- constructor(text_array: any, font: any, color: any, pivot: any, is_static: any);
3
- text_array: Text2D[];
4
- update_text_positions(): void;
5
- set texts(arg: any[]);
6
- get texts(): any[];
7
- set size(arg: number);
8
- get size(): number;
9
- }
10
- import { Text2D } from "./Text2D";
1
+ export class MultiLineText2D extends Object3D<import("three").Object3DEventMap> {
2
+ /**
3
+ * @param {string[]} text_array
4
+ * @param {string} [font]
5
+ * @param {string | number} [color]
6
+ * @param {Vector2} [pivot]
7
+ * @param {boolean} [is_static]
8
+ */
9
+ constructor(text_array: string[], font?: string, color?: string | number, pivot?: Vector2, is_static?: boolean);
10
+ text_array: Text2D[];
11
+ update_text_positions(): void;
12
+ set texts(arg: string[]);
13
+ /**
14
+ * @returns {string[]}
15
+ */
16
+ get texts(): string[];
17
+ set size(arg: number);
18
+ get size(): number;
19
+ }
20
+ import { Object3D } from "three/src/core/Object3D";
21
+ import { Text2D } from "./Text2D";
22
+ import { Vector2 } from "three/src/math/Vector2";
@@ -1,3 +1,8 @@
1
- export class ObjectAxis {
2
- constructor(obj: any, size: any);
3
- }
1
+ export class ObjectAxis extends Object3D<import("three").Object3DEventMap> {
2
+ /**
3
+ * @param {Object3D} obj
4
+ * @param {number} [size]
5
+ */
6
+ constructor(obj: Object3D, size?: number);
7
+ }
8
+ import { Object3D } from "three/src/core/Object3D";
@@ -1,18 +1,45 @@
1
- export class ObjectOrientedBoundingBox {
2
- constructor(points: any);
3
- axis_to_world: any;
4
- world_to_axis: any;
5
- min: any;
6
- max: any;
7
- center: any;
8
- bounds: any[];
9
- get_center(points: any): any;
10
- box_volume(min: any, max: any): number;
11
- getSize(): any;
12
- is_inside_XZ(point: any): boolean;
13
- closest_point_on_bounds(reference_point: any): any;
14
- world_to_local(point: any): any;
15
- local_to_world(point: any): any;
16
- local_to_world_dir(direction: any): any;
17
- get_corners(): any[];
18
- }
1
+ export class ObjectOrientedBoundingBox {
2
+ /**
3
+ * @param {Vector3[]} points
4
+ */
5
+ constructor(points: Vector3[]);
6
+ axis_to_world: Quaternion;
7
+ world_to_axis: Quaternion;
8
+ min: Vector3;
9
+ max: Vector3;
10
+ center: Vector3;
11
+ bounds: Vector3[];
12
+ /**
13
+ * @param {Vector3[]} points
14
+ */
15
+ get_center(points: Vector3[]): Vector3;
16
+ /**
17
+ * @param {Vector3} min
18
+ * @param {Vector3} max
19
+ */
20
+ box_volume(min: Vector3, max: Vector3): number;
21
+ getSize(): Vector3;
22
+ /**
23
+ * @param {Vector3} point
24
+ */
25
+ is_inside_XZ(point: Vector3): boolean;
26
+ /**
27
+ * @param {Vector3} reference_point
28
+ */
29
+ closest_point_on_bounds(reference_point: Vector3): Vector3;
30
+ /**
31
+ * @param {Vector3} point
32
+ */
33
+ world_to_local(point: Vector3): Vector3;
34
+ /**
35
+ * @param {Vector3} point
36
+ */
37
+ local_to_world(point: Vector3): Vector3;
38
+ /**
39
+ * @param {Vector3} direction
40
+ */
41
+ local_to_world_dir(direction: Vector3): Vector3;
42
+ get_corners(): Vector3[];
43
+ }
44
+ import { Quaternion } from "three/src/math/Quaternion";
45
+ import { Vector3 } from "three/src/math/Vector3";