@anov/gis 1.7.7 → 1.8.5

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 (214) hide show
  1. package/.claude/settings.local.json +37 -0
  2. package/CHANGELOG.md +95 -0
  3. package/README.md +297 -85
  4. package/dist/index.css +1 -1
  5. package/dist/index.js +18012 -58
  6. package/dist/resources/Assets/approximateTerrainHeights.json +1 -1
  7. package/dist/resources/ThirdParty/Workers/package.json +1 -0
  8. package/dist/resources/ThirdParty/Workers/zip-web-worker.js +1 -0
  9. package/dist/resources/ThirdParty/draco_decoder.wasm +0 -0
  10. package/dist/resources/ThirdParty/google-earth-dbroot-parser.js +1 -1
  11. package/dist/resources/ThirdParty/wasm_splats_bg.wasm +0 -0
  12. package/dist/resources/ThirdParty/zip-module.wasm +0 -0
  13. package/dist/resources/Widgets/Animation/Animation.css +127 -1
  14. package/dist/resources/Widgets/Animation/lighter.css +70 -1
  15. package/dist/resources/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -1
  16. package/dist/resources/Widgets/BaseLayerPicker/lighter.css +22 -1
  17. package/dist/resources/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -1
  18. package/dist/resources/Widgets/CesiumInspector/CesiumInspector.css +113 -1
  19. package/dist/resources/Widgets/CesiumWidget/CesiumWidget.css +119 -1
  20. package/dist/resources/Widgets/CesiumWidget/lighter.css +14 -1
  21. package/dist/resources/Widgets/FullscreenButton/FullscreenButton.css +8 -1
  22. package/dist/resources/Widgets/Geocoder/Geocoder.css +70 -1
  23. package/dist/resources/Widgets/Geocoder/lighter.css +17 -1
  24. package/dist/resources/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
  25. package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
  26. package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
  27. package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
  28. package/dist/resources/Widgets/Images/ImageryProviders/azureAerial.png +0 -0
  29. package/dist/resources/Widgets/Images/ImageryProviders/azureRoads.png +0 -0
  30. package/dist/resources/Widgets/Images/ImageryProviders/googleContour.png +0 -0
  31. package/dist/resources/Widgets/Images/ImageryProviders/googleRoadmap.png +0 -0
  32. package/dist/resources/Widgets/Images/ImageryProviders/googleSatellite.png +0 -0
  33. package/dist/resources/Widgets/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
  34. package/dist/resources/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
  35. package/dist/resources/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
  36. package/dist/resources/Widgets/InfoBox/InfoBox.css +92 -1
  37. package/dist/resources/Widgets/InfoBox/InfoBoxDescription.css +178 -1
  38. package/dist/resources/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -1
  39. package/dist/resources/Widgets/NavigationHelpButton/lighter.css +38 -1
  40. package/dist/resources/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -1
  41. package/dist/resources/Widgets/ProjectionPicker/ProjectionPicker.css +38 -1
  42. package/dist/resources/Widgets/SceneModePicker/SceneModePicker.css +56 -1
  43. package/dist/resources/Widgets/SelectionIndicator/SelectionIndicator.css +20 -1
  44. package/dist/resources/Widgets/Timeline/Timeline.css +103 -1
  45. package/dist/resources/Widgets/Timeline/lighter.css +23 -1
  46. package/dist/resources/Widgets/VRButton/VRButton.css +8 -1
  47. package/dist/resources/Widgets/Viewer/Viewer.css +107 -1
  48. package/dist/resources/Widgets/VoxelInspector/VoxelInspector.css +16 -0
  49. package/dist/resources/Widgets/lighter.css +237 -1
  50. package/dist/resources/Widgets/lighterShared.css +46 -1
  51. package/dist/resources/Widgets/shared.css +103 -1
  52. package/dist/resources/Widgets/widgets.css +1342 -1
  53. package/dist/resources/Workers/chunk-2AIOP76V.js +25 -0
  54. package/dist/resources/Workers/chunk-37ETYCYM.js +25 -0
  55. package/dist/resources/Workers/chunk-3E7FIXV7.js +25 -0
  56. package/dist/resources/Workers/chunk-3N6OW3OY.js +25 -0
  57. package/dist/resources/Workers/{ArcType-de5d8777.js → chunk-3VUCSHGU.js} +2 -2
  58. package/dist/resources/Workers/chunk-4KY4VMEH.js +25 -0
  59. package/dist/resources/Workers/chunk-4WQ4VT5S.js +25 -0
  60. package/dist/resources/Workers/chunk-5AAMOBJK.js +25 -0
  61. package/dist/resources/Workers/chunk-5DGDPBQU.js +25 -0
  62. package/dist/resources/Workers/chunk-5VFNV3LW.js +25 -0
  63. package/dist/resources/Workers/chunk-5Z36UAB7.js +25 -0
  64. package/dist/resources/Workers/chunk-6AEO73KW.js +25 -0
  65. package/dist/resources/Workers/chunk-6DLS2UKD.js +25 -0
  66. package/dist/resources/Workers/{GeometryAttributes-734a3446.js → chunk-6EINM7EY.js} +2 -2
  67. package/dist/resources/Workers/chunk-6W2XFGWI.js +25 -0
  68. package/dist/resources/Workers/chunk-7GCQCPLT.js +25 -0
  69. package/dist/resources/Workers/chunk-7TN3TOVQ.js +25 -0
  70. package/dist/resources/Workers/chunk-A4I25VN7.js +25 -0
  71. package/dist/resources/Workers/{GeometryOffsetAttribute-59b14f45.js → chunk-AJH5KBOO.js} +2 -2
  72. package/dist/resources/Workers/chunk-AKELQO2L.js +25 -0
  73. package/dist/resources/Workers/chunk-ALIHIWSS.js +25 -0
  74. package/dist/resources/Workers/chunk-ATKJRN2G.js +25 -0
  75. package/dist/resources/Workers/chunk-BDWA46XV.js +25 -0
  76. package/dist/resources/Workers/chunk-BKIYVF74.js +25 -0
  77. package/dist/resources/Workers/chunk-BPABSUDY.js +25 -0
  78. package/dist/resources/Workers/chunk-D3TVNJ6W.js +25 -0
  79. package/dist/resources/Workers/chunk-DM7KUSL2.js +25 -0
  80. package/dist/resources/Workers/chunk-E7EKLP3B.js +25 -0
  81. package/dist/resources/Workers/{GeometryInstance-4bfcfe78.js → chunk-G2QPRBZU.js} +2 -2
  82. package/dist/resources/Workers/chunk-G3GDHHWO.js +25 -0
  83. package/dist/resources/Workers/chunk-G72JFEXW.js +25 -0
  84. package/dist/resources/Workers/chunk-IAE6APK2.js +25 -0
  85. package/dist/resources/Workers/chunk-IEITL4VO.js +25 -0
  86. package/dist/resources/Workers/chunk-LHBFSFJE.js +25 -0
  87. package/dist/resources/Workers/chunk-LN2UT4R3.js +25 -0
  88. package/dist/resources/Workers/chunk-LNJEJFV5.js +66 -0
  89. package/dist/resources/Workers/{defaultValue-97284df2.js → chunk-ML6MR2RA.js} +2 -2
  90. package/dist/resources/Workers/chunk-MOHWP7VV.js +25 -0
  91. package/dist/resources/Workers/chunk-NZBME2JK.js +25 -0
  92. package/dist/resources/Workers/chunk-P5EFSOUF.js +25 -0
  93. package/dist/resources/Workers/chunk-P7N43FDO.js +25 -0
  94. package/dist/resources/Workers/{combine-d11b1f00.js → chunk-PEDE2P3Q.js} +2 -2
  95. package/dist/resources/Workers/chunk-PSIOCLX7.js +25 -0
  96. package/dist/resources/Workers/chunk-PYMQNHFO.js +25 -0
  97. package/dist/resources/Workers/chunk-QJTXFT4R.js +25 -0
  98. package/dist/resources/Workers/chunk-QNPYEODC.js +25 -0
  99. package/dist/resources/Workers/chunk-QS7V5G6Y.js +25 -0
  100. package/dist/resources/Workers/chunk-RDX4QSUS.js +25 -0
  101. package/dist/resources/Workers/chunk-RESOCDYZ.js +25 -0
  102. package/dist/resources/Workers/chunk-SRA5MBUT.js +25 -0
  103. package/dist/resources/Workers/chunk-TCOMWBL2.js +25 -0
  104. package/dist/resources/Workers/chunk-UA7PAMQQ.js +25 -0
  105. package/dist/resources/Workers/chunk-W5OEMTMB.js +25 -0
  106. package/dist/resources/Workers/chunk-WGIRJIIK.js +25 -0
  107. package/dist/resources/Workers/{CylinderGeometryLibrary-24ad1484.js → chunk-XRJOFXJF.js} +2 -2
  108. package/dist/resources/Workers/chunk-YP4SXJYZ.js +25 -0
  109. package/dist/resources/Workers/chunk-Z7Q4J7AE.js +25 -0
  110. package/dist/resources/Workers/combineGeometry.js +2 -2
  111. package/dist/resources/Workers/createBoxGeometry.js +2 -2
  112. package/dist/resources/Workers/createBoxOutlineGeometry.js +2 -2
  113. package/dist/resources/Workers/createCircleGeometry.js +2 -2
  114. package/dist/resources/Workers/createCircleOutlineGeometry.js +2 -2
  115. package/dist/resources/Workers/createCoplanarPolygonGeometry.js +2 -2
  116. package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
  117. package/dist/resources/Workers/createCorridorGeometry.js +2 -2
  118. package/dist/resources/Workers/createCorridorOutlineGeometry.js +2 -2
  119. package/dist/resources/Workers/createCylinderGeometry.js +2 -2
  120. package/dist/resources/Workers/createCylinderOutlineGeometry.js +2 -2
  121. package/dist/resources/Workers/createEllipseGeometry.js +2 -2
  122. package/dist/resources/Workers/createEllipseOutlineGeometry.js +2 -2
  123. package/dist/resources/Workers/createEllipsoidGeometry.js +2 -2
  124. package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +2 -2
  125. package/dist/resources/Workers/createFrustumGeometry.js +2 -2
  126. package/dist/resources/Workers/createFrustumOutlineGeometry.js +2 -2
  127. package/dist/resources/Workers/createGeometry.js +2 -2
  128. package/dist/resources/Workers/createGroundPolylineGeometry.js +2 -2
  129. package/dist/resources/Workers/createPlaneGeometry.js +2 -2
  130. package/dist/resources/Workers/createPlaneOutlineGeometry.js +2 -2
  131. package/dist/resources/Workers/createPolygonGeometry.js +2 -2
  132. package/dist/resources/Workers/createPolygonOutlineGeometry.js +2 -2
  133. package/dist/resources/Workers/createPolylineGeometry.js +2 -2
  134. package/dist/resources/Workers/createPolylineVolumeGeometry.js +2 -2
  135. package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
  136. package/dist/resources/Workers/createRectangleGeometry.js +2 -2
  137. package/dist/resources/Workers/createRectangleOutlineGeometry.js +2 -2
  138. package/dist/resources/Workers/createSimplePolylineGeometry.js +2 -2
  139. package/dist/resources/Workers/createSphereGeometry.js +2 -2
  140. package/dist/resources/Workers/createSphereOutlineGeometry.js +2 -2
  141. package/dist/resources/Workers/createTaskProcessorWorker.js +2 -2
  142. package/dist/resources/Workers/createVectorTileClampedPolylines.js +2 -2
  143. package/dist/resources/Workers/createVectorTileGeometries.js +2 -2
  144. package/dist/resources/Workers/createVectorTilePoints.js +2 -2
  145. package/dist/resources/Workers/createVectorTilePolygons.js +2 -2
  146. package/dist/resources/Workers/createVectorTilePolylines.js +2 -2
  147. package/dist/resources/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -0
  148. package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
  149. package/dist/resources/Workers/createVerticesFromHeightmap.js +2 -4
  150. package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
  151. package/dist/resources/Workers/createWallGeometry.js +2 -2
  152. package/dist/resources/Workers/createWallOutlineGeometry.js +2 -2
  153. package/dist/resources/Workers/decodeDraco.js +2 -2
  154. package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
  155. package/dist/resources/Workers/decodeI3S.js +25 -0
  156. package/dist/resources/Workers/gaussianSplatSorter.js +25 -0
  157. package/dist/resources/Workers/{_commonjsHelpers-3aae1032-65601a27.js → gaussianSplatTextureGenerator.js} +2 -2
  158. package/dist/resources/Workers/incrementallyBuildTerrainPicker.js +25 -0
  159. package/dist/resources/Workers/transcodeKTX2.js +2 -2
  160. package/dist/resources/Workers/transferTypedArrayTest.js +25 -1
  161. package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +2 -2
  162. package/dist/resources/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -0
  163. package/dist/resources/static/js/viewerCesiumNavigationMixin.js +1 -1
  164. package/package.json +88 -84
  165. package/scripts/release.js +323 -0
  166. package/dist/resources/ThirdParty/Workers/basis_transcoder.js +0 -1
  167. package/dist/resources/ThirdParty/Workers/draco_decoder_nodejs.js +0 -1
  168. package/dist/resources/ThirdParty/Workers/pako_deflate.min.js +0 -1
  169. package/dist/resources/ThirdParty/Workers/pako_inflate.min.js +0 -1
  170. package/dist/resources/ThirdParty/Workers/z-worker-pako.js +0 -1
  171. package/dist/resources/Widgets/Images/ImageryProviders/esriNationalGeographic.png +0 -0
  172. package/dist/resources/Widgets/Images/ImageryProviders/esriWorldImagery.png +0 -0
  173. package/dist/resources/Widgets/Images/ImageryProviders/esriWorldStreetMap.png +0 -0
  174. package/dist/resources/Workers/AttributeCompression-5744d52e.js +0 -25
  175. package/dist/resources/Workers/AxisAlignedBoundingBox-b1c095aa.js +0 -25
  176. package/dist/resources/Workers/BoundingRectangle-2b0ebbdd.js +0 -25
  177. package/dist/resources/Workers/BoxGeometry-acd0c697.js +0 -25
  178. package/dist/resources/Workers/Color-c7fd1307.js +0 -25
  179. package/dist/resources/Workers/ComponentDatatype-e7fbe225.js +0 -25
  180. package/dist/resources/Workers/CoplanarPolygonGeometryLibrary-edaba606.js +0 -25
  181. package/dist/resources/Workers/CorridorGeometryLibrary-ab3e6481.js +0 -25
  182. package/dist/resources/Workers/CylinderGeometry-679e50b4.js +0 -25
  183. package/dist/resources/Workers/EllipseGeometry-e6f948bb.js +0 -25
  184. package/dist/resources/Workers/EllipseGeometryLibrary-0adcaeed.js +0 -25
  185. package/dist/resources/Workers/EllipseOutlineGeometry-418492dc.js +0 -25
  186. package/dist/resources/Workers/EllipsoidGeodesic-ed8a0e40.js +0 -25
  187. package/dist/resources/Workers/EllipsoidGeometry-539fb9e2.js +0 -25
  188. package/dist/resources/Workers/EllipsoidOutlineGeometry-6c13760b.js +0 -25
  189. package/dist/resources/Workers/EllipsoidRhumbLine-60f14314.js +0 -25
  190. package/dist/resources/Workers/EllipsoidTangentPlane-7ae496b2.js +0 -25
  191. package/dist/resources/Workers/EncodedCartesian3-a9a8a281.js +0 -25
  192. package/dist/resources/Workers/FrustumGeometry-be9b9578.js +0 -25
  193. package/dist/resources/Workers/GeometryAttribute-fd1d7e90.js +0 -25
  194. package/dist/resources/Workers/GeometryPipeline-a847e31f.js +0 -25
  195. package/dist/resources/Workers/IndexDatatype-65271ba3.js +0 -25
  196. package/dist/resources/Workers/IntersectionTests-33ace2d6.js +0 -25
  197. package/dist/resources/Workers/Matrix2-73789715.js +0 -25
  198. package/dist/resources/Workers/OrientedBoundingBox-ee3011f6.js +0 -25
  199. package/dist/resources/Workers/Plane-e916220d.js +0 -25
  200. package/dist/resources/Workers/PolygonGeometryLibrary-0f0c78d4.js +0 -25
  201. package/dist/resources/Workers/PolygonPipeline-00dc0c6e.js +0 -25
  202. package/dist/resources/Workers/PolylinePipeline-ebd42f23.js +0 -25
  203. package/dist/resources/Workers/PolylineVolumeGeometryLibrary-a4b92b4e.js +0 -25
  204. package/dist/resources/Workers/PrimitivePipeline-42d69f96.js +0 -25
  205. package/dist/resources/Workers/RectangleGeometryLibrary-cff60d30.js +0 -25
  206. package/dist/resources/Workers/RuntimeError-4f8ec8a2.js +0 -25
  207. package/dist/resources/Workers/TerrainEncoding-080f16eb.js +0 -25
  208. package/dist/resources/Workers/Transforms-d3d3b2a9.js +0 -66
  209. package/dist/resources/Workers/VertexFormat-9886cb81.js +0 -25
  210. package/dist/resources/Workers/WallGeometryLibrary-27f90b78.js +0 -25
  211. package/dist/resources/Workers/WebGLConstants-6da700a2.js +0 -25
  212. package/dist/resources/Workers/WebMercatorProjection-04ef6bc3.js +0 -25
  213. package/dist/resources/Workers/arrayRemoveDuplicates-6f91355d.js +0 -25
  214. package/dist/resources/Workers/cesiumWorkerBootstrapper.js +0 -6
