Skip to content

[mxcad_3d API documentation](../README. md)/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

The default minimum height for canvas is 300


minWidth ​

• Optional minWidth: number

The default minimum width of canvas is 300


updateCanvasSize ​

• Optional updateCanvasSize: () => void

Type declaration ​

▸ (): void

Specify the function to update Canvas size, if not specified, it will be automatically processed by default (specifying this function will result in minHeight, minWidth is invalid)

Returns ​

void