@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.
- package/CHANGELOG.md +2 -0
- package/README.md +137 -305
- package/dist/es/defaults/styles.d.ts +2 -2
- package/dist/es/defaults/uconv.d.ts +2 -2
- package/dist/es/index.d.ts +31 -4
- package/dist/es/index.js +1 -1
- package/dist/es/utils/RawCLUT.d.ts +32 -22
- package/dist/es/utils/qtree.d.ts +11 -5
- package/dist/es/utils/wxtools.d.ts +221 -31
- package/dist/es/wxAPI/WxDataSetManager.d.ts +63 -33
- package/dist/es/wxAPI/wxAPI.d.ts +115 -43
- package/dist/es/wxlayer/WxImplementation.d.ts +74 -32
- package/dist/es/wxlayer/loader.d.ts +27 -3
- package/dist/es/wxlayer/loadertools.d.ts +41 -3
- package/dist/es/wxlayer/painter.d.ts +39 -0
- package/dist/es/wxlayer/wxlayer.d.ts +77 -9
- package/dist/es/wxsource/wxsource.d.ts +60 -20
- package/dist/es/wxsource/wxsourcetypes.d.ts +13 -0
- package/dist/web/index.js +1 -1
- package/docs/docs/assets/highlight.css +92 -0
- package/docs/docs/assets/main.js +54 -0
- package/docs/docs/assets/search.js +1 -0
- package/docs/docs/assets/style.css +1257 -0
- package/docs/docs/classes/FrameworkParentClass.html +86 -0
- package/docs/docs/classes/Loader.html +165 -0
- package/docs/docs/classes/Painter.html +161 -0
- package/docs/docs/classes/QTree.html +129 -0
- package/docs/docs/classes/RawCLUT.html +143 -0
- package/docs/docs/classes/WxAPI.html +336 -0
- package/docs/docs/classes/WxDataSetManager.html +389 -0
- package/docs/docs/classes/WxLayer.html +363 -0
- package/docs/docs/classes/WxLayerBaseImplementation.html +358 -0
- package/docs/docs/classes/WxTileSource.html +435 -0
- package/docs/docs/enums/TileType.html +80 -0
- package/docs/docs/functions/WXLOG.html +118 -0
- package/docs/docs/functions/WxCreateLegend.html +126 -0
- package/docs/docs/functions/WxGetColorSchemes.html +113 -0
- package/docs/docs/functions/WxGetColorStyles.html +113 -0
- package/docs/docs/functions/WxTilesLogging.html +118 -0
- package/docs/docs/index.html +199 -0
- package/docs/docs/interfaces/ColorStylesIncomplete.html +116 -0
- package/docs/docs/interfaces/Converter.html +81 -0
- package/docs/docs/interfaces/DataIntegral.html +112 -0
- package/docs/docs/interfaces/DataPicture.html +93 -0
- package/docs/docs/interfaces/FrameworkOptions.html +118 -0
- package/docs/docs/interfaces/IntegralPare.html +81 -0
- package/docs/docs/interfaces/SLinePoint.html +77 -0
- package/docs/docs/interfaces/Tree.html +70 -0
- package/docs/docs/interfaces/WxAPIOptions.html +164 -0
- package/docs/docs/interfaces/WxAllBoundariesMeta.html +85 -0
- package/docs/docs/interfaces/WxBoundaryMeta.html +91 -0
- package/docs/docs/interfaces/WxColorSchemes.html +117 -0
- package/docs/docs/interfaces/WxColorStyleStrict.html +299 -0
- package/docs/docs/interfaces/WxColorStyleWeak.html +325 -0
- package/docs/docs/interfaces/WxColorStylesStrict.html +74 -0
- package/docs/docs/interfaces/WxColorStylesWeakMixed.html +116 -0
- package/docs/docs/interfaces/WxData.html +81 -0
- package/docs/docs/interfaces/WxDataSetManagerOptions.html +108 -0
- package/docs/docs/interfaces/WxDataSetsMetasJSON.html +75 -0
- package/docs/docs/interfaces/WxDatasetMeta.html +135 -0
- package/docs/docs/interfaces/WxDatasetShortMeta.html +90 -0
- package/docs/docs/interfaces/WxLayerAPI.html +313 -0
- package/docs/docs/interfaces/WxLayerBaseAPI.html +246 -0
- package/docs/docs/interfaces/WxLayerOptions.html +111 -0
- package/docs/docs/interfaces/WxLegend.html +117 -0
- package/docs/docs/interfaces/WxLngLat.html +81 -0
- package/docs/docs/interfaces/WxRasterData.html +99 -0
- package/docs/docs/interfaces/WxRequestInit.html +70 -0
- package/docs/docs/interfaces/WxTick.html +99 -0
- package/docs/docs/interfaces/WxTileInfo.html +142 -0
- package/docs/docs/interfaces/WxTilesLibOptions.html +92 -0
- package/docs/docs/interfaces/WxUnits.html +116 -0
- package/docs/docs/interfaces/WxVariableMeta.html +108 -0
- package/docs/docs/interfaces/WxVariablesMetas.html +116 -0
- package/docs/docs/interfaces/XYZ.html +84 -0
- package/docs/docs/modules.html +208 -0
- package/docs/docs/types/DataIntegrals.html +109 -0
- package/docs/docs/types/DataPictures.html +109 -0
- package/docs/docs/types/SLine.html +109 -0
- package/docs/docs/types/SubTrees.html +109 -0
- package/docs/docs/types/SubTreesN.html +109 -0
- package/docs/docs/types/TreeN.html +109 -0
- package/docs/docs/types/UriLoaderPromiseFunc.html +129 -0
- package/docs/docs/types/WxDate.html +109 -0
- package/docs/docs/types/WxURIs.html +109 -0
- package/docs/docs/types/WxUnitTuple.html +109 -0
- package/docs/docs/types/WxVars.html +109 -0
- package/docs/script/script.css +1 -1
- package/docs/script/script.js +6 -6
- package/package.json +8 -8
- 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.
|
|
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
|
-
"
|
|
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.
|
|
30
|
+
"esbuild": "^0.15.15",
|
|
30
31
|
"esbuild-plugin-external-global": "^1.0.1",
|
|
31
32
|
"express": "^4.18.2",
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"leaflet": "^1.9.2"
|
|
33
|
+
"leaflet": "^1.9.3",
|
|
34
|
+
"typedoc": "^0.23.21",
|
|
35
|
+
"typescript": "^4.9.3"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/src_example/index.ts
CHANGED
|
@@ -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:
|
|
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
|