Skip to main content

<set-view-geometry>

Properties

NameDocsTypeDefault value
ambientColorSet the ambient ilumination in the phong reflection model. It should be a RGBA value, and applies only when the active shader is realistic. For further information: https://en.wikipedia.org/wiki/Phong_reflection_model[number, number, number, (number | undefined)?] | string[255, 255, 255, 63]
autoRotateWhen `true` or positive integer, the camera keeps rotating automatically. When a number, it specifies the rotation speed.boolean | numberfalse
backgroundBackground color of the 3D scene.string"#000000"
cameraType of camera"orthographic" | "perspective""orthographic"
cameraPositionSets camera positionPoint{ x: 0, y: 1.0, z: 0, }
cameraTarget"center" | "crosshair" | Point"crosshair"
dampingWhen `true`, the camera movement has a damping effect. When a number, it specifies the damping factor.boolean | numberfalse
diffuseColorSet the diffuse ilumination in the phong reflection model. It should be a RGBA value, and applies only when the active shader is realistic. For further information: https://en.wikipedia.org/wiki/Phong_reflection_model[number, number, number, (number | undefined)?] | string[255, 255, 255, 165]
middleActionAction to performance when moving the middle pointer. Middle click. Does not have an effect on mobile."none" | "pan" | "rotate" | "zoom""zoom"
panSpeedSets how fast the image translates. From `0` to `Infinite`.number0.01
pixelRatioRepresent the pixel ratio used by the renderer.number1
pointerActionAction to performance when moving the main pointer. Left click or a single touch."none" | "pan" | "rotate" | "zoom""rotate"
rotateSpeedSets how fast the image translates. From `0` to `Infinite`.number1
secondaryActionAction to performance when moving the secondary pointer. Right click or two touches."none" | "pan" | "rotate" | "zoom""pan"
showAxesRender the axis helper in the 3D space.booleanfalse
showBoundingBoxRender the bounding box of the volumen data.booleanfalse
showPlanesRender workspace planes. By default,`axial`, `coronal` and the `sagittal` planes are rendered.ProjectionNames[]["axial", "coronal", "sagittal"]
showProjectionCubeRender the projection cubebooleantrue
workspaceWorkspace to visualize.Workspace | string | undefined | { id: string; }
zoomCamera zoom. The greater this value becomes, the closer is the camera to the center of the model.number1.0
zoomSpeedSets how fast the zoom moves. From `0` to `Infinite`.number0.5

Events

NameDocsType
setStateChange

CSS parts

NameDocs