The data structure for a single tool in the SceneControl#tools record.

interface SceneControlTool {
    active?: boolean;
    button?: boolean;
    icon: string;
    name: string;
    onChange?: (event: Event, active: boolean) => void;
    order: number;
    title: string;
    toggle?: boolean;
    toolclip?: ToolclipConfiguration;
    visible?: boolean;
}

Properties

active?: boolean
button?: boolean
icon: string
name: string
onChange?: (event: Event, active: boolean) => void

A callback invoked when the tool is activated or deactivated

order: number
title: string
toggle?: boolean

Configuration for rendering the tool's toolclip

visible?: boolean