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.
- package/build/index.module.js +1 -1
- package/build/index.module.js.map +1 -1
- package/package.json +1 -1
- package/src/index.js +12 -2
- package/types/BaseApplication.d.ts +1 -1
- package/types/CameraManager.d.ts +7 -7
- package/types/Capabilities.d.ts +5 -7
- package/types/Configuration.d.ts +5 -7
- package/types/Debug.d.ts +36 -36
- package/types/EventManager.d.ts +41 -43
- package/types/Graphics.d.ts +35 -35
- package/types/Initializer.d.ts +3 -5
- package/types/Input.d.ts +4 -6
- package/types/OS.d.ts +12 -14
- package/types/OrthographicCamera.d.ts +1 -1
- package/types/PerspectiveCamera.d.ts +1 -1
- package/types/ReflectionPlaneContext.d.ts +5 -7
- package/types/RenderLayers.d.ts +1 -1
- package/types/RenderLoop.d.ts +1 -1
- package/types/ResourceContainer.d.ts +7 -9
- package/types/SceneManager.d.ts +9 -9
- package/types/Screen.d.ts +16 -18
- package/types/Time.d.ts +10 -12
- package/types/UI.d.ts +14 -16
- package/types/action_sequencer/ActionEvent.d.ts +1 -1
- package/types/action_sequencer/ActionInterpolator.d.ts +1 -1
- package/types/action_sequencer/ActionSequencer.d.ts +1 -1
- package/types/action_sequencer/NumberInterpolator.d.ts +2 -2
- package/types/action_sequencer/VectorInterpolator.d.ts +2 -2
- package/types/canvas_drawer/CanvasDrawer.d.ts +1 -1
- package/types/canvas_drawer/MultiLineTextDrawer.d.ts +2 -2
- package/types/canvas_drawer/SimpleTextDrawer.d.ts +2 -2
- package/types/components/AudioClip.d.ts +1 -1
- package/types/components/AxisHelper.d.ts +1 -1
- package/types/components/BaseObject.d.ts +1 -1
- package/types/components/EdgeMesh.d.ts +1 -1
- package/types/components/GeometryEdgeVisualizer.d.ts +1 -1
- package/types/components/Grid.d.ts +1 -1
- package/types/components/Line.d.ts +1 -1
- package/types/components/MultiLinePath.d.ts +1 -1
- package/types/components/MultiLineText2D.d.ts +2 -2
- package/types/components/ObjectAxis.d.ts +1 -1
- package/types/components/ObjectOrientedBoundingBox.d.ts +1 -1
- package/types/components/PlaneHelper.d.ts +1 -1
- package/types/components/Shape2D.d.ts +1 -1
- package/types/components/Shape3D.d.ts +1 -1
- package/types/components/Text2D.d.ts +3 -3
- package/types/components/UIElement.d.ts +6 -6
- package/types/components/UpdatableMaterialMesh.d.ts +1 -1
- package/types/components/WorldImage.d.ts +1 -1
- package/types/components/sdf_text/SDFText.d.ts +1 -1
- package/types/components/sdf_text/SDFTextBatch.d.ts +2 -2
- package/types/components/sdf_text/TextGlyph.d.ts +1 -1
- package/types/editor/ManipulatorHandle.d.ts +1 -1
- package/types/editor/ObjectEditor.d.ts +3 -3
- package/types/editor/ObjectManipulator.d.ts +2 -2
- package/types/editor/ObjectPicker.d.ts +1 -1
- package/types/gpu_particles/GPUParticleSystem.d.ts +1 -1
- package/types/gpu_particles/ParticleAttribute.d.ts +1 -1
- package/types/gpu_particles/ParticlePositionAttribute.d.ts +2 -2
- package/types/html_utilities/CSSAnimator.d.ts +2 -2
- package/types/html_utilities/css_animator_states/Animating.d.ts +1 -1
- package/types/html_utilities/css_animator_states/Idle.d.ts +1 -1
- package/types/index.d.ts +2 -2
- package/types/materials/AddMaterial.d.ts +2 -2
- package/types/materials/AlphaFilterMaterial.d.ts +2 -2
- package/types/materials/BaseShaderMaterial.d.ts +1 -1
- package/types/materials/BlitMaterial.d.ts +1 -1
- package/types/materials/BloomComposeMaterial.d.ts +2 -2
- package/types/materials/BoxBlurMaterial.d.ts +2 -2
- package/types/materials/ClearAlphaMaterial.d.ts +1 -1
- package/types/materials/ClearColorMaterial.d.ts +1 -1
- package/types/materials/ClearDepthNormalMaterial.d.ts +2 -2
- package/types/materials/DeferredRendererComposeMaterial.d.ts +2 -2
- package/types/materials/DepthNormalMaterial.d.ts +1 -1
- package/types/materials/DisplayNormalTextureMaterial.d.ts +2 -2
- package/types/materials/DualFilteringBlurMaterial.d.ts +2 -2
- package/types/materials/FXAAMaterial.d.ts +1 -1
- package/types/materials/GaussianBlurMaterial.d.ts +2 -2
- package/types/materials/LuminosityHighPassMaterial.d.ts +2 -2
- package/types/materials/MedianFilterMaterial.d.ts +2 -2
- package/types/materials/NormalMaterial.d.ts +1 -1
- package/types/materials/SDFScreenTextMaterial.d.ts +2 -2
- package/types/materials/SDFTextMaterial.d.ts +2 -2
- package/types/materials/SSAOComposeMaterial.d.ts +2 -2
- package/types/materials/SSAOMaterial.d.ts +2 -2
- package/types/materials/ScreenSpaceTextureMaterial.d.ts +2 -2
- package/types/materials/UIElementMaterial.d.ts +2 -2
- package/types/materials/UnrealBloomComposeMaterial.d.ts +3 -2
- package/types/materials/UnrealBlurMaterial.d.ts +2 -2
- package/types/materials/UnrealComposeMaterial.d.ts +2 -2
- package/types/materials/ViewPositionMaterial.d.ts +2 -1
- package/types/materials/deferred/DeferredPointLightMaterial.d.ts +2 -2
- package/types/materials/gpu_particles/ParticleStorageMaterial.d.ts +1 -1
- package/types/materials/gpu_particles/PositionStorageMaterial.d.ts +2 -2
- package/types/object_pool/Pool.d.ts +1 -1
- package/types/primitives/Arrow.d.ts +1 -1
- package/types/primitives/Cube.d.ts +1 -1
- package/types/primitives/HorizontalPlane.d.ts +1 -1
- package/types/primitives/Sphere.d.ts +1 -1
- package/types/primitives/VerticalPlane.d.ts +1 -1
- package/types/raycast/GroupRaycaster.d.ts +2 -2
- package/types/raycast/PlaneDragResolver.d.ts +3 -3
- package/types/raycast/PlaneRaycastResolver.d.ts +1 -1
- package/types/raycast/PlaneRaycaster.d.ts +1 -1
- package/types/raycast/RaycastResolver.d.ts +1 -1
- package/types/raycast/SurfaceDragResolver.d.ts +3 -3
- package/types/raycast/states/BaseState.d.ts +1 -1
- package/types/raycast/states/IdleState.d.ts +4 -2
- package/types/raycast/states/OnRaycastEnter.d.ts +4 -2
- package/types/raycast/states/OnRaycastExit.d.ts +3 -2
- package/types/raycast/states/OnRaycastHover.d.ts +3 -2
- package/types/render_mode/BaseRender.d.ts +1 -1
- package/types/render_mode/BloomRender.d.ts +4 -4
- package/types/render_mode/DebugNormalsRender.d.ts +3 -2
- package/types/render_mode/DeferredRender.d.ts +3 -3
- package/types/render_mode/NormalAORender.d.ts +6 -6
- package/types/render_mode/NormalRender.d.ts +3 -2
- package/types/render_mode/OutlineRender.d.ts +1 -1
- package/types/render_mode/PlanarReflectionsRender.d.ts +2 -2
- package/types/render_mode/TransparencyMixRender.d.ts +1 -1
- package/types/render_mode/UnrealBloomRender.d.ts +5 -5
- package/types/render_utilities/Blitter.d.ts +3 -2
- package/types/render_utilities/Blurrer.d.ts +3 -2
- package/types/render_utilities/DepthAndNormalsRenderer.d.ts +5 -3
- package/types/render_utilities/DualFilteringBlurrer.d.ts +5 -3
- package/types/render_utilities/GaussianBlurrer.d.ts +3 -2
- package/types/render_utilities/MedianFilter.d.ts +3 -2
- package/types/render_utilities/ViewPositionRenderer.d.ts +3 -2
- package/types/resource_loader/AbstractLoader.d.ts +1 -1
- package/types/resource_loader/AudioLoader.d.ts +3 -2
- package/types/resource_loader/BasisLoader.d.ts +3 -2
- package/types/resource_loader/CubemapLoader.d.ts +3 -2
- package/types/resource_loader/DAELoader.d.ts +3 -2
- package/types/resource_loader/DDSLoader.d.ts +3 -2
- package/types/resource_loader/FileLoader.d.ts +3 -2
- package/types/resource_loader/FontLoader.d.ts +3 -2
- package/types/resource_loader/GLTFDRACOLoader.d.ts +3 -2
- package/types/resource_loader/GLTFLoader.d.ts +1 -1
- package/types/resource_loader/HDRCubeTextureLoader.d.ts +3 -2
- package/types/resource_loader/JSONLoader.d.ts +3 -2
- package/types/resource_loader/OBJLoader.d.ts +3 -2
- package/types/resource_loader/PointArrayLoader.d.ts +3 -2
- package/types/resource_loader/RGBETextureLoader.d.ts +3 -2
- package/types/resource_loader/ResourceBatch.d.ts +1 -1
- package/types/resource_loader/SVGLoader.d.ts +3 -2
- package/types/resource_loader/TextLoader.d.ts +3 -2
- package/types/resource_loader/TextureLoader.d.ts +3 -2
- package/types/static_batcher/GeometryBatch.d.ts +1 -1
- package/types/static_batcher/GeometryBatcher.d.ts +6 -8
- package/types/ui/ui_element_position/ScreenSpacePosition.d.ts +1 -1
- package/types/ui/ui_element_position/WorldSpacePosition.d.ts +1 -1
- package/types/ui/ui_element_state/OnIdle.d.ts +4 -2
- package/types/ui/ui_element_state/OnMouseEnter.d.ts +4 -2
- package/types/ui/ui_element_state/OnMouseExit.d.ts +4 -2
- package/types/ui/ui_element_state/OnMouseHover.d.ts +3 -2
- package/types/ui/ui_element_state/UIElementState.d.ts +1 -1
- package/types/utilities/ArrayUtilities.d.ts +1 -1
- package/types/utilities/CameraUtilities.d.ts +20 -22
- package/types/utilities/EasingFunctions.d.ts +34 -36
- package/types/utilities/FrustumPointFitter.d.ts +4 -2
- package/types/utilities/GeometryUtilities.d.ts +1 -1
- package/types/utilities/ImageUtilities.d.ts +1 -1
- package/types/utilities/MathUtilities.d.ts +1 -1
- package/types/utilities/MeshSampler.d.ts +7 -9
- package/types/utilities/ModelUtilities.d.ts +9 -11
- package/types/utilities/ObjectUtilities.d.ts +1 -1
- package/types/utilities/OrthographicFrustumPointFitter.d.ts +1 -1
- package/types/utilities/PerspectiveFrustumPointFitter.d.ts +1 -1
- package/types/utilities/StringUtilities.d.ts +1 -1
- package/types/utilities/TimeUtilities.d.ts +1 -1
- package/types/utilities/Validation.d.ts +1 -1
- package/types/view_components/ApplicationView.d.ts +1 -1
- package/types/view_components/ViewComponent.d.ts +1 -1
- package/types/view_components/ViewComponentManager.d.ts +9 -11
- package/types/view_components/ViewContext.d.ts +5 -5
- package/types/view_components/ViewManager.d.ts +23 -22
- package/types/view_components/ViewState.d.ts +1 -1
- package/types/view_components/transition/ActionSequencerBuilder.d.ts +3 -2
- package/types/view_components/transition/DrawIOAnimationSheet.d.ts +1 -1
- package/types/view_components/transition/TransitionTable.d.ts +1 -1
- package/types/view_components/transition/ViewStateTransitionHandler.d.ts +3 -2
- package/src/Primitives.js +0 -13
- package/types/Primitives.d.ts +0 -13
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
2
|
-
|
|
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
|
|
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
|
-
|
|
2
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
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,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
app:
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
23
|
-
import ViewStateTransitionHandler from "./transition/ViewStateTransitionHandler";
|
|
24
|
+
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
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,6 @@
|
|
|
1
|
-
|
|
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
|
-
};
|
package/types/Primitives.d.ts
DELETED
|
@@ -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";
|