CyParamMapper Module

Functions and values

Function or value Description

(<=.) target (source, sourceLower, sourceUpper, targetLower, targetUpper)

Full Usage: (<=.) target (source, sourceLower, sourceUpper, targetLower, targetUpper)

Parameters:
    target : 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.

target : string -> CyStyleParam
source : 'a -> CyStyleParam
sourceLower : 'b
sourceUpper : 'c
targetLower : 'd
targetUpper : 'e
Returns: CyStyleParam

target =. source

Full Usage: target =. source

Parameters:
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")).

target : string -> CyStyleParam
source : 'a -> CyStyleParam
Returns: CyStyleParam