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

    Interface ContextMenuOpenedEventArgs

    右键菜单已打开事件参数

    interface ContextMenuOpenedEventArgs {
        timestamp: number;
        customData?: any;
        document: CadDocument;
        screenX: number;
        screenY: number;
        isCommandActive: boolean;
        activeCommandName?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    timestamp: number

    事件发生的时间戳

    customData?: any

    自定义数据,二次开发者可以附加额外信息

    document: CadDocument

    当前文档

    screenX: number

    鼠标点击的屏幕坐标 X

    screenY: number

    鼠标点击的屏幕坐标 Y

    isCommandActive: boolean

    是否有命令正在执行

    activeCommandName?: string

    当前正在执行的命令名称(如果有)