Skip to content
On this page

mxcad API 文档 / mxcad

Module: mxcad

mxcad库所有导出的内容 包换2d 3d 模块中的所有导出

Table of contents

References

Classes

Variables

Functions

References

ColorIndexType

Re-exports ColorIndexType


ColorMethod

Re-exports ColorMethod


CreateColorArgs

Re-exports CreateColorArgs


DxfCode

Re-exports DxfCode


FetchAttributes

Re-exports FetchAttributes


IMcDbDwgFiler

Re-exports IMcDbDwgFiler


McAppType

Re-exports McAppType


McCmColor

Re-exports McCmColor


McCmColorJSON

Re-exports McCmColorJSON


McDb

Re-exports McDb


McDbAlignedDimension

Re-exports McDbAlignedDimension


McDbArc

Re-exports McDbArc


McDbAttribute

Re-exports McDbAttribute


McDbAttributeDefinition

Re-exports McDbAttributeDefinition


McDbBlockReference

Re-exports McDbBlockReference


McDbBlockTable

Re-exports McDbBlockTable


McDbBlockTableRecord

Re-exports McDbBlockTableRecord


McDbCircle

Re-exports McDbCircle


McDbCurve

Re-exports McDbCurve


McDbCustomEntity

Re-exports McDbCustomEntity


McDbDatabase

Re-exports McDbDatabase


McDbDictionary

Re-exports McDbDictionary


McDbDimension

Re-exports McDbDimension


McDbEllipse

Re-exports McDbEllipse


McDbEntity

Re-exports McDbEntity


McDbHatch

Re-exports McDbHatch


McDbLayerTable

Re-exports McDbLayerTable


McDbLayerTableRecord

Re-exports McDbLayerTableRecord


McDbLine

Re-exports McDbLine


McDbLinetypeTable

Re-exports McDbLinetypeTable


McDbLinetypeTableRecord

Re-exports McDbLinetypeTableRecord


McDbMText

Re-exports McDbMText


McDbObject

Re-exports McDbObject


McDbObjectArray

Re-exports McDbObjectArray


McDbPoint

Re-exports McDbPoint


McDbPolyline

Re-exports McDbPolyline


McDbProxyEntity

Re-exports McDbProxyEntity


McDbRasterImage

Re-exports McDbRasterImage


McDbRasterImageDef

Re-exports McDbRasterImageDef


McDbRotatedDimension

Re-exports McDbRotatedDimension


McDbText

Re-exports McDbText


McDbTextStyleTable

Re-exports McDbTextStyleTable


McDbTextStyleTableRecord

Re-exports McDbTextStyleTableRecord


McDbXrecord

Re-exports McDbXrecord


McGeBound

Re-exports McGeBound


McGeDoubleArray

Re-exports McGeDoubleArray


McGeLongArray

Re-exports McGeLongArray


McGeMatrix3d

Re-exports McGeMatrix3d


McGePoint3d

Re-exports McGePoint3d


McGePoint3dArray

Re-exports McGePoint3dArray


McGeStringArray

Re-exports McGeStringArray


McGeVector3d

Re-exports McGeVector3d


McObject

Re-exports McObject


McObjectId

Re-exports McObjectId


McObjectIdType

Re-exports McObjectIdType


McRxObject

Re-exports McRxObject


MdGe

Re-exports MdGe


MdGeAisContext

Re-exports MdGeAisContext


MdGeAisObject

Re-exports MdGeAisObject


MdGeAisShape

Re-exports MdGeAisShape


MdGeAisTexturedShape

Re-exports MdGeAisTexturedShape


MdGeAngleDim

Re-exports MdGeAngleDim


MdGeApplication

Re-exports MdGeApplication


MdGeArray1OfInteger

Re-exports MdGeArray1OfInteger


MdGeArray1OfPnt

Re-exports MdGeArray1OfPnt


MdGeArray1OfReal

Re-exports MdGeArray1OfReal


MdGeArray2OfPnt

Re-exports MdGeArray2OfPnt


MdGeArray2OfReal

Re-exports MdGeArray2OfReal


MdGeArrowAspect

Re-exports MdGeArrowAspect


MdGeAxis

Re-exports MdGeAxis


MdGeBRep

