ohzi-core 5.14.1 → 5.14.2

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 (184) hide show
  1. package/build/index.module.js +1 -1
  2. package/build/index.module.js.map +1 -1
  3. package/package.json +1 -1
  4. package/src/index.js +12 -2
  5. package/types/BaseApplication.d.ts +1 -1
  6. package/types/CameraManager.d.ts +7 -7
  7. package/types/Capabilities.d.ts +5 -7
  8. package/types/Configuration.d.ts +5 -7
  9. package/types/Debug.d.ts +36 -36
  10. package/types/EventManager.d.ts +41 -43
  11. package/types/Graphics.d.ts +35 -35
  12. package/types/Initializer.d.ts +3 -5
  13. package/types/Input.d.ts +4 -6
  14. package/types/OS.d.ts +12 -14
  15. package/types/OrthographicCamera.d.ts +1 -1
  16. package/types/PerspectiveCamera.d.ts +1 -1
  17. package/types/ReflectionPlaneContext.d.ts +5 -7
  18. package/types/RenderLayers.d.ts +1 -1
  19. package/types/RenderLoop.d.ts +1 -1
  20. package/types/ResourceContainer.d.ts +7 -9
  21. package/types/SceneManager.d.ts +9 -9
  22. package/types/Screen.d.ts +16 -18
  23. package/types/Time.d.ts +10 -12
  24. package/types/UI.d.ts +14 -16
  25. package/types/action_sequencer/ActionEvent.d.ts +1 -1
  26. package/types/action_sequencer/ActionInterpolator.d.ts +1 -1
  27. package/types/action_sequencer/ActionSequencer.d.ts +1 -1
  28. package/types/action_sequencer/NumberInterpolator.d.ts +2 -2
  29. package/types/action_sequencer/VectorInterpolator.d.ts +2 -2
  30. package/types/canvas_drawer/CanvasDrawer.d.ts +1 -1
  31. package/types/canvas_drawer/MultiLineTextDrawer.d.ts +2 -2
  32. package/types/canvas_drawer/SimpleTextDrawer.d.ts +2 -2
  33. package/types/components/AudioClip.d.ts +1 -1
  34. package/types/components/AxisHelper.d.ts +1 -1
  35. package/types/components/BaseObject.d.ts +1 -1
  36. package/types/components/EdgeMesh.d.ts +1 -1
  37. package/types/components/GeometryEdgeVisualizer.d.ts +1 -1
  38. package/types/components/Grid.d.ts +1 -1
  39. package/types/components/Line.d.ts +1 -1
  40. package/types/components/MultiLinePath.d.ts +1 -1
  41. package/types/components/MultiLineText2D.d.ts +2 -2
  42. package/types/components/ObjectAxis.d.ts +1 -1
  43. package/types/components/ObjectOrientedBoundingBox.d.ts +1 -1
  44. package/types/components/PlaneHelper.d.ts +1 -1
  45. package/types/components/Shape2D.d.ts +1 -1
  46. package/types/components/Shape3D.d.ts +1 -1
  47. package/types/components/Text2D.d.ts +3 -3
  48. package/types/components/UIElement.d.ts +6 -6
  49. package/types/components/UpdatableMaterialMesh.d.ts +1 -1
  50. package/types/components/WorldImage.d.ts +1 -1
  51. package/types/components/sdf_text/SDFText.d.ts +1 -1
  52. package/types/components/sdf_text/SDFTextBatch.d.ts +2 -2
  53. package/types/components/sdf_text/TextGlyph.d.ts +1 -1
  54. package/types/editor/ManipulatorHandle.d.ts +1 -1
  55. package/types/editor/ObjectEditor.d.ts +3 -3
  56. package/types/editor/ObjectManipulator.d.ts +2 -2
  57. package/types/editor/ObjectPicker.d.ts +1 -1
  58. package/types/gpu_particles/GPUParticleSystem.d.ts +1 -1
  59. package/types/gpu_particles/ParticleAttribute.d.ts +1 -1
  60. package/types/gpu_particles/ParticlePositionAttribute.d.ts +2 -2
  61. package/types/html_utilities/CSSAnimator.d.ts +2 -2
  62. package/types/html_utilities/css_animator_states/Animating.d.ts +1 -1
  63. package/types/html_utilities/css_animator_states/Idle.d.ts +1 -1
  64. package/types/index.d.ts +2 -2
  65. package/types/materials/AddMaterial.d.ts +2 -2
  66. package/types/materials/AlphaFilterMaterial.d.ts +2 -2
  67. package/types/materials/BaseShaderMaterial.d.ts +1 -1
  68. package/types/materials/BlitMaterial.d.ts +1 -1
  69. package/types/materials/BloomComposeMaterial.d.ts +2 -2
  70. package/types/materials/BoxBlurMaterial.d.ts +2 -2
  71. package/types/materials/ClearAlphaMaterial.d.ts +1 -1
  72. package/types/materials/ClearColorMaterial.d.ts +1 -1
  73. package/types/materials/ClearDepthNormalMaterial.d.ts +2 -2
  74. package/types/materials/DeferredRendererComposeMaterial.d.ts +2 -2
  75. package/types/materials/DepthNormalMaterial.d.ts +1 -1
  76. package/types/materials/DisplayNormalTextureMaterial.d.ts +2 -2
  77. package/types/materials/DualFilteringBlurMaterial.d.ts +2 -2
  78. package/types/materials/FXAAMaterial.d.ts +1 -1
  79. package/types/materials/GaussianBlurMaterial.d.ts +2 -2
  80. package/types/materials/LuminosityHighPassMaterial.d.ts +2 -2
  81. package/types/materials/MedianFilterMaterial.d.ts +2 -2
  82. package/types/materials/NormalMaterial.d.ts +1 -1
  83. package/types/materials/SDFScreenTextMaterial.d.ts +2 -2
  84. package/types/materials/SDFTextMaterial.d.ts +2 -2
  85. package/types/materials/SSAOComposeMaterial.d.ts +2 -2
  86. package/types/materials/SSAOMaterial.d.ts +2 -2
  87. package/types/materials/ScreenSpaceTextureMaterial.d.ts +2 -2
  88. package/types/materials/UIElementMaterial.d.ts +2 -2
  89. package/types/materials/UnrealBloomComposeMaterial.d.ts +3 -2
  90. package/types/materials/UnrealBlurMaterial.d.ts +2 -2
  91. package/types/materials/UnrealComposeMaterial.d.ts +2 -2
  92. package/types/materials/ViewPositionMaterial.d.ts +2 -1
  93. package/types/materials/deferred/DeferredPointLightMaterial.d.ts +2 -2
  94. package/types/materials/gpu_particles/ParticleStorageMaterial.d.ts +1 -1
  95. package/types/materials/gpu_particles/PositionStorageMaterial.d.ts +2 -2
  96. package/types/object_pool/Pool.d.ts +1 -1
  97. package/types/primitives/Arrow.d.ts +1 -1
  98. package/types/primitives/Cube.d.ts +1 -1
  99. package/types/primitives/HorizontalPlane.d.ts +1 -1
  100. package/types/primitives/Sphere.d.ts +1 -1
  101. package/types/primitives/VerticalPlane.d.ts +1 -1
  102. package/types/raycast/GroupRaycaster.d.ts +2 -2
  103. package/types/raycast/PlaneDragResolver.d.ts +3 -3
  104. package/types/raycast/PlaneRaycastResolver.d.ts +1 -1
  105. package/types/raycast/PlaneRaycaster.d.ts +1 -1
  106. package/types/raycast/RaycastResolver.d.ts +1 -1
  107. package/types/raycast/SurfaceDragResolver.d.ts +3 -3
  108. package/types/raycast/states/BaseState.d.ts +1 -1
  109. package/types/raycast/states/IdleState.d.ts +4 -2
  110. package/types/raycast/states/OnRaycastEnter.d.ts +4 -2
  111. package/types/raycast/states/OnRaycastExit.d.ts +3 -2
  112. package/types/raycast/states/OnRaycastHover.d.ts +3 -2
  113. package/types/render_mode/BaseRender.d.ts +1 -1
  114. package/types/render_mode/BloomRender.d.ts +4 -4
  115. package/types/render_mode/DebugNormalsRender.d.ts +3 -2
  116. package/types/render_mode/DeferredRender.d.ts +3 -3
  117. package/types/render_mode/NormalAORender.d.ts +6 -6
  118. package/types/render_mode/NormalRender.d.ts +3 -2
  119. package/types/render_mode/OutlineRender.d.ts +1 -1
  120. package/types/render_mode/PlanarReflectionsRender.d.ts +2 -2
  121. package/types/render_mode/TransparencyMixRender.d.ts +1 -1
  122. package/types/render_mode/UnrealBloomRender.d.ts +5 -5
  123. package/types/render_utilities/Blitter.d.ts +3 -2
  124. package/types/render_utilities/Blurrer.d.ts +3 -2
  125. package/types/render_utilities/DepthAndNormalsRenderer.d.ts +5 -3
  126. package/types/render_utilities/DualFilteringBlurrer.d.ts +5 -3
  127. package/types/render_utilities/GaussianBlurrer.d.ts +3 -2
  128. package/types/render_utilities/MedianFilter.d.ts +3 -2
  129. package/types/render_utilities/ViewPositionRenderer.d.ts +3 -2
  130. package/types/resource_loader/AbstractLoader.d.ts +1 -1
  131. package/types/resource_loader/AudioLoader.d.ts +3 -2
  132. package/types/resource_loader/BasisLoader.d.ts +3 -2
  133. package/types/resource_loader/CubemapLoader.d.ts +3 -2
  134. package/types/resource_loader/DAELoader.d.ts +3 -2
  135. package/types/resource_loader/DDSLoader.d.ts +3 -2
  136. package/types/resource_loader/FileLoader.d.ts +3 -2
  137. package/types/resource_loader/FontLoader.d.ts +3 -2
  138. package/types/resource_loader/GLTFDRACOLoader.d.ts +3 -2
  139. package/types/resource_loader/GLTFLoader.d.ts +1 -1
  140. package/types/resource_loader/HDRCubeTextureLoader.d.ts +3 -2
  141. package/types/resource_loader/JSONLoader.d.ts +3 -2
  142. package/types/resource_loader/OBJLoader.d.ts +3 -2
  143. package/types/resource_loader/PointArrayLoader.d.ts +3 -2
  144. package/types/resource_loader/RGBETextureLoader.d.ts +3 -2
  145. package/types/resource_loader/ResourceBatch.d.ts +1 -1
  146. package/types/resource_loader/SVGLoader.d.ts +3 -2
  147. package/types/resource_loader/TextLoader.d.ts +3 -2
  148. package/types/resource_loader/TextureLoader.d.ts +3 -2
  149. package/types/static_batcher/GeometryBatch.d.ts +1 -1
  150. package/types/static_batcher/GeometryBatcher.d.ts +6 -8
  151. package/types/ui/ui_element_position/ScreenSpacePosition.d.ts +1 -1
  152. package/types/ui/ui_element_position/WorldSpacePosition.d.ts +1 -1
  153. package/types/ui/ui_element_state/OnIdle.d.ts +4 -2
  154. package/types/ui/ui_element_state/OnMouseEnter.d.ts +4 -2
  155. package/types/ui/ui_element_state/OnMouseExit.d.ts +4 -2
  156. package/types/ui/ui_element_state/OnMouseHover.d.ts +3 -2
  157. package/types/ui/ui_element_state/UIElementState.d.ts +1 -1
  158. package/types/utilities/ArrayUtilities.d.ts +1 -1
  159. package/types/utilities/CameraUtilities.d.ts +20 -22
  160. package/types/utilities/EasingFunctions.d.ts +34 -36
  161. package/types/utilities/FrustumPointFitter.d.ts +4 -2
  162. package/types/utilities/GeometryUtilities.d.ts +1 -1
  163. package/types/utilities/ImageUtilities.d.ts +1 -1
  164. package/types/utilities/MathUtilities.d.ts +1 -1
  165. package/types/utilities/MeshSampler.d.ts +7 -9
  166. package/types/utilities/ModelUtilities.d.ts +9 -11
  167. package/types/utilities/ObjectUtilities.d.ts +1 -1
  168. package/types/utilities/OrthographicFrustumPointFitter.d.ts +1 -1
  169. package/types/utilities/PerspectiveFrustumPointFitter.d.ts +1 -1
  170. package/types/utilities/StringUtilities.d.ts +1 -1
  171. package/types/utilities/TimeUtilities.d.ts +1 -1
  172. package/types/utilities/Validation.d.ts +1 -1
  173. package/types/view_components/ApplicationView.d.ts +1 -1
  174. package/types/view_components/ViewComponent.d.ts +1 -1
  175. package/types/view_components/ViewComponentManager.d.ts +9 -11
  176. package/types/view_components/ViewContext.d.ts +5 -5
  177. package/types/view_components/ViewManager.d.ts +23 -22
  178. package/types/view_components/ViewState.d.ts +1 -1
  179. package/types/view_components/transition/ActionSequencerBuilder.d.ts +3 -2
  180. package/types/view_components/transition/DrawIOAnimationSheet.d.ts +1 -1
  181. package/types/view_components/transition/TransitionTable.d.ts +1 -1
  182. package/types/view_components/transition/ViewStateTransitionHandler.d.ts +3 -2
  183. package/src/Primitives.js +0 -13
  184. package/types/Primitives.d.ts +0 -13
