Skip to content
On this page

mxcad_3d API 文档 / MxCAD3DConfig

Interface: MxCAD3DConfig

Indexable

▪ [x: string]: any

Table of contents

Properties

Properties

canvas

canvas: string | HTMLCanvasElement


locateFile

Optional locateFile: (fileName: string, base?: string | URL) => string

Type declaration

▸ (fileName, base?): string

Parameters
NameType
fileNamestring
base?string | URL
Returns

string


minHeight

Optional minHeight: number

canvas最小高度 默认300


minWidth

Optional minWidth: number

canvas最小宽度 默认300


updateCanvasSize

Optional updateCanvasSize: () => void

Type declaration

▸ (): void

指定更新Canvas大小的函数,不指定则默认自动处理(指定该函数则 minHeight, minWidth无效)

Returns

void