Re-exports MdGeBRep


MdGeBSplineCurve

Re-exports MdGeBSplineCurve


MdGeBSplineSurface

Re-exports MdGeBSplineSurface


MdGeBezierCurve

Re-exports MdGeBezierCurve


MdGeBezierSurface

Re-exports MdGeBezierSurface


MdGeBndBox

Re-exports MdGeBndBox


MdGeBox

Re-exports MdGeBox


MdGeCSYS

Re-exports MdGeCSYS


MdGeCSYSR

Re-exports MdGeCSYSR


MdGeChamfer

Re-exports MdGeChamfer


MdGeCircle

Re-exports MdGeCircle


MdGeColor

Re-exports MdGeColor


MdGeCompSolid

Re-exports MdGeCompSolid


MdGeCompound

Re-exports MdGeCompound


MdGeCone

Re-exports MdGeCone


MdGeCylinder

Re-exports MdGeCylinder


MdGeDiameterDim

Re-exports MdGeDiameterDim


MdGeDimAspect

Re-exports MdGeDimAspect


MdGeDir

Re-exports MdGeDir


MdGeDocColorTool

Re-exports MdGeDocColorTool


MdGeDocReader

Re-exports MdGeDocReader


MdGeDocShapeTool

Re-exports MdGeDocShapeTool


MdGeDocWriter

Re-exports MdGeDocWriter


MdGeDocument

Re-exports MdGeDocument


MdGeEdge

Re-exports MdGeEdge


MdGeEllipse

Re-exports MdGeEllipse


MdGeExplorer

Re-exports MdGeExplorer


MdGeFace

Re-exports MdGeFace


MdGeFillet

Re-exports MdGeFillet


MdGeHGeomPlane

Re-exports MdGeHGeomPlane


MdGeHGeomSurface

Re-exports MdGeHGeomSurface


MdGeHypr

Re-exports MdGeHypr


MdGeInterpolateBSpl

Re-exports MdGeInterpolateBSpl


MdGeLabel

Re-exports MdGeLabel


MdGeLabelSequence

Re-exports MdGeLabelSequence


MdGeLabelTree

Re-exports MdGeLabelTree


MdGeLengthDim

Re-exports MdGeLengthDim


MdGeLight

Re-exports MdGeLight


MdGeLine

Re-exports MdGeLine


MdGeLineAspect

Re-exports MdGeLineAspect


MdGeListIteratorOfListOfShape

Re-exports MdGeListIteratorOfListOfShape


MdGeListOfShape

Re-exports MdGeListOfShape


MdGeLocation

Re-exports MdGeLocation


MdGeLoft

Re-exports MdGeLoft


MdGeMakeArcOfCircle

Re-exports MdGeMakeArcOfCircle


MdGeMakeFace

Re-exports MdGeMakeFace


MdGeMakeThickSolid

Re-exports MdGeMakeThickSolid


MdGeMakeWires

Re-exports MdGeMakeWires


MdGeMat

Re-exports MdGeMat


MdGeMaterialAspect

Re-exports MdGeMaterialAspect


MdGeParab

Re-exports MdGeParab


MdGePipe

Re-exports MdGePipe


MdGePlane

Re-exports MdGePlane


MdGePoint

Re-exports MdGePoint


MdGePointsToBSpl

Re-exports MdGePointsToBSpl


MdGePointsToBSplSurface

Re-exports MdGePointsToBSplSurface


MdGePrism

Re-exports MdGePrism


MdGeRadiusDim

Re-exports MdGeRadiusDim


MdGeRect

Re-exports MdGeRect


MdGeRevol

Re-exports MdGeRevol


MdGeSequenceIteratorOfSequenceOfShape

Re-exports MdGeSequenceIteratorOfSequenceOfShape


MdGeSequenceOfShape

Re-exports MdGeSequenceOfShape


MdGeShape

Re-exports MdGeShape


MdGeShell

Re-exports MdGeShell


MdGeSolid

Re-exports MdGeSolid


MdGeSphere

Re-exports MdGeSphere


MdGeSpliter

Re-exports MdGeSpliter


MdGeText

Re-exports MdGeText


MdGeTextAspect

Re-exports MdGeTextAspect


MdGeTextLabel

