@metoceanapi/wxtiles-leaflet 2.0.5 → 2.0.6

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 (91) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +137 -305
  3. package/dist/es/defaults/styles.d.ts +2 -2
  4. package/dist/es/defaults/uconv.d.ts +2 -2
  5. package/dist/es/index.d.ts +31 -4
  6. package/dist/es/index.js +1 -1
  7. package/dist/es/utils/RawCLUT.d.ts +32 -22
  8. package/dist/es/utils/qtree.d.ts +11 -5
  9. package/dist/es/utils/wxtools.d.ts +221 -31
  10. package/dist/es/wxAPI/WxDataSetManager.d.ts +63 -33
  11. package/dist/es/wxAPI/wxAPI.d.ts +115 -43
  12. package/dist/es/wxlayer/WxImplementation.d.ts +74 -32
  13. package/dist/es/wxlayer/loader.d.ts +27 -3
  14. package/dist/es/wxlayer/loadertools.d.ts +41 -3
  15. package/dist/es/wxlayer/painter.d.ts +39 -0
  16. package/dist/es/wxlayer/wxlayer.d.ts +77 -9
  17. package/dist/es/wxsource/wxsource.d.ts +60 -20
  18. package/dist/es/wxsource/wxsourcetypes.d.ts +13 -0
  19. package/dist/web/index.js +1 -1
  20. package/docs/docs/assets/highlight.css +92 -0
  21. package/docs/docs/assets/main.js +54 -0
  22. package/docs/docs/assets/search.js +1 -0
  23. package/docs/docs/assets/style.css +1257 -0
  24. package/docs/docs/classes/FrameworkParentClass.html +86 -0
  25. package/docs/docs/classes/Loader.html +165 -0
  26. package/docs/docs/classes/Painter.html +161 -0
  27. package/docs/docs/classes/QTree.html +129 -0
  28. package/docs/docs/classes/RawCLUT.html +143 -0
  29. package/docs/docs/classes/WxAPI.html +336 -0
  30. package/docs/docs/classes/WxDataSetManager.html +389 -0
  31. package/docs/docs/classes/WxLayer.html +363 -0
  32. package/docs/docs/classes/WxLayerBaseImplementation.html +358 -0
  33. package/docs/docs/classes/WxTileSource.html +435 -0
  34. package/docs/docs/enums/TileType.html +80 -0
  35. package/docs/docs/functions/WXLOG.html +118 -0
  36. package/docs/docs/functions/WxCreateLegend.html +126 -0
  37. package/docs/docs/functions/WxGetColorSchemes.html +113 -0
  38. package/docs/docs/functions/WxGetColorStyles.html +113 -0
  39. package/docs/docs/functions/WxTilesLogging.html +118 -0
  40. package/docs/docs/index.html +199 -0
  41. package/docs/docs/interfaces/ColorStylesIncomplete.html +116 -0
  42. package/docs/docs/interfaces/Converter.html +81 -0
  43. package/docs/docs/interfaces/DataIntegral.html +112 -0
  44. package/docs/docs/interfaces/DataPicture.html +93 -0
  45. package/docs/docs/interfaces/FrameworkOptions.html +118 -0
  46. package/docs/docs/interfaces/IntegralPare.html +81 -0
  47. package/docs/docs/interfaces/SLinePoint.html +77 -0
  48. package/docs/docs/interfaces/Tree.html +70 -0
  49. package/docs/docs/interfaces/WxAPIOptions.html +164 -0
  50. package/docs/docs/interfaces/WxAllBoundariesMeta.html +85 -0
  51. package/docs/docs/interfaces/WxBoundaryMeta.html +91 -0
  52. package/docs/docs/interfaces/WxColorSchemes.html +117 -0
  53. package/docs/docs/interfaces/WxColorStyleStrict.html +299 -0
  54. package/docs/docs/interfaces/WxColorStyleWeak.html +325 -0
  55. package/docs/docs/interfaces/WxColorStylesStrict.html +74 -0
  56. package/docs/docs/interfaces/WxColorStylesWeakMixed.html +116 -0
  57. package/docs/docs/interfaces/WxData.html +81 -0
  58. package/docs/docs/interfaces/WxDataSetManagerOptions.html +108 -0
  59. package/docs/docs/interfaces/WxDataSetsMetasJSON.html +75 -0
  60. package/docs/docs/interfaces/WxDatasetMeta.html +135 -0
  61. package/docs/docs/interfaces/WxDatasetShortMeta.html +90 -0
  62. package/docs/docs/interfaces/WxLayerAPI.html +313 -0
  63. package/docs/docs/interfaces/WxLayerBaseAPI.html +246 -0
  64. package/docs/docs/interfaces/WxLayerOptions.html +111 -0
  65. package/docs/docs/interfaces/WxLegend.html +117 -0
  66. package/docs/docs/interfaces/WxLngLat.html +81 -0
  67. package/docs/docs/interfaces/WxRasterData.html +99 -0
  68. package/docs/docs/interfaces/WxRequestInit.html +70 -0
  69. package/docs/docs/interfaces/WxTick.html +99 -0
  70. package/docs/docs/interfaces/WxTileInfo.html +142 -0
  71. package/docs/docs/interfaces/WxTilesLibOptions.html +92 -0
  72. package/docs/docs/interfaces/WxUnits.html +116 -0
  73. package/docs/docs/interfaces/WxVariableMeta.html +108 -0
  74. package/docs/docs/interfaces/WxVariablesMetas.html +116 -0
  75. package/docs/docs/interfaces/XYZ.html +84 -0
  76. package/docs/docs/modules.html +208 -0
  77. package/docs/docs/types/DataIntegrals.html +109 -0
  78. package/docs/docs/types/DataPictures.html +109 -0
  79. package/docs/docs/types/SLine.html +109 -0
  80. package/docs/docs/types/SubTrees.html +109 -0
  81. package/docs/docs/types/SubTreesN.html +109 -0
  82. package/docs/docs/types/TreeN.html +109 -0
  83. package/docs/docs/types/UriLoaderPromiseFunc.html +129 -0
  84. package/docs/docs/types/WxDate.html +109 -0
  85. package/docs/docs/types/WxURIs.html +109 -0
  86. package/docs/docs/types/WxUnitTuple.html +109 -0
  87. package/docs/docs/types/WxVars.html +109 -0
  88. package/docs/script/script.css +1 -1
  89. package/docs/script/script.js +6 -6
  90. package/package.json +8 -8
  91. package/src_example/index.ts +2 -2
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@metoceanapi/wxtiles-leaflet",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
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",
7
7
  "scripts": {
8
- "build": "rm -rf dist/ && node build.js && tsc",
9
- "buildForDocs": "node build-for-docs.js",
8
+ "build_DEMO_Docs": "npm run build && npm run buildDOCS && node build-for-docs.js",
10
9
  "start": "PORT=3002 node watch-public.js",
10
+ "build": "rm -rf dist/ && node build.js && tsc",
11
+ "buildDOCS": "./node_modules/.bin/typedoc --out docs/docs --excludeExternals src",
11
12
  "preversion": "npm run build",
12
13
  "version": "changelogkeeper && git add CHANGELOG.md",
13
14
  "npm_reinstall": "rm -rf node_modules package-lock.json && npm i",
@@ -26,12 +27,11 @@
26
27
  "devDependencies": {
27
28
  "@types/leaflet": "^1.9.0",
28
29
  "changelogkeeper": "^1.2.0",
29
- "esbuild": "^0.14.54",
30
+ "esbuild": "^0.15.15",
30
31
  "esbuild-plugin-external-global": "^1.0.1",
31
32
  "express": "^4.18.2",
32
- "typescript": "^4.8.4"
33
- },
34
- "peerDependencies": {
35
- "leaflet": "^1.9.2"
33
+ "leaflet": "^1.9.3",
34
+ "typedoc": "^0.23.21",
35
+ "typescript": "^4.9.3"
36
36
  }
37
37
  }
@@ -1,7 +1,7 @@
1
1
  import 'leaflet/dist/leaflet.css';
2
2
  import L from 'leaflet'; // goes first always!
3
3
 
4
- import { WxTileSource, type WxVars, WxAPI, WxTilesLogging, type WxTileInfo } from '../src/index';
4
+ import { WxTileSource, type WxVars, WxAPI, WxTilesLogging, type WxTileInfo, FrameworkOptions } from '../src/index';
5
5
  import { WxLegendControl } from '../src/controls/WxLegendControl';
6
6
  import { WxStyleEditorControl } from '../src/controls/WxStyleEditorControl';
7
7
  import { WxInfoControl } from '../src/controls/WxInfoControl';
@@ -282,7 +282,7 @@ async function simpleDemo() {
282
282
  const variables = wxdatasetManager.checkCombineVariableIfVector(variable);
283
283
 
284
284
  // create a layer
285
- const leafletOptions: L.GridLayerOptions = { opacity: 1, attribution: 'WxTiles' };
285
+ const leafletOptions: FrameworkOptions = { opacity: 1, attribution: 'WxTiles' };
286
286
  const wxsource = new WxTileSource({ wxdatasetManager, variables }, leafletOptions);
287
287
 
288
288
  // add the layer to the map