ohzi-core 12.2.0 → 12.2.1
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 +2 -1
- package/src/BaseApplication.js +11 -2
- package/src/Browser.js +10 -3
- package/src/CameraManager.js +5 -0
- package/src/Capabilities.js +1 -0
- package/src/CustomBezierCurve.js +12 -0
- package/src/Debug.js +99 -5
- package/src/Graphics.js +86 -6
- package/src/Initializer.js +5 -0
- package/src/KeyboardInput.js +40 -1
- package/src/OS.js +1 -1
- package/src/OScreen.js +19 -4
- package/src/OrthographicCamera.js +13 -0
- package/src/PerspectiveCamera.js +11 -0
- package/src/ReflectionPlaneContext.js +5 -1
- package/src/RenderLayers.js +1 -1
- package/src/RenderLoop.js +9 -0
- package/src/RenderOrder.js +1 -1
- package/src/ResourceContainer.js +21 -0
- package/src/SceneManager.js +14 -4
- package/src/Screen.js +71 -0
- package/src/Time.js +4 -0
- package/src/UI.js +16 -1
- package/src/action_sequencer/ActionEvent.js +6 -1
- package/src/action_sequencer/ActionInterpolator.js +16 -2
- package/src/action_sequencer/ActionSequencer.js +65 -2
- package/src/action_sequencer/NumberInterpolator.js +15 -0
- package/src/action_sequencer/VectorInterpolator.js +13 -1
- package/src/blitter_index.js +1 -0
- package/src/canvas_drawer/CanvasDrawer.js +37 -4
- package/src/canvas_drawer/MultiLineTextDrawer.js +8 -1
- package/src/canvas_drawer/SimpleTextDrawer.js +7 -1
- package/src/components/AudioClip.js +11 -1
- package/src/components/AxisHelper.js +1 -1
- package/src/components/BaseObject.js +8 -5
- package/src/components/EdgeMesh.js +30 -2
- package/src/components/GeometryEdgeVisualizer.js +10 -1
- package/src/components/Grid.js +4 -0
- package/src/components/Line.js +31 -7
- package/src/components/MultiLinePath.js +9 -5
- package/src/components/MultiLineText2D.js +13 -2
- package/src/components/ObjectAxis.js +5 -0
- package/src/components/ObjectOrientedBoundingBox.js +26 -1
- package/src/components/PlaneHelper.js +1 -1
- package/src/components/Shape2D.js +11 -3
- package/src/components/Shape3D.js +10 -4
- package/src/components/Text2D.js +11 -3
- package/src/components/UIElement.js +40 -4
- package/src/components/UpdatableMaterialMesh.js +11 -3
- package/src/components/WorldImage.js +10 -2
- package/src/index.js +3 -1
- package/src/loaders/AsyncAbstractLoader.js +16 -0
- package/src/loaders/AsyncObjectsLoader.js +6 -0
- package/src/primitives/Arrow.js +6 -0
- package/src/primitives/Cube.js +6 -1
- package/src/primitives/HorizontalPlane.js +8 -1
- package/src/primitives/Sphere.js +7 -0
- package/src/primitives/VerticalPlane.js +8 -1
- package/src/ui/ui_element_state/OnIdle.js +5 -0
- package/src/ui/ui_element_state/OnMouseEnter.js +11 -0
- package/src/ui/ui_element_state/OnMouseExit.js +5 -0
- package/src/ui/ui_element_state/OnMouseHover.js +13 -0
- package/src/ui/ui_element_state/UIElementState.js +17 -3
- package/src/utilities/EasingFunctions.js +5 -0
- package/types/BaseApplication.d.ts +18 -11
- package/types/Browser.d.ts +20 -19
- package/types/CameraManager.d.ts +14 -13
- package/types/Capabilities.d.ts +8 -8
- package/types/CustomBezierCurve.d.ts +19 -7
- package/types/Debug.d.ts +198 -37
- package/types/Graphics.d.ts +143 -61
- package/types/Initializer.d.ts +10 -6
- package/types/KeyboardInput.d.ts +65 -20
- package/types/OS.d.ts +20 -20
- package/types/OScreen.d.ts +37 -22
- package/types/OrthographicCamera.d.ts +20 -6
- package/types/PerspectiveCamera.d.ts +18 -6
- package/types/ReflectionPlaneContext.d.ts +13 -8
- package/types/RenderLayers.d.ts +6 -6
- package/types/RenderLoop.d.ts +132 -14
- package/types/RenderOrder.d.ts +8 -8
- package/types/ResourceContainer.d.ts +29 -10
- package/types/SceneManager.d.ts +15 -12
- package/types/Screen.d.ts +27 -0
- package/types/Time.d.ts +29 -24
- package/types/UI.d.ts +92 -18
- package/types/action_sequencer/ActionEvent.d.ts +12 -7
- package/types/action_sequencer/ActionInterpolator.d.ts +18 -5
- package/types/action_sequencer/ActionSequencer.d.ts +104 -36
- package/types/action_sequencer/NumberInterpolator.d.ts +18 -9
- package/types/action_sequencer/VectorInterpolator.d.ts +13 -7
- package/types/blitter_index.d.ts +6 -6
- package/types/canvas_drawer/CanvasDrawer.d.ts +51 -13
- package/types/canvas_drawer/MultiLineTextDrawer.d.ts +13 -5
- package/types/canvas_drawer/SimpleTextDrawer.d.ts +13 -6
- package/types/components/AudioClip.d.ts +25 -13
- package/types/components/AxisHelper.d.ts +6 -6
- package/types/components/BaseObject.d.ts +12 -5
- package/types/components/EdgeMesh.d.ts +42 -13
- package/types/components/GeometryEdgeVisualizer.d.ts +12 -4
- package/types/components/Grid.d.ts +4 -2
- package/types/components/Line.d.ts +42 -16
- package/types/components/MultiLinePath.d.ts +10 -4
- package/types/components/MultiLineText2D.d.ts +22 -10
- package/types/components/ObjectAxis.d.ts +8 -3
- package/types/components/ObjectOrientedBoundingBox.d.ts +45 -18
- package/types/components/PlaneHelper.d.ts +6 -6
- package/types/components/Shape2D.d.ts +14 -4
- package/types/components/Shape3D.d.ts +10 -3
- package/types/components/Text2D.d.ts +21 -13
- package/types/components/UIElement.d.ts +87 -52
- package/types/components/UpdatableMaterialMesh.d.ts +12 -4
- package/types/components/WorldImage.d.ts +23 -13
- package/types/components/mouse_interactors/ObjectRotator.d.ts +12 -0
- package/types/components/sdf_text/SDFText.d.ts +35 -30
- package/types/components/sdf_text/SDFTextBatch.d.ts +12 -12
- package/types/components/sdf_text/TextGlyph.d.ts +8 -6
- package/types/data_textures/CustomDataTexture.d.ts +11 -11
- package/types/data_textures/RGBADataTexture.d.ts +4 -4
- package/types/data_textures/RGBAFloatDataTexture.d.ts +4 -4
- package/types/data_textures/RGBDataTexture.d.ts +4 -4
- package/types/data_textures/RGBFloatDataTexture.d.ts +4 -4
- package/types/editor/ManipulatorHandle.d.ts +23 -14
- package/types/editor/ObjectEditor.d.ts +18 -16
- package/types/editor/ObjectManipulator.d.ts +23 -19
- package/types/editor/ObjectPicker.d.ts +19 -16
- package/types/gpu_particles/GPUParticleSystem.d.ts +22 -15
- package/types/gpu_particles/ParticleAttribute.d.ts +19 -18
- package/types/gpu_particles/ParticlePositionAttribute.d.ts +6 -6
- package/types/html_utilities/CSSAnimator.d.ts +31 -31
- package/types/html_utilities/css_animator_states/Animating.d.ts +8 -8
- package/types/html_utilities/css_animator_states/Idle.d.ts +6 -6
- package/types/index.d.ts +110 -108
- package/types/loaders/AsyncAbstractLoader.d.ts +41 -27
- package/types/loaders/AsyncAudiosLoader.d.ts +6 -5
- package/types/loaders/AsyncObjectsLoader.d.ts +6 -6
- package/types/loaders/AsyncTexturesLoader.d.ts +9 -8
- package/types/loaders/assets_loader/AssetLoader.d.ts +4 -0
- package/types/loaders/assets_loader/AsyncAssetsLoaderWorker.d.ts +1 -0
- package/types/loaders/assets_loader/ResourceBatch.d.ts +14 -0
- package/types/loaders/assets_loader/ResourceContainer.d.ts +9 -0
- package/types/loaders/assets_loader/ResourceLoaderChecker.d.ts +8 -0
- package/types/materials/AddMaterial.d.ts +5 -5
- package/types/materials/AlphaFilterMaterial.d.ts +6 -6
- package/types/materials/BaseShaderMaterial.d.ts +4 -3
- package/types/materials/BlitMaterial.d.ts +4 -3
- package/types/materials/BloomComposeMaterial.d.ts +4 -7
- package/types/materials/BoxBlurMaterial.d.ts +4 -4
- package/types/materials/ClearAlphaMaterial.d.ts +3 -3
- package/types/materials/ClearColorMaterial.d.ts +7 -7
- package/types/materials/ClearDepthNormalMaterial.d.ts +4 -4
- package/types/materials/DeferredRendererComposeMaterial.d.ts +7 -7
- package/types/materials/DepthNormalMaterial.d.ts +6 -4
- package/types/materials/DisplayNormalTextureMaterial.d.ts +4 -4
- package/types/materials/DualFilteringBlurMaterial.d.ts +4 -4
- package/types/materials/FXAAMaterial.d.ts +3 -3
- package/types/materials/GaussianBlurMaterial.d.ts +6 -6
- package/types/materials/LuminosityHighPassMaterial.d.ts +4 -4
- package/types/materials/MedianFilterMaterial.d.ts +7 -6
- package/types/materials/NormalMaterial.d.ts +4 -2
- package/types/materials/SDFScreenTextMaterial.d.ts +9 -11
- package/types/materials/SDFTextMaterial.d.ts +10 -12
- package/types/materials/SSAOComposeMaterial.d.ts +4 -4
- package/types/materials/SSAOMaterial.d.ts +8 -6
- package/types/materials/ScreenSpaceTextureMaterial.d.ts +7 -7
- package/types/materials/UIElementMaterial.d.ts +4 -7
- package/types/materials/UnrealBloomComposeMaterial.d.ts +16 -16
- package/types/materials/UnrealBlurMaterial.d.ts +4 -4
- package/types/materials/UnrealComposeMaterial.d.ts +4 -4
- package/types/materials/ViewPositionMaterial.d.ts +4 -3
- package/types/materials/deferred/DeferredPointLightMaterial.d.ts +9 -10
- package/types/materials/gpu_particles/AttributeUpdateMaterial.d.ts +7 -0
- package/types/materials/gpu_particles/BasicParticleMaterial.d.ts +4 -0
- package/types/materials/gpu_particles/ParticleStorageMaterial.d.ts +4 -2
- package/types/materials/gpu_particles/PositionStorageMaterial.d.ts +3 -4
- package/types/object_pool/Pool.d.ts +10 -10
- package/types/primitives/Arrow.d.ts +15 -8
- package/types/primitives/Cube.d.ts +10 -3
- package/types/primitives/HorizontalPlane.d.ts +11 -3
- package/types/primitives/Sphere.d.ts +11 -3
- package/types/primitives/VerticalPlane.d.ts +11 -3
- package/types/raycast/GroupRaycaster.d.ts +15 -13
- package/types/raycast/PlaneDragResolver.d.ts +16 -15
- package/types/raycast/PlaneRaycastResolver.d.ts +5 -5
- package/types/raycast/PlaneRaycaster.d.ts +9 -7
- package/types/raycast/RaycastResolver.d.ts +5 -5
- package/types/raycast/SurfaceDragResolver.d.ts +15 -13
- package/types/raycast/states/BaseState.d.ts +5 -5
- package/types/raycast/states/IdleState.d.ts +3 -5
- package/types/raycast/states/OnRaycastEnter.d.ts +3 -5
- package/types/raycast/states/OnRaycastExit.d.ts +3 -4
- package/types/raycast/states/OnRaycastHover.d.ts +3 -5
- package/types/render_mode/BaseRender.d.ts +7 -7
- package/types/render_mode/BloomRender.d.ts +12 -10
- package/types/render_mode/DebugNormalsRender.d.ts +3 -3
- package/types/render_mode/DeferredRender.d.ts +13 -9
- package/types/render_mode/NormalAORender.d.ts +18 -17
- package/types/render_mode/NormalRender.d.ts +3 -3
- package/types/render_mode/OutlineRender.d.ts +25 -20
- package/types/render_mode/PlanarReflectionsRender.d.ts +19 -13
- package/types/render_mode/UnrealBloomRender.d.ts +21 -20
- package/types/render_mode/VRRender.d.ts +4 -4
- package/types/render_utilities/Blitter.d.ts +19 -15
- package/types/render_utilities/Blurrer.d.ts +9 -8
- package/types/render_utilities/DepthAndNormalsRenderer.d.ts +11 -10
- package/types/render_utilities/DualFilteringBlurrer.d.ts +18 -17
- package/types/render_utilities/GaussianBlurrer.d.ts +27 -26
- package/types/render_utilities/MedianFilter.d.ts +11 -9
- package/types/render_utilities/ViewPositionRenderer.d.ts +10 -9
- package/types/resource_loader/AbstractLoader.d.ts +21 -21
- package/types/resource_loader/AsyncTextureLoader.d.ts +11 -11
- package/types/resource_loader/AudioLoader.d.ts +9 -9
- package/types/resource_loader/BasisLoader.d.ts +6 -6
- package/types/resource_loader/CubemapLoader.d.ts +8 -7
- package/types/resource_loader/DAELoader.d.ts +7 -6
- package/types/resource_loader/DDSLoader.d.ts +7 -6
- package/types/resource_loader/FileLoader.d.ts +7 -6
- package/types/resource_loader/FontLoader.d.ts +7 -6
- package/types/resource_loader/GLTFDRACOLoader.d.ts +7 -6
- package/types/resource_loader/GLTFLoader.d.ts +7 -6
- package/types/resource_loader/HDRCubeTextureLoader.d.ts +8 -7
- package/types/resource_loader/JSONLoader.d.ts +5 -4
- package/types/resource_loader/OBJLoader.d.ts +7 -6
- package/types/resource_loader/PointArrayLoader.d.ts +9 -7
- package/types/resource_loader/RGBETextureLoader.d.ts +7 -6
- package/types/resource_loader/ResourceBatch.d.ts +13 -13
- package/types/resource_loader/SVGLoader.d.ts +7 -6
- package/types/resource_loader/TextLoader.d.ts +7 -6
- package/types/resource_loader/TextureLoader.d.ts +4 -4
- package/types/resource_loader/VideoLoader.d.ts +4 -4
- package/types/scenes/AbstractScene.d.ts +32 -32
- package/types/scenes/loading_states/CompilatorManager.d.ts +8 -8
- package/types/scenes/loading_states/HighQualityLoadingState.d.ts +3 -3
- package/types/scenes/loading_states/LoadingState.d.ts +31 -31
- package/types/scenes/loading_states/RegularLoadingState.d.ts +5 -5
- package/types/static_batcher/BatchedMesh.d.ts +16 -15
- package/types/static_batcher/GeometryBatch.d.ts +41 -37
- package/types/static_batcher/GeometryBatcher.d.ts +9 -9
- package/types/static_batcher/MeshBatcher.d.ts +5 -5
- package/types/ui/ui_element_position/ScreenSpacePosition.d.ts +5 -4
- package/types/ui/ui_element_position/WorldSpacePosition.d.ts +7 -5
- package/types/ui/ui_element_state/OnIdle.d.ts +9 -3
- package/types/ui/ui_element_state/OnMouseEnter.d.ts +3 -3
- package/types/ui/ui_element_state/OnMouseExit.d.ts +3 -3
- package/types/ui/ui_element_state/OnMouseHover.d.ts +8 -4
- package/types/ui/ui_element_state/UIElementState.d.ts +17 -5
- package/types/utilities/ArrayUtilities.d.ts +7 -7
- package/types/utilities/CameraUtilities.d.ts +40 -36
- package/types/utilities/EasingFunctions.d.ts +36 -35
- package/types/utilities/FrustumPointFitter.d.ts +14 -14
- package/types/utilities/GeometryUtilities.d.ts +5 -4
- package/types/utilities/HTMLUtilities.d.ts +6 -6
- package/types/utilities/ImageUtilities.d.ts +5 -4
- package/types/utilities/MeshSampler.d.ts +20 -20
- package/types/utilities/ModelUtilities.d.ts +15 -15
- package/types/utilities/OMath.d.ts +21 -21
- package/types/utilities/ObjectUtilities.d.ts +7 -7
- package/types/utilities/OrthographicFrustumPointFitter.d.ts +8 -7
- package/types/utilities/PerspectiveFrustumPointFitter.d.ts +14 -12
- package/types/utilities/StringUtilities.d.ts +6 -6
- package/types/utilities/TimeUtilities.d.ts +3 -3
- package/types/utilities/Validation.d.ts +6 -6
- package/types/view_components/ApplicationView.d.ts +13 -13
- package/types/view_components/TransitionManager.d.ts +20 -20
- package/types/view_components/ViewComponent.d.ts +15 -15
- package/types/view_components/ViewComponentManager.d.ts +13 -13
- package/types/view_components/ViewManager.d.ts +22 -23
- package/types/view_components/ViewState.d.ts +14 -14
- package/types/view_components/transition/ActionSequencerBuilder.d.ts +16 -16
- package/types/view_components/transition/DrawIOAnimationSheet.d.ts +17 -17
- package/types/view_components/transition/TransitionTable.d.ts +8 -8
- package/types/view_components/transition/ViewStateTransitionHandler.d.ts +19 -19
|
@@ -1,30 +1,35 @@
|
|
|
1
|
-
export class SDFText {
|
|
2
|
-
constructor(glyph_layout: any, text?: string);
|
|
3
|
-
glyph_layout: any;
|
|
4
|
-
glyphs: any[];
|
|
5
|
-
glyph_is_dirty: boolean;
|
|
6
|
-
matrix_is_dirty: boolean;
|
|
7
|
-
color_is_dirty: boolean;
|
|
8
|
-
position:
|
|
9
|
-
quaternion:
|
|
10
|
-
scale:
|
|
11
|
-
matrix:
|
|
12
|
-
color:
|
|
13
|
-
pivot_point:
|
|
14
|
-
__opacity: number;
|
|
15
|
-
__text: string;
|
|
16
|
-
set text(arg: string);
|
|
17
|
-
get text(): string;
|
|
18
|
-
update_matrix(): void;
|
|
19
|
-
clear_glyph_dirty(): void;
|
|
20
|
-
clear_color_dirty(): void;
|
|
21
|
-
set_rotation(orientation?: number, tilt?: number): void;
|
|
22
|
-
set_position(pos: any): void;
|
|
23
|
-
set_size(size: any): void;
|
|
24
|
-
set_color(col: any): void;
|
|
25
|
-
set_pivot(pivot: any): void;
|
|
26
|
-
set opacity(arg: number);
|
|
27
|
-
get opacity(): number;
|
|
28
|
-
update_glyphs(): void;
|
|
29
|
-
__generate_glyphs(text: any): void;
|
|
30
|
-
}
|
|
1
|
+
export class SDFText {
|
|
2
|
+
constructor(glyph_layout: any, text?: string);
|
|
3
|
+
glyph_layout: any;
|
|
4
|
+
glyphs: any[];
|
|
5
|
+
glyph_is_dirty: boolean;
|
|
6
|
+
matrix_is_dirty: boolean;
|
|
7
|
+
color_is_dirty: boolean;
|
|
8
|
+
position: Vector3;
|
|
9
|
+
quaternion: Quaternion;
|
|
10
|
+
scale: Vector3;
|
|
11
|
+
matrix: Matrix4;
|
|
12
|
+
color: Color;
|
|
13
|
+
pivot_point: Vector2;
|
|
14
|
+
__opacity: number;
|
|
15
|
+
__text: string;
|
|
16
|
+
set text(arg: string);
|
|
17
|
+
get text(): string;
|
|
18
|
+
update_matrix(): void;
|
|
19
|
+
clear_glyph_dirty(): void;
|
|
20
|
+
clear_color_dirty(): void;
|
|
21
|
+
set_rotation(orientation?: number, tilt?: number): void;
|
|
22
|
+
set_position(pos: any): void;
|
|
23
|
+
set_size(size: any): void;
|
|
24
|
+
set_color(col: any): void;
|
|
25
|
+
set_pivot(pivot: any): void;
|
|
26
|
+
set opacity(arg: number);
|
|
27
|
+
get opacity(): number;
|
|
28
|
+
update_glyphs(): void;
|
|
29
|
+
__generate_glyphs(text: any): void;
|
|
30
|
+
}
|
|
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,12 @@
|
|
|
1
|
-
export class SDFTextBatch {
|
|
2
|
-
constructor(font_layout: any, atlas_texture: any);
|
|
3
|
-
text_elements: any[];
|
|
4
|
-
font_layout: any;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
import { SDFText } from "./SDFText";
|
|
1
|
+
export class SDFTextBatch extends Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap> {
|
|
2
|
+
constructor(font_layout: any, atlas_texture: any);
|
|
3
|
+
text_elements: any[];
|
|
4
|
+
font_layout: any;
|
|
5
|
+
set_boldness(value: any): void;
|
|
6
|
+
add_text(text_str: any): SDFText;
|
|
7
|
+
remove_text(text_elem: any): void;
|
|
8
|
+
update(force_update: any): void;
|
|
9
|
+
dispose(): void;
|
|
10
|
+
}
|
|
11
|
+
import { Mesh } from "three/src/objects/Mesh";
|
|
12
|
+
import { SDFText } from "./SDFText";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export class TextGlyph {
|
|
2
|
-
constructor(offset: any, plane_bounds: any, atlas_bounds: any);
|
|
3
|
-
scale:
|
|
4
|
-
position:
|
|
5
|
-
atlas_bounds:
|
|
6
|
-
}
|
|
1
|
+
export class TextGlyph {
|
|
2
|
+
constructor(offset: any, plane_bounds: any, atlas_bounds: any);
|
|
3
|
+
scale: Vector2;
|
|
4
|
+
position: Vector2;
|
|
5
|
+
atlas_bounds: Vector4;
|
|
6
|
+
}
|
|
7
|
+
import { Vector2 } from "three/src/math/Vector2";
|
|
8
|
+
import { Vector4 } from "three/src/math/Vector4";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export class CustomDataTexture {
|
|
2
|
-
constructor(data: any, width: any, height: any, format: any, type: any);
|
|
3
|
-
multiplier: number;
|
|
4
|
-
set_rgba(index: any, r: any, g: any, b: any, a: any): void;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
1
|
+
export class CustomDataTexture extends DataTexture {
|
|
2
|
+
constructor(data: any, width: any, height: any, format: any, type: any);
|
|
3
|
+
multiplier: number;
|
|
4
|
+
set_rgba(index: any, r: any, g: any, b: any, a: any): void;
|
|
5
|
+
set_rgb(index: any, r: any, g: any, b: any): void;
|
|
6
|
+
set_r(index: any, value: any): void;
|
|
7
|
+
set_g(index: any, value: any): void;
|
|
8
|
+
set_b(index: any, value: any): void;
|
|
9
|
+
set_a(index: any, value: any): void;
|
|
10
|
+
}
|
|
11
|
+
import { DataTexture } from "three/src/textures/DataTexture";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class RGBADataTexture extends CustomDataTexture {
|
|
2
|
-
constructor(width: any, height: any);
|
|
3
|
-
}
|
|
4
|
-
import { CustomDataTexture } from "./CustomDataTexture";
|
|
1
|
+
export class RGBADataTexture extends CustomDataTexture {
|
|
2
|
+
constructor(width: any, height: any);
|
|
3
|
+
}
|
|
4
|
+
import { CustomDataTexture } from "./CustomDataTexture";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class RGBAFloatDataTexture extends CustomDataTexture {
|
|
2
|
-
constructor(width: any, height: any);
|
|
3
|
-
}
|
|
4
|
-
import { CustomDataTexture } from "./CustomDataTexture";
|
|
1
|
+
export class RGBAFloatDataTexture extends CustomDataTexture {
|
|
2
|
+
constructor(width: any, height: any);
|
|
3
|
+
}
|
|
4
|
+
import { CustomDataTexture } from "./CustomDataTexture";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class RGBDataTexture extends CustomDataTexture {
|
|
2
|
-
constructor(width: any, height: any);
|
|
3
|
-
}
|
|
4
|
-
import { CustomDataTexture } from "./CustomDataTexture";
|
|
1
|
+
export class RGBDataTexture extends CustomDataTexture {
|
|
2
|
+
constructor(width: any, height: any);
|
|
3
|
+
}
|
|
4
|
+
import { CustomDataTexture } from "./CustomDataTexture";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class RGBFloatDataTexture extends CustomDataTexture {
|
|
2
|
-
constructor(width: any, height: any);
|
|
3
|
-
}
|
|
4
|
-
import { CustomDataTexture } from "./CustomDataTexture";
|
|
1
|
+
export class RGBFloatDataTexture extends CustomDataTexture {
|
|
2
|
+
constructor(width: any, height: any);
|
|
3
|
+
}
|
|
4
|
+
import { CustomDataTexture } from "./CustomDataTexture";
|
|
@@ -1,14 +1,23 @@
|
|
|
1
|
-
export class ManipulatorHandle {
|
|
2
|
-
constructor(direction: any, color: any);
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
export class ManipulatorHandle extends Object3D<import("three").Object3DEventMap> {
|
|
2
|
+
constructor(direction: any, color: any, input: any);
|
|
3
|
+
input: any;
|
|
4
|
+
arrow_helper: ArrowHelper;
|
|
5
|
+
box_collider: Mesh<BoxGeometry, MeshBasicMaterial, import("three").Object3DEventMap>;
|
|
6
|
+
direction: any;
|
|
7
|
+
raycaster: Raycaster;
|
|
8
|
+
raycast_result: import("three").Intersection<Object3D<import("three").Object3DEventMap>>[];
|
|
9
|
+
tmp_p1: Vector3;
|
|
10
|
+
tmp_p2: Vector3;
|
|
11
|
+
tmp_v2: Vector2;
|
|
12
|
+
half_unit_vec: Vector3;
|
|
13
|
+
is_mouse_over(): boolean;
|
|
14
|
+
get_normalized_screen_direction(): Vector2;
|
|
15
|
+
}
|
|
16
|
+
import { Object3D } from "three/src/core/Object3D";
|
|
17
|
+
import { ArrowHelper } from "three/src/helpers/ArrowHelper";
|
|
18
|
+
import { BoxGeometry } from "three/src/geometries/BoxGeometry";
|
|
19
|
+
import { MeshBasicMaterial } from "three/src/materials/MeshBasicMaterial";
|
|
20
|
+
import { Mesh } from "three/src/objects/Mesh";
|
|
21
|
+
import { Raycaster } from "three/src/core/Raycaster";
|
|
22
|
+
import { Vector3 } from "three/src/math/Vector3";
|
|
23
|
+
import { Vector2 } from "three/src/math/Vector2";
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
export class ObjectEditor {
|
|
2
|
-
constructor(renderer: any, scene: any, camera: any);
|
|
3
|
-
raycaster:
|
|
4
|
-
selected_object: any;
|
|
5
|
-
object_manipulator: ObjectManipulator;
|
|
6
|
-
object_picker: ObjectPicker;
|
|
7
|
-
scene: any;
|
|
8
|
-
camera: any;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import {
|
|
1
|
+
export class ObjectEditor {
|
|
2
|
+
constructor(renderer: any, scene: any, camera: any, input: any);
|
|
3
|
+
raycaster: Raycaster;
|
|
4
|
+
selected_object: any;
|
|
5
|
+
object_manipulator: ObjectManipulator;
|
|
6
|
+
object_picker: ObjectPicker;
|
|
7
|
+
scene: any;
|
|
8
|
+
camera: any;
|
|
9
|
+
input: any;
|
|
10
|
+
selectable_objects: any[];
|
|
11
|
+
refresh_scene(): void;
|
|
12
|
+
update(): void;
|
|
13
|
+
__populate_selectable_objects(array: any): void;
|
|
14
|
+
__set_object_ids(array: any): void;
|
|
15
|
+
}
|
|
16
|
+
import { Raycaster } from "three/src/core/Raycaster";
|
|
17
|
+
import { ObjectManipulator } from "./ObjectManipulator";
|
|
18
|
+
import { ObjectPicker } from "./ObjectPicker";
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
export class ObjectManipulator {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
export class ObjectManipulator extends Object3D<import("three").Object3DEventMap> {
|
|
2
|
+
constructor(input: any);
|
|
3
|
+
input: any;
|
|
4
|
+
target_obj: any;
|
|
5
|
+
up_handle: ManipulatorHandle;
|
|
6
|
+
right_handle: ManipulatorHandle;
|
|
7
|
+
forward_handle: ManipulatorHandle;
|
|
8
|
+
active_handle: ManipulatorHandle;
|
|
9
|
+
tmp_displacement_vector: Vector3;
|
|
10
|
+
tmp_local_pos: Vector3;
|
|
11
|
+
tmp_up_v2: Vector2;
|
|
12
|
+
tmp_right_v2: Vector2;
|
|
13
|
+
use_vertical_translation: boolean;
|
|
14
|
+
translation_sign: boolean;
|
|
15
|
+
update(): void;
|
|
16
|
+
set_translation_axis(active_handle: any): void;
|
|
17
|
+
check_active_handle(): void;
|
|
18
|
+
set_target(obj: any): void;
|
|
19
|
+
}
|
|
20
|
+
import { Object3D } from "three/src/core/Object3D";
|
|
21
|
+
import { ManipulatorHandle } from "../editor/ManipulatorHandle";
|
|
22
|
+
import { Vector3 } from "three/src/math/Vector3";
|
|
23
|
+
import { Vector2 } from "three/src/math/Vector2";
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
export class ObjectPicker {
|
|
2
|
-
constructor(renderer: any, scene: any, camera: any);
|
|
3
|
-
renderer: any;
|
|
4
|
-
readback_buffer: Uint8Array;
|
|
5
|
-
scene: any;
|
|
6
|
-
camera: any;
|
|
7
|
-
camera_layers: any;
|
|
8
|
-
clear_color:
|
|
9
|
-
picking_texture:
|
|
10
|
-
tmp_scene_auto_update: any;
|
|
11
|
-
tmp_mouse_pos:
|
|
12
|
-
pick(mouse_NDC: any, objects: any): number;
|
|
13
|
-
__prepare_scene(objects: any): void;
|
|
14
|
-
__restore_scene(objects: any): void;
|
|
15
|
-
__readback_id(mouse_NDC: any): number;
|
|
16
|
-
}
|
|
1
|
+
export class ObjectPicker {
|
|
2
|
+
constructor(renderer: any, scene: any, camera: any);
|
|
3
|
+
renderer: any;
|
|
4
|
+
readback_buffer: Uint8Array;
|
|
5
|
+
scene: any;
|
|
6
|
+
camera: any;
|
|
7
|
+
camera_layers: any;
|
|
8
|
+
clear_color: Color;
|
|
9
|
+
picking_texture: WebGLRenderTarget<import("three").Texture>;
|
|
10
|
+
tmp_scene_auto_update: any;
|
|
11
|
+
tmp_mouse_pos: Vector2;
|
|
12
|
+
pick(mouse_NDC: any, objects: any): number;
|
|
13
|
+
__prepare_scene(objects: any): void;
|
|
14
|
+
__restore_scene(objects: any): void;
|
|
15
|
+
__readback_id(mouse_NDC: any): number;
|
|
16
|
+
}
|
|
17
|
+
import { Color } from "three/src/math/Color";
|
|
18
|
+
import { WebGLRenderTarget } from "three/src/renderers/WebGLRenderTarget";
|
|
19
|
+
import { Vector2 } from "three/src/math/Vector2";
|
|
@@ -1,15 +1,22 @@
|
|
|
1
|
-
export class GPUParticleSystem {
|
|
2
|
-
constructor(particle_count: any, material: any);
|
|
3
|
-
attributes: any[];
|
|
4
|
-
mesh: any
|
|
5
|
-
attribute_writter_mesh:
|
|
6
|
-
attribute_writter_scene:
|
|
7
|
-
add_texture_attribute(buffer_attribute: any): void;
|
|
8
|
-
add_update_attribute_array(name: any, array: any, item_size: any): void;
|
|
9
|
-
add_attribute_array(name: any, array: any, item_size: any): void;
|
|
10
|
-
update(): void;
|
|
11
|
-
dispose(): void;
|
|
12
|
-
build_point_mesh(instance_count: number, material: any): any
|
|
13
|
-
build_attribute_writter_mesh(particle_count: any):
|
|
14
|
-
build_uv_storage_attribute(particle_count: any):
|
|
15
|
-
}
|
|
1
|
+
export class GPUParticleSystem extends Object3D<import("three").Object3DEventMap> {
|
|
2
|
+
constructor(particle_count: any, material: any);
|
|
3
|
+
attributes: any[];
|
|
4
|
+
mesh: Mesh<InstancedBufferGeometry, any, import("three").Object3DEventMap>;
|
|
5
|
+
attribute_writter_mesh: Points<BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap>;
|
|
6
|
+
attribute_writter_scene: Scene;
|
|
7
|
+
add_texture_attribute(buffer_attribute: any): void;
|
|
8
|
+
add_update_attribute_array(name: any, array: any, item_size: any): void;
|
|
9
|
+
add_attribute_array(name: any, array: any, item_size: any): void;
|
|
10
|
+
update(): void;
|
|
11
|
+
dispose(): void;
|
|
12
|
+
build_point_mesh(instance_count: number, material: any): Mesh<InstancedBufferGeometry, any, import("three").Object3DEventMap>;
|
|
13
|
+
build_attribute_writter_mesh(particle_count: any): Points<BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap>;
|
|
14
|
+
build_uv_storage_attribute(particle_count: any): InstancedBufferAttribute;
|
|
15
|
+
}
|
|
16
|
+
import { Object3D } from "three/src/core/Object3D";
|
|
17
|
+
import { InstancedBufferGeometry } from "three/src/core/InstancedBufferGeometry";
|
|
18
|
+
import { Mesh } from "three/src/objects/Mesh";
|
|
19
|
+
import { BufferGeometry } from "three/src/core/BufferGeometry";
|
|
20
|
+
import { Points } from "three/src/objects/Points";
|
|
21
|
+
import { Scene } from "three/src/scenes/Scene";
|
|
22
|
+
import { InstancedBufferAttribute } from "three/src/core/InstancedBufferAttribute";
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
export class ParticleAttribute {
|
|
2
|
-
static calculate_resolution(particle_count: any): {
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
};
|
|
6
|
-
constructor(attr_name: any, update_material: any);
|
|
7
|
-
read: any;
|
|
8
|
-
write: any;
|
|
9
|
-
name: any;
|
|
10
|
-
update_material: any;
|
|
11
|
-
init_from_geometry(geometry: any): void;
|
|
12
|
-
init_from_attribute(particle_attribute: any): void;
|
|
13
|
-
build_RT(particle_count: any):
|
|
14
|
-
swap_RT(): void;
|
|
15
|
-
update(attribute_writter_scene: any): void;
|
|
16
|
-
store_geometry_attribute_in_RT(attribute: any, RT: any, storage_material: any, attribute_writter_scene: any): void;
|
|
17
|
-
get_texture(): any;
|
|
18
|
-
}
|
|
1
|
+
export class ParticleAttribute {
|
|
2
|
+
static calculate_resolution(particle_count: any): {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
};
|
|
6
|
+
constructor(attr_name: any, update_material: any);
|
|
7
|
+
read: any;
|
|
8
|
+
write: any;
|
|
9
|
+
name: any;
|
|
10
|
+
update_material: any;
|
|
11
|
+
init_from_geometry(geometry: any): void;
|
|
12
|
+
init_from_attribute(particle_attribute: any): void;
|
|
13
|
+
build_RT(particle_count: any): WebGLRenderTarget<import("three").Texture>;
|
|
14
|
+
swap_RT(): void;
|
|
15
|
+
update(attribute_writter_scene: any): void;
|
|
16
|
+
store_geometry_attribute_in_RT(attribute: any, RT: any, storage_material: any, attribute_writter_scene: any): void;
|
|
17
|
+
get_texture(): any;
|
|
18
|
+
}
|
|
19
|
+
import { WebGLRenderTarget } from "three/src/renderers/WebGLRenderTarget";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export class ParticlePositionAttribute extends ParticleAttribute {
|
|
2
|
-
constructor(update_material: any);
|
|
3
|
-
store_geometry(geometry: any, attribute_writter_scene: any): void;
|
|
4
|
-
store_positions(positions: any, attribute_writter_scene: any): void;
|
|
5
|
-
}
|
|
6
|
-
import { ParticleAttribute } from "../gpu_particles/ParticleAttribute";
|
|
1
|
+
export class ParticlePositionAttribute extends ParticleAttribute {
|
|
2
|
+
constructor(update_material: any);
|
|
3
|
+
store_geometry(geometry: any, attribute_writter_scene: any): void;
|
|
4
|
+
store_positions(positions: any, attribute_writter_scene: any): void;
|
|
5
|
+
}
|
|
6
|
+
import { ParticleAttribute } from "../gpu_particles/ParticleAttribute";
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export class CSSAnimator {
|
|
2
|
-
constructor({ element, css_property, from, to, duration, value_prefix, value_suffix, easing_function, finished_callback }: {
|
|
3
|
-
element: any;
|
|
4
|
-
css_property: any;
|
|
5
|
-
from?: number;
|
|
6
|
-
to?: number;
|
|
7
|
-
duration?: number;
|
|
8
|
-
value_prefix?: string;
|
|
9
|
-
value_suffix?: string;
|
|
10
|
-
easing_function?: typeof EasingFunctions.ease_in_out_cubic;
|
|
11
|
-
finished_callback?: () => void;
|
|
12
|
-
});
|
|
13
|
-
element: any;
|
|
14
|
-
css_property: any;
|
|
15
|
-
from: number;
|
|
16
|
-
to: number;
|
|
17
|
-
value_prefix: string;
|
|
18
|
-
value_suffix: string;
|
|
19
|
-
duration: number;
|
|
20
|
-
easing_function: typeof EasingFunctions.ease_in_out_cubic;
|
|
21
|
-
finished_callback: () => void;
|
|
22
|
-
current_state: Idle;
|
|
23
|
-
animate(): void;
|
|
24
|
-
stop(): void;
|
|
25
|
-
set_property_value(value: any): void;
|
|
26
|
-
update(): void;
|
|
27
|
-
get is_animating(): boolean;
|
|
28
|
-
set_current_state(state: any): void;
|
|
29
|
-
}
|
|
30
|
-
import { EasingFunctions } from "../utilities/EasingFunctions";
|
|
31
|
-
import { Idle } from "./css_animator_states/Idle";
|
|
1
|
+
export class CSSAnimator {
|
|
2
|
+
constructor({ element, css_property, from, to, duration, value_prefix, value_suffix, easing_function, finished_callback }: {
|
|
3
|
+
element: any;
|
|
4
|
+
css_property: any;
|
|
5
|
+
from?: number;
|
|
6
|
+
to?: number;
|
|
7
|
+
duration?: number;
|
|
8
|
+
value_prefix?: string;
|
|
9
|
+
value_suffix?: string;
|
|
10
|
+
easing_function?: typeof EasingFunctions.ease_in_out_cubic;
|
|
11
|
+
finished_callback?: () => void;
|
|
12
|
+
});
|
|
13
|
+
element: any;
|
|
14
|
+
css_property: any;
|
|
15
|
+
from: number;
|
|
16
|
+
to: number;
|
|
17
|
+
value_prefix: string;
|
|
18
|
+
value_suffix: string;
|
|
19
|
+
duration: number;
|
|
20
|
+
easing_function: typeof EasingFunctions.ease_in_out_cubic;
|
|
21
|
+
finished_callback: () => void;
|
|
22
|
+
current_state: Idle;
|
|
23
|
+
animate(): void;
|
|
24
|
+
stop(): void;
|
|
25
|
+
set_property_value(value: any): void;
|
|
26
|
+
update(): void;
|
|
27
|
+
get is_animating(): boolean;
|
|
28
|
+
set_current_state(state: any): void;
|
|
29
|
+
}
|
|
30
|
+
import { EasingFunctions } from "../utilities/EasingFunctions";
|
|
31
|
+
import { Idle } from "./css_animator_states/Idle";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export class Animating {
|
|
2
|
-
t: number;
|
|
3
|
-
easing_function_t: number;
|
|
4
|
-
get is_animating(): boolean;
|
|
5
|
-
on_enter(animator: any): void;
|
|
6
|
-
update(animator: any): void;
|
|
7
|
-
on_exit(view: any): void;
|
|
8
|
-
}
|
|
1
|
+
export class Animating {
|
|
2
|
+
t: number;
|
|
3
|
+
easing_function_t: number;
|
|
4
|
+
get is_animating(): boolean;
|
|
5
|
+
on_enter(animator: any): void;
|
|
6
|
+
update(animator: any): void;
|
|
7
|
+
on_exit(view: any): void;
|
|
8
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export class Idle {
|
|
2
|
-
get is_animating(): boolean;
|
|
3
|
-
on_enter(view: any): void;
|
|
4
|
-
update(view: any): void;
|
|
5
|
-
on_exit(view: any): void;
|
|
6
|
-
}
|
|
1
|
+
export class Idle {
|
|
2
|
+
get is_animating(): boolean;
|
|
3
|
+
on_enter(view: any): void;
|
|
4
|
+
update(view: any): void;
|
|
5
|
+
on_exit(view: any): void;
|
|
6
|
+
}
|