Re-exports MdGeTextLabel


MdGeTopo

Re-exports MdGeTopo


MdGeTorus

Re-exports MdGeTorus


MdGeTransform

Re-exports MdGeTransform


MdGeTrsf

Re-exports MdGeTrsf


MdGeVec

Re-exports MdGeVec


MdGeVertex

Re-exports MdGeVertex


MdGeWedge

Re-exports MdGeWedge


MdGeWire

Re-exports MdGeWire


MdGeXYZ

Re-exports MdGeXYZ


Mx3dApplication

Re-exports Mx3dApplication


Mx3dBaseObject

Re-exports Mx3dBaseObject


Mx3dDbDocument

Re-exports Mx3dDbDocument


Mx3dDbLabel

Re-exports Mx3dDbLabel


Mx3dDbObject

Re-exports Mx3dDbObject


Mx3dGeBndBox

Re-exports Mx3dGeBndBox


Mx3dGeColor

Re-exports Mx3dGeColor


Mx3dGeLocation

Re-exports Mx3dGeLocation


Mx3dGeObject

Re-exports Mx3dGeObject


Mx3dGePoint

Re-exports Mx3dGePoint


Mx3dLabelSequence

Re-exports Mx3dLabelSequence


Mx3dLabelSequenceIterator

Re-exports Mx3dLabelSequenceIterator


Mx3dShapeDownCast

Re-exports Mx3dShapeDownCast


Mx3dShapeObject

Re-exports Mx3dShapeObject


MxApp3D

Re-exports MxApp3D


MxApp3DType

Re-exports MxApp3DType


MxCAD3DConfig

Re-exports MxCAD3DConfig


MxCAD3DObject

Re-exports MxCAD3DObject


MxCADCloneType

Re-exports MxCADCloneType


MxCADPluginBase

Re-exports MxCADPluginBase


MxCADPluginMapDefaultData

Re-exports MxCADPluginMapDefaultData


MxCADResbuf

Re-exports MxCADResbuf


MxCADSelectionSet

Re-exports MxCADSelectionSet


MxCADSelectionSetStatus

Re-exports MxCADSelectionSetStatus


MxCADUI

Re-exports MxCADUI


MxCADUiPrAngle

Re-exports MxCADUiPrAngle


MxCADUiPrBase

Re-exports MxCADUiPrBase


MxCADUiPrDist

Re-exports MxCADUiPrDist


MxCADUiPrEntity

Re-exports MxCADUiPrEntity


MxCADUiPrInt

Re-exports MxCADUiPrInt


MxCADUiPrKeyWord

Re-exports MxCADUiPrKeyWord


MxCADUiPrPoint

Re-exports MxCADUiPrPoint


MxCADUiPrString

Re-exports MxCADUiPrString


MxCADUtility

Re-exports MxCADUtility


MxCADUtilityClass

Re-exports MxCADUtilityClass


MxCADWorldDraw

Re-exports MxCADWorldDraw


MxCadConfig

Re-exports MxCadConfig


MxCheckTheBrowser

Re-exports MxCheckTheBrowser


MxCoordConvert

Re-exports MxCoordConvert


MxCpp

Re-exports MxCpp


MxCppType

Re-exports MxCppType


MxDraw3d

Re-exports MxDraw3d


MxDraw3dConfig

Re-exports MxDraw3dConfig


MxNewMdGeArray1OfInteger

Re-exports MxNewMdGeArray1OfInteger


MxNewMx3dAlgoFillet

Re-exports MxNewMx3dAlgoFillet


MxNewMx3dAlgoObject

Re-exports MxNewMx3dAlgoObject


MxNewMx3dApplication

Re-exports MxNewMx3dApplication


MxNewMx3dBaseObject

Re-exports MxNewMx3dBaseObject


MxNewMx3dDbDocument

Re-exports MxNewMx3dDbDocument


MxNewMx3dDbLabel

Re-exports MxNewMx3dDbLabel


MxNewMx3dDbObject

Re-exports MxNewMx3dDbObject


MxNewMx3dDimObject

Re-exports MxNewMx3dDimObject


MxNewMx3dGeAxis

Re-exports MxNewMx3dGeAxis


MxNewMx3dGeBndBox

