@x-cmd/draw 0.5.5 → 0.5.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/dist/globe.d.ts CHANGED
@@ -2,3 +2,4 @@ export { globeProjection, globeLandPath, globeCountryPath, globeAreaPath, globeG
2
2
  export { COUNTRIES, resolveCountry, regionKey, parseRegionKey, type CountryKeys, } from './render/globe-keys.js';
3
3
  export { GLOBE_REGIONS, resolveRegion, type GlobeRegion, } from './render/globe-regions.js';
4
4
  export { resolveGlobeArea, allGlobeAreas, type GlobeArea, } from './render/globe-areas.js';
5
+ export { renderEarthGlobe, earthSceneFromUrl, type EarthScene, type EarthOpts, type EarthNode, type EarthLink, } from './render/globe-earth.js';
package/dist/globe.js CHANGED
@@ -4,3 +4,7 @@ export { globeProjection, globeLandPath, globeCountryPath, globeAreaPath, globeG
4
4
  export { COUNTRIES, resolveCountry, regionKey, parseRegionKey, } from './render/globe-keys.js';
5
5
  export { GLOBE_REGIONS, resolveRegion, } from './render/globe-regions.js';
6
6
  export { resolveGlobeArea, allGlobeAreas, } from './render/globe-areas.js';
7
+ // 地球仪那张(正射投影 + 国界 + 节点/连线)—— 底图就在上面那几个模块里,
8
+ // 放在这个入口是为了让浏览器端「要画球面就引这一个」✓
9
+ // (主入口 @x-cmd/draw/client 只给类型,不带这几百 KB 的底图 ✓)
10
+ export { renderEarthGlobe, earthSceneFromUrl, } from './render/globe-earth.js';
@@ -0,0 +1 @@
1
+ export { WORLD_COUNTRIES, WORLD_YEAR, type WorldCountry } from './world-data.js';
package/dist/world.js ADDED
@@ -0,0 +1,5 @@
1
+ // 世界的国家与年份数据 —— 单独一个入口。
2
+ //
3
+ // 为什么单独:球面的底图(GeoJSON)有半兆多,浏览器端只要「哪个国家、哪一年、
4
+ // 多少人口/人均 GDP」这张表时,不必把那半兆一起下载 ⇒ 这一个入口只有十几 KB。
5
+ export { WORLD_COUNTRIES, WORLD_YEAR } from './world-data.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x-cmd/draw",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "SVG chart rendering as a service, a library, and a CLI — pie/bar/hbar/line/area/radar/gauge/scatter/combo/sankey/qr, same params everywhere",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -18,6 +18,10 @@
18
18
  "types": "./dist/globe.d.ts",
19
19
  "default": "./dist/globe.js"
20
20
  },
21
+ "./world": {
22
+ "types": "./dist/world.d.ts",
23
+ "default": "./dist/world.js"
24
+ },
21
25
  "./client": {
22
26
  "types": "./dist/client.d.ts",
23
27
  "default": "./dist/client.js"