Interface PickEnterOptions

拾取工具进入选项

interface PickEnterOptions {
    clickEntitySelected?: boolean;
    clickIsEqualObject?: Function | Object3D<Object3DEventMap>;
    clickNoEntityExit?: boolean;
    clickNoSelfEntityExit?: boolean;
    enterEscConfirmExit?: boolean;
    event?: InteractiveEvent;
    highlightColor?: ColorRepresentation;
    highlightOpacity?: number;
    highlightUseBoxHelper?: boolean;
    name?: string;
    object?: InteractiveObject;
    onComplete?: ((isCancel, info?, select?) => void);
    onContextMenu?: ((info, context) => void);
    onEnterCallBack?: ((node, context, from) => void);
    onExitCallBack?: ((node, context) => void);
    onInteractionEnd?: string;
    onInteractionEndContext?: Record<string, any>;
    onKeyUp?: ((info, context) => void);
    onPointerMove?: ((info, context, oldHover?, newHover?) => void);
    pickCallBack?: ((cb) => void);
    queryOptions?: EntityQueryOption;
    rightClickConfirmExit?: boolean;
    target?: InteractiveObject;
}

Hierarchy (view full)

Properties

clickEntitySelected?: boolean

点击选中新的实体时拾取上此实体 默认true

clickIsEqualObject?: Function | Object3D<Object3DEventMap>

点击判断是否是其他实体的物体对象,默认为控件关联的对象

clickNoEntityExit?: boolean

没有选中实体时退出拾取 默认true

clickNoSelfEntityExit?: boolean

点击到其他实体时或没有选中实体退出拾取 默认false

enterEscConfirmExit?: boolean

回车或esc退出拾取 默认 true

highlightColor?: ColorRepresentation

选中时高亮的颜色 默认 "#ff0000"

highlightOpacity?: number

选中时高亮的透明度 默认0.5

highlightUseBoxHelper?: boolean

高亮模式是否用外包盒的方式 默认false

name?: string
onComplete?: ((isCancel, info?, select?) => void)

完成回调

Type declaration

onContextMenu?: ((info, context) => void)

右键上下文菜单回调

Type declaration

    • (info, context): void
    • 右键上下文菜单回调

      Parameters

      • info: TLEventHandler
      • context: {
            complete: ((info?) => void);
        }
        • complete: ((info?) => void)

          如需要完成时调用

            • (info?): void
            • 如需要完成时调用

              Parameters

              Returns void

      Returns void

onEnterCallBack?: ((node, context, from) => void)

进入时回调

Type declaration

    • (node, context, from): void
    • 进入时回调

      Parameters

      Returns void

onExitCallBack?: ((node, context) => void)

退出时回调

Type declaration

    • (node, context): void
    • 退出时回调

      Parameters

      Returns void

onInteractionEnd?: string

交互结束时调用哪个工具栏

onInteractionEndContext?: Record<string, any>

交互结束时调用哪个工具栏的上下文参数

onKeyUp?: ((info, context) => void)

键盘事件

Type declaration

    • (info, context): void
    • 键盘事件

      Parameters

      • info: TLEventHandler
      • context: {
            complete: ((info?) => void);
        }
        • complete: ((info?) => void)

          如需要完成时调用

            • (info?): void
            • 如需要完成时调用

              Parameters

              Returns void

      Returns void

onPointerMove?: ((info, context, oldHover?, newHover?) => void)

鼠标移动事件

Type declaration

    • (info, context, oldHover?, newHover?): void
    • 鼠标移动事件

      Parameters

      Returns void

pickCallBack?: ((cb) => void)

回调

Type declaration

queryOptions?: EntityQueryOption

查询条件

rightClickConfirmExit?: boolean

右键退出拾取 默认false

预先的实体