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,13 +1,13 @@
|
|
|
1
|
-
export class ResourceBatch {
|
|
2
|
-
constructor(batch_name: any);
|
|
3
|
-
resource_loaders: any[];
|
|
4
|
-
batch_name: any;
|
|
5
|
-
add_loader(loader: any): void;
|
|
6
|
-
load(resource_container: any): void;
|
|
7
|
-
get loading_finished(): boolean;
|
|
8
|
-
get has_errors(): boolean;
|
|
9
|
-
print_errors(): void;
|
|
10
|
-
get_progress(): number;
|
|
11
|
-
get_loaded_bytes(): number;
|
|
12
|
-
get_total_bytes(): number;
|
|
13
|
-
}
|
|
1
|
+
export class ResourceBatch {
|
|
2
|
+
constructor(batch_name: any);
|
|
3
|
+
resource_loaders: any[];
|
|
4
|
+
batch_name: any;
|
|
5
|
+
add_loader(loader: any): void;
|
|
6
|
+
load(resource_container: any): void;
|
|
7
|
+
get loading_finished(): boolean;
|
|
8
|
+
get has_errors(): boolean;
|
|
9
|
+
print_errors(): void;
|
|
10
|
+
get_progress(): number;
|
|
11
|
+
get_loaded_bytes(): number;
|
|
12
|
+
get_total_bytes(): number;
|
|
13
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
export class SVGLoader extends AbstractLoader {
|
|
2
|
+
constructor(resource_id: any, url: any, size: any);
|
|
3
|
+
loader: TSVGLoader;
|
|
4
|
+
on_preloaded_finished(resource_container: any): void;
|
|
5
|
+
}
|
|
6
|
+
import { AbstractLoader } from "./AbstractLoader";
|
|
7
|
+
import { SVGLoader as TSVGLoader } from "three/examples/jsm/loaders/SVGLoader.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export class TextLoader extends AbstractLoader {
|
|
2
|
-
constructor(resource_id: any, url: any, size: any);
|
|
3
|
-
loader:
|
|
4
|
-
on_preloaded_finished(resource_container: any): void;
|
|
5
|
-
}
|
|
6
|
-
import { AbstractLoader } from "./AbstractLoader";
|
|
1
|
+
export class TextLoader extends AbstractLoader {
|
|
2
|
+
constructor(resource_id: any, url: any, size: any);
|
|
3
|
+
loader: TFileLoader;
|
|
4
|
+
on_preloaded_finished(resource_container: any): void;
|
|
5
|
+
}
|
|
6
|
+
import { AbstractLoader } from "./AbstractLoader";
|
|
7
|
+
import { FileLoader as TFileLoader } from "three/src/loaders/FileLoader";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class TextureLoader extends AbstractLoader {
|
|
2
|
-
constructor(resource_id: any, url: any, size: any);
|
|
3
|
-
}
|
|
4
|
-
import { AbstractLoader } from "./AbstractLoader";
|
|
1
|
+
export class TextureLoader extends AbstractLoader {
|
|
2
|
+
constructor(resource_id: any, url: any, size: any);
|
|
3
|
+
}
|
|
4
|
+
import { AbstractLoader } from "./AbstractLoader";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class VideoLoader extends AbstractLoader {
|
|
2
|
-
constructor(resource_id: any, url: any, size: any);
|
|
3
|
-
}
|
|
4
|
-
import { AbstractLoader } from "./AbstractLoader";
|
|
1
|
+
export class VideoLoader extends AbstractLoader {
|
|
2
|
+
constructor(resource_id: any, url: any, size: any);
|
|
3
|
+
}
|
|
4
|
+
import { AbstractLoader } from "./AbstractLoader";
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
export class AbstractScene {
|
|
2
|
-
constructor({ name, compilators }: {
|
|
3
|
-
name: any;
|
|
4
|
-
compilators: any;
|
|
5
|
-
});
|
|
6
|
-
name: any;
|
|
7
|
-
is_loaded: boolean;
|
|
8
|
-
is_high_loaded: boolean;
|
|
9
|
-
loading_states: {
|
|
10
|
-
regular: RegularLoadingState;
|
|
11
|
-
high: HighQualityLoadingState;
|
|
12
|
-
};
|
|
13
|
-
current_loading_state: LoadingState;
|
|
14
|
-
get loading_progress(): number;
|
|
15
|
-
init(): void;
|
|
16
|
-
load(): void;
|
|
17
|
-
get_objects(): any[];
|
|
18
|
-
dispose_cpu(): void;
|
|
19
|
-
dispose(): void;
|
|
20
|
-
set_assets(scene_objects: any, scene_textures: any, scene_sounds: any, custom_loaders: any, custom_compilators: any, custom_data: any): void;
|
|
21
|
-
set_high_assets(scene_objects: any, scene_textures: any, scene_sounds: any, custom_loaders: any, custom_compilators: any, custom_data: any): void;
|
|
22
|
-
set_loading_state(state: any): void;
|
|
23
|
-
update_loading_state(): void;
|
|
24
|
-
update(): void;
|
|
25
|
-
on_assets_ready(): void;
|
|
26
|
-
on_assets_compiled(): void;
|
|
27
|
-
on_high_quality_assets_ready(): void;
|
|
28
|
-
}
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
|
|
1
|
+
export class AbstractScene extends Scene {
|
|
2
|
+
constructor({ name, compilators }: {
|
|
3
|
+
name: any;
|
|
4
|
+
compilators: any;
|
|
5
|
+
});
|
|
6
|
+
name: any;
|
|
7
|
+
is_loaded: boolean;
|
|
8
|
+
is_high_loaded: boolean;
|
|
9
|
+
loading_states: {
|
|
10
|
+
regular: RegularLoadingState;
|
|
11
|
+
high: HighQualityLoadingState;
|
|
12
|
+
};
|
|
13
|
+
current_loading_state: LoadingState;
|
|
14
|
+
get loading_progress(): number;
|
|
15
|
+
init(): void;
|
|
16
|
+
load(): void;
|
|
17
|
+
get_objects(): any[];
|
|
18
|
+
dispose_cpu(): void;
|
|
19
|
+
dispose(): void;
|
|
20
|
+
set_assets(scene_objects: any, scene_textures: any, scene_sounds: any, custom_loaders: any, custom_compilators: any, custom_data: any): void;
|
|
21
|
+
set_high_assets(scene_objects: any, scene_textures: any, scene_sounds: any, custom_loaders: any, custom_compilators: any, custom_data: any): void;
|
|
22
|
+
set_loading_state(state: any): void;
|
|
23
|
+
update_loading_state(): void;
|
|
24
|
+
update(): void;
|
|
25
|
+
on_assets_ready(): void;
|
|
26
|
+
on_assets_compiled(): void;
|
|
27
|
+
on_high_quality_assets_ready(): void;
|
|
28
|
+
}
|
|
29
|
+
import { Scene } from "three/src/scenes/Scene";
|
|
30
|
+
import { RegularLoadingState } from "./loading_states/RegularLoadingState";
|
|
31
|
+
import { HighQualityLoadingState } from "./loading_states/HighQualityLoadingState";
|
|
32
|
+
import { LoadingState } from "./loading_states/LoadingState";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export class CompilatorManager {
|
|
2
|
-
constructor(compilators: any);
|
|
3
|
-
compilators: any;
|
|
4
|
-
first_update: boolean;
|
|
5
|
-
index: number;
|
|
6
|
-
update(): void;
|
|
7
|
-
is_finished(): boolean;
|
|
8
|
-
}
|
|
1
|
+
export class CompilatorManager {
|
|
2
|
+
constructor(compilators: any);
|
|
3
|
+
compilators: any;
|
|
4
|
+
first_update: boolean;
|
|
5
|
+
index: number;
|
|
6
|
+
update(): void;
|
|
7
|
+
is_finished(): boolean;
|
|
8
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export class HighQualityLoadingState extends LoadingState {
|
|
2
|
-
}
|
|
3
|
-
import { LoadingState } from "./LoadingState";
|
|
1
|
+
export class HighQualityLoadingState extends LoadingState {
|
|
2
|
+
}
|
|
3
|
+
import { LoadingState } from "./LoadingState";
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export class LoadingState {
|
|
2
|
-
constructor(scene: any, { SceneCompilator, TexturesCompilator, AudiosCompilator }: {
|
|
3
|
-
SceneCompilator: any;
|
|
4
|
-
TexturesCompilator: any;
|
|
5
|
-
AudiosCompilator: any;
|
|
6
|
-
});
|
|
7
|
-
scene: any;
|
|
8
|
-
SceneCompilator: any;
|
|
9
|
-
TexturesCompilator: any;
|
|
10
|
-
AudiosCompilator: any;
|
|
11
|
-
loaders: any[];
|
|
12
|
-
compilators: any[];
|
|
13
|
-
callback_called: boolean;
|
|
14
|
-
set_assets(scene_objects: any, scene_textures: any, scene_sounds: any, custom_loaders?: any[], custom_compilators?: any[], custom_data?: any[]): void;
|
|
15
|
-
scene_objects: any;
|
|
16
|
-
scene_textures: any;
|
|
17
|
-
scene_sounds: any;
|
|
18
|
-
custom_loaders: any[];
|
|
19
|
-
custom_compilators: any[];
|
|
20
|
-
custom_data: any[];
|
|
21
|
-
get loading_progress(): number;
|
|
22
|
-
load(): void;
|
|
23
|
-
on_enter(): void;
|
|
24
|
-
on_exit(): void;
|
|
25
|
-
update(): void;
|
|
26
|
-
setup_loader(): void;
|
|
27
|
-
compilator_manager: CompilatorManager;
|
|
28
|
-
is_loaded(): boolean;
|
|
29
|
-
is_compiled(): boolean;
|
|
30
|
-
}
|
|
31
|
-
import { CompilatorManager } from "./CompilatorManager";
|
|
1
|
+
export class LoadingState {
|
|
2
|
+
constructor(scene: any, { SceneCompilator, TexturesCompilator, AudiosCompilator }: {
|
|
3
|
+
SceneCompilator: any;
|
|
4
|
+
TexturesCompilator: any;
|
|
5
|
+
AudiosCompilator: any;
|
|
6
|
+
});
|
|
7
|
+
scene: any;
|
|
8
|
+
SceneCompilator: any;
|
|
9
|
+
TexturesCompilator: any;
|
|
10
|
+
AudiosCompilator: any;
|
|
11
|
+
loaders: any[];
|
|
12
|
+
compilators: any[];
|
|
13
|
+
callback_called: boolean;
|
|
14
|
+
set_assets(scene_objects: any, scene_textures: any, scene_sounds: any, custom_loaders?: any[], custom_compilators?: any[], custom_data?: any[]): void;
|
|
15
|
+
scene_objects: any;
|
|
16
|
+
scene_textures: any;
|
|
17
|
+
scene_sounds: any;
|
|
18
|
+
custom_loaders: any[];
|
|
19
|
+
custom_compilators: any[];
|
|
20
|
+
custom_data: any[];
|
|
21
|
+
get loading_progress(): number;
|
|
22
|
+
load(): void;
|
|
23
|
+
on_enter(): void;
|
|
24
|
+
on_exit(): void;
|
|
25
|
+
update(): void;
|
|
26
|
+
setup_loader(): void;
|
|
27
|
+
compilator_manager: CompilatorManager;
|
|
28
|
+
is_loaded(): boolean;
|
|
29
|
+
is_compiled(): boolean;
|
|
30
|
+
}
|
|
31
|
+
import { CompilatorManager } from "./CompilatorManager";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export class RegularLoadingState extends LoadingState {
|
|
2
|
-
constructor(scene: any, compilators: any);
|
|
3
|
-
on_assets_ready_called: boolean;
|
|
4
|
-
}
|
|
5
|
-
import { LoadingState } from "./LoadingState";
|
|
1
|
+
export class RegularLoadingState extends LoadingState {
|
|
2
|
+
constructor(scene: any, compilators: any);
|
|
3
|
+
on_assets_ready_called: boolean;
|
|
4
|
+
}
|
|
5
|
+
import { LoadingState } from "./LoadingState";
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
export class BatchedMesh {
|
|
2
|
-
constructor(id_table: any, geometry: any, material: any, max_texture_width: any);
|
|
3
|
-
id_table: any;
|
|
4
|
-
batched_count: number;
|
|
5
|
-
max_texture_width: any;
|
|
6
|
-
batch_width: number;
|
|
7
|
-
batch_height: number;
|
|
8
|
-
attach_rgb_texture(uniform_name: any): void;
|
|
9
|
-
attach_rgba_texture(uniform_name: any): void;
|
|
10
|
-
attach_rgb_float_texture(uniform_name: any): void;
|
|
11
|
-
attach_rgba_float_texture(uniform_name: any): void;
|
|
12
|
-
get_mesh_index(name: any): any;
|
|
13
|
-
set_rgb_value(uniform_name: any, mesh_name: any, r: any, g: any, b: any): void;
|
|
14
|
-
set_rgba_value(uniform_name: any, mesh_name: any, r: any, g: any, b: any, a: any): void;
|
|
15
|
-
}
|
|
1
|
+
export class BatchedMesh extends Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap> {
|
|
2
|
+
constructor(id_table: any, geometry: any, material: any, max_texture_width: any);
|
|
3
|
+
id_table: any;
|
|
4
|
+
batched_count: number;
|
|
5
|
+
max_texture_width: any;
|
|
6
|
+
batch_width: number;
|
|
7
|
+
batch_height: number;
|
|
8
|
+
attach_rgb_texture(uniform_name: any): void;
|
|
9
|
+
attach_rgba_texture(uniform_name: any): void;
|
|
10
|
+
attach_rgb_float_texture(uniform_name: any): void;
|
|
11
|
+
attach_rgba_float_texture(uniform_name: any): void;
|
|
12
|
+
get_mesh_index(name: any): any;
|
|
13
|
+
set_rgb_value(uniform_name: any, mesh_name: any, r: any, g: any, b: any): void;
|
|
14
|
+
set_rgba_value(uniform_name: any, mesh_name: any, r: any, g: any, b: any, a: any): void;
|
|
15
|
+
}
|
|
16
|
+
import { Mesh } from "three/src/objects/Mesh";
|
|
@@ -1,37 +1,41 @@
|
|
|
1
|
-
export class GeometryBatch {
|
|
2
|
-
constructor(geometry: any, batch_width: any);
|
|
3
|
-
geometry: any;
|
|
4
|
-
material:
|
|
5
|
-
uniforms: {};
|
|
6
|
-
batch_width: any;
|
|
7
|
-
data_textures: any[];
|
|
8
|
-
object_names: any;
|
|
9
|
-
zero_offset:
|
|
10
|
-
write_offset:
|
|
11
|
-
uniform_dirty_count: number;
|
|
12
|
-
tmp_uploaded_data_count: number;
|
|
13
|
-
init(object_names: any, vert_shader: any, frag_shader: any): void;
|
|
14
|
-
add_global_uniform(name: any, data: any): void;
|
|
15
|
-
set_global_uniform(name: any, data: any): void;
|
|
16
|
-
add_object_uniform_v3(uniform_name: any, default_value_v3: any): void;
|
|
17
|
-
add_object_uniform_v4(uniform_name: any, default_value_v4: any): void;
|
|
18
|
-
add_object_uniform_v4_float(uniform_name: any, default_value_v4: any): void;
|
|
19
|
-
set_object_uniform_v3(object_name: any, uniform_name: any, vector3: any, use_r: any, use_g: any, use_b: any): void;
|
|
20
|
-
set_object_uniform_v4(object_name: any, uniform_name: any, vector4: any, use_r: any, use_g: any, use_b: any, use_a: any): void;
|
|
21
|
-
upload_texture_data(renderer: any, upload_budget: any): void;
|
|
22
|
-
get_uniform_dirty_count(): number;
|
|
23
|
-
__full_texture_data_upload(renderer: any, texture_data: any): void;
|
|
24
|
-
__partial_texture_data_upload(renderer: any, texture_data: any): void;
|
|
25
|
-
get_mesh(): any
|
|
26
|
-
__set_pixel_rgb(data_texture: any, index: any, vector3: any, use_r: any, use_g: any, use_b: any): void;
|
|
27
|
-
__set_pixel_rgba(data_texture: any, index: any, vector4: any, use_r: any, use_g: any, use_b: any, use_a: any): void;
|
|
28
|
-
__flood_data_texture_rgb(data_texture: any, v3: any): void;
|
|
29
|
-
__flood_data_texture_rgba(data_texture: any, v4: any): void;
|
|
30
|
-
__create_rgb_texture(width: any):
|
|
31
|
-
__create_rgba_texture(width: any):
|
|
32
|
-
__create_rgba_float_texture(width: any):
|
|
33
|
-
__get_data_texture(uniform_name: any): any;
|
|
34
|
-
__get_object_index(name: any): number;
|
|
35
|
-
__add_data_texture(uniform_name: any, src_texture: any, dst_texture: any, one_pixel_text: any): any;
|
|
36
|
-
dispose(): void;
|
|
37
|
-
}
|
|
1
|
+
export class GeometryBatch {
|
|
2
|
+
constructor(geometry: any, batch_width: any);
|
|
3
|
+
geometry: any;
|
|
4
|
+
material: ShaderMaterial;
|
|
5
|
+
uniforms: {};
|
|
6
|
+
batch_width: any;
|
|
7
|
+
data_textures: any[];
|
|
8
|
+
object_names: any;
|
|
9
|
+
zero_offset: Vector2;
|
|
10
|
+
write_offset: Vector2;
|
|
11
|
+
uniform_dirty_count: number;
|
|
12
|
+
tmp_uploaded_data_count: number;
|
|
13
|
+
init(object_names: any, vert_shader: any, frag_shader: any): void;
|
|
14
|
+
add_global_uniform(name: any, data: any): void;
|
|
15
|
+
set_global_uniform(name: any, data: any): void;
|
|
16
|
+
add_object_uniform_v3(uniform_name: any, default_value_v3: any): void;
|
|
17
|
+
add_object_uniform_v4(uniform_name: any, default_value_v4: any): void;
|
|
18
|
+
add_object_uniform_v4_float(uniform_name: any, default_value_v4: any): void;
|
|
19
|
+
set_object_uniform_v3(object_name: any, uniform_name: any, vector3: any, use_r: any, use_g: any, use_b: any): void;
|
|
20
|
+
set_object_uniform_v4(object_name: any, uniform_name: any, vector4: any, use_r: any, use_g: any, use_b: any, use_a: any): void;
|
|
21
|
+
upload_texture_data(renderer: any, upload_budget: any): void;
|
|
22
|
+
get_uniform_dirty_count(): number;
|
|
23
|
+
__full_texture_data_upload(renderer: any, texture_data: any): void;
|
|
24
|
+
__partial_texture_data_upload(renderer: any, texture_data: any): void;
|
|
25
|
+
get_mesh(): Mesh<any, ShaderMaterial, import("three").Object3DEventMap>;
|
|
26
|
+
__set_pixel_rgb(data_texture: any, index: any, vector3: any, use_r: any, use_g: any, use_b: any): void;
|
|
27
|
+
__set_pixel_rgba(data_texture: any, index: any, vector4: any, use_r: any, use_g: any, use_b: any, use_a: any): void;
|
|
28
|
+
__flood_data_texture_rgb(data_texture: any, v3: any): void;
|
|
29
|
+
__flood_data_texture_rgba(data_texture: any, v4: any): void;
|
|
30
|
+
__create_rgb_texture(width: any): DataTexture;
|
|
31
|
+
__create_rgba_texture(width: any): DataTexture;
|
|
32
|
+
__create_rgba_float_texture(width: any): DataTexture;
|
|
33
|
+
__get_data_texture(uniform_name: any): any;
|
|
34
|
+
__get_object_index(name: any): number;
|
|
35
|
+
__add_data_texture(uniform_name: any, src_texture: any, dst_texture: any, one_pixel_text: any): any;
|
|
36
|
+
dispose(): void;
|
|
37
|
+
}
|
|
38
|
+
import { ShaderMaterial } from "three/src/materials/ShaderMaterial";
|
|
39
|
+
import { Vector2 } from "three/src/math/Vector2";
|
|
40
|
+
import { Mesh } from "three/src/objects/Mesh";
|
|
41
|
+
import { DataTexture } from "three/src/textures/DataTexture";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { geometry_batcher as GeometryBatcher };
|
|
2
|
-
declare const geometry_batcher: GeometryBatcher;
|
|
3
|
-
declare class GeometryBatcher {
|
|
4
|
-
init(): void;
|
|
5
|
-
batches: any[];
|
|
6
|
-
batch(buffer_geometries: any): any;
|
|
7
|
-
upload_texture_data(renderer: any): void;
|
|
8
|
-
__init_uv_array(uvs: any, texture_width: any): void;
|
|
9
|
-
}
|
|
1
|
+
export { geometry_batcher as GeometryBatcher };
|
|
2
|
+
declare const geometry_batcher: GeometryBatcher;
|
|
3
|
+
declare class GeometryBatcher {
|
|
4
|
+
init(): void;
|
|
5
|
+
batches: any[];
|
|
6
|
+
batch(buffer_geometries: any): any;
|
|
7
|
+
upload_texture_data(renderer: any): void;
|
|
8
|
+
__init_uv_array(uvs: any, texture_width: any): void;
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export class MeshBatcher {
|
|
2
|
-
batch(meshes: any, material: any): BatchedMesh;
|
|
3
|
-
create_batched_mesh(id_table: any, buffer_geometry: any, material: any, max_texture_width: any): BatchedMesh;
|
|
4
|
-
}
|
|
5
|
-
import { BatchedMesh } from "./BatchedMesh";
|
|
1
|
+
export class MeshBatcher {
|
|
2
|
+
batch(meshes: any, material: any): BatchedMesh;
|
|
3
|
+
create_batched_mesh(id_table: any, buffer_geometry: any, material: any, max_texture_width: any): BatchedMesh;
|
|
4
|
+
}
|
|
5
|
+
import { BatchedMesh } from "./BatchedMesh";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export class ScreenSpacePosition {
|
|
2
|
-
tmp_vec:
|
|
3
|
-
get_pos_NDC(position: any):
|
|
4
|
-
}
|
|
1
|
+
export class ScreenSpacePosition {
|
|
2
|
+
tmp_vec: Vector2;
|
|
3
|
+
get_pos_NDC(position: any): Vector2;
|
|
4
|
+
}
|
|
5
|
+
import { Vector2 } from "three/src/math/Vector2";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export class WorldSpacePosition {
|
|
2
|
-
tmp_vec3:
|
|
3
|
-
tmp_vec2:
|
|
4
|
-
get_pos_NDC(position: any):
|
|
5
|
-
}
|
|
1
|
+
export class WorldSpacePosition {
|
|
2
|
+
tmp_vec3: Vector3;
|
|
3
|
+
tmp_vec2: Vector2;
|
|
4
|
+
get_pos_NDC(position: any): Vector2;
|
|
5
|
+
}
|
|
6
|
+
import { Vector3 } from "three/src/math/Vector3";
|
|
7
|
+
import { Vector2 } from "three/src/math/Vector2";
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
export class OnIdle extends UIElementState {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export class OnIdle extends UIElementState {
|
|
2
|
+
/**
|
|
3
|
+
* @param {UIElement} ui_element
|
|
4
|
+
* @param {Vector2} normalized_mouse_position
|
|
5
|
+
*/
|
|
6
|
+
update(ui_element: UIElement, normalized_mouse_position: Vector2): void;
|
|
7
|
+
}
|
|
8
|
+
import { UIElementState } from "./UIElementState";
|
|
9
|
+
import { UIElement } from "../../components/UIElement";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export class OnMouseEnter extends UIElementState {
|
|
2
|
-
}
|
|
3
|
-
import { UIElementState } from "./UIElementState";
|
|
1
|
+
export class OnMouseEnter extends UIElementState {
|
|
2
|
+
}
|
|
3
|
+
import { UIElementState } from "./UIElementState";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export class OnMouseExit extends UIElementState {
|
|
2
|
-
}
|
|
3
|
-
import { UIElementState } from "./UIElementState";
|
|
1
|
+
export class OnMouseExit extends UIElementState {
|
|
2
|
+
}
|
|
3
|
+
import { UIElementState } from "./UIElementState";
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
export class OnMouseHover extends UIElementState {
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
1
|
+
export class OnMouseHover extends UIElementState {
|
|
2
|
+
/**
|
|
3
|
+
* @param {UIElement} ui_element
|
|
4
|
+
*/
|
|
5
|
+
__trigger_on_hover(ui_element: UIElement): void;
|
|
6
|
+
}
|
|
7
|
+
import { UIElementState } from "./UIElementState";
|
|
8
|
+
import { UIElement } from "../../components/UIElement";
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
-
export class UIElementState {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export class UIElementState {
|
|
2
|
+
/**
|
|
3
|
+
* @param {UIElement} ui_element
|
|
4
|
+
* @param {Vector2} normalized_mouse_position
|
|
5
|
+
*/
|
|
6
|
+
update(ui_element: UIElement, normalized_mouse_position: Vector2): void;
|
|
7
|
+
/**
|
|
8
|
+
* @param {UIElement} ui_element
|
|
9
|
+
*/
|
|
10
|
+
on_enter(ui_element: UIElement): void;
|
|
11
|
+
/**
|
|
12
|
+
* @param {UIElement} ui_element
|
|
13
|
+
*/
|
|
14
|
+
on_exit(ui_element: UIElement): void;
|
|
15
|
+
}
|
|
16
|
+
import { UIElement } from "../../components/UIElement";
|
|
17
|
+
import { Vector2 } from "three/src/math/Vector2";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export class ArrayUtilities {
|
|
2
|
-
static merge_from_to(source: any, target: any): void;
|
|
3
|
-
static expand_vec3_array(array: any, size: any): void;
|
|
4
|
-
static remove_elem(array: any, elem: any): void;
|
|
5
|
-
static get_closest_point(points: any, target: any): any;
|
|
6
|
-
static object_values_to_array(obj: any): any[];
|
|
7
|
-
}
|
|
1
|
+
export class ArrayUtilities {
|
|
2
|
+
static merge_from_to(source: any, target: any): void;
|
|
3
|
+
static expand_vec3_array(array: any, size: any): void;
|
|
4
|
+
static remove_elem(array: any, elem: any): void;
|
|
5
|
+
static get_closest_point(points: any, target: any): any;
|
|
6
|
+
static object_values_to_array(obj: any): any[];
|
|
7
|
+
}
|
|
@@ -1,36 +1,40 @@
|
|
|
1
|
-
export { camera_utilities as CameraUtilities };
|
|
2
|
-
declare const camera_utilities: CameraUtilities;
|
|
3
|
-
declare class CameraUtilities {
|
|
4
|
-
init(input: any): void;
|
|
5
|
-
tmp_mat:
|
|
6
|
-
plane:
|
|
7
|
-
ray:
|
|
8
|
-
tmp_size:
|
|
9
|
-
tmp_unproj:
|
|
10
|
-
input: any;
|
|
11
|
-
get_up_dir(camera: any):
|
|
12
|
-
get_forward_dir(camera: any):
|
|
13
|
-
get_right_dir(camera: any):
|
|
14
|
-
unproject_mouse_position(NDC: any, camera: any):
|
|
15
|
-
get_plane_intersection(plane_position: any, plane_normal: any, NDC: any, camera: any):
|
|
16
|
-
fit_points_on_camera(points: any, zoom_scale?: number): {
|
|
17
|
-
position:
|
|
18
|
-
zoom: number;
|
|
19
|
-
};
|
|
20
|
-
get_zoom_to_fit_rect(width: any, height: any): number;
|
|
21
|
-
get_zoom_to_fit_box(bb: any, camera: any): number;
|
|
22
|
-
get_html_screen_pos(object: any, camera: any):
|
|
23
|
-
world_pos_to_screen(pos: any, camera: any):
|
|
24
|
-
update_projection(camera: any): void;
|
|
25
|
-
fit_bounding_box_points(camera: any, bb: any, scale?: number): {
|
|
26
|
-
zoom:
|
|
27
|
-
reference_position:
|
|
28
|
-
camera_position:
|
|
29
|
-
};
|
|
30
|
-
fit_points(camera: any, points: any, zoom_scale?: number): {
|
|
31
|
-
zoom:
|
|
32
|
-
reference_position:
|
|
33
|
-
camera_position:
|
|
34
|
-
};
|
|
35
|
-
reference_zoom: number;
|
|
36
|
-
}
|
|
1
|
+
export { camera_utilities as CameraUtilities };
|
|
2
|
+
declare const camera_utilities: CameraUtilities;
|
|
3
|
+
declare class CameraUtilities {
|
|
4
|
+
init(input: any): void;
|
|
5
|
+
tmp_mat: Matrix4;
|
|
6
|
+
plane: Plane;
|
|
7
|
+
ray: Ray;
|
|
8
|
+
tmp_size: Vector3;
|
|
9
|
+
tmp_unproj: Vector3;
|
|
10
|
+
input: any;
|
|
11
|
+
get_up_dir(camera: any): Vector3;
|
|
12
|
+
get_forward_dir(camera: any): Vector3;
|
|
13
|
+
get_right_dir(camera: any): Vector3;
|
|
14
|
+
unproject_mouse_position(NDC: any, camera: any): Vector3;
|
|
15
|
+
get_plane_intersection(plane_position: any, plane_normal: any, NDC: any, camera: any): Vector3;
|
|
16
|
+
fit_points_on_camera(points: any, zoom_scale?: number): {
|
|
17
|
+
position: Vector3;
|
|
18
|
+
zoom: number;
|
|
19
|
+
};
|
|
20
|
+
get_zoom_to_fit_rect(width: any, height: any): number;
|
|
21
|
+
get_zoom_to_fit_box(bb: any, camera: any): number;
|
|
22
|
+
get_html_screen_pos(object: any, camera: any): Vector3;
|
|
23
|
+
world_pos_to_screen(pos: any, camera: any): Vector3;
|
|
24
|
+
update_projection(camera: any): void;
|
|
25
|
+
fit_bounding_box_points(camera: any, bb: any, scale?: number): {
|
|
26
|
+
zoom: number;
|
|
27
|
+
reference_position: Vector3;
|
|
28
|
+
camera_position: Vector3;
|
|
29
|
+
};
|
|
30
|
+
fit_points(camera: any, points: any, zoom_scale?: number): {
|
|
31
|
+
zoom: number;
|
|
32
|
+
reference_position: Vector3;
|
|
33
|
+
camera_position: Vector3;
|
|
34
|
+
};
|
|
35
|
+
reference_zoom: number;
|
|
36
|
+
}
|
|
37
|
+
import { Matrix4 } from "three/src/math/Matrix4";
|
|
38
|
+
import { Plane } from "three/src/math/Plane";
|
|
39
|
+
import { Ray } from "three/src/math/Ray";
|
|
40
|
+
import { Vector3 } from "three/src/math/Vector3";
|