[mxcad_2d API documentation] (../README. md)/[2d] (../modules/2d. md)/MxCADUI
Interface: MxCADUI
2d.MxCADUI
The MxCADUI module provides interfaces for plugin programs to use
Table of contents
Properties
Properties
getServerConfig
• getServerConfig: () => any
Type declaration
▸ (): any
Get the mxServerConfig. json file configuration
Returns
any
getUploadFileConfig
• getUploadFileConfig: () => { baseUrl
: string
; cutDwgUrl
: string
; mxfilepath
: string
; printPdfUrl
: string
; saveDwgUrl
: string
; saveUrl
: string
}
Type declaration
▸ (): Object
Get file download configuration
Returns
Object
Name | Type |
---|---|
baseUrl | string |
cutDwgUrl | string |
mxfilepath | string |
printPdfUrl | string |
saveDwgUrl | string |
saveUrl | string |
init
• init: (plugin
: MxCADPluginBase
) => void
Type declaration
▸ (plugin
): void
initialization
Parameters
Name | Type | Description |
---|---|---|
Plugin | [MxCADPluginBase] (../classes/2d. MxCADPluginBase. md) | Basic Configuration |
Returns
void
mxcad
• mxcad: McObject
MXCAD object
mxmap
• mxmap: MxMap
Mxmap object
uploadFile
• uploadFile: (uploadFile_call
: (param
: any
) => void
, isReloadFile
: boolean
) => void
Type declaration
▸ (uploadFile_call
, isReloadFile
): void
Upload a file, format it, and use it for subsequent processing.
Parameters
Name | Type |
---|---|
uploadFile_call | (param : any ) => void |
isReloadFile | boolean |
Returns
void