@metoceanapi/wxtiles-leaflet 2.1.3 → 2.3.0-0

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.
Files changed (107) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/GPLv3.txt +674 -0
  3. package/LICENSE.txt +12 -9
  4. package/README.md +10 -32
  5. package/dist/es/controls/WxAPIControl.d.ts +4 -2
  6. package/dist/es/controls/WxTimeControl .d.ts +1 -1
  7. package/dist/es/index.d.ts +13 -17
  8. package/dist/es/index.js +2 -2
  9. package/dist/es/utils/RawCLUT.d.ts +9 -8
  10. package/dist/es/utils/qtree.d.ts +6 -4
  11. package/dist/es/utils/wxtools.d.ts +16 -5
  12. package/dist/es/wxAPI/WxAPI.d.ts +63 -0
  13. package/dist/es/wxAPI/WxAPItypes.d.ts +152 -0
  14. package/dist/es/wxAPI/WxDataSetManager.d.ts +69 -92
  15. package/dist/es/wxlayer/WxImplementation.d.ts +36 -11
  16. package/dist/es/wxlayer/loader.d.ts +3 -3
  17. package/dist/es/wxlayer/loadertools.d.ts +1 -1
  18. package/dist/es/wxlayer/painter.d.ts +1 -1
  19. package/dist/es/wxlayer/wxlayer.d.ts +48 -26
  20. package/dist/es/wxsource/wxsource.d.ts +3 -1
  21. package/dist/es/wxsource/wxsourcetypes.d.ts +2 -1
  22. package/dist/web/index.js +2 -2
  23. package/docs/docs/assets/highlight.css +4 -4
  24. package/docs/docs/assets/search.js +1 -1
  25. package/docs/docs/classes/CustomWxTilesLayer.html +1 -1
  26. package/docs/docs/classes/DataIntegral.html +13 -13
  27. package/docs/docs/classes/Loader.html +17 -17
  28. package/docs/docs/classes/Painter.html +11 -11
  29. package/docs/docs/classes/QTree.html +63 -34
  30. package/docs/docs/classes/RawCLUT.html +8 -8
  31. package/docs/docs/classes/TilesCache.html +108 -0
  32. package/docs/docs/classes/WxAPI.html +31 -104
  33. package/docs/docs/classes/WxDataSetManager.html +118 -184
  34. package/docs/docs/classes/WxLayer.html +78 -60
  35. package/docs/docs/classes/WxLayerBaseImplementation.html +52 -43
  36. package/docs/docs/classes/WxTileSource.html +63 -47
  37. package/docs/docs/enums/TileType.html +4 -4
  38. package/docs/docs/functions/WXLOG.html +9 -7
  39. package/docs/docs/functions/WxCreateLegend.html +11 -9
  40. package/docs/docs/functions/WxGetColorSchemes.html +9 -7
  41. package/docs/docs/functions/WxGetColorStyles.html +9 -7
  42. package/docs/docs/functions/WxTilesLogging.html +9 -7
  43. package/docs/docs/index.html +21 -20
  44. package/docs/docs/interfaces/CachedUriLoaderPromiseFunc.html +106 -0
  45. package/docs/docs/interfaces/ColorStylesIncomplete.html +9 -7
  46. package/docs/docs/interfaces/Converter.html +5 -3
  47. package/docs/docs/interfaces/DataPicture.html +5 -5
  48. package/docs/docs/interfaces/FrameworkOptions.html +5 -4
  49. package/docs/docs/interfaces/IntegralPare.html +3 -3
  50. package/docs/docs/interfaces/SLinePoint.html +3 -3
  51. package/docs/docs/interfaces/Tree.html +2 -2
  52. package/docs/docs/interfaces/WxAPIOptions.html +17 -17
  53. package/docs/docs/interfaces/WxAllBoundariesMeta.html +4 -4
  54. package/docs/docs/interfaces/WxAllDatasetsShortMetas.html +120 -0
  55. package/docs/docs/interfaces/WxBoundaryMeta.html +5 -5
  56. package/docs/docs/interfaces/WxColorSchemes.html +9 -7
  57. package/docs/docs/interfaces/WxColorStyleStrict.html +45 -27
  58. package/docs/docs/interfaces/WxColorStyleWeak.html +47 -27
  59. package/docs/docs/interfaces/WxColorStylesStrict.html +2 -2
  60. package/docs/docs/interfaces/WxColorStylesWeakMixed.html +9 -7
  61. package/docs/docs/interfaces/WxData.html +3 -3
  62. package/docs/docs/interfaces/WxDataSetManagerOptions.html +12 -12
  63. package/docs/docs/interfaces/WxDatasetMeta.html +18 -9
  64. package/docs/docs/interfaces/WxDatasetShortMeta.html +5 -5
  65. package/docs/docs/interfaces/WxLayerAPI.html +92 -26
  66. package/docs/docs/interfaces/WxLayerBaseAPI.html +21 -21
  67. package/docs/docs/interfaces/WxLayerOptions.html +9 -10
  68. package/docs/docs/interfaces/WxLegend.html +7 -7
  69. package/docs/docs/interfaces/WxLngLat.html +3 -3
  70. package/docs/docs/interfaces/WxRasterData.html +6 -6
  71. package/docs/docs/interfaces/WxRequestInit.html +2 -2
  72. package/docs/docs/interfaces/WxSourceLayerOptions.html +8 -5
  73. package/docs/docs/interfaces/WxTick.html +5 -5
  74. package/docs/docs/interfaces/WxTileInfo.html +9 -9
  75. package/docs/docs/interfaces/WxUnits.html +9 -7
  76. package/docs/docs/interfaces/WxVariableMeta.html +6 -6
  77. package/docs/docs/interfaces/WxVariablesMetas.html +9 -7
  78. package/docs/docs/interfaces/XYZ.html +4 -4
  79. package/docs/docs/modules.html +17 -13
  80. package/docs/docs/types/DataIntegrals.html +9 -7
  81. package/docs/docs/types/DataPictures.html +9 -7
  82. package/docs/docs/types/{UriLoaderPromiseFunc.html → ListenerMethod.html} +21 -23
  83. package/docs/docs/types/SLine.html +9 -7
  84. package/docs/docs/types/SubTrees.html +9 -7
  85. package/docs/docs/types/SubTreesN.html +9 -7
  86. package/docs/docs/types/TreeN.html +9 -7
  87. package/docs/docs/types/WxDate.html +17 -8
  88. package/docs/docs/types/WxEventType.html +116 -0
  89. package/docs/docs/types/{WxVars.html → WxInstances.html} +13 -13
  90. package/docs/docs/types/WxLayerVarsNames.html +113 -0
  91. package/docs/docs/types/WxURIs.html +9 -7
  92. package/docs/docs/types/WxUnitTuple.html +9 -7
  93. package/docs/examples/interactive.html +84 -0
  94. package/docs/examples/seaMaskAndAnimatedBlur.html +31 -23
  95. package/docs/examples/simpleDemo.html +33 -22
  96. package/docs/script/script.css +1 -1
  97. package/docs/script/script.js +13 -9
  98. package/docs/server.py +11 -0
  99. package/package.json +1 -1
  100. package/src_example/frwrkdeps.ts +6 -3
  101. package/src_example/index.ts +31 -54
  102. package/src_example/start.ts +39 -21
  103. package/watch-public.mjs +1 -7
  104. package/dist/es/wxAPI/wxAPI.d.ts +0 -192
  105. package/docs/docs/classes/FrameworkParentClass.html +0 -98
  106. package/docs/docs/interfaces/WxDataSetsMetasJSON.html +0 -75
  107. package/docs/docs/interfaces/WxTilesLibOptions.html +0 -92
