aviation-chart 2.0.16 → 2.0.18

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.
@@ -9763,10 +9763,10 @@ class TileCipher {
9763
9763
  */
9764
9764
  const THEME_TOKENS = {
9765
9765
  light: {
9766
- background: '#EAF2F8',
9767
- land: '#F7F9FB',
9766
+ background: '#C8DCE8',
9767
+ land: '#F2F5F9',
9768
9768
  halo: '#ffffff',
9769
- boundaryPattern: 'normal:national-border',
9769
+ boundaryPattern: 'normal:national-border-light',
9770
9770
  adizLine: null, // light 不给 adiz 线描色(仅用 pattern)
9771
9771
  adizLabel: '#6600cc',
9772
9772
  airspaceStroke: '#AAB7B8',
@@ -9926,7 +9926,7 @@ function buildLayers(themeId = 'light') {
9926
9926
  "id": "boundary", "type": "line", "source": "boundary", "minzoom": 0,
9927
9927
  "paint": {
9928
9928
  "line-width": ["interpolate", ["linear"], ["zoom"], 0, 1, 7, 4],
9929
- "line-opacity": ["interpolate", ["linear"], ["zoom"], 0, 1, 2, 0.5],
9929
+ "line-opacity": ["interpolate", ["linear"], ["zoom"], 0, 1, 2, 0.9],
9930
9930
  "line-pattern": T.boundaryPattern,
9931
9931
  }
9932
9932
  },
@@ -9961,7 +9961,7 @@ function buildLayers(themeId = 'light') {
9961
9961
  {
9962
9962
  id: 'airspace_label_center_layer', type: 'symbol', source: sourceId, 'source-layer': 'fir-centroid', minzoom: 3,
9963
9963
  layout: {
9964
- 'text-field': ['coalesce', ['get', 'TXT_NAME'], ['get', 'CODE_ID']],
9964
+ 'text-field': ['coalesce', ['get', 'CODE_ID'], ['get', 'TXT_NAME']],
9965
9965
  'text-size': ['interpolate', ['linear'], ['zoom'], 3, 12, 17, 16],
9966
9966
  'symbol-placement': 'point',
9967
9967
  'text-max-width': 8,
@@ -10274,7 +10274,7 @@ function buildLayers(themeId = 'light') {
10274
10274
  // ── Theme registry ──────────────────────────────────────────────────────────
10275
10275
  // 加主题 = 在 THEME_TOKENS 增加一张 token 表 + 在此登记。
10276
10276
  const CHART_THEMES = {
10277
- light: { id: 'light', label: '日间', background: '#EAF2F8' },
10277
+ light: { id: 'light', label: '日间', background: '#C8DCE8' },
10278
10278
  dark: { id: 'dark', label: '夜间', background: '#000000' },
10279
10279
  dusk: { id: 'dusk', label: '暮光', background: '#1B2838' },
10280
10280
  sectional: { id: 'sectional', label: 'ForeFlight 风格', background: '#DCEAEF' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aviation-chart",
3
- "version": "2.0.16",
3
+ "version": "2.0.18",
4
4
  "description": "KunYu aviation map SDK",
5
5
  "main": "dist/nav-sdk.esm.js",
6
6
  "module": "dist/nav-sdk.esm.js",