The signature of the callback in the event of access token. The first parameter is the event name and the second parameter contains the access token.
The data structure representing the angle unit.
The enum structure representing the accepted background color values.
The signature of the callback in the event of changed camera. The first parameter is the event name and the second parameter contains the data of the new camera data.
The supported camera preset.
The signature of the callback in the event of changed data table config. The first parameter is the event name and the second parameter contains the data of the changed data table config
The signature of the callback in the event of embed session invalid. The parameter is the flag indicating the embed session being invalid.
The callback signature for events emitted by the Trimble Connect 3D Viewer client.
The event identifier
The event data
The IDs of the internal application events
The signature of the callback in the event a broadcast to the extension. The parameter is any data broadcasted by another extension or the host application.
The signature of the callback in the event of extension close. The parameter is the event name.
The signature of the callback in the event of commands to the extension. The parameter is the flag indicating the command was received.
Possible events back from the Trimble Connect Web application to Trimble Connect project extension.
The Extension type.
The signature of the callback in the event of file multi selected from the explorer. The first parameter is the event name and the second parameter contains the data of the selected file.
The signature of the callback in the event of file selected from the explorer. The first parameter is the event name and the second parameter contains the data of the selected file.
The signature of the callback in the event of file selected from the explorer. The first parameter is the event name and the second parameter contains the data of the selected file.
The HEX color
Route key for navigating the Trimble Connect Web application to a specific route
The signature of the callback in the event of icon picking. The first parameter is the event name and the second parameter contains the data of picked icon(s).
The data structure representing the area unit.
The data structure representing the length unit.
The data structure representing the mass unit.
The data structure representing the volume unit.
The type of the model identifier
The signature of the callback in the event of model reset. The first parameter is the event name.
The type of the model state
The signature of the callback in the event of changed model state. The first parameter is the event name and the second parameter contains the state of the model.
The type of the model version identifier
The signature of the callback in the event of changed models panel config. The first parameter is the event name and the second parameter contains the data of the changed models panel config
The models panel visualisation mode.
The type of the object identifier. This is the identifier that is used to uniquely identify an object (e.g. externally in Connect).
The type of the object runtime identifier. The is the identifier that is used to query the object at runtime (e.g. internally in 3D Viewer).
The state of the UI elements.
The signature of the callback in the event of point picking. The first parameter is the event name and the second parameter contains the data of the picked point(s).
Payload for viewer.onPresentationChanged
event
The signature of the callback in the event of changed project. The first parameter is the event name and the second parameter contains the data of the changed active project
The signature of the callback in the event of changed project settings. The first parameter is the event name and the second parameter contains the data of the changed active project settings
The camera projection type
The signature of the callback in the event of changed property panel model. The first parameter is the event name and the second parameter contains the data of the changed property panel model
The model objects selection.
The signature of the callback in the event of changed selection. The first parameter is the event name and the second parameter contains the selection data.
The selector mode.
The signature of the callback in the event of session invalid. The parameter is the flag indicating the session being invalid.
The signature of the callback in the event of session log out. The parameter is the flag indicating the session being logged out.
The name of the UI elements.
The state of the UI elements.
The available and supported unit systems.
The signature of the callback in the event of changed user details. The first parameter is the event name and the second parameter contains the data of the changed user settings
The signature of the callback in the event of changed user settings. The first parameter is the event name and the second parameter contains the data of the changed user settings
The signature of the callback in the event of changed view spec. The first parameter is the event name and the second parameter contains the data of the changed view spec
The signature of the callback in the event of changed viewer settings. The first parameter is the event name and the second parameter contains the data of the changed viewer settings
The signature of the callback in the event of changed viewer tool. The first parameter is the event name and the second parameter contains the data of the changed viewer tool
The supported event callbacks
The type of the event data
The tools that can be activated.
The snapping types that can be configured for a tool.
Connects to the 3D Viewer application.
The target dispatcher or the iframe hosting the 3D Viewer application.
The callback that receives the events dispatched from the 3D Viewer application.
The optional timeout in milliseconds. If not specified default timeout is 10000ms
A promise that resolves to the set of exposed external API from the 3D Viewer application. Use the exposed API to communicate with the 3D Viewer application.
Add this listener to window.addEventListener to receive messages from connected clients
For example:
window.addEventListener("message", dispatcherEventListener)
Expose Workspace API implementation to connected clients
Send an event to connected clients
an object able to call postMessage(). Most likely a window or an iframe contentWindow.
— The target origin, or "*" if any origin is allowed.
Example of sending a message to a client in an iframe :
sendEvent(clientIframe.contentWindow, '*', 'extension.accessToken', {data:'abc123'})
The signature of the callback in the event of access token. The first parameter is the event name and the second parameter contains the access token.