@masatomakino/threejs-interactive-object
    Preparing search index...

    Type Alias ClickableState

    ClickableState: "normal" | "over" | "down" | "disable"

    Union type representing the possible interaction states of interactive objects.

    Defines the visual and behavioral states that interactive objects can have. These states are used by StateMaterialSet to determine which material to display and by interaction handlers to manage behavior transitions.

    State Definitions:

    • normal: Default resting state when no interaction is occurring
    • over: Pointer is hovering over the object (mouse over, touch proximity)
    • down: Pointer is currently pressed down on the object
    • disable: Object is disabled and non-interactive

    Usage in Material Management: These states are combined with selection flags (for checkboxes/radio buttons) to determine the final visual representation through StateMaterialSet.

    // State transitions in ButtonInteractionHandler
    handler.state = 'normal'; // Initial state
    handler.state = 'over'; // On pointer enter
    handler.state = 'down'; // On pointer press
    handler.state = 'disable'; // When disabled