#Startup Options
The Engine has an optional parameter StartupOptions. See below the various options that can be set through this parameter. The options are passed like the following: new m2Diag.Engine(canvasId, startupOptions)
Here are the default options:
startupOptions = {
apiKey: string,
panZoom: true,
support3d: true,
defaultShow3d: false,
viewSetting: {
showImage: true,
showLabel: true,
showDimension: true,
showWallSection: true,
showAnnotation: true
},
eventState: {
onDataLoading: function (event, shape, point) {
// do something
},
onDataLoaded: function (event, shape, point) {
// do something
},
onSelectShape: function (event, shape, point) {
// do something
}
}
}