@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.
- package/.claude/settings.local.json +37 -0
- package/CHANGELOG.md +95 -0
- package/README.md +297 -85
- package/dist/index.css +1 -1
- package/dist/index.js +18012 -58
- package/dist/resources/Assets/approximateTerrainHeights.json +1 -1
- package/dist/resources/ThirdParty/Workers/package.json +1 -0
- package/dist/resources/ThirdParty/Workers/zip-web-worker.js +1 -0
- package/dist/resources/ThirdParty/draco_decoder.wasm +0 -0
- package/dist/resources/ThirdParty/google-earth-dbroot-parser.js +1 -1
- package/dist/resources/ThirdParty/wasm_splats_bg.wasm +0 -0
- package/dist/resources/ThirdParty/zip-module.wasm +0 -0
- package/dist/resources/Widgets/Animation/Animation.css +127 -1
- package/dist/resources/Widgets/Animation/lighter.css +70 -1
- package/dist/resources/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -1
- package/dist/resources/Widgets/BaseLayerPicker/lighter.css +22 -1
- package/dist/resources/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -1
- package/dist/resources/Widgets/CesiumInspector/CesiumInspector.css +113 -1
- package/dist/resources/Widgets/CesiumWidget/CesiumWidget.css +119 -1
- package/dist/resources/Widgets/CesiumWidget/lighter.css +14 -1
- package/dist/resources/Widgets/FullscreenButton/FullscreenButton.css +8 -1
- package/dist/resources/Widgets/Geocoder/Geocoder.css +70 -1
- package/dist/resources/Widgets/Geocoder/lighter.css +17 -1
- package/dist/resources/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
- package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/azureAerial.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/azureRoads.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/googleContour.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/googleRoadmap.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/googleSatellite.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/dist/resources/Widgets/InfoBox/InfoBox.css +92 -1
- package/dist/resources/Widgets/InfoBox/InfoBoxDescription.css +178 -1
- package/dist/resources/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -1
- package/dist/resources/Widgets/NavigationHelpButton/lighter.css +38 -1
- package/dist/resources/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -1
- package/dist/resources/Widgets/ProjectionPicker/ProjectionPicker.css +38 -1
- package/dist/resources/Widgets/SceneModePicker/SceneModePicker.css +56 -1
- package/dist/resources/Widgets/SelectionIndicator/SelectionIndicator.css +20 -1
- package/dist/resources/Widgets/Timeline/Timeline.css +103 -1
- package/dist/resources/Widgets/Timeline/lighter.css +23 -1
- package/dist/resources/Widgets/VRButton/VRButton.css +8 -1
- package/dist/resources/Widgets/Viewer/Viewer.css +107 -1
- package/dist/resources/Widgets/VoxelInspector/VoxelInspector.css +16 -0
- package/dist/resources/Widgets/lighter.css +237 -1
- package/dist/resources/Widgets/lighterShared.css +46 -1
- package/dist/resources/Widgets/shared.css +103 -1
- package/dist/resources/Widgets/widgets.css +1342 -1
- package/dist/resources/Workers/chunk-2AIOP76V.js +25 -0
- package/dist/resources/Workers/chunk-37ETYCYM.js +25 -0
- package/dist/resources/Workers/chunk-3E7FIXV7.js +25 -0
- package/dist/resources/Workers/chunk-3N6OW3OY.js +25 -0
- package/dist/resources/Workers/{ArcType-de5d8777.js → chunk-3VUCSHGU.js} +2 -2
- package/dist/resources/Workers/chunk-4KY4VMEH.js +25 -0
- package/dist/resources/Workers/chunk-4WQ4VT5S.js +25 -0
- package/dist/resources/Workers/chunk-5AAMOBJK.js +25 -0
- package/dist/resources/Workers/chunk-5DGDPBQU.js +25 -0
- package/dist/resources/Workers/chunk-5VFNV3LW.js +25 -0
- package/dist/resources/Workers/chunk-5Z36UAB7.js +25 -0
- package/dist/resources/Workers/chunk-6AEO73KW.js +25 -0
- package/dist/resources/Workers/chunk-6DLS2UKD.js +25 -0
- package/dist/resources/Workers/{GeometryAttributes-734a3446.js → chunk-6EINM7EY.js} +2 -2
- package/dist/resources/Workers/chunk-6W2XFGWI.js +25 -0
- package/dist/resources/Workers/chunk-7GCQCPLT.js +25 -0
- package/dist/resources/Workers/chunk-7TN3TOVQ.js +25 -0
- package/dist/resources/Workers/chunk-A4I25VN7.js +25 -0
- package/dist/resources/Workers/{GeometryOffsetAttribute-59b14f45.js → chunk-AJH5KBOO.js} +2 -2
- package/dist/resources/Workers/chunk-AKELQO2L.js +25 -0
- package/dist/resources/Workers/chunk-ALIHIWSS.js +25 -0
- package/dist/resources/Workers/chunk-ATKJRN2G.js +25 -0
- package/dist/resources/Workers/chunk-BDWA46XV.js +25 -0
- package/dist/resources/Workers/chunk-BKIYVF74.js +25 -0
- package/dist/resources/Workers/chunk-BPABSUDY.js +25 -0
- package/dist/resources/Workers/chunk-D3TVNJ6W.js +25 -0
- package/dist/resources/Workers/chunk-DM7KUSL2.js +25 -0
- package/dist/resources/Workers/chunk-E7EKLP3B.js +25 -0
- package/dist/resources/Workers/{GeometryInstance-4bfcfe78.js → chunk-G2QPRBZU.js} +2 -2
- package/dist/resources/Workers/chunk-G3GDHHWO.js +25 -0
- package/dist/resources/Workers/chunk-G72JFEXW.js +25 -0
- package/dist/resources/Workers/chunk-IAE6APK2.js +25 -0
- package/dist/resources/Workers/chunk-IEITL4VO.js +25 -0
- package/dist/resources/Workers/chunk-LHBFSFJE.js +25 -0
- package/dist/resources/Workers/chunk-LN2UT4R3.js +25 -0
- package/dist/resources/Workers/chunk-LNJEJFV5.js +66 -0
- package/dist/resources/Workers/{defaultValue-97284df2.js → chunk-ML6MR2RA.js} +2 -2
- package/dist/resources/Workers/chunk-MOHWP7VV.js +25 -0
- package/dist/resources/Workers/chunk-NZBME2JK.js +25 -0
- package/dist/resources/Workers/chunk-P5EFSOUF.js +25 -0
- package/dist/resources/Workers/chunk-P7N43FDO.js +25 -0
- package/dist/resources/Workers/{combine-d11b1f00.js → chunk-PEDE2P3Q.js} +2 -2
- package/dist/resources/Workers/chunk-PSIOCLX7.js +25 -0
- package/dist/resources/Workers/chunk-PYMQNHFO.js +25 -0
- package/dist/resources/Workers/chunk-QJTXFT4R.js +25 -0
- package/dist/resources/Workers/chunk-QNPYEODC.js +25 -0
- package/dist/resources/Workers/chunk-QS7V5G6Y.js +25 -0
- package/dist/resources/Workers/chunk-RDX4QSUS.js +25 -0
- package/dist/resources/Workers/chunk-RESOCDYZ.js +25 -0
- package/dist/resources/Workers/chunk-SRA5MBUT.js +25 -0
- package/dist/resources/Workers/chunk-TCOMWBL2.js +25 -0
- package/dist/resources/Workers/chunk-UA7PAMQQ.js +25 -0
- package/dist/resources/Workers/chunk-W5OEMTMB.js +25 -0
- package/dist/resources/Workers/chunk-WGIRJIIK.js +25 -0
- package/dist/resources/Workers/{CylinderGeometryLibrary-24ad1484.js → chunk-XRJOFXJF.js} +2 -2
- package/dist/resources/Workers/chunk-YP4SXJYZ.js +25 -0
- package/dist/resources/Workers/chunk-Z7Q4J7AE.js +25 -0
- package/dist/resources/Workers/combineGeometry.js +2 -2
- package/dist/resources/Workers/createBoxGeometry.js +2 -2
- package/dist/resources/Workers/createBoxOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createCircleGeometry.js +2 -2
- package/dist/resources/Workers/createCircleOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createCoplanarPolygonGeometry.js +2 -2
- package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createCorridorGeometry.js +2 -2
- package/dist/resources/Workers/createCorridorOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createCylinderGeometry.js +2 -2
- package/dist/resources/Workers/createCylinderOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createEllipseGeometry.js +2 -2
- package/dist/resources/Workers/createEllipseOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createEllipsoidGeometry.js +2 -2
- package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createFrustumGeometry.js +2 -2
- package/dist/resources/Workers/createFrustumOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createGeometry.js +2 -2
- package/dist/resources/Workers/createGroundPolylineGeometry.js +2 -2
- package/dist/resources/Workers/createPlaneGeometry.js +2 -2
- package/dist/resources/Workers/createPlaneOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createPolygonGeometry.js +2 -2
- package/dist/resources/Workers/createPolygonOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createPolylineGeometry.js +2 -2
- package/dist/resources/Workers/createPolylineVolumeGeometry.js +2 -2
- package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createRectangleGeometry.js +2 -2
- package/dist/resources/Workers/createRectangleOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createSimplePolylineGeometry.js +2 -2
- package/dist/resources/Workers/createSphereGeometry.js +2 -2
- package/dist/resources/Workers/createSphereOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createTaskProcessorWorker.js +2 -2
- package/dist/resources/Workers/createVectorTileClampedPolylines.js +2 -2
- package/dist/resources/Workers/createVectorTileGeometries.js +2 -2
- package/dist/resources/Workers/createVectorTilePoints.js +2 -2
- package/dist/resources/Workers/createVectorTilePolygons.js +2 -2
- package/dist/resources/Workers/createVectorTilePolylines.js +2 -2
- package/dist/resources/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -0
- package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
- package/dist/resources/Workers/createVerticesFromHeightmap.js +2 -4
- package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
- package/dist/resources/Workers/createWallGeometry.js +2 -2
- package/dist/resources/Workers/createWallOutlineGeometry.js +2 -2
- package/dist/resources/Workers/decodeDraco.js +2 -2
- package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
- package/dist/resources/Workers/decodeI3S.js +25 -0
- package/dist/resources/Workers/gaussianSplatSorter.js +25 -0
- package/dist/resources/Workers/{_commonjsHelpers-3aae1032-65601a27.js → gaussianSplatTextureGenerator.js} +2 -2
- package/dist/resources/Workers/incrementallyBuildTerrainPicker.js +25 -0
- package/dist/resources/Workers/transcodeKTX2.js +2 -2
- package/dist/resources/Workers/transferTypedArrayTest.js +25 -1
- package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +2 -2
- package/dist/resources/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -0
- package/dist/resources/static/js/viewerCesiumNavigationMixin.js +1 -1
- package/package.json +88 -84
- package/scripts/release.js +323 -0
- package/dist/resources/ThirdParty/Workers/basis_transcoder.js +0 -1
- package/dist/resources/ThirdParty/Workers/draco_decoder_nodejs.js +0 -1
- package/dist/resources/ThirdParty/Workers/pako_deflate.min.js +0 -1
- package/dist/resources/ThirdParty/Workers/pako_inflate.min.js +0 -1
- package/dist/resources/ThirdParty/Workers/z-worker-pako.js +0 -1
- package/dist/resources/Widgets/Images/ImageryProviders/esriNationalGeographic.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/esriWorldImagery.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/esriWorldStreetMap.png +0 -0
- package/dist/resources/Workers/AttributeCompression-5744d52e.js +0 -25
- package/dist/resources/Workers/AxisAlignedBoundingBox-b1c095aa.js +0 -25
- package/dist/resources/Workers/BoundingRectangle-2b0ebbdd.js +0 -25
- package/dist/resources/Workers/BoxGeometry-acd0c697.js +0 -25
- package/dist/resources/Workers/Color-c7fd1307.js +0 -25
- package/dist/resources/Workers/ComponentDatatype-e7fbe225.js +0 -25
- package/dist/resources/Workers/CoplanarPolygonGeometryLibrary-edaba606.js +0 -25
- package/dist/resources/Workers/CorridorGeometryLibrary-ab3e6481.js +0 -25
- package/dist/resources/Workers/CylinderGeometry-679e50b4.js +0 -25
- package/dist/resources/Workers/EllipseGeometry-e6f948bb.js +0 -25
- package/dist/resources/Workers/EllipseGeometryLibrary-0adcaeed.js +0 -25
- package/dist/resources/Workers/EllipseOutlineGeometry-418492dc.js +0 -25
- package/dist/resources/Workers/EllipsoidGeodesic-ed8a0e40.js +0 -25
- package/dist/resources/Workers/EllipsoidGeometry-539fb9e2.js +0 -25
- package/dist/resources/Workers/EllipsoidOutlineGeometry-6c13760b.js +0 -25
- package/dist/resources/Workers/EllipsoidRhumbLine-60f14314.js +0 -25
- package/dist/resources/Workers/EllipsoidTangentPlane-7ae496b2.js +0 -25
- package/dist/resources/Workers/EncodedCartesian3-a9a8a281.js +0 -25
- package/dist/resources/Workers/FrustumGeometry-be9b9578.js +0 -25
- package/dist/resources/Workers/GeometryAttribute-fd1d7e90.js +0 -25
- package/dist/resources/Workers/GeometryPipeline-a847e31f.js +0 -25
- package/dist/resources/Workers/IndexDatatype-65271ba3.js +0 -25
- package/dist/resources/Workers/IntersectionTests-33ace2d6.js +0 -25
- package/dist/resources/Workers/Matrix2-73789715.js +0 -25
- package/dist/resources/Workers/OrientedBoundingBox-ee3011f6.js +0 -25
- package/dist/resources/Workers/Plane-e916220d.js +0 -25
- package/dist/resources/Workers/PolygonGeometryLibrary-0f0c78d4.js +0 -25
- package/dist/resources/Workers/PolygonPipeline-00dc0c6e.js +0 -25
- package/dist/resources/Workers/PolylinePipeline-ebd42f23.js +0 -25
- package/dist/resources/Workers/PolylineVolumeGeometryLibrary-a4b92b4e.js +0 -25
- package/dist/resources/Workers/PrimitivePipeline-42d69f96.js +0 -25
- package/dist/resources/Workers/RectangleGeometryLibrary-cff60d30.js +0 -25
- package/dist/resources/Workers/RuntimeError-4f8ec8a2.js +0 -25
- package/dist/resources/Workers/TerrainEncoding-080f16eb.js +0 -25
- package/dist/resources/Workers/Transforms-d3d3b2a9.js +0 -66
- package/dist/resources/Workers/VertexFormat-9886cb81.js +0 -25
- package/dist/resources/Workers/WallGeometryLibrary-27f90b78.js +0 -25
- package/dist/resources/Workers/WebGLConstants-6da700a2.js +0 -25
- package/dist/resources/Workers/WebMercatorProjection-04ef6bc3.js +0 -25
- package/dist/resources/Workers/arrayRemoveDuplicates-6f91355d.js +0 -25
- package/dist/resources/Workers/cesiumWorkerBootstrapper.js +0 -6
package/package.json
CHANGED
|
@@ -1,84 +1,88 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@anov/gis",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "基于Cesium封装的二次开发SDK",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"homepage": "http://172.16.222.31:8866",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"dev": "npm run copy_css_dev && npm run doc && npm run dev:sdk && npm run dev:applyfn
|
|
9
|
-
"build": "npm run clean && npm run copy_css && npm run build:sdk && npm run doc && npm run docs:build && ncp ./docs/.vuepress/dist ./dist/docs && ncp ./dist/Documentation ./dist/docs/Documentation && rimraf ./dist/Documentation",
|
|
10
|
-
"dev:sdk": "npm run copy_css_dev && cross-env NODE_ENV=development webpack --config config/webpack.config.js --mode development",
|
|
11
|
-
"build:sdk": "npm run clean && npm run copy_css && cross-env NODE_ENV=production webpack --config config/webpack.config.js --mode production",
|
|
12
|
-
"doc": "npx jsdoc --configure tools/jsdoc/conf.json",
|
|
13
|
-
"clean": "rimraf ./dist",
|
|
14
|
-
"pdoc": "npm run docs:dev",
|
|
15
|
-
"copy_css_dev": "ncp src/themes node_modules/cesium/Build/CesiumUnminified/as_css",
|
|
16
|
-
"copy_css": "ncp src/themes node_modules/cesium/Build/Cesium/as_css",
|
|
17
|
-
"test": "npm run copydeployConfig && cd ./examples && npm run dev",
|
|
18
|
-
"test2": "npm run copydeployConfig && cd ./examples && npm run dev2",
|
|
19
|
-
"testfn": "npm run copydeployConfig && cd ./examples && npm run dev_applyfn",
|
|
20
|
-
"testcity": "npm run copydeployConfig && cd ./examples && npm run dev_city",
|
|
21
|
-
"serve": "npm run copydeployConfig && cd ./examples && npm run serve",
|
|
22
|
-
"copydeployConfig": "rimraf ./config/deployConfig.js && ncp ./config/config_nei.js ./config/deployConfig.js",
|
|
23
|
-
"copydeployConfigwai": "rimraf ./config/deployConfig.js && ncp ./config/config_wai.js ./config/deployConfig.js",
|
|
24
|
-
"buildexample": "npm run copydeployConfig && cd ./examples && npm run build",
|
|
25
|
-
"buildexamplewai": "npm run copydeployConfigwai && cd ./examples && npm run build",
|
|
26
|
-
"docs:dev": "vuepress dev docs",
|
|
27
|
-
"docs:build": "vuepress build docs",
|
|
28
|
-
"dev:applyfn": "webpack --config config/webpack.config.applyfn.js --mode development",
|
|
29
|
-
"build:applyfn": "cross-env NODE_ENV=production webpack --config config/webpack.config.applyfn.js --mode production",
|
|
30
|
-
"dev:ui": "webpack --config config/webpack.config.ui.js --mode development",
|
|
31
|
-
"build:ui": "cross-env NODE_ENV=production webpack --config config/webpack.config.ui.js --mode production",
|
|
32
|
-
"dev:city": "rimraf ./packages/cityengine/dist && cd ./packages/cityengine && npm run build",
|
|
33
|
-
"build:city": "&& cd ./packages/cityengine && npm run build:prod",
|
|
34
|
-
"copy_applyfn": "ncp packages/applyfn/dist ./examples/public/anov-gis-sdk",
|
|
35
|
-
"copy_city": "ncp packages/cityengine/dist ./examples/public/anov-gis-sdk/city"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"@babel/
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@vuepress/plugin-
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"webpack-
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@anov/gis",
|
|
3
|
+
"version": "1.8.5",
|
|
4
|
+
"description": "基于Cesium封装的二次开发SDK",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"homepage": "http://172.16.222.31:8866",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"dev": "npm run copy_css_dev && npm run doc && npm run dev:sdk && npm run dev:applyfn",
|
|
9
|
+
"build": "npm run clean && npm run copy_css && npm run build:sdk && npm run doc && npm run docs:build && ncp ./docs/.vuepress/dist ./dist/docs && ncp ./dist/Documentation ./dist/docs/Documentation && rimraf ./dist/Documentation",
|
|
10
|
+
"dev:sdk": "npm run copy_css_dev && cross-env NODE_ENV=development webpack --config config/webpack.config.js --mode development",
|
|
11
|
+
"build:sdk": "npm run clean && npm run copy_css && cross-env NODE_ENV=production webpack --config config/webpack.config.js --mode production",
|
|
12
|
+
"doc": "npx jsdoc --configure tools/jsdoc/conf.json",
|
|
13
|
+
"clean": "rimraf ./dist",
|
|
14
|
+
"pdoc": "npm run docs:dev",
|
|
15
|
+
"copy_css_dev": "ncp src/themes node_modules/cesium/Build/CesiumUnminified/as_css",
|
|
16
|
+
"copy_css": "ncp src/themes node_modules/cesium/Build/Cesium/as_css",
|
|
17
|
+
"test": "npm run copydeployConfig && cd ./examples && npm run dev",
|
|
18
|
+
"test2": "npm run copydeployConfig && cd ./examples && npm run dev2",
|
|
19
|
+
"testfn": "npm run copydeployConfig && cd ./examples && npm run dev_applyfn",
|
|
20
|
+
"testcity": "npm run copydeployConfig && cd ./examples && npm run dev_city",
|
|
21
|
+
"serve": "npm run copydeployConfig && cd ./examples && npm run serve",
|
|
22
|
+
"copydeployConfig": "rimraf ./config/deployConfig.js && ncp ./config/config_nei.js ./config/deployConfig.js",
|
|
23
|
+
"copydeployConfigwai": "rimraf ./config/deployConfig.js && ncp ./config/config_wai.js ./config/deployConfig.js",
|
|
24
|
+
"buildexample": "npm run copydeployConfig && cd ./examples && npm run build",
|
|
25
|
+
"buildexamplewai": "npm run copydeployConfigwai && cd ./examples && npm run build",
|
|
26
|
+
"docs:dev": "vuepress dev docs",
|
|
27
|
+
"docs:build": "vuepress build docs",
|
|
28
|
+
"dev:applyfn": "webpack --config config/webpack.config.applyfn.js --mode development",
|
|
29
|
+
"build:applyfn": "cross-env NODE_ENV=production webpack --config config/webpack.config.applyfn.js --mode production",
|
|
30
|
+
"dev:ui": "webpack --config config/webpack.config.ui.js --mode development",
|
|
31
|
+
"build:ui": "cross-env NODE_ENV=production webpack --config config/webpack.config.ui.js --mode production",
|
|
32
|
+
"dev:city": "rimraf ./packages/cityengine/dist && cd ./packages/cityengine && npm run build",
|
|
33
|
+
"build:city": "&& cd ./packages/cityengine && npm run build:prod",
|
|
34
|
+
"copy_applyfn": "ncp packages/applyfn/dist ./examples/public/anov-gis-sdk",
|
|
35
|
+
"copy_city": "ncp packages/cityengine/dist ./examples/public/anov-gis-sdk/city",
|
|
36
|
+
"build:types": "tsc",
|
|
37
|
+
"release": "node scripts/release.js"
|
|
38
|
+
},
|
|
39
|
+
"author": "zhf",
|
|
40
|
+
"license": "ISC",
|
|
41
|
+
"types": "dist/index.d.ts",
|
|
42
|
+
"typings": "dist/index.d.ts",
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@babel/core": "^7.17.9",
|
|
45
|
+
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
46
|
+
"@babel/plugin-transform-runtime": "^7.17.0",
|
|
47
|
+
"@babel/polyfill": "^7.12.1",
|
|
48
|
+
"@babel/preset-env": "^7.16.11",
|
|
49
|
+
"@turf/turf": "^6.5.0",
|
|
50
|
+
"@vuepress/plugin-container": "^2.0.0-beta.25",
|
|
51
|
+
"@vuepress/plugin-docsearch": "^2.0.0-beta.25",
|
|
52
|
+
"@vuepress/plugin-nprogress": "^2.0.0-beta.25",
|
|
53
|
+
"@vuepress/plugin-register-components": "^2.0.0-beta.23",
|
|
54
|
+
"@vuepress/plugin-search": "^2.0.0-beta.25",
|
|
55
|
+
"babel-eslint": "^10.1.0",
|
|
56
|
+
"babel-loader": "^8.2.4",
|
|
57
|
+
"cesium": "^1.143.0",
|
|
58
|
+
"compression-webpack-plugin": "^9.2.0",
|
|
59
|
+
"copy-webpack-plugin": "^10.2.4",
|
|
60
|
+
"cross-env": "^7.0.3",
|
|
61
|
+
"css-loader": "^5.2.6",
|
|
62
|
+
"css-minimizer-webpack-plugin": "^3.4.1",
|
|
63
|
+
"file-loader": "^6.2.0",
|
|
64
|
+
"fs-extra": "^10.0.1",
|
|
65
|
+
"http-server": "^14.1.1",
|
|
66
|
+
"javascript-obfuscator": "^4.0.0",
|
|
67
|
+
"jsdoc": "^3.6.10",
|
|
68
|
+
"mini-css-extract-plugin": "^2.6.0",
|
|
69
|
+
"ncp": "^2.0.0",
|
|
70
|
+
"prettier": "^2.6.2",
|
|
71
|
+
"progress-bar-webpack-plugin": "^2.1.0",
|
|
72
|
+
"rimraf": "^3.0.2",
|
|
73
|
+
"sass": "^1.50.0",
|
|
74
|
+
"sass-loader": "^12.6.0",
|
|
75
|
+
"shelljs": "^0.8.5",
|
|
76
|
+
"style-loader": "^3.3.1",
|
|
77
|
+
"terser-webpack-plugin": "^5.3.3",
|
|
78
|
+
"typescript": "^5.3.0",
|
|
79
|
+
"url-loader": "^4.1.1",
|
|
80
|
+
"vuepress": "^2.0.0-beta.25",
|
|
81
|
+
"webpack": "^5.72.0",
|
|
82
|
+
"webpack-bundle-analyzer": "^4.5.0",
|
|
83
|
+
"webpack-cli": "^4.9.2",
|
|
84
|
+
"webpack-glsl-loader": "^1.0.1",
|
|
85
|
+
"webpack-obfuscator": "^3.5.1",
|
|
86
|
+
"wellknown": "^0.5.0"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 一键发版脚本:递增版本号(默认 patch)+ 自动从 git log 生成 CHANGELOG 段落
|
|
3
|
+
*
|
|
4
|
+
* 用法:
|
|
5
|
+
* node scripts/release.js # patch (默认)
|
|
6
|
+
* node scripts/release.js --dry-run # 只预览,不写文件
|
|
7
|
+
* node scripts/release.js --minor # 手动指定 minor 递增
|
|
8
|
+
* node scripts/release.js --major # 手动指定 major 递增
|
|
9
|
+
* node scripts/release.js --force # 跳过 CHANGELOG 滞后检查,直接发版
|
|
10
|
+
* node scripts/release.js --backfill # 回填 CHANGELOG 缺失的版本条目
|
|
11
|
+
* node scripts/release.js --backfill --dry-run
|
|
12
|
+
*
|
|
13
|
+
* 自动变更来源:
|
|
14
|
+
* 1. 优先:找到最近一次把 version 设为当前版本的 commit(上次发版点),取之后的 commits
|
|
15
|
+
* 2. 回退:用最近一次修改 CHANGELOG.md 的 commit 作为锚点
|
|
16
|
+
*
|
|
17
|
+
* 行为:
|
|
18
|
+
* - 按 semver 递增 package.json 的 version(默认 patch)
|
|
19
|
+
* - 检测 CHANGELOG 滞后于 package.json 时,自动报错并提示 --backfill
|
|
20
|
+
* - 在 CHANGELOG.md 顶部插入新版本段落,内容为提交列表(短 hash + subject)
|
|
21
|
+
* - backfill 模式:扫描 git 历史里所有版本号,补齐 CHANGELOG 缺失的条目
|
|
22
|
+
* - 不做任何 git 操作 —— commit / tag 由用户手动完成
|
|
23
|
+
*/
|
|
24
|
+
const fs = require('fs');
|
|
25
|
+
const path = require('path');
|
|
26
|
+
const { spawnSync } = require('child_process');
|
|
27
|
+
|
|
28
|
+
const ROOT = path.join(__dirname, '..');
|
|
29
|
+
const PKG_PATH = path.join(ROOT, 'package.json');
|
|
30
|
+
const CHANGELOG_PATH = path.join(ROOT, 'CHANGELOG.md');
|
|
31
|
+
const LINK_URL = 'https://172.16.222.31:8866/';
|
|
32
|
+
|
|
33
|
+
// ---- semver & 工具函数 ---------------------------------------------------
|
|
34
|
+
|
|
35
|
+
function bumpVersion(current, level) {
|
|
36
|
+
const [major, minor, patch] = current.split('.').map(Number);
|
|
37
|
+
if (level === 'major') return `${major + 1}.0.0`;
|
|
38
|
+
if (level === 'minor') return `${major}.${minor + 1}.0`;
|
|
39
|
+
return `${major}.${minor}.${patch + 1}`;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function formatDate(d = new Date()) {
|
|
43
|
+
const pad = (n) => String(n).padStart(2, '0');
|
|
44
|
+
return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}`;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function buildEntry(version, date, body) {
|
|
48
|
+
return `## [${version}] - ${date}\n\n${body}\n\n[${version}]: ${LINK_URL}\n\n`;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// ---- git 查询 ------------------------------------------------------------
|
|
52
|
+
|
|
53
|
+
function git(args) {
|
|
54
|
+
const result = spawnSync('git', ['log', ...args], { encoding: 'utf8' });
|
|
55
|
+
return result.status === 0 ? result.stdout : '';
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function gitRaw(args) {
|
|
59
|
+
return spawnSync('git', args, { encoding: 'utf8' });
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// 找到最近一次把 version 字段设为 currentVersion 的 commit
|
|
63
|
+
function findLastBumpCommit(currentVersion) {
|
|
64
|
+
const escaped = currentVersion.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
65
|
+
const out = git(['--oneline', '-G', `"version":\\s*"${escaped}"`, '--', 'package.json']);
|
|
66
|
+
const lines = out.split('\n').filter(Boolean);
|
|
67
|
+
if (!lines.length) return null;
|
|
68
|
+
const last = lines[lines.length - 1];
|
|
69
|
+
return last.split(/\s+/)[0];
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// 回退方案:最近一次修改 CHANGELOG.md 的 commit
|
|
73
|
+
function findLastChangelogCommit() {
|
|
74
|
+
const hash = git(['-1', '--pretty=format:%H', '--', 'CHANGELOG.md']);
|
|
75
|
+
return hash || null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function getCommitsSince(sinceHash, untilHash = 'HEAD') {
|
|
79
|
+
const out = git([`${sinceHash}..${untilHash}`, '--pretty=format:%h %s']);
|
|
80
|
+
return out ? out.split('\n').filter(Boolean) : [];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// 找到 git 历史里所有稳定版本号变更的锚点(按时间正序,自动去重)
|
|
84
|
+
function findAllBumpAnchors() {
|
|
85
|
+
const out = git(['--reverse', '--pretty=format:%H', '--', 'package.json']);
|
|
86
|
+
const hashes = out.split('\n').filter(Boolean);
|
|
87
|
+
|
|
88
|
+
const firstSeen = new Map(); // version -> 首次出现的 hash(用于排序)
|
|
89
|
+
const lastSeen = new Map(); // version -> 最后出现的 hash(用作锚点)
|
|
90
|
+
|
|
91
|
+
for (const hash of hashes) {
|
|
92
|
+
const result = gitRaw(['show', `${hash}:package.json`]);
|
|
93
|
+
if (result.status !== 0) continue;
|
|
94
|
+
try {
|
|
95
|
+
const pkg = JSON.parse(result.stdout);
|
|
96
|
+
const v = pkg.version;
|
|
97
|
+
// 只考虑稳定版本 (1.2.3),跳过 0.0.0 / 1.2.3-beta.0 等
|
|
98
|
+
if (!v || !/^\d+\.\d+\.\d+$/.test(v)) continue;
|
|
99
|
+
if (!firstSeen.has(v)) firstSeen.set(v, hash);
|
|
100
|
+
lastSeen.set(v, hash); // 后出现会覆盖,保留最后一次(实际发版点)
|
|
101
|
+
} catch {}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// 按 Map 插入顺序返回(就是时间正序)
|
|
105
|
+
const anchors = [];
|
|
106
|
+
for (const [version] of firstSeen) {
|
|
107
|
+
anchors.push({ hash: lastSeen.get(version), version });
|
|
108
|
+
}
|
|
109
|
+
return anchors;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function compareSemver(a, b) {
|
|
113
|
+
const [aM, am, ap] = a.split('.').map(Number);
|
|
114
|
+
const [bM, bm, bp] = b.split('.').map(Number);
|
|
115
|
+
return (aM - bM) || (am - bm) || (ap - bp);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function getCommitDate(hash) {
|
|
119
|
+
const out = git(['-1', '--pretty=format:%ai', hash]);
|
|
120
|
+
const date = out.split(' ')[0];
|
|
121
|
+
return date || formatDate();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// ---- 文本处理 ------------------------------------------------------------
|
|
125
|
+
|
|
126
|
+
function parseChangelogVersions(content) {
|
|
127
|
+
const set = new Set();
|
|
128
|
+
const re = /##\s+\[(\d+\.\d+\.\d+)\]/g;
|
|
129
|
+
let m;
|
|
130
|
+
while ((m = re.exec(content)) !== null) set.add(m[1]);
|
|
131
|
+
return set;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function formatCommitsAsList(commits) {
|
|
135
|
+
if (!commits.length) return '无变更';
|
|
136
|
+
return commits
|
|
137
|
+
.map((line) => {
|
|
138
|
+
const idx = line.indexOf(' ');
|
|
139
|
+
if (idx === -1) return `- ${line}`;
|
|
140
|
+
return `- ${line.slice(idx + 1)} (\`${line.slice(0, idx)}\`)`;
|
|
141
|
+
})
|
|
142
|
+
.join('\n');
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// 取 prev 到 current 之间的 commits —— 中间严格区间 + 加上 currentHash 自身
|
|
146
|
+
// (发版 commit message 通常就是本次的变更说明)
|
|
147
|
+
function getCommitsForVersion(prevHash, currentHash) {
|
|
148
|
+
// 中间:严格在 prev 之后、current 之前。用 currentHash^ 排除 currentHash 本身
|
|
149
|
+
const middle = prevHash ? getCommitsSince(prevHash, `${currentHash}^`) : [];
|
|
150
|
+
|
|
151
|
+
// 把当前版本的发版 commit 自身放到最前
|
|
152
|
+
const subject = git(['-1', '--pretty=format:%s', currentHash]).trim();
|
|
153
|
+
const bumpLine = `${currentHash.slice(0, 7)} ${subject}`;
|
|
154
|
+
|
|
155
|
+
return [bumpLine, ...middle];
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// ---- 模式 1:正常发版 -----------------------------------------------------
|
|
159
|
+
|
|
160
|
+
function runRelease(level, dryRun, force) {
|
|
161
|
+
const pkg = JSON.parse(fs.readFileSync(PKG_PATH, 'utf8'));
|
|
162
|
+
const oldVersion = pkg.version;
|
|
163
|
+
const newVersion = bumpVersion(oldVersion, level);
|
|
164
|
+
|
|
165
|
+
// 检测 CHANGELOG 是否滞后于 package.json(典型场景:先发版后补文档)
|
|
166
|
+
if (!force) {
|
|
167
|
+
const changelog = fs.readFileSync(CHANGELOG_PATH, 'utf8');
|
|
168
|
+
const existing = parseChangelogVersions(changelog);
|
|
169
|
+
if (!existing.has(oldVersion)) {
|
|
170
|
+
const allAnchors = findAllBumpAnchors();
|
|
171
|
+
const sortedListed = [...existing].sort(compareSemver);
|
|
172
|
+
const maxListed = sortedListed[sortedListed.length - 1];
|
|
173
|
+
const missing = maxListed
|
|
174
|
+
? allAnchors.filter((a) => compareSemver(a.version, maxListed) > 0)
|
|
175
|
+
: allAnchors;
|
|
176
|
+
|
|
177
|
+
console.error(`✗ CHANGELOG 滞后于 package.json`);
|
|
178
|
+
console.error(`✗ package.json 当前版本: ${oldVersion}`);
|
|
179
|
+
console.error(`✗ CHANGELOG 最新版本: ${maxListed || '(无)'}`);
|
|
180
|
+
if (missing.length) {
|
|
181
|
+
console.error(`✗ 缺失版本: ${missing.map((m) => m.version).join(', ')}`);
|
|
182
|
+
}
|
|
183
|
+
console.error('');
|
|
184
|
+
console.error('请先跑补齐命令:');
|
|
185
|
+
console.error(' npm run release -- --backfill');
|
|
186
|
+
console.error('');
|
|
187
|
+
console.error('或跳过检查直接发版(忽略历史缺失):');
|
|
188
|
+
console.error(' npm run release -- --force');
|
|
189
|
+
process.exit(1);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
const bumpAnchor = findLastBumpCommit(oldVersion);
|
|
194
|
+
const changelogAnchor = bumpAnchor ? null : findLastChangelogCommit();
|
|
195
|
+
const anchor = bumpAnchor || changelogAnchor;
|
|
196
|
+
const anchorSource = bumpAnchor ? `上次 bump ${oldVersion}` : '上次修改 CHANGELOG.md';
|
|
197
|
+
|
|
198
|
+
if (!anchor) {
|
|
199
|
+
console.error(`✗ 未找到 ${oldVersion} 之后的发版锚点`);
|
|
200
|
+
console.error(' 请确认在 git 仓库中执行');
|
|
201
|
+
process.exit(1);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
const commits = getCommitsSince(anchor);
|
|
205
|
+
if (commits.length === 0) {
|
|
206
|
+
console.error(`✗ 自 ${anchorSource}(${anchor.slice(0, 7)})以来无新提交,无需发版`);
|
|
207
|
+
console.error(' 请先 commit 一些改动再发版');
|
|
208
|
+
process.exit(1);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const description = formatCommitsAsList(commits);
|
|
212
|
+
const entry = buildEntry(newVersion, formatDate(), description);
|
|
213
|
+
|
|
214
|
+
console.log(`✓ package.json: ${oldVersion} -> ${newVersion}`);
|
|
215
|
+
console.log(`✓ 锚点: ${anchorSource} (${anchor.slice(0, 7)})`);
|
|
216
|
+
console.log(`✓ 收集到 ${commits.length} 条提交`);
|
|
217
|
+
console.log('');
|
|
218
|
+
console.log('--- 即将写入 CHANGELOG.md 的段落 ---');
|
|
219
|
+
console.log(entry);
|
|
220
|
+
console.log('-----------------------------------');
|
|
221
|
+
|
|
222
|
+
if (dryRun) {
|
|
223
|
+
console.log('[dry-run] 未修改任何文件');
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
pkg.version = newVersion;
|
|
228
|
+
fs.writeFileSync(PKG_PATH, JSON.stringify(pkg, null, 4) + '\n', 'utf8');
|
|
229
|
+
|
|
230
|
+
let changelog = fs.readFileSync(CHANGELOG_PATH, 'utf8');
|
|
231
|
+
const firstSectionIdx = changelog.indexOf('\n## [');
|
|
232
|
+
if (firstSectionIdx === -1) {
|
|
233
|
+
changelog = changelog.replace(/\s+$/, '') + '\n\n' + entry;
|
|
234
|
+
} else {
|
|
235
|
+
changelog = changelog.slice(0, firstSectionIdx + 1) + entry + changelog.slice(firstSectionIdx + 1);
|
|
236
|
+
}
|
|
237
|
+
fs.writeFileSync(CHANGELOG_PATH, changelog, 'utf8');
|
|
238
|
+
|
|
239
|
+
console.log('待手动提交:');
|
|
240
|
+
console.log(' git add package.json CHANGELOG.md');
|
|
241
|
+
console.log(` git commit -m "release: 发布 v${newVersion}"`);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// ---- 模式 2:回填历史缺失版本 ---------------------------------------------
|
|
245
|
+
|
|
246
|
+
function runBackfill(dryRun) {
|
|
247
|
+
const changelog = fs.readFileSync(CHANGELOG_PATH, 'utf8');
|
|
248
|
+
const existing = parseChangelogVersions(changelog);
|
|
249
|
+
|
|
250
|
+
const anchors = findAllBumpAnchors();
|
|
251
|
+
if (anchors.length === 0) {
|
|
252
|
+
console.error('✗ 未找到任何稳定版本 bump 记录(需在 git 仓库中执行)');
|
|
253
|
+
process.exit(1);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
// 仅补齐 CHANGELOG 已有最新版本之后的缺失版本(避免从 1.0.x 一路回填)
|
|
257
|
+
const sortedListed = [...existing].sort(compareSemver);
|
|
258
|
+
const maxListed = sortedListed[sortedListed.length - 1];
|
|
259
|
+
const missing = maxListed
|
|
260
|
+
? anchors.filter((a) => compareSemver(a.version, maxListed) > 0)
|
|
261
|
+
: anchors;
|
|
262
|
+
|
|
263
|
+
if (missing.length === 0) {
|
|
264
|
+
console.log(`✓ CHANGELOG 已是最新,所有 >= ${maxListed} 的版本都已记录`);
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
console.log(`✓ 发现 ${missing.length} 个缺失版本(${maxListed} 之后): ${missing.map((m) => m.version).join(', ')}`);
|
|
269
|
+
console.log('');
|
|
270
|
+
|
|
271
|
+
const newEntries = [];
|
|
272
|
+
for (const m of missing) {
|
|
273
|
+
const idx = anchors.indexOf(m);
|
|
274
|
+
const prevHash = idx === 0 ? null : anchors[idx - 1].hash;
|
|
275
|
+
const commits = getCommitsForVersion(prevHash, m.hash);
|
|
276
|
+
|
|
277
|
+
const body = commits.length ? formatCommitsAsList(commits) : '无变更';
|
|
278
|
+
const date = getCommitDate(m.hash);
|
|
279
|
+
newEntries.push(buildEntry(m.version, date, body));
|
|
280
|
+
|
|
281
|
+
console.log(`--- [${m.version}] - ${date} ---`);
|
|
282
|
+
console.log(body);
|
|
283
|
+
console.log('');
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
if (dryRun) {
|
|
287
|
+
console.log('[dry-run] 未修改任何文件');
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
let updated = changelog;
|
|
292
|
+
const firstSectionIdx = updated.indexOf('\n## [');
|
|
293
|
+
const combined = newEntries.join('');
|
|
294
|
+
if (firstSectionIdx === -1) {
|
|
295
|
+
updated = updated.replace(/\s+$/, '') + '\n\n' + combined;
|
|
296
|
+
} else {
|
|
297
|
+
updated = updated.slice(0, firstSectionIdx + 1) + combined + updated.slice(firstSectionIdx + 1);
|
|
298
|
+
}
|
|
299
|
+
fs.writeFileSync(CHANGELOG_PATH, updated, 'utf8');
|
|
300
|
+
|
|
301
|
+
const versions = missing.map((m) => m.version).join(' / ');
|
|
302
|
+
console.log(`✓ CHANGELOG.md 已补充 ${missing.length} 个版本段落`);
|
|
303
|
+
console.log('');
|
|
304
|
+
console.log('待手动提交:');
|
|
305
|
+
console.log(' git add CHANGELOG.md');
|
|
306
|
+
console.log(` git commit -m "docs: 补充 ${versions} 的 CHANGELOG 条目"`);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
// ---- 入口 ----------------------------------------------------------------
|
|
310
|
+
|
|
311
|
+
const args = process.argv.slice(2);
|
|
312
|
+
const dryRun = args.includes('--dry-run');
|
|
313
|
+
const backfill = args.includes('--backfill');
|
|
314
|
+
const force = args.includes('--force');
|
|
315
|
+
let level = 'patch';
|
|
316
|
+
if (args.includes('--minor')) level = 'minor';
|
|
317
|
+
else if (args.includes('--major')) level = 'major';
|
|
318
|
+
|
|
319
|
+
if (backfill) {
|
|
320
|
+
runBackfill(dryRun);
|
|
321
|
+
} else {
|
|
322
|
+
runRelease(level, dryRun, force);
|
|
323
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var BASIS=function(){var r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(r=r||__filename),function(e){var t,n,o=void 0!==(e=e||{})?e:{};o.ready=new Promise((function(r,e){t=r,readyPromiseRejectza=e}));var i,a={};for(i in o)o.hasOwnProperty(i)&&(a[i]=o[i]);var u,s,c=[],f=!1,l=!1;f="object"==typeof window,l="function"==typeof importScripts,u="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,s=!f&&!u&&!l;var p,d,h,v,y,m="";u?(m=l?require("path").dirname(m)+"/":__dirname+"/",p=function(r,e){return v||(v=require("fs")),y||(y=require("path")),r=y.normalize(r),v.readFileSync(r,e?null:"utf8")},h=function(r){var e=p(r,!0);return e.buffer||(e=new Uint8Array(e)),$(e.buffer),e},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),c=process.argv.slice(2),process.on("uncaughtException",(function(r){if(!(r instanceof Ne))throw r})),process.on("unhandledRejection",er),o.inspect=function(){return"[Emscripten Module object]"}):s?("undefined"!=typeof read&&(p=function(r){return read(r)}),h=function(r){var e;return"function"==typeof readbuffer?new Uint8Array(readbuffer(r)):($("object"==typeof(e=read(r,"binary"))),e)},"undefined"!=typeof scriptArgs?c=scriptArgs:void 0!==arguments&&(c=arguments),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(f||l)&&(l?m=self.location.href:"undefined"!=typeof document&&document.currentScript&&(m=document.currentScript.src),r&&(m=r),m=0!==m.indexOf("blob:")?m.substr(0,m.lastIndexOf("/")+1):"",p=function(r){var e=new XMLHttpRequest;return e.open("GET",r,!1),e.send(null),e.responseText},l&&(h=function(r){var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),d=function(r,e,t){var n=new XMLHttpRequest;n.open("GET",r,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):t()},n.onerror=t,n.send(null)});var g=o.print||console.log.bind(console),w=o.printErr||console.warn.bind(console);for(i in a)a.hasOwnProperty(i)&&(o[i]=a[i]);a=null,o.arguments&&(c=o.arguments),o.thisProgram&&o.thisProgram,o.quit&&o.quit;var T,b;o.wasmBinary&&(T=o.wasmBinary),o.noExitRuntime,"object"!=typeof WebAssembly&&er("no native wasm support detected");var C=!1;function $(r,e){r||er("Assertion failed: "+e)}var P="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function A(r,e,t){for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.subarray&&P)return P.decode(r.subarray(e,o));for(var i="";e<o;){var a=r[e++];if(128&a){var u=63&r[e++];if(192!=(224&a)){var s=63&r[e++];if((a=224==(240&a)?(15&a)<<12|u<<6|s:(7&a)<<18|u<<12|s<<6|63&r[e++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|u)}else i+=String.fromCharCode(a)}return i}function _(r,e){return r?A(E,r,e):""}var S,W,E,F,k,O,j,R,I,x="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function D(r,e){for(var t=r,n=t>>1,o=n+e/2;!(n>=o)&&k[n];)++n;if((t=n<<1)-r>32&&x)return x.decode(E.subarray(r,t));for(var i="",a=0;!(a>=e/2);++a){var u=F[r+2*a>>1];if(0==u)break;i+=String.fromCharCode(u)}return i}function U(r,e,t){if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=e,o=(t-=2)<2*r.length?t/2:r.length,i=0;i<o;++i){var a=r.charCodeAt(i);F[e>>1]=a,e+=2}return F[e>>1]=0,e-n}function B(r){return 2*r.length}function M(r,e){for(var t=0,n="";!(t>=e/4);){var o=O[r+4*t>>2];if(0==o)break;if(++t,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n}function V(r,e,t){if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=e,o=n+t-4,i=0;i<r.length;++i){var a=r.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&r.charCodeAt(++i)),O[e>>2]=a,(e+=4)+4>o)break}return O[e>>2]=0,e-n}function H(r){for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e}function q(r,e){return r%e>0&&(r+=e-r%e),r}function z(r){S=r,o.HEAP8=W=new Int8Array(r),o.HEAP16=F=new Int16Array(r),o.HEAP32=O=new Int32Array(r),o.HEAPU8=E=new Uint8Array(r),o.HEAPU16=k=new Uint16Array(r),o.HEAPU32=j=new Uint32Array(r),o.HEAPF32=R=new Float32Array(r),o.HEAPF64=I=new Float64Array(r)}o.INITIAL_MEMORY;var N,G=[],L=[],X=[],J=[];function K(r){G.unshift(r)}function Q(r){J.unshift(r)}var Y=0,Z=null,rr=null;function er(r){o.onAbort&&o.onAbort(r),w(r+=""),C=!0,r="abort("+r+"). Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(r);throw n(e),e}function tr(r,e){return String.prototype.startsWith?r.startsWith(e):0===r.indexOf(e)}o.preloadedImages={},o.preloadedAudios={};var nr="data:application/octet-stream;base64,";function or(r){return tr(r,nr)}var ir="file://";function ar(r){return tr(r,ir)}var ur="basis_transcoder.wasm";function sr(r){try{if(r==ur&&T)return new Uint8Array(T);if(h)return h(r);throw"both async and sync fetching of the wasm failed"}catch(r){er(r)}}function cr(r){for(;r.length>0;){var e=r.shift();if("function"!=typeof e){var t=e.func;"number"==typeof t?void 0===e.arg?N.get(t)():N.get(t)(e.arg):t(void 0===e.arg?null:e.arg)}else e(o)}}or(ur)||(ur=function(r){return o.locateFile?o.locateFile(r,m):m+r}(ur));var fr={};function lr(r){for(;r.length;){var e=r.pop();r.pop()(e)}}function pr(r){return this.fromWireType(j[r>>2])}var dr={},hr={},vr={},yr=48,mr=57;function gr(r){if(void 0===r)return"_unknown";var e=(r=r.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=yr&&e<=mr?"_"+r:r}function wr(r,e){return r=gr(r),new Function("body","return function "+r+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(e)}function Tr(r,e){var t=wr(e,(function(r){this.name=e,this.message=r;var t=new Error(r).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},t}var br=void 0;function Cr(r){throw new br(r)}function $r(r,e,t){function n(e){var n=t(e);n.length!==r.length&&Cr("Mismatched type converter count");for(var o=0;o<r.length;++o)Er(r[o],n[o])}r.forEach((function(r){vr[r]=e}));var o=new Array(e.length),i=[],a=0;e.forEach((function(r,e){hr.hasOwnProperty(r)?o[e]=hr[r]:(i.push(r),dr.hasOwnProperty(r)||(dr[r]=[]),dr[r].push((function(){o[e]=hr[r],++a===i.length&&n(o)})))})),0===i.length&&n(o)}function Pr(r){switch(r){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+r)}}var Ar=void 0;function _r(r){for(var e="",t=r;E[t];)e+=Ar[E[t++]];return e}var Sr=void 0;function Wr(r){throw new Sr(r)}function Er(r,e,t){if(t=t||{},!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=e.name;if(r||Wr('type "'+n+'" must have a positive integer typeid pointer'),hr.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;Wr("Cannot register type '"+n+"' twice")}if(hr[r]=e,delete vr[r],dr.hasOwnProperty(r)){var o=dr[r];delete dr[r],o.forEach((function(r){r()}))}}function Fr(r){if(!(this instanceof zr))return!1;if(!(r instanceof zr))return!1;for(var e=this.$$.ptrType.registeredClass,t=this.$$.ptr,n=r.$$.ptrType.registeredClass,o=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return e===n&&t===o}function kr(r){return{count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}}function Or(r){Wr(r.$$.ptrType.registeredClass.name+" instance already deleted")}var jr=!1;function Rr(r){}function Ir(r){r.count.value-=1,0===r.count.value&&function(r){r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)}(r)}function xr(r){return"undefined"==typeof FinalizationGroup?(xr=function(r){return r},r):(jr=new FinalizationGroup((function(r){for(var e=r.next();!e.done;e=r.next()){var t=e.value;t.ptr?Ir(t):console.warn("object already deleted: "+t.ptr)}})),xr=function(r){return jr.register(r,r.$$,r.$$),r},Rr=function(r){jr.unregister(r.$$)},xr(r))}function Dr(){if(this.$$.ptr||Or(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=xr(Object.create(Object.getPrototypeOf(this),{$$:{value:kr(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r}function Ur(){this.$$.ptr||Or(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Wr("Object already scheduled for deletion"),Rr(this),Ir(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Br(){return!this.$$.ptr}var Mr=void 0,Vr=[];function Hr(){for(;Vr.length;){var r=Vr.pop();r.$$.deleteScheduled=!1,r.delete()}}function qr(){return this.$$.ptr||Or(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Wr("Object already scheduled for deletion"),Vr.push(this),1===Vr.length&&Mr&&Mr(Hr),this.$$.deleteScheduled=!0,this}function zr(){}var Nr={};function Gr(r,e,t){if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(){return r[e].overloadTable.hasOwnProperty(arguments.length)||Wr("Function '"+t+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+r[e].overloadTable+")!"),r[e].overloadTable[arguments.length].apply(this,arguments)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}}function Lr(r,e,t){o.hasOwnProperty(r)?((void 0===t||void 0!==o[r].overloadTable&&void 0!==o[r].overloadTable[t])&&Wr("Cannot register public name '"+r+"' twice"),Gr(o,r,r),o.hasOwnProperty(t)&&Wr("Cannot register multiple overloads of a function with the same number of arguments ("+t+")!"),o[r].overloadTable[t]=e):(o[r]=e,void 0!==t&&(o[r].numArguments=t))}function Xr(r,e,t,n,o,i,a,u){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=u,this.pureVirtualFunctions=[]}function Jr(r,e,t){for(;e!==t;)e.upcast||Wr("Expected null or instance of "+t.name+", got an instance of "+e.name),r=e.upcast(r),e=e.baseClass;return r}function Kr(r,e){if(null===e)return this.isReference&&Wr("null is not a valid "+this.name),0;e.$$||Wr('Cannot pass "'+We(e)+'" as a '+this.name),e.$$.ptr||Wr("Cannot pass deleted object as a pointer of type "+this.name);var t=e.$$.ptrType.registeredClass;return Jr(e.$$.ptr,t,this.registeredClass)}function Qr(r,e){var t;if(null===e)return this.isReference&&Wr("null is not a valid "+this.name),this.isSmartPointer?(t=this.rawConstructor(),null!==r&&r.push(this.rawDestructor,t),t):0;e.$$||Wr('Cannot pass "'+We(e)+'" as a '+this.name),e.$$.ptr||Wr("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&Wr("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);var n=e.$$.ptrType.registeredClass;if(t=Jr(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&Wr("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:Wr("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var o=e.clone();t=this.rawShare(t,Ae((function(){o.delete()}))),null!==r&&r.push(this.rawDestructor,t)}break;default:Wr("Unsupporting sharing policy")}return t}function Yr(r,e){if(null===e)return this.isReference&&Wr("null is not a valid "+this.name),0;e.$$||Wr('Cannot pass "'+We(e)+'" as a '+this.name),e.$$.ptr||Wr("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&Wr("Cannot convert argument of type "+e.$$.ptrType.name+" to parameter type "+this.name);var t=e.$$.ptrType.registeredClass;return Jr(e.$$.ptr,t,this.registeredClass)}function Zr(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r}function re(r){this.rawDestructor&&this.rawDestructor(r)}function ee(r){null!==r&&r.delete()}function te(r,e,t){if(e===t)return r;if(void 0===t.baseClass)return null;var n=te(r,e,t.baseClass);return null===n?null:t.downcast(n)}function ne(){return Object.keys(ae).length}function oe(){var r=[];for(var e in ae)ae.hasOwnProperty(e)&&r.push(ae[e]);return r}function ie(r){Mr=r,Vr.length&&Mr&&Mr(Hr)}var ae={};function ue(r,e){return e=function(r,e){for(void 0===e&&Wr("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e}(r,e),ae[e]}function se(r,e){return e.ptrType&&e.ptr||Cr("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&Cr("Both smartPtrType and smartPtr must be specified"),e.count={value:1},xr(Object.create(r,{$$:{value:e}}))}function ce(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=ue(this.registeredClass,e);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function o(){return this.isSmartPointer?se(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):se(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var i,a=this.registeredClass.getActualType(e),u=Nr[a];if(!u)return o.call(this);i=this.isConst?u.constPointerType:u.pointerType;var s=te(e,this.registeredClass,i.registeredClass);return null===s?o.call(this):this.isSmartPointer?se(i.registeredClass.instancePrototype,{ptrType:i,ptr:s,smartPtrType:this,smartPtr:r}):se(i.registeredClass.instancePrototype,{ptrType:i,ptr:s})}function fe(r,e,t,n,o,i,a,u,s,c,f){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=u,this.rawConstructor=s,this.rawShare=c,this.rawDestructor=f,o||void 0!==e.baseClass?this.toWireType=Qr:n?(this.toWireType=Kr,this.destructorFunction=null):(this.toWireType=Yr,this.destructorFunction=null)}function le(r,e,t){o.hasOwnProperty(r)||Cr("Replacing nonexistant public symbol"),void 0!==o[r].overloadTable&&void 0!==t?o[r].overloadTable[t]=e:(o[r]=e,o[r].argCount=t)}function pe(r,e,t){return-1!=r.indexOf("j")?function(r,e,t){var n=o["dynCall_"+r];return t&&t.length?n.apply(null,[e].concat(t)):n.call(null,e)}(r,e,t):N.get(e).apply(null,t)}function de(r,e){var t=-1!=(r=_r(r)).indexOf("j")?function(r,e){var t=[];return function(){t.length=arguments.length;for(var n=0;n<arguments.length;n++)t[n]=arguments[n];return pe(r,e,t)}}(r,e):N.get(e);return"function"!=typeof t&&Wr("unknown function pointer with signature "+r+": "+e),t}var he=void 0;function ve(r){var e=ze(r),t=_r(e);return qe(e),t}function ye(r,e){var t=[],n={};throw e.forEach((function r(e){n[e]||hr[e]||(vr[e]?vr[e].forEach(r):(t.push(e),n[e]=!0))})),new he(r+": "+t.map(ve).join([", "]))}function me(r,e){for(var t=[],n=0;n<r;n++)t.push(O[(e>>2)+n]);return t}function ge(r,e){if(!(r instanceof Function))throw new TypeError("new_ called with constructor type "+typeof r+" which is not a function");var t=wr(r.name||"unknownFunctionName",(function(){}));t.prototype=r.prototype;var n=new t,o=r.apply(n,e);return o instanceof Object?o:n}function we(r,e,t,n,o){var i=e.length;i<2&&Wr("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==e[1]&&null!==t,u=!1,s=1;s<e.length;++s)if(null!==e[s]&&void 0===e[s].destructorFunction){u=!0;break}var c="void"!==e[0].name,f="",l="";for(s=0;s<i-2;++s)f+=(0!==s?", ":"")+"arg"+s,l+=(0!==s?", ":"")+"arg"+s+"Wired";var p="return function "+gr(r)+"("+f+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+r+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";u&&(p+="var destructors = [];\n");var d=u?"destructors":"null",h=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],v=[Wr,n,o,lr,e[0],e[1]];for(a&&(p+="var thisWired = classParam.toWireType("+d+", this);\n"),s=0;s<i-2;++s)p+="var arg"+s+"Wired = argType"+s+".toWireType("+d+", arg"+s+"); // "+e[s+2].name+"\n",h.push("argType"+s),v.push(e[s+2]);if(a&&(l="thisWired"+(l.length>0?", ":"")+l),p+=(c?"var rv = ":"")+"invoker(fn"+(l.length>0?", ":"")+l+");\n",u)p+="runDestructors(destructors);\n";else for(s=a?1:2;s<e.length;++s){var y=1===s?"thisWired":"arg"+(s-2)+"Wired";null!==e[s].destructorFunction&&(p+=y+"_dtor("+y+"); // "+e[s].name+"\n",h.push(y+"_dtor"),v.push(e[s].destructorFunction))}return c&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",h.push(p),ge(Function,h).apply(null,v)}var Te=[],be=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Ce(r){r>4&&0==--be[r].refcount&&(be[r]=void 0,Te.push(r))}function $e(){for(var r=0,e=5;e<be.length;++e)void 0!==be[e]&&++r;return r}function Pe(){for(var r=5;r<be.length;++r)if(void 0!==be[r])return be[r];return null}function Ae(r){switch(r){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var e=Te.length?Te.pop():be.length;return be[e]={refcount:1,value:r},e}}function _e(r,e,t){switch(e){case 0:return function(r){var e=t?W:E;return this.fromWireType(e[r])};case 1:return function(r){var e=t?F:k;return this.fromWireType(e[r>>1])};case 2:return function(r){var e=t?O:j;return this.fromWireType(e[r>>2])};default:throw new TypeError("Unknown integer type: "+r)}}function Se(r,e){var t=hr[r];return void 0===t&&Wr(e+" has unknown type "+ve(r)),t}function We(r){if(null===r)return"null";var e=typeof r;return"object"===e||"array"===e||"function"===e?r.toString():""+r}function Ee(r,e){switch(e){case 2:return function(r){return this.fromWireType(R[r>>2])};case 3:return function(r){return this.fromWireType(I[r>>3])};default:throw new TypeError("Unknown float type: "+r)}}function Fe(r,e,t){switch(e){case 0:return t?function(r){return W[r]}:function(r){return E[r]};case 1:return t?function(r){return F[r>>1]}:function(r){return k[r>>1]};case 2:return t?function(r){return O[r>>2]}:function(r){return j[r>>2]};default:throw new TypeError("Unknown integer type: "+r)}}function ke(r){return r||Wr("Cannot use deleted val. handle = "+r),be[r].value}var Oe={};function je(r){var e=Oe[r];return void 0===e?_r(r):e}var Re=[];function Ie(){return"object"==typeof globalThis?globalThis:Function("return this")()}function xe(r){for(var e="",t=0;t<r;++t)e+=(0!==t?", ":"")+"arg"+t;var n="return function emval_allocator_"+r+"(constructor, argTypes, args) {\n";for(t=0;t<r;++t)n+="var argType"+t+" = requireRegisteredType(Module['HEAP32'][(argTypes >>> 2) + "+t+'], "parameter '+t+'");\nvar arg'+t+" = argType"+t+".readValueFromPointer(args);\nargs += argType"+t+"['argPackAdvance'];\n";return n+="var obj = new constructor("+e+");\nreturn __emval_register(obj);\n}\n",new Function("requireRegisteredType","Module","__emval_register",n)(Se,o,Ae)}var De={};function Ue(r){try{return b.grow(r-S.byteLength+65535>>>16),z(b.buffer),1}catch(r){}}var Be={mappings:{},buffers:[null,[],[]],printChar:function(r,e){var t=Be.buffers[r];0===e||10===e?((1===r?g:w)(A(t,0)),t.length=0):t.push(e)},varargs:void 0,get:function(){return Be.varargs+=4,O[Be.varargs-4>>2]},getStr:function(r){return _(r)},get64:function(r,e){return r}};br=o.InternalError=Tr(Error,"InternalError"),function(){for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Ar=r}(),Sr=o.BindingError=Tr(Error,"BindingError"),zr.prototype.isAliasOf=Fr,zr.prototype.clone=Dr,zr.prototype.delete=Ur,zr.prototype.isDeleted=Br,zr.prototype.deleteLater=qr,fe.prototype.getPointee=Zr,fe.prototype.destructor=re,fe.prototype.argPackAdvance=8,fe.prototype.readValueFromPointer=pr,fe.prototype.deleteObject=ee,fe.prototype.fromWireType=ce,o.getInheritedInstanceCount=ne,o.getLiveInheritedInstances=oe,o.flushPendingDeletes=Hr,o.setDelayFunction=ie,he=o.UnboundTypeError=Tr(Error,"UnboundTypeError"),o.count_emval_handles=$e,o.get_first_emval=Pe;var Me,Ve={t:function(r){var e=fr[r];delete fr[r];var t=e.rawConstructor,n=e.rawDestructor,o=e.fields;$r([r],o.map((function(r){return r.getterReturnType})).concat(o.map((function(r){return r.setterArgumentType}))),(function(r){var i={};return o.forEach((function(e,t){var n=e.fieldName,a=r[t],u=e.getter,s=e.getterContext,c=r[t+o.length],f=e.setter,l=e.setterContext;i[n]={read:function(r){return a.fromWireType(u(s,r))},write:function(r,e){var t=[];f(l,r,c.toWireType(t,e)),lr(t)}}})),[{name:e.name,fromWireType:function(r){var e={};for(var t in i)e[t]=i[t].read(r);return n(r),e},toWireType:function(r,e){for(var o in i)if(!(o in e))throw new TypeError('Missing field: "'+o+'"');var a=t();for(o in i)i[o].write(a,e[o]);return null!==r&&r.push(n,a),a},argPackAdvance:8,readValueFromPointer:pr,destructorFunction:n}]}))},I:function(r,e,t,n,o){var i=Pr(t);Er(r,{name:e=_r(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?n:o},argPackAdvance:8,readValueFromPointer:function(r){var n;if(1===t)n=W;else if(2===t)n=F;else{if(4!==t)throw new TypeError("Unknown boolean type size: "+e);n=O}return this.fromWireType(n[r>>i])},destructorFunction:null})},x:function(r,e,t,n,o,i,a,u,s,c,f,l,p){f=_r(f),i=de(o,i),u&&(u=de(a,u)),c&&(c=de(s,c)),p=de(l,p);var d=gr(f);Lr(d,(function(){ye("Cannot construct "+f+" due to unbound types",[n])})),$r([r,e,t],n?[n]:[],(function(e){var t,o;e=e[0],o=n?(t=e.registeredClass).instancePrototype:zr.prototype;var a=wr(d,(function(){if(Object.getPrototypeOf(this)!==s)throw new Sr("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new Sr(f+" has no accessible constructor");var r=l.constructor_body[arguments.length];if(void 0===r)throw new Sr("Tried to invoke ctor of "+f+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(l.constructor_body).toString()+") parameters instead!");return r.apply(this,arguments)})),s=Object.create(o,{constructor:{value:a}});a.prototype=s;var l=new Xr(f,a,s,p,t,i,u,c),h=new fe(f,l,!0,!1,!1),v=new fe(f+"*",l,!1,!1,!1),y=new fe(f+" const*",l,!1,!0,!1);return Nr[r]={pointerType:v,constPointerType:y},le(d,a),[h,v,y]}))},w:function(r,e,t,n,o,i){$(e>0);var a=me(e,t);o=de(n,o);var u=[i],s=[];$r([],[r],(function(r){var t="constructor "+(r=r[0]).name;if(void 0===r.registeredClass.constructor_body&&(r.registeredClass.constructor_body=[]),void 0!==r.registeredClass.constructor_body[e-1])throw new Sr("Cannot register multiple constructors with identical number of parameters ("+(e-1)+") for class '"+r.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return r.registeredClass.constructor_body[e-1]=function(){ye("Cannot construct "+r.name+" due to unbound types",a)},$r([],a,(function(n){return r.registeredClass.constructor_body[e-1]=function(){arguments.length!==e-1&&Wr(t+" called with "+arguments.length+" arguments, expected "+(e-1)),s.length=0,u.length=e;for(var r=1;r<e;++r)u[r]=n[r].toWireType(s,arguments[r-1]);var i=o.apply(null,u);return lr(s),n[0].fromWireType(i)},[]})),[]}))},d:function(r,e,t,n,o,i,a,u){var s=me(t,n);e=_r(e),i=de(o,i),$r([],[r],(function(r){var n=(r=r[0]).name+"."+e;function o(){ye("Cannot call "+n+" due to unbound types",s)}u&&r.registeredClass.pureVirtualFunctions.push(e);var c=r.registeredClass.instancePrototype,f=c[e];return void 0===f||void 0===f.overloadTable&&f.className!==r.name&&f.argCount===t-2?(o.argCount=t-2,o.className=r.name,c[e]=o):(Gr(c,e,n),c[e].overloadTable[t-2]=o),$r([],s,(function(o){var u=we(n,o,r,i,a);return void 0===c[e].overloadTable?(u.argCount=t-2,c[e]=u):c[e].overloadTable[t-2]=u,[]})),[]}))},k:function(r,e,t){r=_r(r),$r([],[e],(function(e){return e=e[0],o[r]=e.fromWireType(t),[]}))},H:function(r,e){Er(r,{name:e=_r(e),fromWireType:function(r){var e=be[r].value;return Ce(r),e},toWireType:function(r,e){return Ae(e)},argPackAdvance:8,readValueFromPointer:pr,destructorFunction:null})},n:function(r,e,t,n){var o=Pr(t);function i(){}e=_r(e),i.values={},Er(r,{name:e,constructor:i,fromWireType:function(r){return this.constructor.values[r]},toWireType:function(r,e){return e.value},argPackAdvance:8,readValueFromPointer:_e(e,o,n),destructorFunction:null}),Lr(e,i)},a:function(r,e,t){var n=Se(r,"enum");e=_r(e);var o=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:wr(n.name+"_"+e,(function(){}))}});o.values[t]=i,o[e]=i},A:function(r,e,t){var n=Pr(t);Er(r,{name:e=_r(e),fromWireType:function(r){return r},toWireType:function(r,e){if("number"!=typeof e&&"boolean"!=typeof e)throw new TypeError('Cannot convert "'+We(e)+'" to '+this.name);return e},argPackAdvance:8,readValueFromPointer:Ee(e,n),destructorFunction:null})},i:function(r,e,t,n,o,i){var a=me(e,t);r=_r(r),o=de(n,o),Lr(r,(function(){ye("Cannot call "+r+" due to unbound types",a)}),e-1),$r([],a,(function(t){var n=[t[0],null].concat(t.slice(1));return le(r,we(r,n,null,o,i),e-1),[]}))},j:function(r,e,t,n,o){e=_r(e),-1===o&&(o=4294967295);var i=Pr(t),a=function(r){return r};if(0===n){var u=32-8*t;a=function(r){return r<<u>>>u}}var s=-1!=e.indexOf("unsigned");Er(r,{name:e,fromWireType:a,toWireType:function(r,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+We(t)+'" to '+this.name);if(t<n||t>o)throw new TypeError('Passing a number "'+We(t)+'" from JS side to C/C++ side to an argument of type "'+e+'", which is outside the valid range ['+n+", "+o+"]!");return s?t>>>0:0|t},argPackAdvance:8,readValueFromPointer:Fe(e,i,0!==n),destructorFunction:null})},h:function(r,e,t){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function o(r){var e=j,t=e[r>>=2],o=e[r+1];return new n(S,o,t)}Er(r,{name:t=_r(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},B:function(r,e){var t="std::string"===(e=_r(e));Er(r,{name:e,fromWireType:function(r){var e,n=j[r>>2];if(t)for(var o=r+4,i=0;i<=n;++i){var a=r+4+i;if(i==n||0==E[a]){var u=_(o,a-o);void 0===e?e=u:(e+=String.fromCharCode(0),e+=u),o=a+1}}else{var s=new Array(n);for(i=0;i<n;++i)s[i]=String.fromCharCode(E[r+4+i]);e=s.join("")}return qe(r),e},toWireType:function(r,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||Wr("Cannot pass non-string to std::string");var o=(t&&n?function(){return function(r){for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&r.charCodeAt(++t)),n<=127?++e:e+=n<=2047?2:n<=65535?3:4}return e}(e)}:function(){return e.length})(),i=He(4+o+1);if(j[i>>2]=o,t&&n)!function(r,e,t){(function(r,e,t,n){if(!(n>0))return 0;for(var o=t,i=t+n-1,a=0;a<r.length;++a){var u=r.charCodeAt(a);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&r.charCodeAt(++a)),u<=127){if(t>=i)break;e[t++]=u}else if(u<=2047){if(t+1>=i)break;e[t++]=192|u>>6,e[t++]=128|63&u}else if(u<=65535){if(t+2>=i)break;e[t++]=224|u>>12,e[t++]=128|u>>6&63,e[t++]=128|63&u}else{if(t+3>=i)break;e[t++]=240|u>>18,e[t++]=128|u>>12&63,e[t++]=128|u>>6&63,e[t++]=128|63&u}}e[t]=0})(r,E,e,t)}(e,i+4,o+1);else if(n)for(var a=0;a<o;++a){var u=e.charCodeAt(a);u>255&&(qe(i),Wr("String has UTF-16 code units that do not fit in 8 bits")),E[i+4+a]=u}else for(a=0;a<o;++a)E[i+4+a]=e[a];return null!==r&&r.push(qe,i),i},argPackAdvance:8,readValueFromPointer:pr,destructorFunction:function(r){qe(r)}})},v:function(r,e,t){var n,o,i,a,u;t=_r(t),2===e?(n=D,o=U,a=B,i=function(){return k},u=1):4===e&&(n=M,o=V,a=H,i=function(){return j},u=2),Er(r,{name:t,fromWireType:function(r){for(var t,o=j[r>>2],a=i(),s=r+4,c=0;c<=o;++c){var f=r+4+c*e;if(c==o||0==a[f>>u]){var l=n(s,f-s);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),s=f+e}}return qe(r),t},toWireType:function(r,n){"string"!=typeof n&&Wr("Cannot pass non-string to C++ string type "+t);var i=a(n),s=He(4+i+e);return j[s>>2]=i>>u,o(n,s+4,i+e),null!==r&&r.push(qe,s),s},argPackAdvance:8,readValueFromPointer:pr,destructorFunction:function(r){qe(r)}})},u:function(r,e,t,n,o,i){fr[r]={name:_r(e),rawConstructor:de(t,n),rawDestructor:de(o,i),fields:[]}},c:function(r,e,t,n,o,i,a,u,s,c){fr[r].fields.push({fieldName:_r(e),getterReturnType:t,getter:de(n,o),getterContext:i,setterArgumentType:a,setter:de(u,s),setterContext:c})},J:function(r,e){Er(r,{isVoid:!0,name:e=_r(e),argPackAdvance:0,fromWireType:function(){},toWireType:function(r,e){}})},m:function(r,e,t){r=ke(r),e=Se(e,"emval::as");var n=[],o=Ae(n);return O[t>>2]=o,e.toWireType(n,r)},s:function(r,e,t,n){(r=Re[r])(e=ke(e),t=je(t),null,n)},b:Ce,y:function(r){return 0===r?Ae(Ie()):(r=je(r),Ae(Ie()[r]))},p:function(r,e){for(var t=function(r,e){for(var t=new Array(r),n=0;n<r;++n)t[n]=Se(O[(e>>2)+n],"parameter "+n);return t}(r,e),n=t[0],o=n.name+"_$"+t.slice(1).map((function(r){return r.name})).join("_")+"$",i=["retType"],a=[n],u="",s=0;s<r-1;++s)u+=(0!==s?", ":"")+"arg"+s,i.push("argType"+s),a.push(t[1+s]);var c="return function "+gr("methodCaller_"+o)+"(handle, name, destructors, args) {\n",f=0;for(s=0;s<r-1;++s)c+=" var arg"+s+" = argType"+s+".readValueFromPointer(args"+(f?"+"+f:"")+");\n",f+=t[s+1].argPackAdvance;for(c+=" var rv = handle[name]("+u+");\n",s=0;s<r-1;++s)t[s+1].deleteObject&&(c+=" argType"+s+".deleteObject(arg"+s+");\n");return n.isVoid||(c+=" return retType.toWireType(destructors, rv);\n"),c+="};\n",i.push(c),function(r){var e=Re.length;return Re.push(r),e}(ge(Function,i).apply(null,a))},r:function(r){return r=je(r),Ae(o[r])},e:function(r,e){return Ae((r=ke(r))[e=ke(e)])},g:function(r){r>4&&(be[r].refcount+=1)},q:function(r,e,t,n){r=ke(r);var o=De[e];return o||(o=xe(e),De[e]=o),o(r,t,n)},f:function(r){return Ae(je(r))},l:function(r){lr(be[r].value),Ce(r)},o:function(){er()},E:function(r,e,t){E.copyWithin(r,e,e+t)},F:function(r){var e=E.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=1;n<=4;n*=2){var o=e*(1+.2/n);if(o=Math.min(o,r+100663296),Ue(Math.min(t,q(Math.max(r,o),65536))))return!0}return!1},G:function(r){return 0},C:function(r,e,t,n,o){},z:function(r,e,t,n){for(var o=0,i=0;i<t;i++){for(var a=O[e+8*i>>2],u=O[e+(8*i+4)>>2],s=0;s<u;s++)Be.printChar(r,E[a+s]);o+=u}return O[n>>2]=o,0},D:function(r){}},He=(function(){var r={a:Ve};function e(r,e){var t=r.exports;o.asm=t,z((b=o.asm.K).buffer),N=o.asm.O,function(r){L.unshift(r)}(o.asm.L),function(r){if(Y--,o.monitorRunDependencies&&o.monitorRunDependencies(Y),0==Y&&(null!==Z&&(clearInterval(Z),Z=null),rr)){var e=rr;rr=null,e()}}()}function t(r){e(r.instance)}function i(e){return function(){if(!T&&(f||l)){if("function"==typeof fetch&&!ar(ur))return fetch(ur,{credentials:"same-origin"}).then((function(r){if(!r.ok)throw"failed to load wasm binary file at '"+ur+"'";return r.arrayBuffer()})).catch((function(){return sr(ur)}));if(d)return new Promise((function(r,e){d(ur,(function(e){r(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return sr(ur)}))}().then((function(e){return WebAssembly.instantiate(e,r)})).then(e,(function(r){w("failed to asynchronously prepare wasm: "+r),er(r)}))}if(Y++,o.monitorRunDependencies&&o.monitorRunDependencies(Y),o.instantiateWasm)try{return o.instantiateWasm(r,e)}catch(r){return w("Module.instantiateWasm callback failed with error: "+r),!1}(T||"function"!=typeof WebAssembly.instantiateStreaming||or(ur)||ar(ur)||"function"!=typeof fetch?i(t):fetch(ur,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,r).then(t,(function(r){return w("wasm streaming compile failed: "+r),w("falling back to ArrayBuffer instantiation"),i(t)}))}))).catch(n)}(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.L).apply(null,arguments)},o._malloc=function(){return(He=o._malloc=o.asm.M).apply(null,arguments)}),qe=o._free=function(){return(qe=o._free=o.asm.N).apply(null,arguments)},ze=o.___getTypeName=function(){return(ze=o.___getTypeName=o.asm.P).apply(null,arguments)};function Ne(r){this.name="ExitStatus",this.message="Program terminated with exit("+r+")",this.status=r}function Ge(r){function e(){Me||(Me=!0,o.calledRun=!0,C||(cr(L),cr(X),t(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),function(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)Q(o.postRun.shift());cr(J)}()))}r=r||c,Y>0||(function(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)K(o.preRun.shift());cr(G)}(),Y>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),e()}),1)):e()))}if(o.___embind_register_native_and_builtin_types=function(){return(o.___embind_register_native_and_builtin_types=o.asm.Q).apply(null,arguments)},o.dynCall_jiji=function(){return(o.dynCall_jiji=o.asm.R).apply(null,arguments)},rr=function r(){Me||Ge(),Me||(rr=r)},o.run=Ge,o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return Ge(),e.ready}}();"object"==typeof exports&&"object"==typeof module?module.exports=BASIS:"function"==typeof define&&define.amd?define([],(function(){return BASIS})):"object"==typeof exports&&(exports.BASIS=BASIS);
|