Allows an argument to be provided either directly, or as a function of each element's data (see ElementFn and ElementSelection.data).
A function taking a selected element's data as and index input.
This is typically provided as an argument in a selection method, allowing attributes to be configured differently for each element.
The data associated with the element.
The index of the element in the selection, beginning at 0, determined by its position in the list initially used to construct the selection.
A numerical attribute, which can also provided as a linear expression.
Expressions can be provided as an { m, x, c }
dictionary, or as an expression string such as
"-2x+8". Both m
and c
are constants, while x
is a variable corresponding to some other
attribute. Below is a list of valid variables and the context in which they can be used:
Generated using TypeDoc
An ID value, which will be converted to a string.