Re-exports MxNewMx3dGeBndBox


MxNewMx3dGeBox

Re-exports MxNewMx3dGeBox


MxNewMx3dGeCSYS

Re-exports MxNewMx3dGeCSYS


MxNewMx3dGeCSYSR

Re-exports MxNewMx3dGeCSYSR


MxNewMx3dGeCircle

Re-exports MxNewMx3dGeCircle


MxNewMx3dGeColor

Re-exports MxNewMx3dGeColor


MxNewMx3dGeConic

Re-exports MxNewMx3dGeConic


MxNewMx3dGeCurve

Re-exports MxNewMx3dGeCurve


MxNewMx3dGeCylinder

Re-exports MxNewMx3dGeCylinder


MxNewMx3dGeDir

Re-exports MxNewMx3dGeDir


MxNewMx3dGeEllipse

Re-exports MxNewMx3dGeEllipse


MxNewMx3dGeHyperbola

Re-exports MxNewMx3dGeHyperbola


MxNewMx3dGeLine

Re-exports MxNewMx3dGeLine


MxNewMx3dGeLocation

Re-exports MxNewMx3dGeLocation


MxNewMx3dGeObject

Re-exports MxNewMx3dGeObject


MxNewMx3dGePlane

Re-exports MxNewMx3dGePlane


MxNewMx3dGePoint

Re-exports MxNewMx3dGePoint


MxNewMx3dGeTrsf

Re-exports MxNewMx3dGeTrsf


MxNewMx3dGeVec

Re-exports MxNewMx3dGeVec


MxNewMx3dLabelSequence

Re-exports MxNewMx3dLabelSequence


MxNewMx3dPGeCircle

Re-exports MxNewMx3dPGeCircle


MxNewMx3dPGeConic

Re-exports MxNewMx3dPGeConic


MxNewMx3dPGeCurve

Re-exports MxNewMx3dPGeCurve


MxNewMx3dPGeEllipse

Re-exports MxNewMx3dPGeEllipse


MxNewMx3dPGeHyperbola

Re-exports MxNewMx3dPGeHyperbola


MxNewMx3dPGeLine

Re-exports MxNewMx3dPGeLine


MxNewMx3dPGeObject

Re-exports MxNewMx3dPGeObject


MxNewMx3dPGeParabola

Re-exports MxNewMx3dPGeParabola


MxNewMx3dShapeCompSolid

Re-exports MxNewMx3dShapeCompSolid


MxNewMx3dShapeCompound

Re-exports MxNewMx3dShapeCompound


MxNewMx3dShapeEdge

Re-exports MxNewMx3dShapeEdge


MxNewMx3dShapeFace

Re-exports MxNewMx3dShapeFace


MxNewMx3dShapeObject

Re-exports MxNewMx3dShapeObject


MxNewMx3dShapeObjectSequence

Re-exports MxNewMx3dShapeObjectSequence


MxNewMx3dShapeShell

Re-exports MxNewMx3dShapeShell


MxNewMx3dShapeSolid

Re-exports MxNewMx3dShapeSolid


MxNewMx3dShapeVertex

Re-exports MxNewMx3dShapeVertex


MxNewMx3dShapeWire

Re-exports MxNewMx3dShapeWire


MxNewMx3dSymbolObject

Re-exports MxNewMx3dSymbolObject


MxNewMx3dSymbolText

Re-exports MxNewMx3dSymbolText


MxNewMx3dView

Re-exports MxNewMx3dView


MxPropertiesWindowCustom

Re-exports MxPropertiesWindowCustom


MxPropertiesWindowCustomValue

Re-exports MxPropertiesWindowCustomValue


MxPropertiesWindowCustomValueType

Re-exports MxPropertiesWindowCustomValueType


Mx_Erase

Re-exports Mx_Erase


THREEColorArgs

Re-exports THREEColorArgs


WasmConfig

Re-exports WasmConfig


createMcCmColor

Re-exports createMcCmColor


createMxCad

Re-exports createMxCad


drawArc

Re-exports drawArc


drawCircle

Re-exports drawCircle


drawEllipticalArc

Re-exports drawEllipticalArc


drawLine

Re-exports drawLine


drawMText

Re-exports drawMText


drawPolyLine

