mars3d 3.7.5 → 3.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mars3d.css +3 -3
- package/dist/mars3d.d.ts +246 -18
- package/dist/mars3d.js +3 -3
- package/package.json +1 -1
package/dist/mars3d.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Mars3D三维可视化平台 mars3d
|
|
3
3
|
*
|
|
4
|
-
* 版本信息:v3.7.
|
|
5
|
-
* 编译日期:2024-03-
|
|
4
|
+
* 版本信息:v3.7.7
|
|
5
|
+
* 编译日期:2024-03-19 15:55:13
|
|
6
6
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
7
7
|
* 使用单位:免费公开版 ,2024-01-15
|
|
8
8
|
*/
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
}
|
|
474
474
|
.mar3d-toolButton {
|
|
475
475
|
cursor: pointer;
|
|
476
|
-
margin: 0;
|
|
476
|
+
margin: 0 3px;
|
|
477
477
|
padding: 0;
|
|
478
478
|
}
|
|
479
479
|
.mar3d-toolButton img,
|
package/dist/mars3d.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Mars3D三维可视化平台 mars3d
|
|
4
4
|
*
|
|
5
|
-
* 版本信息:v3.7.
|
|
6
|
-
* 编译日期:2024-03-
|
|
5
|
+
* 版本信息:v3.7.7
|
|
6
|
+
* 编译日期:2024-03-19 15:55:13
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2024-01-15
|
|
9
9
|
*/
|
|
@@ -974,61 +974,220 @@ declare enum Lang {
|
|
|
974
974
|
*/
|
|
975
975
|
type = "cn",
|
|
976
976
|
/**
|
|
977
|
-
* Cesium renderError 错误弹窗
|
|
977
|
+
* Cesium内部 renderError时 错误弹窗
|
|
978
978
|
*/
|
|
979
979
|
RenderingHasStopped = "WebGL\u53D1\u751F\u6E32\u67D3\u9519\u8BEF,\u6E32\u67D3\u5DF2\u7ECF\u505C\u6B62,\u8BF7\u5237\u65B0\u9875\u9762\u3002",
|
|
980
|
+
/**
|
|
981
|
+
* Cesium内部 渲染try catch异常时 错误弹窗
|
|
982
|
+
*/
|
|
980
983
|
ErrorConstructingCesiumWidget = "WebGL\u53D1\u751F\u6E32\u67D3\u9519\u8BEF,\u6E32\u67D3\u5DF2\u7ECF\u505C\u6B62,\u8BF7\u5237\u65B0\u9875\u9762\u3002",
|
|
984
|
+
/**
|
|
985
|
+
* {@link Animation } 控件相关
|
|
986
|
+
*/
|
|
981
987
|
Today = "\u4ECA\u5929",
|
|
988
|
+
/**
|
|
989
|
+
* {@link Animation } 控件相关
|
|
990
|
+
*/
|
|
982
991
|
TodayRealTime = "\u4ECA\u5929\uFF08\u5B9E\u9645\u65F6\u95F4\uFF09",
|
|
992
|
+
/**
|
|
993
|
+
* {@link Animation } 控件相关
|
|
994
|
+
*/
|
|
983
995
|
Pause = "\u6682\u505C",
|
|
996
|
+
/**
|
|
997
|
+
* {@link Animation } 控件相关
|
|
998
|
+
*/
|
|
984
999
|
PlayReverse = "\u540E\u9000\u64AD\u653E",
|
|
1000
|
+
/**
|
|
1001
|
+
* {@link Animation } 控件相关
|
|
1002
|
+
*/
|
|
985
1003
|
PlayForward = "\u524D\u8FDB\u64AD\u653E",
|
|
1004
|
+
/**
|
|
1005
|
+
* {@link Animation } 控件相关
|
|
1006
|
+
*/
|
|
986
1007
|
CurrentTimeNotInRange = "\u5F53\u524D\u65F6\u95F4\u4E0D\u5728\u8303\u56F4\u5185",
|
|
1008
|
+
/**
|
|
1009
|
+
* {@link BaseLayerPicker } 控件相关
|
|
1010
|
+
*/
|
|
987
1011
|
Imagery = "\u5F71\u50CF",
|
|
1012
|
+
/**
|
|
1013
|
+
* {@link BaseLayerPicker } 控件相关
|
|
1014
|
+
*/
|
|
988
1015
|
CesiumIon = "\u5B98\u65B9ION",
|
|
1016
|
+
/**
|
|
1017
|
+
* {@link BaseLayerPicker } 控件相关
|
|
1018
|
+
*/
|
|
989
1019
|
Other = "\u5176\u4ED6",
|
|
1020
|
+
/**
|
|
1021
|
+
* {@link BaseLayerPicker } 控件:地形服务
|
|
1022
|
+
*/
|
|
990
1023
|
Terrain = "\u5730\u5F62\u670D\u52A1",
|
|
1024
|
+
/**
|
|
1025
|
+
* {@link BaseLayerPicker } 控件:无地形
|
|
1026
|
+
*/
|
|
991
1027
|
EllipsoidTerrainProvider = "\u65E0\u5730\u5F62",
|
|
1028
|
+
/**
|
|
1029
|
+
* {@link BaseLayerPicker } 控件:无地形提示
|
|
1030
|
+
*/
|
|
992
1031
|
EllipsoidTerrainProviderTooltip = "WGS84\u6807\u51C6\u692D\u7403\u4F53\uFF0C\u6CA1\u6709\u5730\u5F62\u6570\u636E",
|
|
1032
|
+
/**
|
|
1033
|
+
* {@link BaseLayerPicker } 控件:有地形
|
|
1034
|
+
*/
|
|
993
1035
|
TerrainProvider = "\u6709\u5730\u5F62",
|
|
1036
|
+
/**
|
|
1037
|
+
* {@link BaseLayerPicker } 控件:有地形提示
|
|
1038
|
+
*/
|
|
994
1039
|
TerrainProviderTooltip = "\u63D0\u4F9B\u7684\u9AD8\u7CBE\u5EA6\u7684DEM\u5730\u5F62\u670D\u52A1",
|
|
1040
|
+
/**
|
|
1041
|
+
* {@link FullscreenButton } 控件:全屏
|
|
1042
|
+
*/
|
|
995
1043
|
FullScreen = "\u5168\u5C4F",
|
|
1044
|
+
/**
|
|
1045
|
+
* {@link FullscreenButton } 控件:退出全屏
|
|
1046
|
+
*/
|
|
996
1047
|
ExitFullScreen = "\u9000\u51FA\u5168\u5C4F",
|
|
1048
|
+
/**
|
|
1049
|
+
* {@link FullscreenButton } 控件:全屏不可用
|
|
1050
|
+
*/
|
|
997
1051
|
FullScreenUnavailable = "\u5168\u5C4F\u4E0D\u53EF\u7528",
|
|
998
|
-
|
|
1052
|
+
/**
|
|
1053
|
+
* {@link Geocoder } 控件:请输入关键字
|
|
1054
|
+
*/
|
|
1055
|
+
EnterAnAddressOrLandmark = "\u8BF7\u8F93\u5165\u5173\u952E\u5B57...",
|
|
1056
|
+
/**
|
|
1057
|
+
* {@link Geocoder } 控件:查询中
|
|
1058
|
+
*/
|
|
999
1059
|
Searching = "\u67E5\u8BE2\u4E2D...",
|
|
1060
|
+
/**
|
|
1061
|
+
* {@link HomeButton } 控件title
|
|
1062
|
+
*/
|
|
1000
1063
|
ViewHome = "\u521D\u59CB\u89C6\u56FE",
|
|
1064
|
+
/**
|
|
1065
|
+
* {@link NavigationHelpButton } 控件title
|
|
1066
|
+
*/
|
|
1001
1067
|
NavigationInstructions = "\u5E2E\u52A9",
|
|
1068
|
+
/**
|
|
1069
|
+
* {@link NavigationHelpButton } 控件内容相关
|
|
1070
|
+
*/
|
|
1002
1071
|
Mouse = "\u9F20\u6807\u64CD\u4F5C",
|
|
1072
|
+
/**
|
|
1073
|
+
* {@link NavigationHelpButton } 控件内容相关
|
|
1074
|
+
*/
|
|
1003
1075
|
Touch = "\u89E6\u6478\u624B\u52BF",
|
|
1076
|
+
/**
|
|
1077
|
+
* {@link NavigationHelpButton } 控件内容相关
|
|
1078
|
+
*/
|
|
1004
1079
|
PanView = "\u5E73\u79FB\u89C6\u56FE",
|
|
1080
|
+
/**
|
|
1081
|
+
* {@link NavigationHelpButton } 控件内容相关
|
|
1082
|
+
*/
|
|
1005
1083
|
LeftClickDrag = "\u9F20\u6807\u5DE6\u952E+\u62D6\u62FD",
|
|
1084
|
+
/**
|
|
1085
|
+
* {@link NavigationHelpButton } 控件内容相关
|
|
1086
|
+
*/
|
|
1006
1087
|
ZoomView = "\u7F29\u653E\u89C6\u56FE",
|
|
1088
|
+
/**
|
|
1089
|
+
* {@link NavigationHelpButton } 控件内容相关
|
|
1090
|
+
*/
|
|
1007
1091
|
RightClick = "\u53F3\u952E+\u62D6\u62FD\uFF0C\u6216\u8005",
|
|
1092
|
+
/**
|
|
1093
|
+
* {@link NavigationHelpButton } 控件内容相关
|
|
1094
|
+
*/
|
|
1008
1095
|
MouseWheelScroll = "\u4E2D\u952E\u6EDA\u52A8",
|
|
1096
|
+
/**
|
|
1097
|
+
* {@link NavigationHelpButton } 控件内容相关
|
|
1098
|
+
*/
|
|
1009
1099
|
RotateView = "\u65CB\u8F6C\u89C6\u56FE",
|
|
1100
|
+
/**
|
|
1101
|
+
* {@link NavigationHelpButton } 控件内容相关
|
|
1102
|
+
*/
|
|
1010
1103
|
MiddleClickDrag = "\u4E2D\u952E\u6309\u4E0B\u62D6\u62FD\uFF0C\u6216\u8005",
|
|
1104
|
+
/**
|
|
1105
|
+
* {@link NavigationHelpButton } 控件内容相关
|
|
1106
|
+
*/
|
|
1011
1107
|
CtrlAndClickDrag = "\u6309Ctrl\u952E \u540C\u65F6 \u5DE6/\u53F3\u952E\u62D6\u62FD",
|
|
1108
|
+
/**
|
|
1109
|
+
* {@link NavigationHelpButton } 控件内容相关
|
|
1110
|
+
*/
|
|
1012
1111
|
OneFingerDrag = "\u5355\u6307\u62D6\u52A8",
|
|
1112
|
+
/**
|
|
1113
|
+
* {@link NavigationHelpButton } 控件内容相关
|
|
1114
|
+
*/
|
|
1013
1115
|
TwoFingerPinch = "\u53CC\u6307\u5411\u5185\u6216\u5411\u5916\u6ED1\u52A8",
|
|
1116
|
+
/**
|
|
1117
|
+
* {@link NavigationHelpButton } 控件内容相关
|
|
1118
|
+
*/
|
|
1014
1119
|
TiltView = "\u503E\u659C\u89C6\u56FE",
|
|
1120
|
+
/**
|
|
1121
|
+
* {@link NavigationHelpButton } 控件内容相关
|
|
1122
|
+
*/
|
|
1015
1123
|
TwoFingerDragSameDirection = "\u53CC\u6307\u6309\u76F8\u540C\u65B9\u5411\u62D6\u52A8",
|
|
1124
|
+
/**
|
|
1125
|
+
* {@link NavigationHelpButton } 控件内容相关
|
|
1126
|
+
*/
|
|
1016
1127
|
TwoFingerDragOppositeDirection = "\u53CC\u6307\u6309\u76F8\u53CD\u65B9\u5411\u62D6\u52A8",
|
|
1128
|
+
/**
|
|
1129
|
+
* {@link ProjectionPicker } 控件:透视投影
|
|
1130
|
+
*/
|
|
1017
1131
|
PerspectiveProjection = "\u900F\u89C6\u6295\u5F71",
|
|
1132
|
+
/**
|
|
1133
|
+
* {@link ProjectionPicker } 控件:正射投影
|
|
1134
|
+
*/
|
|
1018
1135
|
OrthographicProjection = "\u6B63\u5C04\u6295\u5F71",
|
|
1136
|
+
/**
|
|
1137
|
+
* {@link SceneModePicker } 控件:二维视图
|
|
1138
|
+
*/
|
|
1019
1139
|
_2D = "\u4E8C\u7EF4\u89C6\u56FE",
|
|
1140
|
+
/**
|
|
1141
|
+
* {@link SceneModePicker } 控件:三维视图
|
|
1142
|
+
*/
|
|
1020
1143
|
_3D = "\u4E09\u7EF4\u89C6\u56FE",
|
|
1144
|
+
/**
|
|
1145
|
+
* {@link SceneModePicker } 控件:哥伦布2.5D视图
|
|
1146
|
+
*/
|
|
1021
1147
|
ColumbusView = "\u54E5\u4F26\u5E032.5D\u89C6\u56FE",
|
|
1148
|
+
/**
|
|
1149
|
+
* {@link VRButton } 控件:进入VR模式
|
|
1150
|
+
*/
|
|
1022
1151
|
EnterVRMode = "\u8FDB\u5165VR\u6A21\u5F0F",
|
|
1152
|
+
/**
|
|
1153
|
+
* {@link VRButton } 控件:退出VR模式
|
|
1154
|
+
*/
|
|
1023
1155
|
ExitVRMode = "\u9000\u51FAVR\u6A21\u5F0F",
|
|
1156
|
+
/**
|
|
1157
|
+
* {@link VRButton } 控件:VR模式不可用
|
|
1158
|
+
*/
|
|
1024
1159
|
VRModeIsUnavailable = "VR\u6A21\u5F0F\u4E0D\u53EF\u7528",
|
|
1160
|
+
/**
|
|
1161
|
+
* {@link Zoom } 控件:放大
|
|
1162
|
+
*/
|
|
1025
1163
|
"_放大" = "\u653E\u5927",
|
|
1164
|
+
/**
|
|
1165
|
+
* {@link Zoom } 控件:缩小
|
|
1166
|
+
*/
|
|
1026
1167
|
"_缩小" = "\u7F29\u5C0F",
|
|
1168
|
+
/**
|
|
1169
|
+
* {@link ClockAnimate } 控件:暂停
|
|
1170
|
+
*/
|
|
1027
1171
|
"_暂停" = "\u6682\u505C",
|
|
1172
|
+
/**
|
|
1173
|
+
* {@link ClockAnimate } 控件:继续
|
|
1174
|
+
*/
|
|
1028
1175
|
"_继续" = "\u7EE7\u7EED",
|
|
1176
|
+
/**
|
|
1177
|
+
* {@link Compass } 控件相关
|
|
1178
|
+
*/
|
|
1029
1179
|
"_导航球" = "\u5BFC\u822A\u7403",
|
|
1180
|
+
/**
|
|
1181
|
+
* {@link Compass } 控件相关
|
|
1182
|
+
*/
|
|
1030
1183
|
"_拖拽调整俯仰角" = "\u62D6\u62FD\u8C03\u6574\u4FEF\u4EF0\u89D2",
|
|
1184
|
+
/**
|
|
1185
|
+
* {@link Compass } 控件相关
|
|
1186
|
+
*/
|
|
1031
1187
|
"_拖拽调整四周方向角" = "\u62D6\u62FD\u8C03\u6574\u56DB\u5468\u65B9\u5411\u89D2\uFF0C\u53CC\u51FB\u56DE\u6B63\u5317",
|
|
1188
|
+
/**
|
|
1189
|
+
* 内置右键菜单相关
|
|
1190
|
+
*/
|
|
1032
1191
|
"_查看此处坐标" = "\u67E5\u770B\u6B64\u5904\u5750\u6807",
|
|
1033
1192
|
"_位置信息" = "\u4F4D\u7F6E\u4FE1\u606F",
|
|
1034
1193
|
"_经度" = "\u7ECF\u5EA6",
|
|
@@ -1096,6 +1255,9 @@ declare enum Lang {
|
|
|
1096
1255
|
"_场景出图" = "\u573A\u666F\u51FA\u56FE",
|
|
1097
1256
|
"_图上量算" = "\u56FE\u4E0A\u91CF\u7B97",
|
|
1098
1257
|
"_删除测量" = "\u5220\u9664\u6D4B\u91CF",
|
|
1258
|
+
/**
|
|
1259
|
+
* 图上量算 tooltip 相关
|
|
1260
|
+
*/
|
|
1099
1261
|
"_角度" = "\u89D2\u5EA6",
|
|
1100
1262
|
"_距离" = "\u8DDD\u79BB",
|
|
1101
1263
|
"_面积" = "\u9762\u79EF",
|
|
@@ -1124,6 +1286,9 @@ declare enum Lang {
|
|
|
1124
1286
|
"_秒" = "\u79D2",
|
|
1125
1287
|
"_分钟" = "\u5206\u949F",
|
|
1126
1288
|
"_小时" = "\u5C0F\u65F6",
|
|
1289
|
+
/**
|
|
1290
|
+
* 标绘 tooltip 相关
|
|
1291
|
+
*/
|
|
1127
1292
|
"_单击开始绘制" = "\u5355\u51FB\u5F00\u59CB\u7ED8\u5236",
|
|
1128
1293
|
"_单击完成绘制" = "\u5355\u51FB\u5B8C\u6210\u7ED8\u5236",
|
|
1129
1294
|
"_双击完成绘制" = "\u53CC\u51FB\u5B8C\u6210\u7ED8\u5236",
|
|
@@ -1156,6 +1321,9 @@ declare enum Lang {
|
|
|
1156
1321
|
"_无法删除不能少于最小点数" = "\u65E0\u6CD5\u5220\u9664\uFF0C\u70B9\u6570\u91CF\u4E0D\u80FD\u5C11\u4E8E",
|
|
1157
1322
|
"_删除" = "\u5220\u9664",
|
|
1158
1323
|
"_半径" = "\u534A\u5F84",
|
|
1324
|
+
/**
|
|
1325
|
+
* ModelEntity 标绘时的tooltip加载中提示
|
|
1326
|
+
*/
|
|
1159
1327
|
"_加载模型中" = "\u52A0\u8F7D\u6A21\u578B\u4E2D,\u8BF7\u7A0D\u7B49\u2026"
|
|
1160
1328
|
}
|
|
1161
1329
|
|
|
@@ -1451,6 +1619,7 @@ declare namespace MaterialType {
|
|
|
1451
1619
|
* @property [color = new Cesium.Color(1.0, 1.0, 0.0, 0.5)] - 颜色
|
|
1452
1620
|
* @property [alphaPower = 1.5] - 透明度系数
|
|
1453
1621
|
* @property [diffusePower = 1.6] - 漫射系数
|
|
1622
|
+
* @property [isInner = false] - 渐变方向, true向内、false外向
|
|
1454
1623
|
* @property [center = new Cesium.Cartesian2(0.5, 0.5)] - 渐变位置,默认在中心
|
|
1455
1624
|
*/
|
|
1456
1625
|
const PolyGradient: string;
|
|
@@ -1911,7 +2080,6 @@ declare class ClockAnimate extends BaseControl {
|
|
|
1911
2080
|
/**
|
|
1912
2081
|
* 导航球控件
|
|
1913
2082
|
* @param [options] - 参数对象,包括以下:
|
|
1914
|
-
* @param [options.rotation = true] - 是否启用调整俯仰角(按中间区域往四周拖拽)
|
|
1915
2083
|
* @param [options.top] - css定位top位置, 如 top: '10px'
|
|
1916
2084
|
* @param [options.bottom] - css定位bottom位置,支持配置'toolbar'自动跟随cesium-viewer-toolbar
|
|
1917
2085
|
* @param [options.left] - css定位left位置
|
|
@@ -1922,6 +2090,8 @@ declare class ClockAnimate extends BaseControl {
|
|
|
1922
2090
|
* @param [options.outerSvg] - 外部圆环区域的SVG图片
|
|
1923
2091
|
* @param [options.innerSvg] - 中心球区域的SVG图片
|
|
1924
2092
|
* @param [options.rotationArcSvg] - rotation为true时,按中间区域往四周拖拽时,调整俯仰角的对外部圆环的半弧遮盖SVG图片
|
|
2093
|
+
* @param [options.rotation = true] - 是否启用调整俯仰角(按中间区域往四周拖拽)
|
|
2094
|
+
* @param [options.clickToNorth = true] - 是否启用双击外部圆环区域视角调整为正北
|
|
1925
2095
|
* @param [options.id = createGuid()] - 对象的id标识
|
|
1926
2096
|
* @param [options.enabled = true] - 对象的启用状态
|
|
1927
2097
|
* @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container
|
|
@@ -1930,7 +2100,6 @@ declare class ClockAnimate extends BaseControl {
|
|
|
1930
2100
|
*/
|
|
1931
2101
|
declare class Compass extends BaseControl {
|
|
1932
2102
|
constructor(options?: {
|
|
1933
|
-
rotation?: boolean;
|
|
1934
2103
|
top?: string;
|
|
1935
2104
|
bottom?: string;
|
|
1936
2105
|
left?: string;
|
|
@@ -1941,6 +2110,8 @@ declare class Compass extends BaseControl {
|
|
|
1941
2110
|
outerSvg?: string;
|
|
1942
2111
|
innerSvg?: string;
|
|
1943
2112
|
rotationArcSvg?: string;
|
|
2113
|
+
rotation?: boolean;
|
|
2114
|
+
clickToNorth?: boolean;
|
|
1944
2115
|
id?: string | number;
|
|
1945
2116
|
enabled?: boolean;
|
|
1946
2117
|
parentContainer?: HTMLElement;
|
|
@@ -2038,7 +2209,7 @@ declare class CubeView extends BaseControl {
|
|
|
2038
2209
|
* 时钟仪表控制 控件 (Cesium原生)
|
|
2039
2210
|
* @param [options] - 参数对象,包括以下:
|
|
2040
2211
|
* @param [options.ticks = [0.1, 0.25, 0.5, 1.0, 2.0, 5.0, 10.0, 15.0, 30.0, 60.0, 120.0, 300.0, 600.0, 900.0, 1800.0, 3600.0]] - 可选的步长
|
|
2041
|
-
* @param [formatTimeStr = true] - 是否格式化时间文本为普通格式 ,比如 yyyy-MM-dd 、HH:mm:ss
|
|
2212
|
+
* @param [options.formatTimeStr = true] - 是否格式化时间文本为普通格式 ,比如 yyyy-MM-dd 、HH:mm:ss
|
|
2042
2213
|
* @param [options.id = createGuid()] - 对象的id标识
|
|
2043
2214
|
* @param [options.enabled = true] - 对象的启用状态
|
|
2044
2215
|
* @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container
|
|
@@ -2048,12 +2219,13 @@ declare class CubeView extends BaseControl {
|
|
|
2048
2219
|
declare class Animation extends BaseCzmControl {
|
|
2049
2220
|
constructor(options?: {
|
|
2050
2221
|
ticks?: number[];
|
|
2222
|
+
formatTimeStr?: boolean;
|
|
2051
2223
|
id?: string | number;
|
|
2052
2224
|
enabled?: boolean;
|
|
2053
2225
|
parentContainer?: HTMLElement;
|
|
2054
2226
|
insertIndex?: number;
|
|
2055
2227
|
insertBefore?: HTMLElement | string;
|
|
2056
|
-
}
|
|
2228
|
+
});
|
|
2057
2229
|
}
|
|
2058
2230
|
|
|
2059
2231
|
/**
|
|
@@ -10780,7 +10952,7 @@ declare namespace EllipsoidEntity {
|
|
|
10780
10952
|
* @property [opacity = 1.0] - 透明度, 取值范围:0.0-1.0
|
|
10781
10953
|
* @property [outline = false] - 是否边框
|
|
10782
10954
|
* @property [outlineWidth = 1] - 边框宽度,outlineWidth只适用于非Windows系统,如Android、iOS、Linux和OS X。这是由于WebGL是如何在Windows上的所有三个主要浏览器引擎中实现所限制的,目前只能显示1px。
|
|
10783
|
-
* @property [outlineColor =
|
|
10955
|
+
* @property [outlineColor = Cesium.Color.BLACK] - 边框颜色
|
|
10784
10956
|
* @property [outlineOpacity = 0.6] - 边框透明度
|
|
10785
10957
|
* @property [stackPartitions = 64] - 指定竖向划分数量
|
|
10786
10958
|
* @property [slicePartitions = 64] - 指定横向划分数量
|
|
@@ -12913,6 +13085,12 @@ declare class RectangleEntity extends BasePolyEntity {
|
|
|
12913
13085
|
* 位置坐标数组
|
|
12914
13086
|
*/
|
|
12915
13087
|
readonly points: LngLatPoint[] | Cesium.Cartesian3[] | any[];
|
|
13088
|
+
/**
|
|
13089
|
+
* 按Cesium.CallbackProperty的方式 更新坐标集合(更加平滑)
|
|
13090
|
+
* @param [positions] - 坐标数组
|
|
13091
|
+
* @returns 当前坐标集合
|
|
13092
|
+
*/
|
|
13093
|
+
setCallbackPositions(positions?: string[] | any[][] | LngLatPoint[]): Cesium.Cartesian3[];
|
|
12916
13094
|
/**
|
|
12917
13095
|
* 飞行定位至 数据所在的视角
|
|
12918
13096
|
* @param [options = {}] - 参数对象:
|
|
@@ -22251,7 +22429,23 @@ declare namespace I3SLayer {
|
|
|
22251
22429
|
* @param [options.traceFetches = false] - 调试选项。当为true时,每当获取I3S tile时记录一条消息。
|
|
22252
22430
|
* @param [options.geoidTiledTerrainProvider] - arcgis地形服务。如果定义了,I3S模型将基于此地形服务的偏移量进行移位。需要将与重力相关高度的I3S数据集定位在正确的位置。
|
|
22253
22431
|
*
|
|
22254
|
-
* //以下是
|
|
22432
|
+
* //以下是TilesetLayer图层参数
|
|
22433
|
+
* @param [options.position] - 自定义新的中心点位置(移动模型)
|
|
22434
|
+
* @param [options.position.lng] - 经度值, -180 至 180
|
|
22435
|
+
* @param [options.position.lat] - 纬度值, -90 至 90
|
|
22436
|
+
* @param [options.position.alt] - 高度值(单位:米)
|
|
22437
|
+
* @param [options.position.alt_offset] - 相对于模型本身高度的偏移值(单位:米) ,如果有alt时已alt优先。
|
|
22438
|
+
* @param [options.rotation] - 自定义旋转方向(旋转模型)
|
|
22439
|
+
* @param options.rotation.x - X方向,角度值0-360
|
|
22440
|
+
* @param options.rotation.y - Y方向,角度值0-360
|
|
22441
|
+
* @param options.rotation.z - 四周方向,角度值0-360
|
|
22442
|
+
* @param [options.scale = 1] - 自定义缩放比例,整体等比例缩放
|
|
22443
|
+
* @param [options.scaleX = 1] - 单独自定义缩放X轴方向比例
|
|
22444
|
+
* @param [options.scaleY = 1] - 单独自定义缩放Y轴方向比例
|
|
22445
|
+
* @param [options.scaleZ = 1] - 单独自定义缩放Z轴方向比例
|
|
22446
|
+
*
|
|
22447
|
+
*
|
|
22448
|
+
* //以下是Cesium3DTileset参数
|
|
22255
22449
|
* @param [options.maximumScreenSpaceError = 16] - 用于驱动细化细节级别的最大屏幕空间错误。可以简单理解为:数值加大,能让最终成像变模糊。
|
|
22256
22450
|
* @param [options.cacheBytes = 536870912] - 如果缓存包含当前视图不需要的块,则块缓存将被修剪到的大小(以字节为单位)。
|
|
22257
22451
|
* @param [options.maximumCacheOverflowBytes = 536870912] - 如果当前视图需要超过{@link Cesium3DTileset#cacheBytes},则允许缓存净空的最大额外内存(以字节为单位)。
|
|
@@ -22323,6 +22517,21 @@ declare class I3SLayer extends BaseGraphicLayer {
|
|
|
22323
22517
|
url: string | Cesium.Resource;
|
|
22324
22518
|
traceFetches?: boolean;
|
|
22325
22519
|
geoidTiledTerrainProvider?: any | Cesium.ArcGISTiledElevationTerrainProvider;
|
|
22520
|
+
position?: {
|
|
22521
|
+
lng?: number;
|
|
22522
|
+
lat?: number;
|
|
22523
|
+
alt?: number;
|
|
22524
|
+
alt_offset?: number;
|
|
22525
|
+
};
|
|
22526
|
+
rotation?: {
|
|
22527
|
+
x: number;
|
|
22528
|
+
y: number;
|
|
22529
|
+
z: number;
|
|
22530
|
+
};
|
|
22531
|
+
scale?: number;
|
|
22532
|
+
scaleX?: number;
|
|
22533
|
+
scaleY?: number;
|
|
22534
|
+
scaleZ?: number;
|
|
22326
22535
|
maximumScreenSpaceError?: number;
|
|
22327
22536
|
cacheBytes?: number;
|
|
22328
22537
|
maximumCacheOverflowBytes?: number;
|
|
@@ -22831,10 +23040,12 @@ declare namespace TilesetLayer {
|
|
|
22831
23040
|
* 3dtiles 三维模型图层。
|
|
22832
23041
|
* @param options - 参数对象, 构造参数建议从{@link http://mars3d.cn/editor-vue.html?id=layer-tileset/manager/edit|模型编辑页面}设置后保存参数后拷贝json参数即可。参数包括以下:
|
|
22833
23042
|
* @param [options.url] - tileset的主JSON文件的 url
|
|
22834
|
-
* @param [options.assetId] - ion资源时对应的assetId
|
|
22835
23043
|
* @param [options.maximumScreenSpaceError = 16] - 用于驱动细化细节级别的最大屏幕空间错误。可以简单理解为:数值加大,能让最终成像变模糊。
|
|
22836
|
-
* @param [options.
|
|
22837
|
-
* @param [options.
|
|
23044
|
+
* @param [options.assetId] - ion资源时对应的assetId
|
|
23045
|
+
* @param [options.ionAccessToken = Cesium.Ion.defaultAccessToken] - ion资源时对应的token
|
|
23046
|
+
* @param [options.ionServer = Cesium.Ion.defaultServer] - ion资源时对应的server
|
|
23047
|
+
* @param [options.cacheBytes = 1073741824] - 额定显存大小(以字节为单位),允许在这个值上下波动。
|
|
23048
|
+
* @param [options.maximumCacheOverflowBytes = 2147483648] - 最大显存大小(以字节为单位)。
|
|
22838
23049
|
* @param [options.maximumMemoryUsage = 512] - 【cesium 1.107+弃用】数据集可以使用的最大内存量(以MB计),这个参数要根据当前客户端显卡显存来配置,如果我们场景只显示这一个模型数据,这个可以设置到显存的50% 左右,比如我的显存是4G,这个可以设置到2048左右。那么既保证不超过显存限制,又可以最大利用显存缓存。<br />
|
|
22839
23050
|
* @param [options.position] - 自定义新的中心点位置(移动模型)
|
|
22840
23051
|
* @param [options.position.lng] - 经度值, -180 至 180
|
|
@@ -22962,8 +23173,10 @@ declare namespace TilesetLayer {
|
|
|
22962
23173
|
declare class TilesetLayer extends BaseGraphicLayer {
|
|
22963
23174
|
constructor(options: {
|
|
22964
23175
|
url?: string | Cesium.Resource;
|
|
22965
|
-
assetId?: number;
|
|
22966
23176
|
maximumScreenSpaceError?: number;
|
|
23177
|
+
assetId?: number;
|
|
23178
|
+
ionAccessToken?: string;
|
|
23179
|
+
ionServer?: string | Cesium.Resource;
|
|
22967
23180
|
cacheBytes?: number;
|
|
22968
23181
|
maximumCacheOverflowBytes?: number;
|
|
22969
23182
|
maximumMemoryUsage?: number;
|
|
@@ -29936,6 +30149,7 @@ declare class PolyFacetMaterialProperty extends BaseMaterialProperty {
|
|
|
29936
30149
|
* @param [options.color = new Cesium.Color(1.0, 1.0, 0.0, 0.5)] - 颜色
|
|
29937
30150
|
* @param [options.alphaPower = 1.5] - 透明度系数
|
|
29938
30151
|
* @param [options.diffusePower = 1.6] - 漫射系数
|
|
30152
|
+
* @param [options.isInner = false] - 渐变方向, true向内(周边浅中间深)、false外向(周边深中间浅)
|
|
29939
30153
|
* @param [options.center = new Cesium.Cartesian2(0.5, 0.5)] - 渐变位置,默认在中心
|
|
29940
30154
|
*/
|
|
29941
30155
|
declare class PolyGradientMaterialProperty extends BaseMaterialProperty {
|
|
@@ -29943,6 +30157,7 @@ declare class PolyGradientMaterialProperty extends BaseMaterialProperty {
|
|
|
29943
30157
|
color?: string | Cesium.Color;
|
|
29944
30158
|
alphaPower?: number;
|
|
29945
30159
|
diffusePower?: number;
|
|
30160
|
+
isInner?: boolean;
|
|
29946
30161
|
center?: Cesium.Cartesian2;
|
|
29947
30162
|
});
|
|
29948
30163
|
/**
|
|
@@ -29953,10 +30168,14 @@ declare class PolyGradientMaterialProperty extends BaseMaterialProperty {
|
|
|
29953
30168
|
* 漫射系数
|
|
29954
30169
|
*/
|
|
29955
30170
|
diffusePower: number;
|
|
30171
|
+
/**
|
|
30172
|
+
* 渐变方向, true向内、false外向
|
|
30173
|
+
*/
|
|
30174
|
+
alphaPower: boolean;
|
|
29956
30175
|
/**
|
|
29957
30176
|
* 透明度系数
|
|
29958
30177
|
*/
|
|
29959
|
-
|
|
30178
|
+
isInner: number;
|
|
29960
30179
|
/**
|
|
29961
30180
|
* 渐变位置,默认在中心
|
|
29962
30181
|
*/
|
|
@@ -30879,7 +31098,7 @@ declare class HeatLayer extends BaseLayer {
|
|
|
30879
31098
|
* @param [options.center.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
|
|
30880
31099
|
* @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。
|
|
30881
31100
|
* @param [options.zIndex = 9] - 图层对应DIV的zIndex层级
|
|
30882
|
-
* @param [dataSet] - mapv.DataSet数据集,可以参考[
|
|
31101
|
+
* @param [dataSet] - mapv.DataSet数据集,可以参考[MapV数据集对象说明]{@link https://github.com/huiyan-fe/mapv/blob/master/src/data/DataSet.md}
|
|
30883
31102
|
*/
|
|
30884
31103
|
declare class MapVLayer extends BaseLayer {
|
|
30885
31104
|
constructor(options: {
|
|
@@ -31491,7 +31710,8 @@ declare class ConicSensor extends BasePointPrimitive {
|
|
|
31491
31710
|
|
|
31492
31711
|
declare namespace FixedJammingRadar {
|
|
31493
31712
|
/**
|
|
31494
|
-
* 内置固定算法的干扰雷达,
|
|
31713
|
+
* 内置固定算法的干扰雷达, 对应的干扰机参数,
|
|
31714
|
+
* 【需要引入 mars3d-space 插件库】
|
|
31495
31715
|
* @property [id] - 唯一标识
|
|
31496
31716
|
* @property [position] - [111, 41, 40000] 干扰机经纬度位置
|
|
31497
31717
|
* @property [pji] - 干扰机发射功率
|
|
@@ -31648,7 +31868,8 @@ declare namespace JammingRadar {
|
|
|
31648
31868
|
}
|
|
31649
31869
|
|
|
31650
31870
|
/**
|
|
31651
|
-
* 干扰雷达
|
|
31871
|
+
* 干扰雷达 矢量对象,
|
|
31872
|
+
* 【需要引入 mars3d-space 插件库】
|
|
31652
31873
|
* @param options - 参数对象,包括以下:
|
|
31653
31874
|
* @param [options.position] - 坐标位置
|
|
31654
31875
|
* @param options.vertexs - 顶点位置信息二维数组,第1层为平面一圈,第2层为竖直方向各圈,其中值包括:平面上的方向(角度值) heading、垂直上的方向(角度值) pitch、 半径(单位:米)radius
|
|
@@ -33769,6 +33990,7 @@ declare namespace Shadows {
|
|
|
33769
33990
|
/**
|
|
33770
33991
|
* 日照分析
|
|
33771
33992
|
* @param [options] - 参数对象,包括以下:
|
|
33993
|
+
* @param [options.darkness = 0.3] - 阴影透明度, 0-1,值越大越透明
|
|
33772
33994
|
* @param [options.multiplier = 1600] - 时钟倍率,控制速度
|
|
33773
33995
|
* @param [options.time] - 当前时间
|
|
33774
33996
|
* @param [options.terrain = true] - 是否启用地形的阴影效果,在平原地区或无地形时可以关闭
|
|
@@ -33779,6 +34001,7 @@ declare namespace Shadows {
|
|
|
33779
34001
|
*/
|
|
33780
34002
|
declare class Shadows extends BaseThing {
|
|
33781
34003
|
constructor(options?: {
|
|
34004
|
+
darkness?: number;
|
|
33782
34005
|
multiplier?: number;
|
|
33783
34006
|
time?: Date;
|
|
33784
34007
|
terrain?: boolean;
|
|
@@ -34940,6 +35163,11 @@ declare class TerrainEditBase extends BaseThing {
|
|
|
34940
35163
|
};
|
|
34941
35164
|
id?: number | string;
|
|
34942
35165
|
}): any;
|
|
35166
|
+
/**
|
|
35167
|
+
* 转为Json简单对象,用于存储后再传参加载
|
|
35168
|
+
* @returns Json简单对象
|
|
35169
|
+
*/
|
|
35170
|
+
toJSON(): any;
|
|
34943
35171
|
}
|
|
34944
35172
|
|
|
34945
35173
|
/**
|