Type of value associated with the checkbox
Creates a CheckBoxObject instance (deprecated).
Configuration parameters for the checkbox handler
Protected
Internal
_Internal alpha multiplier for opacity control.
Protected
Internal
_Internal state tracking enabled/disabled status.
Protected
Internal
_Internal state tracking pointer hover status.
Protected
Internal
_Internal state tracking pointer press status.
Protected
_Protected
Optional
Internal
_Internal reference to the material set.
Temporarily prevents interaction handling while maintaining current visual state.
Controls whether the object responds to pointer interactions.
Current visual interaction state of the object.
Arbitrary data associated with this interactive object.
Readonly
viewThe display object being managed by this interaction handler.
Static
prefixedSets the opacity alpha multiplier for the material set.
Alpha value between 0.0 (transparent) and 1.0 (opaque)
Indicates whether the pointer is currently hovering over the object.
True if pointer is over the object, false otherwise
Indicates whether the pointer is currently pressed down on the object.
True if pointer is pressed down, false otherwise
Gets the current StateMaterialSet managing visual states.
The current material set, or undefined if none is assigned
Sets the StateMaterialSet for managing visual states.
The material set to assign, or undefined to remove
Gets the current selection state of the checkbox.
True if the checkbox is currently selected, false otherwise
Optional
context: anyProtected
checkProtected
Checks if the object is currently active and can respond to interactions.
True if the object is enabled and not frozen, false otherwise
Calls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Optional
fn: (Optional
context: anyOptional
once: booleanAdd a listener for a given event.
Optional
context: anyAdd a one-time listener for a given event.
Optional
context: anyHandles pointer down events and transitions to pressed state.
The pointer down event containing interaction details
Handles pointer out events.
The pointer out event containing interaction details
Handles pointer over events.
The pointer over event containing interaction details
Handles pointer up events and manages click detection logic.
The pointer up event containing interaction details
Remove all listeners, or those of the specified event.
Optional
event: keyof ThreeMouseEventMap<Value>Remove the listeners of a given event.
Optional
fn: (Optional
context: anyOptional
once: booleanSwitches the interactive object between enabled and disabled states.
True to enable, false to disable
Protected
updateProtected
Updates the display object's material based on current interaction and selection state.
Protected
updateProtected
Updates the current interaction state and refreshes the visual representation.
The new interaction state to apply
Legacy alias for CheckBoxInteractionHandler.
Deprecated
Use CheckBoxInteractionHandler instead. This class will be removed in next minor version.
Description
This class exists solely for backward compatibility. All functionality is identical to CheckBoxInteractionHandler. See ClickableObject for details on the renaming rationale.
Example
See
CheckBoxInteractionHandler - The recommended replacement class