- GraphqlClient
- .getClient ⇒
Object
- .getError ⇒
*
- .getClient ⇒
The client can be used to interact with the GraphQL API of Thorium.
Param | Type | Description |
---|---|---|
protocol | string |
The protocol of the GraphQL server |
address | string |
The IP of the Thorium server |
port | string |
The port of the Thorium server |
clientId | string |
The ID of the client that will be used in Thorium to identify this client |
Singleton client
Returns: Object
- client - The instance of the GraphqlClient
Param | Type | Description |
---|---|---|
type | string |
What kind of GraphQL client (either thorium or luminave) |
protocol | string |
The protocol of the graphql client |
address | string |
The IP of the Thorium server |
port | string |
The port of the Thorium server |
clientId | string |
The ID of the client that will be used in Thorium to identify this client |
Based on the error gives back only network errors
Returns: *
- error
Param | Type | Description |
---|---|---|
error | * |
The GraphQL error |
Get the lighting information out of Thorium for a specific simulator
Param | Type | Description |
---|---|---|
args | Object |
The arguments to configure ThoriumLighting |
args.simulatorId | String |
The ID of the simulator that has the lighting information |
Subscribe to lighting changes
Check the data that is coming from Thorium to see if it changed
Param | Type | Description |
---|---|---|
oldValue | Object |
The old data |
newValue | Object |
The new data |
Clean up when the component gets destroyed
The cards that are available for the Thorium client and can be choosen when using the Thorium Server backend
Get all scenes of the timeline
Update the timeline with the scenes
Param | Type | Description |
---|---|---|
scenes | Array.<Object> |
The scenes to update the timeline with |
Update animation data
Param | Type | Description |
---|---|---|
animation | Array.<Object> |
The animation data from other applications, for example Thorium |
Transform the Lighting from Thorium into scenes for luminave
Returns: Array.<Object>
- A list of scenes
Param | Type | Description |
---|---|---|
lighting | Object |
The lighting data from Thorium |
Transform the Lighting from Thorium into animation for luminave
Returns: Object
- - An animation
Param | Type | Description |
---|---|---|
lighting | Object |
The lighting data from Thorium |
Create a scene that can be used in luminave
Returns: Object
- The luminave scene
Param | Type | Description |
---|---|---|
name | String |
The name of the scene |