The HubAPI provides functionalities to get information from the instant3Dhub-backend. This includes:
requesting basic hub information
requesting service states
Every webvis instance requires a backend connection.
The backend address is defined by SettingStrings.HUB_URL.
Webvis will automatically connect to the backend in the background using the specified huburl.
Quick Start
Example: Request the supported content types from the backend.
Request a list of (model) data formats which are supported by the connected instance3Dhub-backend.
If requested before the connection to the Hub is established, it will return the local list of content types.
Request all supported render setups if one or more are available.
The render setup is a key value pair where the key is the name of the render setup and the value could be
used as an input value for the ViewerSettingStrings.RENDER_SETUP setting.
Returns Promise<{name:string;value:string}[]>
Returns a Promise which contains the list of supported render setups.
Did you find this page useful? Please give it a rating:
webvis: The HubAPI
Overview
The HubAPI provides functionalities to get information from the instant3Dhub-backend. This includes:
Every webvis instance requires a backend connection. The backend address is defined by SettingStrings.HUB_URL. Webvis will automatically connect to the backend in the background using the specified huburl.
Quick Start
Example: Request the supported content types from the backend.
Events
The following events are associated with the HubAPI: