Description Usage Arguments Author(s) See Also
View source: R/webGLcontrols.R
These functions write
out HTML code to control WebGL displays based
using the obsolete writeWebGL
. Use
playwidget
and related functions instead.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | propertySlider(setter = propertySetter,
minS = NULL, maxS = NULL, step = 1, init = NULL,
labels,
id = basename(tempfile("input")), name = id,
outputid = paste0(id, "text"),
index = NULL,
...)
propertySetter(values = NULL, entries, properties, objids, prefixes = "",
param = seq_len(NROW(values)), interp = TRUE, digits = 7)
par3dinterpSetter(fn, from, to, steps, subscene, omitConstant = TRUE,
rename = character(), ...)
matrixSetter(fns, from, to, steps, subscene = currentSubscene3d(),
matrix = "userMatrix", omitConstant = TRUE, prefix = "", ...)
vertexSetter(values, vertices = 1, attributes, objid, prefix = "",
param = seq_len(NROW(values)), interp = TRUE,
digits = 7)
|
setter |
A function to write Javascript code, or its output, or a list containing several of these. |
minS, maxS, step, init |
Slider values to be displayed. Reasonable defaults are used if missing. |
labels |
Labels to display for each slider value. The
defaults are calculated using internal variables. If |
id |
The |
name |
The name of the input control that will be generated. |
outputid |
The |
index |
The 1-based index of this slider: it controls the
corresponding entry in an indexed setter such as |
... |
Other parameters. |
values |
An array of values; rows correspond to slider positions. Alternatively, |
entries, properties, objids, prefixes |
Vectors describing
the columns of |
param |
Parameter values corresponding to each row of |
interp |
Whether to interpolate values. If |
digits |
How many significant digits to emit in the Javascript code. |
fn |
A function returned from |
from, to, steps |
Values where |
subscene |
Which subscene's properties should be modified? |
omitConstant |
If |
rename |
A named character vector of names of Javascript properties to modify. |
fns |
A list containing functions returned from
|
matrix |
A character string giving the Javascript property name of the matrix to modify. |
prefix |
The prefix of the scene containing |
vertices |
A vector of vertex numbers (1-based) within an object. |
attributes |
A vector of attributes of a vertex,
from |
objid |
The object containing the vertices to be modified. |
Duncan Murdoch
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.