ohzi-core 12.2.0 → 12.3.0
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/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/materials/AddMaterial.js +2 -2
- package/src/materials/GaussianBlurMaterial.js +9 -1
- package/src/materials/LuminosityHighPassMaterial.js +8 -1
- package/src/materials/UnrealBloomComposeMaterial.js +3 -2
- 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/render_mode/UnrealBloomRender.js +47 -38
- package/src/render_utilities/Blitter.js +3 -3
- package/src/render_utilities/GaussianBlurrer.js +33 -14
- package/src/shaders/add/add.frag +21 -2
- package/src/shaders/gaussian_blur/gaussian_blur.frag +23 -4
- package/src/shaders/gaussian_blur/unreal_bloom_compose.frag +17 -5
- package/src/shaders/luminosity_high_pass/luminosity_high_pass.frag +16 -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,36 +1,104 @@
|
|
|
1
|
-
export class ActionSequencer {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
1
|
+
export class ActionSequencer {
|
|
2
|
+
/**
|
|
3
|
+
* @param {any} [context]
|
|
4
|
+
*/
|
|
5
|
+
constructor(context?: any);
|
|
6
|
+
previous_elapsed_time: number;
|
|
7
|
+
elapsed_time: number;
|
|
8
|
+
playback_speed: number;
|
|
9
|
+
playing: boolean;
|
|
10
|
+
/** @type {{action:ActionEvent, trigger_time:number }[]} */
|
|
11
|
+
action_events: {
|
|
12
|
+
action: ActionEvent;
|
|
13
|
+
trigger_time: number;
|
|
14
|
+
}[];
|
|
15
|
+
context: any;
|
|
16
|
+
initial_context: any;
|
|
17
|
+
tmp_t: number;
|
|
18
|
+
/** @type {{[key:string]:any[]}} */
|
|
19
|
+
channels: {
|
|
20
|
+
[key: string]: any[];
|
|
21
|
+
};
|
|
22
|
+
duration: number;
|
|
23
|
+
play(): void;
|
|
24
|
+
stop(): void;
|
|
25
|
+
reset(): void;
|
|
26
|
+
skip(): void;
|
|
27
|
+
/**
|
|
28
|
+
* @param {number} delta_time
|
|
29
|
+
*/
|
|
30
|
+
update(delta_time: number): void;
|
|
31
|
+
/**
|
|
32
|
+
* @param {number} time
|
|
33
|
+
*/
|
|
34
|
+
set_progress(time: number): void;
|
|
35
|
+
/**
|
|
36
|
+
* @param {number} t
|
|
37
|
+
*/
|
|
38
|
+
set_normalized_progress(t: number): void;
|
|
39
|
+
get_progress(): number;
|
|
40
|
+
is_finished(): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* @param {number} trigger_time
|
|
43
|
+
* @param {ActionEvent} action
|
|
44
|
+
*/
|
|
45
|
+
add_action_event(trigger_time: number, action: ActionEvent): void;
|
|
46
|
+
/**
|
|
47
|
+
* @param {number} from
|
|
48
|
+
* @param {number} to
|
|
49
|
+
* @param {ActionInterpolator} interpolator
|
|
50
|
+
* @param {boolean} [use_dynamic_from_value]
|
|
51
|
+
*/
|
|
52
|
+
add_action_interpolator(from: number, to: number, interpolator: ActionInterpolator, use_dynamic_from_value?: boolean): void;
|
|
53
|
+
/**
|
|
54
|
+
* @param {string} name
|
|
55
|
+
*/
|
|
56
|
+
get_current_target_value(name: string): any;
|
|
57
|
+
/**
|
|
58
|
+
* @param {string} name
|
|
59
|
+
*/
|
|
60
|
+
get_current_starting_value(name: string): any;
|
|
61
|
+
/**
|
|
62
|
+
* @param {string} name
|
|
63
|
+
*/
|
|
64
|
+
get_current_progress(name: string): any;
|
|
65
|
+
get_duration(): number;
|
|
66
|
+
/**
|
|
67
|
+
* @param {number} from
|
|
68
|
+
* @param {number} to
|
|
69
|
+
*/
|
|
70
|
+
__play_clips(from: number, to: number): void;
|
|
71
|
+
/**
|
|
72
|
+
* @param {number} from
|
|
73
|
+
* @param {number} to
|
|
74
|
+
*/
|
|
75
|
+
__play_events(from: number, to: number): void;
|
|
76
|
+
/**
|
|
77
|
+
* @param {any} keyframe
|
|
78
|
+
* @param {number} time
|
|
79
|
+
*/
|
|
80
|
+
evaluate_keyframe(keyframe: any, time: number): any;
|
|
81
|
+
/**
|
|
82
|
+
* @param {string} channel_name
|
|
83
|
+
*/
|
|
84
|
+
get_keyframes(channel_name: string): any[];
|
|
85
|
+
/**
|
|
86
|
+
* @param {string} channel_name
|
|
87
|
+
*/
|
|
88
|
+
is_channel_redefined(channel_name: string): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* @param {number} value
|
|
91
|
+
* @param {number} from_range_start_value
|
|
92
|
+
* @param {number} from_range_end_value
|
|
93
|
+
* @returns {number}
|
|
94
|
+
*/
|
|
95
|
+
__linear_map_01(value: number, from_range_start_value: number, from_range_end_value: number): number;
|
|
96
|
+
/**
|
|
97
|
+
* @param {string} channel_name
|
|
98
|
+
* @param {number} time
|
|
99
|
+
*/
|
|
100
|
+
__get_current_keyframe(channel_name: string, time: number): any;
|
|
101
|
+
__get_playback_speed(): number;
|
|
102
|
+
}
|
|
103
|
+
import { ActionEvent } from "./ActionEvent";
|
|
104
|
+
import { ActionInterpolator } from "./ActionInterpolator";
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
export class NumberInterpolator extends ActionInterpolator {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
export class NumberInterpolator extends ActionInterpolator {
|
|
2
|
+
/**
|
|
3
|
+
* @param {string} attribute_name
|
|
4
|
+
* @param {number} [from]
|
|
5
|
+
* @param {number} [to]
|
|
6
|
+
* @param {boolean} [initial]
|
|
7
|
+
* @param {import('../utilities/EasingFunctions').EasingFunctionType | function} [easing_function]
|
|
8
|
+
*/
|
|
9
|
+
constructor(attribute_name: string, from?: number, to?: number, initial?: boolean, easing_function?: import('../utilities/EasingFunctions').EasingFunctionType | Function);
|
|
10
|
+
from: number;
|
|
11
|
+
to: number;
|
|
12
|
+
initial: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @param {number} t
|
|
15
|
+
*/
|
|
16
|
+
evaluate(t: number): number;
|
|
17
|
+
}
|
|
18
|
+
import { ActionInterpolator } from "./ActionInterpolator";
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
export class VectorInterpolator extends ActionInterpolator {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
1
|
+
export class VectorInterpolator extends ActionInterpolator {
|
|
2
|
+
/**
|
|
3
|
+
* @param {string} attribute_name
|
|
4
|
+
* @param {Vector3} [from]
|
|
5
|
+
* @param {Vector3} [to]
|
|
6
|
+
* @param {import('../utilities/EasingFunctions').EasingFunctionType | function} [easing_function]
|
|
7
|
+
*/
|
|
8
|
+
constructor(attribute_name: string, from?: Vector3, to?: Vector3, easing_function?: import('../utilities/EasingFunctions').EasingFunctionType | Function);
|
|
9
|
+
from: Vector3;
|
|
10
|
+
to: Vector3;
|
|
11
|
+
}
|
|
12
|
+
import { ActionInterpolator } from "./ActionInterpolator";
|
|
13
|
+
import { Vector3 } from "three/src/math/Vector3";
|
package/types/blitter_index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MedianFilter } from "./render_utilities/MedianFilter";
|
|
2
|
-
import { GaussianBlurrer } from "./render_utilities/GaussianBlurrer";
|
|
3
|
-
import { Blurrer } from "./render_utilities/Blurrer";
|
|
4
|
-
import { Blitter } from "./render_utilities/Blitter";
|
|
5
|
-
import { DualFilteringBlurMaterial } from "./materials/DualFilteringBlurMaterial";
|
|
6
|
-
export { MedianFilter, GaussianBlurrer, Blurrer, Blitter, DualFilteringBlurMaterial };
|
|
1
|
+
import { MedianFilter } from "./render_utilities/MedianFilter";
|
|
2
|
+
import { GaussianBlurrer } from "./render_utilities/GaussianBlurrer";
|
|
3
|
+
import { Blurrer } from "./render_utilities/Blurrer";
|
|
4
|
+
import { Blitter } from "./render_utilities/Blitter";
|
|
5
|
+
import { DualFilteringBlurMaterial } from "./materials/DualFilteringBlurMaterial";
|
|
6
|
+
export { MedianFilter, GaussianBlurrer, Blurrer, Blitter, DualFilteringBlurMaterial };
|
|
@@ -1,13 +1,51 @@
|
|
|
1
|
-
export class CanvasDrawer {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
1
|
+
export class CanvasDrawer {
|
|
2
|
+
/**
|
|
3
|
+
* @param {boolean} [uses_dynamic_font]
|
|
4
|
+
*/
|
|
5
|
+
constructor(uses_dynamic_font?: boolean);
|
|
6
|
+
uses_dynamic_font: boolean;
|
|
7
|
+
__textHeight: number;
|
|
8
|
+
canvas: HTMLCanvasElement;
|
|
9
|
+
ctx: CanvasRenderingContext2D;
|
|
10
|
+
getFontHeight(fontStyle?: string): number;
|
|
11
|
+
/**
|
|
12
|
+
* @param {string} text
|
|
13
|
+
* @param {string} font
|
|
14
|
+
*/
|
|
15
|
+
get_text_size(text: string, font?: string): Vector2;
|
|
16
|
+
/**
|
|
17
|
+
* @param {string} text
|
|
18
|
+
* @param {any} [ctxOptions]
|
|
19
|
+
*/
|
|
20
|
+
draw_canvas(text: string, ctxOptions?: any): HTMLCanvasElement;
|
|
21
|
+
/**
|
|
22
|
+
* @param {string} text
|
|
23
|
+
* @param {any} [ctxOptions]
|
|
24
|
+
*/
|
|
25
|
+
draw_on_texture(text: string, ctxOptions?: any): CanvasTexture;
|
|
26
|
+
/**
|
|
27
|
+
* @param {string[] | string} text
|
|
28
|
+
* @param {any} [ctxOptions]
|
|
29
|
+
* @param {HTMLCanvasElement} [canvas]
|
|
30
|
+
* @param {CanvasRenderingContext2D} [ctx]
|
|
31
|
+
*/
|
|
32
|
+
__draw(text: string[] | string, ctxOptions?: any, canvas?: HTMLCanvasElement, ctx?: CanvasRenderingContext2D): void;
|
|
33
|
+
/**
|
|
34
|
+
* @param {CanvasRenderingContext2D} ctx
|
|
35
|
+
* @param {number} x
|
|
36
|
+
* @param {number} y
|
|
37
|
+
* @param {number} width
|
|
38
|
+
* @param {number} height
|
|
39
|
+
* @param {number | {tl:number, tr:number, br:number, bl:number}} radius
|
|
40
|
+
* @param {boolean} fill
|
|
41
|
+
* @param {boolean} stroke
|
|
42
|
+
*/
|
|
43
|
+
roundRect(ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, radius: number | {
|
|
44
|
+
tl: number;
|
|
45
|
+
tr: number;
|
|
46
|
+
br: number;
|
|
47
|
+
bl: number;
|
|
48
|
+
}, fill: boolean, stroke: boolean): void;
|
|
49
|
+
}
|
|
50
|
+
import { Vector2 } from "three/src/math/Vector2";
|
|
51
|
+
import { CanvasTexture } from "three/src/textures/CanvasTexture";
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
export class MultiLineTextDrawer extends CanvasDrawer {
|
|
2
|
-
constructor();
|
|
3
|
-
text_margin:
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export class MultiLineTextDrawer extends CanvasDrawer {
|
|
2
|
+
constructor();
|
|
3
|
+
text_margin: Vector2;
|
|
4
|
+
/**
|
|
5
|
+
* @param {string[]} text_array
|
|
6
|
+
* @param {any} [ctxOptions]
|
|
7
|
+
* @param {HTMLCanvasElement} [canvas]
|
|
8
|
+
* @param {CanvasRenderingContext2D} [ctx]
|
|
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,6 +1,13 @@
|
|
|
1
|
-
export class SimpleTextDrawer extends CanvasDrawer {
|
|
2
|
-
constructor();
|
|
3
|
-
text_margin:
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
1
|
+
export class SimpleTextDrawer extends CanvasDrawer {
|
|
2
|
+
constructor();
|
|
3
|
+
text_margin: Vector2;
|
|
4
|
+
/**
|
|
5
|
+
* @param {string} text
|
|
6
|
+
* @param {any} [ctxOptions]
|
|
7
|
+
* @param {HTMLCanvasElement} [canvas]
|
|
8
|
+
* @param {CanvasRenderingContext2D} [ctx]
|
|
9
|
+
*/
|
|
10
|
+
__draw(text: string, ctxOptions?: any, canvas?: HTMLCanvasElement, ctx?: CanvasRenderingContext2D): void;
|
|
11
|
+
}
|
|
12
|
+
import { CanvasDrawer } from "./CanvasDrawer";
|
|
13
|
+
import { Vector2 } from "three/src/math/Vector2";
|
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
export class AudioClip {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
export class AudioClip {
|
|
2
|
+
/**
|
|
3
|
+
* @param {AudioBuffer} buffer
|
|
4
|
+
* @param {boolean} [loop]
|
|
5
|
+
* @param {number} [volume]
|
|
6
|
+
* @param {boolean} [positional]
|
|
7
|
+
*/
|
|
8
|
+
constructor(buffer: AudioBuffer, loop?: boolean, volume?: number, positional?: boolean);
|
|
9
|
+
buffer: AudioBuffer;
|
|
10
|
+
loop: boolean;
|
|
11
|
+
volume: number;
|
|
12
|
+
positional: boolean;
|
|
13
|
+
audio: TPositionalAudio | TAudio<GainNode>;
|
|
14
|
+
/**
|
|
15
|
+
* @param {AudioListener} audio_listener
|
|
16
|
+
*/
|
|
17
|
+
init(audio_listener: AudioListener): void;
|
|
18
|
+
play(): void;
|
|
19
|
+
pause(): void;
|
|
20
|
+
stop(): void;
|
|
21
|
+
get is_playing(): boolean;
|
|
22
|
+
}
|
|
23
|
+
import { PositionalAudio as TPositionalAudio } from "three/src/audio/PositionalAudio";
|
|
24
|
+
import { Audio as TAudio } from "three/src/audio/Audio";
|
|
25
|
+
import { AudioListener } from "three/src/audio/AudioListener";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export class AxisHelper {
|
|
2
|
-
constructor(scale?: number);
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
export class AxisHelper extends Object3D<import("three").Object3DEventMap> {
|
|
2
|
+
constructor(scale?: number);
|
|
3
|
+
update(): void;
|
|
4
|
+
dispose(): void;
|
|
5
|
+
}
|
|
6
|
+
import { Object3D } from "three/src/core/Object3D";
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
export class BaseObject {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export class BaseObject extends Object3D<import("three").Object3DEventMap> {
|
|
2
|
+
constructor();
|
|
3
|
+
___temp_w_pos: Vector3;
|
|
4
|
+
get_world_pos(): Vector3;
|
|
5
|
+
/**
|
|
6
|
+
* @param {Object3D | Mesh} obj
|
|
7
|
+
*/
|
|
8
|
+
deep_dispose(obj: Object3D | Mesh): void;
|
|
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,13 +1,42 @@
|
|
|
1
|
-
export class EdgeMesh {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
1
|
+
export class EdgeMesh extends Object3D<import("three").Object3DEventMap> {
|
|
2
|
+
/**
|
|
3
|
+
* @param {BufferGeometry} buffer_geometry
|
|
4
|
+
* @param {number} [thickness]
|
|
5
|
+
* @param {string} [color]
|
|
6
|
+
*/
|
|
7
|
+
constructor(buffer_geometry: BufferGeometry, thickness?: number, color?: string);
|
|
8
|
+
edges_material: ShaderMaterial;
|
|
9
|
+
corners_material: ShaderMaterial;
|
|
10
|
+
edges_mesh: Mesh<BufferGeometry<import("three").NormalBufferAttributes>, ShaderMaterial, import("three").Object3DEventMap>;
|
|
11
|
+
corners_mesh: Mesh<BufferGeometry<import("three").NormalBufferAttributes>, ShaderMaterial, import("three").Object3DEventMap>;
|
|
12
|
+
/**
|
|
13
|
+
* @param {BufferGeometry} cube_geometry
|
|
14
|
+
* @returns {Vector3[]}
|
|
15
|
+
*/
|
|
16
|
+
__get_edges(cube_geometry: BufferGeometry): Vector3[];
|
|
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,4 +1,12 @@
|
|
|
1
|
-
export class GeometryEdgeVisualizer {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
export class GeometryEdgeVisualizer extends Mesh<BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap> {
|
|
2
|
+
/**
|
|
3
|
+
* @param {BufferGeometry} geometry
|
|
4
|
+
* @param {string | number} [line_color]
|
|
5
|
+
*/
|
|
6
|
+
constructor(geometry: BufferGeometry, line_color?: string | number);
|
|
7
|
+
material: ShaderMaterial;
|
|
8
|
+
hide_faces(): void;
|
|
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,2 +1,4 @@
|
|
|
1
|
-
export class Grid {
|
|
2
|
-
|
|
1
|
+
export class Grid extends Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap> {
|
|
2
|
+
constructor();
|
|
3
|
+
}
|
|
4
|
+
import { Mesh } from "three/src/objects/Mesh";
|
|
@@ -1,16 +1,42 @@
|
|
|
1
|
-
export class Line {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
set
|
|
14
|
-
get
|
|
15
|
-
|
|
16
|
-
}
|
|
1
|
+
export class Line extends Mesh<BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap> {
|
|
2
|
+
/**
|
|
3
|
+
* @param {Vector3[]} [points]
|
|
4
|
+
*/
|
|
5
|
+
constructor(points?: Vector3[]);
|
|
6
|
+
material: ShaderMaterial;
|
|
7
|
+
/**
|
|
8
|
+
* @param {Vector3[]} points
|
|
9
|
+
*/
|
|
10
|
+
setup(points: Vector3[]): void;
|
|
11
|
+
_length: number;
|
|
12
|
+
accumulated_length: number;
|
|
13
|
+
set thickness(arg: any);
|
|
14
|
+
get thickness(): any;
|
|
15
|
+
/**
|
|
16
|
+
* @param {Vector3[]} points
|
|
17
|
+
* @param {number} i
|
|
18
|
+
* @returns {Vector3}
|
|
19
|
+
*/
|
|
20
|
+
__get_previous_position(points: Vector3[], i: number): Vector3;
|
|
21
|
+
/**
|
|
22
|
+
* @param {Vector3[]} points
|
|
23
|
+
* @param {number} i
|
|
24
|
+
* @returns {Vector3}
|
|
25
|
+
*/
|
|
26
|
+
__get_next_position(points: Vector3[], i: number): Vector3;
|
|
27
|
+
update(): void;
|
|
28
|
+
distance(): number;
|
|
29
|
+
total_length(): number;
|
|
30
|
+
dispose(): void;
|
|
31
|
+
set color(arg: any);
|
|
32
|
+
get color(): any;
|
|
33
|
+
/**
|
|
34
|
+
* @param {Color} col
|
|
35
|
+
*/
|
|
36
|
+
copy_color(col: Color): void;
|
|
37
|
+
}
|
|
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,4 +1,10 @@
|
|
|
1
|
-
export class MultiLinePath {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export class MultiLinePath extends Object3D<import("three").Object3DEventMap> {
|
|
2
|
+
/**
|
|
3
|
+
* @param {Array<Vector3[]>} paths
|
|
4
|
+
*/
|
|
5
|
+
constructor(paths: Array<Vector3[]>);
|
|
6
|
+
paths: Line[];
|
|
7
|
+
}
|
|
8
|
+
import { Object3D } from "three/src/core/Object3D";
|
|
9
|
+
import { Line } from "./Line";
|
|
10
|
+
import { Vector3 } from "three/src/math/Vector3";
|
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
export class MultiLineText2D {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
export class MultiLineText2D extends Object3D<import("three").Object3DEventMap> {
|
|
2
|
+
/**
|
|
3
|
+
* @param {string[]} text_array
|
|
4
|
+
* @param {string} [font]
|
|
5
|
+
* @param {string | number} [color]
|
|
6
|
+
* @param {Vector2} [pivot]
|
|
7
|
+
* @param {boolean} [is_static]
|
|
8
|
+
*/
|
|
9
|
+
constructor(text_array: string[], font?: string, color?: string | number, pivot?: Vector2, is_static?: boolean);
|
|
10
|
+
text_array: Text2D[];
|
|
11
|
+
update_text_positions(): void;
|
|
12
|
+
set texts(arg: string[]);
|
|
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,3 +1,8 @@
|
|
|
1
|
-
export class ObjectAxis {
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
export class ObjectAxis extends Object3D<import("three").Object3DEventMap> {
|
|
2
|
+
/**
|
|
3
|
+
* @param {Object3D} obj
|
|
4
|
+
* @param {number} [size]
|
|
5
|
+
*/
|
|
6
|
+
constructor(obj: Object3D, size?: number);
|
|
7
|
+
}
|
|
8
|
+
import { Object3D } from "three/src/core/Object3D";
|
|
@@ -1,18 +1,45 @@
|
|
|
1
|
-
export class ObjectOrientedBoundingBox {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
1
|
+
export class ObjectOrientedBoundingBox {
|
|
2
|
+
/**
|
|
3
|
+
* @param {Vector3[]} points
|
|
4
|
+
*/
|
|
5
|
+
constructor(points: Vector3[]);
|
|
6
|
+
axis_to_world: Quaternion;
|
|
7
|
+
world_to_axis: Quaternion;
|
|
8
|
+
min: Vector3;
|
|
9
|
+
max: Vector3;
|
|
10
|
+
center: Vector3;
|
|
11
|
+
bounds: Vector3[];
|
|
12
|
+
/**
|
|
13
|
+
* @param {Vector3[]} points
|
|
14
|
+
*/
|
|
15
|
+
get_center(points: Vector3[]): Vector3;
|
|
16
|
+
/**
|
|
17
|
+
* @param {Vector3} min
|
|
18
|
+
* @param {Vector3} max
|
|
19
|
+
*/
|
|
20
|
+
box_volume(min: Vector3, max: Vector3): number;
|
|
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";
|