- file
File path and name (having the extenstion ".html") where Viewer will be created. If file is NULL
then the viewer will open over a local server in the default web browser and mode 'webgl' will be automatically selected.
- window.title
The Viewer title, visible at the top of the web browser window.
- animate.duration
Only used in 'svg' mode. The approximate duration in seconds of the animation. When the number of objects to be displayed is large, the actual duration might exceed this number.
- animate.speed
Only used in 'webgl' mode. The relative speed at which the animation will playback. For example, to play the animation at half the real speed, animate.speed
would be 0.5.
- interpolate
Whether transformations should be interpolated between input transformations (i.e. keyframes).
- timeline
If the visualization includes an animation, whether the timeline is viewable. The timeline includes controls for navigating through the animation (play, pause, change animation speed, etc.).
- mode
Whether to draw using the old mode ('svg') or the new mode ('webgl'). See details.
- animate.reverse
A logical indicating whether the animation is to be played in reverse after each iteration. Only used in 'svg' mode.
- animate.repeat
An integer specifying the number of times the animation will repeat. A value of -1
will cause the animation to repeat indefinitely. Only used in 'svg' mode.
- margin
Margin when resizing visualization to fit the browser window.
- col
Viewer background color.
- times
If including animated shapes without svg.transform, this parameter can be used to input time points corresponding to each frame of the animation.
- clock
Whether a clock should be visible or not.
- stats
Whether processing stats should be visible or not.
- panel
Whether a panel is visible showing all objects by name with a toggle option to show or hide.
- show.control
Whether control panel should be visible or not. Only used in 'svg' mode.
- start.rotate
Whether visualization should start with 'rotate' enabled or 'translate' enabled. Only used in 'svg' mode.
- rotate.speed
How much the camera rotates in response to mouse click and drag. Only used in 'webgl' mode.
- camera.near
Distance of the camera to the plotted objects.
- fov
Field of view of the camera. This will determine the strength of perspective effects.
- zoom.speed
How much the camera zooms in response to mouse click and drag. Only used in 'webgl' mode.
- pan.speed
How much the camera pans in response to mouse click and drag. Only used in 'webgl' mode.
- layers
Not yet fully enabled.
- connection
Whether to open a file connection or create a closed file.
- close.on.done
If screenshots are being saved as images, whether browser should close after saving out screenshots as images.
- file.type
If screenshots are being saved as images, the type of image (e.g. jpeg, jpg, tiff, png).
- app.dir.src
A filepath to the code source files for use when running package from source (used for debugging only).
- debug
Whether to run viewer in debug mode (used for debugging only).
- src.link
Whether to include javascript code as a source links rather than directly embedded in html file (used for debugging only).