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
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -25,7 +25,6 @@ import UnrealBloomRender from './render_mode/UnrealBloomRender';
|
|
|
25
25
|
import OrthographicCamera from './OrthographicCamera';
|
|
26
26
|
import OS from './OS';
|
|
27
27
|
import PerspectiveCamera from './PerspectiveCamera';
|
|
28
|
-
import Primitives from './Primitives';
|
|
29
28
|
import RenderLoop from './RenderLoop';
|
|
30
29
|
import ResourceBatch from './resource_loader/ResourceBatch';
|
|
31
30
|
import ResourceContainer from './ResourceContainer';
|
|
@@ -40,6 +39,12 @@ import ViewManager from './view_components/ViewManager';
|
|
|
40
39
|
import ViewContext from './view_components/ViewContext';
|
|
41
40
|
import TransitionTable from './view_components/transition/TransitionTable';
|
|
42
41
|
|
|
42
|
+
import Arrow from './primitives/Arrow';
|
|
43
|
+
import Cube from './primitives/Cube';
|
|
44
|
+
import HorizontalPlane from './primitives/HorizontalPlane';
|
|
45
|
+
import Sphere from './primitives/Sphere';
|
|
46
|
+
import VerticalPlane from './primitives/VerticalPlane';
|
|
47
|
+
|
|
43
48
|
import ArrayUtilities from './utilities/ArrayUtilities';
|
|
44
49
|
import CameraUtilities from './utilities/CameraUtilities';
|
|
45
50
|
import EasingFunctions from './utilities/EasingFunctions';
|
|
@@ -106,7 +111,6 @@ export {
|
|
|
106
111
|
OrthographicCamera,
|
|
107
112
|
OS,
|
|
108
113
|
PerspectiveCamera,
|
|
109
|
-
Primitives,
|
|
110
114
|
RenderLoop,
|
|
111
115
|
ResourceBatch,
|
|
112
116
|
ResourceContainer,
|
|
@@ -141,6 +145,12 @@ export {
|
|
|
141
145
|
SDFTextBatch,
|
|
142
146
|
UpdatableMaterialMesh,
|
|
143
147
|
|
|
148
|
+
Arrow,
|
|
149
|
+
Cube,
|
|
150
|
+
HorizontalPlane,
|
|
151
|
+
Sphere,
|
|
152
|
+
VerticalPlane,
|
|
153
|
+
|
|
144
154
|
ActionSequencer,
|
|
145
155
|
ActionEvent,
|
|
146
156
|
ActionInterpolator,
|
package/types/CameraManager.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
init(): void;
|
|
5
|
-
_current:
|
|
6
|
-
set current(arg:
|
|
7
|
-
get current():
|
|
1
|
+
import { Camera } from "three";
|
|
2
|
+
|
|
3
|
+
export class CameraManager {
|
|
4
|
+
static init(): void;
|
|
5
|
+
static _current: Camera;
|
|
6
|
+
static set current(arg: Camera);
|
|
7
|
+
static get current(): Camera;
|
|
8
8
|
}
|
package/types/Capabilities.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
vertex_texture_sampler_available: boolean;
|
|
7
|
-
fp_textures_available: boolean;
|
|
1
|
+
export class Capabilities {
|
|
2
|
+
static init(): void;
|
|
3
|
+
static max_anisotropy: number;
|
|
4
|
+
static vertex_texture_sampler_available: boolean;
|
|
5
|
+
static fp_textures_available: boolean;
|
|
8
6
|
}
|
package/types/Configuration.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
app: {};
|
|
7
|
-
from_json(json: any): void;
|
|
1
|
+
export class Configuration {
|
|
2
|
+
static init(parameters?: {}): void;
|
|
3
|
+
static dpr: number;
|
|
4
|
+
static app: {};
|
|
5
|
+
static from_json(json: any): void;
|
|
8
6
|
}
|
package/types/Debug.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
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
|
-
|
|
1
|
+
import { PerspectiveCamera } from "ohzi-core";
|
|
2
|
+
import { AxisHelper } from "ohzi-core/types/components/AxisHelper";
|
|
3
|
+
import { Arrow } from "ohzi-core/types/primitives/Arrow";
|
|
4
|
+
import { Cube } from "ohzi-core/types/primitives/Cube";
|
|
5
|
+
import { Sphere } from "ohzi-core/types/primitives/Sphere";
|
|
6
|
+
|
|
7
|
+
export class Debug {
|
|
8
|
+
static init(): void;
|
|
9
|
+
static Vector3_one: any;
|
|
10
|
+
static Vector3_zero: any;
|
|
11
|
+
static canvas_renderer: any;
|
|
12
|
+
static display_texture_meshes: any[];
|
|
13
|
+
static ctx: any;
|
|
14
|
+
static scene: any;
|
|
15
|
+
static camera: PerspectiveCamera;
|
|
16
|
+
static draw_arrow(origin: any, dir: any, color?: number): Arrow
|
|
17
|
+
;
|
|
18
|
+
static draw_axis(): AxisHelper;
|
|
19
|
+
static set_debug_RT(RT: any): void;
|
|
20
|
+
static rt_debug: any;
|
|
21
|
+
static draw_rectangle(position_2d: any, width: any, height: any, color: any): void;
|
|
22
|
+
static clear(): void;
|
|
23
|
+
static draw_line_2D(from: any, to: any, color: any): void;
|
|
24
|
+
static draw_line(points: any, color?: number): any;
|
|
25
|
+
static draw_cube(pos: any, size: any, color: any): Cube;
|
|
26
|
+
static draw_oriented_cube(from: any, to: any, height?: number, color?: string, depth?: number): Cube;
|
|
27
|
+
static draw_plane(width: any, height: any, color: any): any;
|
|
28
|
+
static draw_empty_cube(pos: any, size: any, color: any): any;
|
|
29
|
+
static draw_sphere(pos: any, size: any, color: any): Sphere;
|
|
30
|
+
static draw_point_array(input_points: any, open?: boolean, color?: number): any;
|
|
31
|
+
static draw_sphere_helper(sphere: any, color: any): any;
|
|
32
|
+
static draw_math_sphere(sphere: any): void;
|
|
33
|
+
static draw_bounding_box(bb: any): void;
|
|
34
|
+
static draw_curve(curve: any, options: any): void;
|
|
35
|
+
static draw_texture(tex: any, w: any, h: any): any;
|
|
36
|
+
static render(graphics: any): void;
|
|
32
37
|
}
|
|
33
|
-
import PerspectiveCamera from "./PerspectiveCamera";
|
|
34
|
-
import Arrow from "./primitives/Arrow";
|
|
35
|
-
import AxisHelper from "./components/AxisHelper";
|
|
36
|
-
import Cube from "./primitives/Cube";
|
|
37
|
-
import Sphere from "./primitives/Sphere";
|
package/types/EventManager.d.ts
CHANGED
|
@@ -1,44 +1,42 @@
|
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
fire_on_enter_outside_navigation(state: any): void;
|
|
43
|
-
fire_on_exit_outside_navigation(state: any): void;
|
|
1
|
+
export class EventManager {
|
|
2
|
+
static init(): void;
|
|
3
|
+
static queue: {};
|
|
4
|
+
static zoom_changed_evt: string;
|
|
5
|
+
static store_clickd_evt: string;
|
|
6
|
+
static point_selected_evt: string;
|
|
7
|
+
static config_changed: string;
|
|
8
|
+
static path_substep_completed: string;
|
|
9
|
+
static path_completed: string;
|
|
10
|
+
static go_to_store_requested_evt: string;
|
|
11
|
+
static resource_loaded_evt: string;
|
|
12
|
+
static service_clicked_evt: string;
|
|
13
|
+
static unit_pos_updated_evt: string;
|
|
14
|
+
static floor_changed_evt: string;
|
|
15
|
+
static on_enter_floor_navigation: string;
|
|
16
|
+
static on_exit_floor_navigation: string;
|
|
17
|
+
static on_enter_floor_selection: string;
|
|
18
|
+
static on_exit_floor_selection: string;
|
|
19
|
+
static on_enter_outside_navigation: string;
|
|
20
|
+
static on_exit_outside_navigation: string;
|
|
21
|
+
static step_selected_evt: string;
|
|
22
|
+
static fire(event: any, payload: any): void;
|
|
23
|
+
static on(event: any, callback: any): void;
|
|
24
|
+
static fire_zoom_changed(zoom: any): void;
|
|
25
|
+
static fire_store_selected(store_id: any): void;
|
|
26
|
+
static fire_point_selected(hit_data: any): void;
|
|
27
|
+
static fire_config_changed(): void;
|
|
28
|
+
static fire_path_substep_completed(step_number: any): void;
|
|
29
|
+
static fire_path_completed(): void;
|
|
30
|
+
static fire_step_selected(step_index: any): void;
|
|
31
|
+
static fire_go_to_store_requested(store_id: any): void;
|
|
32
|
+
static fire_resource_loaded(resource: any): void;
|
|
33
|
+
static fire_service_clicked(service: any): void;
|
|
34
|
+
static fire_unit_position_updated(unit_data: any): void;
|
|
35
|
+
static fire_floor_switched(floor_id: any): void;
|
|
36
|
+
static fire_on_enter_floor_navigation(state: any): void;
|
|
37
|
+
static fire_on_exit_floor_navigation(state: any): void;
|
|
38
|
+
static fire_on_enter_floor_selection(state: any): void;
|
|
39
|
+
static fire_on_exit_floor_selection(state: any): void;
|
|
40
|
+
static fire_on_enter_outside_navigation(state: any): void;
|
|
41
|
+
static fire_on_exit_outside_navigation(state: any): void;
|
|
44
42
|
}
|
package/types/Graphics.d.ts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
get
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
dispose(): void;
|
|
1
|
+
|
|
2
|
+
export class Graphics {
|
|
3
|
+
static init(canvas: any, context_attributes: any): void;
|
|
4
|
+
static _renderer: any;
|
|
5
|
+
static blitter: Blitter;
|
|
6
|
+
static canvas: any;
|
|
7
|
+
static no_render: BaseRender;
|
|
8
|
+
static current_render_mode: any;
|
|
9
|
+
static generateDepthNormalTexture: boolean;
|
|
10
|
+
static depth_and_normals_renderer: DepthAndNormalsRenderer;
|
|
11
|
+
static is_webgl2: boolean;
|
|
12
|
+
static canvas_context: any;
|
|
13
|
+
static context_attributes: any;
|
|
14
|
+
static get dom_element(): any;
|
|
15
|
+
static get depth_normals_RT(): any;
|
|
16
|
+
static set_state(new_state: any): void;
|
|
17
|
+
static update(): void;
|
|
18
|
+
static __update_current_camera(): void;
|
|
19
|
+
static render(scene: any, camera: any, RT: any, override_mat: any): void;
|
|
20
|
+
static render_scene(scene: any): void;
|
|
21
|
+
static __apply_override_material(scene: any, mat: any): void;
|
|
22
|
+
static readback_RT(RT: any, buffer: any): void;
|
|
23
|
+
static clear(RT: any, camera: any, clear_depth: any, clear_stencil: any): void;
|
|
24
|
+
static check_for_resize(): void;
|
|
25
|
+
static on_resize(): void;
|
|
26
|
+
static material_pass(mat: any, dst: any): void;
|
|
27
|
+
static blit(src_RT: any, dst_RT: any, mat: any): void;
|
|
28
|
+
static blit_clear_with_material(dst_RT: any, mat: any): void;
|
|
29
|
+
static take_screenshot(blob_callback: any, width?: any, height?: any): void;
|
|
30
|
+
static download_screenshot(blob: any): void;
|
|
31
|
+
static dispose(): void;
|
|
33
32
|
}
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import DepthAndNormalsRenderer from "
|
|
33
|
+
import { BaseRender } from "ohzi-core";
|
|
34
|
+
import { Blitter } from "ohzi-core/types/render_utilities/Blitter";
|
|
35
|
+
import { DepthAndNormalsRenderer } from "ohzi-core/types/render_utilities/DepthAndNormalsRenderer";
|
|
36
|
+
|
package/types/Initializer.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
init(canvas: any, app_container: any, context_attributes: any): void;
|
|
5
|
-
dispose(render_loop: any): void;
|
|
1
|
+
export class Initializer {
|
|
2
|
+
static init(canvas: any, app_container: any, context_attributes: any): void;
|
|
3
|
+
static dispose(render_loop: any): void;
|
|
6
4
|
}
|
package/types/Input.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
left_mouse_button_clicked: boolean;
|
|
5
|
-
captured_NDC: {
|
|
1
|
+
export class Input {
|
|
2
|
+
static left_mouse_button_clicked: boolean;
|
|
3
|
+
static captured_NDC: {
|
|
6
4
|
x: number;
|
|
7
5
|
y: number;
|
|
8
6
|
};
|
|
9
|
-
clear(): void;
|
|
7
|
+
static clear(): void;
|
|
10
8
|
}
|
package/types/OS.d.ts
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
init(): void;
|
|
5
|
-
operating_systems: {
|
|
1
|
+
export class OS {
|
|
2
|
+
static init(): void;
|
|
3
|
+
static operating_systems: {
|
|
6
4
|
ANDROID: string;
|
|
7
5
|
IOS: string;
|
|
8
6
|
LINUX: string;
|
|
9
7
|
MAC: string;
|
|
10
8
|
WINDOWS: string;
|
|
11
9
|
};
|
|
12
|
-
get_os(): string;
|
|
13
|
-
get is_android(): boolean;
|
|
14
|
-
get is_ios(): boolean | RegExpMatchArray;
|
|
15
|
-
get is_safari(): boolean;
|
|
16
|
-
get is_ipad(): boolean;
|
|
17
|
-
get is_mobile(): boolean;
|
|
18
|
-
get is_linux(): boolean;
|
|
19
|
-
get is_mac(): boolean;
|
|
20
|
-
get is_windows(): boolean;
|
|
10
|
+
static get_os(): string;
|
|
11
|
+
static get is_android(): boolean;
|
|
12
|
+
static get is_ios(): boolean | RegExpMatchArray;
|
|
13
|
+
static get is_safari(): boolean;
|
|
14
|
+
static get is_ipad(): boolean;
|
|
15
|
+
static get is_mobile(): boolean;
|
|
16
|
+
static get is_linux(): boolean;
|
|
17
|
+
static get is_mac(): boolean;
|
|
18
|
+
static get is_windows(): boolean;
|
|
21
19
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
target_position: any;
|
|
7
|
-
set_target_geometry(geometry: any): void;
|
|
1
|
+
export class ReflectionPlaneContext {
|
|
2
|
+
static init(): void;
|
|
3
|
+
static target_geometry: any;
|
|
4
|
+
static target_position: any;
|
|
5
|
+
static set_target_geometry(geometry: any): void;
|
|
8
6
|
}
|
package/types/RenderLayers.d.ts
CHANGED
package/types/RenderLoop.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
get_resource(name: any): any;
|
|
9
|
-
get(name: any): any;
|
|
1
|
+
export class ResourceContainer {
|
|
2
|
+
static init(): void;
|
|
3
|
+
static resources: {};
|
|
4
|
+
static resources_by_url: {};
|
|
5
|
+
static set_resource(name: any, url: any, resource: any): void;
|
|
6
|
+
static get_resource(name: any): any;
|
|
7
|
+
static get(name: any): any;
|
|
10
8
|
}
|
package/types/SceneManager.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
init(): void;
|
|
5
|
-
_current:
|
|
6
|
-
add_scene(name:
|
|
7
|
-
set current(arg:
|
|
8
|
-
get current():
|
|
9
|
-
dispose(): void;
|
|
1
|
+
import { Scene } from "three";
|
|
2
|
+
|
|
3
|
+
export class SceneManager {
|
|
4
|
+
static init(): void;
|
|
5
|
+
static _current: Scene;
|
|
6
|
+
static add_scene(name: string): void;
|
|
7
|
+
static set current(arg: Scene);
|
|
8
|
+
static get current(): Scene;
|
|
9
|
+
static dispose(): void;
|
|
10
10
|
}
|
package/types/Screen.d.ts
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
get_pixel_size(): any;
|
|
18
|
-
get aspect_ratio(): number;
|
|
1
|
+
export class Screen {
|
|
2
|
+
static init(): void;
|
|
3
|
+
static width: any;
|
|
4
|
+
static height: any;
|
|
5
|
+
static position: any;
|
|
6
|
+
static render_width: number;
|
|
7
|
+
static render_height: number;
|
|
8
|
+
static width_height: any;
|
|
9
|
+
static dpr: number;
|
|
10
|
+
static pixel_size: any;
|
|
11
|
+
static update_position(x: any, y: any): void;
|
|
12
|
+
static update_size(width: any, height: any): void;
|
|
13
|
+
static apply_pixel_density_v2(vector2: any): any;
|
|
14
|
+
static apply_pixel_density(value: any): number;
|
|
15
|
+
static get_pixel_size(): any;
|
|
16
|
+
static get aspect_ratio(): number;
|
|
19
17
|
}
|
package/types/Time.d.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
get
|
|
10
|
-
|
|
11
|
-
get shader_time(): any;
|
|
12
|
-
__update(): void;
|
|
1
|
+
export class Time {
|
|
2
|
+
static init(): void;
|
|
3
|
+
static ___time: any;
|
|
4
|
+
static __delta_time: any;
|
|
5
|
+
static __elapsed_time: any;
|
|
6
|
+
static __allocated_time: any;
|
|
7
|
+
static get delta_time(): any;
|
|
8
|
+
static get elapsed_time(): any;
|
|
9
|
+
static get shader_time(): any;
|
|
10
|
+
static __update(): void;
|
|
13
11
|
}
|
package/types/UI.d.ts
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
clear(): void;
|
|
16
|
-
current_clicked_element: any;
|
|
1
|
+
export class UI {
|
|
2
|
+
static init(): void;
|
|
3
|
+
static ui_elements: any[];
|
|
4
|
+
static _tmp_normalized_pos: any;
|
|
5
|
+
static ss_scene: any;
|
|
6
|
+
static ws_scene: any;
|
|
7
|
+
static ss_camera: any;
|
|
8
|
+
static delete_element(elem: any): void;
|
|
9
|
+
static add_screen_space_element(elem: any): void;
|
|
10
|
+
static add_world_space_element(elem: any): void;
|
|
11
|
+
static update(): void;
|
|
12
|
+
static render(renderer: any): void;
|
|
13
|
+
static clear(): void;
|
|
14
|
+
static current_clicked_element: any;
|
|
17
15
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export class NumberInterpolator extends ActionInterpolator {
|
|
2
2
|
constructor(attribute_name: any, from?: number, to?: number, easing_function?: string);
|
|
3
3
|
attribute_name: any;
|
|
4
4
|
from: number;
|
|
5
5
|
to: number;
|
|
6
6
|
evaluate(t: any): any;
|
|
7
7
|
}
|
|
8
|
-
import ActionInterpolator from "./ActionInterpolator";
|
|
8
|
+
import { ActionInterpolator } from "./ActionInterpolator";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export class VectorInterpolator extends ActionInterpolator {
|
|
2
2
|
constructor(attribute_name: any, from?: number, to?: number, easing_function?: string);
|
|
3
3
|
attribute_name: any;
|
|
4
4
|
from: number;
|
|
5
5
|
to: number;
|
|
6
6
|
}
|
|
7
|
-
import ActionInterpolator from "./ActionInterpolator";
|
|
7
|
+
import { ActionInterpolator } from "./ActionInterpolator";
|