mars3d 3.11.1 → 3.11.2

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/mars3d.css CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Mars3D三维可视化平台 mars3d
3
3
  *
4
- * 版本信息:v3.11.1
5
- * 编译日期:2026-03-17 19:22
4
+ * 版本信息:v3.11.2
5
+ * 编译日期:2026-04-08 16:12
6
6
  * 版权所有:Copyright by http://mars3d.cn
7
7
  * 使用单位:免费公开版 ,2026-02-01
8
8
  */
package/mars3d.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * Mars3D三维可视化平台 mars3d
4
4
  *
5
- * 版本信息:v3.11.1
6
- * 编译日期:2026-03-17 19:22
5
+ * 版本信息:v3.11.2
6
+ * 编译日期:2026-04-08 16:12
7
7
  * 版权所有:Copyright by http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2026-02-01
9
9
  */
@@ -10354,10 +10354,14 @@ declare namespace BillboardEntity {
10354
10354
  * @property [setHeight] - 指定坐标高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
10355
10355
  * @property [addHeight] - 在现有坐标基础上增加的高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
10356
10356
  * @property [highlight] - 鼠标移入或单击(type:'click')后的对应高亮的部分样式,提示:原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
10357
- * // * @param {string} [highlight.type] 事件方式,鼠标移入高亮 或 单击高亮(type:'click')
10358
- * // * @param {boolean} [highlight.enabled=true] 是否启用
10357
+ * // * @property {string} [highlight.type] 事件方式,鼠标移入高亮 或 单击高亮(type:'click')
10358
+ * // * @property {boolean} [highlight.enabled=true] 是否启用
10359
10359
  * @property [label] - 支持附带文字的显示
10360
- * // * @param {boolean} [label.combine=false] 文本是否使用Entity附带文本,比如使用动态坐标时,请传入true
10360
+ * // * @property {boolean} [label.combine=false] 文本是否使用Entity附带文本,比如使用动态坐标时,请传入true
10361
+ * @property [bounce] - 是否构造后自动调用弹跳效果 {@link BillboardEntity#startBounce}
10362
+ * @property [bounce.maxHeight = 50] - 弹跳的最大高度, 单位:像素
10363
+ * @property [bounce.step = 1] - 弹跳增量, 控制速度,单位:像素
10364
+ * @property [bounce.autoStop] - 是否自动停止,true时:会逐渐减弱至停止状态
10361
10365
  */
10362
10366
  type StyleOptions = any | {
10363
10367
  image?: string | HTMLCanvasElement;
@@ -10401,6 +10405,11 @@ declare namespace BillboardEntity {
10401
10405
  addHeight?: number | string;
10402
10406
  highlight?: BillboardEntity.StyleOptions | any;
10403
10407
  label?: LabelEntity.StyleOptions | any;
10408
+ bounce?: {
10409
+ maxHeight?: number;
10410
+ step?: number;
10411
+ autoStop?: boolean;
10412
+ };
10404
10413
  };
10405
10414
  }
10406
10415
 
@@ -12575,6 +12584,10 @@ declare namespace LabelEntity {
12575
12584
  * @property [highlight] - 鼠标移入或单击(type:'click')后的对应高亮的部分样式,提示:原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
12576
12585
  * // * @param {string} [highlight.type] 事件方式,鼠标移入高亮 或 单击高亮(type:'click')
12577
12586
  * // * @param {boolean} [highlight.enabled=true] 是否启用
12587
+ * @property [bounce] - 是否构造后自动调用弹跳效果 {@link BillboardEntity#startBounce}
12588
+ * @property [bounce.maxHeight = 50] - 弹跳的最大高度, 单位:像素
12589
+ * @property [bounce.step = 1] - 弹跳增量, 控制速度,单位:像素
12590
+ * @property [bounce.autoStop] - 是否自动停止,true时:会逐渐减弱至停止状态
12578
12591
  */
12579
12592
  type StyleOptions = any | {
12580
12593
  text?: string;
@@ -12625,6 +12638,11 @@ declare namespace LabelEntity {
12625
12638
  addHeight?: number | string;
12626
12639
  templateEmptyStr?: string;
12627
12640
  highlight?: LabelEntity.StyleOptions | any;
12641
+ bounce?: {
12642
+ maxHeight?: number;
12643
+ step?: number;
12644
+ autoStop?: boolean;
12645
+ };
12628
12646
  };
12629
12647
  }
12630
12648
 
@@ -19573,6 +19591,117 @@ declare class FrustumPrimitive extends BasePointPrimitive {
19573
19591
  roll: number;
19574
19592
  }
19575
19593
 
19594
+ declare namespace HollowCylinder {
19595
+ /**
19596
+ * 中空圆柱体 支持的样式信息
19597
+ * @property [radius = 10] - 半径(单位:米)
19598
+ * @property [thicknes = radius/3] - 壁厚(单位:米),空心管的外层厚度
19599
+ * @property [diffHeight] - 高度
19600
+ * @property [heading = 0] - 方向角 (度数值,0至360度)
19601
+ * @property [pitch = 0] - 俯仰角(度数值,0至360度)
19602
+ * @property [roll = 0] - 翻滚角(度数值,0至360度)
19603
+ * @property [materialType = "Color"] - 填充材质类型 ,可选项:{@link MaterialType}
19604
+ * @property [materialOptions] - materialType对应的{@link MaterialType}中材质参数
19605
+ * @property [slices = 64] - 边数
19606
+ *
19607
+ * //以下是 这是MaterialAppearance的参数
19608
+ * @property [flat = false] - 当true时,在片段着色器中使用平面着色,不考虑光照。
19609
+ * @property [faceForward = !closed] - 当true时,片段着色器根据需要翻转表面的法线,以确保法线面向查看器以避免黑点。
19610
+ * @property [translucent = true] - 当true时,几何图形将显示为半透明,因此{@link Cesium.PerInstanceColorAppearance#renderState}将启用alpha混合。
19611
+ * @property [closed = false] - 当true时,几何图形将被关闭,因此{@link Cesium.PerInstanceColorAppearance#renderState}启用了背面剔除。
19612
+ * @property [vertexShaderSource] - 可选的GLSL顶点着色器源,覆盖默认的顶点着色器。
19613
+ * @property [fragmentShaderSource] - 可选的GLSL片段着色器源覆盖默认的片段着色器。
19614
+ * @property [renderState] - 可选渲染状态,以覆盖默认渲染状态。
19615
+ * @property [label] - 支持附带文字的显示
19616
+ */
19617
+ type StyleOptions = any | {
19618
+ radius?: number;
19619
+ thicknes?: number;
19620
+ diffHeight?: number;
19621
+ heading?: number;
19622
+ pitch?: number;
19623
+ roll?: number;
19624
+ materialType?: string;
19625
+ materialOptions?: any;
19626
+ slices?: number;
19627
+ flat?: boolean;
19628
+ faceForward?: boolean;
19629
+ translucent?: boolean;
19630
+ closed?: boolean;
19631
+ vertexShaderSource?: string;
19632
+ fragmentShaderSource?: string;
19633
+ renderState?: any;
19634
+ label?: LabelEntity.StyleOptions | any;
19635
+ };
19636
+ }
19637
+
19638
+ /**
19639
+ * 中空圆柱体 Primitive图元矢量对象
19640
+ * @param options - 参数对象,包括以下:
19641
+ * @param [options.position] - 坐标位置
19642
+ * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。
19643
+ * @param options.style - 样式信息
19644
+ * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
19645
+ * @param [options.appearance] - [cesium原生]用于渲染图元的外观。
19646
+ * @param [options.attributes] - [cesium原生]每个实例的属性。
19647
+ * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。
19648
+ * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。
19649
+ * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。
19650
+ * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。
19651
+ * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。
19652
+ * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。
19653
+ * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。
19654
+ * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。
19655
+ * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。
19656
+ * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。
19657
+ * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
19658
+ * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
19659
+ * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
19660
+ * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数
19661
+ * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定
19662
+ * @param [options.id = createGuid()] - 矢量数据id标识
19663
+ * @param [options.name] - 矢量数据名称
19664
+ * @param [options.show = true] - 矢量数据是否显示
19665
+ * @param [options.availability] - 指定时间范围内显示该对象
19666
+ * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件
19667
+ * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
19668
+ * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。
19669
+ * @param [options.flyToOptions] - 加载完成数据后是否自动飞行定位到数据所在的区域的对应 {@link BaseGraphic#flyTo}方法参数。
19670
+ */
19671
+ declare class HollowCylinder extends BasePointPrimitive {
19672
+ constructor(options: {
19673
+ position?: LngLatPoint | Cesium.Cartesian3 | Cesium.PositionProperty | BaseGraphic.AjaxPosition | BaseGraphic.TimePosition | number[] | string;
19674
+ modelMatrix?: Cesium.Matrix4;
19675
+ style: HollowCylinder.StyleOptions | any;
19676
+ attr?: any | BaseGraphic.AjaxAttr;
19677
+ appearance?: Cesium.Appearance;
19678
+ attributes?: Cesium.Appearance;
19679
+ depthFailAppearance?: Cesium.Appearance;
19680
+ vertexCacheOptimize?: boolean;
19681
+ interleave?: boolean;
19682
+ compressVertices?: boolean;
19683
+ releaseGeometryInstances?: boolean;
19684
+ allowPicking?: boolean;
19685
+ cull?: boolean;
19686
+ asynchronous?: boolean;
19687
+ debugShowBoundingVolume?: boolean;
19688
+ debugShowShadowVolume?: boolean;
19689
+ popup?: string | any[] | ((...params: any[]) => any);
19690
+ popupOptions?: Popup.StyleOptions | any;
19691
+ tooltip?: string | any[] | ((...params: any[]) => any);
19692
+ tooltipOptions?: Tooltip.StyleOptions | any;
19693
+ contextmenuItems?: any;
19694
+ id?: string | number;
19695
+ name?: string;
19696
+ show?: boolean;
19697
+ availability?: Cesium.TimeIntervalCollection | Cesium.TimeInterval | any[] | any;
19698
+ eventParent?: BaseClass | boolean;
19699
+ allowDrillPick?: boolean | ((...params: any[]) => any);
19700
+ flyTo?: boolean;
19701
+ flyToOptions?: any;
19702
+ });
19703
+ }
19704
+
19576
19705
  /**
19577
19706
  * 文字 Primitive矢量数据
19578
19707
  * @param options - 参数对象,包括以下:
@@ -40508,6 +40637,30 @@ declare class PolylineVolumeStyleConver extends BaseStyleConver {
40508
40637
  static toJSON(czmVal: any, style?: any, isEntity?: boolean): any;
40509
40638
  }
40510
40639
 
40640
+ /**
40641
+ * 通用 矢量数据style转换处理类
40642
+ * @param [options] - 控制参数
40643
+ */
40644
+ declare class PolyStyleConver extends BaseStyleConver {
40645
+ constructor(options?: any);
40646
+ /**
40647
+ * 转换style到Cesium对象需要的格式
40648
+ * @param style - 样式配置
40649
+ * @param [czmVal = {}] - Cesium属性值
40650
+ * @param [isEntity] - 是否为Entity对象
40651
+ * @returns Cesium属性值
40652
+ */
40653
+ static toCesiumVal(style: any, czmVal?: any, isEntity?: boolean): any;
40654
+ /**
40655
+ * 导出Cesium的样式对象到json可以保存的格式
40656
+ * @param czmVal - Cesium属性值
40657
+ * @param [style = {}] - json简单对象
40658
+ * @param [isEntity] - 是否为Entity对象
40659
+ * @returns json简单对象
40660
+ */
40661
+ static toJSON(czmVal: any, style?: any, isEntity?: boolean): any;
40662
+ }
40663
+
40511
40664
  /**
40512
40665
  * Rectangle 矢量数据style转换处理类
40513
40666
  * @param [options] - 控制参数
@@ -43100,6 +43253,7 @@ declare namespace graphic {
43100
43253
  export { DoubleSidedPlane }
43101
43254
  export { ReflectionWater }
43102
43255
  export { VideoPrimitive }
43256
+ export { HollowCylinder }
43103
43257
 
43104
43258
  //批量大数据primitive
43105
43259
  export { BaseCombine }