Properties
InitLanguageString
InitLanguageString: ((mapid2str: Object) => void)
Type declaration
- (mapid2str: Object): void
acutPrintf
acutPrintf: ((format: string, ...val: string[]) => void)
Type declaration
- (format: string, ...val: string[]): void
Parameters
format: string
Rest ...val: string[]
Returns void
addCommand
addCommand: ((cmdName: string, fun: Function, cmdFlag?: number) => void)
Type declaration
- (cmdName: string, fun: Function, cmdFlag?: number): void
Parameters
cmdName: string
fun: Function
Optional cmdFlag: number
Returns void
addWindowsEvent
addWindowsEvent: ((fun: ((type: string, event: any) => number)) => void)
Type declaration
- (fun: ((type: string, event: any) => number)): void
Parameters
fun: ((type: string, event: any) => number)
- (type: string, event: any): number
Returns void
cadCoord2Doc
cadCoord2Doc: ((x: number, y: number, z: number) => Vector3)
Type declaration
- (x: number, y: number, z: number): Vector3
Parameters
x: number
y: number
z: number
Returns Vector3
cadCoordLong2Doc
cadCoordLong2Doc: ((l: number) => number)
cadCoordLong2View
cadCoordLong2View: ((l: number) => number)
call
call: ((funName: string, param?: any, retfun?: Function) => void)
Type declaration
- (funName: string, param?: any, retfun?: Function): void
Parameters
funName: string
Optional param: any
Optional retfun: Function
Returns void
callCommand
callCommand: ((cmd: string, param: string, retCall?: ((param: any) => void)) => void)
Type declaration
- (cmd: string, param: string, retCall?: ((param: any) => void)): void
Parameters
cmd: string
param: string
Optional retCall: ((param: any) => void)
Returns void
callEvent
callEvent: ((eventName: string, param?: any) => any)
Type declaration
- (eventName: string, param?: any): any
Parameters
eventName: string
Optional param: any
Returns any
createMxObject
create
Mx
Object
: ((this
: MxFun, __namedParameters
: { cadFile
?: string | string[]; canvasId
?: string; isAutoResize
?: boolean; isCPPMxCAD
?: boolean; isMxCAD
?: boolean; isNewFile
?: boolean; mapBox
?: any; useWebsocket
?: boolean; userIdentitySign
?: string; callback
?: any }) => void) = createMxObjectType declaration
- (this: MxFun, __namedParameters: { cadFile?: string | string[]; canvasId?: string; isAutoResize?: boolean; isCPPMxCAD?: boolean; isMxCAD?: boolean; isNewFile?: boolean; mapBox?: any; useWebsocket?: boolean; userIdentitySign?: string; callback?: any }): void
Parameters
__namedParameters: { cadFile?: string | string[]; canvasId?: string; isAutoResize?: boolean; isCPPMxCAD?: boolean; isMxCAD?: boolean; isNewFile?: boolean; mapBox?: any; useWebsocket?: boolean; userIdentitySign?: string; callback?: any }
Optional cadFile?: string | string[]
Optional canvasId?: string
Optional isAutoResize?: boolean
Optional isCPPMxCAD?: boolean
Optional isMxCAD?: boolean
Optional isNewFile?: boolean
Optional mapBox?: any
Optional useWebsocket?: boolean
Optional userIdentitySign?: string
callback?:function
Parameters
dom: { canvas: HTMLCanvasElement; canvasParent: CanvasParent }
canvas: HTMLCanvasElement
Returns void
Returns void
docCoord2Cad
docCoord2Cad: ((x: number, y: number, z: number) => Vector3)
Type declaration
- (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)
Type declaration
- (x: number, y: number, z: number): Vector3
Parameters
x: number
y: number
z: number
Returns Vector3
docCoordLong2Cad
docCoordLong2Cad: ((l: number) => number)
docCoordLong2Screen
docCoordLong2Screen: ((len: number) => number)
docCoordLong2World
docCoordLong2World: ((l: number) => number)
enablStaticLoad
enablStaticLoad: ((isStaticLoad?: boolean) => void)
Type declaration
- (isStaticLoad?: boolean): void
Parameters
Optional isStaticLoad: boolean
Returns void
getHostUrl
getHostUrl: (() => string)
getLanguageString
getLanguageString: ((id: string, sDef?: string) => string)
Type declaration
- (id: string, sDef?: string): string
Parameters
id: string
Optional sDef: string
Returns string
getLocationPageUrl
getLocationPageUrl: (() => string)
getMxEntity
get
Mx
Entity
: ((id
: number) => undefined | MxDbEntity)getNumberColor
getNumberColor: ((iColor: string | number | Color) => number)
Type declaration
- (iColor: string | number | Color): number
Parameters
iColor: string | number | Color
Returns number
getQueryString
getQueryString: ((name: string) => string)
getTHREE
getTHREE: (() => __module)
initMxCpp
initMxCpp: ((mxcppimp: any) => void)
initMxDbEntityType
init
Mx
Db
Entity
Type
: ((entity
: MxDbEntity) => void)initQuickCommand
initQuickCommand: ((aryQuickCommand: string[][]) => void)
Type declaration
- (aryQuickCommand: string[][]): void
Parameters
aryQuickCommand: string[][]
Returns void
isRunningCommand
isRunningCommand: (() => boolean)
on
on: ((eventName: string, call: any) => void)
Type declaration
- (eventName: string, call: any): void
Parameters
eventName: string
call: any
Returns void
openFile
openFile: ((sFile: string | string[], useWebsocket?: boolean) => boolean)
Type declaration
- (sFile: string | string[], useWebsocket?: boolean): boolean
Parameters
sFile: string | string[]
Optional useWebsocket: boolean
Returns boolean
postMessageToParentFrame
postMessageToParentFrame: ((param: any) => boolean)
Type declaration
Parameters
Returns boolean
screenCoord2World
screenCoord2World: ((x: number | Vector3, y?: number, z?: number) => Vector3)
Type declaration
- (x: number | Vector3, y?: number, z?: number): Vector3
Parameters
x: number | Vector3
Optional y: number
Optional z: number
Returns Vector3
screenCoordLong2Doc
screenCoordLong2Doc: ((len: number) => number)
screenCoordLong2World
screenCoordLong2World: ((len: number) => number)
sendStringToExecute
sendStringToExecute: ((cmdName: string, ages?: any) => boolean)
Type declaration
- (cmdName: string, ages?: any): boolean
Parameters
cmdName: string
Optional ages: any
Returns boolean
setStaticServer
setStaticServer: ((server: string) => void)
showLayer
showLayer: ((idLayer: string | number, isShow: boolean) => void)
Type declaration
- (idLayer: string | number, isShow: boolean): void
Parameters
idLayer: string | number
isShow: boolean
Returns void
stopRunCommand
stopRunCommand: (() => void)
updateDisplay
updateDisplay: (() => void)
viewCoordLong2Cad
viewCoordLong2Cad: ((l: number) => number)
worldCoord2Doc
worldCoord2Doc: ((x: number, y: number, z: number) => Vector3)
Type declaration
- (x: number, y: number, z: number): Vector3
Parameters
x: number
y: number
z: number
Returns Vector3
worldCoord2Screen
worldCoord2Screen: ((x: number | Vector3, y?: number, z?: number) => Vector3)
Type declaration
- (x: number | Vector3, y?: number, z?: number): Vector3
Parameters
x: number | Vector3
Optional y: number
Optional z: number
Returns Vector3
worldCoordLong2Doc
worldCoordLong2Doc: ((len: number) => number)
zoomAll
zoomAll: (() => void)
zoomW
zoomW: ((dLBx: number, dLBy: number, dRTx: number, dRTy: number, isWorld?: boolean) => void)
Type declaration
- (dLBx: number, dLBy: number, dRTx: number, dRTy: number, isWorld?: boolean): void
Parameters
dLBx: number
dLBy: number
dRTx: number
dRTy: number
Optional isWorld: boolean
Returns void
MxFun 模块 导出库时已实例化,只需要调用实例方法 例如: