ohzi-core 13.0.0 → 13.0.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.mjs +1 -1
- package/build/index.mjs.map +1 -1
- package/build/index.module.js +2 -0
- package/build/index.module.js.map +1 -0
- package/package.json +4 -4
- package/src/CameraManager.ts +0 -2
- package/src/CustomBezierCurve.ts +0 -11
- package/src/Debug.ts +1 -2
- package/src/OS.ts +2 -0
- package/src/ResourceContainer.ts +4 -6
- package/src/SceneManager.ts +0 -1
- package/src/action_sequencer/ActionSequencer.ts +0 -1
- package/src/components/Input.ts +11 -11
- package/src/utilities/OMath.ts +1 -7
- package/types/BaseApplication.d.ts +1 -7
- package/types/CameraManager.d.ts +7 -5
- package/types/CustomBezierCurve.d.ts +0 -11
- package/types/Debug.d.ts +11 -167
- package/types/Graphics.d.ts +20 -94
- package/types/Initializer.d.ts +2 -4
- package/types/KeyboardInput.d.ts +1 -37
- package/types/OScreen.d.ts +7 -18
- package/types/OrthographicCamera.d.ts +5 -15
- package/types/PerspectiveCamera.d.ts +3 -12
- package/types/RenderLoop.d.ts +6 -120
- package/types/ResourceContainer.d.ts +10 -26
- package/types/SceneManager.d.ts +10 -10
- package/types/Screen.d.ts +4 -16
- package/types/Time.d.ts +3 -5
- package/types/action_sequencer/ActionEvent.d.ts +0 -5
- package/types/action_sequencer/ActionInterpolator.d.ts +5 -11
- package/types/action_sequencer/ActionSequencer.d.ts +4 -63
- package/types/action_sequencer/NumberInterpolator.d.ts +4 -12
- package/types/action_sequencer/VectorInterpolator.d.ts +5 -9
- package/types/canvas_drawer/CanvasDrawer.d.ts +3 -33
- package/types/canvas_drawer/MultiLineTextDrawer.d.ts +8 -13
- package/types/canvas_drawer/SimpleTextDrawer.d.ts +4 -8
- package/types/components/AxisHelper.d.ts +2 -2
- package/types/components/BaseObject.d.ts +9 -12
- package/types/components/EdgeMesh.d.ts +16 -42
- package/types/components/GeometryEdgeVisualizer.d.ts +8 -12
- package/types/components/Grid.d.ts +2 -2
- package/types/components/Input.d.ts +11 -11
- package/types/components/Line.d.ts +7 -28
- package/types/components/MultiLinePath.d.ts +8 -10
- package/types/components/MultiLineText2D.d.ts +12 -22
- package/types/components/ObjectAxis.d.ts +5 -8
- package/types/components/ObjectOrientedBoundingBox.d.ts +20 -45
- package/types/components/PlaneHelper.d.ts +7 -6
- package/types/components/Shape2D.d.ts +7 -14
- package/types/components/Shape3D.d.ts +6 -10
- package/types/components/Text2D.d.ts +6 -11
- package/types/components/UpdatableMaterialMesh.d.ts +5 -8
- package/types/components/WorldImage.d.ts +4 -10
- package/types/components/mouse_interactors/ObjectRotator.d.ts +17 -12
- package/types/components/sdf_text/SDFText.d.ts +1 -5
- package/types/components/sdf_text/SDFTextBatch.d.ts +4 -3
- package/types/data_textures/CustomDataTexture.d.ts +11 -9
- package/types/data_textures/RGBADataTexture.d.ts +4 -3
- package/types/data_textures/RGBAFloatDataTexture.d.ts +4 -3
- package/types/data_textures/RGBDataTexture.d.ts +4 -3
- package/types/data_textures/RGBFloatDataTexture.d.ts +4 -3
- package/types/gpu_particles/GPUParticleSystem.d.ts +9 -12
- package/types/gpu_particles/ParticleAttribute.d.ts +5 -4
- package/types/html_utilities/CSSAnimator.d.ts +3 -2
- package/types/loaders/AsyncAbstractLoader.d.ts +4 -22
- package/types/loaders/assets_loader/AssetLoader.d.ts +6 -4
- package/types/loaders/assets_loader/AsyncAssetsLoaderWorker.d.ts +1 -1
- package/types/loaders/assets_loader/ResourceBatch.d.ts +16 -14
- package/types/loaders/assets_loader/ResourceLoaderChecker.d.ts +9 -8
- package/types/materials/BaseShaderMaterial.d.ts +1 -1
- package/types/materials/BlitMaterial.d.ts +1 -1
- package/types/materials/BloomComposeMaterial.d.ts +5 -4
- package/types/materials/DeferredRendererComposeMaterial.d.ts +10 -7
- package/types/materials/DepthNormalMaterial.d.ts +1 -1
- package/types/materials/FXAAMaterial.d.ts +5 -3
- package/types/materials/MedianFilterMaterial.d.ts +3 -2
- package/types/materials/SDFScreenTextMaterial.d.ts +8 -7
- package/types/materials/SSAOMaterial.d.ts +2 -3
- package/types/materials/ScreenSpaceTextureMaterial.d.ts +9 -7
- package/types/materials/UnrealBlurMaterial.d.ts +5 -4
- package/types/materials/UnrealComposeMaterial.d.ts +5 -4
- package/types/materials/ViewPositionMaterial.d.ts +5 -4
- package/types/materials/deferred/DeferredPointLightMaterial.d.ts +10 -9
- package/types/materials/gpu_particles/AttributeUpdateMaterial.d.ts +8 -7
- package/types/materials/gpu_particles/BasicParticleMaterial.d.ts +5 -4
- package/types/materials/gpu_particles/PositionStorageMaterial.d.ts +5 -3
- package/types/primitives/Arrow.d.ts +5 -8
- package/types/primitives/Cube.d.ts +3 -8
- package/types/primitives/HorizontalPlane.d.ts +3 -9
- package/types/primitives/Sphere.d.ts +5 -7
- package/types/primitives/VerticalPlane.d.ts +3 -9
- package/types/raycast/GroupRaycaster.d.ts +20 -15
- package/types/raycast/PlaneDragResolver.d.ts +21 -16
- package/types/raycast/PlaneRaycastResolver.d.ts +8 -5
- package/types/raycast/PlaneRaycaster.d.ts +10 -9
- package/types/raycast/RaycastResolver.d.ts +8 -5
- package/types/raycast/SurfaceDragResolver.d.ts +19 -15
- package/types/raycast/states/BaseState.d.ts +7 -5
- package/types/raycast/states/IdleState.d.ts +7 -3
- package/types/raycast/states/OnRaycastEnter.d.ts +7 -3
- package/types/raycast/states/OnRaycastExit.d.ts +7 -3
- package/types/raycast/states/OnRaycastHover.d.ts +8 -3
- package/types/render_mode/BloomRender.d.ts +15 -12
- package/types/render_mode/DeferredRender.d.ts +15 -13
- package/types/render_mode/NormalAORender.d.ts +9 -8
- package/types/render_mode/UnrealBloomRender.d.ts +8 -7
- package/types/render_utilities/Blitter.d.ts +5 -6
- package/types/render_utilities/Blurrer.d.ts +5 -4
- package/types/render_utilities/DepthAndNormalsRenderer.d.ts +6 -5
- package/types/render_utilities/DualFilteringBlurrer.d.ts +8 -9
- package/types/render_utilities/GaussianBlurrer.d.ts +5 -3
- package/types/render_utilities/MedianFilter.d.ts +7 -6
- package/types/render_utilities/ViewPositionRenderer.d.ts +12 -10
- package/types/resource_loader/CubemapLoader.d.ts +2 -2
- package/types/resource_loader/DDSLoader.d.ts +9 -7
- package/types/resource_loader/FileLoader.d.ts +2 -2
- package/types/resource_loader/PointArrayLoader.d.ts +2 -3
- package/types/resource_loader/SVGLoader.d.ts +9 -7
- package/types/resource_loader/TextLoader.d.ts +2 -2
- package/types/scenes/AbstractScene.d.ts +5 -4
- package/types/shaders/grid/grid.tsl.d.ts +5 -2
- package/types/utilities/CameraUtilities.d.ts +2 -4
- package/types/utilities/FrustumPointFitter.d.ts +1 -2
- package/types/utilities/GeometryUtilities.d.ts +2 -2
- package/types/utilities/ImageUtilities.d.ts +1 -1
- package/types/utilities/OrthographicFrustumPointFitter.d.ts +1 -1
- package/types/utilities/PerspectiveFrustumPointFitter.d.ts +1 -2
- package/types/view_components/ApplicationView.d.ts +1 -1
- package/types/view_components/TransitionManager.d.ts +6 -4
- package/types/view_components/ViewManager.d.ts +5 -2
- package/types/view_components/transition/TransitionTable.d.ts +4 -1
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
+
import { CanvasDrawer } from './CanvasDrawer';
|
|
2
|
+
import { Vector2 } from 'three';
|
|
3
|
+
declare class MultiLineTextDrawer extends CanvasDrawer {
|
|
4
|
+
text_margin: Vector2;
|
|
5
|
+
constructor();
|
|
6
|
+
__draw(text_array: string[], ctxOptions: any, canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D): void;
|
|
7
|
+
}
|
|
8
|
+
export { MultiLineTextDrawer };
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
+
import type { Vector2 } from "three";
|
|
2
|
+
import { CanvasDrawer } from "./CanvasDrawer";
|
|
3
|
+
|
|
1
4
|
export class SimpleTextDrawer extends CanvasDrawer {
|
|
2
5
|
constructor();
|
|
3
6
|
text_margin: Vector2;
|
|
4
|
-
|
|
5
|
-
* @param {string} text
|
|
6
|
-
* @param {any} [ctxOptions]
|
|
7
|
-
* @param {HTMLCanvasElement} [canvas]
|
|
8
|
-
* @param {CanvasRenderingContext2D} [ctx]
|
|
9
|
-
*/
|
|
7
|
+
|
|
10
8
|
__draw(text: string, ctxOptions?: any, canvas?: HTMLCanvasElement, ctx?: CanvasRenderingContext2D): void;
|
|
11
9
|
}
|
|
12
|
-
import { CanvasDrawer } from "./CanvasDrawer";
|
|
13
|
-
import { Vector2 } from "three/src/math/Vector2";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { Object3D } from "three";
|
|
2
|
+
export class AxisHelper extends Object3D {
|
|
2
3
|
constructor(scale?: number);
|
|
3
4
|
update(): void;
|
|
4
5
|
dispose(): void;
|
|
5
6
|
}
|
|
6
|
-
import { Object3D } from "three/src/core/Object3D";
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
+
import type { Mesh } from 'three';
|
|
2
|
+
import { Object3D, Vector3 } from 'three';
|
|
3
|
+
declare class BaseObject extends Object3D {
|
|
4
|
+
___temp_w_pos: Vector3;
|
|
5
|
+
constructor();
|
|
6
|
+
get_world_pos(): Vector3;
|
|
7
|
+
deep_dispose(obj: Object3D | Mesh): void;
|
|
8
|
+
}
|
|
9
|
+
export { BaseObject };
|
|
@@ -1,42 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
+
import type { BufferGeometry, BufferGeometryEventMap, InterleavedBufferAttribute, NormalBufferAttributes } from 'three';
|
|
2
|
+
import { BufferAttribute, Mesh, Object3D, ShaderMaterial, Vector3 } from 'three';
|
|
3
|
+
declare class EdgeMesh extends Object3D {
|
|
4
|
+
corners_material: ShaderMaterial;
|
|
5
|
+
corners_mesh: Mesh;
|
|
6
|
+
edges_material: ShaderMaterial;
|
|
7
|
+
edges_mesh: Mesh;
|
|
8
|
+
constructor(buffer_geometry: BufferGeometry, thickness: number, color: string);
|
|
9
|
+
__get_edges(cube_geometry: BufferGeometry): Vector3[];
|
|
10
|
+
update(time: number): void;
|
|
11
|
+
__get_edges_geometry(points: Vector3[]): BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>;
|
|
12
|
+
__get_corners_geometry(geometry_vertices: BufferAttribute | InterleavedBufferAttribute): BufferGeometry;
|
|
13
|
+
set_visible(boolean: boolean): void;
|
|
14
|
+
dispose(): void;
|
|
15
|
+
}
|
|
16
|
+
export { EdgeMesh };
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
+
import type { BufferGeometry } from 'three';
|
|
2
|
+
import { Mesh, ShaderMaterial } from 'three';
|
|
3
|
+
declare class GeometryEdgeVisualizer extends Mesh {
|
|
4
|
+
material: ShaderMaterial;
|
|
5
|
+
constructor(geometry: BufferGeometry, line_color?: string | number);
|
|
6
|
+
hide_faces(): void;
|
|
7
|
+
}
|
|
8
|
+
export { GeometryEdgeVisualizer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { Mesh } from "three";
|
|
2
|
+
export class Grid extends Mesh {
|
|
2
3
|
constructor();
|
|
3
4
|
}
|
|
4
|
-
import { Mesh } from "three/src/objects/Mesh";
|
|
@@ -38,18 +38,18 @@ export interface Input {
|
|
|
38
38
|
get pointer_count(): number;
|
|
39
39
|
get pointer_is_within_bounds(): boolean;
|
|
40
40
|
pointer_is_over_element(elem: any): boolean;
|
|
41
|
-
get pointers():
|
|
42
|
-
get pointer_pos():
|
|
43
|
-
get pointer_pos_delta():
|
|
41
|
+
get pointers(): Vector2[];
|
|
42
|
+
get pointer_pos(): Vector2;
|
|
43
|
+
get pointer_pos_delta(): Vector2;
|
|
44
44
|
get NDC(): Vector2;
|
|
45
45
|
get NDC_delta(): Vector2;
|
|
46
|
-
get pointer_center():
|
|
47
|
-
get pointer_center_delta():
|
|
48
|
-
get pointer_center_NDC():
|
|
49
|
-
get pointer_center_NDC_delta():
|
|
50
|
-
get_pointer_pos(index?: number):
|
|
51
|
-
get_pointer_pos_delta(index?: number):
|
|
52
|
-
get_pointer_NDC(index?: number):
|
|
53
|
-
get_pointer_NDC_delta(index?: number):
|
|
46
|
+
get pointer_center(): Vector2;
|
|
47
|
+
get pointer_center_delta(): Vector2;
|
|
48
|
+
get pointer_center_NDC(): Vector2;
|
|
49
|
+
get pointer_center_NDC_delta(): Vector2;
|
|
50
|
+
get_pointer_pos(index?: number): Vector2;
|
|
51
|
+
get_pointer_pos_delta(index?: number): Vector2;
|
|
52
|
+
get_pointer_NDC(index?: number): Vector2;
|
|
53
|
+
get_pointer_NDC_delta(index?: number): Vector2;
|
|
54
54
|
dispose(): void;
|
|
55
55
|
}
|
|
@@ -1,42 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
1
|
+
import type { Color, ShaderMaterial, Vector3 } from "three";
|
|
2
|
+
import { Mesh } from "three";
|
|
3
|
+
export class Line extends Mesh {
|
|
5
4
|
constructor(points?: Vector3[]);
|
|
6
5
|
material: ShaderMaterial;
|
|
7
|
-
/**
|
|
8
|
-
* @param {Vector3[]} points
|
|
9
|
-
*/
|
|
10
|
-
setup(points: Vector3[]): void;
|
|
11
6
|
_length: number;
|
|
12
7
|
accumulated_length: number;
|
|
13
8
|
set thickness(arg: any);
|
|
14
9
|
get thickness(): any;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
*/
|
|
10
|
+
set color(arg: any);
|
|
11
|
+
get color(): any;
|
|
12
|
+
|
|
13
|
+
setup(points: Vector3[]): void;
|
|
20
14
|
__get_previous_position(points: Vector3[], i: number): Vector3;
|
|
21
|
-
/**
|
|
22
|
-
* @param {Vector3[]} points
|
|
23
|
-
* @param {number} i
|
|
24
|
-
* @returns {Vector3}
|
|
25
|
-
*/
|
|
26
15
|
__get_next_position(points: Vector3[], i: number): Vector3;
|
|
27
16
|
update(): void;
|
|
28
17
|
distance(): number;
|
|
29
18
|
total_length(): number;
|
|
30
19
|
dispose(): void;
|
|
31
|
-
set color(arg: any);
|
|
32
|
-
get color(): any;
|
|
33
|
-
/**
|
|
34
|
-
* @param {Color} col
|
|
35
|
-
*/
|
|
36
20
|
copy_color(col: Color): void;
|
|
37
21
|
}
|
|
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,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
paths:
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
import { Line } from "./Line";
|
|
10
|
-
import { Vector3 } from "three/src/math/Vector3";
|
|
1
|
+
import { Line } from './Line';
|
|
2
|
+
import type { Vector3 } from 'three';
|
|
3
|
+
import { Object3D } from 'three';
|
|
4
|
+
declare class MultiLinePath extends Object3D {
|
|
5
|
+
paths: Line[];
|
|
6
|
+
constructor(paths: Array<Vector3[]>);
|
|
7
|
+
}
|
|
8
|
+
export { MultiLinePath };
|
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
+
import { Text2D } from './Text2D';
|
|
2
|
+
import { Object3D, Vector2 } from 'three';
|
|
3
|
+
declare class MultiLineText2D extends Object3D {
|
|
4
|
+
text_array: Text2D[];
|
|
5
|
+
constructor(text_array: string[], font?: string, color?: string | number, pivot?: Vector2, is_static?: boolean);
|
|
6
|
+
update_text_positions(): void;
|
|
7
|
+
set texts(text_array: string[]);
|
|
8
|
+
set size(value: number);
|
|
9
|
+
get texts(): string[];
|
|
10
|
+
get size(): number;
|
|
11
|
+
}
|
|
12
|
+
export { MultiLineText2D };
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
constructor(obj: Object3D, size?: number);
|
|
7
|
-
}
|
|
8
|
-
import { Object3D } from "three/src/core/Object3D";
|
|
1
|
+
import { Object3D } from 'three';
|
|
2
|
+
declare class ObjectAxis extends Object3D {
|
|
3
|
+
constructor(obj: Object3D, size?: number);
|
|
4
|
+
}
|
|
5
|
+
export { ObjectAxis };
|
|
@@ -1,45 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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";
|
|
1
|
+
import { Quaternion, Vector3 } from 'three';
|
|
2
|
+
declare class ObjectOrientedBoundingBox {
|
|
3
|
+
axis_to_world: Quaternion;
|
|
4
|
+
bounds: Vector3[];
|
|
5
|
+
center: Vector3;
|
|
6
|
+
max: Vector3;
|
|
7
|
+
min: Vector3;
|
|
8
|
+
world_to_axis: Quaternion;
|
|
9
|
+
constructor(points: Vector3[]);
|
|
10
|
+
get_center(points: Vector3[]): Vector3;
|
|
11
|
+
box_volume(min: Vector3, max: Vector3): number;
|
|
12
|
+
getSize(): Vector3;
|
|
13
|
+
is_inside_XZ(point: Vector3): boolean;
|
|
14
|
+
closest_point_on_bounds(reference_point: Vector3): Vector3;
|
|
15
|
+
world_to_local(point: Vector3): Vector3;
|
|
16
|
+
local_to_world(point: Vector3): Vector3;
|
|
17
|
+
local_to_world_dir(direction: Vector3): Vector3;
|
|
18
|
+
get_corners(): Vector3[];
|
|
19
|
+
}
|
|
20
|
+
export { ObjectOrientedBoundingBox };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { Object3D } from 'three';
|
|
2
|
+
declare class PlaneHelper extends Object3D {
|
|
3
|
+
constructor(scale?: number);
|
|
4
|
+
update(): void;
|
|
5
|
+
dispose(): void;
|
|
6
|
+
}
|
|
7
|
+
export { PlaneHelper };
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* @param {ShapeGeometry} geometry
|
|
9
|
-
*/
|
|
10
|
-
invert_normals(geometry: ShapeGeometry): void;
|
|
11
|
-
}
|
|
12
|
-
import { Mesh } from "three/src/objects/Mesh";
|
|
13
|
-
import { ShapeGeometry } from "three/src/geometries/ShapeGeometry";
|
|
14
|
-
import { Vector2 } from "three/src/math/Vector2";
|
|
1
|
+
import type { Vector2 } from 'three';
|
|
2
|
+
import { Mesh, ShapeGeometry } from 'three';
|
|
3
|
+
declare class Shape2D extends Mesh {
|
|
4
|
+
constructor(points_2D: Vector2[], show_edges: boolean);
|
|
5
|
+
invert_normals(geometry: ShapeGeometry): void;
|
|
6
|
+
}
|
|
7
|
+
export { Shape2D };
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
constructor(points_2D: Vector2[], show_edges: boolean, height?: number);
|
|
8
|
-
}
|
|
9
|
-
import { Mesh } from "three/src/objects/Mesh";
|
|
10
|
-
import { Vector2 } from "three/src/math/Vector2";
|
|
1
|
+
import type { Vector2 } from 'three';
|
|
2
|
+
import { Mesh } from 'three';
|
|
3
|
+
declare class Shape3D extends Mesh {
|
|
4
|
+
constructor(points_2D: Vector2[], show_edges: boolean, height?: number);
|
|
5
|
+
}
|
|
6
|
+
export { Shape3D };
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
+
import type { CanvasTexture, Vector2 } from "three";
|
|
2
|
+
import type { SimpleTextDrawer } from "../canvas_drawer/SimpleTextDrawer";
|
|
3
|
+
import { WorldImage } from "./WorldImage";
|
|
4
|
+
|
|
1
5
|
export class Text2D extends WorldImage {
|
|
2
|
-
/**
|
|
3
|
-
* @param {string} text
|
|
4
|
-
* @param {string} font
|
|
5
|
-
* @param {string | Number} color
|
|
6
|
-
* @param {Vector2} pivot
|
|
7
|
-
* @param {boolean} [is_static]
|
|
8
|
-
*/
|
|
9
6
|
constructor(text: string, font: string, color: string | number, pivot: Vector2, is_static?: boolean);
|
|
7
|
+
|
|
10
8
|
simple_text_drawer: SimpleTextDrawer;
|
|
11
|
-
canvas_texture:
|
|
9
|
+
canvas_texture: CanvasTexture;
|
|
12
10
|
draw_settings: {
|
|
13
11
|
font: string;
|
|
14
12
|
font_color: string | number;
|
|
@@ -16,6 +14,3 @@ export class Text2D extends WorldImage {
|
|
|
16
14
|
set text(arg: string);
|
|
17
15
|
get text(): string;
|
|
18
16
|
}
|
|
19
|
-
import { WorldImage } from "./WorldImage";
|
|
20
|
-
import { SimpleTextDrawer } from "../canvas_drawer/SimpleTextDrawer";
|
|
21
|
-
import { Vector2 } from "three/src/math/Vector2";
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
1
|
+
import type { BufferGeometry, Material } from "three";
|
|
2
|
+
import { Mesh } from "three";
|
|
3
|
+
|
|
4
|
+
export class UpdatableMaterialMesh extends Mesh {
|
|
6
5
|
constructor(geometry: BufferGeometry, material: Material);
|
|
7
6
|
material: Material;
|
|
7
|
+
|
|
8
8
|
onBeforeRender: () => void;
|
|
9
9
|
}
|
|
10
|
-
import { BufferGeometry } from "three/src/core/BufferGeometry";
|
|
11
|
-
import { Material } from "three/src/materials/Material";
|
|
12
|
-
import { Mesh } from "three/src/objects/Mesh";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
1
|
+
import type { ShaderMaterial, Texture, Vector2, Vector3 } from "three";
|
|
2
|
+
import { Mesh } from "three";
|
|
3
|
+
|
|
4
|
+
export class WorldImage extends Mesh {
|
|
6
5
|
constructor(texture: Texture, pivot?: Vector2);
|
|
7
6
|
current_scale: number;
|
|
8
7
|
tmp_bb_size: Vector3;
|
|
@@ -16,8 +15,3 @@ export class WorldImage extends Mesh<import("three").BufferGeometry<import("thre
|
|
|
16
15
|
get opacity(): any;
|
|
17
16
|
dispose(): void;
|
|
18
17
|
}
|
|
19
|
-
import { Mesh } from "three/src/objects/Mesh";
|
|
20
|
-
import { Vector3 } from "three/src/math/Vector3";
|
|
21
|
-
import { ShaderMaterial } from "three/src/materials/ShaderMaterial";
|
|
22
|
-
import { Texture } from "three/src/textures/Texture";
|
|
23
|
-
import { Vector2 } from "three/src/math/Vector2";
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { GroupRaycaster } from '../../raycast/GroupRaycaster';
|
|
2
|
+
import { RaycastResolver } from '../../raycast/RaycastResolver';
|
|
3
|
+
import type { Object3D } from 'three';
|
|
4
|
+
import type { Input } from '../Input';
|
|
5
|
+
declare class ObjectRotator extends RaycastResolver {
|
|
6
|
+
group_raycaster: GroupRaycaster;
|
|
7
|
+
input: Input;
|
|
8
|
+
is_mouse_over: boolean;
|
|
9
|
+
object: Object3D;
|
|
10
|
+
rotation_active: boolean;
|
|
11
|
+
constructor(object: Object3D, input: Input);
|
|
12
|
+
on_enter(): void;
|
|
13
|
+
on_exit(): void;
|
|
14
|
+
is_active(): boolean;
|
|
15
|
+
update(): void;
|
|
16
|
+
}
|
|
17
|
+
export { ObjectRotator };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Color, Matrix4, Quaternion, Vector2, Vector3 } from "three";
|
|
1
2
|
export class SDFText {
|
|
2
3
|
constructor(glyph_layout: any, text?: string);
|
|
3
4
|
glyph_layout: any;
|
|
@@ -28,8 +29,3 @@ export class SDFText {
|
|
|
28
29
|
update_glyphs(): void;
|
|
29
30
|
__generate_glyphs(text: any): void;
|
|
30
31
|
}
|
|
31
|
-
import { Vector3 } from "three/src/math/Vector3";
|
|
32
|
-
import { Quaternion } from "three/src/math/Quaternion";
|
|
33
|
-
import { Matrix4 } from "three/src/math/Matrix4";
|
|
34
|
-
import { Color } from "three/src/math/Color";
|
|
35
|
-
import { Vector2 } from "three/src/math/Vector2";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { Mesh } from "three";
|
|
2
|
+
import type { SDFText } from "./SDFText";
|
|
3
|
+
export class SDFTextBatch extends Mesh {
|
|
2
4
|
constructor(font_layout: any, atlas_texture: any);
|
|
3
5
|
text_elements: any[];
|
|
4
6
|
font_layout: any;
|
|
7
|
+
|
|
5
8
|
set_boldness(value: any): void;
|
|
6
9
|
add_text(text_str: any): SDFText;
|
|
7
10
|
remove_text(text_elem: any): void;
|
|
8
11
|
update(force_update: any): void;
|
|
9
12
|
dispose(): void;
|
|
10
13
|
}
|
|
11
|
-
import { Mesh } from "three/src/objects/Mesh";
|
|
12
|
-
import { SDFText } from "./SDFText";
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { DataTexture } from 'three';
|
|
2
|
+
declare class CustomDataTexture extends DataTexture {
|
|
3
|
+
data: any;
|
|
3
4
|
multiplier: number;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
constructor(data: any, width: number, height: number, format: any, type?: any);
|
|
6
|
+
set_rgba(index: number, r: number, g: number, b: number, a: number): void;
|
|
7
|
+
set_rgb(index: number, r: number, g: number, b: number): void;
|
|
8
|
+
set_r(index: number, value: number): void;
|
|
9
|
+
set_g(index: number, value: number): void;
|
|
10
|
+
set_b(index: number, value: number): void;
|
|
11
|
+
set_a(index: number, value: number): void;
|
|
10
12
|
}
|
|
11
|
-
|
|
13
|
+
export { CustomDataTexture };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { CustomDataTexture } from './CustomDataTexture';
|
|
2
|
+
declare class RGBADataTexture extends CustomDataTexture {
|
|
3
|
+
constructor(width: number, height: number);
|
|
3
4
|
}
|
|
4
|
-
|
|
5
|
+
export { RGBADataTexture };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { CustomDataTexture } from './CustomDataTexture';
|
|
2
|
+
declare class RGBAFloatDataTexture extends CustomDataTexture {
|
|
3
|
+
constructor(width: number, height: number);
|
|
3
4
|
}
|
|
4
|
-
|
|
5
|
+
export { RGBAFloatDataTexture };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { CustomDataTexture } from './CustomDataTexture';
|
|
2
|
+
declare class RGBDataTexture extends CustomDataTexture {
|
|
3
|
+
constructor(width: number, height: number);
|
|
3
4
|
}
|
|
4
|
-
|
|
5
|
+
export { RGBDataTexture };
|