Properties
Optional
autoFocus
autoFocus?: boolean
Optional
beforeUpdateCoordinate
beforeUpdateCoordinate?: ((point, isMoveing, info, isSnapPoint?) => Promise<Vector3>)
Type declaration
- (point, isMoveing, info, isSnapPoint?): Promise<Vector3>
Parameters
point: Vector3
isMoveing: boolean
Optional
isSnapPoint: boolean
Returns Promise<Vector3>
Optional
borderColor
borderColor?: ColorRepresentation
Optional
color
color?: ColorRepresentation
Optional
disableUnProjectMenu
disableUnProjectMenu?: boolean
Optional
drawLayerName
drawLayerName?: string
Optional
escKeyCancel
escKeyCancel?: boolean
Optional
isAddToApp
isAddToApp?: boolean
Optional
isExitToDefaultTool
isExitToDefaultTool?: boolean
Optional
isSnap
isSnap?: boolean
Optional
onAddData
onAddData?: ((data) => boolean)
Type declaration
- (data): boolean
Returns boolean
Optional
onComplete
onComplete?: ((isCancel, data) => void)
Type declaration
- (isCancel, data): void
Returns void
Optional
onContextMenu
onContextMenu?: ((info, context) => void)
Type declaration
Parameters
context: {
addPoint: ((worldPos, info?, isSnapPoint?, snapData?) => Promise<void>);
cancel: (() => void);
complete: (() => void);
data: SymbolItemData;
symbol: SymbolEntity;
}
addPoint: ((worldPos, info?, isSnapPoint?, snapData?) => Promise<void>)
- (worldPos, info?, isSnapPoint?, snapData?): Promise<void>
Parameters
worldPos: Vector3
Optional
isSnapPoint: boolean
Returns Promise<void>
cancel: (() => void)
complete: (() => void)
Returns void
Optional
onKeyUp
onKeyUp?: ((info, context) => void)
Type declaration
- (info, context): void
Parameters
context: {
addPoint: ((worldPos, info?, isSnapPoint?, snapData?) => Promise<void>);
cancel: (() => void);
complete: (() => void);
data: SymbolItemData;
symbol: SymbolEntity;
}
addPoint: ((worldPos, info?, isSnapPoint?, snapData?) => Promise<void>)
- (worldPos, info?, isSnapPoint?, snapData?): Promise<void>
Parameters
worldPos: Vector3
Optional
isSnapPoint: boolean
Returns Promise<void>
cancel: (() => void)
complete: (() => void)
Returns void
Optional
size
size?: number
Optional
snapData
snapData?: [number, number, number][]
Optional
snapDrawPoint
snapDrawPoint?: boolean
Optional
updateCoordinate
updateCoordinate?: ((point, isMoveing, data, symbol?) => void)
Type declaration
- (point, isMoveing, data, symbol?): void
Parameters
point: Vector3
isMoveing: boolean
Returns void
进入时使div元素自动获取焦点(能响应键盘事件) 默认是