Property | Attribute | Description | Type | Default |
---|---|---|---|---|
animationMs |
animation-ms |
The duration of animations, in milliseconds. Defaults to 500 . |
number | undefined |
500 |
animationsDisabled |
animations-disabled |
Indicates whether animations will be used when performing camera operations. Defaults to false . |
boolean |
false |
controller |
-- | WalkModeController | undefined |
undefined |
|
mode |
mode |
The type of teleportation to perform when clicking. teleport - the camera's position is moved to the location of the hit result constrained by the plane represented by the camera's current position and up vectors. teleport-and-align - the camera's position , lookAt , and up vectors are updated to align to the plane represented by the hit result's position and normal. teleport-toward - the camera's position is moved a fixed distance toward the location of the hit result constrained by the plane represented by the camera's current position and up vectors. undefined - no teleportation will occur when clicking. Defaults to undefined . |
"teleport" | "teleport-and-align" | "teleport-toward" | undefined |
undefined |
model |
-- | WalkModeModel |
new WalkModeModel() |
|
viewer |
-- | The viewer that this component is bound to. This is automatically assigned if added to the light-dom of a parent viewer element. | HTMLVertexViewerElement | undefined |
undefined |
Event | Description | Type |
---|---|---|
controllerChanged |
Event emitted when the WalkModeController associated with this tool changes. |
CustomEvent<WalkModeController> |
graph TD;
vertex-viewer-walk-mode-tool --> vertex-viewer-teleport-tool
style vertex-viewer-teleport-tool fill:#f9f,stroke:#333,stroke-width:4px
Built with StencilJS