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
color
color?: ColorRepresentation
Optional
dashOffset
dashOffset?: number
Optional
dashScale
dashScale?: number
Optional
dashSize
dashSize?: number
Optional
dashed
dashed?: boolean
Optional
deleteKeyDelPoint
deleteKeyDelPoint?: boolean
Optional
disableUnProjectMenu
disableUnProjectMenu?: boolean
Optional
drawLayerName
drawLayerName?: string
Optional
enterKeyComplete
enterKeyComplete?: boolean
Optional
escKeyCancel
escKeyCancel?: boolean
Optional
gapSize
gapSize?: number
Optional
isAddToApp
isAddToApp?: boolean
Optional
isExitToDefaultTool
isExitToDefaultTool?: boolean
Optional
isSnap
isSnap?: boolean
Optional
lineWidth
lineWidth?: number
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: PolylineItemData;
delPoint: (() => void);
polylines: PolylinesEntity;
}
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)
delPoint: (() => 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: PolylineItemData;
delPoint: (() => void);
polylines: PolylinesEntity;
}
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)
delPoint: (() => void)
Returns void
Optional
opacity
opacity?: number
Optional
pointMaxCount
pointMaxCount?: number
Optional
showVertex
showVertex?: boolean
Optional
snapData
snapData?: [number, number, number][]
Optional
snapDrawPoint
snapDrawPoint?: boolean
Optional
updateCoordinate
updateCoordinate?: ((point, isMoveing, data, polylines?) => void)
Type declaration
- (point, isMoveing, data, polylines?): void
Parameters
point: Vector3
isMoveing: boolean
Returns void
进入时使div元素自动获取焦点(能响应键盘事件) 默认是