Show:

ia.SizePalette Class

Module: ia

Palette for size values.

Constructor

ia.SizePalette

(
  • minimumSize
  • maximumSize
)

Parameters:

  • minimumSize Number

    The minimum size.

  • maximumSize Number

    The maximum size.

Item Index

Methods

getInterpolatedSizes

(
  • noSizes
)
String

Returns a list of sizes uniformly interpolated

Parameters:

  • noSizes Number

    The number of sizes required.

Returns:

String: An array of color values.

getSize

(
  • f
)
Number

Gets the size corresponding to the interpolation fraction. If the useSqrRoot flag is true, the square root of the size value is returned.

Parameters:

  • f Number

    An interpolation fraction as a value between 0 and 1.

Returns:

Number: The size corresponding to the fraction.

Properties

maxSize

Number

The maximum size.

Default: 15

minSize

Number

The minimum size.

Default: 15

useSqrRoot

Boolean

Flag indicating if square root should be used.

Default: false