@@ -0,0 +1,37 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Read(//e/zhf/github/dc-sdk/**)",
5
+ "Bash(xargs grep -l \"苏州\\\\|suzhou\")",
6
+ "Bash(curl -sL -v \"https://resource.dvgis.cn/examples/data/sz.geojson\")",
7
+ "WebFetch(domain:github.com)",
8
+ "WebFetch(domain:api.github.com)",
9
+ "Bash(curl -s \"https://api.github.com/repos/dvgis/dc-sdk/contents/examples/assets/icon?ref=2.17.0\")",
10
+ "Bash(curl -s -H \"User-Agent: Mozilla/5.0\" \"https://api.github.com/repos/dvgis/dc-sdk/contents/examples/assets/icon?ref=2.17.0\")",
11
+ "Bash(curl -sL -H \"User-Agent: Mozilla/5.0\" \"https://api.github.com/repositories/206975890/contents/examples/assets/icon?ref=2.17.0\")",
12
+ "Bash(curl -sL -H \"User-Agent: Mozilla/5.0\" \"https://api.github.com/repos/dvgis/dc-sdk/contents/examples/assets/icon\")",
13
+ "Bash(curl -sL -H \"User-Agent: Mozilla/5.0\" \"https://api.github.com/repos/dvgis/dc-sdk/contents/examples/assets/bg\")",
14
+ "Bash(curl -sL -H \"User-Agent: Mozilla/5.0\" \"https://api.github.com/search/code?q=bg_name+repo:dvt3d/dc-sdk\")",
15
+ "Bash(curl -sL -H \"User-Agent: Mozilla/5.0\" \"https://api.github.com/search/code?q=sz_out+repo:dvt3d/dc-sdk+path:examples\")",
16
+ "Bash(curl -sL -H 'User-Agent: Mozilla/5.0' https://raw.githubusercontent.com/dvt3d/dc-sdk/__TRACKED_VAR__/examples/mini-scene/sz_out.html)",
17
+ "Bash(curl -sL -H \"User-Agent: Mozilla/5.0\" \"https://api.github.com/repos/dvt3d/dc-sdk/contents/examples/mini-scene?ref=2.17.0\")",
18
+ "Bash(curl -sL -H \"User-Agent: Mozilla/5.0\" \"https://raw.githubusercontent.com/dvt3d/dc-sdk/master/examples/mini-scene/sz_out.html\")",
19
+ "Bash(ls \"e:/zhf/\" 2>&1 | head -20)",
20
+ "Read(//e/zhf/**)",
21
+ "Bash(ls /c/Users/admin/Downloads 2>/dev/null | grep -iE \"sz|suzhou|苏州|geojson\" 2>&1 | head -10)",
22
+ "Read(//c/Users/admin/Downloads/**)",
23
+ "Bash(curl -sL \"https://dc.dvgis.cn/\")",
24
+ "Bash(curl -sL \"https://dc.dvgis.cn/js/app.76a27802.js\")",
25
+ "Bash(curl -sL \"https://dc.dvgis.cn/js/chunk-vendors.5cc82956.js\")",
26
+ "Bash(curl -sL \"https://dc.dvgis.cn/js/chunk-vendors.5cc82956.js\" -o /tmp/chunk-vendors.js)",
27
+ "Read(//tmp/**)",
28
+ "Bash(python3 -c ' *)",
29
+ "Bash(python3)",
30
+ "Bash(cat)",
31
+ "Bash(python3 /tmp/inspect_clone.py)",
32
+ "Bash(dd if=/tmp/index.js bs=1 skip=3516932 count=3500)",
33
+ "Bash(awk 'NR==108' \"e:/zhf/gitlab/ANOV-GIS/examples/public/examples/html/effect/sz_out.html\")",
34
+ "Bash(sed -n '105,110p' \"e:/zhf/gitlab/ANOV-GIS/examples/public/examples/html/effect/sz_out.html\")"
35
+ ]
36
+ }
37
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,95 @@
1
+ # 更新日志
2
+
3
+ 本项目的所有重要变更都会记录在此文件中。
4
+
5
+ 格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),
6
+ 本项目遵循 [语义化版本](https://semver.org/lang/zh-CN/) 规范。
7
+
8
+ ## [1.8.5] - 2026-08-04
9
+
10
+ - Merge branch 'draw' into 'master' (`ca04c2f`)
11
+ - feat: 浮动 × 关闭按钮默认开启,不再需要显式配置 (`4484d58`)
12
+ - feat: 测量绘制支持会话级清理与地图浮动 × 关闭按钮(类百度地图) (`e0b1207`)
13
+ - docs: 示例 demo 版本号从 1.6.2/1.8.3 统一到 1.8.4 (`317ee4f`)
14
+ - docs: 更新示例工程仓库链接为 zhf121/anov-gis-demo-* (`7bd59e4`)
15
+ - Merge branch 'versionUpdate' into 'master' (`1226990`)
16
+ - feat: 优化悬浮岛标注样式,支持 LABEL_CONFIG 变量控制 (`3f94c12`)
17
+ - feat: 新增悬浮岛地理可视化效果 (dog2) (`a8b996b`)
18
+
19
+ [1.8.5]: https://172.16.222.31:8866/
20
+
21
+ ## [1.8.4] - 2026-07-22
22
+
23
+ - daohangline (`c13c777`)
24
+ - s (`8a8b61b`)
25
+ - feat: 新增 DaoHangLine 导航线材质及示例 (`af029f9`)
26
+ - s (`182648d`)
27
+ - docs: 补充 1.8.2 / 1.8.3 的 CHANGELOG 条目 (`e23638c`)
28
+ - feat: 添加 npm run release 自动发版脚本 (`efc3916`)
29
+
30
+ [1.8.4]: https://172.16.222.31:8866/
31
+
32
+ ## [1.8.2] - 2026-07-16
33
+
34
+ - fix: @anov/gis 1.8.2 UMD导出修复与Cesium 1.143兼容 (`258eb67`)
35
+
36
+ [1.8.2]: https://172.16.222.31:8866/
37
+
38
+ ## [1.8.3] - 2026-07-17
39
+
40
+ - docs: 重新生成 README 并发布 1.8.3 (`4daf920`)
41
+
42
+ [1.8.3]: https://172.16.222.31:8866/
43
+
44
+ ## [1.8.1] - 2026-07-16
45
+
46
+ ### 重大变更
47
+
48
+ - **Cesium 主版本升级**:从 `1.95` 升级到 `1.143`,涉及多项破坏性 API 变更(`fromUrl` 异步化、`Model.fromGltf` 改为 `Model.fromGltfAsync`、`terrainProvider` 同步赋值改为 `scene.setTerrain()`、移除 `Cesium.defaultValue`、默认 WebGL2 + GLSL ES 3),SDK 源码、构建配置、所有示例及 GLSL 着色器均完成适配改造。
49
+
50
+ ### 新增
51
+
52
+ - 暗色地图主题逻辑支持 Cesium 1.143 异步图层:`layerAdded` 触发时 `imageryProvider` 可能尚未就绪,改在 `readyEvent` 回调中再应用主题滤镜([src/base/controls/LayerControlUitl.js](src/base/controls/LayerControlUitl.js))。
53
+ - 优化 `examples/public/examples/html/graphics/divInfo.html` 信息框示例页面(结构与样式调整)。
54
+
55
+ ### 变更
56
+
57
+ - 示例 `examples/public/examples/html/event/imagerylayerpopup.html` 影像底图切换为公开 `mars:hf` WMS 服务。
58
+ - 示例 `examples/public/examples/html/event/imagerylayerpopup_line.html` 与 `imagerylayerpopup_point.html` 影像底图切换为公开 `ahocevar` WMS 服务。
59
+ - 示例 `examples/public/examples/html/offlinemap/xyz.html` 完善 `Viewer` 构造参数(显式 `geocoderType`、启用 `preserveDrawingBuffer`、关闭 `showRenderLoopErrors` 等)。
60
+ - 示例 `examples/public/examples/html/material/PolylineLighting.html` 数据源由远程 geojson 切换为本地 `modelData/json/partchaoyangroad1.json`。
61
+ - 示例 `examples/src/demo/menus.js` 移除「自定义搜索_陕西」菜单项。
62
+
63
+ ### 修复
64
+
65
+ - **API 适配(Cesium 1.143 异步 / 新 API)**:
66
+ - `Model.fromGltf` 替换为 `Model.fromGltfAsync`,并修正 `Promise` 未 `.then()` 就直接 `add` 到 `primitives` 的问题(涉及 `loadSnow`、`PostFog`、`rainSnowPlane`、`wall_drawCommand2_Test_1`、`analysis/test` 等示例)。
67
+ - `Tileset` 适配:`readyEvent` 替换为 `fromUrl` 异步模式,重构 `src/base/viewer/Viewer.js`、`src/graphic/Graphic.js`、`src/graphic/model/Tileset.js`。
68
+ - `CesiumTerrainProvider` 同步构造改为异步 `fromUrl`,重构 `src/layer/terrain/TerrainFactory.js` 及相关示例。
69
+ - `ArcGisMapServerImageryProvider` 改用 `fromUrl` 异步构造。
70
+ - `BaiduImageryProvider` 补充 `errorEvent` 等缺失的 getter 以适配 1.143。
71
+ - `src/graphic/primitive/ModelPrimitive.js` 重构适配 Cesium 1.143 模型基元逻辑。
72
+ - **着色器适配(Cesium 1.143 / WebGL2 / GLSL ES 3)**:
73
+ - `examples/html/performance/` 目录全部自定义 shader 与示例(`CustomPrimitive` / `BuildingsPipline` / `TreesPipline` / `WaterPipline` / `dileiPipline` / `wall_*` / `textureRectangle` 等)适配 GLSL ES 3。
74
+ - `examples/public/examples/html/effect/poststage.html` 后期处理 shader 适配 WebGL2。
75
+ - 天气特效 `FogShader` / `RainShader` / `SnowShader` 及 `Cloud.js` 适配 GLSL ES 3。
76
+ - `src/layer/imagery/ImageryThemeGL.js` 替换已移除的 `Cesium.defaultValue`,修复 GLSL 着色器编译失败导致的暗色系影像失效问题。
77
+ - `examples/public/examples/html/material/waterShadertoy.html` 着色器中的 `texture2D` 替换为 `texture`,`normalMap_0` 改为通过 `Cesium.buildModuleUrl` 加载 Cesium 内置资源。
78
+ - **其它功能修复**:
79
+ - 修复 `examples/public/examples/html/geojsonLayer/billboard.html` 移除多余 `heightReference` 贴地引用后,Cesium 1.143 升级导致地图移动时建筑漂移的问题。
80
+ - 移除 `Cesium.Cartesian3.fromDegrees` 和 `Cesium.Color.fromCssColorString` 多余的 `new` 关键字。
81
+ - 修复 `setBaseUrl` 的 `IS_PROD` 条件限制导致 Cesium 升级后非生产环境资源加载失败。
82
+ - 修复 Cesium 升级后 `examples/public/examples/html/offlinemap/xyz.html` 因缺少覆盖全球的底图导致地图空白。
83
+ - 修复 `examples/public/examples/html/offlinemap/terrain.html` 异步 `fromUrl` API 调用方式。
84
+ - **构建修复**:
85
+ - 修复 Node.js 22 下 OpenSSL 兼容性问题,`examples/package.json` 启动脚本添加 `--openssl-legacy-provider` 参数。
86
+
87
+ ### 移除
88
+
89
+ 无。
90
+
91
+ ### 安全
92
+
93
+ 无。
94
+
95
+ [1.8.1]: https://172.16.222.31:8866/
package/README.md CHANGED
@@ -1,127 +1,339 @@
1
- # 介绍
2
- @anov/gis核心是一个前端js库,代码主要基于WebGL和Cesium进行开发和封装,可用于构建在浏览器和移动端运行的三维WebGIS应用系统。
3
- 使用ANOV-GIS二次开发SDK能够缩短开发周期。另外,提供ANOV-UI组件,使用户可以零代码开发GIS系统。
1
+ # @anov/gis
4
2
 
5
- ## 1、功能结构
6
- @anov/gis的用途包括二三维场景可视化、数据动画和特效、空间分析、地图交互和工具等。
3
+ > 基于 Cesium 封装的二三维 WebGIS 二次开发 SDK
7
4
 
8
- 具体分成如下几个大的模块:
5
+ [![npm version](https://img.shields.io/badge/npm-1.8.4-blue.svg)](https://www.npmjs.com/package/@anov/gis)
6
+ [![Cesium](https://img.shields.io/badge/Cesium-1.143-green.svg)](https://cesium.com/)
7
+ [![license](https://img.shields.io/badge/license-ISC-orange.svg)](LICENSE)
9
8
 
10
- 1、图层Layer,加载和管理基础图层,包括影像、地形、三维模型、矢量、dom图层、以及有多个实体元素Grapic构成的要素图层。
9
+ `@anov/gis` 是一个面向浏览器与移动端的三维 WebGIS 前端 SDK,核心基于 Cesium 二次封装而成,可用于快速搭建二三维场景可视化、空间分析、数据可视化与地图交互类应用。同时提供 `@anov/gis-ui` 组件库,支持零代码搭建 GIS 系统。
11
10
 
12
- 2、材质Material,给点、线、面添加材质,比如圆扩散效果、流动线效果,流动水面材质,图片纹理等。
11
+ ---
13
12
 
14
- 3、空间分析Analysis,结合影像、地形、模型等数据实现GIS相关的分析功能,呈现分析结果和效果。
13
+ ## 目录
15
14
 
16
- 4、场景Effect,包括三维特效,漫游,摄像机,天气特效雨雪雾等。
15
+ - [项目特性](#项目特性)
16
+ - [功能结构](#功能结构)
17
+ - [快速上手](#快速上手)
18
+ - [SDK 安装](#sdk-安装)
19
+ - [工程模板](#工程模板)
20
+ - [功能示例](#功能示例)
21
+ - [项目结构](#项目结构)
22
+ - [开发与构建](#开发与构建)
23
+ - [配套包](#配套包)
24
+ - [文档与教程](#文档与教程)
25
+ - [更新日志](#更新日志)
17
26
 
18
- 5、基础Core,静态工具函数库,事件,数据计算,坐标转换等。
27
+ ---
19
28
 
20
- 6、实体元素Grapic,添加到三维球上的entity/primitive,或者dom元素,多个Grapic构成图层Layer。
21
- <img src="http://hvv1235667147:8888/cesiumdemo/data/mytest/datas/anov-gis/gnjg.png" />
29
+ ## 项目特性
30
+
31
+ - **二三维一体化**:在同一个 Viewer 内支持 2D / 2.5D / 3D 模式切换,倾斜摄影、3D Tiles、地形、影像一站式加载。
32
+ - **海量数据可视化**:基于 Primitive + 自定义 Shader 实现高效的点、线、面、体渲染,支持聚合、热力图、风场、动态水面等。
33
+ - **空间分析能力**:内置测量、标绘、地形剖面、水淹分析、模型剖切、坐标转换等常用 GIS 分析工具。
34
+ - **场景特效体系**:雨雪雾天气、后期处理(Bloom / 景深 / 夜视 / 黑白 / 亮度)、流动线、扩散波、雷达扫描等开箱即用。
35
+ - **国产地图适配**:原生支持天地图、高德、腾讯、百度、GeoQ、ArcGIS 等国内外主流地图服务与坐标系互转。
36
+ - **多端构建**:基于 Cesium 1.143 + WebGL2 + GLSL ES 3,浏览器、移动端、Electron、iframe 嵌入场景全面适配。
37
+ - **零代码拓展**:通过 `@anov/gis-ui` 组件库配合 ANOV-UI,可在不写代码的情况下完成 GIS 系统搭建。
38
+
39
+ ---
40
+
41
+ ## 功能结构
42
+
43
+ SDK 源码按职责划分为 7 大模块,目录组织见 `src/`:
44
+
45
+ | 模块 | 路径 | 职责 |
46
+ | --- | --- | --- |
47
+ | **基础 Core** | `src/base` | Viewer / 控件 / 事件 / 工具函数 / 数学 / 坐标转换 / 数据解析 |
48
+ | **图层 Layer** | `src/layer` | 影像、地形、矢量、3D Tiles、要素图层的加载与管理 |
49
+ | **材质 Material** | `src/material` | 点 / 线 / 面 / 体材质库(流动线、扩散波、雷达、水面等) |
50
+ | **空间分析 Analysis** | `src/analysis` | 标绘、测量、剖切、水淹、热力图、风场、地形剖面、坐标编辑 |
51
+ | **场景 Effect** | `src/effect` | 漫游、动画、天气、后期处理、Shader 特效 |
52
+ | **实体元素 Graphic** | `src/graphic` | Entity / Primitive / DOM 三类元素的封装,多 Graphic 组成 Layer |
53
+ | **应用 API** | `src/application`、`packages/applyfn` | 业务级开箱即用 API(已抽离为 `@anov/gis.applyfn` 包) |
54
+
55
+ ### 模块一:图层 Layer
56
+
57
+ 负责加载和管理底图、专题图层与业务图层。
58
+
59
+ - **影像图层**:`TdtImageryProvider`(天地图)、`AmapImageryProvider`(高德)、`TencentImageryProvider`(腾讯)、`BaiduImageryProvider`(百度)、`GoogleImageryProvider`、`ArcGIS`、`GeoQ`、自定义 URL Template、`SplitImageLayer`(卷帘对比)、`ImageryThemeGL`(暗色 / 滤镜主题)。
60
+ - **地形图层**:`TerrainFactory` 统一封装 `CesiumTerrain`、`ArcGISTerrain`、本地 terrain、自定义高度图等,支持异步 `fromUrl` 方式加载。
61
+ - **矢量 / 要素图层**:`GeoJsonLayer`、`CzmlLayer`、`KmlLayer`、`GpxLayer`、`TopoJsonLayer`、`HtmlLayer`、`LabelLayer`、`ClusterLayer`、`PrimitiveLayer`、`TilesetLayer`、`FeatureGridLayer`、`DynamicLayer`。
62
+
63
+ ### 模块二:材质 Material
64
+
65
+ 为点 / 线 / 面 / 体添加丰富的视觉表现。
66
+
67
+ - 尾迹线、泛光线、图片纹理流动线、竖向流光、抛物线。
68
+ - 圆形扩散波纹、扩散模糊圆、图片雷达扫描。
69
+ - 流动水面、波浪水面(`wave` / `water`),支持与地形贴合。
70
+ - 渐变材质、墙体材质、圆 / 圆波。
71
+
72
+ ### 模块三:空间分析 Analysis
73
+
74
+ - **标绘 Draw**:点、线、面、圆、矩形绘制。
75
+ - **测量 Measure**:距离、面积、高度、角度测量。
76
+ - **剖切 Clipping**:模型 / 地形剖切,支持任意方向。
77
+ - **水淹分析 WaterAnalysis**:基于地形的水淹模拟。
78
+ - **热力图 HeatMap**:基于 Canvas / WebGL 双引擎。
79
+ - **风场 Wind**:矢量场可视化。
80
+ - **水坝放水仿真**:结合地形的流体效果。
81
+ - **地形剖面**:沿任意折线生成剖面图。
82
+ - **坐标编辑**:位置编辑器、坐标轴平面。
83
+
84
+ ### 模块四:场景 Effect
85
+
86
+ - **天气特效**:`Weather` 抽象下雨、下雪、雾、云。
87
+ - **漫游**:键盘漫游、路径漫游(`RoamingPath`)、飞行巡视。
88
+ - **动画**:定位飞行、环绕旋转、开场动画。
89
+ - **后期处理**:`Bloom`(泛光)、`LensFlare`(镜头光晕)、`DepthOfField`(景深)、`NightVision`(夜视)、`Silhouette`(轮廓)、`BlackAndWhite`(黑白)、`Brightness`(亮度)。
90
+
91
+ ### 模块五:基础 Core
92
+
93
+ - **Viewer**:`src/base/viewer/Viewer.js`,封装 Cesium Viewer 并扩展 `geocoderType`、`copyRight`、`showMapInfo`、`showFPS`、`flyDuration`、`language`、`scaleRatio`、`drillPick`、`minZoom/maxZoom/minPitch/maxPitch` 等参数。
94
+ - **工具函数**:坐标转换 `CoordUtil`、WKT 解析 `WktUtil`、空间计算 `ShapeUtil`、`PlotUtil`、要素信息 `FeatureInfoUtil`、定位 `LocateUtil`、`CesiumView` 等。
95
+ - **事件**:`MouseEvent`、`SceneEvent`、`ViewerEvent`、`LayerEventType` 等事件体系。
96
+ - **控件**:底图切换器、POI 搜索、坐标显示、版权信息、翻译、图层控制。
97
+
98
+ ### 模块六:实体元素 Graphic
99
+
100
+ - **Vector**:Point / Polyline / Polygon / Circle / Ellipse / Rectangle / Wall / Box / Cylinder / Ellipsoid / Corridor / PolylineVolume / Plane / Billboard / Label。
101
+ - **Model**:单模型(`Model`)、3D Tiles(`Tileset`)。
102
+ - **Primitive**:基于 Primitive 实现的高性能自定义图元(点云 / 线 / 体 / 视频 / 云 / 地面多边形 / 反弹标牌 / 扫描圆 / 流动水面 / 灯柱 / 渐变墙 / 电磁球 / 尾迹 / 模型集合等)。
103
+
104
+ ### 模块七:应用 API(@anov/gis.applyfn)
105
+
106
+ 将常用业务场景封装为更高层的 API(如一键城市、园区、数字孪生场景),源码位于 `packages/applyfn/`,可独立发布与引用。
107
+
108
+ ---
109
+
110
+ ## 快速上手
22
111
 
23
- ## 2、SDK安装
24
- ### 方式1
25
- 下载SDK二次开发包,然后引入css和js文件即可。
26
- ```html
27
- <link rel="stylesheet" href="./anov-gis-sdk/index.css">
28
- <script src="./anov-gis-sdk/index.js"></script>
29
- ```
30
- #### 完整demo
31
112
  ```html
32
113
  <!DOCTYPE html>
33
- <html lang="en">
114
+ <html lang="zh-CN">
34
115
  <head>
35
- <title>@anov/gis最简完整demo</title>
36
- <script type="text/javascript" src="https://unpkg.com/@anov/gis@1.6.2/dist/index.js"></script>
37
- <link rel="stylesheet" href="https://unpkg.com/@anov/gis@1.6.2/dist/index.css">
116
+ <meta charset="UTF-8">
117
+ <title>@anov/gis 最简 Demo</title>
118
+ <script src="https://unpkg.com/@anov/gis@1.8.4/dist/index.js"></script>
119
+ <link rel="stylesheet" href="https://unpkg.com/@anov/gis@1.8.4/dist/index.css">
38
120
  <style>
39
- html,
40
- body,
41
- #app,
42
- #cesiumContainer {
43
- margin: 0;
44
- padding: 0;
45
- width: 100%;
46
- height: 100%;
47
- overflow: hidden;
48
- }
121
+ html, body, #cesiumContainer { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; }
49
122
  </style>
50
123
  </head>
51
124
  <body>
52
- <div id="cesiumContainer">
53
- </div>
125
+ <div id="cesiumContainer"></div>
54
126
  <script>
55
- ANOVGIS.setBaseUrl('https://unpkg.com/@anov/gis@1.6.2/dist/resources/');
56
- window.viewer = new ANOVGIS.Viewer("cesiumContainer", {
57
- geocoderType: ANOVGIS.GeocoderType.TIANDITU,
58
- vrButton: false,
59
- baseLayerPicker: true,
60
- fullscreenButton: true,
61
- homeButton: true,
62
- sceneModePicker: true,
63
- navigationHelpButton: true,
64
- copyRight: false,
65
- showMapInfo: true,
127
+ // 设置静态资源 baseUrl(必须在 new Viewer 之前调用)
128
+ ANOVGIS.setBaseUrl('https://unpkg.com/@anov/gis@1.8.4/dist/resources/');
129
+
130
+ window.viewer = new ANOVGIS.Viewer('cesiumContainer', {
131
+ geocoderType: ANOVGIS.GeocoderType.TIANDITU,
132
+ vrButton: false,
133
+ baseLayerPicker: true,
134
+ fullscreenButton: true,
135
+ homeButton: true,
136
+ sceneModePicker: true,
137
+ navigationHelpButton: true,
138
+ copyRight: false,
139
+ showMapInfo: true,
66
140
  });
67
141
  </script>
68
142
  </body>
69
143
  </html>
70
144
  ```
71
145
 
72
- ### 方式2
73
- #### 1、安装
74
- `NPM / YARN` 的方式安装,它能更好地和 webpack 打包工具配合使用。
146
+ > 注:必须通过 **HTTP 服务**打开页面(不能直接 `file://` 打开),否则 Cesium 静态资源加载会失败。
147
+
148
+ ---
149
+
150
+ ## SDK 安装
151
+
152
+ ### 方式一:UMD 引入(推荐用于快速验证)
153
+
154
+ 下载 SDK 二次开发包后直接引入:
155
+
156
+ ```html
157
+ <link rel="stylesheet" href="./anov-gis-sdk/index.css">
158
+ <script src="./anov-gis-sdk/index.js"></script>
159
+ ```
160
+
161
+ 如需使用业务级 API,再引入:
75
162
 
76
- ```shell
77
- npm i @anov/gis
78
- -------------------------
163
+ ```html
164
+ <script src="./anov-gis-sdk/applyfn.js"></script>
165
+ ```
166
+
167
+ ### 方式二:NPM / YARN
168
+
169
+ 适合与 webpack、vite、vue-cli 等现代构建工具搭配使用。
170
+
171
+ ```bash
172
+ npm install @anov/gis
173
+ # 或
79
174
  yarn add @anov/gis
80
175
  ```
81
- 安装后在相关使用文件中引入使用即可
176
+
177
+ 引入使用:
178
+
82
179
  ```js
83
- import "@anov/gis/dist/index.css";
84
- import ANOVGIS from "@anov/gis";
180
+ import '@anov/gis/dist/index.css';
181
+ import ANOVGIS from '@anov/gis';
182
+
183
+ ANOVGIS.setBaseUrl('/anov-gis-sdk/resources/');
184
+ const viewer = new ANOVGIS.Viewer('cesiumContainer', {
185
+ geocoderType: ANOVGIS.GeocoderType.TIANDITU,
186
+ baseLayer: ANOVGIS.ImageryType.TIANDITU,
187
+ });
85
188
  ```
86
- #### 2、配置
87
189
 
88
- 下面介绍常见的几种技术栈下配置方法。
190
+ > **关于静态资源**:Cesium 自带 `Workers/`、`Assets/`、`Widgets/`、`ThirdParty/` 多个静态目录,SDK 默认期望它们位于 `/anov-gis-sdk/resources/`。可通过 `ANOVGIS.setBaseUrl(...)` 修改该路径;若使用打包工具,请参考下方 vue-cli / vite 工程模板中的 `copy-webpack-plugin` 或 `vite-plugin-static-copy` 配置。
191
+
192
+ ---
89
193
 
90
- ##### 2.1 vue-cli 技术栈时 的项目配置修改
91
- 工程模板下载: [anov-gis-vue](https://github.com/948033145/anov-gis-vue2)
194
+ ## 工程模板
92
195
 
93
- <!-- 工程模板压缩包:[anov-gis-vue2.x](http://hvv1235667147:8888/cesiumdemo/data/mytest/datas/anov-gis-vue2.zip) -->
196
+ 为减少 Cesium 静态资源拷贝、Webpack / Vite 配置等样板代码,提供开箱即用的示例工程:
94
197
 
95
- ##### 2.2 vue-vite 技术栈时 的项目配置修改
96
- 工程模板源码下载: [anov-gis-vite](https://github.com/948033145/anov-gis-vite)
198
+ | 技术栈 | 仓库 |
199
+ | --- | --- |
200
+ | 纯 HTML | [anov-gis-demo-html](https://github.com/zhf121/anov-gis-demo-html) |
201
+ | Vue 2 + vue-cli | [anov-gis-demo-vue2](https://github.com/zhf121/anov-gis-demo-vue2) |
202
+ | Vue 3 + Vite | [anov-gis-demo-vue3](https://github.com/zhf121/anov-gis-demo-vue3) |
203
+
204
+ ---
205
+
206
+ ## 功能示例
207
+
208
+ 本仓库自带完整示例站点,位于 `examples/` 目录,使用 Vue + Element UI 构建,分类组织在 `examples/src/demo/menus.js`。
209
+
210
+ | 分类 | 内容 |
211
+ | --- | --- |
212
+ | **影像地形** | 天地图 / 高德 / 腾讯 / 百度 / ArcGIS 影像、ArcGIS / Cesium 地形、矢量切片、暗色主题、影像调色 |
213
+ | **离线地图服务** | WMS / WMTS / WFS / XYZ 切片、单张图片影像、离线地形 |
214
+ | **材质** | 泛光尾迹线、尾迹线、图片轨迹线、流动线、抛物线、竖向流光、扩散波、雷达、水面 |
215
+ | **geo 图层** | 矢量墙体、矢量区域、点 / 海量点 / 线图层、矢量面建筑、聚合、自定义广告牌 |
216
+ | **三维模型** | 倾斜摄影、自定义 Shader、雨雪立体十字片、雾、物体积雪 |
217
+ | **实体元素** | 点 / 线 / 面 / 文字 / 电子标牌 / div 信息框 |
218
+ | **交互和事件** | Popup、Tooltip、Highlight、WMS 点击查询、3D Tiles 交互查询 |
219
+ | **三维分析** | 标绘、测量、水淹、热力、风场、水坝放水、地形剖面、坐标编辑、自定义搜索 |
220
+ | **第三方库融合** | 融合 three.js |
221
+ | **场景与特效** | 定位、天空盒、天气特效、漫游、后期处理、开场动画 |
222
+ | **综合案例** | 数字城市、数字孪生 |
223
+ | **城市引擎** | 自定义图元(cityengine) |
224
+
225
+ 本地运行示例站点:
226
+
227
+ ```bash
228
+ # 安装根依赖(构建 SDK)
229
+ npm install
230
+
231
+ # 构建 SDK 并启动示例
232
+ npm run test
233
+ # 浏览器访问 http://localhost:8080
234
+ ```
97
235
 
98
- <!-- 工程模板压缩包:[anov-gis-vite](http://hvv1235667147:8888/cesiumdemo/data/mytest/datas/anov-gis-vite.zip) -->
236
+ 其它常用脚本:
99
237
 
100
- ## 3、快速上手
101
- ```javascript
102
- window.viewer = new ANOVGIS.Viewer("cesiumContainer", {
103
- geocoderType: ANOVGIS.GeocoderType.TIANDITU,
104
- vrButton: false,
105
- baseLayerPicker: true,
106
- fullscreenButton: true,
107
- homeButton: true,
108
- sceneModePicker: true,
109
- navigationHelpButton: true,
110
- showMapInfo: true,
111
- drillPick: false,
112
- });
238
+ ```bash
239
+ npm run dev # 启动 SDK watch 构建 + 文档 + 示例
240
+ npm run build # 完整构建:SDK + 文档 + 站点
241
+ npm run testfn # 启动 applyfn 子包示例
242
+ npm run testcity # 启动 cityengine 子包示例
113
243
  ```
114
- <img src="http://hvv1235667147:8888/cesiumdemo/data/mytest/datas/anov-gis/ksss.png" />
115
244
 
116
- ## 4、官网
245
+ ---
246
+
247
+ ## 项目结构
248
+
249
+ ```
250
+ ANOV-GIS/
251
+ ├── src/ # SDK 源码
252
+ │ ├── base/ # 基础:Viewer、控件、事件、工具、数学
253
+ │ ├── layer/ # 图层:影像 / 地形 / 矢量
254
+ │ ├── material/ # 材质:property / shader / type
255
+ │ ├── analysis/ # 分析:标绘 / 测量 / 剖切 / 水淹 / 热力 / 风场
256
+ │ ├── effect/ # 特效:动画 / 漫游 / 后期处理 / 天气
257
+ │ ├── graphic/ # 实体:vector / model / primitive
258
+ │ ├── application/ # 应用层封装
259
+ │ ├── thirdpard/ # 第三方库适配
260
+ │ ├── copyright/ # 版权信息
261
+ │ ├── themes/ # 主题 CSS
262
+ │ ├── ANOVGIS.js # ANOVGIS 命名空间与 mixin 挂载
263
+ │ └── index.js # SDK 总入口
264
+ ├── packages/ # 独立发布的子包
265
+ │ ├── applyfn/ # @anov/gis.applyfn 业务级应用 API
266
+ │ ├── ui/ # @anov/gis.ui ANOV-UI 组件库
267
+ │ └── cesiumthreelib/ # three.js 融合库
268
+ ├── examples/ # 示例站点(Vue + Element UI)
269
+ │ ├── public/examples/html/ # 全部功能 HTML 演示
270
+ │ └── src/demo/ # 示例菜单与说明
271
+ ├── docs/ # VuePress 文档站
272
+ ├── config/ # Webpack 配置与部署配置
273
+ ├── tools/ # JSDoc 工具配置
274
+ ├── other_system/ # 其它子工程(如 anov-gis-scene 数字孪生场景)
275
+ ├── dist/ # 构建产物
276
+ ├── config/ # 构建与部署配置
277
+ ├── index.js # 根入口(指向 src/index)
278
+ ├── package.json
279
+ └── README.md
280
+ ```
281
+
282
+ ---
283
+
284
+ ## 开发与构建
285
+
286
+ | 命令 | 作用 |
287
+ | --- | --- |
288
+ | `npm install` | 安装根工程依赖(包含 Cesium 1.143、VuePress、Webpack 5 等) |
289
+ | `npm run dev:sdk` | 监听模式构建 SDK |
290
+ | `npm run build:sdk` | 生产模式构建 SDK |
291
+ | `npm run doc` | 生成 JSDoc API 文档 |
292
+ | `npm run docs:dev` | 启动 VuePress 文档本地服务 |
293
+ | `npm run docs:build` | 构建 VuePress 文档 |
294
+ | `npm run build` | 一键构建 SDK + 文档 + 示例 |
295
+ | `npm run test` / `npm run test2` | 构建 SDK 并启动示例站点 |
296
+ | `npm run build:types` | 生成 TypeScript 类型声明(`tsc`) |
297
+ | `npm run dev:applyfn` | 构建 applyfn 业务 API 子包 |
298
+ | `npm run dev:city` | 构建 cityengine 城市引擎子包 |
299
+
300
+ > ⚠️ Node.js 17+ 在某些子工程启动时需添加 `--openssl-legacy-provider` 参数(`examples/package.json` 已默认配置)。
301
+
302
+ ---
303
+
304
+ ## 配套包
305
+
306
+ | 包名 | 作用 |
307
+ | --- | --- |
308
+ | `@anov/gis` | 核心 SDK(本仓库主包) |
309
+ | `@anov/gis.applyfn` | 业务级应用 API(数字孪生、园区、城市等开箱场景) |
310
+ | `@anov/gis.ui` | ANOV-UI 组件库,支持零代码搭建 GIS 系统 |
311
+ | `@anov/gis.cesiumthreelib` | Cesium × three.js 融合库 |
312
+
313
+ ---
314
+
315
+ ## 文档与教程
316
+
317
+ - 在线文档站:<http://172.16.222.31:8866/>
318
+ - VuePress 源码:`docs/`
319
+ - JSDoc API 文档:构建后在 `dist/Documentation/` 下
320
+ - 示例站点:本地 `npm run test` 启动后访问
321
+
322
+ ---
323
+
324
+ ## 更新日志
117
325
 
118
- ## 5、教程
326
+ 详细变更请见 [CHANGELOG.md](./CHANGELOG.md)。
119
327
 
120
- http://hvv1235667147:3313/
328
+ 当前最新版本 **1.8.4**,基于 **Cesium 1.143**(WebGL2 + GLSL ES 3),主要变更:
121
329
 
122
- ## 6、功能示例
330
+ - Cesium 主版本由 1.95 升级到 1.143,适配 `fromUrl` 异步 API、`Model.fromGltfAsync`、`Cesium.Terrain.fromWorldTerrain()` + `scene.setTerrain()`、移除 `Cesium.defaultValue`、默认 WebGL2 等破坏性变更。
331
+ - 重写所有自定义 Shader(性能示例、后期处理、雨雪雾、暗色主题)以兼容 GLSL ES 3。
332
+ - 修复 `setBaseUrl` 在非生产环境下的资源加载问题、iframe 中 `about:srcdoc` 跨域判定问题。
333
+ - 新增多个示例页面与材质、动态水面、自定义搜索等示例。
123
334
 
124
- http://172.16.222.31:8866/
335
+ ---
125
336
 
126
- http://hvv1235667147:3313/
337
+ ## 许可证
127
338
 
339
+ [ISC](LICENSE) © ANOV