new Paper(options)
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
Properties
|
Requires:
- module:ol.filter
Extends
Requires
- module:ol.filter
Methods
-
addOperation(operation)
-
Add a new operation
Parameters:
Name Type Description operation
ol.ext.SVGOperation - Inherited From:
- Overrides:
-
getId()
-
Get filter ID
- Inherited From:
- Overrides:
Returns:
- Type
- string
-
grayscale(value)
-
Add a grayscale operation
Parameters:
Name Type Description value
number - Inherited From:
- Overrides:
-
luminanceToAlpha(options)
-
Add a luminanceToAlpha operation
Parameters:
Name Type Description options
* Properties
Name Type Description gamma
number enhance gamma, default 0
- Inherited From:
- Overrides:
-
remove()
-
Remove from DOM
- Inherited From:
- Overrides:
-
setLight(light)
-
Set filter light
Parameters:
Name Type Description light
number light option. 0: darker, 100: lighter