@metoceanapi/wxtiles-common 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +1 -1
- package/controls/WxAPIControl/WxAPIControl-busy.ts +16 -0
- package/controls/WxAPIControl/WxAPIControl-datasets.ts +102 -0
- package/controls/WxAPIControl/WxAPIControl-filter.ts +66 -0
- package/controls/WxAPIControl/WxAPIControl-variables.ts +73 -0
- package/controls/WxAPIControl.ts +91 -120
- package/controls/WxInfoControl.ts +87 -2
- package/controls/WxLegendControl.ts +28 -2
- package/controls/WxStyleEditorControl.ts +123 -6
- package/controls/WxTimeControl.ts +132 -4
- package/docs/docs/.nojekyll +1 -0
- package/docs/docs/assets/highlight.css +92 -0
- package/docs/docs/assets/icons.svg +1 -0
- package/docs/docs/assets/style.css +1610 -0
- package/docs/docs/classes/controls_WxAPIControl.WxAPIControl.html +28 -0
- package/docs/docs/classes/controls_WxInfoControl.WxInfoControl.html +20 -0
- package/docs/docs/classes/controls_WxLegendControl.WxLegendControl.html +19 -0
- package/docs/docs/classes/controls_WxStyleEditorControl.WxStyleEditorControl.html +111 -0
- package/docs/docs/classes/controls_WxTimeControl.WxTimeControl.html +28 -0
- package/docs/docs/classes/managers_BaseDatasetManager.BaseDatasetManager.html +104 -0
- package/docs/docs/classes/managers_WxAllDatasetsManager.WxAllDatasetsManager.html +24 -0
- package/docs/docs/classes/types.WxRasterDataCache.html +27 -0
- package/docs/docs/classes/utils_RawCLUT.RawCLUT.html +18 -0
- package/docs/docs/classes/utils_qtree.QTree.html +22 -0
- package/docs/docs/classes/utils_wxtools.DataIntegral.html +10 -0
- package/docs/docs/classes/wxapi.WxAPI.html +45 -0
- package/docs/docs/classes/wxlayer_loader.Loader.html +31 -0
- package/docs/docs/classes/wxlayer_painter.Painter.html +20 -0
- package/docs/docs/classes/wxlayer_wxlayer.WxLayer.html +57 -0
- package/docs/docs/enums/utils_qtree.TileType.html +5 -0
- package/docs/docs/functions/utils_RawCLUT.WxCreateLegend.html +5 -0
- package/docs/docs/functions/utils_mercator.LatLonToPixels.html +6 -0
- package/docs/docs/functions/utils_mercator.PixelsToLatLon.html +6 -0
- package/docs/docs/functions/utils_mercator.PixelsToLonLat.html +6 -0
- package/docs/docs/functions/utils_mercator.coordToPixel.html +5 -0
- package/docs/docs/functions/utils_tests_wxtools.tests.html +1 -0
- package/docs/docs/functions/utils_wxtools.HEXtoRGBA.html +3 -0
- package/docs/docs/functions/utils_wxtools.HashXYZ.html +4 -0
- package/docs/docs/functions/utils_wxtools.RGBAtoHEX.html +3 -0
- package/docs/docs/functions/utils_wxtools.RGBtoHEX.html +3 -0
- package/docs/docs/functions/utils_wxtools.WXLOG.html +2 -0
- package/docs/docs/functions/utils_wxtools.WxGetColorSchemes.html +2 -0
- package/docs/docs/functions/utils_wxtools.WxGetColorStyles.html +2 -0
- package/docs/docs/functions/utils_wxtools.WxTilesLibSetup.html +3 -0
- package/docs/docs/functions/utils_wxtools.WxTilesLogging.html +5 -0
- package/docs/docs/functions/utils_wxtools.blurData.html +7 -0
- package/docs/docs/functions/utils_wxtools.buildIntegralPare.html +6 -0
- package/docs/docs/functions/utils_wxtools.cacheUriPromise.html +2 -0
- package/docs/docs/functions/utils_wxtools.create2DContext.html +6 -0
- package/docs/docs/functions/utils_wxtools.createEl.html +5 -0
- package/docs/docs/functions/utils_wxtools.createLevels.html +6 -0
- package/docs/docs/functions/utils_wxtools.fetchJson.html +6 -0
- package/docs/docs/functions/utils_wxtools.getClosestTimeString.html +5 -0
- package/docs/docs/functions/utils_wxtools.loadDataIntegral.html +5 -0
- package/docs/docs/functions/utils_wxtools.loadImage.html +4 -0
- package/docs/docs/functions/utils_wxtools.loadImageData.html +5 -0
- package/docs/docs/functions/utils_wxtools.makeConverter.html +9 -0
- package/docs/docs/functions/utils_wxtools.mixColor.html +3 -0
- package/docs/docs/functions/utils_wxtools.refineColor.html +3 -0
- package/docs/docs/functions/utils_wxtools.uriXYZ.html +5 -0
- package/docs/docs/functions/wxlayer_WxImplementation.WxLayerBaseImplementationMixin.html +4 -0
- package/docs/docs/functions/wxlayer_loadertools.applyMask.html +10 -0
- package/docs/docs/functions/wxlayer_loadertools.makeBox.html +4 -0
- package/docs/docs/functions/wxlayer_loadertools.splitCoords.html +6 -0
- package/docs/docs/functions/wxlayer_loadertools.subData.html +5 -0
- package/docs/docs/functions/wxlayer_loadertools.subDataDegree.html +5 -0
- package/docs/docs/functions/wxlayer_loadertools.subMask.html +5 -0
- package/docs/docs/hierarchy.html +1 -0
- package/docs/docs/index.html +7 -0
- package/docs/docs/interfaces/types.IsoInfo.html +8 -0
- package/docs/docs/interfaces/types.SLinePoint.html +4 -0
- package/docs/docs/interfaces/types.WxAPIOptions.html +37 -0
- package/docs/docs/interfaces/types.WxAllBoundariesMeta.html +8 -0
- package/docs/docs/interfaces/types.WxAllDatasetsShortMetas.html +4 -0
- package/docs/docs/interfaces/types.WxBoundaryMeta.html +10 -0
- package/docs/docs/interfaces/types.WxData.html +10 -0
- package/docs/docs/interfaces/types.WxDataSetManagerOptions.html +14 -0
- package/docs/docs/interfaces/types.WxDatasetMeta.html +20 -0
- package/docs/docs/interfaces/types.WxDatasetShortMeta.html +9 -0
- package/docs/docs/interfaces/types.WxLayerAPI.html +24 -0
- package/docs/docs/interfaces/types.WxLayerBaseAPI.html +16 -0
- package/docs/docs/interfaces/types.WxLayerOptions.html +12 -0
- package/docs/docs/interfaces/types.WxLngLat.html +6 -0
- package/docs/docs/interfaces/types.WxRasterData.html +13 -0
- package/docs/docs/interfaces/types.WxRequestInit.html +3 -0
- package/docs/docs/interfaces/types.WxTileInfo.html +18 -0
- package/docs/docs/interfaces/types.WxVariableMeta.html +13 -0
- package/docs/docs/interfaces/types.WxVariablesMetas.html +4 -0
- package/docs/docs/interfaces/utils_RawCLUT.WxLegend.html +14 -0
- package/docs/docs/interfaces/utils_RawCLUT.WxTick.html +10 -0
- package/docs/docs/interfaces/utils_qtree.Tree.html +7 -0
- package/docs/docs/interfaces/utils_wxtools.CachedUriLoaderPromiseFunc.html +2 -0
- package/docs/docs/interfaces/utils_wxtools.ColorStylesIncomplete.html +2 -0
- package/docs/docs/interfaces/utils_wxtools.Converter.html +5 -0
- package/docs/docs/interfaces/utils_wxtools.DataPicture.html +6 -0
- package/docs/docs/interfaces/utils_wxtools.IntegralPare.html +6 -0
- package/docs/docs/interfaces/utils_wxtools.WxColorSchemes.html +3 -0
- package/docs/docs/interfaces/utils_wxtools.WxColorStyleStrict.html +95 -0
- package/docs/docs/interfaces/utils_wxtools.WxColorStyleWeak.html +95 -0
- package/docs/docs/interfaces/utils_wxtools.WxColorStylesStrict.html +2 -0
- package/docs/docs/interfaces/utils_wxtools.WxColorStylesWeakMixed.html +2 -0
- package/docs/docs/interfaces/utils_wxtools.WxTilesLibOptions.html +8 -0
- package/docs/docs/interfaces/utils_wxtools.WxUnits.html +2 -0
- package/docs/docs/interfaces/utils_wxtools.XYZ.html +5 -0
- package/docs/docs/modules/controls_WxAPIControl.html +1 -0
- package/docs/docs/modules/controls_WxInfoControl.html +1 -0
- package/docs/docs/modules/controls_WxLegendControl.html +1 -0
- package/docs/docs/modules/controls_WxStyleEditorControl.html +1 -0
- package/docs/docs/modules/controls_WxTimeControl.html +1 -0
- package/docs/docs/modules/defaults_colorschemes.html +1 -0
- package/docs/docs/modules/defaults_styles.html +1 -0
- package/docs/docs/modules/defaults_uconv.html +1 -0
- package/docs/docs/modules/managers_BaseDatasetManager.html +1 -0
- package/docs/docs/modules/managers_WxAllDatasetsManager.html +1 -0
- package/docs/docs/modules/types.html +1 -0
- package/docs/docs/modules/utils_RawCLUT.html +1 -0
- package/docs/docs/modules/utils_mercator.html +1 -0
- package/docs/docs/modules/utils_qtree.html +1 -0
- package/docs/docs/modules/utils_tests_wxtools.html +1 -0
- package/docs/docs/modules/utils_wxtools.html +1 -0
- package/docs/docs/modules/wxapi.html +1 -0
- package/docs/docs/modules/wxlayer_WxImplementation.html +1 -0
- package/docs/docs/modules/wxlayer_loader.html +1 -0
- package/docs/docs/modules/wxlayer_loadertools.html +1 -0
- package/docs/docs/modules/wxlayer_painter.html +1 -0
- package/docs/docs/modules/wxlayer_wxlayer.html +1 -0
- package/docs/docs/modules.html +1 -0
- package/docs/docs/types/types.ListenerMethod.html +1 -0
- package/docs/docs/types/types.SLine.html +2 -0
- package/docs/docs/types/types.WxDate.html +9 -0
- package/docs/docs/types/types.WxEventType.html +1 -0
- package/docs/docs/types/types.WxInstances.html +2 -0
- package/docs/docs/types/types.WxLayerVarsNames.html +2 -0
- package/docs/docs/types/types.WxURIs.html +2 -0
- package/docs/docs/types/utils_qtree.SubTrees.html +2 -0
- package/docs/docs/types/utils_qtree.SubTreesN.html +2 -0
- package/docs/docs/types/utils_qtree.TreeN.html +2 -0
- package/docs/docs/types/utils_wxtools.DataIntegrals.html +2 -0
- package/docs/docs/types/utils_wxtools.DataPictures.html +2 -0
- package/docs/docs/types/utils_wxtools.WxUnitTuple.html +2 -0
- package/docs/docs/types/utils_wxtools.colorMapTuple.html +2 -0
- package/docs/docs/variables/defaults_colorschemes.__colorSchemes_default_preset.html +1 -0
- package/docs/docs/variables/defaults_styles.__colorStyles_default_preset.html +1 -0
- package/docs/docs/variables/defaults_uconv.__units_default_preset.html +1 -0
- package/managers/BaseDatasetManager.ts +1 -1
- package/package.json +5 -3
- package/tsconfig.json +19 -0
- package/typedoc.json +4 -0
- package/wxlayer/WxImplementation.ts +3 -3
- package/wxlayer/loadertools.ts +12 -8
- package/wxlayer/painter.ts +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WxCreateLegend } from '../utils/RawCLUT';
|
|
2
|
-
import {
|
|
2
|
+
import type { WxColorStyleStrict } from '../utils/wxtools';
|
|
3
3
|
|
|
4
4
|
// // Leaflet
|
|
5
5
|
// const legendControl = new WxLegendControl();
|
|
@@ -9,6 +9,11 @@ import { type WxColorStyleStrict } from '../utils/wxtools';
|
|
|
9
9
|
// const legendControl = new WxLegendControl();
|
|
10
10
|
// map.addControl(legendControl, 'top-right');
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Represents a control for displaying a weather legend on a map.
|
|
14
|
+
* The control shows a color gradient legend based on weather data values.
|
|
15
|
+
* It allows for drawing the legend with specific styles and clearing the canvas.
|
|
16
|
+
*/
|
|
12
17
|
export class WxLegendControl {
|
|
13
18
|
private readonly _div: HTMLDivElement;
|
|
14
19
|
private readonly _canvas: HTMLCanvasElement;
|
|
@@ -27,14 +32,28 @@ export class WxLegendControl {
|
|
|
27
32
|
div.appendChild(this._canvas);
|
|
28
33
|
}
|
|
29
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Adds the legend control to the map and returns the div element.
|
|
37
|
+
*
|
|
38
|
+
* @returns The div element representing the legend control.
|
|
39
|
+
*/
|
|
30
40
|
onAdd(/* map */) {
|
|
31
41
|
return this._div;
|
|
32
42
|
}
|
|
33
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Removes the legend control from the map.
|
|
46
|
+
*/
|
|
34
47
|
onRemove() {
|
|
35
48
|
this._div.parentNode?.removeChild(this._div);
|
|
36
49
|
}
|
|
37
50
|
|
|
51
|
+
/**
|
|
52
|
+
* Draws the legend on the canvas based on the provided color style.
|
|
53
|
+
* The legend includes a color gradient and ticks for data values.
|
|
54
|
+
*
|
|
55
|
+
* @param style - The WxColorStyleStrict object defining the color style for the legend.
|
|
56
|
+
*/
|
|
38
57
|
drawLegend(style: WxColorStyleStrict) {
|
|
39
58
|
const { _canvas } = this;
|
|
40
59
|
const { width, height } = _canvas;
|
|
@@ -115,6 +134,9 @@ export class WxLegendControl {
|
|
|
115
134
|
ctx.strokeRect(1, 1, width - 3, height - 2); //for white background
|
|
116
135
|
}
|
|
117
136
|
|
|
137
|
+
/**
|
|
138
|
+
* Clears the canvas, removing any existing legend or graphics.
|
|
139
|
+
*/
|
|
118
140
|
clear() {
|
|
119
141
|
const { _canvas } = this;
|
|
120
142
|
const { width, height } = _canvas;
|
|
@@ -125,7 +147,11 @@ export class WxLegendControl {
|
|
|
125
147
|
ctx.clearRect(0, 0, width, height);
|
|
126
148
|
}
|
|
127
149
|
|
|
128
|
-
|
|
150
|
+
/**
|
|
151
|
+
* Returns methods to integrate this legend control with a Leaflet map.
|
|
152
|
+
*
|
|
153
|
+
* @returns An object containing the `onAdd` and `onRemove` methods for Leaflet integration.
|
|
154
|
+
*/
|
|
129
155
|
extender() {
|
|
130
156
|
return { onAdd: () => this.onAdd(), onRemove: () => this.onRemove() };
|
|
131
157
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
type WxColorStyleStrict,
|
|
3
|
+
type WxColorStyleWeak,
|
|
4
|
+
WxGetColorSchemes,
|
|
5
|
+
WxGetColorStyles,
|
|
6
6
|
} from '../utils/wxtools';
|
|
7
7
|
|
|
8
8
|
// // Leaflet
|
|
@@ -13,69 +13,111 @@ import {
|
|
|
13
13
|
// const editor = new WxStyleEditorControl();
|
|
14
14
|
// map.addControl(editor, 'top-left');
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* A control for editing and managing style settings for WxColorStyle.
|
|
18
|
+
* This class provides an interface for manipulating various style properties,
|
|
19
|
+
* including colors, vectors, streamlines, and other visual aspects for a weather visualization.
|
|
20
|
+
*/
|
|
16
21
|
export class WxStyleEditorControl {
|
|
22
|
+
/**
|
|
23
|
+
* Event handler triggered when style changes.
|
|
24
|
+
* This handler is expected to return a promise for async operations.
|
|
25
|
+
* @param style The updated style to apply.
|
|
26
|
+
* @param nonnative Optional flag for non-native style handling.
|
|
27
|
+
*/
|
|
17
28
|
onchange?: (style: WxColorStyleWeak, nonnative?: boolean) => Promise<void>;
|
|
18
29
|
|
|
19
30
|
editorTextAreaEl: HTMLTextAreaElement;
|
|
20
31
|
editorDivEl: HTMLDivElement;
|
|
21
32
|
|
|
22
33
|
// inputs
|
|
34
|
+
/** Input for the parent of the style */
|
|
23
35
|
parentInput: HTMLInputElement; // string
|
|
24
36
|
|
|
37
|
+
/** Input for the name of the style */
|
|
25
38
|
nameInput: HTMLInputElement; // string
|
|
26
39
|
|
|
40
|
+
/** Dropdown select for fill style */
|
|
27
41
|
fillSelect: HTMLSelectElement; // string
|
|
28
42
|
|
|
43
|
+
/** Dropdown select for isoline color */
|
|
29
44
|
isolineColorSelect: HTMLSelectElement; // string
|
|
45
|
+
/** Input for isoline color */
|
|
30
46
|
isolineColorInput: HTMLInputElement;
|
|
31
47
|
|
|
48
|
+
/** Input for isoline text visibility */
|
|
32
49
|
isolineTextInput: HTMLInputElement; // boolean
|
|
33
50
|
|
|
51
|
+
/** Dropdown select for vector type */
|
|
34
52
|
vectorTypeSelect: HTMLSelectElement; // string
|
|
35
53
|
|
|
54
|
+
/** Dropdown select for vector color */
|
|
36
55
|
vectorColorSelect: HTMLSelectElement; // string
|
|
56
|
+
/** Input for vector color */
|
|
37
57
|
vectorColorInput: HTMLInputElement; // string
|
|
38
58
|
|
|
59
|
+
/** Input for vector factor (strength) */
|
|
39
60
|
vectorFactorInput: HTMLInputElement; // number
|
|
40
61
|
|
|
62
|
+
/** Dropdown select for stream line color */
|
|
41
63
|
streamLineColorSelect: HTMLSelectElement; // string
|
|
64
|
+
/** Input for stream line color */
|
|
42
65
|
streamLineColorInput: HTMLInputElement; // string
|
|
43
66
|
|
|
67
|
+
/** Input for stream line speed factor */
|
|
44
68
|
streamLineSpeedFactorInput: HTMLInputElement; // number
|
|
45
69
|
|
|
70
|
+
/** Input for stream line static */
|
|
46
71
|
streamLineStaticInput: HTMLInputElement; // boolean
|
|
47
72
|
|
|
73
|
+
/** Input for show below min */
|
|
48
74
|
showBelowMinInput: HTMLInputElement; // boolean
|
|
49
75
|
|
|
76
|
+
/** Input for show above max */
|
|
50
77
|
showAboveMaxInput: HTMLInputElement; // boolean
|
|
51
78
|
|
|
79
|
+
/** Dropdown select for color scheme */
|
|
52
80
|
colorSchemeSelect: HTMLSelectElement; // string
|
|
53
81
|
|
|
82
|
+
/** Input for colors */
|
|
54
83
|
colorsInput: HTMLInputElement; // string[];
|
|
55
84
|
|
|
85
|
+
/** Input for color map */
|
|
56
86
|
colorMapInput: HTMLInputElement; // [number, string][];
|
|
57
87
|
|
|
88
|
+
/** Input for levels */
|
|
58
89
|
levelsInput: HTMLInputElement; // number[];
|
|
59
90
|
|
|
91
|
+
/** Input for blur radius */
|
|
60
92
|
blurRadiusInput: HTMLInputElement; // number
|
|
61
93
|
|
|
94
|
+
/** Input for add degrees */
|
|
62
95
|
addDegreesInput: HTMLInputElement; // number
|
|
63
96
|
|
|
97
|
+
/** Input for units */
|
|
64
98
|
unitsInput: HTMLInputElement; // string
|
|
65
99
|
|
|
100
|
+
/** Input for extra units */
|
|
66
101
|
extraUnitsInput: HTMLInputElement; // WxUnits as { [name: string]: [string, number, ?number] };
|
|
67
102
|
|
|
103
|
+
/** Dropdown select for mask */
|
|
68
104
|
maskSelect: HTMLSelectElement; // string
|
|
69
105
|
|
|
106
|
+
/** Input for animation speed */
|
|
70
107
|
animationSpeed: HTMLInputElement; // number
|
|
108
|
+
/** Input for noise texture power */
|
|
71
109
|
noiseTexturePow: HTMLInputElement; // number
|
|
110
|
+
/** Input for vector field factor */
|
|
72
111
|
vectorFieldFactor: HTMLInputElement; // number
|
|
112
|
+
/** Input for animation intensity */
|
|
73
113
|
animationIntensity: HTMLInputElement; // number
|
|
114
|
+
/** Input for waves count */
|
|
74
115
|
wavesCount: HTMLInputElement; // number
|
|
75
116
|
|
|
117
|
+
/** Base style for WxColorStyle */
|
|
76
118
|
styleBase: WxColorStyleStrict;
|
|
77
119
|
|
|
78
|
-
|
|
120
|
+
/** Main container for the editor */
|
|
79
121
|
parent: HTMLDivElement;
|
|
80
122
|
|
|
81
123
|
constructor() {
|
|
@@ -350,19 +392,42 @@ export class WxStyleEditorControl {
|
|
|
350
392
|
});
|
|
351
393
|
}
|
|
352
394
|
|
|
353
|
-
|
|
395
|
+
/**
|
|
396
|
+
* Returns an object with methods to add and remove the control from a map.
|
|
397
|
+
*
|
|
398
|
+
* This method is used to integrate the control into map libraries that require
|
|
399
|
+
* `onAdd` and `onRemove` methods, such as Leaflet or Mapbox.
|
|
400
|
+
*
|
|
401
|
+
* @returns An object with two methods:
|
|
402
|
+
* - `onAdd`: Adds the control to the map.
|
|
403
|
+
* - `onRemove`: Removes the control from the map.
|
|
404
|
+
*/
|
|
354
405
|
extender() {
|
|
355
406
|
return { onAdd: () => this.onAdd(), onRemove: () => this.onRemove() };
|
|
356
407
|
}
|
|
357
408
|
|
|
409
|
+
/**
|
|
410
|
+
* Adds the control to the map by returning the parent container element.
|
|
411
|
+
*/
|
|
358
412
|
onAdd(/* map */) {
|
|
359
413
|
return this.parent;
|
|
360
414
|
}
|
|
361
415
|
|
|
416
|
+
/**
|
|
417
|
+
* Removes the control from the map by removing its parent node from the DOM.
|
|
418
|
+
*/
|
|
362
419
|
onRemove() {
|
|
363
420
|
this.parent.parentNode?.removeChild(this.parent);
|
|
364
421
|
}
|
|
365
422
|
|
|
423
|
+
/**
|
|
424
|
+
* Retrieves the current style of the control.
|
|
425
|
+
*
|
|
426
|
+
* This method calls a private method `_getStyleFromDiv` to get the style from the control's div element.
|
|
427
|
+
* It returns the style as a `WxColorStyleWeak` object, which represents the current styling properties.
|
|
428
|
+
*
|
|
429
|
+
* @returns The current style of the control as a `WxColorStyleWeak` object.
|
|
430
|
+
*/
|
|
366
431
|
getStyle(): WxColorStyleWeak {
|
|
367
432
|
return this._getStyleFromDiv();
|
|
368
433
|
}
|
|
@@ -377,6 +442,15 @@ export class WxStyleEditorControl {
|
|
|
377
442
|
this._setStyleToTextArea(this._getStyleFromDiv());
|
|
378
443
|
}
|
|
379
444
|
|
|
445
|
+
/**
|
|
446
|
+
* Sets the style of the control.
|
|
447
|
+
*
|
|
448
|
+
* This method applies a given `WxColorStyleWeak` style to the control. If the style includes a `colorMap`,
|
|
449
|
+
* it filters out `colors` and `levels` before applying the style to the control. The style is then set to
|
|
450
|
+
* the control's div and reflected in the text area using the `_setStyleToTextArea` method.
|
|
451
|
+
*
|
|
452
|
+
* @param style The `WxColorStyleWeak` object representing the new style to be applied.
|
|
453
|
+
*/
|
|
380
454
|
protected _getStyleFromDiv(): WxColorStyleWeak {
|
|
381
455
|
const objFromValue = (field: string) => {
|
|
382
456
|
try {
|
|
@@ -448,6 +522,14 @@ export class WxStyleEditorControl {
|
|
|
448
522
|
return style;
|
|
449
523
|
}
|
|
450
524
|
|
|
525
|
+
/**
|
|
526
|
+
* Sets the style to the editor's text area.
|
|
527
|
+
*
|
|
528
|
+
* This method serializes the given `WxColorStyleWeak` style into a sorted JSON string and sets it as the value
|
|
529
|
+
* of the editor's text area. The style is sorted using the `JSONsort` function before being applied.
|
|
530
|
+
*
|
|
531
|
+
* @param style The `WxColorStyleWeak` object representing the style to be set in the text area.
|
|
532
|
+
*/
|
|
451
533
|
protected _setStyleToTextArea(style: WxColorStyleWeak): void {
|
|
452
534
|
this.editorTextAreaEl.value = JSON.stringify(JSONsort(style), null, 2);
|
|
453
535
|
}
|
|
@@ -512,6 +594,13 @@ export class WxStyleEditorControl {
|
|
|
512
594
|
}
|
|
513
595
|
}
|
|
514
596
|
|
|
597
|
+
/**
|
|
598
|
+
* Handles changes made to the control's div and updates the style.
|
|
599
|
+
*
|
|
600
|
+
* This method retrieves the current style from the div, removes any properties that are undefined,
|
|
601
|
+
* empty, or have a length of zero, and updates the text area with the modified style.
|
|
602
|
+
* Afterward, it calls the `onchange` callback (if defined) with the updated style.
|
|
603
|
+
*/
|
|
515
604
|
protected _onDivChange(): void {
|
|
516
605
|
const style = this._getStyleFromDiv();
|
|
517
606
|
for (const key of Object.keys(style)) {
|
|
@@ -526,6 +615,19 @@ export class WxStyleEditorControl {
|
|
|
526
615
|
}
|
|
527
616
|
}
|
|
528
617
|
|
|
618
|
+
/**
|
|
619
|
+
* Creates a new HTML element of the specified type, appends it to the given container,
|
|
620
|
+
* and returns the element.
|
|
621
|
+
*
|
|
622
|
+
* @param container - The parent HTML element to which the new element will be appended.
|
|
623
|
+
* @param tag - The type of HTML element to create (e.g., 'div', 'span', 'button').
|
|
624
|
+
* @param params - An optional object containing properties to assign to the created element.
|
|
625
|
+
* These properties are assigned directly to the element.
|
|
626
|
+
*
|
|
627
|
+
* @returns The newly created HTML element of the specified type.
|
|
628
|
+
*
|
|
629
|
+
* @template K - The type of HTML element to create, derived from HTMLElementTagNameMap.
|
|
630
|
+
*/
|
|
529
631
|
function createEl<K extends keyof HTMLElementTagNameMap>(
|
|
530
632
|
container: HTMLElement,
|
|
531
633
|
tag: K,
|
|
@@ -538,6 +640,21 @@ function createEl<K extends keyof HTMLElementTagNameMap>(
|
|
|
538
640
|
return el;
|
|
539
641
|
}
|
|
540
642
|
|
|
643
|
+
/**
|
|
644
|
+
* Recursively sorts the keys of an object or elements of an array in a case-insensitive manner.
|
|
645
|
+
* If the input is an object, it sorts the keys alphabetically (case-insensitive) and applies
|
|
646
|
+
* the sorting recursively to its values. If the input is an array, it recursively sorts each element.
|
|
647
|
+
*
|
|
648
|
+
* @param o - The object or array to be sorted. If it's an object, the function will sort its keys.
|
|
649
|
+
* If it's an array, it will recursively sort its elements.
|
|
650
|
+
*
|
|
651
|
+
* @returns A new object or array with its keys or elements sorted.
|
|
652
|
+
*
|
|
653
|
+
* @remarks
|
|
654
|
+
* - The function handles both arrays and objects and will recursively sort their nested structures.
|
|
655
|
+
* - If an object contains keys that differ only by case (e.g., 'name' and 'Name'), they will be
|
|
656
|
+
* treated as distinct and sorted alphabetically in a case-insensitive manner.
|
|
657
|
+
*/
|
|
541
658
|
// biome-ignore lint/suspicious/noExplicitAny: Suppressing for specific use case
|
|
542
659
|
function JSONsort(o: any) {
|
|
543
660
|
if (Array.isArray(o)) {
|
|
@@ -1,24 +1,110 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Represents a date in various formats.
|
|
3
|
+
*
|
|
4
|
+
* The `WxDate` type can be:
|
|
5
|
+
* - A string, typically in a date string format (e.g., `"2025-01-29"`),
|
|
6
|
+
* - A number, usually representing a timestamp (e.g., `1640995200000`),
|
|
7
|
+
* - A `Date` object, representing a specific point in time.
|
|
8
|
+
*
|
|
9
|
+
* This type is used to allow flexible handling of dates in different representations.
|
|
10
|
+
*/
|
|
3
11
|
declare type WxDate = string | number | Date;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Configuration options for making a request.
|
|
15
|
+
*
|
|
16
|
+
* This interface is used to define the options available when making a request.
|
|
17
|
+
* It may include properties such as HTTP method, headers, body, and other request-specific configurations.
|
|
18
|
+
*
|
|
19
|
+
* The interface is left empty, indicating that it can be extended with additional properties as needed.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
// biome-ignore lint/suspicious/noEmptyInterface:
|
|
4
23
|
declare interface WxRequestInit {};
|
|
5
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Defines the types of events and their associated data.
|
|
27
|
+
*
|
|
28
|
+
* This interface represents a set of events and their respective data types.
|
|
29
|
+
* The `changed` event can carry any type of data, as indicated by the `any` type.
|
|
30
|
+
*/
|
|
6
31
|
declare interface WxEventType {
|
|
32
|
+
// biome-ignore lint/suspicious/noExplicitAny:
|
|
7
33
|
changed: any;
|
|
8
34
|
};
|
|
9
35
|
|
|
36
|
+
/**
|
|
37
|
+
* A generic listener method type that handles specific events.
|
|
38
|
+
*
|
|
39
|
+
* This type defines a method signature for listeners that respond to events
|
|
40
|
+
* defined in the `WxEventType` interface. The method accepts an optional
|
|
41
|
+
* argument that corresponds to a specific event type from `WxEventType`.
|
|
42
|
+
* The event type is determined by the key provided to `T`, which must be one of
|
|
43
|
+
* the keys in `WxEventType`.
|
|
44
|
+
*/
|
|
10
45
|
declare type ListenerMethod = <T extends keyof WxEventType>(arg?: WxEventType[T],) => void;
|
|
11
46
|
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Represents a tile source that provides methods for managing time, coarse levels,
|
|
50
|
+
* and event handling for tile-related operations.
|
|
51
|
+
*
|
|
52
|
+
* This interface defines the structure for interacting with a tile source, including
|
|
53
|
+
* methods to get and set the time, retrieve available times, set and unset coarse levels,
|
|
54
|
+
* and listen for events.
|
|
55
|
+
*/
|
|
12
56
|
declare interface WxTileSource {
|
|
57
|
+
/**
|
|
58
|
+
* Retrieves the current time associated with the tile source.
|
|
59
|
+
*
|
|
60
|
+
* @returns {string} The current time as a string.
|
|
61
|
+
*/
|
|
13
62
|
getTime(): string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Sets the time for the tile source. If no time is provided, the current time will be used.
|
|
66
|
+
* Optionally, a request initialization object and a redraw flag can be passed.
|
|
67
|
+
*
|
|
68
|
+
* @param {WxDate} [time] - The time to set (string, number, or Date).
|
|
69
|
+
* @param {WxRequestInit} [requestInit] - Optional initialization parameters for the request.
|
|
70
|
+
* @param {boolean} [redraw=true] - Whether to trigger a redraw after setting the time.
|
|
71
|
+
*
|
|
72
|
+
* @returns {Promise<string>} A promise that resolves to the updated time as a string.
|
|
73
|
+
*/
|
|
14
74
|
setTime(time?: WxDate, requestInit?: WxRequestInit, redraw?: boolean, ): Promise<string>;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Retrieves all available times for the tile source.
|
|
78
|
+
*
|
|
79
|
+
* @returns {string[]} An array of all available times as strings.
|
|
80
|
+
*/
|
|
15
81
|
getAllTimes(): string[];
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Unsets the coarse level of the tile source, returning the system to a finer level of detail.
|
|
85
|
+
*
|
|
86
|
+
* @returns {Promise<void>} A promise that resolves when the coarse level is unset.
|
|
87
|
+
*/
|
|
16
88
|
unsetCoarseLevel(): Promise<void>;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Sets the coarse level for the tile source, reducing the level of detail.
|
|
92
|
+
*
|
|
93
|
+
* @param {number} level - The level to set for the coarse level.
|
|
94
|
+
*
|
|
95
|
+
* @returns {Promise<void>} A promise that resolves when the coarse level is set.
|
|
96
|
+
*/
|
|
17
97
|
setCoarseLevel(number): Promise<void>;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Registers a listener for a specific event type on the tile source.
|
|
101
|
+
*
|
|
102
|
+
* @param {T} type - The event type to listen for, as defined in `WxEventType`.
|
|
103
|
+
* @param {ListenerMethod} listener - The callback function to invoke when the event occurs.
|
|
104
|
+
*/
|
|
18
105
|
on<T extends keyof WxEventType>(type: T, listener: ListenerMethod): void;
|
|
19
106
|
}
|
|
20
107
|
|
|
21
|
-
|
|
22
108
|
// // Leaflet
|
|
23
109
|
// const timeControl = new WxTimeControl();
|
|
24
110
|
// map.addControl(new (L.Control.extend(timeControl.extender()))({ position: 'topright' }));
|
|
@@ -27,11 +113,31 @@ declare interface WxTileSource {
|
|
|
27
113
|
// const timeControl = new WxTimeControl();
|
|
28
114
|
// map.addControl(timeControl, 'top-right');
|
|
29
115
|
|
|
116
|
+
/**
|
|
117
|
+
* Controls the time animation for a given `WxTileSource` instance.
|
|
118
|
+
*
|
|
119
|
+
* The `WxTimeControl` class is responsible for displaying and controlling the time-based
|
|
120
|
+
* interactions with the tile source, allowing users to start/stop animations, select times,
|
|
121
|
+
* and manage time settings.
|
|
122
|
+
*/
|
|
30
123
|
export class WxTimeControl {
|
|
31
124
|
private readonly _div: HTMLDivElement;
|
|
32
125
|
private readonly buttonPlayStop: HTMLButtonElement;
|
|
33
126
|
private readonly timesEl: HTMLSelectElement;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Callback function triggered when the time changes.
|
|
130
|
+
*
|
|
131
|
+
* @param {string} time - The selected time as a string.
|
|
132
|
+
*/
|
|
34
133
|
onchange: (time: string) => void = () => {};
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Creates a new instance of the `WxTimeControl` class.
|
|
137
|
+
*
|
|
138
|
+
* @param {number} delay - The delay in milliseconds between time steps.
|
|
139
|
+
* @param {WxTileSource} [wxsource] - The optional `WxTileSource` to interact with. If not provided, no interaction will occur.
|
|
140
|
+
*/
|
|
35
141
|
constructor(
|
|
36
142
|
public readonly delay: number,
|
|
37
143
|
private wxsource?: WxTileSource,
|
|
@@ -95,6 +201,11 @@ export class WxTimeControl {
|
|
|
95
201
|
};
|
|
96
202
|
}
|
|
97
203
|
|
|
204
|
+
/**
|
|
205
|
+
* Sets the available times for the control's time selector (`<select>` element).
|
|
206
|
+
*
|
|
207
|
+
* @param {string[]} times - An array of time strings to populate the time selector.
|
|
208
|
+
*/
|
|
98
209
|
setTimes(times: string[]) {
|
|
99
210
|
this.timesEl.options.length = 0;
|
|
100
211
|
// fill this.timesEl with values from times
|
|
@@ -108,6 +219,11 @@ export class WxTimeControl {
|
|
|
108
219
|
this.onchange(this.timesEl.value);
|
|
109
220
|
}
|
|
110
221
|
|
|
222
|
+
/**
|
|
223
|
+
* Updates the time control to use a new `WxTileSource` and reloads the available times.
|
|
224
|
+
*
|
|
225
|
+
* @param {WxTileSource} [wxsource] - The new `WxTileSource` instance to use.
|
|
226
|
+
*/
|
|
111
227
|
updateSource(wxsource?: WxTileSource) {
|
|
112
228
|
this.buttonPlayStop.innerHTML = "Start"; // stop time animation
|
|
113
229
|
this.wxsource = wxsource;
|
|
@@ -118,15 +234,27 @@ export class WxTimeControl {
|
|
|
118
234
|
wxsource?.on("changed", () => this.updateSource(wxsource));
|
|
119
235
|
}
|
|
120
236
|
|
|
237
|
+
/**
|
|
238
|
+
* Adds the control's DOM element to the map.
|
|
239
|
+
*
|
|
240
|
+
* @returns {HTMLDivElement} The DOM element to be added to the map.
|
|
241
|
+
*/
|
|
121
242
|
onAdd(/* map */) {
|
|
122
243
|
return this._div;
|
|
123
244
|
}
|
|
124
245
|
|
|
246
|
+
/**
|
|
247
|
+
* Removes the control's DOM element from the map.
|
|
248
|
+
*/
|
|
125
249
|
onRemove() {
|
|
126
250
|
this._div.parentNode?.removeChild(this._div);
|
|
127
251
|
}
|
|
128
252
|
|
|
129
|
-
|
|
253
|
+
/**
|
|
254
|
+
* Returns an object to extend map controls in leaflet.
|
|
255
|
+
*
|
|
256
|
+
* @returns {object} The object containing `onAdd` and `onRemove` methods.
|
|
257
|
+
*/
|
|
130
258
|
extender() {
|
|
131
259
|
return { onAdd: () => this.onAdd(), onRemove: () => this.onRemove() };
|
|
132
260
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--light-hl-0: #795E26;
|
|
3
|
+
--dark-hl-0: #DCDCAA;
|
|
4
|
+
--light-hl-1: #000000;
|
|
5
|
+
--dark-hl-1: #D4D4D4;
|
|
6
|
+
--light-hl-2: #A31515;
|
|
7
|
+
--dark-hl-2: #CE9178;
|
|
8
|
+
--light-hl-3: #0000FF;
|
|
9
|
+
--dark-hl-3: #569CD6;
|
|
10
|
+
--light-hl-4: #0070C1;
|
|
11
|
+
--dark-hl-4: #4FC1FF;
|
|
12
|
+
--light-hl-5: #001080;
|
|
13
|
+
--dark-hl-5: #9CDCFE;
|
|
14
|
+
--light-hl-6: #AF00DB;
|
|
15
|
+
--dark-hl-6: #C586C0;
|
|
16
|
+
--light-hl-7: #008000;
|
|
17
|
+
--dark-hl-7: #6A9955;
|
|
18
|
+
--light-hl-8: #267F99;
|
|
19
|
+
--dark-hl-8: #4EC9B0;
|
|
20
|
+
--light-hl-9: #098658;
|
|
21
|
+
--dark-hl-9: #B5CEA8;
|
|
22
|
+
--light-code-background: #FFFFFF;
|
|
23
|
+
--dark-code-background: #1E1E1E;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media (prefers-color-scheme: light) { :root {
|
|
27
|
+
--hl-0: var(--light-hl-0);
|
|
28
|
+
--hl-1: var(--light-hl-1);
|
|
29
|
+
--hl-2: var(--light-hl-2);
|
|
30
|
+
--hl-3: var(--light-hl-3);
|
|
31
|
+
--hl-4: var(--light-hl-4);
|
|
32
|
+
--hl-5: var(--light-hl-5);
|
|
33
|
+
--hl-6: var(--light-hl-6);
|
|
34
|
+
--hl-7: var(--light-hl-7);
|
|
35
|
+
--hl-8: var(--light-hl-8);
|
|
36
|
+
--hl-9: var(--light-hl-9);
|
|
37
|
+
--code-background: var(--light-code-background);
|
|
38
|
+
} }
|
|
39
|
+
|
|
40
|
+
@media (prefers-color-scheme: dark) { :root {
|
|
41
|
+
--hl-0: var(--dark-hl-0);
|
|
42
|
+
--hl-1: var(--dark-hl-1);
|
|
43
|
+
--hl-2: var(--dark-hl-2);
|
|
44
|
+
--hl-3: var(--dark-hl-3);
|
|
45
|
+
--hl-4: var(--dark-hl-4);
|
|
46
|
+
--hl-5: var(--dark-hl-5);
|
|
47
|
+
--hl-6: var(--dark-hl-6);
|
|
48
|
+
--hl-7: var(--dark-hl-7);
|
|
49
|
+
--hl-8: var(--dark-hl-8);
|
|
50
|
+
--hl-9: var(--dark-hl-9);
|
|
51
|
+
--code-background: var(--dark-code-background);
|
|
52
|
+
} }
|
|
53
|
+
|
|
54
|
+
:root[data-theme='light'] {
|
|
55
|
+
--hl-0: var(--light-hl-0);
|
|
56
|
+
--hl-1: var(--light-hl-1);
|
|
57
|
+
--hl-2: var(--light-hl-2);
|
|
58
|
+
--hl-3: var(--light-hl-3);
|
|
59
|
+
--hl-4: var(--light-hl-4);
|
|
60
|
+
--hl-5: var(--light-hl-5);
|
|
61
|
+
--hl-6: var(--light-hl-6);
|
|
62
|
+
--hl-7: var(--light-hl-7);
|
|
63
|
+
--hl-8: var(--light-hl-8);
|
|
64
|
+
--hl-9: var(--light-hl-9);
|
|
65
|
+
--code-background: var(--light-code-background);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:root[data-theme='dark'] {
|
|
69
|
+
--hl-0: var(--dark-hl-0);
|
|
70
|
+
--hl-1: var(--dark-hl-1);
|
|
71
|
+
--hl-2: var(--dark-hl-2);
|
|
72
|
+
--hl-3: var(--dark-hl-3);
|
|
73
|
+
--hl-4: var(--dark-hl-4);
|
|
74
|
+
--hl-5: var(--dark-hl-5);
|
|
75
|
+
--hl-6: var(--dark-hl-6);
|
|
76
|
+
--hl-7: var(--dark-hl-7);
|
|
77
|
+
--hl-8: var(--dark-hl-8);
|
|
78
|
+
--hl-9: var(--dark-hl-9);
|
|
79
|
+
--code-background: var(--dark-code-background);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.hl-0 { color: var(--hl-0); }
|
|
83
|
+
.hl-1 { color: var(--hl-1); }
|
|
84
|
+
.hl-2 { color: var(--hl-2); }
|
|
85
|
+
.hl-3 { color: var(--hl-3); }
|
|
86
|
+
.hl-4 { color: var(--hl-4); }
|
|
87
|
+
.hl-5 { color: var(--hl-5); }
|
|
88
|
+
.hl-6 { color: var(--hl-6); }
|
|
89
|
+
.hl-7 { color: var(--hl-7); }
|
|
90
|
+
.hl-8 { color: var(--hl-8); }
|
|
91
|
+
.hl-9 { color: var(--hl-9); }
|
|
92
|
+
pre, code { background: var(--code-background); }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg"><g id="icon-1" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-2" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">N</text></g><g id="icon-8" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">E</text></g><g id="icon-16" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-32" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">V</text></g><g id="icon-64" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-128" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-256" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">I</text></g><g id="icon-512" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-1024" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-2048" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4096" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-8192" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-16384" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-32768" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-65536" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-131072" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-262144" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-524288" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-1048576" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-2097152" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-4194304" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">R</text></g><g id="icon-8388608" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></g><g id="icon-folder" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></g><g id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></g><g id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></g><g id="icon-checkbox" class="tsd-no-select"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></g><g id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></g><g id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g><g id="icon-alertNote" class="tsd-no-select"><path fill="var(--color-alert-note)" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g><g id="icon-alertTip" class="tsd-no-select"><path fill="var(--color-alert-tip)" d="M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"></path></g><g id="icon-alertImportant" class="tsd-no-select"><path fill="var(--color-alert-important)" d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertWarning" class="tsd-no-select"><path fill="var(--color-alert-warning)" d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertCaution" class="tsd-no-select"><path fill="var(--color-alert-caution)" d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g></svg>
|