Constructor
new Langevitour(container, width, height)
Create a Langevin Tour widget.
Parameters:
Name | Type | Description |
---|---|---|
container |
HTMLElement | Element to insert widget into. |
width |
number | Desired initial width of widget. |
height |
number | Desired initial height of widget. |
- Source:
Methods
getState()
Get the current widget state.
- Source:
renderValue(data)
Show data in the widget.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
object | The data to show.
Properties
|
- Source:
resize(width, height)
Resize the widget.
Ignored if widget has gone full-screen.
Parameters:
Name | Type | Description |
---|---|---|
width |
number | New width. |
height |
number | New height. |
- Source:
setState(state)
Set the widget state.
Can be used to restore a previous state of the widget obtained with getState().
Parameters:
Name | Type | Description |
---|---|---|
state |
A JSON string or an Object containing the desired state. |
- Source: