Properties
addTool
addTool: ((Tool) => void)
getCurrentToolId
getCurrentToolId: (() => string)
getStateDescendant
getStateDescendant: (<T>(path) => T) getStatePath
getStatePath: (() => string)
isInActiveTool
isInActiveTool: (() => boolean)
Type declaration
- (): boolean
Returns boolean
removeTool
removeTool: ((Tool) => void)
setCurrentTool
setCurrentTool: ((id?,
info?) => App) Type declaration
- (id?, info?): App
Parameters
Optional
id: string
Optional
info: Record<string, any>
Returns App
stateInAny
stateInAny: ((...paths) => boolean)
Type declaration
- (...paths): boolean
Returns boolean
stateIsIn
stateIsIn: ((path) => boolean)
Type declaration
- (path): boolean
Returns boolean
transformObject
transformObject: ((options) => Promise<StateNode>)
判断当前是否有工具处于运行中