Function
Static Public Summary | ||
public |
addTooltip($element: jQuery, text: string) |
|
public |
return argument as object (if it is no object the value is {}) |
|
public |
asyncImageLoad(image: HTMLImageElement, origUrl: URL, finalUrl: string): Promise |
|
public |
changeTooltip($element: jQuery, text: string) |
|
public |
Check for a label in a configuration object |
|
public |
Copy an object |
|
public |
Deep copy an object |
|
public |
createMapInternal(element: *, args: *, defaultConfigs: *): * |
|
public |
Checks whether an argument can be interpreted as an even integer |
|
public |
filterText(text: string): string Filters text from user input |
|
public |
finishAllImages($object: jQuery): Promise finishs loading all images contained in the given jQuery object. |
|
public |
Gets the subconfig or an empty object |
|
public |
getInFront($element: jQuery, $context: jQuery) This function gets an $element inside a $context in fornt of all of them |
|
public |
getRegisteredModules(): * |
|
public |
Takes a string with HTML and returns the containing resulting text. |
|
public |
layerConfigConverter(layerConfig: *): * |
|
public |
A simple object merge function. |
|
public |
A simple reverse object merge function. |
|
public |
mixin(baseClass: *, mixinClasses: *): class This creates a new class which inherits from the base class and mixes in every method (except any method named 'initialize') from the mixin class. |
|
public |
mixinAsClass(mixinClass: *): class This returns a mixin as a normal class. |
|
public |
multiplyExtent(extent: ol.Extent, value: number): ol.Extent returns an extent with the same center but width and height miltiplied by the given value |
|
public |
Checks whether an argument can be interpreted as an even integer |
|
public |
calculates the distance between one and another jQuery element |
|
public |
recursiveSelect($elem: jQuery, query: string): jQuery selects all matching elements and child elements |
|
public |
registerModule(module: *) |
|
public |
restoreText(text: string): string Restores the text |
|
public |
showInteractionActivity(map: *) |
|
public |
Removes a property from an object and returns its value |
|
public |
urlDirname(url: string): string A function that tries to get the dir url of an url |
|
public |
urlIsAbsolute(url: string): boolean |
|
public |
A function that adds urls |
|
public |
urlNormalize(url: string): string A function that normalizes a url |
|
public |
urlRelative(source: string, target: string): string A function that tries to get the relative url between to urles |
Static Public
public addTooltip($element: jQuery, text: string) source
import {addTooltip} from 'guide4you/src/html/html.js'
Params:
Name | Type | Attribute | Description |
$element | jQuery | ||
text | string |
public asObject(argument: *): Object source
import {asObject} from 'guide4you/src/utilities.js'
return argument as object (if it is no object the value is {})
Params:
Name | Type | Attribute | Description |
argument | * |
public asyncImageLoad(image: HTMLImageElement, origUrl: URL, finalUrl: string): Promise source
import {asyncImageLoad} from 'guide4you/src/utilities.js'
Params:
Name | Type | Attribute | Description |
image | HTMLImageElement | ||
origUrl | URL | ||
finalUrl | string |
|
public changeTooltip($element: jQuery, text: string) source
import {changeTooltip} from 'guide4you/src/html/html.js'
Params:
Name | Type | Attribute | Description |
$element | jQuery | ||
text | string |
public checkFor(configurationObject: Object, label: String): boolean source
import {checkFor} from 'guide4you/src/utilities.js'
Check for a label in a configuration object
public copy(object: Object): Object source
import {copy} from 'guide4you/src/utilitiesObject.js'
Copy an object
Params:
Name | Type | Attribute | Description |
object | Object |
public copyDeep(object: Object): Object source
import {copyDeep} from 'guide4you/src/utilitiesObject.js'
Deep copy an object
Params:
Name | Type | Attribute | Description |
object | Object |
public createMapInternal(element: *, args: *, defaultConfigs: *): * source
import {createMapInternal} from 'guide4you/src/main.js'
Params:
Name | Type | Attribute | Description |
element | * | ||
args | * | ||
defaultConfigs | * |
Return:
* |
public even(value: Object): Boolean source
import {even} from 'guide4you/src/utilities.js'
Checks whether an argument can be interpreted as an even integer
Params:
Name | Type | Attribute | Description |
value | Object | A value of any type |
Return:
Boolean | True when value is numeric, parses as an integer (no matter if decimal, octal or sexadecimal) |
public filterText(text: string): string source
import {filterText} from 'guide4you/src/xssprotection.js'
Filters text from user input
Params:
Name | Type | Attribute | Description |
text | string |
public finishAllImages($object: jQuery): Promise source
import {finishAllImages} from 'guide4you/src/utilities.js'
finishs loading all images contained in the given jQuery object.
Params:
Name | Type | Attribute | Description |
$object | jQuery |
public getConfig(config: object, name: string): object source
import {getConfig} from 'guide4you/src/utilities.js'
Gets the subconfig or an empty object
public getInFront($element: jQuery, $context: jQuery) source
import {getInFront} from 'guide4you/src/html/html.js'
This function gets an $element inside a $context in fornt of all of them
Params:
Name | Type | Attribute | Description |
$element | jQuery | ||
$context | jQuery |
public getRegisteredModules(): * source
import {getRegisteredModules} from 'guide4you/src/moduleRegistration.js'
Return:
* |
public html2Text(stringWithHTML: *): string source
import {html2Text} from 'guide4you/src/utilities.js'
Takes a string with HTML and returns the containing resulting text.
Params:
Name | Type | Attribute | Description |
stringWithHTML | * | string with encoded HTML entities |
public layerConfigConverter(layerConfig: *): * source
import {layerConfigConverter} from 'guide4you/src/layerSelector/layerConfigConverter.js'
Params:
Name | Type | Attribute | Description |
layerConfig | * |
Return:
* |
public merge(obj1: Object, obj2: Object): Object source
import {merge} from 'guide4you/src/utilitiesObject.js'
A simple object merge function. merges all keys of obj2 to obj1.
public mergeDeep(obj1: Object, obj2: Object): Object source
import {mergeDeep} from 'guide4you/src/utilitiesObject.js'
A simple reverse object merge function. merges all keys of obj2 to obj1.
public mixin(baseClass: *, mixinClasses: *): class source
import {mixin} from 'guide4you/src/utilities.js'
This creates a new class which inherits from the base class and mixes in every method (except any method named 'initialize') from the mixin class. The mixin class may not overwrite any existing method. If it has a method called 'initialize' this will be remembered and called after the constructor of the base class has finished
Params:
Name | Type | Attribute | Description |
baseClass | * | ||
mixinClasses | * |
Return:
class |
public mixinAsClass(mixinClass: *): class source
import {mixinAsClass} from 'guide4you/src/utilities.js'
This returns a mixin as a normal class.
Params:
Name | Type | Attribute | Description |
mixinClass | * |
Return:
class |
public multiplyExtent(extent: ol.Extent, value: number): ol.Extent source
import {multiplyExtent} from 'guide4you/src/extent.js'
returns an extent with the same center but width and height miltiplied by the given value
Params:
Name | Type | Attribute | Description |
extent | ol.Extent | ||
value | number |
Return:
ol.Extent |
public odd(value: Object): Boolean source
import {odd} from 'guide4you/src/utilities.js'
Checks whether an argument can be interpreted as an even integer
Params:
Name | Type | Attribute | Description |
value | Object | A value of any type |
Return:
Boolean | True when value is numeric, parses as an integer (no matter if decimal, octal or sexadecimal) |
public offset($one: jQuery, $other: jQuery): {top: number, left: number} source
import {offset} from 'guide4you/src/utilities.js'
calculates the distance between one and another jQuery element
Params:
Name | Type | Attribute | Description |
$one | jQuery | ||
$other | jQuery |
public recursiveSelect($elem: jQuery, query: string): jQuery source
import {recursiveSelect} from 'guide4you/src/utilities.js'
selects all matching elements and child elements
Params:
Name | Type | Attribute | Description |
$elem | jQuery | ||
query | string |
Return:
jQuery |
public registerModule(module: *) source
import {registerModule} from 'guide4you/src/moduleRegistration.js'
Params:
Name | Type | Attribute | Description |
module | * |
public restoreText(text: string): string source
import {restoreText} from 'guide4you/src/xssprotection.js'
Restores the text
Params:
Name | Type | Attribute | Description |
text | string |
public showInteractionActivity(map: *) source
import {showInteractionActivity} from 'guide4you/src/utilities.js'
Params:
Name | Type | Attribute | Description |
map | * |
public take(object: Object, prop: String): * source
import {take} from 'guide4you/src/utilitiesObject.js'
Removes a property from an object and returns its value
Return:
* |
public urlDirname(url: string): string source
import {urlDirname} from 'guide4you/src/utilities.js'
A function that tries to get the dir url of an url
Params:
Name | Type | Attribute | Description |
url | string |
public urlIsAbsolute(url: string): boolean source
import {urlIsAbsolute} from 'guide4you/src/utilities.js'
Params:
Name | Type | Attribute | Description |
url | string |
public urlJoin(urlRoot: string, urlExt: string): string source
import {urlJoin} from 'guide4you/src/utilities.js'
A function that adds urls
public urlNormalize(url: string): string source
import {urlNormalize} from 'guide4you/src/utilities.js'
A function that normalizes a url
Params:
Name | Type | Attribute | Description |
url | string |