ControlBar
class ControlBar implements View3DPlugin
Add a bar at the bottom of the canvas that can control animation and other things
Properties
constructor
new ControlBar()
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
Partial<ControlBarOptions> | ✔️ | {} |
Properties
DEFAULT_CLASS
Default class names that ControlBar uses
Type: object
PROPERTY | TYPE | DESCRIPTION |
---|---|---|
ROOT | "view3d-control-bar" | A class name for wrapper element |
VISIBLE | "visible" | A class name for visible elements |
DISABLED | "disabled" | A class name for disabled elements |
CONTROLS_BG | "view3d-controls-background" | A class name for background element |
CONTROLS_SIDE | "view3d-side-controls" | A class name for controls wrapper element that includes both left & right controls |
CONTROLS_TOP | "view3d-top-controls" | A class name for controls wrapper element that is placed on the top inside the control bar |
CONTROLS_LEFT | "view3d-left-controls" | A class name for controls wrapper element that is placed on the left inside the control bar |
CONTROLS_RIGHT | "view3d-right-controls" | A class name for controls wrapper element that is placed on the right inside the control bar |
CONTROLS_ITEM | "view3d-control-item" | A class name for control item elements |
PROGRESS_ROOT | "view3d-progress-bar" | A class name for root element of the progress bar |
PROGRESS_TRACK | "view3d-progress-track" | A class name for progress track element of the progress bar |
PROGRESS_THUMB | "view3d-progress-thumb" | A class name for thumb element of the progress bar |
PROGRESS_FILLER | "view3d-progress-filler" | A class name for progress filler element of the progress bar |
ANIMATION_NAME | "view3d-animation-name" | A class name for animation name element of the animation selector |
ANIMATION_LIST | "view3d-animation-list" | A class name for animation list element of the animation selector |
ANIMATION_ITEM | "view3d-animation-item" | A class name for animation list item element of the animation selector |
ANIMATION_SELECTED | "selected" | A class name for selected animation list item element of the animation selector |
GIZMO_ROOT | "view3d-gizmo" | A class name for root element of the navigation gizmo |
GIZMO_AXIS | "view3d-gizmo-axis" | A class name for axis button element of the navigation gizmo |
POSITION
Position constant
Type: object
PROPERTY | TYPE | DESCRIPTION |
---|---|---|
TOP | "top" | |
LEFT | "left" | |
RIGHT | "right" |
show
Show control bar
hide
Hide control bar