Function or value | Description |
Full Usage:
(<=.) target (source, sourceLower, sourceUpper, targetLower, targetUpper)
Parameters:
string -> CyStyleParam
source : 'a -> CyStyleParam
sourceLower : 'b
sourceUpper : 'c
targetLower : 'd
targetUpper : 'e
Returns: CyStyleParam
Modifiers: inline |
Specifies a linear mapping to an element’s data field. For example, mapData(weight, 0, 100, blue, red) maps an element’s weight to colours between blue and red for weights between 0 and 100.
|
Full Usage:
target =. source
Parameters:
string -> CyStyleParam
source : 'a -> CyStyleParam
Returns: CyStyleParam
|
Specifies a direct mapping to an element’s data field. For example, data(descr) would map a property to the value in an element’s descr field in its data (i.e. ele.data("descr")).
|