API / geotoolkit / gauges / registry / FunctionRegistry / FunctionRegistry
registry.FunctionRegistry.FunctionRegistry
A simple class which knows how to store alarm or easing or format functions and return them, all by name
Constructors
Methods
▸ getClassName(): string
string
▸ getFunction(name): Function
Gets a handler function by its name
| Name | Type | Description |
|---|---|---|
name | string | Name of the function to get |
Function
▸ registerFunction(functions): FunctionRegistry
Registers handler function by its name
| Name | Type | Description |
|---|---|---|
functions | Record<string, Function> | An object with handlers |
▸ registerFunction(name, func): FunctionRegistry
Registers handler function by its name
| Name | Type | Description |
|---|---|---|
name | string | Name of the handler |
func | Function | Handler Function |
▸ Static getClassName(): string
string
▸ Static getDefaultInstance(): FunctionRegistry
Returns an instance of registry filled with easing functions
registry