WebCAD-Lib-TS API 文档 - v1.0.0
    Preparing search index...

    Interface FloatingToolbarItem

    interface FloatingToolbarItem {
        id: string;
        icon: string;
        tooltip: string;
        command?: string;
        onClick?: () => void;
        disabled?: boolean;
    }
    Index

    Properties

    id: string

    Unique identifier

    icon: string

    Icon source: URL path (svg/png) or inline SVG string (starting with '<svg')

    tooltip: string

    Tooltip text shown on hover

    command?: string

    CAD command name – executed via Engine.editor.executerWithOp

    onClick?: () => void

    Custom click callback (runs after command if both provided)

    disabled?: boolean

    Whether the item is disabled