Input for add degrees
Input for animation intensity
Input for animation speed
Input for blur radius
Input for color map
Dropdown select for color scheme
Input for colors
Input for extra units
Dropdown select for fill style
Input for isoline color
Dropdown select for isoline color
Input for isoline text visibility
Input for levels
Dropdown select for mask
Input for the name of the style
Input for noise texture power
Optional onchangeEvent handler triggered when style changes. This handler is expected to return a promise for async operations.
The updated style to apply.
Optional nonnative: booleanOptional flag for non-native style handling.
Main container for the editor
Input for the parent of the style
Input for show above max
Input for show below min
Input for stream line color
Dropdown select for stream line color
Input for stream line speed factor
Input for stream line static
Base style for WxColorStyle
Input for units
Input for vector color
Dropdown select for vector color
Input for vector factor (strength)
Input for vector field factor
Dropdown select for vector type
Input for waves count
Protected _getSets the style of the control.
This method applies a given WxColorStyleWeak style to the control. If the style includes a colorMap,
it filters out colors and levels before applying the style to the control. The style is then set to
the control's div and reflected in the text area using the _setStyleToTextArea method.
Protected _onHandles changes made to the control's div and updates the style.
This method retrieves the current style from the div, removes any properties that are undefined,
empty, or have a length of zero, and updates the text area with the modified style.
Afterward, it calls the onchange callback (if defined) with the updated style.
Protected _setProtected _setSets the style to the editor's text area.
This method serializes the given WxColorStyleWeak style into a sorted JSON string and sets it as the value
of the editor's text area. The style is sorted using the JSONsort function before being applied.
The WxColorStyleWeak object representing the style to be set in the text area.
Returns an object with methods to add and remove the control from a map.
This method is used to integrate the control into map libraries that require
onAdd and onRemove methods, such as Leaflet or Mapbox.
An object with two methods:
onAdd: Adds the control to the map.onRemove: Removes the control from the map.Retrieves the current style of the control.
This method calls a private method _getStyleFromDiv to get the style from the control's div element.
It returns the style as a WxColorStyleWeak object, which represents the current styling properties.
The current style of the control as a WxColorStyleWeak object.
Generated using TypeDoc
A control for editing and managing style settings for WxColorStyle. This class provides an interface for manipulating various style properties, including colors, vectors, streamlines, and other visual aspects for a weather visualization.