Re-exports drawPolyLine


drawPolygon

Re-exports drawPolygon


drawRectang

Re-exports drawRectang


drawText

Re-exports drawText


getColorUtils

Re-exports getColorUtils


getFilterImp

Re-exports getFilterImp


loadMxCADassembly

Re-exports loadMxCADassembly


loadMxCADassembly3d

Re-exports loadMxCADassembly3d


setMcCmColor

Re-exports setMcCmColor

Variables

MxTools

Const MxTools: Object

Type declaration

NameType
IsZero(val: number) => boolean
_ML_String(strId: string, str: string) => string
b64Decode(str: string) => string
b64Encode(str: string) => string
downloadFile(blob: any, filename: string) => void
downloadFileFromUrl(url: string, filename: string) => void
getFileFromUrl(url: string) => Promise<undefined | Response>
getJsonFromUrl(url: string) => Promise<any>
postEmscriptenIndexedDBFile(filekey: string, url: string, retCall: (code: number, message: string) => void, param?: any) => void
postMemoryFile(memoryData: any, url: string, filename: string, retCall: (code: number, message: string) => void, param?: any) => void
saveAsFileDialog(__namedParameters: { blob: Blob ; filename?: string ; types?: FileTypes }) => Promise<undefined | FileSystemFileHandle & { createWritable: () => Promise<WritableStreamDefaultWriter<any>> }>

Functions

IsZero

IsZero(val): boolean

Parameters

NameType
valnumber

Returns

boolean


MxMapAddGoogleCnLayer

MxMapAddGoogleCnLayer(map, types, urls?): void

Parameters

NameType
mapany
typesstring[]
urls?string[]

Returns

void


MxMapAddRasterTileLayer

MxMapAddRasterTileLayer(map, layerList, key?, providers?): void

Parameters

NameType
mapany
layerListany[]
key?string
providers?any

Returns

void


_ML_String

_ML_String(strId, str): string

接收输入的提示字符串

Parameters

NameTypeDescription
strIdstring字符串的ID 起一个符合定义的ID名称
strstring提示字符串

Returns

string


b64Decode

b64Decode(str): string

Parameters

NameType
strstring

Returns

string


b64Encode

b64Encode(str): string

Parameters

NameType
strstring

Returns

string


downloadFile

downloadFile(blob, filename): void

Parameters

NameType
blobany
filenamestring

Returns

void


downloadFileFromUrl

downloadFileFromUrl(url, filename): void

Parameters

NameType
urlstring
filenamestring

Returns

void


getFileFromUrl

getFileFromUrl(url): Promise<undefined | Response>

Parameters

NameType
urlstring

Returns

Promise<undefined | Response>


getJsonFromUrl

getJsonFromUrl(url): Promise<any>

Parameters

NameType
urlstring

Returns

Promise<any>


mx_gcj02_To_gps84

mx_gcj02_To_gps84(lng, lat): Object

火星转84

Parameters

NameType
lngany
latany

Returns

Object

NameType
latnumber
lngnumber

mx_gps84_To_gcj02

mx_gps84_To_gcj02(lng, lat): Object

84转火星

Parameters

NameType
lngany
latany

Returns

Object

NameType
latany
lngany

postEmscriptenIndexedDBFile

postEmscriptenIndexedDBFile(filekey, url, retCall, param?): void

Parameters

NameType
filekeystring
urlstring
retCall(code: number, message: string) => void
param?any

Returns

void


postMemoryFile

postMemoryFile(memoryData, url, filename, retCall, param?): void

Parameters

NameType
memoryDataany
urlstring
filenamestring
retCall(code: number, message: string) => void
param?any

Returns

void


saveAsFileDialog

saveAsFileDialog(«destructured»): Promise<undefined | FileSystemFileHandle & { createWritable: () => Promise<WritableStreamDefaultWriter<any>> }>

文件下载保存(另存为只支持 Chrome86 或 Edge 86 以及 Opera 72)兼容 iE10等较低版本的浏览器

Parameters

NameType
«destructured»Object
› blobBlob
› filename?string
› types?FileTypes

Returns

Promise<undefined | FileSystemFileHandle & { createWritable: () => Promise<WritableStreamDefaultWriter<any>> }>