Skip to content
On this page

mxcad_2d API 文档 / 2d / MxCADUI

Interface: MxCADUI

2d.MxCADUI

MxCADUI 模块提供插件程序使用的接口.

Table of contents

Properties

Properties

getServerConfig

getServerConfig: () => any

Type declaration

▸ (): any

获取mxServerConfig.json文件配置

Returns

any


getUploadFileConfig

getUploadFileConfig: () => { baseUrl: string ; cutDwgUrl: string ; mxfilepath: string ; printPdfUrl: string ; saveDwgUrl: string ; saveUrl: string }

Type declaration

▸ (): Object

获取文件下载配置

Returns

Object

NameType
baseUrlstring
cutDwgUrlstring
mxfilepathstring
printPdfUrlstring
saveDwgUrlstring
saveUrlstring

init

init: (plugin: MxCADPluginBase) => void

Type declaration

▸ (plugin): void

初始化

Parameters
NameTypeDescription
pluginMxCADPluginBase基础配置
Returns

void


mxcad

mxcad: McObject

mxcad对象


mxmap

mxmap: MxMap

mxmap对象


uploadFile

uploadFile: (uploadFile_call: (param: any) => void, isReloadFile: boolean) => void

Type declaration

▸ (uploadFile_call, isReloadFile): void

上传一个文件,并格式转换,然用于后续处理。

Parameters
NameType
uploadFile_call(param: any) => void
isReloadFileboolean
Returns

void