@cs2dak/maps 0.2.1 → 1.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 (54) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +33 -2
  3. package/callout-grid/de_ancient.json +1 -0
  4. package/callout-grid/de_anubis.json +1 -0
  5. package/callout-grid/de_dust2.json +1 -0
  6. package/callout-grid/de_inferno.json +1 -0
  7. package/callout-grid/de_mirage.json +1 -0
  8. package/callout-grid/de_nuke.json +1 -0
  9. package/callout-grid/de_overpass.json +1 -0
  10. package/map-nav/de_ancient.nav.json +1 -0
  11. package/map-nav/de_anubis.nav.json +1 -0
  12. package/map-nav/de_dust2.nav.json +1 -0
  13. package/map-nav/de_inferno.nav.json +1 -0
  14. package/map-nav/de_mirage.nav.json +1 -0
  15. package/map-nav/de_nuke.nav.json +1 -0
  16. package/map-nav/de_overpass.nav.json +1 -0
  17. package/map-routes/de_ancient.json +231 -0
  18. package/map-routes/de_anubis.json +204 -0
  19. package/map-routes/de_dust2.json +153 -0
  20. package/map-routes/de_inferno.json +207 -0
  21. package/map-routes/de_mirage.json +156 -0
  22. package/map-routes/de_nuke.json +63 -0
  23. package/map-routes/de_overpass.json +87 -0
  24. package/package.json +9 -3
  25. package/src/callout-grid-browser.test.ts +36 -0
  26. package/src/callout-grid-browser.ts +31 -0
  27. package/src/callout-grid-node.test.ts +27 -0
  28. package/src/callout-grid-node.ts +28 -0
  29. package/src/callout-grid.test.ts +73 -0
  30. package/src/callout-grid.ts +168 -0
  31. package/src/callout-names.ts +238 -0
  32. package/src/default-positions.test.ts +109 -0
  33. package/src/default-positions.ts +266 -0
  34. package/src/geometry-assets.test.ts +22 -0
  35. package/src/geometry-assets.ts +57 -0
  36. package/src/index.ts +41 -0
  37. package/src/lineups.test.ts +95 -0
  38. package/src/lineups.ts +336 -0
  39. package/src/nav.test.ts +68 -0
  40. package/src/nav.ts +228 -0
  41. package/src/position-candidates.test.ts +62 -0
  42. package/src/position-candidates.ts +183 -0
  43. package/src/radar-grid.ts +66 -0
  44. package/src/route-assets.test.ts +80 -0
  45. package/src/route-assets.ts +23 -0
  46. package/src/routes.test.ts +46 -0
  47. package/src/routes.ts +93 -0
  48. package/src/site-entry-chokes.ts +234 -0
  49. package/src/site-entry-lexicon.ts +131 -0
  50. package/src/tri-assets.ts +72 -0
  51. package/src/visibility.test.ts +36 -0
  52. package/src/visibility.ts +237 -0
  53. package/src/zone-assets.ts +23 -0
  54. package/src/zones.ts +7 -7
package/LICENSE CHANGED
@@ -1,3 +1,10 @@
1
+ Licensing note / 适用范围
2
+ -------------------------
3
+ The MIT License below applies to this repository EXCEPT apps/dak-studio/,
4
+ which is licensed under the GNU AGPL-3.0-only (see apps/dak-studio/LICENSE).
5
+ Ecosystem packages (@cs2dak/*, python exporter) are MIT; the DAK Studio
6
+ product is AGPL. Third-party attributions: THIRD-PARTY-NOTICES.md.
7
+
1
8
  MIT License
2
9
 
3
10
  Copyright (c) 2026 Starfie1d
package/README.md CHANGED
@@ -2,6 +2,37 @@
2
2
 
3
3
  English | 简体中文
4
4
 
5
- Map calibration and world-to-radar transforms. Initial constants are aligned with the RivalHub/AWPy-style radar formula and can be expanded per map as fixtures grow.
5
+ Map calibration, world-to-radar transforms, compact nav topology, zone geometry, callout name mappings, default positions, and site-entry semantics. Route assets are retained as legacy spatial helpers; Coach semantics should prefer demo-derived facts plus `site-entry-chokes`.
6
6
 
7
- 地图标定与世界坐标到 radar 像素坐标转换。第一版只放常用竞技地图的基础常量,后续根据 fixtures 和实际 demo 校准。
7
+ ## Contents
8
+
9
+ | Directory / file | Purpose |
10
+ |---|---|
11
+ | `src/routes.ts` | Legacy `MapRoute` schema + `routeIndex` / `furthestRouteIndex` helpers |
12
+ | `src/route-assets.ts` | Public active-duty route asset registry + `getMapRoutes(mapName)` for legacy spatial consumers |
13
+ | `src/geometry-assets.ts` | Public active-duty compact nav registry + `getMapNav(mapName)` / `getMapGeometry(mapName)` |
14
+ | `src/zones.ts` | `MapZone` polygon geometry + `pointInPolygon` / `zoneAt` |
15
+ | `src/callout-names.ts` | CS2 callout → 中文名 mapping (171 entries, 7 maps) |
16
+ | `src/default-positions.ts` | T/CT 开局长期驻留默认位;与 callout 倾向共同构成唯二人工战术地图资产 |
17
+ | `src/site-entry-chokes.ts` | 人工核实的包点物理入口与 route-family 判定节点 |
18
+ | `src/index.ts` | Public exports + `MAP_CALIBRATIONS` + `worldToRadar` |
19
+ | `map-routes/*.json` | Legacy confirmed attack routes per map; do not expand as Coach truth source |
20
+ | `map-nav/*.nav.json` | Compact AWPy-derived nav graph per active-duty map |
21
+ | `scripts/generate-routes.py` | Refresh `callout-review.md` + `viz/` radar images |
22
+ | `viz/` | Callout and route overlay radar images (generated, ignored) |
23
+
24
+ ## Refresh viz
25
+
26
+ ```bash
27
+ uv run --with matplotlib --with pillow python packages/maps/scripts/generate-routes.py
28
+ ```
29
+
30
+ 地图标定、世界坐标到 radar 像素坐标转换、进攻动线、zone 几何与 callout 中文映射。第一版只放常用竞技地图,后续根据 fixtures 和实际 demo 校准。
31
+
32
+ ## 战术空间语义
33
+
34
+ 人工维护层是 `callout-names.ts` 的基础 A/B/Mid 倾向、`callout-grid` 的坐标近似、
35
+ `default-positions.ts` 的双方默认站位,以及 `site-entry-chokes.ts` 的包点入口语义。
36
+ `classifyTacticalLocation()` 只组合 callout 倾向与默认站位;争夺、推进、终点、转点
37
+ 与回合阶段均由 `@cs2dak/core` 根据真实时间序列推导,maps 不维护静态
38
+ `contested/advanced/terminal` 角色。