Constructor
new InRangeFilter(attribute, attributeIndex, min, max)
- Source:
Properties:
Name | Type | Description |
---|---|---|
min |
number | The minimum value. |
max |
number | The maximum value. |
Creates an instance of InRangeFilter.
Parameters:
Name | Type | Description |
---|---|---|
attribute |
string | The name of the attribute to filter on. |
attributeIndex |
number | The attribute-index to filter on. |
min |
number | The minum value. |
max |
number | The maximum value. |
Methods
filter()
- Source:
Execute the filter operation on the specified attribute and attribute-index. In order to filter, the HSS size value (attribute-index 2 of the color attribute) is set to its negative (1.0 -> -1.0, 2.5 -> -2.5).
getMax() → {number}
- Source:
Get the maximum.
Returns:
The maximum.
- Type
- number
getMin() → {number}
- Source:
Get the minimum.
Returns:
The minimum.
- Type
- number
reset()
- Source:
Resets the filter ("removes" it). The HSS size value is set back to its original value (-1.0 -> 1.0, -2.5 -> 2.5).
setMax(value)
- Source:
Set the maximum.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The maximum. |
setMin(value)
- Source:
Set the minimum.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The minimum. |