Interface MxDrawObjectType
Properties
renderer
renderer: WebGLRenderer
Methods
addEvent
- addEvent(arg0: string, arg1: ((...parmes: any) => any)): void
Parameters
arg0: string
arg1: ((...parmes: any) => any)
Returns void
addMxCurrentSelect
- addMxCurrentSelect(id: number): void
addMxEntity
- addMxEntity(ent: any): number
addObject
- addObject(obj: null | Object3D, isAddToSelect?: boolean): void
Parameters
obj: null | Object3D
Optional isAddToSelect: boolean
Returns void
addViewObject
- addViewObject(obj: Object3D): void
clearMxCurrentSelect
- clearMxCurrentSelect(): boolean
createCanvasImageData
- createCanvasImageData(fun: ((imageData: string) => void), param?: object): void
Parameters
fun: ((imageData: string) => void)
- (imageData: string): void
Optional param: object
Returns void
docCoord2Screen
- docCoord2Screen(x: number, y: number, z: number): Vector3
Parameters
x: number
y: number
z: number
Returns Vector3
docCoord2World
- docCoord2World(x: number, y: number, z: number): Vector3
Parameters
x: number
y: number
z: number
Returns Vector3
docCoordLong2Screen
- docCoordLong2Screen(l: number): number
docCoordLong2World
- docCoordLong2World(l: number): number
enablePan
- enablePan(isEnable: boolean): void
enableZoom
- enableZoom(isEnable: boolean): void
eraseMxEntity
- eraseMxEntity(id: number): boolean
Parameters
Returns boolean
findMxEntityAtPoint
- findMxEntityAtPoint(ptMouse: Vector3, isDocCoord?: boolean, retWordDrawXDataCall?: ((id: number, data: any) => void)): MxDbEntity[]
Parameters
ptMouse: Vector3
Optional isDocCoord: boolean
Optional retWordDrawXDataCall: ((id: number, data: any) => void)
- (id: number, data: any): void
getCanvas
- getCanvas(): HTMLCanvasElement
Returns HTMLCanvasElement
getFullDisplayRange
- getFullDisplayRange(): object
getIntersectObjects
- getIntersectObjects(ptMouse: Vector2): Intersection[]
Parameters
Returns Intersection[]
getMxAllSelect
- getMxAllSelect(): number[]
getViewCenterDocCoord
- getViewCenterDocCoord(): Vector3
initRendererParam
- initRendererParam(param: object): void
initZoomW
- initZoomW(pt1Doc: Vector3, pt2Doc: Vector3): void
Parameters
pt1Doc: Vector3
pt2Doc: Vector3
Returns void
loadMxEntityFromJson
- loadMxEntityFromJson(dataString: object): Promise<boolean>
Parameters
Returns Promise<boolean>
removeObject
- removeObject(obj: Object3D, isRemoveSelectObject?: boolean): void
Parameters
obj: Object3D
Optional isRemoveSelectObject: boolean
Returns void
removeViewObject
- removeViewObject(obj: Object3D): void
resetThreeJSControls
- resetThreeJSControls(): void
saveMxEntityToJson
- saveMxEntityToJson(isSaveToDWG?: boolean): object
Parameters
Optional isSaveToDWG: boolean
Returns object
screenCoord2Doc
- screenCoord2Doc(x: number, y: number, z: number): Vector3
Parameters
x: number
y: number
z: number
Returns Vector3
screenCoord2World
- screenCoord2World(x: number, y: number, z?: number): Vector3
Parameters
x: number
y: number
Optional z: number
Returns Vector3
screenCoordLong2Doc
- screenCoordLong2Doc(l: number): number
screenCoordLong2World
- screenCoordLong2World(l: number): number
setMouseMiddlePan
- setMouseMiddlePan(isPan: number | boolean): void
setMouseRightRotate
- setMouseRightRotate(isRotate: boolean): void
setSize
- setSize(width: number, height: number): void
Parameters
width: number
height: number
Returns void
setViewColor
- setViewColor(color: number): void
worldCoord2Doc
- worldCoord2Doc(x: number, y: number, z: number): Vector3
Parameters
x: number
y: number
z: number
Returns Vector3
worldCoord2Screen
- worldCoord2Screen(x: number, y: number, z: number): Vector3
Parameters
x: number
y: number
z: number
Returns Vector3
worldCoordLong2Doc
- worldCoordLong2Doc(l: number): number
worldCoordLong2Screen
- worldCoordLong2Screen(l: number): number
zoomCenter
- zoomCenter(dCenX: number, dCenY: number): void
Parameters
dCenX: number
dCenY: number
Returns void
zoomInitialStates
- zoomInitialStates(): void
zoomScale
- zoomScale(scale: number): void
zoomW
- zoomW(minPt: Vector3, maxPt: Vector3, isWorld?: boolean): void
Parameters
minPt: Vector3
maxPt: Vector3
Optional isWorld: boolean
Returns void