Add an event listener to an object.
The object to add the event listener to.
The type of event to listen for.
The object that receives a notification when an event occurs.
Generates a random alphanumeric token, given a length.
The length of the token to generate. If no length is provided, a default length of 8 characters is used.
Decodes a Base-64 string.
The text input to decode.
Base-64 encodes a chunk of UTF-8 data.
The text input to encode.
Restricts a value to be within a specified range.
The value to clamp
The minimum value. If value is less than min, min will be returned
The maximum value. If value is greater than max, max will be returned
A convenient function to get the ISO formatted date with no milliseconds OGC services require this for this TIME value in GetMap requests
The date to format
Safely attempt to get a nested property from an object without doing a long string of null checks in your code :) Pass in the object and the path to test and you will either be returned the value or 'undefined' if it does not exist Array access can form part of the path, for example: ["user", "posts", 0, "comments", 0] will attempt to access the first comment on the first post for that user.
Any object to access a property from
the path to the property
$.isEmptyObject returns strange positives. This tests exclusively for {}
Test if a value is an integer number Official polyfill from MDN
Returns true if the passed in value is an object (not a primitive) From MDN: 'The Object constructor creates an object wrapper for the given value. If the value is null or undefined, it will create and return an empty object, otherwise, it will return an object of a type that corresponds to the given value. If the value is an object already, it will return the value.'
Returns true if a value is a percentage value, false otherwise.
The value being evaluated.
Checks whether the supplied string represents a URL.
The value to check.
Makes a relative URL absolute.
The URL to make absolute.
Helper function to create a bi-directional mapping
Import this function to set the active log sources. The Trace functionality needs to know this for proper operation.
A string[] containing "gvh", "event", "command", "view", "time", "binding" or any combination thereof. "all" turns everything on when assigned to the array by itself
Decodes a UTF-8 value into its string representation.
Encodes a string into its UTF-8 representation.
The string to encode.
Import this let to check the current active log sources