Commit 13f953d1 by wanghao

同步代码

parent 0015a974
...@@ -18,14 +18,15 @@ ...@@ -18,14 +18,15 @@
"@icon-park/svg": "^1.4.2", "@icon-park/svg": "^1.4.2",
"@marsgis/editor": "^1.2.0", "@marsgis/editor": "^1.2.0",
"@turf/turf": "^6.5.0", "@turf/turf": "^6.5.0",
"antd": "^4.24.14", "antd": "^5.11.1",
"axios": "^0.26.1", "axios": "^1.6.1",
"classnames": "^2.3.2", "classnames": "^2.3.2",
"echarts": "^5.4.3", "echarts": "^5.4.3",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"mars3d": "~3.6.0", "mars3d": "~3.6.0",
"mars3d-cesium": "~1.111.1", "mars3d-cesium": "~1.111.1",
"monaco-editor": "^0.33.0", "moment": "^2.29.4",
"monaco-editor": "^0.44.0",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"react": "^18.2.0", "react": "^18.2.0",
"react-color": "^2.19.3", "react-color": "^2.19.3",
...@@ -33,34 +34,35 @@ ...@@ -33,34 +34,35 @@
"react-redux": "^8.1.3", "react-redux": "^8.1.3",
"redux": "^4.2.1", "redux": "^4.2.1",
"split.js": "^1.6.5", "split.js": "^1.6.5",
"uuid": "^8.3.2" "uuid": "^9.0.1"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^17.0.45", "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@types/react": "^18.2.30", "@types/node": "^20.9.0",
"@types/react-dom": "^18.2.14", "@types/react": "^18.2.37",
"@typescript-eslint/eslint-plugin": "^4.33.0", "@types/react-dom": "^18.2.15",
"@typescript-eslint/parser": "^4.33.0", "@typescript-eslint/eslint-plugin": "^6.10.0",
"@vitejs/plugin-react": "^3.1.0", "@typescript-eslint/parser": "^6.10.0",
"@vitejs/plugin-react": "^4.1.1",
"autoprefixer": "^10.4.16", "autoprefixer": "^10.4.16",
"babel-eslint": "^10.1.0", "babel-eslint": "^10.1.0",
"consola": "^2.15.3", "consola": "^3.2.3",
"eslint": "^7.32.0", "eslint": "^8.53.0",
"eslint-config-react-app": "^6.0.0", "eslint-config-react-app": "^7.0.1",
"eslint-config-standard": "^16.0.3", "eslint-config-standard": "^17.1.0",
"eslint-plugin-flowtype": "^5.10.0", "eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.28.1", "eslint-plugin-import": "^2.29.0",
"eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-node": "^11.1.0", "eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.2.0", "eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.33.2", "eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-hooks": "^4.6.0",
"http-server": "^14.1.1", "http-server": "^14.1.1",
"husky": "^7.0.4", "husky": "^8.0.3",
"less": "^4.2.0", "less": "^4.2.0",
"rollup-plugin-copy": "^3.5.0", "rollup-plugin-copy": "^3.5.0",
"terser": "^5.22.0", "terser": "^5.24.0",
"typescript": "4.5.5", "typescript": "^5.2.2",
"vite": "^4.5.0", "vite": "^4.5.0",
"vite-plugin-eslint": "^1.8.1", "vite-plugin-eslint": "^1.8.1",
"vite-plugin-monaco-editor": "^1.1.0", "vite-plugin-monaco-editor": "^1.1.0",
......
...@@ -490,7 +490,7 @@ ...@@ -490,7 +490,7 @@
}, },
{ {
"name": "SceneModePicker 二三维切换按钮", "name": "SceneModePicker 二三维切换按钮",
"thumbnail": "map-cesium-sceneModePicker.jpg", "thumbnail": "map-cesium-sceneModePicker.gif",
"main": "control/cesium/sceneModePicker" "main": "control/cesium/sceneModePicker"
}, },
{ {
...@@ -607,13 +607,13 @@ ...@@ -607,13 +607,13 @@
}, },
{ {
"name": "双屏对比", "name": "双屏对比",
"thumbnail": "map-double-compare.jpg", "thumbnail": "map-double-compare.gif",
"main": "map/double/compare", "main": "map/double/compare",
"hasPannel": true "hasPannel": true
}, },
{ {
"name": "卷帘对比", "name": "卷帘对比",
"thumbnail": "control-basis-mapSplit.jpg", "thumbnail": "control-basis-mapSplit.gif",
"main": "control/basis/mapSplit", "main": "control/basis/mapSplit",
"hasPannel": true "hasPannel": true
}, },
...@@ -721,7 +721,7 @@ ...@@ -721,7 +721,7 @@
}, },
{ {
"name": "立体户型图(自定义扩展)", "name": "立体户型图(自定义扩展)",
"thumbnail": "layerg-geojson-huxing.jpg", "thumbnail": "layerg-geojson-huxing.gif",
"main": "layer-graphic/geojson/huxing", "main": "layer-graphic/geojson/huxing",
"hasPannel": true, "hasPannel": true,
"resources": ["HuxingLayer.js"] "resources": ["HuxingLayer.js"]
...@@ -827,7 +827,7 @@ ...@@ -827,7 +827,7 @@
}, },
{ {
"name": "CZML图层", "name": "CZML图层",
"thumbnail": "layerg-file-czml.jpg", "thumbnail": "layerg-file-czml.gif",
"main": "layer-graphic/file/czml", "main": "layer-graphic/file/czml",
"hasPannel": true, "hasPannel": true,
"params": "data=CZML", "params": "data=CZML",
...@@ -953,7 +953,7 @@ ...@@ -953,7 +953,7 @@
}, },
{ {
"name": "全景点展示", "name": "全景点展示",
"thumbnail": "graphic-entity-billboard-panorama.jpg", "thumbnail": "graphic-entity-billboard-panorama.gif",
"main": "graphic/entity/billboard-panorama" "main": "graphic/entity/billboard-panorama"
}, },
{ {
...@@ -996,7 +996,7 @@ ...@@ -996,7 +996,7 @@
}, },
{ {
"name": "圆锥追踪体", "name": "圆锥追踪体",
"thumbnail": "graphic-entity-coneTrack.jpg", "thumbnail": "graphic-entity-coneTrack.gif",
"main": "graphic/entity/coneTrack", "main": "graphic/entity/coneTrack",
"hasPannel": true, "hasPannel": true,
"libs": ["mars3d", "mars3d-space"] "libs": ["mars3d", "mars3d-space"]
...@@ -1055,7 +1055,7 @@ ...@@ -1055,7 +1055,7 @@
}, },
{ {
"name": "Polyline 线", "name": "Polyline 线",
"thumbnail": "graphic-entity-polyline.jpg", "thumbnail": "graphic-entity-polyline.gif",
"main": "graphic/entity/polyline", "main": "graphic/entity/polyline",
"hasPannel": true "hasPannel": true
}, },
...@@ -1079,7 +1079,7 @@ ...@@ -1079,7 +1079,7 @@
}, },
{ {
"name": "Wall 墙", "name": "Wall 墙",
"thumbnail": "graphic-entity-wall.jpg", "thumbnail": "graphic-entity-wall.gif",
"main": "graphic/entity/wall", "main": "graphic/entity/wall",
"hasPannel": true "hasPannel": true
}, },
...@@ -1103,7 +1103,7 @@ ...@@ -1103,7 +1103,7 @@
}, },
{ {
"name": "扇形", "name": "扇形",
"thumbnail": "graphic-entity-polygon-sector.jpg", "thumbnail": "graphic-entity-polygon-sector.gif",
"main": "graphic/entity/polygon-sector", "main": "graphic/entity/polygon-sector",
"hasPannel": true, "hasPannel": true,
"resources": ["Circle3WaveMaterialProperty.js"] "resources": ["Circle3WaveMaterialProperty.js"]
...@@ -1117,7 +1117,7 @@ ...@@ -1117,7 +1117,7 @@
}, },
{ {
"name": "Property属性机制演示", "name": "Property属性机制演示",
"thumbnail": "graphic-entity-property.jpg", "thumbnail": "graphic-entity-property.gif",
"main": "graphic/entity/property", "main": "graphic/entity/property",
"hasPannel": true, "hasPannel": true,
"download": false "download": false
...@@ -1196,7 +1196,7 @@ ...@@ -1196,7 +1196,7 @@
}, },
{ {
"name": "CylinderP 圆锥、圆柱", "name": "CylinderP 圆锥、圆柱",
"thumbnail": "graphic-primitive-cylinder.jpg", "thumbnail": "graphic-primitive-cylinder.gif",
"main": "graphic/primitive/cylinder", "main": "graphic/primitive/cylinder",
"hasPannel": true "hasPannel": true
}, },
...@@ -1263,7 +1263,7 @@ ...@@ -1263,7 +1263,7 @@
}, },
{ {
"name": "一带一路", "name": "一带一路",
"thumbnail": "graphic-primitive-polyline-lineFlow-oneBeltOneRoad.jpg", "thumbnail": "graphic-primitive-polyline-lineFlow-oneBeltOneRoad.gif",
"main": "graphic/primitive/polyline-lineFlow-oneBeltOneRoad", "main": "graphic/primitive/polyline-lineFlow-oneBeltOneRoad",
"hasPannel": true "hasPannel": true
}, },
...@@ -1359,7 +1359,7 @@ ...@@ -1359,7 +1359,7 @@
}, },
{ {
"name": "反射水面", "name": "反射水面",
"thumbnail": "graphic-primitive-reflectionWater.jpg", "thumbnail": "graphic-primitive-reflectionWater.gif",
"main": "graphic/primitive/reflectionWater", "main": "graphic/primitive/reflectionWater",
"hasPannel": true "hasPannel": true
}, },
...@@ -1371,7 +1371,7 @@ ...@@ -1371,7 +1371,7 @@
}, },
{ {
"name": "四面体", "name": "四面体",
"thumbnail": "graphic-primitive-tetrahedron.jpg", "thumbnail": "graphic-primitive-tetrahedron.gif",
"main": "graphic/primitive/tetrahedron", "main": "graphic/primitive/tetrahedron",
"hasPannel": true "hasPannel": true
}, },
...@@ -1494,9 +1494,10 @@ ...@@ -1494,9 +1494,10 @@
}, },
{ {
"name": "河流断面水面动态升降", "name": "河流断面水面动态升降",
"thumbnail": "graphic-combine-water-section.jpg", "thumbnail": "graphic-combine-water-section.gif",
"main": "graphic/combine/water-section", "main": "graphic/combine/water-section",
"resources": ["water-data.js"] "resources": ["water-data.js"],
"new": true
} }
] ]
}, },
...@@ -1537,7 +1538,7 @@ ...@@ -1537,7 +1538,7 @@
}, },
{ {
"name": "动态水球点", "name": "动态水球点",
"thumbnail": "graphic-divGraphic-echarts-liqiudfill.jpg", "thumbnail": "graphic-divGraphic-echarts-liqiudfill.gif",
"main": "graphic/divGraphic/echarts-liqiudfill", "main": "graphic/divGraphic/echarts-liqiudfill",
"libs": ["echarts-liquidfill", "mars3d"] "libs": ["echarts-liquidfill", "mars3d"]
}, },
...@@ -1565,7 +1566,7 @@ ...@@ -1565,7 +1566,7 @@
"children": [ "children": [
{ {
"name": "点光源", "name": "点光源",
"thumbnail": "graphic-custom-pointLight.jpg", "thumbnail": "graphic-custom-pointLight.gif",
"main": "graphic/custom/pointLight", "main": "graphic/custom/pointLight",
"hasPannel": true "hasPannel": true
}, },
...@@ -1583,7 +1584,7 @@ ...@@ -1583,7 +1584,7 @@
}, },
{ {
"name": "粒子效果", "name": "粒子效果",
"thumbnail": "graphic-particleSystem-basis.jpg", "thumbnail": "graphic-particleSystem-basis.gif",
"main": "graphic/particleSystem/basis", "main": "graphic/particleSystem/basis",
"hasPannel": true "hasPannel": true
}, },
...@@ -1616,7 +1617,7 @@ ...@@ -1616,7 +1617,7 @@
}, },
{ {
"name": "FixedRoute 历史轨迹路线", "name": "FixedRoute 历史轨迹路线",
"thumbnail": "graphic-custom-fixedRoute.jpg", "thumbnail": "graphic-custom-fixedRoute.gif",
"main": "graphic/custom/fixedRoute", "main": "graphic/custom/fixedRoute",
"hasPannel": true "hasPannel": true
}, },
...@@ -1801,7 +1802,7 @@ ...@@ -1801,7 +1802,7 @@
}, },
{ {
"name": "四棱椎体追踪目标(RectSensor应用案例)", "name": "四棱椎体追踪目标(RectSensor应用案例)",
"thumbnail": "graphic-space-rectSensor-lookAt.jpg", "thumbnail": "graphic-space-rectSensor-lookAt.gif",
"main": "graphic/space/rectSensor-lookAt", "main": "graphic/space/rectSensor-lookAt",
"libs": ["mars3d", "mars3d-space"] "libs": ["mars3d", "mars3d-space"]
}, },
...@@ -1869,7 +1870,7 @@ ...@@ -1869,7 +1870,7 @@
}, },
{ {
"name": "TLE外太空物实时展示", "name": "TLE外太空物实时展示",
"thumbnail": "graphic-space-point.jpg", "thumbnail": "graphic-space-point.gif",
"main": "graphic/space/point", "main": "graphic/space/point",
"hasPannel": true, "hasPannel": true,
"libs": ["mars3d", "mars3d-space"] "libs": ["mars3d", "mars3d-space"]
...@@ -1897,7 +1898,7 @@ ...@@ -1897,7 +1898,7 @@
}, },
{ {
"name": "卫星推演", "name": "卫星推演",
"thumbnail": "graphic-space-deduce.jpg", "thumbnail": "graphic-space-deduce.gif",
"main": "graphic/space/deduce", "main": "graphic/space/deduce",
"hasPannel": true, "hasPannel": true,
"libs": ["mars3d", "mars3d-space"], "libs": ["mars3d", "mars3d-space"],
...@@ -1956,18 +1957,18 @@ ...@@ -1956,18 +1957,18 @@
}, },
{ {
"name": "数字城市", "name": "数字城市",
"thumbnail": "graphic-apply-digitalCity.jpg", "thumbnail": "graphic-apply-digitalCity.gif",
"main": "graphic/apply/digitalCity", "main": "graphic/apply/digitalCity",
"resources": ["city.css"] "resources": ["city.css"]
}, },
{ {
"name": "红蓝对抗演习", "name": "红蓝对抗演习",
"thumbnail": "graphic-apply-exercise.jpg", "thumbnail": "graphic-apply-exercise.gif",
"main": "graphic/apply/exercise" "main": "graphic/apply/exercise"
}, },
{ {
"name": "飞机巡航", "name": "飞机巡航",
"thumbnail": "graphic-apply-cruise.jpg", "thumbnail": "graphic-apply-cruise.gif",
"main": "graphic/apply/cruise", "main": "graphic/apply/cruise",
"hasPannel": true, "hasPannel": true,
"resources": ["map.css"] "resources": ["map.css"]
...@@ -2304,7 +2305,7 @@ ...@@ -2304,7 +2305,7 @@
}, },
{ {
"name": "模型淹没分析", "name": "模型淹没分析",
"thumbnail": "thing-tileset-tilesetFlood.jpg", "thumbnail": "thing-tileset-tilesetFlood.gif",
"main": "thing/tileset/tilesetFlood", "main": "thing/tileset/tilesetFlood",
"hasPannel": true "hasPannel": true
}, },
...@@ -2323,7 +2324,7 @@ ...@@ -2323,7 +2324,7 @@
}, },
{ {
"name": "地震模拟", "name": "地震模拟",
"thumbnail": "thing-tileset-shake.jpg", "thumbnail": "thing-tileset-shake.gif",
"main": "thing/tileset/shake", "main": "thing/tileset/shake",
"hasPannel": true "hasPannel": true
} }
...@@ -2409,14 +2410,14 @@ ...@@ -2409,14 +2410,14 @@
}, },
{ {
"name": "自定义空间背景图", "name": "自定义空间背景图",
"thumbnail": "map-other-backgroundImg.jpg", "thumbnail": "map-other-backgroundImg.gif",
"main": "map/other/backgroundImg", "main": "map/other/backgroundImg",
"hasPannel": true, "hasPannel": true,
"resources": ["background.css"] "resources": ["background.css"]
}, },
{ {
"name": "自定义天空盒", "name": "自定义天空盒",
"thumbnail": "map-property-skybox.jpg", "thumbnail": "map-property-skybox.gif",
"main": "map/property/skybox", "main": "map/property/skybox",
"hasPannel": true "hasPannel": true
}, },
...@@ -2486,7 +2487,7 @@ ...@@ -2486,7 +2487,7 @@
}, },
{ {
"name": "角色控制", "name": "角色控制",
"thumbnail": "thing-camera-roleController.jpg", "thumbnail": "thing-camera-roleController.gif",
"main": "thing/camera/roleController", "main": "thing/camera/roleController",
"hasPannel": true, "hasPannel": true,
"resources": ["CesiumRoleController.js"] "resources": ["CesiumRoleController.js"]
...@@ -2605,7 +2606,8 @@ ...@@ -2605,7 +2606,8 @@
"name": "颜色校正", "name": "颜色校正",
"thumbnail": "effect-colorCorrection.jpg", "thumbnail": "effect-colorCorrection.jpg",
"main": "effect/colorCorrection", "main": "effect/colorCorrection",
"hasPannel": true "hasPannel": true,
"new": true
}, },
{ {
"name": "泛光特效", "name": "泛光特效",
......

85.6 KB | W: | H:

75.1 KB | W: | H:

public/config/thumbnail/control-basis-overviewmap.jpg
public/config/thumbnail/control-basis-overviewmap.jpg
public/config/thumbnail/control-basis-overviewmap.jpg
public/config/thumbnail/control-basis-overviewmap.jpg
  • 2-up
  • Swipe
  • Onion skin

75.7 KB | W: | H:

68.5 KB | W: | H:

public/config/thumbnail/control-inside-popup.jpg
public/config/thumbnail/control-inside-popup.jpg
public/config/thumbnail/control-inside-popup.jpg
public/config/thumbnail/control-inside-popup.jpg
  • 2-up
  • Swipe
  • Onion skin

71.6 KB | W: | H:

67.6 KB | W: | H:

public/config/thumbnail/control-inside-tooltip.jpg
public/config/thumbnail/control-inside-tooltip.jpg
public/config/thumbnail/control-inside-tooltip.jpg
public/config/thumbnail/control-inside-tooltip.jpg
  • 2-up
  • Swipe
  • Onion skin

41.1 KB | W: | H:

68 KB | W: | H:

public/config/thumbnail/graphic-apply-typhoon.jpg
public/config/thumbnail/graphic-apply-typhoon.jpg
public/config/thumbnail/graphic-apply-typhoon.jpg
public/config/thumbnail/graphic-apply-typhoon.jpg
  • 2-up
  • Swipe
  • Onion skin

56.2 KB | W: | H:

84.8 KB | W: | H:

public/config/thumbnail/graphic-primitive-polyline.jpg
public/config/thumbnail/graphic-primitive-polyline.jpg
public/config/thumbnail/graphic-primitive-polyline.jpg
public/config/thumbnail/graphic-primitive-polyline.jpg
  • 2-up
  • Swipe
  • Onion skin

50.4 KB | W: | H:

89.6 KB | W: | H:

public/config/thumbnail/layer-tile-clampToTileset.jpg
public/config/thumbnail/layer-tile-clampToTileset.jpg
public/config/thumbnail/layer-tile-clampToTileset.jpg
public/config/thumbnail/layer-tile-clampToTileset.jpg
  • 2-up
  • Swipe
  • Onion skin

38.5 KB | W: | H:

67.4 KB | W: | H:

public/config/thumbnail/layert-online-arcgis.jpg
public/config/thumbnail/layert-online-arcgis.jpg
public/config/thumbnail/layert-online-arcgis.jpg
public/config/thumbnail/layert-online-arcgis.jpg
  • 2-up
  • Swipe
  • Onion skin

31.8 KB | W: | H:

69.6 KB | W: | H:

public/config/thumbnail/layert-online-baidu.jpg
public/config/thumbnail/layert-online-baidu.jpg
public/config/thumbnail/layert-online-baidu.jpg
public/config/thumbnail/layert-online-baidu.jpg
  • 2-up
  • Swipe
  • Onion skin

35.6 KB | W: | H:

55.1 KB | W: | H:

public/config/thumbnail/layert-online-bing.jpg
public/config/thumbnail/layert-online-bing.jpg
public/config/thumbnail/layert-online-bing.jpg
public/config/thumbnail/layert-online-bing.jpg
  • 2-up
  • Swipe
  • Onion skin

32.5 KB | W: | H:

80.2 KB | W: | H:

public/config/thumbnail/layert-online-gaode.jpg
public/config/thumbnail/layert-online-gaode.jpg
public/config/thumbnail/layert-online-gaode.jpg
public/config/thumbnail/layert-online-gaode.jpg
  • 2-up
  • Swipe
  • Onion skin

44.6 KB | W: | H:

74.3 KB | W: | H:

public/config/thumbnail/layert-online-geovisearth.jpg
public/config/thumbnail/layert-online-geovisearth.jpg
public/config/thumbnail/layert-online-geovisearth.jpg
public/config/thumbnail/layert-online-geovisearth.jpg
  • 2-up
  • Swipe
  • Onion skin

34.1 KB | W: | H:

64.5 KB | W: | H:

public/config/thumbnail/layert-online-google.jpg
public/config/thumbnail/layert-online-google.jpg
public/config/thumbnail/layert-online-google.jpg
public/config/thumbnail/layert-online-google.jpg
  • 2-up
  • Swipe
  • Onion skin

37.8 KB | W: | H:

53 KB | W: | H:

public/config/thumbnail/layert-online-ion.jpg
public/config/thumbnail/layert-online-ion.jpg
public/config/thumbnail/layert-online-ion.jpg
public/config/thumbnail/layert-online-ion.jpg
  • 2-up
  • Swipe
  • Onion skin

42.9 KB | W: | H:

63.6 KB | W: | H:

public/config/thumbnail/layert-online-supermap.jpg
public/config/thumbnail/layert-online-supermap.jpg
public/config/thumbnail/layert-online-supermap.jpg
public/config/thumbnail/layert-online-supermap.jpg
  • 2-up
  • Swipe
  • Onion skin

36.8 KB | W: | H:

85.7 KB | W: | H:

public/config/thumbnail/layert-online-tdt.jpg
public/config/thumbnail/layert-online-tdt.jpg
public/config/thumbnail/layert-online-tdt.jpg
public/config/thumbnail/layert-online-tdt.jpg
  • 2-up
  • Swipe
  • Onion skin

33.2 KB | W: | H:

56.4 KB | W: | H:

public/config/thumbnail/layert-online-tentect.jpg
public/config/thumbnail/layert-online-tentect.jpg
public/config/thumbnail/layert-online-tentect.jpg
public/config/thumbnail/layert-online-tentect.jpg
  • 2-up
  • Swipe
  • Onion skin

69.8 KB | W: | H:

94.5 KB | W: | H:

public/config/thumbnail/layert-online-traffic-time.jpg
public/config/thumbnail/layert-online-traffic-time.jpg
public/config/thumbnail/layert-online-traffic-time.jpg
public/config/thumbnail/layert-online-traffic-time.jpg
  • 2-up
  • Swipe
  • Onion skin

24.4 KB | W: | H:

72.8 KB | W: | H:

public/config/thumbnail/map-fun-expImage.jpg
public/config/thumbnail/map-fun-expImage.jpg
public/config/thumbnail/map-fun-expImage.jpg
public/config/thumbnail/map-fun-expImage.jpg
  • 2-up
  • Swipe
  • Onion skin
This image diff could not be displayed because it is too large. You can view the blob instead.

54.9 KB | W: | H:

65.8 KB | W: | H:

public/config/thumbnail/map-options-scene-center.jpg
public/config/thumbnail/map-options-scene-center.jpg
public/config/thumbnail/map-options-scene-center.jpg
public/config/thumbnail/map-options-scene-center.jpg
  • 2-up
  • Swipe
  • Onion skin

61.2 KB | W: | H:

89.1 KB | W: | H:

public/config/thumbnail/thing-tileset-limitHeight.jpg
public/config/thumbnail/thing-tileset-limitHeight.jpg
public/config/thumbnail/thing-tileset-limitHeight.jpg
public/config/thumbnail/thing-tileset-limitHeight.jpg
  • 2-up
  • Swipe
  • Onion skin
This source diff could not be displayed because it is too large. You can view the blob instead.
/** /**
* @license * @license
* Cesium - https://github.com/CesiumGS/cesium * Cesium - https://github.com/CesiumGS/cesium
* Version 1.111.1 * Version 1.111.2
* *
* Copyright 2011-2022 Cesium Contributors * Copyright 2011-2022 Cesium Contributors
* *
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details. * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/ */
import{a as y,b as P,c as W}from"./chunk-LXB43KQ6.js";import{a as L}from"./chunk-DKRENQ7L.js";import{a as B}from"./chunk-VWVMTNDV.js";import{b as q}from"./chunk-2XTA2UF4.js";import{e as T}from"./chunk-PIMZQP3B.js";function Y(n){let a=n._uSquared,t=n._ellipsoid.maximumRadius,e=n._ellipsoid.minimumRadius,f=(t-e)/t,m=Math.cos(n._startHeading),_=Math.sin(n._startHeading),r=(1-f)*Math.tan(n._start.latitude),p=1/Math.sqrt(1+r*r),R=p*r,M=Math.atan2(r,m),l=p*_,U=l*l,i=1-U,A=Math.sqrt(i),c=a/4,o=c*c,h=o*c,S=o*o,u=1+c-3*o/4+5*h/4-175*S/64,C=1-c+15*o/8-35*h/8,d=1-3*c+35*o/4,g=1-5*c,w=u*M-C*Math.sin(2*M)*c/2-d*Math.sin(4*M)*o/16-g*Math.sin(6*M)*h/48-Math.sin(8*M)*5*S/512,s=n._constants;s.a=t,s.b=e,s.f=f,s.cosineHeading=m,s.sineHeading=_,s.tanU=r,s.cosineU=p,s.sineU=R,s.sigma=M,s.sineAlpha=l,s.sineSquaredAlpha=U,s.cosineSquaredAlpha=i,s.cosineAlpha=A,s.u2Over4=c,s.u4Over16=o,s.u6Over64=h,s.u8Over256=S,s.a0=u,s.a1=C,s.a2=d,s.a3=g,s.distanceRatio=w}function Z(n,a){return n*a*(4+n*(4-3*a))/16}function k(n,a,t,e,f,m,_){let r=Z(n,t);return(1-r)*n*a*(e+r*f*(_+r*m*(2*_*_-1)))}function $(n,a,t,e,f,m,_){let r=(a-t)/a,p=m-e,R=Math.atan((1-r)*Math.tan(f)),M=Math.atan((1-r)*Math.tan(_)),l=Math.cos(R),U=Math.sin(R),i=Math.cos(M),A=Math.sin(M),c=l*i,o=l*A,h=U*A,S=U*i,u=p,C=L.TWO_PI,d=Math.cos(u),g=Math.sin(u),w,s,O,H,b;do{d=Math.cos(u),g=Math.sin(u);let z=o-S*d;O=Math.sqrt(i*i*g*g+z*z),s=h+c*d,w=Math.atan2(O,s);let D;O===0?(D=0,H=1):(D=c*g/O,H=1-D*D),C=u,b=s-2*h/H,isFinite(b)||(b=0),u=p+k(r,D,H,w,O,s,b)}while(Math.abs(u-C)>L.EPSILON12);let v=H*(a*a-t*t)/(t*t),V=1+v*(4096+v*(v*(320-175*v)-768))/16384,I=v*(256+v*(v*(74-47*v)-128))/1024,F=b*b,J=I*O*(b+I*(s*(2*F-1)-I*b*(4*O*O-3)*(4*F-3)/6)/4),K=t*V*(w-J),Q=Math.atan2(i*g,o-S*d),X=Math.atan2(l*g,o*d-S);n._distance=K,n._startHeading=Q,n._endHeading=X,n._uSquared=v}var j=new y,x=new y;function N(n,a,t,e){let f=y.normalize(e.cartographicToCartesian(a,x),j),m=y.normalize(e.cartographicToCartesian(t,x),x);q.typeOf.number.greaterThanOrEquals("value",Math.abs(Math.abs(y.angleBetween(f,m))-Math.PI),.0125),$(n,e.maximumRadius,e.minimumRadius,a.longitude,a.latitude,t.longitude,t.latitude),n._start=P.clone(a,n._start),n._end=P.clone(t,n._end),n._start.height=0,n._end.height=0,Y(n)}function E(n,a,t){let e=B(t,W.WGS84);this._ellipsoid=e,this._start=new P,this._end=new P,this._constants={},this._startHeading=void 0,this._endHeading=void 0,this._distance=void 0,this._uSquared=void 0,T(n)&&T(a)&&N(this,n,a,e)}Object.defineProperties(E.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return q.defined("distance",this._distance),this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},startHeading:{get:function(){return q.defined("distance",this._distance),this._startHeading}},endHeading:{get:function(){return q.defined("distance",this._distance),this._endHeading}}});E.prototype.setEndPoints=function(n,a){q.defined("start",n),q.defined("end",a),N(this,n,a,this._ellipsoid)};E.prototype.interpolateUsingFraction=function(n,a){return this.interpolateUsingSurfaceDistance(this._distance*n,a)};E.prototype.interpolateUsingSurfaceDistance=function(n,a){q.defined("distance",this._distance);let t=this._constants,e=t.distanceRatio+n/t.b,f=Math.cos(2*e),m=Math.cos(4*e),_=Math.cos(6*e),r=Math.sin(2*e),p=Math.sin(4*e),R=Math.sin(6*e),M=Math.sin(8*e),l=e*e,U=e*l,i=t.u8Over256,A=t.u2Over4,c=t.u6Over64,o=t.u4Over16,h=2*U*i*f/3+e*(1-A+7*o/4-15*c/4+579*i/64-(o-15*c/4+187*i/16)*f-(5*c/4-115*i/16)*m-29*i*_/16)+(A/2-o+71*c/32-85*i/16)*r+(5*o/16-5*c/4+383*i/96)*p-l*((c-11*i/2)*r+5*i*p/2)+(29*c/96-29*i/16)*R+539*i*M/1536,S=Math.asin(Math.sin(h)*t.cosineAlpha),u=Math.atan(t.a/t.b*Math.tan(S));h=h-t.sigma;let C=Math.cos(2*t.sigma+h),d=Math.sin(h),g=Math.cos(h),w=t.cosineU*g,s=t.sineU*d,H=Math.atan2(d*t.sineHeading,w-s*t.cosineHeading)-k(t.f,t.sineAlpha,t.cosineSquaredAlpha,h,d,g,C);return T(a)?(a.longitude=this._start.longitude+H,a.latitude=u,a.height=0,a):new P(this._start.longitude+H,u,0)};var ct=E;export{ct as a}; import{a as y,b as P,c as W}from"./chunk-GGFR7OWI.js";import{a as L}from"./chunk-VYAHZOBT.js";import{a as B}from"./chunk-CQSBXRIT.js";import{b as q}from"./chunk-637K6T77.js";import{e as T}from"./chunk-2M4TCC7F.js";function Y(n){let a=n._uSquared,t=n._ellipsoid.maximumRadius,e=n._ellipsoid.minimumRadius,f=(t-e)/t,m=Math.cos(n._startHeading),_=Math.sin(n._startHeading),r=(1-f)*Math.tan(n._start.latitude),p=1/Math.sqrt(1+r*r),R=p*r,M=Math.atan2(r,m),l=p*_,U=l*l,i=1-U,A=Math.sqrt(i),c=a/4,o=c*c,h=o*c,S=o*o,u=1+c-3*o/4+5*h/4-175*S/64,C=1-c+15*o/8-35*h/8,d=1-3*c+35*o/4,g=1-5*c,w=u*M-C*Math.sin(2*M)*c/2-d*Math.sin(4*M)*o/16-g*Math.sin(6*M)*h/48-Math.sin(8*M)*5*S/512,s=n._constants;s.a=t,s.b=e,s.f=f,s.cosineHeading=m,s.sineHeading=_,s.tanU=r,s.cosineU=p,s.sineU=R,s.sigma=M,s.sineAlpha=l,s.sineSquaredAlpha=U,s.cosineSquaredAlpha=i,s.cosineAlpha=A,s.u2Over4=c,s.u4Over16=o,s.u6Over64=h,s.u8Over256=S,s.a0=u,s.a1=C,s.a2=d,s.a3=g,s.distanceRatio=w}function Z(n,a){return n*a*(4+n*(4-3*a))/16}function k(n,a,t,e,f,m,_){let r=Z(n,t);return(1-r)*n*a*(e+r*f*(_+r*m*(2*_*_-1)))}function $(n,a,t,e,f,m,_){let r=(a-t)/a,p=m-e,R=Math.atan((1-r)*Math.tan(f)),M=Math.atan((1-r)*Math.tan(_)),l=Math.cos(R),U=Math.sin(R),i=Math.cos(M),A=Math.sin(M),c=l*i,o=l*A,h=U*A,S=U*i,u=p,C=L.TWO_PI,d=Math.cos(u),g=Math.sin(u),w,s,O,H,b;do{d=Math.cos(u),g=Math.sin(u);let z=o-S*d;O=Math.sqrt(i*i*g*g+z*z),s=h+c*d,w=Math.atan2(O,s);let D;O===0?(D=0,H=1):(D=c*g/O,H=1-D*D),C=u,b=s-2*h/H,isFinite(b)||(b=0),u=p+k(r,D,H,w,O,s,b)}while(Math.abs(u-C)>L.EPSILON12);let v=H*(a*a-t*t)/(t*t),V=1+v*(4096+v*(v*(320-175*v)-768))/16384,I=v*(256+v*(v*(74-47*v)-128))/1024,F=b*b,J=I*O*(b+I*(s*(2*F-1)-I*b*(4*O*O-3)*(4*F-3)/6)/4),K=t*V*(w-J),Q=Math.atan2(i*g,o-S*d),X=Math.atan2(l*g,o*d-S);n._distance=K,n._startHeading=Q,n._endHeading=X,n._uSquared=v}var j=new y,x=new y;function N(n,a,t,e){let f=y.normalize(e.cartographicToCartesian(a,x),j),m=y.normalize(e.cartographicToCartesian(t,x),x);q.typeOf.number.greaterThanOrEquals("value",Math.abs(Math.abs(y.angleBetween(f,m))-Math.PI),.0125),$(n,e.maximumRadius,e.minimumRadius,a.longitude,a.latitude,t.longitude,t.latitude),n._start=P.clone(a,n._start),n._end=P.clone(t,n._end),n._start.height=0,n._end.height=0,Y(n)}function E(n,a,t){let e=B(t,W.WGS84);this._ellipsoid=e,this._start=new P,this._end=new P,this._constants={},this._startHeading=void 0,this._endHeading=void 0,this._distance=void 0,this._uSquared=void 0,T(n)&&T(a)&&N(this,n,a,e)}Object.defineProperties(E.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return q.defined("distance",this._distance),this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},startHeading:{get:function(){return q.defined("distance",this._distance),this._startHeading}},endHeading:{get:function(){return q.defined("distance",this._distance),this._endHeading}}});E.prototype.setEndPoints=function(n,a){q.defined("start",n),q.defined("end",a),N(this,n,a,this._ellipsoid)};E.prototype.interpolateUsingFraction=function(n,a){return this.interpolateUsingSurfaceDistance(this._distance*n,a)};E.prototype.interpolateUsingSurfaceDistance=function(n,a){q.defined("distance",this._distance);let t=this._constants,e=t.distanceRatio+n/t.b,f=Math.cos(2*e),m=Math.cos(4*e),_=Math.cos(6*e),r=Math.sin(2*e),p=Math.sin(4*e),R=Math.sin(6*e),M=Math.sin(8*e),l=e*e,U=e*l,i=t.u8Over256,A=t.u2Over4,c=t.u6Over64,o=t.u4Over16,h=2*U*i*f/3+e*(1-A+7*o/4-15*c/4+579*i/64-(o-15*c/4+187*i/16)*f-(5*c/4-115*i/16)*m-29*i*_/16)+(A/2-o+71*c/32-85*i/16)*r+(5*o/16-5*c/4+383*i/96)*p-l*((c-11*i/2)*r+5*i*p/2)+(29*c/96-29*i/16)*R+539*i*M/1536,S=Math.asin(Math.sin(h)*t.cosineAlpha),u=Math.atan(t.a/t.b*Math.tan(S));h=h-t.sigma;let C=Math.cos(2*t.sigma+h),d=Math.sin(h),g=Math.cos(h),w=t.cosineU*g,s=t.sineU*d,H=Math.atan2(d*t.sineHeading,w-s*t.cosineHeading)-k(t.f,t.sineAlpha,t.cosineSquaredAlpha,h,d,g,C);return T(a)?(a.longitude=this._start.longitude+H,a.latitude=u,a.height=0,a):new P(this._start.longitude+H,u,0)};var ct=E;export{ct as a};
/** /**
* @license * @license
* Cesium - https://github.com/CesiumGS/cesium * Cesium - https://github.com/CesiumGS/cesium
* Version 1.111.1 * Version 1.111.2
* *
* Copyright 2011-2022 Cesium Contributors * Copyright 2011-2022 Cesium Contributors
* *
......
/** /**
* @license * @license
* Cesium - https://github.com/CesiumGS/cesium * Cesium - https://github.com/CesiumGS/cesium
* Version 1.111.1 * Version 1.111.2
* *
* Copyright 2011-2022 Cesium Contributors * Copyright 2011-2022 Cesium Contributors
* *
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details. * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/ */
import{b as t}from"./chunk-X7ZLRX4N.js";import{a as r}from"./chunk-VWVMTNDV.js";import{a as m}from"./chunk-2XTA2UF4.js";import{e as i}from"./chunk-PIMZQP3B.js";function d(e){if(e=r(e,r.EMPTY_OBJECT),!i(e.geometry))throw new m("options.geometry is required.");this.geometry=e.geometry,this.modelMatrix=t.clone(r(e.modelMatrix,t.IDENTITY)),this.id=e.id,this.pickPrimitive=e.pickPrimitive,this.attributes=r(e.attributes,{}),this.westHemisphereGeometry=void 0,this.eastHemisphereGeometry=void 0}var s=d;export{s as a}; import{b as t}from"./chunk-ZEQGVEUD.js";import{a as r}from"./chunk-CQSBXRIT.js";import{a as m}from"./chunk-637K6T77.js";import{e as i}from"./chunk-2M4TCC7F.js";function d(e){if(e=r(e,r.EMPTY_OBJECT),!i(e.geometry))throw new m("options.geometry is required.");this.geometry=e.geometry,this.modelMatrix=t.clone(r(e.modelMatrix,t.IDENTITY)),this.id=e.id,this.pickPrimitive=e.pickPrimitive,this.attributes=r(e.attributes,{}),this.westHemisphereGeometry=void 0,this.eastHemisphereGeometry=void 0}var s=d;export{s as a};
/** /**
* @license * @license
* Cesium - https://github.com/CesiumGS/cesium * Cesium - https://github.com/CesiumGS/cesium
* Version 1.111.1 * Version 1.111.2
* *
* Copyright 2011-2022 Cesium Contributors * Copyright 2011-2022 Cesium Contributors
* *
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details. * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/ */
import{a as h}from"./chunk-XV4OJ7PA.js";import{d as y}from"./chunk-X7ZLRX4N.js";import{a as n,d as a}from"./chunk-LXB43KQ6.js";import{b as f}from"./chunk-2XTA2UF4.js";var x={},b=new n,P=new n,B=new n,M=new n,w=new h;x.validOutline=function(i){f.defined("positions",i);let o=h.fromPoints(i,w).halfAxes,e=a.getColumn(o,0,P),r=a.getColumn(o,1,B),t=a.getColumn(o,2,M),u=n.magnitude(e),s=n.magnitude(r),l=n.magnitude(t);return!(u===0&&(s===0||l===0)||s===0&&l===0)};x.computeProjectTo2DArguments=function(i,c,o,e){f.defined("positions",i),f.defined("centerResult",c),f.defined("planeAxis1Result",o),f.defined("planeAxis2Result",e);let r=h.fromPoints(i,w),t=r.halfAxes,u=a.getColumn(t,0,P),s=a.getColumn(t,1,B),l=a.getColumn(t,2,M),A=n.magnitude(u),d=n.magnitude(s),g=n.magnitude(l),m=Math.min(A,d,g);if(A===0&&(d===0||g===0)||d===0&&g===0)return!1;let p,C;return(m===d||m===g)&&(p=u),m===A?p=s:m===g&&(C=s),(m===A||m===d)&&(C=l),n.normalize(p,o),n.normalize(C,e),n.clone(r.center,c),!0};function z(i,c,o,e,r){let t=n.subtract(i,c,b),u=n.dot(o,t),s=n.dot(e,t);return y.fromElements(u,s,r)}x.createProjectPointsTo2DFunction=function(i,c,o){return function(e){let r=new Array(e.length);for(let t=0;t<e.length;t++)r[t]=z(e[t],i,c,o);return r}};x.createProjectPointTo2DFunction=function(i,c,o){return function(e,r){return z(e,i,c,o,r)}};var O=x;export{O as a}; import{a as h}from"./chunk-D3MPB2CN.js";import{d as y}from"./chunk-ZEQGVEUD.js";import{a as n,d as a}from"./chunk-GGFR7OWI.js";import{b as f}from"./chunk-637K6T77.js";var x={},b=new n,P=new n,B=new n,M=new n,w=new h;x.validOutline=function(i){f.defined("positions",i);let o=h.fromPoints(i,w).halfAxes,e=a.getColumn(o,0,P),r=a.getColumn(o,1,B),t=a.getColumn(o,2,M),u=n.magnitude(e),s=n.magnitude(r),l=n.magnitude(t);return!(u===0&&(s===0||l===0)||s===0&&l===0)};x.computeProjectTo2DArguments=function(i,c,o,e){f.defined("positions",i),f.defined("centerResult",c),f.defined("planeAxis1Result",o),f.defined("planeAxis2Result",e);let r=h.fromPoints(i,w),t=r.halfAxes,u=a.getColumn(t,0,P),s=a.getColumn(t,1,B),l=a.getColumn(t,2,M),A=n.magnitude(u),d=n.magnitude(s),g=n.magnitude(l),m=Math.min(A,d,g);if(A===0&&(d===0||g===0)||d===0&&g===0)return!1;let p,C;return(m===d||m===g)&&(p=u),m===A?p=s:m===g&&(C=s),(m===A||m===d)&&(C=l),n.normalize(p,o),n.normalize(C,e),n.clone(r.center,c),!0};function z(i,c,o,e,r){let t=n.subtract(i,c,b),u=n.dot(o,t),s=n.dot(e,t);return y.fromElements(u,s,r)}x.createProjectPointsTo2DFunction=function(i,c,o){return function(e){let r=new Array(e.length);for(let t=0;t<e.length;t++)r[t]=z(e[t],i,c,o);return r}};x.createProjectPointTo2DFunction=function(i,c,o){return function(e,r){return z(e,i,c,o,r)}};var O=x;export{O as a};
/** /**
* @license * @license
* Cesium - https://github.com/CesiumGS/cesium * Cesium - https://github.com/CesiumGS/cesium
* Version 1.111.1 * Version 1.111.2
* *
* Copyright 2011-2022 Cesium Contributors * Copyright 2011-2022 Cesium Contributors
* *
...@@ -23,5 +23,5 @@ ...@@ -23,5 +23,5 @@
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details. * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/ */
import{e}from"./chunk-PIMZQP3B.js";function t(r){this.name="RuntimeError",this.message=r;let o;try{throw new Error}catch(s){o=s.stack}this.stack=o}e(Object.create)&&(t.prototype=Object.create(Error.prototype),t.prototype.constructor=t);t.prototype.toString=function(){let r=`${this.name}: ${this.message}`;return e(this.stack)&&(r+=` import{e}from"./chunk-2M4TCC7F.js";function t(r){this.name="RuntimeError",this.message=r;let o;try{throw new Error}catch(s){o=s.stack}this.stack=o}e(Object.create)&&(t.prototype=Object.create(Error.prototype),t.prototype.constructor=t);t.prototype.toString=function(){let r=`${this.name}: ${this.message}`;return e(this.stack)&&(r+=`
${this.stack.toString()}`),r};var c=t;export{c as a}; ${this.stack.toString()}`),r};var c=t;export{c as a};
/** /**
* @license * @license
* Cesium - https://github.com/CesiumGS/cesium * Cesium - https://github.com/CesiumGS/cesium
* Version 1.111.1 * Version 1.111.2
* *
* Copyright 2011-2022 Cesium Contributors * Copyright 2011-2022 Cesium Contributors
* *
...@@ -23,5 +23,5 @@ ...@@ -23,5 +23,5 @@
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details. * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/ */
import{e as u}from"./chunk-PIMZQP3B.js";function f(t){this.name="DeveloperError",this.message=t;let e;try{throw new Error}catch(o){e=o.stack}this.stack=e}u(Object.create)&&(f.prototype=Object.create(Error.prototype),f.prototype.constructor=f);f.prototype.toString=function(){let t=`${this.name}: ${this.message}`;return u(this.stack)&&(t+=` import{e as u}from"./chunk-2M4TCC7F.js";function f(t){this.name="DeveloperError",this.message=t;let e;try{throw new Error}catch(o){e=o.stack}this.stack=e}u(Object.create)&&(f.prototype=Object.create(Error.prototype),f.prototype.constructor=f);f.prototype.toString=function(){let t=`${this.name}: ${this.message}`;return u(this.stack)&&(t+=`
${this.stack.toString()}`),t};f.throwInstantiationError=function(){throw new f("This function defines an interface and should not be called directly.")};var r=f;var n={};n.typeOf={};function c(t){return`${t} is required, actual value was undefined`}function a(t,e,o){return`Expected ${o} to be typeof ${e}, actual typeof was ${t}`}n.defined=function(t,e){if(!u(e))throw new r(c(t))};n.typeOf.func=function(t,e){if(typeof e!="function")throw new r(a(typeof e,"function",t))};n.typeOf.string=function(t,e){if(typeof e!="string")throw new r(a(typeof e,"string",t))};n.typeOf.number=function(t,e){if(typeof e!="number")throw new r(a(typeof e,"number",t))};n.typeOf.number.lessThan=function(t,e,o){if(n.typeOf.number(t,e),e>=o)throw new r(`Expected ${t} to be less than ${o}, actual value was ${e}`)};n.typeOf.number.lessThanOrEquals=function(t,e,o){if(n.typeOf.number(t,e),e>o)throw new r(`Expected ${t} to be less than or equal to ${o}, actual value was ${e}`)};n.typeOf.number.greaterThan=function(t,e,o){if(n.typeOf.number(t,e),e<=o)throw new r(`Expected ${t} to be greater than ${o}, actual value was ${e}`)};n.typeOf.number.greaterThanOrEquals=function(t,e,o){if(n.typeOf.number(t,e),e<o)throw new r(`Expected ${t} to be greater than or equal to ${o}, actual value was ${e}`)};n.typeOf.object=function(t,e){if(typeof e!="object")throw new r(a(typeof e,"object",t))};n.typeOf.bool=function(t,e){if(typeof e!="boolean")throw new r(a(typeof e,"boolean",t))};n.typeOf.bigint=function(t,e){if(typeof e!="bigint")throw new r(a(typeof e,"bigint",t))};n.typeOf.number.equals=function(t,e,o,i){if(n.typeOf.number(t,o),n.typeOf.number(e,i),o!==i)throw new r(`${t} must be equal to ${e}, the actual values are ${o} and ${i}`)};var l=n;export{r as a,l as b}; ${this.stack.toString()}`),t};f.throwInstantiationError=function(){throw new f("This function defines an interface and should not be called directly.")};var r=f;var n={};n.typeOf={};function c(t){return`${t} is required, actual value was undefined`}function a(t,e,o){return`Expected ${o} to be typeof ${e}, actual typeof was ${t}`}n.defined=function(t,e){if(!u(e))throw new r(c(t))};n.typeOf.func=function(t,e){if(typeof e!="function")throw new r(a(typeof e,"function",t))};n.typeOf.string=function(t,e){if(typeof e!="string")throw new r(a(typeof e,"string",t))};n.typeOf.number=function(t,e){if(typeof e!="number")throw new r(a(typeof e,"number",t))};n.typeOf.number.lessThan=function(t,e,o){if(n.typeOf.number(t,e),e>=o)throw new r(`Expected ${t} to be less than ${o}, actual value was ${e}`)};n.typeOf.number.lessThanOrEquals=function(t,e,o){if(n.typeOf.number(t,e),e>o)throw new r(`Expected ${t} to be less than or equal to ${o}, actual value was ${e}`)};n.typeOf.number.greaterThan=function(t,e,o){if(n.typeOf.number(t,e),e<=o)throw new r(`Expected ${t} to be greater than ${o}, actual value was ${e}`)};n.typeOf.number.greaterThanOrEquals=function(t,e,o){if(n.typeOf.number(t,e),e<o)throw new r(`Expected ${t} to be greater than or equal to ${o}, actual value was ${e}`)};n.typeOf.object=function(t,e){if(typeof e!="object")throw new r(a(typeof e,"object",t))};n.typeOf.bool=function(t,e){if(typeof e!="boolean")throw new r(a(typeof e,"boolean",t))};n.typeOf.bigint=function(t,e){if(typeof e!="bigint")throw new r(a(typeof e,"bigint",t))};n.typeOf.number.equals=function(t,e,o,i){if(n.typeOf.number(t,o),n.typeOf.number(e,i),o!==i)throw new r(`${t} must be equal to ${e}, the actual values are ${o} and ${i}`)};var l=n;export{r as a,l as b};
/** /**
* @license * @license
* Cesium - https://github.com/CesiumGS/cesium * Cesium - https://github.com/CesiumGS/cesium
* Version 1.111.1 * Version 1.111.2
* *
* Copyright 2011-2022 Cesium Contributors * Copyright 2011-2022 Cesium Contributors
* *
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details. * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/ */
import{a as l,b as d}from"./chunk-X7ZLRX4N.js";import{a as t}from"./chunk-LXB43KQ6.js";import{a as s}from"./chunk-DKRENQ7L.js";import{a as f,b as r}from"./chunk-2XTA2UF4.js";import{e as m}from"./chunk-PIMZQP3B.js";function o(e,n){if(r.typeOf.object("normal",e),!s.equalsEpsilon(t.magnitude(e),1,s.EPSILON6))throw new f("normal must be normalized.");r.typeOf.number("distance",n),this.normal=t.clone(e),this.distance=n}o.fromPointNormal=function(e,n,a){if(r.typeOf.object("point",e),r.typeOf.object("normal",n),!s.equalsEpsilon(t.magnitude(n),1,s.EPSILON6))throw new f("normal must be normalized.");let c=-t.dot(n,e);return m(a)?(t.clone(n,a.normal),a.distance=c,a):new o(n,c)};var b=new t;o.fromCartesian4=function(e,n){r.typeOf.object("coefficients",e);let a=t.fromCartesian4(e,b),c=e.w;if(!s.equalsEpsilon(t.magnitude(a),1,s.EPSILON6))throw new f("normal must be normalized.");return m(n)?(t.clone(a,n.normal),n.distance=c,n):new o(a,c)};o.getPointDistance=function(e,n){return r.typeOf.object("plane",e),r.typeOf.object("point",n),t.dot(e.normal,n)+e.distance};var y=new t;o.projectPointOntoPlane=function(e,n,a){r.typeOf.object("plane",e),r.typeOf.object("point",n),m(a)||(a=new t);let c=o.getPointDistance(e,n),p=t.multiplyByScalar(e.normal,c,y);return t.subtract(n,p,a)};var w=new d,j=new l,N=new t;o.transform=function(e,n,a){r.typeOf.object("plane",e),r.typeOf.object("transform",n);let c=e.normal,p=e.distance,u=d.inverseTranspose(n,w),i=l.fromElements(c.x,c.y,c.z,p,j);i=d.multiplyByVector(u,i,i);let O=t.fromCartesian4(i,N);return i=l.divideByScalar(i,t.magnitude(O),i),o.fromCartesian4(i,a)};o.clone=function(e,n){return r.typeOf.object("plane",e),m(n)?(t.clone(e.normal,n.normal),n.distance=e.distance,n):new o(e.normal,e.distance)};o.equals=function(e,n){return r.typeOf.object("left",e),r.typeOf.object("right",n),e.distance===n.distance&&t.equals(e.normal,n.normal)};o.ORIGIN_XY_PLANE=Object.freeze(new o(t.UNIT_Z,0));o.ORIGIN_YZ_PLANE=Object.freeze(new o(t.UNIT_X,0));o.ORIGIN_ZX_PLANE=Object.freeze(new o(t.UNIT_Y,0));var T=o;export{T as a}; import{a as l,b as d}from"./chunk-ZEQGVEUD.js";import{a as t}from"./chunk-GGFR7OWI.js";import{a as s}from"./chunk-VYAHZOBT.js";import{a as f,b as r}from"./chunk-637K6T77.js";import{e as m}from"./chunk-2M4TCC7F.js";function o(e,n){if(r.typeOf.object("normal",e),!s.equalsEpsilon(t.magnitude(e),1,s.EPSILON6))throw new f("normal must be normalized.");r.typeOf.number("distance",n),this.normal=t.clone(e),this.distance=n}o.fromPointNormal=function(e,n,a){if(r.typeOf.object("point",e),r.typeOf.object("normal",n),!s.equalsEpsilon(t.magnitude(n),1,s.EPSILON6))throw new f("normal must be normalized.");let c=-t.dot(n,e);return m(a)?(t.clone(n,a.normal),a.distance=c,a):new o(n,c)};var b=new t;o.fromCartesian4=function(e,n){r.typeOf.object("coefficients",e);let a=t.fromCartesian4(e,b),c=e.w;if(!s.equalsEpsilon(t.magnitude(a),1,s.EPSILON6))throw new f("normal must be normalized.");return m(n)?(t.clone(a,n.normal),n.distance=c,n):new o(a,c)};o.getPointDistance=function(e,n){return r.typeOf.object("plane",e),r.typeOf.object("point",n),t.dot(e.normal,n)+e.distance};var y=new t;o.projectPointOntoPlane=function(e,n,a){r.typeOf.object("plane",e),r.typeOf.object("point",n),m(a)||(a=new t);let c=o.getPointDistance(e,n),p=t.multiplyByScalar(e.normal,c,y);return t.subtract(n,p,a)};var w=new d,j=new l,N=new t;o.transform=function(e,n,a){r.typeOf.object("plane",e),r.typeOf.object("transform",n);let c=e.normal,p=e.distance,u=d.inverseTranspose(n,w),i=l.fromElements(c.x,c.y,c.z,p,j);i=d.multiplyByVector(u,i,i);let O=t.fromCartesian4(i,N);return i=l.divideByScalar(i,t.magnitude(O),i),o.fromCartesian4(i,a)};o.clone=function(e,n){return r.typeOf.object("plane",e),m(n)?(t.clone(e.normal,n.normal),n.distance=e.distance,n):new o(e.normal,e.distance)};o.equals=function(e,n){return r.typeOf.object("left",e),r.typeOf.object("right",n),e.distance===n.distance&&t.equals(e.normal,n.normal)};o.ORIGIN_XY_PLANE=Object.freeze(new o(t.UNIT_Z,0));o.ORIGIN_YZ_PLANE=Object.freeze(new o(t.UNIT_X,0));o.ORIGIN_ZX_PLANE=Object.freeze(new o(t.UNIT_Y,0));var T=o;export{T as a};
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论