Interface TLEventType

interface TLEventType {
    event?: InteractiveEvent;
    name?: string;
    object?: InteractiveObject;
    onEnterCallBack?: ((node, context, from) => void);
    onExitCallBack?: ((node, context) => void);
    onInteractionEnd?: string;
    onInteractionEndContext?: Record<string, any>;
    [key: string]: any;
}

Hierarchy (view full)

Indexable

[key: string]: any

Properties

name?: string
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>

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