new SVGFilter(options)
Parameters:
| Name | Type | Description |
|---|---|---|
options |
* | |
option.operation |
ol.ext.SVGOperation | |
option.id |
string | filter id, only to use if you want to adress the filter directly or var the lib create one, if none create a unique id |
option.color |
string | color interpolation filters, linear or sRGB |
Classes
Methods
-
addOperation(operation)
-
Add a new operation
Parameters:
Name Type Description operationol.ext.SVGOperation -
getId()
-
Get filter ID
Returns:
- Type
- string
-
grayscale(value)
-
Add a grayscale operation
Parameters:
Name Type Description valuenumber -
luminanceToAlpha(options)
-
Add a luminanceToAlpha operation
Parameters:
Name Type Description options* Properties
Name Type Description gammanumber enhance gamma, default 0
-
remove()
-
Remove from DOM