@vista3d/mcp 0.0.0-stage → 0.1.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/LICENSE +12 -0
- package/README.md +73 -2
- package/README.zh-CN.md +74 -0
- package/data/.gitkeep +0 -0
- package/data/api-index.json +16116 -0
- package/data/search-index.json +71479 -0
- package/data/typedoc-md/core/README.md +359 -0
- package/data/typedoc-md/core/classes/AmbientLight.md +755 -0
- package/data/typedoc-md/core/classes/Animation.md +681 -0
- package/data/typedoc-md/core/classes/AnimationController.md +195 -0
- package/data/typedoc-md/core/classes/AnimationCurve.md +287 -0
- package/data/typedoc-md/core/classes/AnimationCurveKeyframe.md +148 -0
- package/data/typedoc-md/core/classes/Annotation.md +1466 -0
- package/data/typedoc-md/core/classes/AutoExposureNode.md +269 -0
- package/data/typedoc-md/core/classes/Background.md +77 -0
- package/data/typedoc-md/core/classes/BoolUpdateFlag.md +145 -0
- package/data/typedoc-md/core/classes/Camera.md +1264 -0
- package/data/typedoc-md/core/classes/ClipAnimationController.md +1192 -0
- package/data/typedoc-md/core/classes/ClipPlaneUpdater.md +1075 -0
- package/data/typedoc-md/core/classes/Color4.md +499 -0
- package/data/typedoc-md/core/classes/ColorGradingNode.md +157 -0
- package/data/typedoc-md/core/classes/Command.md +69 -0
- package/data/typedoc-md/core/classes/CommandGroup.md +122 -0
- package/data/typedoc-md/core/classes/CommandHistory.md +445 -0
- package/data/typedoc-md/core/classes/Component.md +592 -0
- package/data/typedoc-md/core/classes/ComponentsDependencies.md +174 -0
- package/data/typedoc-md/core/classes/ComponentsManager.md +820 -0
- package/data/typedoc-md/core/classes/Controls.md +1308 -0
- package/data/typedoc-md/core/classes/DirectionalLight.md +1073 -0
- package/data/typedoc-md/core/classes/DisorderedArray.md +394 -0
- package/data/typedoc-md/core/classes/DitherNode.md +141 -0
- package/data/typedoc-md/core/classes/Engine.md +997 -0
- package/data/typedoc-md/core/classes/EngineObject.md +264 -0
- package/data/typedoc-md/core/classes/Entity.md +1014 -0
- package/data/typedoc-md/core/classes/Environment.md +159 -0
- package/data/typedoc-md/core/classes/EventDispatcher.md +215 -0
- package/data/typedoc-md/core/classes/GLTFParser.md +278 -0
- package/data/typedoc-md/core/classes/GLTFResource.md +465 -0
- package/data/typedoc-md/core/classes/GeometryResource.md +355 -0
- package/data/typedoc-md/core/classes/GlyphAtlas.md +180 -0
- package/data/typedoc-md/core/classes/Gradient.md +702 -0
- package/data/typedoc-md/core/classes/GradientAlphaKey.md +70 -0
- package/data/typedoc-md/core/classes/GradientColorKey.md +74 -0
- package/data/typedoc-md/core/classes/GrainNode.md +155 -0
- package/data/typedoc-md/core/classes/HemisphereLight.md +795 -0
- package/data/typedoc-md/core/classes/InstancedModelRenderer.md +2720 -0
- package/data/typedoc-md/core/classes/KarisBloomNode.md +171 -0
- package/data/typedoc-md/core/classes/LUTResource.md +356 -0
- package/data/typedoc-md/core/classes/Label.md +3086 -0
- package/data/typedoc-md/core/classes/LensFlareNode.md +257 -0
- package/data/typedoc-md/core/classes/LightProbe.md +179 -0
- package/data/typedoc-md/core/classes/LightProbeGroup.md +271 -0
- package/data/typedoc-md/core/classes/LinearPicker.md +263 -0
- package/data/typedoc-md/core/classes/Logger.md +151 -0
- package/data/typedoc-md/core/classes/MaterialResource.md +397 -0
- package/data/typedoc-md/core/classes/MemoryEstimator.md +290 -0
- package/data/typedoc-md/core/classes/MeshRenderer.md +2581 -0
- package/data/typedoc-md/core/classes/MinMaxCurve.md +392 -0
- package/data/typedoc-md/core/classes/MinMaxGradient.md +385 -0
- package/data/typedoc-md/core/classes/ModelRenderer.md +2715 -0
- package/data/typedoc-md/core/classes/Module.md +269 -0
- package/data/typedoc-md/core/classes/OrbitControls.md +2015 -0
- package/data/typedoc-md/core/classes/OrthographicCamera.md +1505 -0
- package/data/typedoc-md/core/classes/ParallelLight.md +941 -0
- package/data/typedoc-md/core/classes/PerspectiveCamera.md +1525 -0
- package/data/typedoc-md/core/classes/Picker.md +209 -0
- package/data/typedoc-md/core/classes/PointLight.md +1108 -0
- package/data/typedoc-md/core/classes/Queue.md +159 -0
- package/data/typedoc-md/core/classes/Random.md +140 -0
- package/data/typedoc-md/core/classes/RectAreaLight.md +1048 -0
- package/data/typedoc-md/core/classes/RectangleCulling.md +310 -0
- package/data/typedoc-md/core/classes/RenderDebugInfo.md +144 -0
- package/data/typedoc-md/core/classes/Renderer.md +2324 -0
- package/data/typedoc-md/core/classes/Resource.md +313 -0
- package/data/typedoc-md/core/classes/ResourceManager.md +1214 -0
- package/data/typedoc-md/core/classes/ResourceRef.md +124 -0
- package/data/typedoc-md/core/classes/SDFGlyphGenerator.md +183 -0
- package/data/typedoc-md/core/classes/SSFNode.md +377 -0
- package/data/typedoc-md/core/classes/Scene.md +1089 -0
- package/data/typedoc-md/core/classes/SceneCoordinateSystem.md +442 -0
- package/data/typedoc-md/core/classes/SceneRenderer.md +409 -0
- package/data/typedoc-md/core/classes/Script.md +934 -0
- package/data/typedoc-md/core/classes/ScriptableSceneRenderer.md +540 -0
- package/data/typedoc-md/core/classes/ShaderChunk.md +93 -0
- package/data/typedoc-md/core/classes/SkyBackground.md +157 -0
- package/data/typedoc-md/core/classes/SolidColorBackground.md +117 -0
- package/data/typedoc-md/core/classes/SpotLight.md +1324 -0
- package/data/typedoc-md/core/classes/TaskController.md +249 -0
- package/data/typedoc-md/core/classes/TextureAtlas.md +173 -0
- package/data/typedoc-md/core/classes/TextureBackground.md +174 -0
- package/data/typedoc-md/core/classes/TextureResource.md +358 -0
- package/data/typedoc-md/core/classes/TiltedViewClipPlaneEstimator.md +591 -0
- package/data/typedoc-md/core/classes/TopDownClipPlaneEstimator.md +512 -0
- package/data/typedoc-md/core/classes/Transform.md +1893 -0
- package/data/typedoc-md/core/classes/UniformsLib.md +189 -0
- package/data/typedoc-md/core/classes/UpdateFlag.md +111 -0
- package/data/typedoc-md/core/classes/UpdateFlagManager.md +223 -0
- package/data/typedoc-md/core/classes/ValueNoise.md +164 -0
- package/data/typedoc-md/core/classes/WebGLEngine.md +1166 -0
- package/data/typedoc-md/core/classes/WebGPUEngine.md +1154 -0
- package/data/typedoc-md/core/classes/WorkerCrashedError.md +93 -0
- package/data/typedoc-md/core/classes/WorkerDefinitionNotFoundError.md +49 -0
- package/data/typedoc-md/core/classes/WorkerManager.md +266 -0
- package/data/typedoc-md/core/classes/WorkerPool.md +93 -0
- package/data/typedoc-md/core/classes/WorkerPoolDisposedError.md +49 -0
- package/data/typedoc-md/core/classes/WorkerRegistry.md +162 -0
- package/data/typedoc-md/core/classes/WorkerTaskAbortedError.md +55 -0
- package/data/typedoc-md/core/classes/WorkerTaskExecutionError.md +114 -0
- package/data/typedoc-md/core/classes/WorkerTaskTimeoutError.md +61 -0
- package/data/typedoc-md/core/enumerations/BackgroundType.md +45 -0
- package/data/typedoc-md/core/enumerations/CommandHistoryEventType.md +63 -0
- package/data/typedoc-md/core/enumerations/DependentMode.md +29 -0
- package/data/typedoc-md/core/enumerations/EasingName.md +632 -0
- package/data/typedoc-md/core/enumerations/EventType.md +153 -0
- package/data/typedoc-md/core/enumerations/GradientMode.md +48 -0
- package/data/typedoc-md/core/enumerations/HorizontalOrigin.md +39 -0
- package/data/typedoc-md/core/enumerations/InterpolationMode.md +67 -0
- package/data/typedoc-md/core/enumerations/LogLevel.md +63 -0
- package/data/typedoc-md/core/enumerations/MinMaxCurveMode.md +67 -0
- package/data/typedoc-md/core/enumerations/MinMaxGradientMode.md +101 -0
- package/data/typedoc-md/core/enumerations/Priority.md +45 -0
- package/data/typedoc-md/core/enumerations/QueryMask.md +360 -0
- package/data/typedoc-md/core/enumerations/RenderOrder.md +43 -0
- package/data/typedoc-md/core/enumerations/TextAlign.md +45 -0
- package/data/typedoc-md/core/enumerations/VerticalOrigin.md +39 -0
- package/data/typedoc-md/core/enumerations/WeightedMode.md +81 -0
- package/data/typedoc-md/core/enumerations/WrapMode.md +100 -0
- package/data/typedoc-md/core/functions/assert.md +37 -0
- package/data/typedoc-md/core/functions/autoExposure.md +40 -0
- package/data/typedoc-md/core/functions/backIn.md +33 -0
- package/data/typedoc-md/core/functions/backInOut.md +34 -0
- package/data/typedoc-md/core/functions/backOut.md +33 -0
- package/data/typedoc-md/core/functions/bounceIn.md +33 -0
- package/data/typedoc-md/core/functions/bounceInOut.md +33 -0
- package/data/typedoc-md/core/functions/bounceOut.md +32 -0
- package/data/typedoc-md/core/functions/circIn.md +33 -0
- package/data/typedoc-md/core/functions/circInOut.md +34 -0
- package/data/typedoc-md/core/functions/circOut.md +33 -0
- package/data/typedoc-md/core/functions/collectMaterialTextureBindings.md +40 -0
- package/data/typedoc-md/core/functions/collectTransferables.md +37 -0
- package/data/typedoc-md/core/functions/colorGrading.md +31 -0
- package/data/typedoc-md/core/functions/constant.md +24 -0
- package/data/typedoc-md/core/functions/createErrorEnvelope.md +41 -0
- package/data/typedoc-md/core/functions/createEventEnvelope.md +50 -0
- package/data/typedoc-md/core/functions/createRequestEnvelope.md +47 -0
- package/data/typedoc-md/core/functions/createResultEnvelope.md +47 -0
- package/data/typedoc-md/core/functions/createTextureLoader.md +29 -0
- package/data/typedoc-md/core/functions/createWorkerEndpoint.md +54 -0
- package/data/typedoc-md/core/functions/createWorkerTransferResult.md +41 -0
- package/data/typedoc-md/core/functions/cubicIn.md +32 -0
- package/data/typedoc-md/core/functions/cubicInOut.md +32 -0
- package/data/typedoc-md/core/functions/cubicOut.md +32 -0
- package/data/typedoc-md/core/functions/curlNoise2D.md +38 -0
- package/data/typedoc-md/core/functions/curlNoise3D.md +39 -0
- package/data/typedoc-md/core/functions/defaultValue.md +35 -0
- package/data/typedoc-md/core/functions/defined.md +35 -0
- package/data/typedoc-md/core/functions/dependentComponents.md +79 -0
- package/data/typedoc-md/core/functions/deserializeError.md +41 -0
- package/data/typedoc-md/core/functions/dither.md +34 -0
- package/data/typedoc-md/core/functions/elasticIn.md +34 -0
- package/data/typedoc-md/core/functions/elasticInOut.md +34 -0
- package/data/typedoc-md/core/functions/elasticOut.md +34 -0
- package/data/typedoc-md/core/functions/expoIn.md +32 -0
- package/data/typedoc-md/core/functions/expoInOut.md +33 -0
- package/data/typedoc-md/core/functions/expoOut.md +32 -0
- package/data/typedoc-md/core/functions/fade.md +33 -0
- package/data/typedoc-md/core/functions/fbm.md +39 -0
- package/data/typedoc-md/core/functions/getEasingFunction.md +39 -0
- package/data/typedoc-md/core/functions/grain.md +34 -0
- package/data/typedoc-md/core/functions/isWorkerMessageEnvelope.md +29 -0
- package/data/typedoc-md/core/functions/isWorkerTransferResult.md +35 -0
- package/data/typedoc-md/core/functions/karisBloom.md +33 -0
- package/data/typedoc-md/core/functions/lensFlare.md +52 -0
- package/data/typedoc-md/core/functions/linear.md +32 -0
- package/data/typedoc-md/core/functions/normalizePositiveNumber.md +33 -0
- package/data/typedoc-md/core/functions/packUnorm16.md +32 -0
- package/data/typedoc-md/core/functions/packUnorm8.md +32 -0
- package/data/typedoc-md/core/functions/pingPong.md +38 -0
- package/data/typedoc-md/core/functions/pixelHash.md +50 -0
- package/data/typedoc-md/core/functions/propertyChanged.md +29 -0
- package/data/typedoc-md/core/functions/pseudoRandom.md +29 -0
- package/data/typedoc-md/core/functions/pseudoRandomRange.md +41 -0
- package/data/typedoc-md/core/functions/pseudoRandomRangeInt.md +41 -0
- package/data/typedoc-md/core/functions/quadIn.md +32 -0
- package/data/typedoc-md/core/functions/quadInOut.md +32 -0
- package/data/typedoc-md/core/functions/quadOut.md +32 -0
- package/data/typedoc-md/core/functions/quartIn.md +32 -0
- package/data/typedoc-md/core/functions/quartInOut.md +32 -0
- package/data/typedoc-md/core/functions/quartOut.md +32 -0
- package/data/typedoc-md/core/functions/quickSort.md +51 -0
- package/data/typedoc-md/core/functions/quintIn.md +32 -0
- package/data/typedoc-md/core/functions/quintInOut.md +32 -0
- package/data/typedoc-md/core/functions/quintOut.md +32 -0
- package/data/typedoc-md/core/functions/random.md +21 -0
- package/data/typedoc-md/core/functions/randomRange.md +35 -0
- package/data/typedoc-md/core/functions/randomRangeInt.md +35 -0
- package/data/typedoc-md/core/functions/removeFromArray.md +35 -0
- package/data/typedoc-md/core/functions/repeat.md +38 -0
- package/data/typedoc-md/core/functions/ridgedNoise.md +38 -0
- package/data/typedoc-md/core/functions/serializeError.md +31 -0
- package/data/typedoc-md/core/functions/setRandomFunc.md +35 -0
- package/data/typedoc-md/core/functions/sineIn.md +32 -0
- package/data/typedoc-md/core/functions/sineInOut.md +32 -0
- package/data/typedoc-md/core/functions/sineOut.md +32 -0
- package/data/typedoc-md/core/functions/smooth.md +33 -0
- package/data/typedoc-md/core/functions/ssf.md +39 -0
- package/data/typedoc-md/core/interfaces/AmbientLightParams.md +79 -0
- package/data/typedoc-md/core/interfaces/AnimationParams.md +67 -0
- package/data/typedoc-md/core/interfaces/AnnotationParams.md +242 -0
- package/data/typedoc-md/core/interfaces/BackgroundParams.md +53 -0
- package/data/typedoc-md/core/interfaces/CameraParams.md +238 -0
- package/data/typedoc-md/core/interfaces/ClipPlaneRange.md +86 -0
- package/data/typedoc-md/core/interfaces/ClipPlaneUpdaterParams.md +95 -0
- package/data/typedoc-md/core/interfaces/CloudSample.md +94 -0
- package/data/typedoc-md/core/interfaces/CommandHistoryEvent.md +43 -0
- package/data/typedoc-md/core/interfaces/CommandHistoryParams.md +29 -0
- package/data/typedoc-md/core/interfaces/ComponentParams.md +60 -0
- package/data/typedoc-md/core/interfaces/ComputeInfo.md +43 -0
- package/data/typedoc-md/core/interfaces/ControlsParams.md +80 -0
- package/data/typedoc-md/core/interfaces/CreateTaskOptions.md +105 -0
- package/data/typedoc-md/core/interfaces/DebugInfo.md +71 -0
- package/data/typedoc-md/core/interfaces/DirectionalLightParams.md +135 -0
- package/data/typedoc-md/core/interfaces/EngineParams.md +71 -0
- package/data/typedoc-md/core/interfaces/EntityParams.md +75 -0
- package/data/typedoc-md/core/interfaces/EnvironmentParams.md +81 -0
- package/data/typedoc-md/core/interfaces/FogParams.md +118 -0
- package/data/typedoc-md/core/interfaces/FramebufferCaptureParams.md +73 -0
- package/data/typedoc-md/core/interfaces/GLTFParserParams.md +188 -0
- package/data/typedoc-md/core/interfaces/GlyphAtlasBlock.md +87 -0
- package/data/typedoc-md/core/interfaces/GlyphAtlasParams.md +89 -0
- package/data/typedoc-md/core/interfaces/HemisphereLightParams.md +93 -0
- package/data/typedoc-md/core/interfaces/IClipPlaneEstimator.md +93 -0
- package/data/typedoc-md/core/interfaces/InstancedGLTFParserParams.md +177 -0
- package/data/typedoc-md/core/interfaces/InstancedModelRendererParams.md +203 -0
- package/data/typedoc-md/core/interfaces/LabelImageParams.md +119 -0
- package/data/typedoc-md/core/interfaces/LabelParams.md +374 -0
- package/data/typedoc-md/core/interfaces/LabelTextOutlineParams.md +49 -0
- package/data/typedoc-md/core/interfaces/LabelTextParams.md +153 -0
- package/data/typedoc-md/core/interfaces/LightProbeGroupParams.md +200 -0
- package/data/typedoc-md/core/interfaces/LightProbeParams.md +72 -0
- package/data/typedoc-md/core/interfaces/LightShadowParams.md +137 -0
- package/data/typedoc-md/core/interfaces/MaterialTextureBinding.md +86 -0
- package/data/typedoc-md/core/interfaces/MemoryEstimateOptions.md +46 -0
- package/data/typedoc-md/core/interfaces/MemoryInfo.md +155 -0
- package/data/typedoc-md/core/interfaces/MemoryUsage.md +94 -0
- package/data/typedoc-md/core/interfaces/MemoryUsageBreakdown.md +59 -0
- package/data/typedoc-md/core/interfaces/MeshRendererParams.md +157 -0
- package/data/typedoc-md/core/interfaces/ModelRendererParams.md +188 -0
- package/data/typedoc-md/core/interfaces/ModuleParams.md +21 -0
- package/data/typedoc-md/core/interfaces/OrbitControlsParams.md +549 -0
- package/data/typedoc-md/core/interfaces/OrthographicCameraParams.md +299 -0
- package/data/typedoc-md/core/interfaces/ParallelLightParams.md +122 -0
- package/data/typedoc-md/core/interfaces/PendingWorkerTask.md +49 -0
- package/data/typedoc-md/core/interfaces/PerspectiveCameraParams.md +299 -0
- package/data/typedoc-md/core/interfaces/PickResult.md +53 -0
- package/data/typedoc-md/core/interfaces/PickerParams.md +27 -0
- package/data/typedoc-md/core/interfaces/PointLightParams.md +177 -0
- package/data/typedoc-md/core/interfaces/RectAreaLightParams.md +177 -0
- package/data/typedoc-md/core/interfaces/RectangleCullingItem.md +123 -0
- package/data/typedoc-md/core/interfaces/RectangleCullingParticipant.md +59 -0
- package/data/typedoc-md/core/interfaces/RectangleCullingRect.md +92 -0
- package/data/typedoc-md/core/interfaces/RenderInfo.md +99 -0
- package/data/typedoc-md/core/interfaces/RenderParams.md +117 -0
- package/data/typedoc-md/core/interfaces/RendererParams.md +120 -0
- package/data/typedoc-md/core/interfaces/ResourceManagerMemoryStats.md +141 -0
- package/data/typedoc-md/core/interfaces/ResourceManagerParams.md +85 -0
- package/data/typedoc-md/core/interfaces/SDFFont.md +85 -0
- package/data/typedoc-md/core/interfaces/SDFGlyph.md +130 -0
- package/data/typedoc-md/core/interfaces/SDFGlyphGeneratorParams.md +55 -0
- package/data/typedoc-md/core/interfaces/SRSDescriptor.md +50 -0
- package/data/typedoc-md/core/interfaces/SceneParams.md +145 -0
- package/data/typedoc-md/core/interfaces/ScriptableSceneRendererParams.md +105 -0
- package/data/typedoc-md/core/interfaces/SerializedWorkerError.md +74 -0
- package/data/typedoc-md/core/interfaces/SpotLightParams.md +219 -0
- package/data/typedoc-md/core/interfaces/TextureAtlasBlock.md +59 -0
- package/data/typedoc-md/core/interfaces/TextureAtlasParams.md +75 -0
- package/data/typedoc-md/core/interfaces/TextureBackgroundParams.md +81 -0
- package/data/typedoc-md/core/interfaces/TiltedViewClipPlaneEstimatorParams.md +231 -0
- package/data/typedoc-md/core/interfaces/TopDownClipPlaneEstimatorParams.md +180 -0
- package/data/typedoc-md/core/interfaces/TransformParams.md +135 -0
- package/data/typedoc-md/core/interfaces/Transformation.md +85 -0
- package/data/typedoc-md/core/interfaces/WebGLParams.md +161 -0
- package/data/typedoc-md/core/interfaces/WebGPUParams.md +181 -0
- package/data/typedoc-md/core/interfaces/WorkerDefinition.md +134 -0
- package/data/typedoc-md/core/interfaces/WorkerEndpointContext.md +88 -0
- package/data/typedoc-md/core/interfaces/WorkerLease.md +71 -0
- package/data/typedoc-md/core/interfaces/WorkerManagerLike.md +167 -0
- package/data/typedoc-md/core/interfaces/WorkerManagerOptions.md +73 -0
- package/data/typedoc-md/core/interfaces/WorkerMessageEnvelope.md +109 -0
- package/data/typedoc-md/core/interfaces/WorkerRunOptions.md +43 -0
- package/data/typedoc-md/core/interfaces/WorkerTaskRequest.md +80 -0
- package/data/typedoc-md/core/interfaces/WorkerTransferResult.md +69 -0
- package/data/typedoc-md/core/type-aliases/ComponentConstructor.md +37 -0
- package/data/typedoc-md/core/type-aliases/ComponentCtor.md +43 -0
- package/data/typedoc-md/core/type-aliases/IsOptional.md +25 -0
- package/data/typedoc-md/core/type-aliases/MaterialTextureBindingKind.md +15 -0
- package/data/typedoc-md/core/type-aliases/ModuleConstructor.md +40 -0
- package/data/typedoc-md/core/type-aliases/ModuleCtor.md +46 -0
- package/data/typedoc-md/core/type-aliases/PickerConstructor.md +37 -0
- package/data/typedoc-md/core/type-aliases/PickerCtor.md +45 -0
- package/data/typedoc-md/core/type-aliases/ScriptableRenderCallback.md +31 -0
- package/data/typedoc-md/core/type-aliases/SkyBackgroundParams.md +15 -0
- package/data/typedoc-md/core/type-aliases/SubscriberCallbackFn.md +28 -0
- package/data/typedoc-md/core/type-aliases/WorkerEndpointHandler.md +43 -0
- package/data/typedoc-md/core/type-aliases/WorkerFactory.md +23 -0
- package/data/typedoc-md/core/type-aliases/WorkerMessageKind.md +17 -0
- package/data/typedoc-md/core/type-aliases/WorkerStrategy.md +22 -0
- package/data/typedoc-md/core/variables/CORE_VERSION.md +11 -0
- package/data/typedoc-md/core/variables/DEV.md +13 -0
- package/data/typedoc-md/core/variables/EARTH_MAX_BUILDING_HEIGHT.md +17 -0
- package/data/typedoc-md/core/variables/EARTH_PERIMETER.md +19 -0
- package/data/typedoc-md/core/variables/EARTH_RADIUS.md +17 -0
- package/data/typedoc-md/core/variables/EPSILON.md +21 -0
- package/data/typedoc-md/core/variables/WORKER_TRANSFER_RESULT.md +18 -0
- package/data/typedoc-md/core/variables/backOutIn.md +34 -0
- package/data/typedoc-md/core/variables/bounceOutIn.md +34 -0
- package/data/typedoc-md/core/variables/circOutIn.md +34 -0
- package/data/typedoc-md/core/variables/cubicOutIn.md +34 -0
- package/data/typedoc-md/core/variables/elasticOutIn.md +34 -0
- package/data/typedoc-md/core/variables/expoOutIn.md +34 -0
- package/data/typedoc-md/core/variables/fbmValueNoise.md +27 -0
- package/data/typedoc-md/core/variables/hash2d.md +28 -0
- package/data/typedoc-md/core/variables/perlinNoise2D.md +28 -0
- package/data/typedoc-md/core/variables/perlinNoise3D.md +28 -0
- package/data/typedoc-md/core/variables/permute.md +27 -0
- package/data/typedoc-md/core/variables/quadOutIn.md +34 -0
- package/data/typedoc-md/core/variables/quartOutIn.md +34 -0
- package/data/typedoc-md/core/variables/quintOutIn.md +34 -0
- package/data/typedoc-md/core/variables/random01.md +25 -0
- package/data/typedoc-md/core/variables/randomGradient.md +25 -0
- package/data/typedoc-md/core/variables/randomGradient3D.md +27 -0
- package/data/typedoc-md/core/variables/randomRangeFn.md +37 -0
- package/data/typedoc-md/core/variables/randomVec2.md +25 -0
- package/data/typedoc-md/core/variables/randomVec3.md +25 -0
- package/data/typedoc-md/core/variables/simplexNoise2D.md +27 -0
- package/data/typedoc-md/core/variables/simplexNoise3D.md +27 -0
- package/data/typedoc-md/core/variables/sineOutIn.md +34 -0
- package/data/typedoc-md/core/variables/valueNoise2D.md +27 -0
- package/data/typedoc-md/core/variables/valueNoise3D.md +28 -0
- package/data/typedoc-md/core/variables/whiteNoise2D.md +27 -0
- package/data/typedoc-md/core/variables/whiteNoise3D.md +27 -0
- package/data/typedoc-md/core/variables/worleyNoise2D.md +27 -0
- package/data/typedoc-md/core/variables/worleyNoise3D.md +28 -0
- package/data/typedoc-md/particlesystem/README.md +271 -0
- package/data/typedoc-md/particlesystem/classes/BillboardParticleRenderer.md +1242 -0
- package/data/typedoc-md/particlesystem/classes/BuoyancyBlock.md +527 -0
- package/data/typedoc-md/particlesystem/classes/CollisionBoxBlock.md +824 -0
- package/data/typedoc-md/particlesystem/classes/CollisionCylinderBlock.md +908 -0
- package/data/typedoc-md/particlesystem/classes/CollisionModule.md +661 -0
- package/data/typedoc-md/particlesystem/classes/CollisionPlaneBlock.md +825 -0
- package/data/typedoc-md/particlesystem/classes/CollisionSphereBlock.md +825 -0
- package/data/typedoc-md/particlesystem/classes/ColorBySpeedModule.md +303 -0
- package/data/typedoc-md/particlesystem/classes/ColorOverLifetimeModule.md +288 -0
- package/data/typedoc-md/particlesystem/classes/ConformSphereBlock.md +652 -0
- package/data/typedoc-md/particlesystem/classes/EmissionModule.md +393 -0
- package/data/typedoc-md/particlesystem/classes/EmitContext.md +725 -0
- package/data/typedoc-md/particlesystem/classes/EventSpawnContext.md +367 -0
- package/data/typedoc-md/particlesystem/classes/FlipbookPlayerBlock.md +924 -0
- package/data/typedoc-md/particlesystem/classes/ForceBlock.md +568 -0
- package/data/typedoc-md/particlesystem/classes/ForceOverLifetimeModule.md +457 -0
- package/data/typedoc-md/particlesystem/classes/GravityBlock.md +414 -0
- package/data/typedoc-md/particlesystem/classes/InheritVelocityModule.md +348 -0
- package/data/typedoc-md/particlesystem/classes/KillByAgeBlock.md +402 -0
- package/data/typedoc-md/particlesystem/classes/KillByBoxBlock.md +526 -0
- package/data/typedoc-md/particlesystem/classes/KillByCylinderBlock.md +610 -0
- package/data/typedoc-md/particlesystem/classes/KillByPlaneBlock.md +526 -0
- package/data/typedoc-md/particlesystem/classes/KillBySphereBlock.md +525 -0
- package/data/typedoc-md/particlesystem/classes/LifetimeByEmitterSpeedModule.md +358 -0
- package/data/typedoc-md/particlesystem/classes/LightsModule.md +570 -0
- package/data/typedoc-md/particlesystem/classes/LimitVelocityOverLifetimeModule.md +657 -0
- package/data/typedoc-md/particlesystem/classes/LinearDragBlock.md +486 -0
- package/data/typedoc-md/particlesystem/classes/MainModule.md +1216 -0
- package/data/typedoc-md/particlesystem/classes/MeshOutputContext.md +691 -0
- package/data/typedoc-md/particlesystem/classes/MeshParticleRenderer.md +552 -0
- package/data/typedoc-md/particlesystem/classes/MultiplyAngle3DOverLifeBlock.md +441 -0
- package/data/typedoc-md/particlesystem/classes/MultiplyAngleOverLifeBlock.md +413 -0
- package/data/typedoc-md/particlesystem/classes/MultiplyAngularVelocity3DOverLifeBlock.md +441 -0
- package/data/typedoc-md/particlesystem/classes/MultiplyAngularVelocityOverLifeBlock.md +413 -0
- package/data/typedoc-md/particlesystem/classes/MultiplyColorOverLifeBlock.md +456 -0
- package/data/typedoc-md/particlesystem/classes/MultiplyScaleOverLifeBlock.md +441 -0
- package/data/typedoc-md/particlesystem/classes/MultiplySizeOverLifeBlock.md +413 -0
- package/data/typedoc-md/particlesystem/classes/NoiseModule.md +766 -0
- package/data/typedoc-md/particlesystem/classes/NoneParticleRenderer.md +501 -0
- package/data/typedoc-md/particlesystem/classes/OrientAlongVelocityBlock.md +401 -0
- package/data/typedoc-md/particlesystem/classes/OrientFaceCameraPlaneBlock.md +401 -0
- package/data/typedoc-md/particlesystem/classes/OrientFaceCameraPositionBlock.md +402 -0
- package/data/typedoc-md/particlesystem/classes/OrientFixedAxisBlock.md +442 -0
- package/data/typedoc-md/particlesystem/classes/OrientLookAtPositionBlock.md +441 -0
- package/data/typedoc-md/particlesystem/classes/OutputContext.md +489 -0
- package/data/typedoc-md/particlesystem/classes/ParticleModule.md +256 -0
- package/data/typedoc-md/particlesystem/classes/ParticleModuleRegistry.md +95 -0
- package/data/typedoc-md/particlesystem/classes/ParticleRenderer.md +415 -0
- package/data/typedoc-md/particlesystem/classes/ParticleRendererRegistry.md +103 -0
- package/data/typedoc-md/particlesystem/classes/ParticleSystem.md +1056 -0
- package/data/typedoc-md/particlesystem/classes/ParticleSystemFactory.md +98 -0
- package/data/typedoc-md/particlesystem/classes/PointAttractRepelBlock.md +568 -0
- package/data/typedoc-md/particlesystem/classes/QuadOutputContext.md +1524 -0
- package/data/typedoc-md/particlesystem/classes/RotationBySpeedModule.md +516 -0
- package/data/typedoc-md/particlesystem/classes/RotationOverLifetimeModule.md +460 -0
- package/data/typedoc-md/particlesystem/classes/SetAngle3DBlock.md +434 -0
- package/data/typedoc-md/particlesystem/classes/SetAngle3DOverLifeBlock.md +440 -0
- package/data/typedoc-md/particlesystem/classes/SetAngleBlock.md +449 -0
- package/data/typedoc-md/particlesystem/classes/SetAngleOverLifeBlock.md +412 -0
- package/data/typedoc-md/particlesystem/classes/SetAngularVelocity3DBlock.md +439 -0
- package/data/typedoc-md/particlesystem/classes/SetAngularVelocity3DOverLifeBlock.md +441 -0
- package/data/typedoc-md/particlesystem/classes/SetAngularVelocityBlock.md +407 -0
- package/data/typedoc-md/particlesystem/classes/SetAngularVelocityOverLifeBlock.md +413 -0
- package/data/typedoc-md/particlesystem/classes/SetColorBlock.md +404 -0
- package/data/typedoc-md/particlesystem/classes/SetColorBySpeedBlock.md +497 -0
- package/data/typedoc-md/particlesystem/classes/SetColorOverLifeBlock.md +454 -0
- package/data/typedoc-md/particlesystem/classes/SetLifetimeBlock.md +407 -0
- package/data/typedoc-md/particlesystem/classes/SetMassBlock.md +408 -0
- package/data/typedoc-md/particlesystem/classes/SetPositionBlock.md +435 -0
- package/data/typedoc-md/particlesystem/classes/SetSize3DBlock.md +434 -0
- package/data/typedoc-md/particlesystem/classes/SetSizeBlock.md +407 -0
- package/data/typedoc-md/particlesystem/classes/SetSizeBySpeedBlock.md +454 -0
- package/data/typedoc-md/particlesystem/classes/SetSizeOverLifeBlock.md +412 -0
- package/data/typedoc-md/particlesystem/classes/SetVelocityBlock.md +626 -0
- package/data/typedoc-md/particlesystem/classes/SetVelocityTangentBlock.md +628 -0
- package/data/typedoc-md/particlesystem/classes/ShapeModule.md +663 -0
- package/data/typedoc-md/particlesystem/classes/SizeBySpeedModule.md +556 -0
- package/data/typedoc-md/particlesystem/classes/SizeOverLifetimeModule.md +542 -0
- package/data/typedoc-md/particlesystem/classes/SoftBoundaryForceBlock.md +652 -0
- package/data/typedoc-md/particlesystem/classes/SpawnContext.md +355 -0
- package/data/typedoc-md/particlesystem/classes/StripQuadOutputContext.md +1309 -0
- package/data/typedoc-md/particlesystem/classes/SubEmitterBirthInstance.md +104 -0
- package/data/typedoc-md/particlesystem/classes/SubEmittersModule.md +661 -0
- package/data/typedoc-md/particlesystem/classes/TextureSheetAnimationModule.md +641 -0
- package/data/typedoc-md/particlesystem/classes/TrailsModule.md +842 -0
- package/data/typedoc-md/particlesystem/classes/TriggerEventOnCollideBlock.md +448 -0
- package/data/typedoc-md/particlesystem/classes/TriggerEventOnDieBlock.md +447 -0
- package/data/typedoc-md/particlesystem/classes/TurbulenceBlock.md +764 -0
- package/data/typedoc-md/particlesystem/classes/UpdateAngleBlock.md +400 -0
- package/data/typedoc-md/particlesystem/classes/UpdateContext.md +379 -0
- package/data/typedoc-md/particlesystem/classes/UpdatePositionBlock.md +401 -0
- package/data/typedoc-md/particlesystem/classes/VFXBlock.md +357 -0
- package/data/typedoc-md/particlesystem/classes/VFXBlockRegistry.md +177 -0
- package/data/typedoc-md/particlesystem/classes/VFXBlockTypeNotFoundError.md +47 -0
- package/data/typedoc-md/particlesystem/classes/VFXBoxShape.md +686 -0
- package/data/typedoc-md/particlesystem/classes/VFXCircleShape.md +853 -0
- package/data/typedoc-md/particlesystem/classes/VFXConeShape.md +1026 -0
- package/data/typedoc-md/particlesystem/classes/VFXContext.md +317 -0
- package/data/typedoc-md/particlesystem/classes/VFXCurveAtlas.md +142 -0
- package/data/typedoc-md/particlesystem/classes/VFXDynamicBlock.md +449 -0
- package/data/typedoc-md/particlesystem/classes/VFXEdgeShape.md +725 -0
- package/data/typedoc-md/particlesystem/classes/VFXOutputContextRegistry.md +177 -0
- package/data/typedoc-md/particlesystem/classes/VFXOutputContextTypeNotFoundError.md +47 -0
- package/data/typedoc-md/particlesystem/classes/VFXShape.md +551 -0
- package/data/typedoc-md/particlesystem/classes/VFXShapeFactory.md +126 -0
- package/data/typedoc-md/particlesystem/classes/VFXShapeTypeNotFoundError.md +47 -0
- package/data/typedoc-md/particlesystem/classes/VFXSphereShape.md +896 -0
- package/data/typedoc-md/particlesystem/classes/VFXStaticBlock.md +411 -0
- package/data/typedoc-md/particlesystem/classes/VFXSystem.md +793 -0
- package/data/typedoc-md/particlesystem/classes/VFXSystemFactory.md +139 -0
- package/data/typedoc-md/particlesystem/classes/VFXTorusShape.md +941 -0
- package/data/typedoc-md/particlesystem/classes/VectorFieldForceBlock.md +596 -0
- package/data/typedoc-md/particlesystem/classes/VelocityOverLifetimeModule.md +910 -0
- package/data/typedoc-md/particlesystem/classes/VortexForceBlock.md +654 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleBlendingMode.md +83 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleColorCombineMode.md +97 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemAnimationRowMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemAnimationTimeMode.md +55 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemAnimationType.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemBillboardMode.md +69 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemBoxShapeEmitFrom.md +55 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemConeShapeEmitFrom.md +55 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemInheritVelocityMode.md +43 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemMeshShapeType.md +55 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemNoiseQuality.md +55 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemRandomSeeds.md +392 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemRenderMode.md +56 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemScalingMode.md +44 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemShapeMultiModeValue.md +69 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemShapeType.md +139 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemSimulationSpace.md +44 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemSortMode.md +86 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemSubEmitterInheritFlags.md +114 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemSubEmitterType.md +69 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemTrailMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemTrailTextureMode.md +69 -0
- package/data/typedoc-md/particlesystem/enumerations/QuadBlendingMode.md +83 -0
- package/data/typedoc-md/particlesystem/enumerations/QuadColorCombineMode.md +97 -0
- package/data/typedoc-md/particlesystem/enumerations/QuadUvMode.md +89 -0
- package/data/typedoc-md/particlesystem/enumerations/StripQuadUvMode.md +58 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXBlockMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXCollisionMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXCollisionRadiusMode.md +55 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXColorMode.md +57 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXConeShapeHeightMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXContextType.md +115 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXDataType.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXFlipbookAnimationRange.md +74 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXFlipbookCyclesMode.md +55 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXFlipbookFrameRateMode.md +69 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXFlipbookPlayMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXForceFalloff.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXForceMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXKillBoundsMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXNoiseType.md +55 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXShapePositionMode.md +69 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXShapeSpawnMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXSimulationSpace.md +44 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXSoftBoundaryShape.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXSortMode.md +87 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXVelocityCompositionMode.md +69 -0
- package/data/typedoc-md/particlesystem/interfaces/Angle3DOverLifeBlockParams.md +88 -0
- package/data/typedoc-md/particlesystem/interfaces/AngleOverLifeBlockParams.md +60 -0
- package/data/typedoc-md/particlesystem/interfaces/AngularVelocity3DOverLifeBlockParams.md +88 -0
- package/data/typedoc-md/particlesystem/interfaces/AngularVelocityOverLifeBlockParams.md +60 -0
- package/data/typedoc-md/particlesystem/interfaces/BillboardParticleRendererParams.md +511 -0
- package/data/typedoc-md/particlesystem/interfaces/BuoyancyBlockParams.md +104 -0
- package/data/typedoc-md/particlesystem/interfaces/CollisionBoxBlockParams.md +278 -0
- package/data/typedoc-md/particlesystem/interfaces/CollisionCylinderBlockParams.md +318 -0
- package/data/typedoc-md/particlesystem/interfaces/CollisionPlaneBlockParams.md +278 -0
- package/data/typedoc-md/particlesystem/interfaces/CollisionSphereBlockParams.md +278 -0
- package/data/typedoc-md/particlesystem/interfaces/ColorOverLifeBlockParams.md +86 -0
- package/data/typedoc-md/particlesystem/interfaces/ConformSphereBlockParams.md +164 -0
- package/data/typedoc-md/particlesystem/interfaces/CustomParticleRendererParams.md +93 -0
- package/data/typedoc-md/particlesystem/interfaces/EmissionEmitContext.md +156 -0
- package/data/typedoc-md/particlesystem/interfaces/FlipbookPlayerBlockParams.md +307 -0
- package/data/typedoc-md/particlesystem/interfaces/ForceBlockParams.md +124 -0
- package/data/typedoc-md/particlesystem/interfaces/GravityBlockParams.md +64 -0
- package/data/typedoc-md/particlesystem/interfaces/KillByBoxBlockParams.md +104 -0
- package/data/typedoc-md/particlesystem/interfaces/KillByCylinderBlockParams.md +144 -0
- package/data/typedoc-md/particlesystem/interfaces/KillByPlaneBlockParams.md +104 -0
- package/data/typedoc-md/particlesystem/interfaces/KillBySphereBlockParams.md +104 -0
- package/data/typedoc-md/particlesystem/interfaces/LinearDragBlockParams.md +84 -0
- package/data/typedoc-md/particlesystem/interfaces/MeshOutputContextParams.md +129 -0
- package/data/typedoc-md/particlesystem/interfaces/MeshParticleRendererParams.md +139 -0
- package/data/typedoc-md/particlesystem/interfaces/MultiplyScaleOverLifeBlockParams.md +106 -0
- package/data/typedoc-md/particlesystem/interfaces/NoneParticleRendererParams.md +82 -0
- package/data/typedoc-md/particlesystem/interfaces/OrientFixedAxisBlockParams.md +64 -0
- package/data/typedoc-md/particlesystem/interfaces/OrientLookAtPositionBlockParams.md +64 -0
- package/data/typedoc-md/particlesystem/interfaces/ParticleBlendingOptions.md +127 -0
- package/data/typedoc-md/particlesystem/interfaces/ParticleLightParams.md +59 -0
- package/data/typedoc-md/particlesystem/interfaces/ParticleRendererParams.md +63 -0
- package/data/typedoc-md/particlesystem/interfaces/ParticleSystemModuleParams.md +375 -0
- package/data/typedoc-md/particlesystem/interfaces/ParticleSystemParams.md +137 -0
- package/data/typedoc-md/particlesystem/interfaces/PointAttractRepelBlockParams.md +124 -0
- package/data/typedoc-md/particlesystem/interfaces/QuadBlendingOptions.md +127 -0
- package/data/typedoc-md/particlesystem/interfaces/QuadOutputContextParams.md +496 -0
- package/data/typedoc-md/particlesystem/interfaces/SetAngle3DBlockParams.md +104 -0
- package/data/typedoc-md/particlesystem/interfaces/SetAngleBlockParams.md +84 -0
- package/data/typedoc-md/particlesystem/interfaces/SetAngularVelocity3DBlockParams.md +104 -0
- package/data/typedoc-md/particlesystem/interfaces/SetAngularVelocityBlockParams.md +64 -0
- package/data/typedoc-md/particlesystem/interfaces/SetColorBlockParams.md +58 -0
- package/data/typedoc-md/particlesystem/interfaces/SetColorBySpeedBlockParams.md +106 -0
- package/data/typedoc-md/particlesystem/interfaces/SetLifetimeBlockParams.md +64 -0
- package/data/typedoc-md/particlesystem/interfaces/SetMassBlockParams.md +64 -0
- package/data/typedoc-md/particlesystem/interfaces/SetPositionBlockParams.md +58 -0
- package/data/typedoc-md/particlesystem/interfaces/SetSize3DBlockParams.md +104 -0
- package/data/typedoc-md/particlesystem/interfaces/SetSizeBlockParams.md +64 -0
- package/data/typedoc-md/particlesystem/interfaces/SetSizeBySpeedBlockParams.md +86 -0
- package/data/typedoc-md/particlesystem/interfaces/SetVelocityBlockParams.md +164 -0
- package/data/typedoc-md/particlesystem/interfaces/SetVelocityTangentBlockParams.md +165 -0
- package/data/typedoc-md/particlesystem/interfaces/SizeOverLifeBlockParams.md +66 -0
- package/data/typedoc-md/particlesystem/interfaces/SoftBoundaryForceBlockParams.md +164 -0
- package/data/typedoc-md/particlesystem/interfaces/StripQuadOutputContextParams.md +395 -0
- package/data/typedoc-md/particlesystem/interfaces/SubEmitter.md +73 -0
- package/data/typedoc-md/particlesystem/interfaces/SubEmitterInheritProperties.md +167 -0
- package/data/typedoc-md/particlesystem/interfaces/TrailsModuleParams.md +313 -0
- package/data/typedoc-md/particlesystem/interfaces/TriggerEventOnCollideBlockParams.md +67 -0
- package/data/typedoc-md/particlesystem/interfaces/TriggerEventOnDieBlockParams.md +67 -0
- package/data/typedoc-md/particlesystem/interfaces/TurbulenceBlockParams.md +224 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXBlockParams.md +79 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXBoxShapeParams.md +214 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXBurstRule.md +87 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXCPUEvent.md +77 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXCircleShapeParams.md +306 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXConeShapeParams.md +387 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXCurveSlot.md +59 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXCurveSlots.md +37 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXEdgeShapeParams.md +223 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXOutputShade.md +145 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXShapeArcParams.md +82 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXShapeParams.md +140 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXShapeVolumeParams.md +213 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXSphereShapeParams.md +327 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXSystemParams.md +335 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXTorusShapeParams.md +346 -0
- package/data/typedoc-md/particlesystem/interfaces/VectorFieldForceBlockParams.md +147 -0
- package/data/typedoc-md/particlesystem/interfaces/VortexForceBlockParams.md +164 -0
- package/data/typedoc-md/particlesystem/type-aliases/ParticleModuleConstructor.md +33 -0
- package/data/typedoc-md/particlesystem/type-aliases/ParticleRendererConstructor.md +43 -0
- package/data/typedoc-md/particlesystem/type-aliases/ParticleRendererOptions.md +15 -0
- package/data/typedoc-md/particlesystem/type-aliases/VFXBlockCtor.md +53 -0
- package/data/typedoc-md/particlesystem/type-aliases/VFXOutputContextCtor.md +35 -0
- package/data/typedoc-md/particlesystem/type-aliases/VFXOutputContextFactory.md +35 -0
- package/data/typedoc-md/particlesystem/type-aliases/VFXShapeCtor.md +35 -0
- package/data/typedoc-md/particlesystem/type-aliases/VFXSystemTemplate.md +19 -0
- package/data/typedoc-md/particlesystem/variables/DEFAULT_PARTICLE_PER_STRIP_COUNT.md +20 -0
- package/data/typedoc-md/particlesystem/variables/DEFAULT_STRIP_MAX_PARTICLES.md +22 -0
- package/data/typedoc-md/particlesystem/variables/MAX_BURSTS.md +13 -0
- package/data/typedoc-md/particlesystem/variables/MAX_EVENTS.md +13 -0
- package/data/typedoc-md/particlesystem/variables/PARTICLESYSTEM_VERSION.md +13 -0
- package/data/typedoc-md/postprocessing/README.md +20 -0
- package/data/typedoc-md/postprocessing/classes/OffscreenPass.md +184 -0
- package/data/typedoc-md/postprocessing/classes/PostprocessingSceneRenderer.md +330 -0
- package/data/typedoc-md/postprocessing/classes/SSFEffect.md +584 -0
- package/data/typedoc-md/postprocessing/interfaces/PostprocessingSceneRendererParams.md +115 -0
- package/data/typedoc-md/postprocessing/interfaces/ScreenSpaceFogEffectParams.md +420 -0
- package/data/typedoc-md/postprocessing/variables/POSTPROCESSING_VERSION.md +11 -0
- package/dist/server.js +1301 -0
- package/package.json +46 -4
- package/resources/examples/.gitkeep +0 -0
- package/resources/examples/ambient-light.md +47 -0
- package/resources/examples/animation-curve.md +62 -0
- package/resources/examples/animation.md +56 -0
- package/resources/examples/annotation.md +68 -0
- package/resources/examples/auto-exposure-node.md +67 -0
- package/resources/examples/billboard-particle-renderer.md +85 -0
- package/resources/examples/bool-update-flag.md +61 -0
- package/resources/examples/clip-animation-controller.md +76 -0
- package/resources/examples/clip-plane-updater.md +63 -0
- package/resources/examples/color-grading-node.md +59 -0
- package/resources/examples/command-group.md +48 -0
- package/resources/examples/command-history.md +59 -0
- package/resources/examples/command.md +55 -0
- package/resources/examples/components-manager.md +43 -0
- package/resources/examples/controls.md +52 -0
- package/resources/examples/directional-light.md +49 -0
- package/resources/examples/dither-node.md +55 -0
- package/resources/examples/emit-context.md +71 -0
- package/resources/examples/entity.md +47 -0
- package/resources/examples/environment.md +51 -0
- package/resources/examples/event-dispatcher.md +62 -0
- package/resources/examples/event-spawn-context.md +67 -0
- package/resources/examples/geometry-resource.md +50 -0
- package/resources/examples/gltf-parser.md +78 -0
- package/resources/examples/gltf-resource.md +61 -0
- package/resources/examples/glyph-atlas.md +74 -0
- package/resources/examples/gradient.md +70 -0
- package/resources/examples/grain-node.md +57 -0
- package/resources/examples/hemisphere-light.md +49 -0
- package/resources/examples/instanced-model-renderer.md +99 -0
- package/resources/examples/karis-bloom-node.md +56 -0
- package/resources/examples/label.md +77 -0
- package/resources/examples/lens-flare-node.md +65 -0
- package/resources/examples/light-probe-group.md +53 -0
- package/resources/examples/light-probe.md +52 -0
- package/resources/examples/linear-picker.md +50 -0
- package/resources/examples/lut-resource.md +52 -0
- package/resources/examples/material-resource.md +63 -0
- package/resources/examples/memory-estimator.md +81 -0
- package/resources/examples/mesh-output-context.md +69 -0
- package/resources/examples/mesh-particle-renderer.md +71 -0
- package/resources/examples/mesh-renderer.md +49 -0
- package/resources/examples/min-max-curve.md +57 -0
- package/resources/examples/min-max-gradient.md +58 -0
- package/resources/examples/model-renderer.md +83 -0
- package/resources/examples/none-particle-renderer.md +59 -0
- package/resources/examples/offscreen-pass.md +46 -0
- package/resources/examples/orbit-controls.md +51 -0
- package/resources/examples/orthographic-camera.md +49 -0
- package/resources/examples/parallel-light.md +49 -0
- package/resources/examples/particle-module-registry.md +65 -0
- package/resources/examples/particle-renderer-registry.md +72 -0
- package/resources/examples/particle-system-factory.md +60 -0
- package/resources/examples/particle-system.md +85 -0
- package/resources/examples/perspective-camera.md +49 -0
- package/resources/examples/picker.md +58 -0
- package/resources/examples/point-light.md +50 -0
- package/resources/examples/postprocessing-scene-renderer.md +56 -0
- package/resources/examples/quad-output-context.md +75 -0
- package/resources/examples/random.md +57 -0
- package/resources/examples/rect-area-light.md +50 -0
- package/resources/examples/rectangle-culling.md +72 -0
- package/resources/examples/render-debug-info.md +67 -0
- package/resources/examples/renderer.md +53 -0
- package/resources/examples/resource-manager.md +61 -0
- package/resources/examples/resource-ref.md +55 -0
- package/resources/examples/scene-coordinate-system.md +66 -0
- package/resources/examples/scene-renderer.md +48 -0
- package/resources/examples/scene.md +49 -0
- package/resources/examples/script.md +54 -0
- package/resources/examples/scriptable-scene-renderer.md +58 -0
- package/resources/examples/sdf-glyph-generator.md +77 -0
- package/resources/examples/solid-color-background.md +45 -0
- package/resources/examples/spawn-context.md +58 -0
- package/resources/examples/spot-light.md +50 -0
- package/resources/examples/ssf-effect.md +66 -0
- package/resources/examples/ssf-node.md +78 -0
- package/resources/examples/strip-quad-output-context.md +69 -0
- package/resources/examples/sub-emitter-birth-instance.md +73 -0
- package/resources/examples/task-controller.md +66 -0
- package/resources/examples/texture-atlas.md +67 -0
- package/resources/examples/texture-background.md +53 -0
- package/resources/examples/texture-resource.md +53 -0
- package/resources/examples/tilted-view-clip-plane-estimator.md +66 -0
- package/resources/examples/top-down-clip-plane-estimator.md +67 -0
- package/resources/examples/transform.md +52 -0
- package/resources/examples/uniforms-lib.md +75 -0
- package/resources/examples/update-context.md +57 -0
- package/resources/examples/update-flag-manager.md +68 -0
- package/resources/examples/value-noise.md +60 -0
- package/resources/examples/vfx-block-registry.md +76 -0
- package/resources/examples/vfx-box-shape.md +60 -0
- package/resources/examples/vfx-circle-shape.md +62 -0
- package/resources/examples/vfx-cone-shape.md +67 -0
- package/resources/examples/vfx-curve-atlas.md +65 -0
- package/resources/examples/vfx-edge-shape.md +60 -0
- package/resources/examples/vfx-output-context-registry.md +84 -0
- package/resources/examples/vfx-shape-factory.md +63 -0
- package/resources/examples/vfx-sphere-shape.md +61 -0
- package/resources/examples/vfx-system-factory.md +67 -0
- package/resources/examples/vfx-system.md +88 -0
- package/resources/examples/vfx-torus-shape.md +61 -0
- package/resources/examples/webgl-engine.md +52 -0
- package/resources/examples/webgpu-engine.md +53 -0
- package/resources/examples/worker-manager.md +77 -0
- package/resources/examples/worker-pool.md +78 -0
- package/resources/examples/worker-registry.md +70 -0
- package/resources/guides/.gitkeep +0 -0
- package/resources/guides/animation.md +65 -0
- package/resources/guides/annotation.md +63 -0
- package/resources/guides/atlas.md +93 -0
- package/resources/guides/background.md +62 -0
- package/resources/guides/blocks.md +91 -0
- package/resources/guides/camera.md +67 -0
- package/resources/guides/clip-plane.md +60 -0
- package/resources/guides/command.md +81 -0
- package/resources/guides/component-renderer.md +64 -0
- package/resources/guides/component.md +64 -0
- package/resources/guides/contexts.md +100 -0
- package/resources/guides/controls.md +61 -0
- package/resources/guides/coordinate-systems.md +68 -0
- package/resources/guides/culling.md +82 -0
- package/resources/guides/data-structures.md +85 -0
- package/resources/guides/debug.md +76 -0
- package/resources/guides/effect-node.md +84 -0
- package/resources/guides/effect.md +69 -0
- package/resources/guides/engine.md +69 -0
- package/resources/guides/entity.md +57 -0
- package/resources/guides/environment.md +49 -0
- package/resources/guides/estimator.md +74 -0
- package/resources/guides/event.md +60 -0
- package/resources/guides/gltf.md +93 -0
- package/resources/guides/gradient.md +97 -0
- package/resources/guides/instanced-model-renderer.md +92 -0
- package/resources/guides/label.md +79 -0
- package/resources/guides/light-probe.md +81 -0
- package/resources/guides/light.md +82 -0
- package/resources/guides/logger.md +50 -0
- package/resources/guides/material.md +61 -0
- package/resources/guides/math.md +88 -0
- package/resources/guides/memory.md +84 -0
- package/resources/guides/mesh-renderer.md +59 -0
- package/resources/guides/model-renderer.md +78 -0
- package/resources/guides/module.md +97 -0
- package/resources/guides/pass.md +49 -0
- package/resources/guides/pick.md +65 -0
- package/resources/guides/postprocessing.md +56 -0
- package/resources/guides/registry.md +64 -0
- package/resources/guides/resource.md +83 -0
- package/resources/guides/scene.md +90 -0
- package/resources/guides/script.md +63 -0
- package/resources/guides/sdf.md +80 -0
- package/resources/guides/shapes.md +99 -0
- package/resources/guides/shuriken-factory.md +51 -0
- package/resources/guides/shuriken-renderer.md +82 -0
- package/resources/guides/shuriken.md +76 -0
- package/resources/guides/transform.md +60 -0
- package/resources/guides/update-flag.md +80 -0
- package/resources/guides/utils-curve.md +88 -0
- package/resources/guides/value.md +66 -0
- package/resources/guides/vfx-curve.md +74 -0
- package/resources/guides/vfx-factory.md +77 -0
- package/resources/guides/vfx.md +102 -0
- package/resources/guides/worker.md +127 -0
|
@@ -0,0 +1,2015 @@
|
|
|
1
|
+
[**core**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[core](../README.md) / OrbitControls
|
|
6
|
+
|
|
7
|
+
# Class: OrbitControls
|
|
8
|
+
|
|
9
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:104](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L104)
|
|
10
|
+
|
|
11
|
+
Orbit camera controller.
|
|
12
|
+
|
|
13
|
+
Spherical orbit around a world-space [OrbitControls.target](#target), with pan and dolly.
|
|
14
|
+
Pointer, wheel, and arrow keys come from [Controls](Controls.md); one-finger touch rotates (or pans),
|
|
15
|
+
two-finger touch dollies and pans. Orthographic cameras dolly [OrthographicCamera.frustumSize](OrthographicCamera.md#frustumsize).
|
|
16
|
+
Relative-center translations shift `target` with the scene.
|
|
17
|
+
|
|
18
|
+
Requires an [OrthographicCamera](OrthographicCamera.md) or [PerspectiveCamera](PerspectiveCamera.md) on the same entity;
|
|
19
|
+
`addComponent` throws when neither is present.
|
|
20
|
+
|
|
21
|
+
[OrbitControls.focus](#focus) is reserved and currently a no-op.
|
|
22
|
+
|
|
23
|
+
## Export
|
|
24
|
+
|
|
25
|
+
OrbitControls
|
|
26
|
+
|
|
27
|
+
## Example
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
import { OrbitControls } from '@vista3d/core';
|
|
31
|
+
const camera = scene.createPerspectiveCamera({});
|
|
32
|
+
camera.entity.addComponent(OrbitControls, {
|
|
33
|
+
enableDamping: false,
|
|
34
|
+
autoRotate: false
|
|
35
|
+
});
|
|
36
|
+
camera.entity.removeComponent(OrbitControls);
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Extends
|
|
40
|
+
|
|
41
|
+
- [`Controls`](Controls.md)
|
|
42
|
+
|
|
43
|
+
## Constructors
|
|
44
|
+
|
|
45
|
+
### Constructor
|
|
46
|
+
|
|
47
|
+
> **new OrbitControls**(`entity`, `params?`): `OrbitControls`
|
|
48
|
+
|
|
49
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:404](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L404)
|
|
50
|
+
|
|
51
|
+
Create an orbit controller on a camera entity.
|
|
52
|
+
|
|
53
|
+
#### Parameters
|
|
54
|
+
|
|
55
|
+
##### entity
|
|
56
|
+
|
|
57
|
+
[`Entity`](Entity.md)
|
|
58
|
+
|
|
59
|
+
Owning entity (must already have a PerspectiveCamera or OrthographicCamera)
|
|
60
|
+
|
|
61
|
+
##### params?
|
|
62
|
+
|
|
63
|
+
[`OrbitControlsParams`](../interfaces/OrbitControlsParams.md) = `{}`
|
|
64
|
+
|
|
65
|
+
Construction parameters
|
|
66
|
+
|
|
67
|
+
#### Returns
|
|
68
|
+
|
|
69
|
+
`OrbitControls`
|
|
70
|
+
|
|
71
|
+
#### Memberof
|
|
72
|
+
|
|
73
|
+
OrbitControls
|
|
74
|
+
|
|
75
|
+
#### Overrides
|
|
76
|
+
|
|
77
|
+
[`Controls`](Controls.md).[`constructor`](Controls.md#constructor)
|
|
78
|
+
|
|
79
|
+
## Properties
|
|
80
|
+
|
|
81
|
+
### autoRotate
|
|
82
|
+
|
|
83
|
+
> **autoRotate**: `boolean` = `false`
|
|
84
|
+
|
|
85
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:272](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L272)
|
|
86
|
+
|
|
87
|
+
Continuously orbit around [target](#target) when idle.
|
|
88
|
+
|
|
89
|
+
#### Memberof
|
|
90
|
+
|
|
91
|
+
OrbitControls
|
|
92
|
+
|
|
93
|
+
***
|
|
94
|
+
|
|
95
|
+
### autoRotateSpeed
|
|
96
|
+
|
|
97
|
+
> **autoRotateSpeed**: `number` = `2`
|
|
98
|
+
|
|
99
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:280](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L280)
|
|
100
|
+
|
|
101
|
+
Auto-rotate speed. `2` is one revolution per 30 s at 60 fps.
|
|
102
|
+
|
|
103
|
+
#### Memberof
|
|
104
|
+
|
|
105
|
+
OrbitControls
|
|
106
|
+
|
|
107
|
+
***
|
|
108
|
+
|
|
109
|
+
### awoken
|
|
110
|
+
|
|
111
|
+
> `protected` **awoken**: `boolean` = `false`
|
|
112
|
+
|
|
113
|
+
Defined in: [ecs/component/Component.ts:101](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L101)
|
|
114
|
+
|
|
115
|
+
#### Inherited from
|
|
116
|
+
|
|
117
|
+
[`Controls`](Controls.md).[`awoken`](Controls.md#awoken)
|
|
118
|
+
|
|
119
|
+
***
|
|
120
|
+
|
|
121
|
+
### dampingFactor
|
|
122
|
+
|
|
123
|
+
> **dampingFactor**: `number` = `0.05`
|
|
124
|
+
|
|
125
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:192](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L192)
|
|
126
|
+
|
|
127
|
+
Damping factor in `(0, 1]` when [enableDamping](#enabledamping) is true.
|
|
128
|
+
|
|
129
|
+
#### Memberof
|
|
130
|
+
|
|
131
|
+
OrbitControls
|
|
132
|
+
|
|
133
|
+
***
|
|
134
|
+
|
|
135
|
+
### enableDamping
|
|
136
|
+
|
|
137
|
+
> **enableDamping**: `boolean` = `false`
|
|
138
|
+
|
|
139
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:184](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L184)
|
|
140
|
+
|
|
141
|
+
Inertia on orbit and pan. Consumed in [onUpdate](#onupdate).
|
|
142
|
+
|
|
143
|
+
#### Memberof
|
|
144
|
+
|
|
145
|
+
OrbitControls
|
|
146
|
+
|
|
147
|
+
***
|
|
148
|
+
|
|
149
|
+
### enabledValue
|
|
150
|
+
|
|
151
|
+
> `protected` **enabledValue**: `boolean` = `true`
|
|
152
|
+
|
|
153
|
+
Defined in: [ecs/component/Component.ts:104](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L104)
|
|
154
|
+
|
|
155
|
+
#### Inherited from
|
|
156
|
+
|
|
157
|
+
[`Controls`](Controls.md).[`enabledValue`](Controls.md#enabledvalue)
|
|
158
|
+
|
|
159
|
+
***
|
|
160
|
+
|
|
161
|
+
### enablePan
|
|
162
|
+
|
|
163
|
+
> **enablePan**: `boolean` = `true`
|
|
164
|
+
|
|
165
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:240](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L240)
|
|
166
|
+
|
|
167
|
+
Enable panning the target.
|
|
168
|
+
|
|
169
|
+
#### Memberof
|
|
170
|
+
|
|
171
|
+
OrbitControls
|
|
172
|
+
|
|
173
|
+
***
|
|
174
|
+
|
|
175
|
+
### enableRotate
|
|
176
|
+
|
|
177
|
+
> **enableRotate**: `boolean` = `true`
|
|
178
|
+
|
|
179
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:216](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L216)
|
|
180
|
+
|
|
181
|
+
Enable orbit rotation.
|
|
182
|
+
|
|
183
|
+
#### Memberof
|
|
184
|
+
|
|
185
|
+
OrbitControls
|
|
186
|
+
|
|
187
|
+
***
|
|
188
|
+
|
|
189
|
+
### enableZoom
|
|
190
|
+
|
|
191
|
+
> **enableZoom**: `boolean` = `true`
|
|
192
|
+
|
|
193
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:200](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L200)
|
|
194
|
+
|
|
195
|
+
Enable dolly / frustum zoom.
|
|
196
|
+
|
|
197
|
+
#### Memberof
|
|
198
|
+
|
|
199
|
+
OrbitControls
|
|
200
|
+
|
|
201
|
+
***
|
|
202
|
+
|
|
203
|
+
### entity
|
|
204
|
+
|
|
205
|
+
> `readonly` **entity**: [`Entity`](Entity.md)
|
|
206
|
+
|
|
207
|
+
Defined in: [ecs/component/Component.ts:122](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L122)
|
|
208
|
+
|
|
209
|
+
Target entity
|
|
210
|
+
|
|
211
|
+
#### Inherited from
|
|
212
|
+
|
|
213
|
+
[`Controls`](Controls.md).[`entity`](Controls.md#entity)
|
|
214
|
+
|
|
215
|
+
***
|
|
216
|
+
|
|
217
|
+
### entityScriptsIndex
|
|
218
|
+
|
|
219
|
+
> **entityScriptsIndex**: `number` = `-1`
|
|
220
|
+
|
|
221
|
+
Defined in: [ecs/component/script/Script.ts:39](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L39)
|
|
222
|
+
|
|
223
|
+
Index inside the owning entity script list for O(1) removal; `-1` means not listed.
|
|
224
|
+
|
|
225
|
+
#### Memberof
|
|
226
|
+
|
|
227
|
+
Script
|
|
228
|
+
|
|
229
|
+
#### Inherited from
|
|
230
|
+
|
|
231
|
+
[`Controls`](Controls.md).[`entityScriptsIndex`](Controls.md#entityscriptsindex)
|
|
232
|
+
|
|
233
|
+
***
|
|
234
|
+
|
|
235
|
+
### isScript
|
|
236
|
+
|
|
237
|
+
> `readonly` **isScript**: `boolean` = `true`
|
|
238
|
+
|
|
239
|
+
Defined in: [ecs/component/script/Script.ts:23](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L23)
|
|
240
|
+
|
|
241
|
+
Runtime discriminator for script components (true for Script subclasses).
|
|
242
|
+
|
|
243
|
+
#### Memberof
|
|
244
|
+
|
|
245
|
+
Script
|
|
246
|
+
|
|
247
|
+
#### Inherited from
|
|
248
|
+
|
|
249
|
+
[`Controls`](Controls.md).[`isScript`](Controls.md#isscript)
|
|
250
|
+
|
|
251
|
+
***
|
|
252
|
+
|
|
253
|
+
### keyPanSpeed
|
|
254
|
+
|
|
255
|
+
> **keyPanSpeed**: `number` = `7`
|
|
256
|
+
|
|
257
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:264](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L264)
|
|
258
|
+
|
|
259
|
+
Keyboard pan distance in pixels per keydown.
|
|
260
|
+
|
|
261
|
+
#### Memberof
|
|
262
|
+
|
|
263
|
+
OrbitControls
|
|
264
|
+
|
|
265
|
+
***
|
|
266
|
+
|
|
267
|
+
### keyRotateSpeed
|
|
268
|
+
|
|
269
|
+
> **keyRotateSpeed**: `number` = `1`
|
|
270
|
+
|
|
271
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:232](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L232)
|
|
272
|
+
|
|
273
|
+
Keyboard rotate speed multiplier.
|
|
274
|
+
|
|
275
|
+
#### Memberof
|
|
276
|
+
|
|
277
|
+
OrbitControls
|
|
278
|
+
|
|
279
|
+
***
|
|
280
|
+
|
|
281
|
+
### keys
|
|
282
|
+
|
|
283
|
+
> **keys**: `object`
|
|
284
|
+
|
|
285
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:288](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L288)
|
|
286
|
+
|
|
287
|
+
Keyboard pan / rotate key codes.
|
|
288
|
+
|
|
289
|
+
#### BOTTOM
|
|
290
|
+
|
|
291
|
+
> **BOTTOM**: `string`
|
|
292
|
+
|
|
293
|
+
#### LEFT
|
|
294
|
+
|
|
295
|
+
> **LEFT**: `string`
|
|
296
|
+
|
|
297
|
+
#### RIGHT
|
|
298
|
+
|
|
299
|
+
> **RIGHT**: `string`
|
|
300
|
+
|
|
301
|
+
#### UP
|
|
302
|
+
|
|
303
|
+
> **UP**: `string`
|
|
304
|
+
|
|
305
|
+
#### Memberof
|
|
306
|
+
|
|
307
|
+
OrbitControls
|
|
308
|
+
|
|
309
|
+
***
|
|
310
|
+
|
|
311
|
+
### maxAzimuthAngle
|
|
312
|
+
|
|
313
|
+
> **maxAzimuthAngle**: `number` = `Infinity`
|
|
314
|
+
|
|
315
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:176](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L176)
|
|
316
|
+
|
|
317
|
+
Maximum azimuth angle in radians.
|
|
318
|
+
|
|
319
|
+
#### Memberof
|
|
320
|
+
|
|
321
|
+
OrbitControls
|
|
322
|
+
|
|
323
|
+
***
|
|
324
|
+
|
|
325
|
+
### maxDistance
|
|
326
|
+
|
|
327
|
+
> **maxDistance**: `number` = `Infinity`
|
|
328
|
+
|
|
329
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:128](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L128)
|
|
330
|
+
|
|
331
|
+
Farthest orbit radius for perspective cameras.
|
|
332
|
+
|
|
333
|
+
#### Memberof
|
|
334
|
+
|
|
335
|
+
OrbitControls
|
|
336
|
+
|
|
337
|
+
***
|
|
338
|
+
|
|
339
|
+
### maxFrustumSize
|
|
340
|
+
|
|
341
|
+
> **maxFrustumSize**: `number` = `Infinity`
|
|
342
|
+
|
|
343
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:144](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L144)
|
|
344
|
+
|
|
345
|
+
Largest orthographic frustum width.
|
|
346
|
+
|
|
347
|
+
#### Memberof
|
|
348
|
+
|
|
349
|
+
OrbitControls
|
|
350
|
+
|
|
351
|
+
***
|
|
352
|
+
|
|
353
|
+
### maxPolarAngle
|
|
354
|
+
|
|
355
|
+
> **maxPolarAngle**: `number` = `Math.PI`
|
|
356
|
+
|
|
357
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:160](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L160)
|
|
358
|
+
|
|
359
|
+
Maximum polar angle in radians. Range `[0, π]`.
|
|
360
|
+
|
|
361
|
+
#### Memberof
|
|
362
|
+
|
|
363
|
+
OrbitControls
|
|
364
|
+
|
|
365
|
+
***
|
|
366
|
+
|
|
367
|
+
### minAzimuthAngle
|
|
368
|
+
|
|
369
|
+
> **minAzimuthAngle**: `number` = `-Infinity`
|
|
370
|
+
|
|
371
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:168](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L168)
|
|
372
|
+
|
|
373
|
+
Minimum azimuth angle in radians.
|
|
374
|
+
|
|
375
|
+
#### Memberof
|
|
376
|
+
|
|
377
|
+
OrbitControls
|
|
378
|
+
|
|
379
|
+
***
|
|
380
|
+
|
|
381
|
+
### minDistance
|
|
382
|
+
|
|
383
|
+
> **minDistance**: `number` = `0`
|
|
384
|
+
|
|
385
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:120](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L120)
|
|
386
|
+
|
|
387
|
+
Closest orbit radius for perspective cameras.
|
|
388
|
+
|
|
389
|
+
#### Memberof
|
|
390
|
+
|
|
391
|
+
OrbitControls
|
|
392
|
+
|
|
393
|
+
***
|
|
394
|
+
|
|
395
|
+
### minFrustumSize
|
|
396
|
+
|
|
397
|
+
> **minFrustumSize**: `number` = `0`
|
|
398
|
+
|
|
399
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:136](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L136)
|
|
400
|
+
|
|
401
|
+
Smallest orthographic frustum width.
|
|
402
|
+
|
|
403
|
+
#### Memberof
|
|
404
|
+
|
|
405
|
+
OrbitControls
|
|
406
|
+
|
|
407
|
+
***
|
|
408
|
+
|
|
409
|
+
### minPolarAngle
|
|
410
|
+
|
|
411
|
+
> **minPolarAngle**: `number` = `0`
|
|
412
|
+
|
|
413
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:152](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L152)
|
|
414
|
+
|
|
415
|
+
Minimum polar angle in radians. Range `[0, π]`.
|
|
416
|
+
|
|
417
|
+
#### Memberof
|
|
418
|
+
|
|
419
|
+
OrbitControls
|
|
420
|
+
|
|
421
|
+
***
|
|
422
|
+
|
|
423
|
+
### mouseButtons
|
|
424
|
+
|
|
425
|
+
> **mouseButtons**: `object`
|
|
426
|
+
|
|
427
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:301](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L301)
|
|
428
|
+
|
|
429
|
+
Mouse button mapping (`MOUSE.ROTATE` / `MOUSE.DOLLY` / `MOUSE.PAN`).
|
|
430
|
+
|
|
431
|
+
#### LEFT
|
|
432
|
+
|
|
433
|
+
> **LEFT**: `number`
|
|
434
|
+
|
|
435
|
+
#### MIDDLE
|
|
436
|
+
|
|
437
|
+
> **MIDDLE**: `number`
|
|
438
|
+
|
|
439
|
+
#### RIGHT
|
|
440
|
+
|
|
441
|
+
> **RIGHT**: `number`
|
|
442
|
+
|
|
443
|
+
#### Memberof
|
|
444
|
+
|
|
445
|
+
OrbitControls
|
|
446
|
+
|
|
447
|
+
***
|
|
448
|
+
|
|
449
|
+
### onLateUpdateIndex
|
|
450
|
+
|
|
451
|
+
> **onLateUpdateIndex**: `number` = `-1`
|
|
452
|
+
|
|
453
|
+
Defined in: [ecs/component/script/Script.ts:63](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L63)
|
|
454
|
+
|
|
455
|
+
Index inside the manager onLateUpdate bucket for O(1) removal; `-1` means not listed.
|
|
456
|
+
|
|
457
|
+
#### Memberof
|
|
458
|
+
|
|
459
|
+
Script
|
|
460
|
+
|
|
461
|
+
#### Inherited from
|
|
462
|
+
|
|
463
|
+
[`Controls`](Controls.md).[`onLateUpdateIndex`](Controls.md#onlateupdateindex)
|
|
464
|
+
|
|
465
|
+
***
|
|
466
|
+
|
|
467
|
+
### onPhysicsUpdateIndex
|
|
468
|
+
|
|
469
|
+
> **onPhysicsUpdateIndex**: `number` = `-1`
|
|
470
|
+
|
|
471
|
+
Defined in: [ecs/component/script/Script.ts:79](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L79)
|
|
472
|
+
|
|
473
|
+
Index inside the manager onPhysicsUpdate bucket for O(1) removal; `-1` means not listed.
|
|
474
|
+
|
|
475
|
+
#### Memberof
|
|
476
|
+
|
|
477
|
+
Script
|
|
478
|
+
|
|
479
|
+
#### Inherited from
|
|
480
|
+
|
|
481
|
+
[`Controls`](Controls.md).[`onPhysicsUpdateIndex`](Controls.md#onphysicsupdateindex)
|
|
482
|
+
|
|
483
|
+
***
|
|
484
|
+
|
|
485
|
+
### onRenderIndex
|
|
486
|
+
|
|
487
|
+
> **onRenderIndex**: `number` = `-1`
|
|
488
|
+
|
|
489
|
+
Defined in: [ecs/component/script/Script.ts:71](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L71)
|
|
490
|
+
|
|
491
|
+
Index inside the manager render-script bucket for O(1) removal; `-1` means not listed.
|
|
492
|
+
|
|
493
|
+
#### Memberof
|
|
494
|
+
|
|
495
|
+
Script
|
|
496
|
+
|
|
497
|
+
#### Inherited from
|
|
498
|
+
|
|
499
|
+
[`Controls`](Controls.md).[`onRenderIndex`](Controls.md#onrenderindex)
|
|
500
|
+
|
|
501
|
+
***
|
|
502
|
+
|
|
503
|
+
### onStartIndex
|
|
504
|
+
|
|
505
|
+
> **onStartIndex**: `number` = `-1`
|
|
506
|
+
|
|
507
|
+
Defined in: [ecs/component/script/Script.ts:47](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L47)
|
|
508
|
+
|
|
509
|
+
Index inside the manager onStart bucket for O(1) removal; `-1` means not listed.
|
|
510
|
+
|
|
511
|
+
#### Memberof
|
|
512
|
+
|
|
513
|
+
Script
|
|
514
|
+
|
|
515
|
+
#### Inherited from
|
|
516
|
+
|
|
517
|
+
[`Controls`](Controls.md).[`onStartIndex`](Controls.md#onstartindex)
|
|
518
|
+
|
|
519
|
+
***
|
|
520
|
+
|
|
521
|
+
### onUpdateIndex
|
|
522
|
+
|
|
523
|
+
> **onUpdateIndex**: `number` = `-1`
|
|
524
|
+
|
|
525
|
+
Defined in: [ecs/component/script/Script.ts:55](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L55)
|
|
526
|
+
|
|
527
|
+
Index inside the manager onUpdate bucket for O(1) removal; `-1` means not listed.
|
|
528
|
+
|
|
529
|
+
#### Memberof
|
|
530
|
+
|
|
531
|
+
Script
|
|
532
|
+
|
|
533
|
+
#### Inherited from
|
|
534
|
+
|
|
535
|
+
[`Controls`](Controls.md).[`onUpdateIndex`](Controls.md#onupdateindex)
|
|
536
|
+
|
|
537
|
+
***
|
|
538
|
+
|
|
539
|
+
### panSpeed
|
|
540
|
+
|
|
541
|
+
> **panSpeed**: `number` = `1`
|
|
542
|
+
|
|
543
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:248](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L248)
|
|
544
|
+
|
|
545
|
+
Pan speed multiplier.
|
|
546
|
+
|
|
547
|
+
#### Memberof
|
|
548
|
+
|
|
549
|
+
OrbitControls
|
|
550
|
+
|
|
551
|
+
***
|
|
552
|
+
|
|
553
|
+
### priority
|
|
554
|
+
|
|
555
|
+
> `protected` **priority**: [`Priority`](../enumerations/Priority.md) = `Priority.NORMAL`
|
|
556
|
+
|
|
557
|
+
Defined in: [ecs/component/camera/controls/Controls.ts:30](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/Controls.ts#L30)
|
|
558
|
+
|
|
559
|
+
Event-subscription priority for this camera controller.
|
|
560
|
+
|
|
561
|
+
#### Memberof
|
|
562
|
+
|
|
563
|
+
Controls
|
|
564
|
+
|
|
565
|
+
#### Inherited from
|
|
566
|
+
|
|
567
|
+
[`Controls`](Controls.md).[`priority`](Controls.md#priority)
|
|
568
|
+
|
|
569
|
+
***
|
|
570
|
+
|
|
571
|
+
### rotateSpeed
|
|
572
|
+
|
|
573
|
+
> **rotateSpeed**: `number` = `1`
|
|
574
|
+
|
|
575
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:224](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L224)
|
|
576
|
+
|
|
577
|
+
Rotate speed multiplier.
|
|
578
|
+
|
|
579
|
+
#### Memberof
|
|
580
|
+
|
|
581
|
+
OrbitControls
|
|
582
|
+
|
|
583
|
+
***
|
|
584
|
+
|
|
585
|
+
### screenSpacePanning
|
|
586
|
+
|
|
587
|
+
> **screenSpacePanning**: `boolean` = `true`
|
|
588
|
+
|
|
589
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:256](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L256)
|
|
590
|
+
|
|
591
|
+
Pan in camera screen space when true; otherwise along the world-up plane.
|
|
592
|
+
|
|
593
|
+
#### Memberof
|
|
594
|
+
|
|
595
|
+
OrbitControls
|
|
596
|
+
|
|
597
|
+
***
|
|
598
|
+
|
|
599
|
+
### started
|
|
600
|
+
|
|
601
|
+
> **started**: `boolean` = `false`
|
|
602
|
+
|
|
603
|
+
Defined in: [ecs/component/script/Script.ts:31](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L31)
|
|
604
|
+
|
|
605
|
+
Whether onStart has already run; keeps onStart once-only.
|
|
606
|
+
|
|
607
|
+
#### Memberof
|
|
608
|
+
|
|
609
|
+
Script
|
|
610
|
+
|
|
611
|
+
#### Inherited from
|
|
612
|
+
|
|
613
|
+
[`Controls`](Controls.md).[`started`](Controls.md#started)
|
|
614
|
+
|
|
615
|
+
***
|
|
616
|
+
|
|
617
|
+
### target
|
|
618
|
+
|
|
619
|
+
> `readonly` **target**: `Vector3`
|
|
620
|
+
|
|
621
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:112](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L112)
|
|
622
|
+
|
|
623
|
+
World-space point the camera orbits around.
|
|
624
|
+
|
|
625
|
+
#### Memberof
|
|
626
|
+
|
|
627
|
+
OrbitControls
|
|
628
|
+
|
|
629
|
+
***
|
|
630
|
+
|
|
631
|
+
### touches
|
|
632
|
+
|
|
633
|
+
> **touches**: `object`
|
|
634
|
+
|
|
635
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:313](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L313)
|
|
636
|
+
|
|
637
|
+
Touch mapping. `ONE` is one finger; `TWO` is two fingers.
|
|
638
|
+
|
|
639
|
+
#### ONE
|
|
640
|
+
|
|
641
|
+
> **ONE**: `number`
|
|
642
|
+
|
|
643
|
+
#### TWO
|
|
644
|
+
|
|
645
|
+
> **TWO**: `number`
|
|
646
|
+
|
|
647
|
+
#### Memberof
|
|
648
|
+
|
|
649
|
+
OrbitControls
|
|
650
|
+
|
|
651
|
+
***
|
|
652
|
+
|
|
653
|
+
### userData
|
|
654
|
+
|
|
655
|
+
> **userData**: `object`
|
|
656
|
+
|
|
657
|
+
Defined in: [ecs/component/Component.ts:39](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L39)
|
|
658
|
+
|
|
659
|
+
User-defined key/value bag initialized from `params.userData`.
|
|
660
|
+
The engine never reads or writes it; suitable for temporary state or business metadata.
|
|
661
|
+
|
|
662
|
+
#### Index Signature
|
|
663
|
+
|
|
664
|
+
\[`key`: `string`\]: `unknown`
|
|
665
|
+
|
|
666
|
+
#### Memberof
|
|
667
|
+
|
|
668
|
+
Component
|
|
669
|
+
|
|
670
|
+
#### Inherited from
|
|
671
|
+
|
|
672
|
+
[`Controls`](Controls.md).[`userData`](Controls.md#userdata)
|
|
673
|
+
|
|
674
|
+
***
|
|
675
|
+
|
|
676
|
+
### worldMatrixDirty
|
|
677
|
+
|
|
678
|
+
> `protected` **worldMatrixDirty**: `boolean` = `false`
|
|
679
|
+
|
|
680
|
+
Defined in: [ecs/component/Component.ts:110](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L110)
|
|
681
|
+
|
|
682
|
+
#### Inherited from
|
|
683
|
+
|
|
684
|
+
[`Controls`](Controls.md).[`worldMatrixDirty`](Controls.md#worldmatrixdirty)
|
|
685
|
+
|
|
686
|
+
***
|
|
687
|
+
|
|
688
|
+
### worldMatrixNeedsUpdateIndex
|
|
689
|
+
|
|
690
|
+
> **worldMatrixNeedsUpdateIndex**: `number` = `-1`
|
|
691
|
+
|
|
692
|
+
Defined in: [ecs/component/Component.ts:30](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L30)
|
|
693
|
+
|
|
694
|
+
Index inside the world-matrix dirty list assigned by [ComponentsManager](ComponentsManager.md) for O(1) removal; `-1` means not
|
|
695
|
+
listed.
|
|
696
|
+
|
|
697
|
+
#### Memberof
|
|
698
|
+
|
|
699
|
+
Component
|
|
700
|
+
|
|
701
|
+
#### Inherited from
|
|
702
|
+
|
|
703
|
+
[`Controls`](Controls.md).[`worldMatrixNeedsUpdateIndex`](Controls.md#worldmatrixneedsupdateindex)
|
|
704
|
+
|
|
705
|
+
***
|
|
706
|
+
|
|
707
|
+
### zoomSpeed
|
|
708
|
+
|
|
709
|
+
> **zoomSpeed**: `number` = `1`
|
|
710
|
+
|
|
711
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:208](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L208)
|
|
712
|
+
|
|
713
|
+
Dolly speed multiplier.
|
|
714
|
+
|
|
715
|
+
#### Memberof
|
|
716
|
+
|
|
717
|
+
OrbitControls
|
|
718
|
+
|
|
719
|
+
## Accessors
|
|
720
|
+
|
|
721
|
+
### enabled
|
|
722
|
+
|
|
723
|
+
#### Get Signature
|
|
724
|
+
|
|
725
|
+
> **get** **enabled**(): `boolean`
|
|
726
|
+
|
|
727
|
+
Defined in: [ecs/component/Component.ts:81](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L81)
|
|
728
|
+
|
|
729
|
+
Whether the user enable switch is on, regardless of entity hierarchy activity.
|
|
730
|
+
See [isActiveAndEnabled](Component.md#isactiveandenabled) for whether the component is currently running.
|
|
731
|
+
|
|
732
|
+
##### Memberof
|
|
733
|
+
|
|
734
|
+
Component
|
|
735
|
+
|
|
736
|
+
##### Returns
|
|
737
|
+
|
|
738
|
+
`boolean`
|
|
739
|
+
|
|
740
|
+
#### Set Signature
|
|
741
|
+
|
|
742
|
+
> **set** **enabled**(`value`): `void`
|
|
743
|
+
|
|
744
|
+
Defined in: [ecs/component/Component.ts:61](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L61)
|
|
745
|
+
|
|
746
|
+
Set the user enable switch without changing entity hierarchy activity.
|
|
747
|
+
The component runs only when this switch is on and the entity is active in hierarchy.
|
|
748
|
+
|
|
749
|
+
##### Memberof
|
|
750
|
+
|
|
751
|
+
Component
|
|
752
|
+
|
|
753
|
+
##### Parameters
|
|
754
|
+
|
|
755
|
+
###### value
|
|
756
|
+
|
|
757
|
+
`boolean`
|
|
758
|
+
|
|
759
|
+
##### Returns
|
|
760
|
+
|
|
761
|
+
`void`
|
|
762
|
+
|
|
763
|
+
#### Inherited from
|
|
764
|
+
|
|
765
|
+
[`Controls`](Controls.md).[`enabled`](Controls.md#enabled)
|
|
766
|
+
|
|
767
|
+
***
|
|
768
|
+
|
|
769
|
+
### isActiveAndEnabled
|
|
770
|
+
|
|
771
|
+
#### Get Signature
|
|
772
|
+
|
|
773
|
+
> **get** **isActiveAndEnabled**(): `boolean`
|
|
774
|
+
|
|
775
|
+
Defined in: [ecs/component/Component.ts:94](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L94)
|
|
776
|
+
|
|
777
|
+
Whether the component is currently running: enabled, entity active in hierarchy, and enable handler completed.
|
|
778
|
+
|
|
779
|
+
##### Memberof
|
|
780
|
+
|
|
781
|
+
Component
|
|
782
|
+
|
|
783
|
+
##### Returns
|
|
784
|
+
|
|
785
|
+
`boolean`
|
|
786
|
+
|
|
787
|
+
#### Inherited from
|
|
788
|
+
|
|
789
|
+
[`Controls`](Controls.md).[`isActiveAndEnabled`](Controls.md#isactiveandenabled)
|
|
790
|
+
|
|
791
|
+
***
|
|
792
|
+
|
|
793
|
+
### scene
|
|
794
|
+
|
|
795
|
+
#### Get Signature
|
|
796
|
+
|
|
797
|
+
> **get** **scene**(): [`Scene`](Scene.md)
|
|
798
|
+
|
|
799
|
+
Defined in: [ecs/component/Component.ts:49](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L49)
|
|
800
|
+
|
|
801
|
+
Scene that owns this component, resolved through `entity.scene`.
|
|
802
|
+
Undefined until the entity is attached to a scene.
|
|
803
|
+
|
|
804
|
+
##### Memberof
|
|
805
|
+
|
|
806
|
+
Component
|
|
807
|
+
|
|
808
|
+
##### Returns
|
|
809
|
+
|
|
810
|
+
[`Scene`](Scene.md)
|
|
811
|
+
|
|
812
|
+
#### Inherited from
|
|
813
|
+
|
|
814
|
+
[`Controls`](Controls.md).[`scene`](Controls.md#scene)
|
|
815
|
+
|
|
816
|
+
## Methods
|
|
817
|
+
|
|
818
|
+
### destroy()
|
|
819
|
+
|
|
820
|
+
> **destroy**(): `void`
|
|
821
|
+
|
|
822
|
+
Defined in: [ecs/component/Component.ts:173](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L173)
|
|
823
|
+
|
|
824
|
+
Destroy the component: reset awake state, disable if running without clearing the user switch, run the destroy
|
|
825
|
+
hook, then dispose event listeners.
|
|
826
|
+
Invoked by [Entity.removeComponent](Entity.md#removecomponent); do not call from user code.
|
|
827
|
+
|
|
828
|
+
#### Returns
|
|
829
|
+
|
|
830
|
+
`void`
|
|
831
|
+
|
|
832
|
+
#### Memberof
|
|
833
|
+
|
|
834
|
+
Component
|
|
835
|
+
|
|
836
|
+
#### Inherited from
|
|
837
|
+
|
|
838
|
+
[`Controls`](Controls.md).[`destroy`](Controls.md#destroy)
|
|
839
|
+
|
|
840
|
+
***
|
|
841
|
+
|
|
842
|
+
### dispose()
|
|
843
|
+
|
|
844
|
+
> **dispose**(): `void`
|
|
845
|
+
|
|
846
|
+
Defined in: [event/EventDispatcher.ts:192](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/event/EventDispatcher.ts#L192)
|
|
847
|
+
|
|
848
|
+
Clear every subscriber list and release the map entries.
|
|
849
|
+
|
|
850
|
+
#### Returns
|
|
851
|
+
|
|
852
|
+
`void`
|
|
853
|
+
|
|
854
|
+
#### Memberof
|
|
855
|
+
|
|
856
|
+
EventDispatcher
|
|
857
|
+
|
|
858
|
+
#### Inherited from
|
|
859
|
+
|
|
860
|
+
[`Controls`](Controls.md).[`dispose`](Controls.md#dispose)
|
|
861
|
+
|
|
862
|
+
***
|
|
863
|
+
|
|
864
|
+
### dollyIn()
|
|
865
|
+
|
|
866
|
+
> **dollyIn**(`dollyScale`): `void`
|
|
867
|
+
|
|
868
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:650](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L650)
|
|
869
|
+
|
|
870
|
+
Dolly in by `dollyScale` (values in `(0, 1)` move closer / shrink the frustum).
|
|
871
|
+
|
|
872
|
+
#### Parameters
|
|
873
|
+
|
|
874
|
+
##### dollyScale
|
|
875
|
+
|
|
876
|
+
`number`
|
|
877
|
+
|
|
878
|
+
Scale factor
|
|
879
|
+
|
|
880
|
+
#### Returns
|
|
881
|
+
|
|
882
|
+
`void`
|
|
883
|
+
|
|
884
|
+
#### Memberof
|
|
885
|
+
|
|
886
|
+
OrbitControls
|
|
887
|
+
|
|
888
|
+
***
|
|
889
|
+
|
|
890
|
+
### dollyOut()
|
|
891
|
+
|
|
892
|
+
> **dollyOut**(`dollyScale`): `void`
|
|
893
|
+
|
|
894
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:664](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L664)
|
|
895
|
+
|
|
896
|
+
Dolly out by `dollyScale` (values in `(0, 1)` move farther / grow the frustum).
|
|
897
|
+
|
|
898
|
+
#### Parameters
|
|
899
|
+
|
|
900
|
+
##### dollyScale
|
|
901
|
+
|
|
902
|
+
`number`
|
|
903
|
+
|
|
904
|
+
Scale factor
|
|
905
|
+
|
|
906
|
+
#### Returns
|
|
907
|
+
|
|
908
|
+
`void`
|
|
909
|
+
|
|
910
|
+
#### Memberof
|
|
911
|
+
|
|
912
|
+
OrbitControls
|
|
913
|
+
|
|
914
|
+
***
|
|
915
|
+
|
|
916
|
+
### emit()
|
|
917
|
+
|
|
918
|
+
> **emit**(`event`): `void`
|
|
919
|
+
|
|
920
|
+
Defined in: [event/EventDispatcher.ts:159](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/event/EventDispatcher.ts#L159)
|
|
921
|
+
|
|
922
|
+
Emit an event to subscribers of `event.type` in priority order.
|
|
923
|
+
|
|
924
|
+
The subscriber array is sliced before the loop so removals during a
|
|
925
|
+
callback do not affect iteration. A callback return of `true` stops
|
|
926
|
+
the remaining subscribers for this emission.
|
|
927
|
+
|
|
928
|
+
#### Parameters
|
|
929
|
+
|
|
930
|
+
##### event
|
|
931
|
+
|
|
932
|
+
Event object; `type` is required
|
|
933
|
+
|
|
934
|
+
###### type
|
|
935
|
+
|
|
936
|
+
`string`
|
|
937
|
+
|
|
938
|
+
#### Returns
|
|
939
|
+
|
|
940
|
+
`void`
|
|
941
|
+
|
|
942
|
+
#### Memberof
|
|
943
|
+
|
|
944
|
+
EventDispatcher
|
|
945
|
+
|
|
946
|
+
#### Inherited from
|
|
947
|
+
|
|
948
|
+
[`Controls`](Controls.md).[`emit`](Controls.md#emit)
|
|
949
|
+
|
|
950
|
+
***
|
|
951
|
+
|
|
952
|
+
### focus()
|
|
953
|
+
|
|
954
|
+
> **focus**(`entity`): `void`
|
|
955
|
+
|
|
956
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:709](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L709)
|
|
957
|
+
|
|
958
|
+
Frame `entity` in the view.
|
|
959
|
+
|
|
960
|
+
Reserved. Does not change the camera. A later pass will keep azimuth and polar
|
|
961
|
+
and adjust radius from the entity world bounds.
|
|
962
|
+
|
|
963
|
+
#### Parameters
|
|
964
|
+
|
|
965
|
+
##### entity
|
|
966
|
+
|
|
967
|
+
[`Entity`](Entity.md)
|
|
968
|
+
|
|
969
|
+
Entity to frame
|
|
970
|
+
|
|
971
|
+
#### Returns
|
|
972
|
+
|
|
973
|
+
`void`
|
|
974
|
+
|
|
975
|
+
#### Memberof
|
|
976
|
+
|
|
977
|
+
OrbitControls
|
|
978
|
+
|
|
979
|
+
***
|
|
980
|
+
|
|
981
|
+
### getAzimuthalAngle()
|
|
982
|
+
|
|
983
|
+
> **getAzimuthalAngle**(): `number`
|
|
984
|
+
|
|
985
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:566](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L566)
|
|
986
|
+
|
|
987
|
+
Current azimuth angle in radians.
|
|
988
|
+
|
|
989
|
+
#### Returns
|
|
990
|
+
|
|
991
|
+
`number`
|
|
992
|
+
|
|
993
|
+
Azimuth angle
|
|
994
|
+
|
|
995
|
+
#### Memberof
|
|
996
|
+
|
|
997
|
+
OrbitControls
|
|
998
|
+
|
|
999
|
+
***
|
|
1000
|
+
|
|
1001
|
+
### getDistance()
|
|
1002
|
+
|
|
1003
|
+
> **getDistance**(): `number`
|
|
1004
|
+
|
|
1005
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:579](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L579)
|
|
1006
|
+
|
|
1007
|
+
Distance from the camera to [target](#target).
|
|
1008
|
+
|
|
1009
|
+
#### Returns
|
|
1010
|
+
|
|
1011
|
+
`number`
|
|
1012
|
+
|
|
1013
|
+
Distance
|
|
1014
|
+
|
|
1015
|
+
#### Memberof
|
|
1016
|
+
|
|
1017
|
+
OrbitControls
|
|
1018
|
+
|
|
1019
|
+
***
|
|
1020
|
+
|
|
1021
|
+
### getPolarAngle()
|
|
1022
|
+
|
|
1023
|
+
> **getPolarAngle**(): `number`
|
|
1024
|
+
|
|
1025
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:553](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L553)
|
|
1026
|
+
|
|
1027
|
+
Current polar angle in radians.
|
|
1028
|
+
|
|
1029
|
+
#### Returns
|
|
1030
|
+
|
|
1031
|
+
`number`
|
|
1032
|
+
|
|
1033
|
+
Polar angle
|
|
1034
|
+
|
|
1035
|
+
#### Memberof
|
|
1036
|
+
|
|
1037
|
+
OrbitControls
|
|
1038
|
+
|
|
1039
|
+
***
|
|
1040
|
+
|
|
1041
|
+
### handleAwake()
|
|
1042
|
+
|
|
1043
|
+
> `protected` **handleAwake**(): `void`
|
|
1044
|
+
|
|
1045
|
+
Defined in: [ecs/component/script/Script.ts:176](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L176)
|
|
1046
|
+
|
|
1047
|
+
Forwards the component awake hook to [onAwake](Script.md#onawake).
|
|
1048
|
+
|
|
1049
|
+
#### Returns
|
|
1050
|
+
|
|
1051
|
+
`void`
|
|
1052
|
+
|
|
1053
|
+
#### Inherited from
|
|
1054
|
+
|
|
1055
|
+
[`Controls`](Controls.md).[`handleAwake`](Controls.md#handleawake)
|
|
1056
|
+
|
|
1057
|
+
***
|
|
1058
|
+
|
|
1059
|
+
### handleDestroy()
|
|
1060
|
+
|
|
1061
|
+
> `protected` **handleDestroy**(): `void`
|
|
1062
|
+
|
|
1063
|
+
Defined in: [ecs/component/script/Script.ts:287](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L287)
|
|
1064
|
+
|
|
1065
|
+
Forwards the component destroy hook to [onDestroy](Script.md#ondestroy).
|
|
1066
|
+
|
|
1067
|
+
#### Returns
|
|
1068
|
+
|
|
1069
|
+
`void`
|
|
1070
|
+
|
|
1071
|
+
#### Inherited from
|
|
1072
|
+
|
|
1073
|
+
[`Controls`](Controls.md).[`handleDestroy`](Controls.md#handledestroy)
|
|
1074
|
+
|
|
1075
|
+
***
|
|
1076
|
+
|
|
1077
|
+
### handleDisable()
|
|
1078
|
+
|
|
1079
|
+
> `protected` **handleDisable**(): `void`
|
|
1080
|
+
|
|
1081
|
+
Defined in: [ecs/component/script/Script.ts:238](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L238)
|
|
1082
|
+
|
|
1083
|
+
Disable hook: unregister from manager buckets and the entity script list, then call [onDisable](Script.md#ondisable).
|
|
1084
|
+
|
|
1085
|
+
#### Returns
|
|
1086
|
+
|
|
1087
|
+
`void`
|
|
1088
|
+
|
|
1089
|
+
#### Inherited from
|
|
1090
|
+
|
|
1091
|
+
[`Controls`](Controls.md).[`handleDisable`](Controls.md#handledisable)
|
|
1092
|
+
|
|
1093
|
+
***
|
|
1094
|
+
|
|
1095
|
+
### handleEnable()
|
|
1096
|
+
|
|
1097
|
+
> `protected` **handleEnable**(): `void`
|
|
1098
|
+
|
|
1099
|
+
Defined in: [ecs/component/script/Script.ts:189](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L189)
|
|
1100
|
+
|
|
1101
|
+
Enable hook: detect overridden lifecycle methods via prototype comparison,
|
|
1102
|
+
register only those with [ComponentsManager](ComponentsManager.md), add this script to the entity list, then call [onEnable](#onenable).
|
|
1103
|
+
|
|
1104
|
+
#### Returns
|
|
1105
|
+
|
|
1106
|
+
`void`
|
|
1107
|
+
|
|
1108
|
+
#### Inherited from
|
|
1109
|
+
|
|
1110
|
+
[`Controls`](Controls.md).[`handleEnable`](Controls.md#handleenable)
|
|
1111
|
+
|
|
1112
|
+
***
|
|
1113
|
+
|
|
1114
|
+
### off()
|
|
1115
|
+
|
|
1116
|
+
> **off**(`type`, `callback?`): `void`
|
|
1117
|
+
|
|
1118
|
+
Defined in: [event/EventDispatcher.ts:85](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/event/EventDispatcher.ts#L85)
|
|
1119
|
+
|
|
1120
|
+
Unsubscribe from an event type.
|
|
1121
|
+
|
|
1122
|
+
When `callback` is omitted, all subscribers for that type are removed.
|
|
1123
|
+
When `callback` is given, only the first matching subscriber is removed.
|
|
1124
|
+
|
|
1125
|
+
#### Parameters
|
|
1126
|
+
|
|
1127
|
+
##### type
|
|
1128
|
+
|
|
1129
|
+
`string`
|
|
1130
|
+
|
|
1131
|
+
Event type
|
|
1132
|
+
|
|
1133
|
+
##### callback?
|
|
1134
|
+
|
|
1135
|
+
[`SubscriberCallbackFn`](../type-aliases/SubscriberCallbackFn.md)
|
|
1136
|
+
|
|
1137
|
+
Callback to remove; omit to clear the type
|
|
1138
|
+
|
|
1139
|
+
#### Returns
|
|
1140
|
+
|
|
1141
|
+
`void`
|
|
1142
|
+
|
|
1143
|
+
#### Memberof
|
|
1144
|
+
|
|
1145
|
+
EventDispatcher
|
|
1146
|
+
|
|
1147
|
+
#### Inherited from
|
|
1148
|
+
|
|
1149
|
+
[`Controls`](Controls.md).[`off`](Controls.md#off)
|
|
1150
|
+
|
|
1151
|
+
***
|
|
1152
|
+
|
|
1153
|
+
### on()
|
|
1154
|
+
|
|
1155
|
+
> **on**(`type`, `callback`, `options?`): `void`
|
|
1156
|
+
|
|
1157
|
+
Defined in: [event/EventDispatcher.ts:49](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/event/EventDispatcher.ts#L49)
|
|
1158
|
+
|
|
1159
|
+
Subscribe to an event type, inserting by descending priority.
|
|
1160
|
+
|
|
1161
|
+
#### Parameters
|
|
1162
|
+
|
|
1163
|
+
##### type
|
|
1164
|
+
|
|
1165
|
+
`string`
|
|
1166
|
+
|
|
1167
|
+
Event type
|
|
1168
|
+
|
|
1169
|
+
##### callback
|
|
1170
|
+
|
|
1171
|
+
[`SubscriberCallbackFn`](../type-aliases/SubscriberCallbackFn.md)
|
|
1172
|
+
|
|
1173
|
+
Subscriber callback
|
|
1174
|
+
|
|
1175
|
+
##### options?
|
|
1176
|
+
|
|
1177
|
+
Optional `this` binding. `priority` defaults to [Priority.NORMAL](../enumerations/Priority.md#normal)
|
|
1178
|
+
|
|
1179
|
+
###### priority?
|
|
1180
|
+
|
|
1181
|
+
[`Priority`](../enumerations/Priority.md)
|
|
1182
|
+
|
|
1183
|
+
###### target?
|
|
1184
|
+
|
|
1185
|
+
`any`
|
|
1186
|
+
|
|
1187
|
+
#### Returns
|
|
1188
|
+
|
|
1189
|
+
`void`
|
|
1190
|
+
|
|
1191
|
+
#### Memberof
|
|
1192
|
+
|
|
1193
|
+
EventDispatcher
|
|
1194
|
+
|
|
1195
|
+
#### Inherited from
|
|
1196
|
+
|
|
1197
|
+
[`Controls`](Controls.md).[`on`](Controls.md#on)
|
|
1198
|
+
|
|
1199
|
+
***
|
|
1200
|
+
|
|
1201
|
+
### onAfterCameraRender()
|
|
1202
|
+
|
|
1203
|
+
> **onAfterCameraRender**(`camera`): `void`
|
|
1204
|
+
|
|
1205
|
+
Defined in: [ecs/component/script/Script.ts:143](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L143)
|
|
1206
|
+
|
|
1207
|
+
Hook invoked after each camera renders.
|
|
1208
|
+
Use to restore temporary state or act on render results.
|
|
1209
|
+
|
|
1210
|
+
#### Parameters
|
|
1211
|
+
|
|
1212
|
+
##### camera
|
|
1213
|
+
|
|
1214
|
+
[`Camera`](Camera.md)
|
|
1215
|
+
|
|
1216
|
+
Active camera
|
|
1217
|
+
|
|
1218
|
+
#### Returns
|
|
1219
|
+
|
|
1220
|
+
`void`
|
|
1221
|
+
|
|
1222
|
+
#### Inherited from
|
|
1223
|
+
|
|
1224
|
+
[`Controls`](Controls.md).[`onAfterCameraRender`](Controls.md#onaftercamerarender)
|
|
1225
|
+
|
|
1226
|
+
***
|
|
1227
|
+
|
|
1228
|
+
### onAwake()
|
|
1229
|
+
|
|
1230
|
+
> **onAwake**(): `void`
|
|
1231
|
+
|
|
1232
|
+
Defined in: [ecs/component/script/Script.ts:89](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L89)
|
|
1233
|
+
|
|
1234
|
+
Lifecycle hook invoked once on first activation, before onEnable.
|
|
1235
|
+
Use for one-shot initialization while entity and scene references are ready.
|
|
1236
|
+
|
|
1237
|
+
#### Returns
|
|
1238
|
+
|
|
1239
|
+
`void`
|
|
1240
|
+
|
|
1241
|
+
#### Inherited from
|
|
1242
|
+
|
|
1243
|
+
[`Controls`](Controls.md).[`onAwake`](Controls.md#onawake)
|
|
1244
|
+
|
|
1245
|
+
***
|
|
1246
|
+
|
|
1247
|
+
### onBeforeCameraRender()
|
|
1248
|
+
|
|
1249
|
+
> **onBeforeCameraRender**(`camera`): `void`
|
|
1250
|
+
|
|
1251
|
+
Defined in: [ecs/component/script/Script.ts:134](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L134)
|
|
1252
|
+
|
|
1253
|
+
Hook invoked before each camera renders.
|
|
1254
|
+
Runs once per camera before renderer.render; use for camera-specific prep.
|
|
1255
|
+
|
|
1256
|
+
#### Parameters
|
|
1257
|
+
|
|
1258
|
+
##### camera
|
|
1259
|
+
|
|
1260
|
+
[`Camera`](Camera.md)
|
|
1261
|
+
|
|
1262
|
+
Active camera
|
|
1263
|
+
|
|
1264
|
+
#### Returns
|
|
1265
|
+
|
|
1266
|
+
`void`
|
|
1267
|
+
|
|
1268
|
+
#### Inherited from
|
|
1269
|
+
|
|
1270
|
+
[`Controls`](Controls.md).[`onBeforeCameraRender`](Controls.md#onbeforecamerarender)
|
|
1271
|
+
|
|
1272
|
+
***
|
|
1273
|
+
|
|
1274
|
+
### once()
|
|
1275
|
+
|
|
1276
|
+
> **once**(`type`, `callback`, `options?`): `void`
|
|
1277
|
+
|
|
1278
|
+
Defined in: [event/EventDispatcher.ts:132](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/event/EventDispatcher.ts#L132)
|
|
1279
|
+
|
|
1280
|
+
Subscribe for a single emission, then unsubscribe automatically.
|
|
1281
|
+
|
|
1282
|
+
The wrapper invokes the original callback, removes itself via `off`,
|
|
1283
|
+
and returns the original callback's return value so stop-propagation
|
|
1284
|
+
still works.
|
|
1285
|
+
|
|
1286
|
+
#### Parameters
|
|
1287
|
+
|
|
1288
|
+
##### type
|
|
1289
|
+
|
|
1290
|
+
`string`
|
|
1291
|
+
|
|
1292
|
+
Event type
|
|
1293
|
+
|
|
1294
|
+
##### callback
|
|
1295
|
+
|
|
1296
|
+
[`SubscriberCallbackFn`](../type-aliases/SubscriberCallbackFn.md)
|
|
1297
|
+
|
|
1298
|
+
Subscriber callback
|
|
1299
|
+
|
|
1300
|
+
##### options?
|
|
1301
|
+
|
|
1302
|
+
Optional `this` binding. `priority` defaults to [Priority.NORMAL](../enumerations/Priority.md#normal)
|
|
1303
|
+
|
|
1304
|
+
###### priority?
|
|
1305
|
+
|
|
1306
|
+
[`Priority`](../enumerations/Priority.md)
|
|
1307
|
+
|
|
1308
|
+
###### target?
|
|
1309
|
+
|
|
1310
|
+
`any`
|
|
1311
|
+
|
|
1312
|
+
#### Returns
|
|
1313
|
+
|
|
1314
|
+
`void`
|
|
1315
|
+
|
|
1316
|
+
#### Memberof
|
|
1317
|
+
|
|
1318
|
+
EventDispatcher
|
|
1319
|
+
|
|
1320
|
+
#### Inherited from
|
|
1321
|
+
|
|
1322
|
+
[`Controls`](Controls.md).[`once`](Controls.md#once)
|
|
1323
|
+
|
|
1324
|
+
***
|
|
1325
|
+
|
|
1326
|
+
### onClick()
|
|
1327
|
+
|
|
1328
|
+
> `protected` **onClick**(`event`): `boolean`
|
|
1329
|
+
|
|
1330
|
+
Defined in: [ecs/component/camera/controls/Controls.ts:201](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/Controls.ts#L201)
|
|
1331
|
+
|
|
1332
|
+
Click event handler. Does not capture the event.
|
|
1333
|
+
|
|
1334
|
+
#### Parameters
|
|
1335
|
+
|
|
1336
|
+
##### event
|
|
1337
|
+
|
|
1338
|
+
`MouseEvent`
|
|
1339
|
+
|
|
1340
|
+
Click event
|
|
1341
|
+
|
|
1342
|
+
#### Returns
|
|
1343
|
+
|
|
1344
|
+
`boolean`
|
|
1345
|
+
|
|
1346
|
+
{boolean} Whether the event was captured
|
|
1347
|
+
|
|
1348
|
+
#### Memberof
|
|
1349
|
+
|
|
1350
|
+
Controls
|
|
1351
|
+
|
|
1352
|
+
#### Inherited from
|
|
1353
|
+
|
|
1354
|
+
[`Controls`](Controls.md).[`onClick`](Controls.md#onclick)
|
|
1355
|
+
|
|
1356
|
+
***
|
|
1357
|
+
|
|
1358
|
+
### onContextmenu()
|
|
1359
|
+
|
|
1360
|
+
> `protected` **onContextmenu**(`event`): `boolean`
|
|
1361
|
+
|
|
1362
|
+
Defined in: [ecs/component/camera/controls/Controls.ts:109](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/Controls.ts#L109)
|
|
1363
|
+
|
|
1364
|
+
Context-menu event handler. Prevents the default browser menu and does not capture the event.
|
|
1365
|
+
|
|
1366
|
+
#### Parameters
|
|
1367
|
+
|
|
1368
|
+
##### event
|
|
1369
|
+
|
|
1370
|
+
`Event`
|
|
1371
|
+
|
|
1372
|
+
Context-menu event
|
|
1373
|
+
|
|
1374
|
+
#### Returns
|
|
1375
|
+
|
|
1376
|
+
`boolean`
|
|
1377
|
+
|
|
1378
|
+
{boolean} Whether the event was captured
|
|
1379
|
+
|
|
1380
|
+
#### Memberof
|
|
1381
|
+
|
|
1382
|
+
Controls
|
|
1383
|
+
|
|
1384
|
+
#### Inherited from
|
|
1385
|
+
|
|
1386
|
+
[`Controls`](Controls.md).[`onContextmenu`](Controls.md#oncontextmenu)
|
|
1387
|
+
|
|
1388
|
+
***
|
|
1389
|
+
|
|
1390
|
+
### onDblClick()
|
|
1391
|
+
|
|
1392
|
+
> `protected` **onDblClick**(`event`): `boolean`
|
|
1393
|
+
|
|
1394
|
+
Defined in: [ecs/component/camera/controls/Controls.ts:216](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/Controls.ts#L216)
|
|
1395
|
+
|
|
1396
|
+
Double-click event handler. Does not capture the event.
|
|
1397
|
+
|
|
1398
|
+
#### Parameters
|
|
1399
|
+
|
|
1400
|
+
##### event
|
|
1401
|
+
|
|
1402
|
+
`MouseEvent`
|
|
1403
|
+
|
|
1404
|
+
Double-click event
|
|
1405
|
+
|
|
1406
|
+
#### Returns
|
|
1407
|
+
|
|
1408
|
+
`boolean`
|
|
1409
|
+
|
|
1410
|
+
{boolean} Whether the event was captured
|
|
1411
|
+
|
|
1412
|
+
#### Memberof
|
|
1413
|
+
|
|
1414
|
+
Controls
|
|
1415
|
+
|
|
1416
|
+
#### Inherited from
|
|
1417
|
+
|
|
1418
|
+
[`Controls`](Controls.md).[`onDblClick`](Controls.md#ondblclick)
|
|
1419
|
+
|
|
1420
|
+
***
|
|
1421
|
+
|
|
1422
|
+
### onDestroy()
|
|
1423
|
+
|
|
1424
|
+
> **onDestroy**(): `void`
|
|
1425
|
+
|
|
1426
|
+
Defined in: [ecs/component/script/Script.ts:159](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L159)
|
|
1427
|
+
|
|
1428
|
+
Lifecycle hook invoked when the script is destroyed.
|
|
1429
|
+
Use for final resource cleanup.
|
|
1430
|
+
|
|
1431
|
+
#### Returns
|
|
1432
|
+
|
|
1433
|
+
`void`
|
|
1434
|
+
|
|
1435
|
+
#### Inherited from
|
|
1436
|
+
|
|
1437
|
+
[`Controls`](Controls.md).[`onDestroy`](Controls.md#ondestroy)
|
|
1438
|
+
|
|
1439
|
+
***
|
|
1440
|
+
|
|
1441
|
+
### onDisable()
|
|
1442
|
+
|
|
1443
|
+
> **onDisable**(): `void`
|
|
1444
|
+
|
|
1445
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:503](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L503)
|
|
1446
|
+
|
|
1447
|
+
Unsubscribe from interaction events and relative-center translations.
|
|
1448
|
+
|
|
1449
|
+
#### Returns
|
|
1450
|
+
|
|
1451
|
+
`void`
|
|
1452
|
+
|
|
1453
|
+
#### Memberof
|
|
1454
|
+
|
|
1455
|
+
OrbitControls
|
|
1456
|
+
|
|
1457
|
+
#### Overrides
|
|
1458
|
+
|
|
1459
|
+
[`Controls`](Controls.md).[`onDisable`](Controls.md#ondisable)
|
|
1460
|
+
|
|
1461
|
+
***
|
|
1462
|
+
|
|
1463
|
+
### onEnable()
|
|
1464
|
+
|
|
1465
|
+
> **onEnable**(): `void`
|
|
1466
|
+
|
|
1467
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:486](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L486)
|
|
1468
|
+
|
|
1469
|
+
Subscribe to interaction events and relative-center translations.
|
|
1470
|
+
|
|
1471
|
+
#### Returns
|
|
1472
|
+
|
|
1473
|
+
`void`
|
|
1474
|
+
|
|
1475
|
+
#### Memberof
|
|
1476
|
+
|
|
1477
|
+
OrbitControls
|
|
1478
|
+
|
|
1479
|
+
#### Overrides
|
|
1480
|
+
|
|
1481
|
+
[`Controls`](Controls.md).[`onEnable`](Controls.md#onenable)
|
|
1482
|
+
|
|
1483
|
+
***
|
|
1484
|
+
|
|
1485
|
+
### onKeyDown()
|
|
1486
|
+
|
|
1487
|
+
> `protected` **onKeyDown**(`event`): `boolean`
|
|
1488
|
+
|
|
1489
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:880](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L880)
|
|
1490
|
+
|
|
1491
|
+
Key-down handler. Arrow keys pan; with Control / Meta / Shift they rotate.
|
|
1492
|
+
|
|
1493
|
+
#### Parameters
|
|
1494
|
+
|
|
1495
|
+
##### event
|
|
1496
|
+
|
|
1497
|
+
`KeyboardEvent`
|
|
1498
|
+
|
|
1499
|
+
Key-down event
|
|
1500
|
+
|
|
1501
|
+
#### Returns
|
|
1502
|
+
|
|
1503
|
+
`boolean`
|
|
1504
|
+
|
|
1505
|
+
{boolean} Whether the event was captured
|
|
1506
|
+
|
|
1507
|
+
#### Memberof
|
|
1508
|
+
|
|
1509
|
+
OrbitControls
|
|
1510
|
+
|
|
1511
|
+
#### Overrides
|
|
1512
|
+
|
|
1513
|
+
[`Controls`](Controls.md).[`onKeyDown`](Controls.md#onkeydown)
|
|
1514
|
+
|
|
1515
|
+
***
|
|
1516
|
+
|
|
1517
|
+
### onKeyUp()
|
|
1518
|
+
|
|
1519
|
+
> `protected` **onKeyUp**(`event`): `boolean`
|
|
1520
|
+
|
|
1521
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:1014](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L1014)
|
|
1522
|
+
|
|
1523
|
+
Key-up handler. Clears the physical Control flag used by wheel pinch detection.
|
|
1524
|
+
|
|
1525
|
+
#### Parameters
|
|
1526
|
+
|
|
1527
|
+
##### event
|
|
1528
|
+
|
|
1529
|
+
`KeyboardEvent`
|
|
1530
|
+
|
|
1531
|
+
Key-up event
|
|
1532
|
+
|
|
1533
|
+
#### Returns
|
|
1534
|
+
|
|
1535
|
+
`boolean`
|
|
1536
|
+
|
|
1537
|
+
{boolean} Whether the event was captured
|
|
1538
|
+
|
|
1539
|
+
#### Memberof
|
|
1540
|
+
|
|
1541
|
+
OrbitControls
|
|
1542
|
+
|
|
1543
|
+
#### Overrides
|
|
1544
|
+
|
|
1545
|
+
[`Controls`](Controls.md).[`onKeyUp`](Controls.md#onkeyup)
|
|
1546
|
+
|
|
1547
|
+
***
|
|
1548
|
+
|
|
1549
|
+
### onLateUpdate()
|
|
1550
|
+
|
|
1551
|
+
> **onLateUpdate**(`timeSinceLastFrame`, `totalTime`): `void`
|
|
1552
|
+
|
|
1553
|
+
Defined in: [ecs/component/script/Script.ts:125](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L125)
|
|
1554
|
+
|
|
1555
|
+
Per-frame hook invoked after onUpdate.
|
|
1556
|
+
Use for follow-target adjustments and other work that must run after regular updates.
|
|
1557
|
+
|
|
1558
|
+
#### Parameters
|
|
1559
|
+
|
|
1560
|
+
##### timeSinceLastFrame
|
|
1561
|
+
|
|
1562
|
+
`number`
|
|
1563
|
+
|
|
1564
|
+
Seconds since the previous frame
|
|
1565
|
+
|
|
1566
|
+
##### totalTime
|
|
1567
|
+
|
|
1568
|
+
`number`
|
|
1569
|
+
|
|
1570
|
+
Seconds since engine start
|
|
1571
|
+
|
|
1572
|
+
#### Returns
|
|
1573
|
+
|
|
1574
|
+
`void`
|
|
1575
|
+
|
|
1576
|
+
#### Inherited from
|
|
1577
|
+
|
|
1578
|
+
[`Controls`](Controls.md).[`onLateUpdate`](Controls.md#onlateupdate)
|
|
1579
|
+
|
|
1580
|
+
***
|
|
1581
|
+
|
|
1582
|
+
### onPhysicsUpdate()
|
|
1583
|
+
|
|
1584
|
+
> **onPhysicsUpdate**(): `void`
|
|
1585
|
+
|
|
1586
|
+
Defined in: [ecs/component/script/Script.ts:167](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/script/Script.ts#L167)
|
|
1587
|
+
|
|
1588
|
+
Physics-step hook with a cadence independent of the render frame rate.
|
|
1589
|
+
Only runs after onStart has completed; use for forces and rigid-body sync.
|
|
1590
|
+
|
|
1591
|
+
#### Returns
|
|
1592
|
+
|
|
1593
|
+
`void`
|
|
1594
|
+
|
|
1595
|
+
#### Inherited from
|
|
1596
|
+
|
|
1597
|
+
[`Controls`](Controls.md).[`onPhysicsUpdate`](Controls.md#onphysicsupdate)
|
|
1598
|
+
|
|
1599
|
+
***
|
|
1600
|
+
|
|
1601
|
+
### onPointerCancel()
|
|
1602
|
+
|
|
1603
|
+
> `protected` **onPointerCancel**(`event`): `boolean`
|
|
1604
|
+
|
|
1605
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:813](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L813)
|
|
1606
|
+
|
|
1607
|
+
Pointer-cancel handler. Same as pointer-up.
|
|
1608
|
+
|
|
1609
|
+
#### Parameters
|
|
1610
|
+
|
|
1611
|
+
##### event
|
|
1612
|
+
|
|
1613
|
+
`PointerEvent`
|
|
1614
|
+
|
|
1615
|
+
Pointer-cancel event
|
|
1616
|
+
|
|
1617
|
+
#### Returns
|
|
1618
|
+
|
|
1619
|
+
`boolean`
|
|
1620
|
+
|
|
1621
|
+
{boolean} Whether the event was captured
|
|
1622
|
+
|
|
1623
|
+
#### Memberof
|
|
1624
|
+
|
|
1625
|
+
OrbitControls
|
|
1626
|
+
|
|
1627
|
+
#### Overrides
|
|
1628
|
+
|
|
1629
|
+
[`Controls`](Controls.md).[`onPointerCancel`](Controls.md#onpointercancel)
|
|
1630
|
+
|
|
1631
|
+
***
|
|
1632
|
+
|
|
1633
|
+
### onPointerDown()
|
|
1634
|
+
|
|
1635
|
+
> `protected` **onPointerDown**(`event`): `boolean`
|
|
1636
|
+
|
|
1637
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:725](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L725)
|
|
1638
|
+
|
|
1639
|
+
Pointer-down handler. Starts mouse or touch orbit / pan / dolly.
|
|
1640
|
+
|
|
1641
|
+
#### Parameters
|
|
1642
|
+
|
|
1643
|
+
##### event
|
|
1644
|
+
|
|
1645
|
+
`PointerEvent`
|
|
1646
|
+
|
|
1647
|
+
Pointer-down event
|
|
1648
|
+
|
|
1649
|
+
#### Returns
|
|
1650
|
+
|
|
1651
|
+
`boolean`
|
|
1652
|
+
|
|
1653
|
+
{boolean} Whether the event was captured
|
|
1654
|
+
|
|
1655
|
+
#### Memberof
|
|
1656
|
+
|
|
1657
|
+
OrbitControls
|
|
1658
|
+
|
|
1659
|
+
#### Overrides
|
|
1660
|
+
|
|
1661
|
+
[`Controls`](Controls.md).[`onPointerDown`](Controls.md#onpointerdown)
|
|
1662
|
+
|
|
1663
|
+
***
|
|
1664
|
+
|
|
1665
|
+
### onPointerMove()
|
|
1666
|
+
|
|
1667
|
+
> `protected` **onPointerMove**(`event`): `boolean`
|
|
1668
|
+
|
|
1669
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:769](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L769)
|
|
1670
|
+
|
|
1671
|
+
Pointer-move handler. Continues the active mouse or touch gesture.
|
|
1672
|
+
|
|
1673
|
+
#### Parameters
|
|
1674
|
+
|
|
1675
|
+
##### event
|
|
1676
|
+
|
|
1677
|
+
`PointerEvent`
|
|
1678
|
+
|
|
1679
|
+
Pointer-move event
|
|
1680
|
+
|
|
1681
|
+
#### Returns
|
|
1682
|
+
|
|
1683
|
+
`boolean`
|
|
1684
|
+
|
|
1685
|
+
{boolean} Whether the event was captured
|
|
1686
|
+
|
|
1687
|
+
#### Memberof
|
|
1688
|
+
|
|
1689
|
+
OrbitControls
|
|
1690
|
+
|
|
1691
|
+
#### Overrides
|
|
1692
|
+
|
|
1693
|
+
[`Controls`](Controls.md).[`onPointerMove`](Controls.md#onpointermove)
|
|
1694
|
+
|
|
1695
|
+
***
|
|
1696
|
+
|
|
1697
|
+
### onPointerUp()
|
|
1698
|
+
|
|
1699
|
+
> `protected` **onPointerUp**(`event`): `boolean`
|
|
1700
|
+
|
|
1701
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:799](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L799)
|
|
1702
|
+
|
|
1703
|
+
Pointer-up handler. Ends the gesture when the last pointer is released.
|
|
1704
|
+
|
|
1705
|
+
#### Parameters
|
|
1706
|
+
|
|
1707
|
+
##### event
|
|
1708
|
+
|
|
1709
|
+
`PointerEvent`
|
|
1710
|
+
|
|
1711
|
+
Pointer-up event
|
|
1712
|
+
|
|
1713
|
+
#### Returns
|
|
1714
|
+
|
|
1715
|
+
`boolean`
|
|
1716
|
+
|
|
1717
|
+
{boolean} Whether the event was captured
|
|
1718
|
+
|
|
1719
|
+
#### Memberof
|
|
1720
|
+
|
|
1721
|
+
OrbitControls
|
|
1722
|
+
|
|
1723
|
+
#### Overrides
|
|
1724
|
+
|
|
1725
|
+
[`Controls`](Controls.md).[`onPointerUp`](Controls.md#onpointerup)
|
|
1726
|
+
|
|
1727
|
+
***
|
|
1728
|
+
|
|
1729
|
+
### onStart()
|
|
1730
|
+
|
|
1731
|
+
> **onStart**(): `void`
|
|
1732
|
+
|
|
1733
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:523](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L523)
|
|
1734
|
+
|
|
1735
|
+
Snap the camera to [target](#target) once sibling components are ready.
|
|
1736
|
+
|
|
1737
|
+
#### Returns
|
|
1738
|
+
|
|
1739
|
+
`void`
|
|
1740
|
+
|
|
1741
|
+
#### Memberof
|
|
1742
|
+
|
|
1743
|
+
OrbitControls
|
|
1744
|
+
|
|
1745
|
+
#### Overrides
|
|
1746
|
+
|
|
1747
|
+
[`Controls`](Controls.md).[`onStart`](Controls.md#onstart)
|
|
1748
|
+
|
|
1749
|
+
***
|
|
1750
|
+
|
|
1751
|
+
### onUpdate()
|
|
1752
|
+
|
|
1753
|
+
> **onUpdate**(`timeSinceLastFrame`, `totalTime`): `void`
|
|
1754
|
+
|
|
1755
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:538](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L538)
|
|
1756
|
+
|
|
1757
|
+
Apply damping and auto-rotate. Must run every frame when those flags are on.
|
|
1758
|
+
|
|
1759
|
+
#### Parameters
|
|
1760
|
+
|
|
1761
|
+
##### timeSinceLastFrame
|
|
1762
|
+
|
|
1763
|
+
`number`
|
|
1764
|
+
|
|
1765
|
+
Seconds since the previous frame
|
|
1766
|
+
|
|
1767
|
+
##### totalTime
|
|
1768
|
+
|
|
1769
|
+
`number`
|
|
1770
|
+
|
|
1771
|
+
Seconds since engine start
|
|
1772
|
+
|
|
1773
|
+
#### Returns
|
|
1774
|
+
|
|
1775
|
+
`void`
|
|
1776
|
+
|
|
1777
|
+
#### Memberof
|
|
1778
|
+
|
|
1779
|
+
OrbitControls
|
|
1780
|
+
|
|
1781
|
+
#### Overrides
|
|
1782
|
+
|
|
1783
|
+
[`Controls`](Controls.md).[`onUpdate`](Controls.md#onupdate)
|
|
1784
|
+
|
|
1785
|
+
***
|
|
1786
|
+
|
|
1787
|
+
### onWheel()
|
|
1788
|
+
|
|
1789
|
+
> `protected` **onWheel**(`event`): `boolean`
|
|
1790
|
+
|
|
1791
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:827](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L827)
|
|
1792
|
+
|
|
1793
|
+
Wheel handler. Dollies along the view axis when idle.
|
|
1794
|
+
|
|
1795
|
+
#### Parameters
|
|
1796
|
+
|
|
1797
|
+
##### event
|
|
1798
|
+
|
|
1799
|
+
`WheelEvent`
|
|
1800
|
+
|
|
1801
|
+
Wheel event
|
|
1802
|
+
|
|
1803
|
+
#### Returns
|
|
1804
|
+
|
|
1805
|
+
`boolean`
|
|
1806
|
+
|
|
1807
|
+
{boolean} Whether the event was captured
|
|
1808
|
+
|
|
1809
|
+
#### Memberof
|
|
1810
|
+
|
|
1811
|
+
OrbitControls
|
|
1812
|
+
|
|
1813
|
+
#### Overrides
|
|
1814
|
+
|
|
1815
|
+
[`Controls`](Controls.md).[`onWheel`](Controls.md#onwheel)
|
|
1816
|
+
|
|
1817
|
+
***
|
|
1818
|
+
|
|
1819
|
+
### pan()
|
|
1820
|
+
|
|
1821
|
+
> **pan**(`deltaX`, `deltaY`): `void`
|
|
1822
|
+
|
|
1823
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:636](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L636)
|
|
1824
|
+
|
|
1825
|
+
Pan the target by a CSS-pixel delta. Right and down are positive.
|
|
1826
|
+
|
|
1827
|
+
#### Parameters
|
|
1828
|
+
|
|
1829
|
+
##### deltaX
|
|
1830
|
+
|
|
1831
|
+
`number`
|
|
1832
|
+
|
|
1833
|
+
Horizontal pan in pixels
|
|
1834
|
+
|
|
1835
|
+
##### deltaY
|
|
1836
|
+
|
|
1837
|
+
`number`
|
|
1838
|
+
|
|
1839
|
+
Vertical pan in pixels
|
|
1840
|
+
|
|
1841
|
+
#### Returns
|
|
1842
|
+
|
|
1843
|
+
`void`
|
|
1844
|
+
|
|
1845
|
+
#### Memberof
|
|
1846
|
+
|
|
1847
|
+
OrbitControls
|
|
1848
|
+
|
|
1849
|
+
***
|
|
1850
|
+
|
|
1851
|
+
### reset()
|
|
1852
|
+
|
|
1853
|
+
> **reset**(): `void`
|
|
1854
|
+
|
|
1855
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:607](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L607)
|
|
1856
|
+
|
|
1857
|
+
Restore the last [saveState](#savestate) snapshot and apply it immediately.
|
|
1858
|
+
|
|
1859
|
+
#### Returns
|
|
1860
|
+
|
|
1861
|
+
`void`
|
|
1862
|
+
|
|
1863
|
+
#### Memberof
|
|
1864
|
+
|
|
1865
|
+
OrbitControls
|
|
1866
|
+
|
|
1867
|
+
***
|
|
1868
|
+
|
|
1869
|
+
### resetWorldMatrixNeedsUpdate()
|
|
1870
|
+
|
|
1871
|
+
> `protected` **resetWorldMatrixNeedsUpdate**(): `void`
|
|
1872
|
+
|
|
1873
|
+
Defined in: [ecs/component/Component.ts:230](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L230)
|
|
1874
|
+
|
|
1875
|
+
Clear the world-matrix dirty flag after [updateWorldMatrix](Component.md#updateworldmatrix).
|
|
1876
|
+
Called by [ComponentsManager.callWorldMatrixUpdate](ComponentsManager.md#callworldmatrixupdate); does not clear the list index.
|
|
1877
|
+
|
|
1878
|
+
#### Returns
|
|
1879
|
+
|
|
1880
|
+
`void`
|
|
1881
|
+
|
|
1882
|
+
#### Memberof
|
|
1883
|
+
|
|
1884
|
+
Component
|
|
1885
|
+
|
|
1886
|
+
#### Inherited from
|
|
1887
|
+
|
|
1888
|
+
[`Controls`](Controls.md).[`resetWorldMatrixNeedsUpdate`](Controls.md#resetworldmatrixneedsupdate)
|
|
1889
|
+
|
|
1890
|
+
***
|
|
1891
|
+
|
|
1892
|
+
### rotateLeft()
|
|
1893
|
+
|
|
1894
|
+
> **rotateLeft**(`angle`): `void`
|
|
1895
|
+
|
|
1896
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:678](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L678)
|
|
1897
|
+
|
|
1898
|
+
Rotate left around the orbit up axis.
|
|
1899
|
+
|
|
1900
|
+
#### Parameters
|
|
1901
|
+
|
|
1902
|
+
##### angle
|
|
1903
|
+
|
|
1904
|
+
`number`
|
|
1905
|
+
|
|
1906
|
+
Angle in radians
|
|
1907
|
+
|
|
1908
|
+
#### Returns
|
|
1909
|
+
|
|
1910
|
+
`void`
|
|
1911
|
+
|
|
1912
|
+
#### Memberof
|
|
1913
|
+
|
|
1914
|
+
OrbitControls
|
|
1915
|
+
|
|
1916
|
+
***
|
|
1917
|
+
|
|
1918
|
+
### rotateUp()
|
|
1919
|
+
|
|
1920
|
+
> **rotateUp**(`angle`): `void`
|
|
1921
|
+
|
|
1922
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:692](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L692)
|
|
1923
|
+
|
|
1924
|
+
Rotate up around the orbit right axis.
|
|
1925
|
+
|
|
1926
|
+
#### Parameters
|
|
1927
|
+
|
|
1928
|
+
##### angle
|
|
1929
|
+
|
|
1930
|
+
`number`
|
|
1931
|
+
|
|
1932
|
+
Angle in radians
|
|
1933
|
+
|
|
1934
|
+
#### Returns
|
|
1935
|
+
|
|
1936
|
+
`void`
|
|
1937
|
+
|
|
1938
|
+
#### Memberof
|
|
1939
|
+
|
|
1940
|
+
OrbitControls
|
|
1941
|
+
|
|
1942
|
+
***
|
|
1943
|
+
|
|
1944
|
+
### saveState()
|
|
1945
|
+
|
|
1946
|
+
> **saveState**(): `void`
|
|
1947
|
+
|
|
1948
|
+
Defined in: [ecs/component/camera/controls/OrbitControls.ts:591](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/controls/OrbitControls.ts#L591)
|
|
1949
|
+
|
|
1950
|
+
Snapshot the current target, camera position, and orthographic frustum for [reset](#reset).
|
|
1951
|
+
|
|
1952
|
+
#### Returns
|
|
1953
|
+
|
|
1954
|
+
`void`
|
|
1955
|
+
|
|
1956
|
+
#### Memberof
|
|
1957
|
+
|
|
1958
|
+
OrbitControls
|
|
1959
|
+
|
|
1960
|
+
***
|
|
1961
|
+
|
|
1962
|
+
### updateWorldMatrix()
|
|
1963
|
+
|
|
1964
|
+
> **updateWorldMatrix**(`matrixAutoUpdate?`): `void`
|
|
1965
|
+
|
|
1966
|
+
Defined in: [ecs/component/Component.ts:163](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L163)
|
|
1967
|
+
|
|
1968
|
+
Update this component's world matrix.
|
|
1969
|
+
Invoked by [ComponentsManager.callWorldMatrixUpdate](ComponentsManager.md#callworldmatrixupdate) for dirty components each frame.
|
|
1970
|
+
Base implementation is empty; renderer subclasses sync Transform changes to Object3D.matrixWorld.
|
|
1971
|
+
|
|
1972
|
+
#### Parameters
|
|
1973
|
+
|
|
1974
|
+
##### matrixAutoUpdate?
|
|
1975
|
+
|
|
1976
|
+
`boolean` = `true`
|
|
1977
|
+
|
|
1978
|
+
Whether to auto-update the local matrix
|
|
1979
|
+
|
|
1980
|
+
#### Returns
|
|
1981
|
+
|
|
1982
|
+
`void`
|
|
1983
|
+
|
|
1984
|
+
#### Memberof
|
|
1985
|
+
|
|
1986
|
+
Component
|
|
1987
|
+
|
|
1988
|
+
#### Inherited from
|
|
1989
|
+
|
|
1990
|
+
[`Controls`](Controls.md).[`updateWorldMatrix`](Controls.md#updateworldmatrix)
|
|
1991
|
+
|
|
1992
|
+
***
|
|
1993
|
+
|
|
1994
|
+
### worldMatrixNeedsUpdate()
|
|
1995
|
+
|
|
1996
|
+
> **worldMatrixNeedsUpdate**(): `void`
|
|
1997
|
+
|
|
1998
|
+
Defined in: [ecs/component/Component.ts:141](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L141)
|
|
1999
|
+
|
|
2000
|
+
Mark the world matrix dirty and enqueue this component for the next matrix update pass.
|
|
2001
|
+
Use when this component's own Object3D local transform changed and no ancestor Transform is the dirty root.
|
|
2002
|
+
Ancestor propagation only marks dirty without enqueueing. No-ops if already dirty; re-calling after scene attach
|
|
2003
|
+
backfills the queue if needed.
|
|
2004
|
+
|
|
2005
|
+
#### Returns
|
|
2006
|
+
|
|
2007
|
+
`void`
|
|
2008
|
+
|
|
2009
|
+
#### Memberof
|
|
2010
|
+
|
|
2011
|
+
Component
|
|
2012
|
+
|
|
2013
|
+
#### Inherited from
|
|
2014
|
+
|
|
2015
|
+
[`Controls`](Controls.md).[`worldMatrixNeedsUpdate`](Controls.md#worldmatrixneedsupdate)
|