meteoJS/modelviewer
Source: Modelviewer.
Child class
Abstract types
Class
Modelviewer
Abstract types
makeContainerNode(container) → (HTMLElement or jQuery)
Creates and returns a HTMLElement or jQuery object for a container. The content of the container is appended to this element. This function has to append the element to the modelviewer's containersNode.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
container |
|
Container to append. |
- Returns
-
(HTMLElement or jQuery)
Top node of the appended container.
options Object
Options for constructor.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
resources |
|
Available resources. |
|
containersNode |
(HTMLElement or jQuery) |
|
Node to append the containers. |
timeline |
Yes |
Shared Timeline between containers. |
|
makeContainerNode |
Yes |
Function to create the top node of each container. |
|
firstTimeOnInit |
boolean |
Yes |
Selects the first time in timeline once for the first time times are added to the timeline. Defaults to |
lastTimeOnInit |
boolean |
Yes |
Selects the last time in timeline once for the first time times are added to the timeline. Ignored if firstTimeOnInit is true. Defaults to |