package/docs/server.py ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env python3
2
+ from http.server import HTTPServer, SimpleHTTPRequestHandler, test
3
+ import sys
4
+
5
+ class CORSRequestHandler (SimpleHTTPRequestHandler):
6
+ def end_headers (self):
7
+ self.send_header('Access-Control-Allow-Origin', '*')
8
+ SimpleHTTPRequestHandler.end_headers(self)
9
+
10
+ if __name__ == '__main__':
11
+ test(CORSRequestHandler, HTTPServer, port=int(sys.argv[1]) if len(sys.argv) > 1 else 8000)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metoceanapi/wxtiles-leaflet",
3
- "version": "2.1.3",
3
+ "version": "2.3.0-0",
4
4
  "description": "WxTile JS lib to render wxtiles datalayers",
5
5
  "main": "dist/es/index.js",
6
6
  "types": "dist/es/index.d.ts",
@@ -8,7 +8,10 @@ export function flyTo(map: L.Map, zoom: number, lng: number, lat: number, bearin
8
8
  export function setURL(map: L.Map, time: string, datasetName: string, variable: string, style: any) {
9
9
  const base = WxGetColorStyles()['base'];
10
10
  for (const i in style) style[i] === base[i] && delete style[i]; // remove default values
11
-
11
+ if (style.gl) {
12
+ for (const i in style.gl) style.gl[i] === base.gl?.[i] && delete style.gl[i]; // remove default values from gl
13
+ Object.keys(style.gl).length === 0 && delete style.gl; // remove gl if empty
14
+ }
12
15
  const center = map.getCenter().wrap();
13
16
  const href =
14
17
  `##${datasetName}/${variable}/${time}/${map.getZoom().toFixed(2)}/${center.lng.toFixed(2)}/${center.lat.toFixed(2)}/0/0` +
@@ -62,7 +65,7 @@ export async function addLayer(map: L.Map, idL: string, layer: L.Layer) {
62
65
  await new Promise((done) => layer.once('load', done)); // highly recommended to await for the first load
63
66
  }
64
67
 
65
- export function addRaster(map: L.Map, idS: string, idL: string, URL: string, maxZoom: number) {
66
- const layer = L.tileLayer(URL, { id: idS, maxNativeZoom: maxZoom, zIndex: idL === 'baseL' ? 100 : 0 });
68
+ export function addRaster(map: L.Map, idS: string, idL: string, URL: string, maxZoom: number, bounds?: any) {
69
+ const layer = L.tileLayer(URL, { id: idS, maxNativeZoom: maxZoom, zIndex: idL === 'baseL' ? 1 : 0 });
67
70
  map.addLayer(layer);
68
71
  }
@@ -6,73 +6,50 @@ start();
6
6
  /*
7
7
  import L from 'leaflet'; // goes first always!
8
8
  import { WxTileSource, WxAPI, WxTilesLogging, FrameworkOptions } from '../src/index';
9
- // simpleDemo();
10
- // twoLayersDemo();
11
9
 
12
- async function simpleDemo() {
10
+ start1();
11
+ async function start1() {
12
+ //// Leaflet initialization START
13
13
  const map = L.map('map', { center: [0, 0], zoom: 2, zoomControl: true });
14
+ // add navigation controls
15
+ L.control.zoom({ position: 'bottomright' }).addTo(map);
16
+ //// Leaflet initialization END
14
17
 
15
- const dataServerURL = 'https://tiles.metoceanapi.com/data/';
16
- // const headers = new Headers();
17
- // headers.append('x-api-key', '--proper-key-value--'); // If needed in the future
18
- const requestInit: RequestInit = {
19
- // headers //
20
- }; // add more options if needed such as headers, mode, credentials, etc
21
-
22
- // Get the API ready - should be ONE per application
23
- WxTilesLogging(true); // If needed
24
- const wxapi = new WxAPI({ dataServerURL, maskURL: 'none', qtreeURL: 'none', requestInit });
25
-
26
- const datasetName = 'gfs.global';
27
- const variable = 'air.temperature.at-2m'; // Scalar example
28
- // const variable = 'wind.speed.eastward.at-10m'; // Vector example
18
+ //// Helper
19
+ const addWxLayer = async (wxsource) => {
20
+ map.addLayer(wxsource);
21
+ await new Promise((done) => wxsource.once('load', done)); // highly recommended to await for the first load
22
+ };
29
23
 
30
- // Create a dataset manager (may be used for many layers from this dataset)
31
- const wxdatasetManager = await wxapi.createDatasetManager(datasetName);
24
+ const getCoords = (e) => e.latlng.wrap();
25
+ //// Helpers END
32
26
 
33
- // Usefull to automatically get the vector component variables from the dataset manager if given variable is northward or eastward
34
- // if not a vector component, then just return the variable itself
35
- const variables = wxdatasetManager.checkCombineVariableIfVector(variable);
27
+ //// WXTILES START
28
+ // grab the WxTiles API
29
+ // const { WxTilesLogging, WxAPI } = window.wxtilesleaflet;
36
30
 
37
- // create a layer
38
- const leafletOptions: FrameworkOptions = { id: 'wxsource', opacity: 1, attribution: 'WxTiles' };
39
- const wxsource = new WxTileSource({ wxdatasetManager, variables }, leafletOptions);
40
-
41
- // add the layer to the map
42
- map.addLayer(wxsource);
31
+ WxTilesLogging(true); // log WxTiles info to console if needed
43
32
 
44
- // await for the first load
45
- await new Promise((done) => wxsource.once('load', done)); // highly recommended to await for the first load
46
- }
47
-
48
- async function twoLayersDemo() {
49
33
  const dataServerURL = 'https://tiles.metoceanapi.com/data/';
50
- const requestInit: RequestInit = {
51
- // headers: new Headers([['x-api-key', '--proper-key-value--']]),
52
- }; // add more options if needed such as headers, mode, credentials, etc
53
-
54
34
  // Get the API ready - should be ONE per application
55
- WxTilesLogging(true); // If needed
56
- const wxapi = new WxAPI({ dataServerURL, maskURL: 'none', qtreeURL: 'none', requestInit });
35
+ const wxapi = new WxAPI({ dataServerURL, maskURL: 'auto', qtreeURL: 'auto' });
36
+
37
+ // Define the dataset and variable
38
+ const datasetName = 'gfs.global';
39
+ // const variable = 'air.temperature.at-2m'; // Scalar example
40
+ const variable = 'wind.speed.eastward.at-10m'; // Vector example
57
41
 
58
42
  // Create a dataset manager (may be used for many layers from this dataset)
59
- const wxdatasetManager = await wxapi.createDatasetManager('gfs.global');
43
+ const wxdatasetManager = await wxapi.createDatasetManager(datasetName);
60
44
 
61
45
  // create a layer
62
- const leafletOptions = { id: 'wxsource', attribution: 'WxTiles' };
63
- const wxsource = wxdatasetManager.createSourceLayer({ variable: 'air.temperature.at-2m' }, leafletOptions);
46
+ const layerFrameworkOptions = { id: 'wxsource', opacity: 1, attribution: 'WxTiles' };
47
+ const wxsource = wxdatasetManager.createSourceLayer({ variable, time: 0 }, layerFrameworkOptions);
64
48
 
65
- // create a layer
66
- const leafletOptions1 = { id: 'wxsource1', opacity: 0.5 };
67
- const wxsource1 = wxdatasetManager.createSourceLayer({ variable: 'air.visibility' }, leafletOptions1);
49
+ // add the layer to the map
50
+ await addWxLayer(wxsource);
68
51
 
69
- // MAP
70
- const map = L.map('map', { center: [0, 0], zoom: 2, zoomControl: true });
71
- // add leaflet layerGroup to map
72
- const group = L.layerGroup([wxsource, wxsource1]).addTo(map);
73
- // create control
74
- const control = L.control.layers(undefined, { wxsource, wxsource1 }).addTo(map);
75
- // add the group to the control layer
76
- control.addOverlay(group, 'wxsources group');
52
+ // extra magic
53
+ await wxsource.updateCurrentStyleObject({ streamLineColor: 'inverted' });
77
54
  }
78
- */
55
+ // */
@@ -1,4 +1,4 @@
1
- import { WxTileSource, type WxVars, WxAPI, WxTilesLogging, type WxTileInfo, FrameworkOptions, WxGetColorStyles, WXLOG, WxColorStyleWeak } from '../src/index';
1
+ import { WxTileSource, WxAPI, WxTilesLogging, type WxTileInfo, FrameworkOptions, WxGetColorStyles, WXLOG, WxColorStyleWeak } from '../src/index';
2
2
  import { WxLegendControl } from '../src/controls/WxLegendControl';
3
3
  import { WxStyleEditorControl } from '../src/controls/WxStyleEditorControl';
4
4
  import { WxInfoControl } from '../src/controls/WxInfoControl';
@@ -6,20 +6,23 @@ import { WxTimeControl } from '../src/controls/WxTimeControl ';
6
6
  import { WxAPIControl } from '../src/controls/WxAPIControl';
7
7
  import { initFrameWork, addRaster, flyTo, setURL, addControl, removeLayer, addLayer, position } from './frwrkdeps';
8
8
 
9
- export const OPACITY = 0.8;
10
- // new EventSource('/esbuild').addEventListener('change', () => location.reload());
9
+ const OPACITY = 0.8;
10
+
11
11
  // this is universal function for Leaflet and Mapbox.
12
12
  // Functions below are just framework specific wrappers for this universal function
13
13
  // start() is the fully interchangable function for Leaflet and Mapbox
14
14
  export async function start() {
15
15
  const map = await initFrameWork();
16
+ addRaster(map, 'baseS', 'baseL', 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', 3);
16
17
  addRaster(map, 'baseS', 'baseL', 'https://tiles.metoceanapi.com/base-lines/{z}/{x}/{y}', 5);
17
18
  // WxTilesLogging(console.trace);
18
- const dataServerURL = 'data/'; // different sources manged in 'start' script in package.json
19
+ // const dataServerURL = 'data/'; // different sources manged in 'start' script in package.json
20
+ // const dataServerURL = 'https://tilestest.metoceanapi.com/data/';
21
+ // const dataServerURL = 'http://localhost:9191/data/';
19
22
  // const dataServerURL = 'https://68.171.214.87/data/'; // hihi1
20
23
  // const dataServerURL = 'https://68.171.214.81/data/'; // hihi2
21
- // const dataServerURL = 'https://tiles.metoceanapi.com/data/';
22
- // const dataServerURL = 'http://tiles3.metoceanapi.com/';
24
+ // const dataServerURL = 'https://hihi2.metoceanapi.com/data/';
25
+ const dataServerURL = 'https://tilesdev.metoceanapi.com/data/';
23
26
  const myHeaders = new Headers();
24
27
  // myHeaders.append('x-api-key', 'SpV3J1RypVrv2qkcJE91gG');
25
28
  const wxapi = new WxAPI({
@@ -30,17 +33,20 @@ export async function start() {
30
33
  requestInit: { headers: myHeaders },
31
34
  });
32
35
 
33
- let datasetName = 'gfs.global'; /* 'mercator.global/'; */ /* 'ecwmf.global/'; */ /* 'obs-radar.rain.nzl.national/'; */
36
+ // let datasetName = 'ecmwf.global'; /* 'mercator.global/'; */ /* 'gfs.global/'; */ /* 'obs-radar.rain.nzl.national/'; */
34
37
  // let variable = 'cloud.cover';
35
- let variable = 'air.temperature.at-2m';
38
+ // let variable = 'air.temperature.at-2m';
36
39
  // let variable = 'wind.speed.eastward.at-10m';
37
40
  // let variable = 'wave.direction.peak';
38
41
 
39
42
  // let datasetName = 'ww3-ecmwf.global';
40
43
  // let variable = 'wave.direction.mean';
41
44
 
42
- // let datasetName = 'obs-radar.rain.nzl.national';
43
- // let variable = 'reflectivity';
45
+ let datasetName = 'obs-radar.rain.nzl.national';
46
+ let variable = 'reflectivity';
47
+
48
+ // let datasetName = 'him8_truecolor';
49
+ // let variable = 'h8_rgb';
44
50
 
45
51
  // get datasetName from URL
46
52
  const urlParams = window.location.toString().split('##')[1];
@@ -77,18 +83,18 @@ export async function start() {
77
83
  const legendControl = new WxLegendControl();
78
84
  addControl(map, legendControl, 'top-right');
79
85
 
80
- const frameworkOptions = { id: 'wxsource', opacity: OPACITY, attribution: 'WxTiles' };
86
+ const frameworkOptions = { id: 'wxsource', opacity: OPACITY, attribution: '<a href="https://metoceanapi.github.io/wxtiles-mbox/docs">WxTiles DOCS</a>' };
81
87
  const apiControl = new WxAPIControl(wxapi, datasetName, variable);
82
88
  addControl(map, apiControl, 'top-left');
83
- apiControl.onchange = async (datasetName_, variable_, resetStyleAndFlyTo = true): Promise<void> => {
84
- WXLOG('apiControl.onchange datasetName=', datasetName_, 'variable=', variable_);
89
+ apiControl.onchange = async (_datasetName, _variable, resetStyleAndFlyTo = true): Promise<void> => {
90
+ datasetName = _datasetName;
91
+ variable = _variable;
92
+ WXLOG('apiControl.onchange datasetName=', datasetName, 'variable=', variable);
85
93
  // remove existing source and layer
86
94
  removeLayer(map, frameworkOptions.id, wxsourceLayer);
87
95
  //
88
96
  resetStyleAndFlyTo && (sth.style = {}); // reset style if change dataset/variable
89
97
  wxsourceLayer = undefined;
90
- datasetName = datasetName_;
91
- variable = variable_;
92
98
  const wxdatasetManager = await wxapi.createDatasetManager(datasetName);
93
99
  const boundaries = wxdatasetManager.getBoundaries();
94
100
  if (boundaries && resetStyleAndFlyTo) {
@@ -96,13 +102,24 @@ export async function start() {
96
102
  const zoom = Math.round(Math.log((360 * 360) / Math.max((east - west + 360) % 360, north - south) / 360) / Math.LN2); // from https://stackoverflow.com/questions/6048975/google-maps-v3-how-to-calculate-the-zoom-level-for-a-given-bounds
97
103
  flyTo(map, zoom, (east + west) / 2, (north + south) / 2, 0, 0);
98
104
  }
99
- const meta = wxdatasetManager.getVariableMeta(variable);
105
+ const meta = wxdatasetManager.getVariableCurrentMeta(variable);
100
106
  if (meta?.units === 'RGB') {
101
- addRaster(map, frameworkOptions.id, 'wxtiles', wxdatasetManager.createURI(variable, wxdatasetManager.getTimes()[0]), wxdatasetManager.getMaxZoom());
102
- timeControl.setTimes(wxdatasetManager.getTimes());
107
+ const times = wxdatasetManager.getAllTimes();
108
+
109
+ addRaster(
110
+ map,
111
+ frameworkOptions.id,
112
+ 'wxtiles',
113
+ wxdatasetManager.createURI(variable, times[0]),
114
+ wxdatasetManager.getMaxZoom(),
115
+ wxdatasetManager.getBoundaries()?.boundariesnorm
116
+ );
117
+
118
+ timeControl.setTimes(times);
103
119
  legendControl.clear();
104
120
  } else {
105
121
  wxsourceLayer = wxdatasetManager.createSourceLayer({ variable, time, wxstyle: sth.style }, frameworkOptions);
122
+ wxsourceLayer.setCoarseLevel(0);
106
123
  await addLayer(map, 'wxtiles', wxsourceLayer);
107
124
  // wxsource.startAnimation();
108
125
  const styleCopy = wxsourceLayer.getCurrentStyleObjectCopy();
@@ -110,9 +127,10 @@ export async function start() {
110
127
  styleCopy.levels = sth.style?.levels; // no need to show defaults it in the editor and URL
111
128
  styleCopy.colors = sth.style?.colors; // no need to show defaults it in the editor and URL
112
129
  await customStyleEditorControl.onchange?.(styleCopy, true);
130
+ timeControl.updateSource(wxsourceLayer);
113
131
  }
114
-
115
- timeControl.updateSource(wxsourceLayer);
132
+ // apiControl.datasets.value = datasetName;
133
+ // apiControl.variables.value = variable;
116
134
  };
117
135
 
118
136
  const timeControl = new WxTimeControl(50);
@@ -169,7 +187,7 @@ export async function start() {
169
187
  await prom; // await always !! even if aborted
170
188
  console.log('aborted');
171
189
  await wxsource.setTime(5); // no abort
172
- console.log('setTime(5) done');
190
+ console.log('setTime(5) done');
173
191
  }//*/
174
192
 
175
193
  /*/ DEMO: preload a timestep
package/watch-public.mjs CHANGED
@@ -39,13 +39,7 @@ http
39
39
  if (req.url.startsWith('/data/masks')) {
40
40
  options.port = 9191; // all from local 'simple NGINX'
41
41
  } else if (req.url.startsWith('/data')) {
42
- // options.port = undefined;
43
- // options.hostname = 'hihi2.metoceanapi.com';
44
- // options.path = 'https://' + options.hostname + req.url;
45
-
46
- // options.port = 9191; // local 'simple NGINX'
47
-
48
- options.port = 5050; // wxtiles-http-server
42
+ options.port = 8080; // wxtiles-http-server
49
43
  }
50
44
 
51
45
  // Forward each incoming request to esbuild
@@ -1,192 +0,0 @@
1
- import './wxtiles.css';
2
- import { XYZ, WxTilesLibOptions } from '../utils/wxtools';
3
- import { QTree } from '../utils/qtree';
4
- import { WxDataSetManager } from './WxDataSetManager';
5
- /**
6
- * type array of strings - available instances of a dataset */
7
- export type WxInstances = string[];
8
- /**
9
- * Short description of a dataset */
10
- export interface WxDatasetShortMeta {
11
- /** represents instances as timesteps for some datasets like NZ Radar */
12
- instanced?: string[];
13
- /** last instance of a dataset */
14
- instance: string;
15
- /** list of variables in a dataset */
16
- variables: string[];
17
- }
18
- /**
19
- * Short description of all available datasets */
20
- export interface WxDataSetsMetasJSON {
21
- /**
22
- * a list of datasets */
23
- allDatasetsList: string[];
24
- /**
25
- * a list of datasets with short description */
26
- [name: string]: WxDatasetShortMeta | string[] | undefined;
27
- }
28
- /**
29
- * Meta data of a variable */
30
- export interface WxVariableMeta {
31
- /** units used for the variable */
32
- units: string;
33
- /** min value */
34
- min: number;
35
- /** max value */
36
- max: number;
37
- /** standard name */
38
- standard_name?: string;
39
- /** if the variable is a part of vector data, this contains a proper pare */
40
- vector?: [string, string];
41
- }
42
- /**
43
- * interface of an object with variable names as keys and variable meta data as values */
44
- export interface WxVariablesMetas {
45
- [name: string]: WxVariableMeta | undefined;
46
- }
47
- /** boundaries of a dataset */
48
- export interface WxBoundaryMeta {
49
- west: number;
50
- north: number;
51
- east: number;
52
- south: number;
53
- }
54
- /**
55
- * All possible versions of boundaries for the dataset wrapped (0 -> 360) or (180 -> -180)
56
- * as well as the original boundaries from the dataset */
57
- export interface WxAllBoundariesMeta {
58
- boundariesnorm: WxBoundaryMeta;
59
- boundaries180: WxBoundaryMeta[];
60
- boundaries360: WxBoundaryMeta[];
61
- }
62
- /**
63
- * Meta data of a dataset */
64
- export interface WxDatasetMeta {
65
- /**
66
- * a list of variables in a dataset */
67
- variables: string[];
68
- /**
69
- * metadata of variables */
70
- variablesMeta: WxVariablesMetas;
71
- /**
72
- * max zoom level */
73
- maxZoom: number;
74
- /**
75
- * array of available timesteps */
76
- times: string[];
77
- /**
78
- * boundaries of a dataset */
79
- boundaries: WxAllBoundariesMeta;
80
- /**
81
- * source of the dataset */
82
- sourceID?: string;
83
- /**
84
- * base atmospheric model */
85
- baseAtmosphericModel?: string;
86
- /**
87
- * model used for the dataset*/
88
- model?: string;
89
- }
90
- /**
91
- * Options to construct {@link WxAPI} object
92
- * @example
93
- * ```typescript
94
- * const requestInit: RequestInit = {
95
- * headers
96
- * }; // add more options if needed such as headers, mode, credentials, etc
97
- * const options = {
98
- * dataServerURL:'https://tiles.metoceanapi.com/data/',
99
- * requestInit: { headers: myHeaders },
100
- * }
101
- * const wxapi = new WxAPI(options);
102
- * ```
103
- * */
104
- export interface WxAPIOptions extends WxTilesLibOptions {
105
- /** base URL of the server*/
106
- dataServerURL: string;
107
- /** full masks tiles URL, Example: `https://server.com/masks/{z}/{x}/{y}.png`
108
- * @default 'auto' - will be set to `dataServerURL + 'masks/{z}/{x}/{y}.png'`
109
- * 'none' - will disable masks */
110
- maskURL?: 'none' | 'auto' | string;
111
- /** channel to use for masking from RGBA masks
112
- * 0 - for the masks from Sarah (current), 3 - for the masks from Mapbox
113
- * @default 'R' */
114
- maskChannel?: 'R' | 'G' | 'B' | 'A';
115
- /** maximum zoom level for mask tiles on the server
116
- * @default 9 */
117
- maskDepth?: number;
118
- /** URL to qtree file.
119
- * {@link QTree} is a hierarchical structure, that allows to quickly find tile's belonging to the sea/land.
120
- * @default 'auto' - will be set to `dataServerURL + 'masks/9+1.seamask.qtree'`
121
- * 'none' - will disable the use of {@link QTree} */
122
- qtreeURL?: 'none' | 'auto' | string;
123
- /** parameters to be passed to every fetch() aka _headers, credentials, cors, etc_ for interaction with backend data server */
124
- requestInit?: RequestInit;
125
- }
126
- /** WxAPI is an initialisation object for the library. See {@link WxAPIOptions} for options.
127
- * @example
128
- * ```typescript
129
- * import { WxAPI } from 'wx-tiles';
130
- * const wxapi = new WxAPI({
131
- * dataServerURL: 'https://server.com/',
132
- * // other options
133
- * });
134
- * ```
135
- */
136
- export declare class WxAPI {
137
- /** @internal see {@link WxAPIOptions}*/
138
- readonly dataServerURL: string;
139
- /** @internal see {@link WxAPIOptions}*/
140
- readonly maskURL: string;
141
- /** @internal see {@link WxAPIOptions}*/
142
- readonly maskChannel: number;
143
- /** @internal see {@link WxAPIOptions}*/
144
- readonly maskDepth: number;
145
- /** @internal see {@link WxAPIOptions}*/
146
- readonly requestInit?: RequestInit;
147
- /** @internal see {@link WxDataSetsMetasJSON}*/
148
- readonly datasetsMetas: WxDataSetsMetasJSON;
149
- /** @internal resolved when {@link WxAPI} is ready to use */
150
- readonly initDone: Promise<void>;
151
- /** @internal instance of the qtree object */
152
- readonly qtree: QTree;
153
- /** @internal function to load mask tiles */
154
- readonly loadMaskFunc: ({ x, y, z }: XYZ) => Promise<ImageData>;
155
- /** @param options - see {@link WxAPIOptions} */
156
- constructor({ dataServerURL, maskURL, maskChannel, maskDepth, qtreeURL, requestInit, colorStyles, units, colorSchemes, }: WxAPIOptions);
157
- /**
158
- * Get short meta for a given dataset name
159
- * @param datasetName - name of the dataset
160
- * @returns {WxDatasetShortMeta} - short meta for the dataset */
161
- protected getDatasetShortMeta(datasetName: 'allDatasetsList' | string): WxDatasetShortMeta | undefined;
162
- /**
163
- * Get all variables for the given dataset name.
164
- * @param datasetName - dataset name
165
- * @returns {Promise<string[]>} - list of all available variables for the dataset */
166
- protected getDatasetInatance(datasetName: string): string | undefined;
167
- /**
168
- * Get all variables for the given dataset name.
169
- * @param datasetName - dataset name
170
- * @returns {Promise<string[]>} - list of all available variables for the dataset */
171
- getDatasetVariables(datasetName: string): Promise<string[]>;
172
- /**
173
- * Create {@link WxDataSetManager} object for the given dataset name.
174
- * @param datasetName - dataset name
175
- * @returns {Promise<WxDataSetManager>} - WxDataSetManager object for the given dataset name */
176
- createDatasetManager(datasetName: string): Promise<WxDataSetManager>;
177
- /**
178
- * Creates all possible dataset managers
179
- * For each dataset in the datasets list, creates WxDataSetManager object.
180
- * Requests all datasets meta.json in parallel.
181
- * @returns {Promise<WxDataSetManager[]>} - list of all available dataset managers */
182
- createAllDatasetsManagers(): Promise<PromiseSettledResult<WxDataSetManager>[]>;
183
- /**
184
- * Returns datasets names which have given variable
185
- * @argument {string} variableName - variable name to search for in datasets
186
- * @returns {Promise<string[]>} - list of datasets' names */
187
- filterDatasetsByVariableName(variableName: string): Promise<string[]>;
188
- /**
189
- * Get the list of all available datasets' names
190
- * @returns {Promise<string[]>} - list of all available datasets' names */
191
- getAllDatasetsNames(): Promise<string[]>;
192
- }
@@ -1,98 +0,0 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>FrameworkParentClass | @metoceanapi/wxtiles-leaflet</title><meta name="description" content="Documentation for @metoceanapi/wxtiles-leaflet"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
- <div class="tsd-toolbar-contents container">
3
- <div class="table-cell" id="tsd-search" data-base="..">
4
- <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><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-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
5
- <div class="field">
6
- <div id="tsd-toolbar-links"></div></div>
7
- <ul class="results">
8
- <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@metoceanapi/wxtiles-leaflet</a></div>
10
- <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
- <div class="container container-main">
12
- <div class="col-8 col-content">
13
- <div class="tsd-page-title">
14
- <ul class="tsd-breadcrumb">
15
- <li><a href="../modules.html">@metoceanapi/wxtiles-leaflet</a></li>
16
- <li><a href="FrameworkParentClass.html">FrameworkParentClass</a></li></ul>
17
- <h1>Class FrameworkParentClass</h1></div>
18
- <section class="tsd-panel tsd-comment">
19
- <div class="tsd-comment tsd-typography"><p>Framework dependent source type to be inherited by the framework dependent custom source type.
20
- Mapbox does not provide a parent type for the custom source.
21
- Leaflet provides a parent type for the custom layer to inherit from L.GridLayer.
22
- Used as universal type for the custom source parent class. see <a href="WxTileSource.html">WxTileSource</a></p>
23
- </div></section>
24
- <section class="tsd-panel tsd-hierarchy">
25
- <h4>Hierarchy</h4>
26
- <ul class="tsd-hierarchy">
27
- <li><span class="tsd-signature-type">GridLayer</span>
28
- <ul class="tsd-hierarchy">
29
- <li><span class="target">FrameworkParentClass</span>
30
- <ul class="tsd-hierarchy">
31
- <li><a href="WxLayerBaseImplementation.html" class="tsd-signature-type" data-tsd-kind="Class">WxLayerBaseImplementation</a></li></ul></li></ul></li></ul></section><aside class="tsd-sources">
32
- <ul>
33
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-leaflet/blob/main/src/wxsource/wxsourcetypes.ts#L10">wxsource/wxsourcetypes.ts:10</a></li></ul></aside>
34
- <section class="tsd-panel-group tsd-index-group">
35
- <section class="tsd-panel tsd-index-panel">
36
- <details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
37
- <h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex=0><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><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-text)"></path></svg> Index</h5></summary>
38
- <div class="tsd-accordion-details">
39
- <section class="tsd-index-section">
40
- <h3 class="tsd-index-heading">Constructors</h3>
41
- <div class="tsd-index-list"><a href="FrameworkParentClass.html#constructor" class="tsd-index-link tsd-kind-constructor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-512-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-512-text"></path></svg><span>constructor</span></a>
42
- </div></section>
43
- <section class="tsd-index-section">
44
- <h3 class="tsd-index-heading">Properties</h3>
45
- <div class="tsd-index-list"><a href="FrameworkParentClass.html#id" class="tsd-index-link tsd-kind-property tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-1024-path"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)" id="icon-1024-text"></path></svg><span>id</span></a>
46
- </div></section></div></details></section></section>
47
- <section class="tsd-panel-group tsd-member-group">
48
- <h2>Constructors</h2>
49
- <section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a>
50
- <h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></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" id="icon-anchor-c"></path></svg></a></h3>
51
- <ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
52
- <li class="tsd-signature tsd-anchor-link" id="constructor.new_FrameworkParentClass">new <wbr/>Framework<wbr/>Parent<wbr/>Class<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">: </span><a href="../interfaces/FrameworkOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">FrameworkOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="FrameworkParentClass.html" class="tsd-signature-type" data-tsd-kind="Class">FrameworkParentClass</a><a href="#constructor.new_FrameworkParentClass" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
53
- <li class="tsd-description">
54
- <div class="tsd-parameters">
55
- <h4 class="tsd-parameters-title">Parameters</h4>
56
- <ul class="tsd-parameter-list">
57
- <li>
58
- <h5>options: <a href="../interfaces/FrameworkOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">FrameworkOptions</a></h5></li></ul></div>
59
- <h4 class="tsd-returns-title">Returns <a href="FrameworkParentClass.html" class="tsd-signature-type" data-tsd-kind="Class">FrameworkParentClass</a></h4><aside class="tsd-sources">
60
- <p>Overrides L.GridLayer.constructor</p>
61
- <ul>
62
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-leaflet/blob/main/src/wxsource/wxsourcetypes.ts#L12">wxsource/wxsourcetypes.ts:12</a></li></ul></aside></li></ul></section></section>
63
- <section class="tsd-panel-group tsd-member-group">
64
- <h2>Properties</h2>
65
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="id" class="tsd-anchor"></a>
66
- <h3 class="tsd-anchor-link"><span>id</span><a href="#id" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
67
- <div class="tsd-signature">id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
68
- <ul>
69
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-leaflet/blob/main/src/wxsource/wxsourcetypes.ts#L11">wxsource/wxsourcetypes.ts:11</a></li></ul></aside></section></section></div>
70
- <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
71
- <div class="tsd-navigation settings">
72
- <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
73
- <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><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-text)"></path></svg> Settings</h3></summary>
74
- <div class="tsd-accordion-details">
75
- <div class="tsd-filter-visibility">
76
- <h4 class="uppercase">Member Visibility</h4><form>
77
- <ul id="tsd-filter-options">
78
- <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><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></svg><span>Protected</span></label></li>
79
- <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><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></svg><span>Private</span></label></li>
80
- <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><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></svg><span>Inherited</span></label></li></ul></form></div>
81
- <div class="tsd-theme-toggle">
82
- <h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
83
- <nav class="tsd-navigation primary">
84
- <details class="tsd-index-accordion" open><summary class="tsd-accordion-summary">
85
- <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><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-text)"></path></svg> Modules</h3></summary>
86
- <div class="tsd-accordion-details">
87
- <ul>
88
- <li><a href="../modules.html">@metoceanapi/wxtiles-<wbr/>leaflet</a>
89
- <ul></ul></li></ul></div></details></nav>
90
- <nav class="tsd-navigation secondary menu-sticky">
91
- <ul>
92
- <li class="current tsd-kind-class"><a href="FrameworkParentClass.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><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" id="icon-128-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-128-text"></path></svg><span>Framework<wbr/>Parent<wbr/>Class</span></a>
93
- <ul>
94
- <li class="tsd-kind-constructor tsd-parent-kind-class"><a href="FrameworkParentClass.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-512-path"></use><use href="#icon-512-text"></use></svg>constructor</a></li>
95
- <li class="tsd-kind-property tsd-parent-kind-class"><a href="FrameworkParentClass.html#id" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>id</a></li></ul></li></ul></nav></div></div>
96
- <div class="container tsd-generator">
97
- <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
98
- <div class="overlay"></div><script src="../assets/main.js"></script></body></html>