mars3d 3.4.6 → 3.4.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/README.md CHANGED
@@ -72,16 +72,6 @@ Github:[https://github.com/marsgis/mars3d](https://github.com/marsgis/mars3d)
72
72
 
73
73
 
74
74
 
75
-
76
- ## 第3方平台融合
77
- Mars3D支持结合Cesium相关的各类平台来兼容使用,方便结合不同平台的优点来达到完成各种项目需求。
78
-
79
- |说明 | Github | 国内Gitee |
80
- |----|---- | ----|
81
- |与supermap平台融合示例 | [mars3d-link-supermap](https://github.com/marsgis/mars3d-link-supermap) |[mars3d-link-supermap](https://gitee.com/marsgis/mars3d-link-supermap) |
82
- |与earthsdk平台融合示例 | [mars3d-link-earthsdk](https://github.com/marsgis/mars3d-link-earthsdk) |[mars3d-link-earthsdk](https://gitee.com/marsgis/mars3d-link-earthsdk) |
83
-
84
-
85
75
 
86
76
  ## 其他
87
77
 
package/dist/mars3d.css CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Mars3D三维可视化平台 mars3d
3
3
  *
4
- * 版本信息:v3.4.6
5
- * 编译日期:2022-08-29 21:17:57
4
+ * 版本信息:v3.4.7
5
+ * 编译日期:2022-09-07 14:44:52
6
6
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
7
7
  * 使用单位:免费公开版 ,2022-06-01
8
8
  */
package/dist/mars3d.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * Mars3D三维可视化平台 mars3d
4
4
  *
5
- * 版本信息:v3.4.6
6
- * 编译日期:2022-08-29 21:17:57
5
+ * 版本信息:v3.4.7
6
+ * 编译日期:2022-09-07 14:44:52
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2022-06-01
9
9
  */
@@ -3751,9 +3751,9 @@ declare class BaseGraphic extends BaseClass {
3751
3751
  /**
3752
3752
  * 是否有绑定的右键菜单
3753
3753
  * @param [hasLayer = true] - 是否判断图层上的右键菜单
3754
- * @returns 当前对象本身,可以链式调用
3754
+ * @returns 是否有绑定
3755
3755
  */
3756
- hasContextMenu(hasLayer?: boolean): BaseGraphic | any;
3756
+ hasContextMenu(hasLayer?: boolean): boolean;
3757
3757
  /**
3758
3758
  * 获取绑定的右键菜单数组
3759
3759
  * @param [hasLayer = true] - 是获取图层上的右键菜单
@@ -7112,10 +7112,10 @@ declare class BasePointEntity extends BaseEntity {
7112
7112
  getCoordinate(noAlt: boolean): any[];
7113
7113
  /**
7114
7114
  * 按Cesium.CallbackProperty的方式 更新坐标(更加平滑)
7115
- * @param position - 坐标
7115
+ * @param [position] - 坐标
7116
7116
  * @returns 当前坐标
7117
7117
  */
7118
- setCallbackPosition(position: string | any[] | any | Cesium.Cartesian3 | any): Cesium.Cartesian3;
7118
+ setCallbackPosition(position?: string | any[] | any | Cesium.Cartesian3 | any): Cesium.Cartesian3;
7119
7119
  /**
7120
7120
  * 显示隐藏状态
7121
7121
  */
@@ -7255,10 +7255,10 @@ declare class BasePolyEntity extends BaseEntity {
7255
7255
  }): Promise<any>;
7256
7256
  /**
7257
7257
  * 按Cesium.CallbackProperty的方式 更新坐标集合(更加平滑)
7258
- * @param positions - 坐标数组
7258
+ * @param [positions] - 坐标数组
7259
7259
  * @returns 当前坐标集合
7260
7260
  */
7261
- setCallbackPositions(positions: string[] | any[][] | LngLatPoint[]): Cesium.Cartesian3[];
7261
+ setCallbackPositions(positions?: string[] | any[][] | LngLatPoint[]): Cesium.Cartesian3[];
7262
7262
  }
7263
7263
 
7264
7264
  declare namespace BillboardEntity {
@@ -9288,10 +9288,10 @@ declare namespace ModelEntity {
9288
9288
  * gltf小模型 支持的样式信息
9289
9289
  * @property [url] - glTF模型的URI的字符串或资源属性。
9290
9290
  * @property [scale = 1] - 比例
9291
- * @property [heading = 0] - 方向角 (度数值,0-360度)
9292
- * @property [pitch = 0] - 俯仰角(度数值,0-360度)
9293
- * @property [roll = 0] - 翻滚角(度数值,0-360度)
9294
- * @property [noPitchRoll] - addDynamicPosition时,设置为true时,可以设置模型只动态更改方向,内部固定模型的Pitch和Roll方向值为0
9291
+ * @property [heading = 0] - 方向角 (度数值,0-360度),优先级高于orientation
9292
+ * @property [pitch = 0] - 俯仰角(度数值,0-360度),优先级高于orientation
9293
+ * @property [roll = 0] - 翻滚角(度数值,0-360度),优先级高于orientation
9294
+ * @property [mergeOrientation = false] - 当存在orientation时(如addDynamicPosition等),设置为true时,是在orientation基础的方式值上加上设置是heading、pitch、roll值,比如用于设置模型不是标准的方向时的纠偏处理
9295
9295
  * @property [radius] - 编辑时,半径圆圈的半径,默认自动
9296
9296
  * @property [minimumPixelSize = 0.0] - 指定模型的近似最小像素大小,而不考虑缩放。
9297
9297
  * @property [maximumScale] - 模型的最大比例尺寸。minimumPixelSize的上限。
@@ -9331,7 +9331,7 @@ declare namespace ModelEntity {
9331
9331
  heading?: number;
9332
9332
  pitch?: number;
9333
9333
  roll?: number;
9334
- noPitchRoll?: boolean;
9334
+ mergeOrientation?: boolean;
9335
9335
  radius?: number;
9336
9336
  minimumPixelSize?: number;
9337
9337
  maximumScale?: number;
@@ -9384,7 +9384,6 @@ declare namespace ModelEntity {
9384
9384
  * @param [options.parent] - 要与此实体关联的父实体。
9385
9385
  * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
9386
9386
  * @param [options.maxCacheCount = 50] - 当使用addDynamicPosition设置为动画轨迹位置时,保留的坐标点数量
9387
- * @param [options.fixedHeading] - 当使用addDynamicPosition设置为动画轨迹位置时,是否使用固定的heading角度,而不用路线的自动方向角度。
9388
9387
  * @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时,在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。
9389
9388
  * @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时, 在任何可用坐标之前一次请求值时要执行的推断类型,默认为第一个坐标位置。
9390
9389
  * @param [options.clampToTileset] - 当使用addDynamicPosition设置为动画轨迹位置时,是否进行贴模型。
@@ -9424,7 +9423,6 @@ declare class ModelEntity extends BasePointEntity {
9424
9423
  parent?: Cesium.Entity;
9425
9424
  onBeforeCreate?: (...params: any[]) => any;
9426
9425
  maxCacheCount?: number;
9427
- fixedHeading?: boolean;
9428
9426
  forwardExtrapolationType?: Cesium.ExtrapolationType;
9429
9427
  backwardExtrapolationType?: Cesium.ExtrapolationType;
9430
9428
  clampToTileset?: boolean;
@@ -10173,10 +10171,10 @@ declare class PolygonEntity extends BasePolyEntity {
10173
10171
  readonly center: Cesium.Cartesian3;
10174
10172
  /**
10175
10173
  * 按Cesium.CallbackProperty的方式 更新坐标集合(更加平滑)
10176
- * @param positions - 坐标数组
10174
+ * @param [positions] - 坐标数组
10177
10175
  * @returns 当前坐标集合
10178
10176
  */
10179
- setCallbackPositions(positions: string[] | any[][] | LngLatPoint[]): Cesium.Cartesian3[];
10177
+ setCallbackPositions(positions?: string[] | any[][] | LngLatPoint[]): Cesium.Cartesian3[];
10180
10178
  }
10181
10179
 
10182
10180
  declare namespace PolylineEntity {
@@ -14512,10 +14510,10 @@ declare namespace ModelPrimitive {
14512
14510
  * @property [scaleX = 1] - X轴方向缩放比例
14513
14511
  * @property [scaleY = 1] - Y轴方向缩放比例
14514
14512
  * @property [scaleZ = 1] - Z轴方向缩放比例
14515
- * @property [heading = 0] - 方向角 (度数值,0-360度)
14516
- * @property [pitch = 0] - 俯仰角(度数值,0-360度)
14517
- * @property [roll = 0] - 翻滚角(度数值,0-360度)
14518
- * @property [noPitchRoll] - addDynamicPosition时,设置为true时,可以设置模型只动态更改方向,内部固定模型的Pitch和Roll方向值为0
14513
+ * @property [heading = 0] - 方向角 (度数值,0-360度),优先级高于orientation
14514
+ * @property [pitch = 0] - 俯仰角(度数值,0-360度),优先级高于orientation
14515
+ * @property [roll = 0] - 翻滚角(度数值,0-360度),优先级高于orientation
14516
+ * @property [mergeOrientation = false] - 当存在orientation时(如addDynamicPosition等),设置为true时,可以在orientation基础的方式值上叠加设置是heading、pitch、roll值,比如用于设置模型不是标准的方向时的处理
14519
14517
  * @property [minimumPixelSize = 0.0] - 指定模型的近似最小像素大小,而不考虑缩放。
14520
14518
  * @property [maximumScale] - 模型的最大比例尺寸。minimumPixelSize的上限。
14521
14519
  * @property [fill = false] - 是否填充,指定与模型渲染颜色混合
@@ -14573,7 +14571,7 @@ declare namespace ModelPrimitive {
14573
14571
  heading?: number;
14574
14572
  pitch?: number;
14575
14573
  roll?: number;
14576
- noPitchRoll?: boolean;
14574
+ mergeOrientation?: boolean;
14577
14575
  minimumPixelSize?: number;
14578
14576
  maximumScale?: number;
14579
14577
  fill?: boolean;
@@ -14638,7 +14636,6 @@ declare namespace ModelPrimitive {
14638
14636
  * @param [options.appearance] - [cesium原生]用于渲染图元的外观。
14639
14637
  * @param [options.attributes] - [cesium原生]每个实例的属性。
14640
14638
  * @param [options.maxCacheCount = 50] - 当使用addDynamicPosition设置为动画轨迹位置时,保留的坐标点数量
14641
- * @param [options.fixedHeading] - 当使用addDynamicPosition设置为动画轨迹位置时,是否使用固定的heading角度,而不用路线的自动方向角度。
14642
14639
  * @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时,在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。
14643
14640
  * @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时, 在任何可用坐标之前一次请求值时要执行的推断类型,默认为第一个坐标位置。
14644
14641
  * @param [options.clampToTileset] - 当使用addDynamicPosition设置为动画轨迹位置时,是否进行贴模型。
@@ -14666,7 +14663,6 @@ declare class ModelPrimitive extends BasePointPrimitive {
14666
14663
  appearance?: Cesium.Appearance;
14667
14664
  attributes?: Cesium.Appearance;
14668
14665
  maxCacheCount?: number;
14669
- fixedHeading?: boolean;
14670
14666
  forwardExtrapolationType?: Cesium.ExtrapolationType;
14671
14667
  backwardExtrapolationType?: Cesium.ExtrapolationType;
14672
14668
  clampToTileset?: boolean;
@@ -16168,9 +16164,9 @@ declare class BaseGraphicLayer extends BaseLayer {
16168
16164
  closeTooltip(): BaseGraphicLayer;
16169
16165
  /**
16170
16166
  * 是否有绑定的右键菜单
16171
- * @returns 当前对象本身,可以链式调用
16167
+ * @returns 是否有绑定
16172
16168
  */
16173
- hasContextMenu(): BaseGraphicLayer;
16169
+ hasContextMenu(): boolean;
16174
16170
  /**
16175
16171
  * 获取绑定的右键菜单数组
16176
16172
  * @returns 右键菜单数组