ScalarMapperContinuousDomain

class cee.ScalarMapperContinuousDomain()

Base class for scalar mappers that implement normalizedValue / domainValue


Accessors

cee.ScalarMapperContinuousDomain.aboveRangeColor

The color to assign values that are above the given range.

Default is undefined, which indicates that the last color in the color array will be used.

cee.ScalarMapperContinuousDomain.belowRangeColor

The color to assign values that are below the given range.

Default is undefined, which indicates that the first color in the color array will be used.

cee.ScalarMapperContinuousDomain.undefinedColor

The color used for undefined values.

Default is undefined, which indicates that the last color in the color array will be used.

Methods

createTexture

cee.ScalarMapperContinuousDomain.createTexture()
Return type

cee.Texture

domainValue

cee.ScalarMapperContinuousDomain.domainValue(normalizedPosition)
Arguments
  • normalizedPosition (number) –

Return type

number

mapToColor

cee.ScalarMapperContinuousDomain.mapToColor(scalarValue)
Arguments
  • scalarValue (number) –

Return type

cee.Color4Like

mapToTextureCoordinate

cee.ScalarMapperContinuousDomain.mapToTextureCoordinate(scalarValue)
Arguments
  • scalarValue (number) –

Return type

cee.Vec2Like

normalizedValue

cee.ScalarMapperContinuousDomain.normalizedValue(domainValue)
Arguments
  • domainValue (number) –

Return type

number

tickValuesHint

cee.ScalarMapperContinuousDomain.tickValuesHint()
Return type

ArrayLike[number]

version

cee.ScalarMapperContinuousDomain.version()
Return type

number