API / geotoolkit / animation / effects / Registry / Registry
Registry which stores animation effect. If you want to add your own effect you should call geotoolkit/animation/effects/Registry.getInstance().registerEffect(class_name) If you want to instantiate class from object you should call geotoolkit/animation/effects/Registry.getInstance().createEffect(effect_object)
Constructors
Methods
▸ createEffect(effect, node?): AbstractEffect
Finds class appropriate passed object and instantiates it
Throws
Error if effect does not found
| Name | Type | Description |
|---|---|---|
effect | Options | effect properties |
Optional node | AnimatedNode | node to which effect would be applied |
effect
▸ getClassName(): string
string
▸ registerEffect(Effect): Registry
Register effect in registry
| Name | Type | Description |
|---|---|---|
Effect | typeof AbstractEffect | effect |
this
▸ setDefaultEffect(Effect): Registry
Sets default effect class, that will be used in createEffect
| Name | Type | Description |
|---|---|---|
Effect | typeof AbstractEffect | effect |
this
▸ Static getClassName(): string
string
▸ Static getInstance(): Registry
Returns instance of the Effects registry
Effects registry