@@ -1,26 +1,24 @@
1
- declare var _default: CameraUtilities;
2
- export default _default;
3
- declare class CameraUtilities {
4
- init(): void;
5
- tmp_mat: any;
6
- tmp_vec: any;
7
- tmp_vec2: any;
8
- plane: any;
9
- ray: any;
10
- tmp_size: any;
11
- tmp_unproj: any;
12
- get_up_dir(camera: any): any;
13
- get_forward_dir(camera: any): any;
14
- get_right_dir(camera: any): any;
15
- unproject_mouse_position(NDC: any, camera: any): any;
16
- get_plane_intersection(plane_position: any, plane_normal: any, NDC: any, camera: any): any;
17
- fit_points_on_camera(points: any, zoom_scale?: number): {
1
+ export class CameraUtilities {
2
+ static init(): void;
3
+ static tmp_mat: any;
4
+ static tmp_vec: any;
5
+ static tmp_vec2: any;
6
+ static plane: any;
7
+ static ray: any;
8
+ static tmp_size: any;
9
+ static tmp_unproj: any;
10
+ static get_up_dir(camera: any): any;
11
+ static get_forward_dir(camera: any): any;
12
+ static get_right_dir(camera: any): any;
13
+ static unproject_mouse_position(NDC: any, camera: any): any;
14
+ static get_plane_intersection(plane_position: any, plane_normal: any, NDC: any, camera: any): any;
15
+ static fit_points_on_camera(points: any, zoom_scale?: number): {
18
16
  position: any;
19
17
  zoom: number;
20
18
  };
21
- get_zoom_to_fit_rect(width: any, height: any): number;
22
- get_zoom_to_fit_box(bb: any, camera: any): number;
23
- get_html_screen_pos(object: any, camera: any): any;
24
- world_pos_to_screen(pos: any, camera: any): any;
25
- update_projection(camera: any): void;
19
+ static get_zoom_to_fit_rect(width: any, height: any): number;
20
+ static get_zoom_to_fit_box(bb: any, camera: any): number;
21
+ static get_html_screen_pos(object: any, camera: any): any;
22
+ static world_pos_to_screen(pos: any, camera: any): any;
23
+ static update_projection(camera: any): void;
26
24
  }
@@ -1,37 +1,35 @@
1
- declare var _default: EasingFunctions;
2
- export default _default;
3
- declare class EasingFunctions {
4
- linear(x: any): any;
5
- triangular(x: any): number;
6
- ease_in_sine(x: any): number;
7
- ease_out_sine(x: any): number;
8
- ease_in_out_sine(x: any): number;
9
- ease_in_cubic(x: any): number;
10
- ease_out_cubic(x: any): number;
11
- ease_in_out_cubic(x: any): number;
12
- ease_in_quad(x: any): number;
13
- ease_out_quad(x: any): number;
14
- ease_in_out_quad(x: any): number;
15
- ease_in_quart(x: any): number;
16
- ease_out_quart(x: any): number;
17
- ease_in_out_quart(x: any): number;
18
- ease_in_quint(x: any): number;
19
- ease_out_quint(x: any): number;
20
- ease_in_out_quint(x: any): number;
21
- ease_in_expo(x: any): number;
22
- ease_out_expo(x: any): number;
23
- ease_in_out_expo(x: any): number;
24
- ease_in_circ(x: any): number;
25
- ease_out_circ(x: any): number;
26
- ease_in_out_circ(x: any): number;
27
- ease_in_back(x: any): number;
28
- ease_out_back(x: any): number;
29
- ease_in_out_back(x: any): number;
30
- ease_in_elastic(x: any): number;
31
- ease_out_elastic(x: any): number;
32
- ease_in_out_elastic(x: any): number;
33
- ease_in_bounce(x: any): number;
34
- ease_out_bounce(x: any): number;
35
- ease_in_out_bounce(x: any): number;
36
- heartbeat(t: any): number;
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;
37
35
  }
@@ -1,5 +1,7 @@
1
- export default class FrustumPointFitter {
2
- sphere: any;
1
+ import { Sphere } from "three";
2
+
3
+ export class FrustumPointFitter {
4
+ sphere: Sphere;
3
5
  fit_points(points: any, camera_quaternion: any, vertical_fov: any, aspect: any): any;
4
6
  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
7
  get_vertical_correction(points: any, down_plane: any, up_plane: any, camera_quaternion: any): any;
@@ -1,4 +1,4 @@
1
- export default class GeometryUtilities {
1
+ export class GeometryUtilities {
2
2
  static convert_to_non_indexed_geometry(geometry_buffer: any): any;
3
3
  static add_barycentric_attribute(non_indexed_geometry_buffer: any): void;
4
4
  }
@@ -1,4 +1,4 @@
1
- export default class ImageUtilities {
1
+ export class ImageUtilities {
2
2
  static get_image_data(image: any): ImageData;
3
3
  static get_pixel(imagedata: any, x: any, y: any): any;
4
4
  }
@@ -1,4 +1,4 @@
1
- export default class MathUtilities {
1
+ export class MathUtilities {
2
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
3
  static between(value: any, min: any, max: any): boolean;
4
4
  static mod(number: any, divisor: any): number;
@@ -1,16 +1,14 @@
1
- declare var _default: MeshSampler;
2
- export default _default;
3
- declare class MeshSampler {
4
- sample(geometry: any, sample_count: any): {
1
+ export class MeshSampler {
2
+ static sample(geometry: any, sample_count: any): {
5
3
  points: any[];
6
4
  normals: any[];
7
5
  };
8
- sample_data_from_faces(faces: any, vertices: any): {
6
+ static sample_data_from_faces(faces: any, vertices: any): {
9
7
  points: any[];
10
8
  normals: any[];
11
9
  };
12
- select_random_faces(faces: any, amount: any): any[];
13
- get_uniform_face_distribution(face_areas: any, minimum_area: any, faces: any): any[];
14
- get_face_area(face: any, vertices: any): number;
15
- sample_point_in_face(w1: any, w2: any, v1: any, v2: any, v3: any): any;
10
+ static select_random_faces(faces: any, amount: any): any[];
11
+ static get_uniform_face_distribution(face_areas: any, minimum_area: any, faces: any): any[];
12
+ static get_face_area(face: any, vertices: any): number;
13
+ static sample_point_in_face(w1: any, w2: any, v1: any, v2: any, v3: any): any;
16
14
  }
@@ -1,15 +1,13 @@
1
- declare var _default: ModelUtilities;
2
- export default _default;
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): {
1
+ export class ModelUtilities {
2
+ static get_mesh(scene: any, result_callback: any): void;
3
+ static get_geometries(scene: any): any[];
4
+ static assign_material(scene: any, material: any, name: any): void;
5
+ static clone_animated_gltf(gltf: any): {
8
6
  animations: any;
9
7
  scene: any;
10
8
  };
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;
9
+ static set_shadow_config(scene: any, cast: any, receive: any): void;
10
+ static __find_object(scene: any, object_name: any, result_callback: any): void;
11
+ static get_object(scene: any, object_name: any): any;
12
+ static get_object_by_type(scene: any, object_type: any): any;
15
13
  }
@@ -1,4 +1,4 @@
1
- export default class ObjectUtilities {
1
+ export class ObjectUtilities {
2
2
  static xml_to_json(xml: any): {
3
3
  '@attributes': {};
4
4
  };
@@ -1,4 +1,4 @@
1
- export default class OrthographicFrustumPointFitter {
1
+ export class OrthographicFrustumPointFitter {
2
2
  fit_points(points: any, camera_quaternion: any, vertical_fov: any, aspect: any): {
3
3
  center: any;
4
4
  distance_to_center: number;
@@ -1,4 +1,4 @@
1
- export default class PerspectiveFrustumPointFitter {
1
+ export class PerspectiveFrustumPointFitter {
2
2
  sphere: any;
3
3
  fit_points(points: any, camera_quaternion: any, vertical_fov: any, aspect: any): any;
4
4
  apply_center_correction_to_pos(target_pos: any, points: any, camera_quaternion: any, up_plane: any, down_plane: any, left_plane: any, right_plane: any): void;
@@ -1,4 +1,4 @@
1
- export default class StringUtilities {
1
+ export class StringUtilities {
2
2
  static capitalize(string: any): any;
3
3
  static capitalize_first_letter(string: any): any;
4
4
  static snake_to_camelcase(string: any): any;
@@ -1,3 +1,3 @@
1
- export default class TimeUtilities {
1
+ export class TimeUtilities {
2
2
  time_str_to_ms(time_str: any): number;
3
3
  }
@@ -1,4 +1,4 @@
1
- export default class Validation {
1
+ export class Validation {
2
2
  static is_int(n: any): boolean;
3
3
  static is_float(n: any): boolean;
4
4
  static is_number(n: any): boolean;
@@ -1,4 +1,4 @@
1
- export default class ApplicationView extends ViewState {
1
+ export class ApplicationView extends ViewState {
2
2
  constructor({ name, url, container }: {
3
3
  name: any;
4
4
  url: any;
@@ -1,4 +1,4 @@
1
- export default class ViewComponent {
1
+ export class ViewComponent {
2
2
  constructor({ name, container }: {
3
3
  name: any;
4
4
  container: any;
@@ -1,12 +1,10 @@
1
- declare var _default: ViewComponentManager;
2
- export default _default;
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;
1
+ export class ViewComponentManager {
2
+ static components: any[];
3
+ static enabled_components: Set<any>;
4
+ static update(): void;
5
+ static register_component(component: any): void;
6
+ static enable_component(component: any): void;
7
+ static disable_component(component: any): void;
8
+ static get_component_by_name(component_name: any): void;
9
+ static get(component_name: any): any;
12
10
  }
@@ -1,6 +1,6 @@
1
- declare var _default: ViewContext;
2
- export default _default;
3
- declare class ViewContext {
4
- app: any;
5
- set_app(app: any): void;
1
+ import { BaseApplication } from "ohzi-core";
2
+
3
+ export class ViewContext {
4
+ static app: BaseApplication;
5
+ static set_app(app: any): void;
6
6
  }
@@ -1,23 +1,24 @@
1
- declare var _default: ViewManager;
2
- export default _default;
3
- declare class ViewManager {
4
- views: any[];
5
- transition_table: TransitionTable;
6
- transition_handler: ViewStateTransitionHandler;
7
- update(): void;
8
- go_to_view(view_name: any, change_url?: boolean, skip?: boolean): void;
9
- register_view(view: any): void;
10
- has_view(view_name: any): boolean;
11
- add_transitions(transitions: any): void;
12
- set_transitions(transitions: any): void;
13
- set_view(view_name: any): void;
14
- get_current_view(): import("./ViewState").default;
15
- get_view_by_name(view_name: any): void;
16
- get(view_name: any): any;
17
- get_view_by_url(url: any): void;
18
- get_by_url(url: any): any;
19
- set_initial_state_data(initial_state_data: any): void;
20
- __change_browser_url(url: any): void;
1
+ import { TransitionTable } from "ohzi-core";
2
+ import { ViewStateTransitionHandler } from "ohzi-core/types/view_components/transition/ViewStateTransitionHandler";
3
+ import { ViewState } from "ohzi-core/types/view_components/ViewState";
4
+
5
+ export class ViewManager {
6
+ static views: ViewState[];
7
+ static transition_table: TransitionTable;
8
+ static transition_handler: ViewStateTransitionHandler;
9
+ static update(): void;
10
+ static go_to_view(view_name: any, change_url?: boolean, skip?: boolean): void;
11
+ static register_view(view: any): void;
12
+ static has_view(view_name: any): boolean;
13
+ static add_transitions(transitions: any): void;
14
+ static set_transitions(transitions: any): void;
15
+ static set_view(view_name: any): void;
16
+ static get_current_view(): ViewState;
17
+ static get_view_by_name(view_name: any): void;
18
+ static get(view_name: any): any;
19
+ static get_view_by_url(url: any): void;
20
+ static get_by_url(url: any): any;
21
+ static set_initial_state_data(initial_state_data: any): void;
22
+ static __change_browser_url(url: any): void;
21
23
  }
22
- import TransitionTable from "./transition/TransitionTable";
23
- import ViewStateTransitionHandler from "./transition/ViewStateTransitionHandler";
24
+
@@ -1,4 +1,4 @@
1
- export default class ViewState {
1
+ export class ViewState {
2
2
  constructor(name: any);
3
3
  name: any;
4
4
  start(): void;
@@ -1,4 +1,6 @@
1
- export default class ActionSequencerBuilder {
1
+ import { ActionSequencer } from "ohzi-core";
2
+
3
+ export class ActionSequencerBuilder {
2
4
  constructor(initial_state_data: any);
3
5
  initial_state_data: any;
4
6
  from_animation_sheet(animation_data: any, current_context: any, initial_context: any): ActionSequencer;
@@ -11,4 +13,3 @@ export default class ActionSequencerBuilder {
11
13
  }[];
12
14
  from_draw_io(xml: any, context: any): ActionSequencer;
13
15
  }
14
- import ActionSequencer from "../../action_sequencer/ActionSequencer";
@@ -1,4 +1,4 @@
1
- export default class DrawIOAnimationSheet {
1
+ export class DrawIOAnimationSheet {
2
2
  parse(xml_document: any): {
3
3
  animation_tracks: {
4
4
  attribute_name: string;
@@ -1,4 +1,4 @@
1
- export default class TransitionTable {
1
+ export class TransitionTable {
2
2
  transitions: any[];
3
3
  initial_state_data: {};
4
4
  get(to_state: any, current_context: any): import("../../action_sequencer/ActionSequencer").default;
@@ -1,4 +1,6 @@
1
- export default class ViewStateTransitionHandler {
1
+ import { ViewState } from "ohzi-core/types/view_components/ViewState";
2
+
3
+ export class ViewStateTransitionHandler {
2
4
  constructor(transition_table: any);
3
5
  last_state: ViewState;
4
6
  current_state: ViewState;
@@ -12,4 +14,3 @@ export default class ViewStateTransitionHandler {
12
14
  set_state(state: any): void;
13
15
  set_initial_state_data(initial_state_data: any): void;
14
16
  }
15
- import ViewState from "../ViewState";
package/src/Primitives.js DELETED
@@ -1,13 +0,0 @@
1
- import Arrow from './primitives/Arrow';
2
- import Cube from './primitives/Cube';
3
- import HorizontalPlane from './primitives/HorizontalPlane';
4
- import Sphere from './primitives/Sphere';
5
- import VerticalPlane from './primitives/VerticalPlane';
6
-
7
- export default {
8
- Arrow: Arrow,
9
- Cube: Cube,
10
- HorizontalPlane: HorizontalPlane,
11
- Sphere: Sphere,
12
- VerticalPlane: VerticalPlane
13
- };
@@ -1,13 +0,0 @@
1
- declare namespace _default {
2
- export { Arrow };
3
- export { Cube };
4
- export { HorizontalPlane };
5
- export { Sphere };
6
- export { VerticalPlane };
7
- }
8
- export default _default;
9
- import Arrow from "./primitives/Arrow";
10
- import Cube from "./primitives/Cube";
11
- import HorizontalPlane from "./primitives/HorizontalPlane";
12
- import Sphere from "./primitives/Sphere";
13
- import VerticalPlane from "./primitives/VerticalPlane";