mars3d 3.5.9 → 3.5.10

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/README.md CHANGED
@@ -23,6 +23,30 @@
23
23
  [**English**](./README_EN.md) |[**中文**](./README.md)
24
24
 
25
25
 
26
+
27
+ ## 使用方式
28
+
29
+ 使用 Node 环境下的现代 web 前端技术栈时,可以使用 npm 或 cnpm 或 yarn 等方式来安装 mars3d 插件包
30
+
31
+ ```sh
32
+ //安装mars3d主库
33
+ npm install mars3d mars3d-cesium @turf/turf --save
34
+ ```
35
+
36
+
37
+ 安装后在mars3d引入后,引入一次插件即可
38
+
39
+ ```js
40
+ //导入mars3d主库
41
+ import "mars3d-cesium/Build/Cesium/Widgets/widgets.css"
42
+ import "mars3d/dist/mars3d.css"
43
+ import * as mars3d from "mars3d";
44
+ ```
45
+
46
+ > 关于引入后的具体如何使用,请参考教程[在项目中集成 Mars3D](http://mars3d.cn/dev/guide/start/import.html)中了解更多信息。
47
+
48
+
49
+
26
50
  当前仓库包含SDK更新日志、和其他仓库导航。
27
51
 
28
52
 
package/dist/mars3d.css CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Mars3D三维可视化平台 mars3d
3
3
  *
4
- * 版本信息:v3.5.9
5
- * 编译日期:2023-05-29 18:00:10
4
+ * 版本信息:v3.5.10
5
+ * 编译日期:2023-06-05 18:17:19
6
6
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
7
7
  * 使用单位:免费公开版 ,2023-03-17
8
8
  */
package/dist/mars3d.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * Mars3D三维可视化平台 mars3d
4
4
  *
5
- * 版本信息:v3.5.9
6
- * 编译日期:2023-05-29 18:00:10
5
+ * 版本信息:v3.5.10
6
+ * 编译日期:2023-06-05 18:17:19
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2023-03-17
9
9
  */
@@ -17,7 +17,6 @@ declare const update: string
17
17
  declare const name: string
18
18
 
19
19
  declare const proj4: any
20
- declare const widget: any
21
20
  declare const provider: any
22
21
 
23
22
 
@@ -9915,7 +9914,7 @@ declare namespace ModelEntity {
9915
9914
  /**
9916
9915
  * gltf小模型 支持的样式信息
9917
9916
  * @property [url] - glTF模型的URI的字符串或资源属性。
9918
- * @property [scale = 1] - 比例
9917
+ * @property [scale = 1.0] - 比例
9919
9918
  * @property [heading = 0] - 方向角 (度数值,0-360度),优先级高于orientation
9920
9919
  * @property [pitch = 0] - 俯仰角(度数值,0-360度),优先级高于orientation
9921
9920
  * @property [roll = 0] - 翻滚角(度数值,0-360度),优先级高于orientation
@@ -9948,6 +9947,7 @@ declare namespace ModelEntity {
9948
9947
  * @property [nodeTransformations] - 一个对象,其中键是节点的名称,值是{@link TranslationRotationScale}属性,描述要应用到该节点的转换。该转换是在节点的现有转换之后(如glTF中指定的那样)应用的,并且不会替换节点的现有转换。
9949
9948
  * @property [articulations] - An object, where keys are composed of an articulation name, a single space, and a stage name, and the values are numeric properties.
9950
9949
  * @property [clippingPlanes] - 用于裁剪模型的Plane平面集合
9950
+ * @property [customShader] - A property specifying the {@link CustomShader} to apply to this model.
9951
9951
  * @property [setHeight] - 指定坐标高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
9952
9952
  * @property [addHeight] - 在现有坐标基础上增加的高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
9953
9953
  * @property [highlight] - 鼠标移入或单击(type:'click')后的对应高亮的部分样式,创建Graphic后也可以openHighlight、closeHighlight方法来手动调用
@@ -9992,6 +9992,7 @@ declare namespace ModelEntity {
9992
9992
  [key: string]: number;
9993
9993
  };
9994
9994
  clippingPlanes?: Cesium.ClippingPlaneCollection;
9995
+ customShader?: Cesium.CustomShader;
9995
9996
  setHeight?: number | string;
9996
9997
  addHeight?: number | string;
9997
9998
  highlight?: ModelEntity.StyleOptions | any;
@@ -10239,6 +10240,9 @@ declare namespace PathEntity {
10239
10240
  * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
10240
10241
  * @param [options.parent] - 要与此实体关联的父实体。
10241
10242
  * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
10243
+ * @param [options.maxCacheCount = 50] - 当使用addDynamicPosition设置为动画轨迹位置时,保留的坐标点数量,传-1时不限制
10244
+ * @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时,在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。
10245
+ * @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时, 在任何可用坐标之前一次请求值时要执行的推断类型,默认为第一个坐标位置。
10242
10246
  * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
10243
10247
  * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
10244
10248
  * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
@@ -10269,6 +10273,9 @@ declare class PathEntity extends BasePointEntity {
10269
10273
  viewFrom?: Cesium.Property;
10270
10274
  parent?: Cesium.Entity;
10271
10275
  onBeforeCreate?: (...params: any[]) => any;
10276
+ maxCacheCount?: number;
10277
+ forwardExtrapolationType?: Cesium.ExtrapolationType;
10278
+ backwardExtrapolationType?: Cesium.ExtrapolationType;
10272
10279
  popup?: string | any[] | ((...params: any[]) => any);
10273
10280
  popupOptions?: Popup.StyleOptions | any;
10274
10281
  tooltip?: string | any[] | ((...params: any[]) => any);
@@ -15746,6 +15753,259 @@ declare class LightCone extends BasePointPrimitive {
15746
15753
  readonly czmObject: Cesium.Entity | Cesium.Primitive | Cesium.GroundPrimitive | Cesium.ClassificationPrimitive | any;
15747
15754
  }
15748
15755
 
15756
+ declare namespace ModelPrimitive {
15757
+ /**
15758
+ * gltf小模型 支持的样式信息
15759
+ * @property [url] - glTF模型的URI的字符串或资源属性。
15760
+ * @property [scale = 1] - 整体缩放比例
15761
+ * @property [scaleX = 1] - X轴方向缩放比例
15762
+ * @property [scaleY = 1] - Y轴方向缩放比例
15763
+ * @property [scaleZ = 1] - Z轴方向缩放比例
15764
+ * @property [heading = 0] - 方向角 (度数值,0-360度),优先级高于orientation
15765
+ * @property [pitch = 0] - 俯仰角(度数值,0-360度),优先级高于orientation
15766
+ * @property [roll = 0] - 翻滚角(度数值,0-360度),优先级高于orientation
15767
+ * @property [mergeOrientation = false] - 当存在orientation时(如addDynamicPosition等),设置为true时,可以在orientation基础的方式值上叠加设置是heading、pitch、roll值,比如用于设置模型不是标准的方向时的处理
15768
+ * @property [minimumPixelSize = 0.0] - 指定模型的近似最小像素大小,而不考虑缩放。
15769
+ * @property [maximumScale] - 模型的最大比例尺寸。minimumPixelSize的上限。
15770
+ * @property [fill = false] - 是否填充,指定与模型渲染颜色混合
15771
+ * @property [color = "#3388ff"] - 颜色
15772
+ * @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
15773
+ * @property [colorBlendMode = ColorBlendMode.HIGHLIGHT] - 指定颜色如何与模型混合。
15774
+ * @property [colorBlendAmount = 0.5] - 当colorBlendMode为MIX时指定颜色强度的数字属性。0.0的值表示模型渲染的颜色,1.0的值表示纯色,任何介于两者之间的值表示两者的混合。
15775
+ * @property [silhouette = false] - 是否轮廓
15776
+ * @property [silhouetteColor = "#ff0000"] - 轮廓颜色
15777
+ * @property [silhouetteSize = 2] - 轮廓宽度
15778
+ * @property [silhouetteAlpha = 0.8] - 轮廓透明度
15779
+ * @property [enableShowOutline = true] - Whether to enable outlines for models using the {@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} extension. This can be set false to avoid post-processing geometry at load time. When false, the showOutlines and outlineColor options are ignored.
15780
+ * @property [showOutline = true] - Whether to display the outline for models using the {@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} extension. When true, outlines are displayed. When false, outlines are not displayed.
15781
+ * @property [outlineColor = Cesium.Color.BLACK] - The color to use when rendering outlines.
15782
+ * @property [distanceDisplayCondition = false] - 是否按视距显示 或 指定此框将显示在与摄像机的多大距离。
15783
+ * @property [distanceDisplayCondition_near = 0] - 最小距离
15784
+ * @property [distanceDisplayCondition_far = number.MAX_VALUE] - 最大距离
15785
+ * @property [distanceDisplayPoint] - 当视角距离超过一定距离后(distanceDisplayCondition_far定义的) 后显示为 像素点 对象的样式,仅在distanceDisplayCondition设置时有效。
15786
+ * @property [distanceDisplayBillboard] - 当视角距离超过一定距离后(distanceDisplayCondition_far定义的) 后显示为 图标 对象的样式,仅在distanceDisplayCondition设置时有效。
15787
+ * @property [hasShadows = true] - 是否阴影
15788
+ * @property [shadows = ShadowMode.ENABLED] - 指定模型是投射还是接收来自光源的阴影。
15789
+ * @property [clampToGround = false] - 是否贴地
15790
+ * @property [heightReference = Cesium.HeightReference.NONE] - 指定高度相对于什么的属性。
15791
+ * @property [incrementallyLoadTextures = true] - 确定模型加载后纹理是否会继续流进来。
15792
+ * @property [runAnimations = true] - 指定模型中指定的glTF动画是否应该启动。
15793
+ * @property [clampAnimations = true] - 指定在没有关键帧的情况下,glTF动画是否应该保持最后一个姿势。
15794
+ * @property [releaseGltfJson = false] - When true, the glTF JSON is released once the glTF is loaded. This is is especially useful for cases like 3D Tiles, where each .gltf model is unique and caching the glTF JSON is not effective.
15795
+ * @property [lightColor] - 在为模型着色时指定光的颜色的属性。当undefined场景的浅色被使用代替。
15796
+ * @property [imageBasedLighting] - The properties for managing image-based lighting on this model.
15797
+ * @property [nodeTransformations] - 一个对象,其中键是节点的名称,值是{@link TranslationRotationScale}属性,描述要应用到该节点的转换。该转换是在节点的现有转换之后(如glTF中指定的那样)应用的,并且不会替换节点的现有转换。
15798
+ * @property [articulations] - An object, where keys are composed of an articulation name, a single space, and a stage name, and the values are numeric properties.
15799
+ * @property [clippingPlanes] - 用于裁剪模型的Plane平面集合
15800
+ * @property [allowPicking = true] - 当true时,每个glTF和Primitive都可以用{@link Cesium.Scene#pick}来拾取。
15801
+ * @property [asynchronous = true] - 确定模型WebGL资源创建是否将分散在几个帧或块上,直到所有glTF文件加载完成。
15802
+ * @property [dequantizeInShader = true] - 确定一个{@link https://github.com/google/draco|Draco}编码的模型是否在GPU上被去量化。这减少了编码模型的总内存使用量。
15803
+ * @property [backFaceCulling = true] - 是否剔除面向背面的几何图形。当为真时,背面剔除是由材料的双面属性决定的;当为false时,禁用背面剔除。如果{@link Model#color}是半透明的,或者{@link Model#silhouette}大于0.0,则背面不会被剔除。
15804
+ * @property [debugShowBoundingVolume = false] - 仅供调试。查看模型的包围边界球。
15805
+ * @property [enableDebugWireframe = false] - 仅供调试。是否可以通过debugWireframe来切换查看模型的三角网线框图。
15806
+ * @property [debugWireframe = false] - 仅供调试。是否打开模型的三角网线框图。
15807
+ * @property [cull = true] - Whether or not to cull the model using frustum/horizon culling. If the model is part of a 3D Tiles tileset, this property will always be false, since the 3D Tiles culling system is used.
15808
+ * @property [opaquePass = Cesium.Pass.OPAQUE] - The pass to use in the {@link DrawCommand} for the opaque portions of the model.
15809
+ * @property [upAxis = Cesium.Axis.Y] - The up-axis of the glTF model.
15810
+ * @property [forwardAxis = Cesium.Axis.Z] - The forward-axis of the glTF model.
15811
+ * @property [customShader] - A custom shader. This will add user-defined GLSL code to the vertex and fragment shaders. Using custom shaders with a {@link Cesium3DTileStyle} may lead to undefined behavior.
15812
+ * @property [content] - The tile content this model belongs to. This property will be undefined if model is not loaded as part of a tileset.
15813
+ * @property [showCreditsOnScreen = false] - Whether to display the credits of this model on screen.
15814
+ * @property [splitDirection = Cesium.SplitDirection.NONE] - The {@link SplitDirection} split to apply to this model.
15815
+ * @property [projectTo2D = false] - Whether to accurately project the model's positions in 2D. If this is true, the model will be projected accurately to 2D, but it will use more memory to do so. If this is false, the model will use less memory and will still render in 2D / CV mode, but its positions may be inaccurate. This disables minimumPixelSize and prevents future modification to the model matrix. This also cannot be set after the model has loaded.
15816
+ * @property [featureIdLabel = "featureId_0"] - Label of the feature ID set to use for picking and styling. For EXT_mesh_features, this is the feature ID's label property, or "featureId_N" (where N is the index in the featureIds array) when not specified. EXT_feature_metadata did not have a label field, so such feature ID sets are always labeled "featureId_N" where N is the index in the list of all feature Ids, where feature ID attributes are listed before feature ID textures. If featureIdLabel is an integer N, it is converted to the string "featureId_N" automatically. If both per-primitive and per-instance feature IDs are present, the instance feature IDs take priority.
15817
+ * @property [instanceFeatureIdLabel = "instanceFeatureId_0"] - Label of the instance feature ID set used for picking and styling. If instanceFeatureIdLabel is set to an integer N, it is converted to the string "instanceFeatureId_N" automatically. If both per-primitive and per-instance feature IDs are present, the instance feature IDs take priority.
15818
+ * @property [pointCloudShading] - Options for constructing a {@link PointCloudShading} object to control point attenuation and lighting.
15819
+ * @property [classificationType] - Determines whether terrain, 3D Tiles or both will be classified by this model. This cannot be set after the model has loaded.
15820
+ * @property [gltfCallback] - A function that is called with the loaded gltf object once loaded.
15821
+ *
15822
+ * //以下是 以下是 模型动画相关
15823
+ * @property [startTime] - 场景时间开始播放动画。当undefined时,动画从下一帧开始。
15824
+ * @property [delay = 0.0] - 从startTime开始播放的延迟,以秒为单位。
15825
+ * @property [stopTime] - 场景时间停止播放动画。当这是undefined,动画播放它的整个持续时间。
15826
+ * @property [removeOnStop = false] - 当true时,动画在停止播放后被删除。
15827
+ * @property [multiplier = 1.0] - 大于1.0的值增加动画播放的速度相对于场景时钟的速度;小于1.0会降低速度。
15828
+ * @property [reverse = false] - 当true时,动画会反向播放。
15829
+ * @property [loop = Cesium.ModelAnimationLoop.REPEAT] - 决定动画是否循环以及如何循环。
15830
+ * @property [setHeight] - 指定坐标高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
15831
+ * @property [addHeight] - 在现有坐标基础上增加的高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
15832
+ * @property [highlight] - 鼠标移入或单击(type:'click')后的对应高亮的部分样式,创建Graphic后也可以openHighlight、closeHighlight方法来手动调用
15833
+ * @property [label] - 支持附带文字的显示
15834
+ */
15835
+ type StyleOptions = any | {
15836
+ url?: string | Cesium.Resource;
15837
+ scale?: number;
15838
+ scaleX?: number;
15839
+ scaleY?: number;
15840
+ scaleZ?: number;
15841
+ heading?: number;
15842
+ pitch?: number;
15843
+ roll?: number;
15844
+ mergeOrientation?: boolean;
15845
+ minimumPixelSize?: number;
15846
+ maximumScale?: number;
15847
+ fill?: boolean;
15848
+ color?: string | Cesium.Color;
15849
+ opacity?: number;
15850
+ colorBlendMode?: Cesium.ColorBlendMode;
15851
+ colorBlendAmount?: number;
15852
+ silhouette?: boolean;
15853
+ silhouetteColor?: string | Cesium.Color;
15854
+ silhouetteSize?: number;
15855
+ silhouetteAlpha?: number;
15856
+ enableShowOutline?: boolean;
15857
+ showOutline?: boolean;
15858
+ outlineColor?: Cesium.Color;
15859
+ distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition;
15860
+ distanceDisplayCondition_near?: number;
15861
+ distanceDisplayCondition_far?: number;
15862
+ distanceDisplayPoint?: PointEntity.StyleOptions | any;
15863
+ distanceDisplayBillboard?: BillboardEntity.StyleOptions | any;
15864
+ hasShadows?: boolean;
15865
+ shadows?: Cesium.ShadowMode;
15866
+ clampToGround?: boolean;
15867
+ heightReference?: Cesium.HeightReference;
15868
+ incrementallyLoadTextures?: boolean;
15869
+ runAnimations?: boolean;
15870
+ clampAnimations?: boolean;
15871
+ releaseGltfJson?: boolean;
15872
+ lightColor?: Cesium.Color;
15873
+ imageBasedLighting?: Cesium.ImageBasedLighting;
15874
+ nodeTransformations?: Cesium.PropertyBag | {
15875
+ [key: string]: Cesium.TranslationRotationScale;
15876
+ };
15877
+ articulations?: Cesium.PropertyBag | {
15878
+ [key: string]: number;
15879
+ };
15880
+ clippingPlanes?: Cesium.ClippingPlaneCollection;
15881
+ allowPicking?: boolean;
15882
+ asynchronous?: boolean;
15883
+ dequantizeInShader?: boolean;
15884
+ backFaceCulling?: boolean;
15885
+ debugShowBoundingVolume?: boolean;
15886
+ enableDebugWireframe?: boolean;
15887
+ debugWireframe?: boolean;
15888
+ cull?: boolean;
15889
+ opaquePass?: boolean;
15890
+ upAxis?: Cesium.Axis;
15891
+ forwardAxis?: Cesium.Axis;
15892
+ customShader?: Cesium.CustomShader;
15893
+ content?: Cesium.Cesium3DTileContent;
15894
+ showCreditsOnScreen?: boolean;
15895
+ splitDirection?: Cesium.SplitDirection;
15896
+ projectTo2D?: boolean;
15897
+ featureIdLabel?: string | number;
15898
+ instanceFeatureIdLabel?: string | number;
15899
+ pointCloudShading?: any;
15900
+ classificationType?: Cesium.ClassificationType;
15901
+ gltfCallback?: (...params: any[]) => any;
15902
+ startTime?: Cesium.JulianDate;
15903
+ delay?: number;
15904
+ stopTime?: Cesium.JulianDate;
15905
+ removeOnStop?: boolean;
15906
+ multiplier?: number;
15907
+ reverse?: boolean;
15908
+ loop?: Cesium.ModelAnimationLoop;
15909
+ setHeight?: number | string;
15910
+ addHeight?: number | string;
15911
+ highlight?: ModelPrimitive.StyleOptions | any;
15912
+ label?: LabelEntity.StyleOptions | any;
15913
+ };
15914
+ }
15915
+
15916
+ /**
15917
+ * gltf小模型 Primitive图元矢量对象
15918
+ * @param options - 参数对象,包括以下:
15919
+ * @param options.position - 坐标位置
15920
+ * @param [options.orientation] - 实体方向,仅position是回调属性时有效
15921
+ * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。
15922
+ * @param options.style - 样式信息
15923
+ * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
15924
+ * @param [options.frameRate = 1] - 当postion为CallbackProperty时,多少帧获取一次数据。用于控制效率,如果卡顿就把该数值调大一些。
15925
+ * @param [options.appearance] - [cesium原生]用于渲染图元的外观。
15926
+ * @param [options.attributes] - [cesium原生]每个实例的属性。
15927
+ * @param [options.maxCacheCount = 50] - 当使用addDynamicPosition设置为动画轨迹位置时,保留的坐标点数量,传-1时不限制
15928
+ * @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.NONE] - 当使用addDynamicPosition设置为动画轨迹位置时,在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。
15929
+ * @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.NONE] - 当使用addDynamicPosition设置为动画轨迹位置时, 在任何可用坐标之前一次请求值时要执行的推断类型,默认为第一个坐标位置。
15930
+ * @param [options.clampToTileset] - 当使用addDynamicPosition设置为动画轨迹位置时,是否进行贴模型。
15931
+ * @param [options.frameRateHeight = 30] - 当使用addDynamicPosition设置为动画轨迹位置时,并clampToTileset:true时,多少帧计算一次贴模型高度
15932
+ * @param [options.objectsToExclude] - 当使用addDynamicPosition设置为动画轨迹位置时,并clampToTileset:true时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
15933
+ * @param [options.referenceFrame = Cesium.ReferenceFrame.FIXED] - 当使用addDynamicPosition设置为动画轨迹位置时,position位置被定义的参考系。
15934
+ * @param [options.numberOfDerivatives = 0] - 当使用addDynamicPosition设置为动画轨迹位置时,每个位置的导数的数量;即速度、加速度等。
15935
+ * @param [options.autoMiddleDynamicPosition] - 当使用addDynamicPosition设置为动画轨迹位置时,如果中间缺少数据时是否自动添加中间点。
15936
+ * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
15937
+ * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
15938
+ * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
15939
+ * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数
15940
+ * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定
15941
+ * @param [options.id = createGuid()] - 矢量数据id标识
15942
+ * @param [options.name = ''] - 矢量数据名称
15943
+ * @param [options.show = true] - 矢量数据是否显示
15944
+ * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件
15945
+ * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
15946
+ * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。
15947
+ * @param [options.flyToOptions] - 加载完成数据后是否自动飞行定位到数据所在的区域的对应 {@link BaseGraphic#flyTo}方法参数。
15948
+ */
15949
+ declare class ModelPrimitive extends BasePointPrimitive {
15950
+ constructor(options: {
15951
+ position: LngLatPoint | Cesium.Cartesian3 | number[] | Cesium.PositionProperty;
15952
+ orientation?: Cesium.Property;
15953
+ modelMatrix?: Cesium.Matrix4;
15954
+ style: ModelPrimitive.StyleOptions | any;
15955
+ attr?: any;
15956
+ frameRate?: number;
15957
+ appearance?: Cesium.Appearance;
15958
+ attributes?: Cesium.Appearance;
15959
+ maxCacheCount?: number;
15960
+ forwardExtrapolationType?: Cesium.ExtrapolationType;
15961
+ backwardExtrapolationType?: Cesium.ExtrapolationType;
15962
+ clampToTileset?: boolean;
15963
+ frameRateHeight?: number;
15964
+ objectsToExclude?: any;
15965
+ referenceFrame?: Cesium.ReferenceFrame;
15966
+ numberOfDerivatives?: number;
15967
+ autoMiddleDynamicPosition?: boolean;
15968
+ popup?: string | any[] | ((...params: any[]) => any);
15969
+ popupOptions?: Popup.StyleOptions | any;
15970
+ tooltip?: string | any[] | ((...params: any[]) => any);
15971
+ tooltipOptions?: Tooltip.StyleOptions | any;
15972
+ contextmenuItems?: any;
15973
+ id?: string | number;
15974
+ name?: string;
15975
+ show?: boolean;
15976
+ eventParent?: BaseClass | boolean;
15977
+ allowDrillPick?: boolean | ((...params: any[]) => any);
15978
+ flyTo?: boolean;
15979
+ flyToOptions?: any;
15980
+ });
15981
+ /**
15982
+ * 模型整体的缩放比例
15983
+ */
15984
+ scale: number;
15985
+ /**
15986
+ * X轴方向缩放比例
15987
+ */
15988
+ scaleX: number;
15989
+ /**
15990
+ * Y轴方向缩放比例
15991
+ */
15992
+ scaleY: number;
15993
+ /**
15994
+ * Z轴方向缩放比例
15995
+ */
15996
+ scaleZ: number;
15997
+ /**
15998
+ * 获取图层完成解析加载完成的Promise承诺, 等价于load事件(区别在于load事件必须在load完成前绑定才能监听)。
15999
+ */
16000
+ readonly readyPromise: Promise<Cesium.Model>;
16001
+ /**
16002
+ * 设置透明度
16003
+ * @param value - 透明度
16004
+ * @returns 无
16005
+ */
16006
+ setOpacity(value: number): void;
16007
+ }
16008
+
15749
16009
  declare namespace Pit {
15750
16010
  /**
15751
16011
  * 井 支持的样式信息,
@@ -16266,8 +16526,6 @@ declare namespace PolylinePrimitive {
16266
16526
  * @property [classificationType = Cesium.ClassificationType.BOTH] - 指定贴地时的覆盖类型,是只对地形、3dtiles 或 两者同时。
16267
16527
  * @property [setHeight] - 指定坐标高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
16268
16528
  * @property [addHeight] - 在现有坐标基础上增加的高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
16269
- * @property [setHeight] - 指定坐标高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
16270
- * @property [addHeight] - 在现有坐标基础上增加的高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
16271
16529
  * @property [highlight] - 鼠标移入或单击(type:'click')后的对应高亮的部分样式,创建Graphic后也可以openHighlight、closeHighlight方法来手动调用
16272
16530
  * @property [label] - 支持附带文字的显示 ,额外支持:<br />
16273
16531
  * // * @property {string|LngLatPoint} [label.position] 文字所在位置,默认是矢量对象本身的center属性值。支持配置 'center':围合面的内部中心点坐标,'{xxxx}'配置属性字段, 或者直接指定坐标值。
@@ -16296,10 +16554,8 @@ declare namespace PolylinePrimitive {
16296
16554
  shadows?: Cesium.ShadowMode;
16297
16555
  clampToGround?: boolean;
16298
16556
  classificationType?: Cesium.ClassificationType;
16299
- setHeight?: number | string;
16300
- addHeight?: number | string;
16301
- setHeight?: number | string;
16302
- addHeight?: number | string;
16557
+ setHeight?: number | string | number[];
16558
+ addHeight?: number | string | number[];
16303
16559
  highlight?: PolylinePrimitive.StyleOptions | any;
16304
16560
  label?: LabelPrimitive.StyleOptions | any | any;
16305
16561
  };
@@ -20530,6 +20786,8 @@ declare namespace TilesetLayer {
20530
20786
  * @param [options.flat] - 模型压平 对象, 可传入{@link TilesetFlat}构造参数
20531
20787
  * @param [options.flood] - 模型淹没 对象, 可传入{@link TilesetFlood}构造参数
20532
20788
  * @param [options.planClip] - 模型Plan裁剪 对象, 可传入{@link TilesetPlanClip}构造参数
20789
+ * @param [options.modelUpAxis = Axis.Y] - Which axis is considered up when loading models for tile contents.
20790
+ * @param [options.modelForwardAxis = Axis.X] - Which axis is considered forward when loading models for tile contents.
20533
20791
  * @param [options.shadows = ShadowMode.ENABLED] - 确定tileset是否投射或接收来自光源的阴影。
20534
20792
  * @param [options.cullWithChildrenBounds = true] - 优化选择。是否使用子绑定卷的并集来筛选贴图。
20535
20793
  * @param [options.cullRequestsWhileMoving = true] - 优化选择。不要要求贴图,当他们回来的时候可能不会使用,因为相机的运动。这个优化只适用于固定瓷砖组。
@@ -20555,13 +20813,34 @@ declare namespace TilesetLayer {
20555
20813
  * @param [options.loadSiblings = false] - 当skipLevelOfDetail = true时,判断遍历过程中是否总是下载可见块的兄弟块。如果为true则不会在已加载完模型后,自动从中心开始超清化模型。
20556
20814
  * @param [options.clippingPlanes] - {@link Cesium.ClippingPlaneCollection}用于选择性地禁用tile集的渲染。
20557
20815
  * @param [options.classificationType] - 确定地形、3D贴图或两者都将被这个贴图集分类。有关限制和限制的详细信息,请参阅{@link cesium3dtilesset #classificationType}。
20816
+ * @param [options.ellipsoid = Ellipsoid.WGS84] - The ellipsoid determining the size and shape of the globe.
20558
20817
  * @param [options.pointCloudShading] - 基于几何误差和光照构造一个{@link Cesium.PointCloudShading}对象来控制点衰减的选项。
20559
20818
  * @param [options.lightColor] - 光的颜色当遮光模型。当undefined场景的浅色被使用代替。表示,rgb的倍数,new Cesium.Cartesian3(100.0,100.0, 100.0)表示白光增强到100倍。对Pbrt材质有效,倾斜摄影不生效。
20819
+ * @param [options.imageBasedLighting] - 用于管理基于图像的光源的属性。
20820
+ * @param [options.luminanceAtZenith = 0.2] - 模型材质亮度,The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map.
20560
20821
  * @param [options.backFaceCulling = true] - 是否剔除面向背面的几何图形。当为真时,背面剔除由glTF材质的双面属性决定;当为false时,禁用背面剔除。
20822
+ * @param [options.enableShowOutline = true] - 是否启用模型的轮廓 {@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} 扩展. 可以将其设置为false,以避免在加载时对几何图形进行额外处理。如果为false,则会忽略showOutlines和outlineColor选项。
20823
+ * @param [options.showOutline = true] - 是否显示模型的轮廓 {@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} 扩展. 当为true时,将显示轮廓。当为false时,不显示轮廓。
20824
+ * @param [options.outlineColor = Color.BLACK] - 渲染outline轮廓时要使用的颜色。
20825
+ * @param [options.vectorClassificationOnly = false] - 是否只应使用瓦片集的向量瓦片进行分类。
20826
+ * @param [options.vectorKeepDecodedPositions = false] - Whether vector tiles should keep decoded positions in memory. This is used with {@link Cesium3DTileFeature.getPolylinePositions}.
20827
+ * @param [options.featureIdLabel = "featureId_0"] - Label of the feature ID set to use for picking and styling. For EXT_mesh_features, this is the feature ID's label property, or "featureId_N" (where N is the index in the featureIds array) when not specified. EXT_feature_metadata did not have a label field, so such feature ID sets are always labeled "featureId_N" where N is the index in the list of all feature Ids, where feature ID attributes are listed before feature ID textures. If featureIdLabel is an integer N, it is converted to the string "featureId_N" automatically. If both per-primitive and per-instance feature IDs are present, the instance feature IDs take priority.
20828
+ * @param [options.instanceFeatureIdLabel = "instanceFeatureId_0"] - Label of the instance feature ID set used for picking and styling. If instanceFeatureIdLabel is set to an integer N, it is converted to the string "instanceFeatureId_N" automatically. If both per-primitive and per-instance feature IDs are present, the instance feature IDs take priority.
20829
+ * @param [options.showCreditsOnScreen = false] - Whether to display the credits of this tileset on screen.
20830
+ * @param [options.splitDirection = SplitDirection.NONE] - The {@link SplitDirection} split to apply to this tileset.
20831
+ * @param [options.projectTo2D = false] - 是否准确地将贴图集投影到2D。如果这是真的,那么贴图集将被准确地投影到2D,但是这样做会使用更多的内存。如果这是false,贴图集将使用更少的内存,并且仍然会在2D / CV模式下渲染,但是它的投影位置可能不准确。加载磁贴集后不能设置此参数。
20561
20832
  * @param [options.debugHeatmapTilePropertyName] - 是否剔除面向背面的几何图形。当为真时,背面剔除由glTF材质的双面属性决定;作为热图着色的tile变量。所有渲染的贴图都将相对于其他指定的变量值着色。
20562
- * @param [options.pickPrimitive] - 要在拾取过程中呈现的原语,而不是tile集合。
20833
+ * @param [options.debugFreezeFrame = false] - For debugging only. Determines if only the tiles from last frame should be used for rendering.
20834
+ * @param [options.debugColorizeTiles = false] - For debugging only. When true, assigns a random color to each tile.
20563
20835
  * @param [options.enableDebugWireframe = false] - 仅供调试。是否可以通过debugWireframe来切换查看模型的三角网线框图。
20564
20836
  * @param [options.debugWireframe = false] - 仅供调试。是否打开模型的三角网线框图。
20837
+ * @param [options.debugShowBoundingVolume = false] - For debugging only. When true, renders the bounding volume for each tile.
20838
+ * @param [options.debugShowContentBoundingVolume = false] - For debugging only. When true, renders the bounding volume for each tile's content.
20839
+ * @param [options.debugShowViewerRequestVolume = false] - For debugging only. When true, renders the viewer request volume for each tile.
20840
+ * @param [options.debugShowGeometricError = false] - For debugging only. When true, draws labels to indicate the geometric error of each tile.
20841
+ * @param [options.debugShowRenderingStatistics = false] - For debugging only. When true, draws labels to indicate the number of commands, points, triangles and features for each tile.
20842
+ * @param [options.debugShowMemoryUsage = false] - For debugging only. When true, draws labels to indicate the texture and geometry memory in megabytes used by each tile.
20843
+ * @param [options.debugShowUrl = false] - For debugging only. When true, draws labels to indicate the url of each tile.
20565
20844
  * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板
20566
20845
  * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括:
20567
20846
  * @param [options.popupOptions.title] - 固定的标题名称
@@ -20632,6 +20911,8 @@ declare class TilesetLayer extends BaseGraphicLayer {
20632
20911
  flat?: any;
20633
20912
  flood?: any;
20634
20913
  planClip?: any;
20914
+ modelUpAxis?: Cesium.Axis;
20915
+ modelForwardAxis?: Cesium.Axis;
20635
20916
  shadows?: Cesium.ShadowMode;
20636
20917
  cullWithChildrenBounds?: boolean;
20637
20918
  cullRequestsWhileMoving?: boolean;
@@ -20657,13 +20938,34 @@ declare class TilesetLayer extends BaseGraphicLayer {
20657
20938
  loadSiblings?: boolean;
20658
20939
  clippingPlanes?: Cesium.ClippingPlaneCollection;
20659
20940
  classificationType?: Cesium.ClassificationType;
20941
+ ellipsoid?: Cesium.Ellipsoid;
20660
20942
  pointCloudShading?: any;
20661
20943
  lightColor?: Cesium.Cartesian3;
20944
+ imageBasedLighting?: Cesium.ImageBasedLighting;
20945
+ luminanceAtZenith?: number;
20662
20946
  backFaceCulling?: boolean;
20947
+ enableShowOutline?: boolean;
20948
+ showOutline?: boolean;
20949
+ outlineColor?: Cesium.Color;
20950
+ vectorClassificationOnly?: boolean;
20951
+ vectorKeepDecodedPositions?: boolean;
20952
+ featureIdLabel?: string | number;
20953
+ instanceFeatureIdLabel?: string | number;
20954
+ showCreditsOnScreen?: boolean;
20955
+ splitDirection?: Cesium.SplitDirection;
20956
+ projectTo2D?: boolean;
20663
20957
  debugHeatmapTilePropertyName?: string;
20664
- pickPrimitive?: any;
20958
+ debugFreezeFrame?: boolean;
20959
+ debugColorizeTiles?: boolean;
20665
20960
  enableDebugWireframe?: boolean;
20666
20961
  debugWireframe?: boolean;
20962
+ debugShowBoundingVolume?: boolean;
20963
+ debugShowContentBoundingVolume?: boolean;
20964
+ debugShowViewerRequestVolume?: boolean;
20965
+ debugShowGeometricError?: boolean;
20966
+ debugShowRenderingStatistics?: boolean;
20967
+ debugShowMemoryUsage?: boolean;
20968
+ debugShowUrl?: boolean;
20667
20969
  popup?: string | Globe.getTemplateHtml_template[] | ((...params: any[]) => any);
20668
20970
  popupOptions?: {
20669
20971
  title?: string;
@@ -20793,6 +21095,10 @@ declare class TilesetLayer extends BaseGraphicLayer {
20793
21095
  * 是否允许鼠标穿透拾取
20794
21096
  */
20795
21097
  allowDrillPick: boolean | ((...params: any[]) => any);
21098
+ /**
21099
+ * 模型材质亮度,The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map.
21100
+ */
21101
+ luminanceAtZenith: number;
20796
21102
  /**
20797
21103
  * 模型裁剪 对象
20798
21104
  */
@@ -23046,8 +23352,7 @@ declare class GridLayer extends BaseTileLayer {
23046
23352
  * @param options.rectangle.ymax - 最大纬度值, -90 至 90
23047
23353
  * @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
23048
23354
  * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
23049
- * @param [options.crs = CRS.EPSG3857] - 瓦片数据的坐标系信息,默认为墨卡托投影
23050
- * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
23355
+ * @param [options.crs = CRS.EPSG4326] - 瓦片数据的坐标系信息
23051
23356
  * @param [options.proxy] - 加载资源时要使用的代理服务url。
23052
23357
  * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对
23053
23358
  * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'},
@@ -23103,7 +23408,6 @@ declare class ImageLayer extends BaseTileLayer {
23103
23408
  bbox?: number[];
23104
23409
  zIndex?: number;
23105
23410
  crs?: CRS;
23106
- chinaCRS?: ChinaCRS;
23107
23411
  proxy?: string;
23108
23412
  templateValues?: any;
23109
23413
  queryParameters?: any;
@@ -23143,6 +23447,10 @@ declare class ImageLayer extends BaseTileLayer {
23143
23447
  flyTo?: boolean;
23144
23448
  flyToOptions?: any;
23145
23449
  });
23450
+ /**
23451
+ * 图片url地址
23452
+ */
23453
+ url: string;
23146
23454
  /**
23147
23455
  * 创建用于图层的 ImageryProvider对象
23148
23456
  * @param options - Provider参数,同图层构造参数。
@@ -25888,6 +26196,16 @@ declare class Map extends BaseClass {
25888
26196
  convert?: boolean;
25889
26197
  easingFunction?: Cesium.EasingFunction.Callback;
25890
26198
  }): void;
26199
+ /**
26200
+ * 暂停执行 setCameraViewList
26201
+ * @returns 无
26202
+ */
26203
+ pauseCameraViewList(): void;
26204
+ /**
26205
+ * 继续执行 setCameraViewList
26206
+ * @returns 无
26207
+ */
26208
+ proceedCameraViewList(): void;
25891
26209
  /**
25892
26210
  * 飞行至Cesium相关矢量对象处,是Cesium本身的flyTo方法。
25893
26211
  *
@@ -28397,7 +28715,7 @@ declare class Tle {
28397
28715
  */
28398
28716
  readonly eccentricity: number;
28399
28717
  /**
28400
- * 近地点幅角,
28718
+ * 近地点角矩(deg)
28401
28719
  * tle2的第35–42列
28402
28720
  */
28403
28721
  readonly perigee: number;
@@ -28500,20 +28818,37 @@ declare class Tle {
28500
28818
  */
28501
28819
  static ecfToEci(positionEcf: Cesium.Cartesian3, datetime: Date | Cesium.JulianDate | number): Cesium.Cartesian3;
28502
28820
  /**
28503
- * 卫星开普勒六根数转换到两行轨道根数 【测试算法,待验证优化】
28504
- * @param startYear - 开始年,比如2017年时传入17
28505
- * @param startTime - 开始时间,每年1月1日0点为0,后逐渐累积,整数部分为日,小数部分为时分秒
28506
- * @param six - 轨道六根数,顺序为:
28507
- * Mean:平均运动(每日绕行圈数)必须小于100,
28508
- * Eccentricity:离心率(小数,小于1),
28509
- * Inclination:轨道的交角(deg),不能是负数,
28510
- * Argument of perigee :近地点角矩(deg),不超过360,
28511
- * RAAN :升交点赤经(deg),不超过360,
28512
- * Mean :在轨圈数
28513
- * @param name - 卫星两位数编号,如01,最多五位数
28821
+ * 开普勒六根数 转换到 两行轨道根数 【测试算法,待验证优化】
28822
+ * @param options - 参数:
28823
+ * @param options.name - 卫星两位数编号,如01,最多五位数
28824
+ * @param options.epochYear - 发射年份(最后两位数字),比如2017年时传入17
28825
+ * @param options.epochDay - 开始时间,每年1月1日0点为0,后逐渐累积,整数部分为日,小数部分为时分秒
28826
+ * @param options.inclination - 轨道的交角,倾角,单位:度
28827
+ * @param options.rightAscension - 升交点赤经,单位:度
28828
+ * @param options.eccentricity - 轨道偏心率
28829
+ * @param options.perigee - 近地点角矩(deg)
28830
+ * @param options.meanAnomaly - 平近点角,单位:度
28831
+ * @param options.meanMotion - 每天绕地球公转圈数(平均运动)
28514
28832
  * @returns 两行轨道根数
28515
28833
  */
28516
- static coe2tle(startYear: number, startTime: number, six: number[], name: string): string[];
28834
+ static coe2tle(options: {
28835
+ name: string;
28836
+ epochYear: number;
28837
+ epochDay: number;
28838
+ inclination: number;
28839
+ rightAscension: number;
28840
+ eccentricity: number;
28841
+ perigee: number;
28842
+ meanAnomaly: number;
28843
+ meanMotion: number;
28844
+ }): string[];
28845
+ /**
28846
+ * 两行轨道根数 转换到 开普勒六根数
28847
+ * @param tle1 - 两行轨道根数1
28848
+ * @param tle2 - 两行轨道根数2
28849
+ * @returns 卫星开普勒六根数对象
28850
+ */
28851
+ static tle2coe(tle1: string, tle2: string): any;
28517
28852
  }
28518
28853
 
28519
28854
  declare namespace Tle {
@@ -35456,7 +35791,7 @@ declare namespace PolyUtil {
35456
35791
  * @param [alt] - 高度值
35457
35792
  * @returns 坐标集合
35458
35793
  */
35459
- function getGridPointsByPoly(positions: Cartesian3[], step: number, alt?: number): LngLatPoint[] | undefined;
35794
+ function getGridPointsByPoly(positions: Cesium.Cartesian3[], step: number, alt?: number): LngLatPoint[] | undefined;
35460
35795
  /**
35461
35796
  * 计算面内最大、最小高度值,并 使用离屏渲染深度图的方式加速计算范围内的任何可见的物体的高度 <br />
35462
35797
  * @param positions - 坐标数组