mars3d 3.11.0 → 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/README.md +2 -2
- package/mars3d.css +4 -4
- package/mars3d.d.ts +169 -15
- package/mars3d.js +5 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ Github:[https://github.com/marsgis/mars3d](https://github.com/marsgis/mars3d)
|
|
|
34
34
|
|
|
35
35
|
## 平台介绍
|
|
36
36
|
|
|
37
|
-
`Mars3D平台`
|
|
37
|
+
`Mars3D平台` 是一款基于 WebGL 技术实现的三维客户端开发平台,基于[Cesium](https://cesium.com/cesiumjs/)优化提升与B/S架构设计,支持多行业扩展的轻量级高效能GIS开发平台,能够免安装、无插件地在浏览器中高效运行,并可快速接入与使用多种GIS数据和三维模型,呈现三维空间的可视化,完成平台在不同行业的灵活应用。
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
@@ -143,6 +143,6 @@ Github:[https://github.com/marsgis/mars3d](https://github.com/marsgis/mars3d)
|
|
|
143
143
|
|
|
144
144
|
|
|
145
145
|
## 版权说明
|
|
146
|
-
1. Mars3D平台由[
|
|
146
|
+
1. Mars3D平台由[mars3d团队](http://mars3d.cn/)自主研发,拥有所有权利。
|
|
147
147
|
2. 任何个人或组织可以在遵守相关要求下可以免费无限制使用。
|
|
148
148
|
|
package/mars3d.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Mars3D三维可视化平台 mars3d
|
|
3
3
|
*
|
|
4
|
-
* 版本信息:v3.11.
|
|
5
|
-
* 编译日期:2026-
|
|
6
|
-
* 版权所有:Copyright by
|
|
7
|
-
*
|
|
4
|
+
* 版本信息:v3.11.2
|
|
5
|
+
* 编译日期:2026-04-08 16:12
|
|
6
|
+
* 版权所有:Copyright by http://mars3d.cn
|
|
7
|
+
* 使用单位:免费公开版 ,2026-02-01
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**地球容器div*/
|
package/mars3d.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Mars3D三维可视化平台 mars3d
|
|
4
4
|
*
|
|
5
|
-
* 版本信息:v3.11.
|
|
6
|
-
* 编译日期:2026-
|
|
7
|
-
* 版权所有:Copyright by
|
|
8
|
-
*
|
|
5
|
+
* 版本信息:v3.11.2
|
|
6
|
+
* 编译日期:2026-04-08 16:12
|
|
7
|
+
* 版权所有:Copyright by http://mars3d.cn
|
|
8
|
+
* 使用单位:免费公开版 ,2026-02-01
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import * as Cesium from "mars3d-cesium"
|
|
@@ -10354,10 +10354,14 @@ declare namespace BillboardEntity {
|
|
|
10354
10354
|
* @property [setHeight] - 指定坐标高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
|
|
10355
10355
|
* @property [addHeight] - 在现有坐标基础上增加的高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
|
|
10356
10356
|
* @property [highlight] - 鼠标移入或单击(type:'click')后的对应高亮的部分样式,提示:原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
|
|
10357
|
-
* // * @
|
|
10358
|
-
* // * @
|
|
10357
|
+
* // * @property {string} [highlight.type] 事件方式,鼠标移入高亮 或 单击高亮(type:'click')
|
|
10358
|
+
* // * @property {boolean} [highlight.enabled=true] 是否启用
|
|
10359
10359
|
* @property [label] - 支持附带文字的显示
|
|
10360
|
-
* // * @
|
|
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
|
|
|
@@ -12758,7 +12776,7 @@ declare namespace ModelEntity {
|
|
|
12758
12776
|
* @property [incrementallyLoadTextures = true] - 确定模型加载后纹理是否会继续流进来。
|
|
12759
12777
|
* @property [runAnimations = true] - 指定模型中指定的glTF动画是否应该启动。
|
|
12760
12778
|
* @property [clampAnimations = true] - 指定在没有关键帧的情况下,glTF动画是否应该保持最后一个姿势。
|
|
12761
|
-
* @property [lightColor] -
|
|
12779
|
+
* @property [lightColor] - 控制模型自身接收的光源颜色的参数,核心作用是为模型的光照计算指定一个 “滤镜色”—— 所有照射到该模型上的光源(定向光、环境光、太阳光等)都会先与这个颜色相乘,最终改变模型呈现的整体色调和亮度。
|
|
12762
12780
|
* @property [nodeTransformations] - 一个对象,其中键是节点的名称,值是{@link TranslationRotationScale}属性,描述要应用到该节点的转换。该转换是在节点的现有转换之后(如glTF中指定的那样)应用的,并且不会替换节点的现有转换。
|
|
12763
12781
|
* @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.
|
|
12764
12782
|
* @property [clippingPlanes] - 用于裁剪模型的Plane平面集合
|
|
@@ -19406,8 +19424,8 @@ declare class EllipsoidPrimitive extends BasePointPrimitive {
|
|
|
19406
19424
|
declare namespace FrustumPrimitive {
|
|
19407
19425
|
/**
|
|
19408
19426
|
* 四棱锥体 支持的样式信息
|
|
19409
|
-
* @property [angle] -
|
|
19410
|
-
* @property [angle2 = angle] - 四棱锥体张角2
|
|
19427
|
+
* @property [angle] - 四棱锥体张角,竖直角(角度值,取值范围 0.01-89.99)。 已知问题:垂直角建议小于10°-80°,超出这个范围会出现明显的透视畸变。
|
|
19428
|
+
* @property [angle2 = angle] - 四棱锥体张角2,水平角(角度值,取值范围 0.01-89.99), 水平角计算为aspectRatio宽高比传给视锥体对象,如果你的宽高比必须匹配画布(避免画面拉伸),就不能同时强制匹配水平角 —— 二者只能选其一,这是透视投影的数学特性;
|
|
19411
19429
|
* @property [heading = 0] - 方向角 (度数值,0至360度),没有指定targetPosition时有效
|
|
19412
19430
|
* @property [pitch = 0] - 俯仰角(度数值,0至360度),没有指定targetPosition时有效
|
|
19413
19431
|
* @property [roll = 0] - 翻滚角(度数值,0至360度),没有指定targetPosition时有效
|
|
@@ -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 - 参数对象,包括以下:
|
|
@@ -19834,7 +19963,7 @@ declare namespace ModelPrimitive {
|
|
|
19834
19963
|
* @property [runAnimations = true] - 指定模型中指定的glTF动画是否应该启动。
|
|
19835
19964
|
* @property [clampAnimations = true] - 指定在没有关键帧的情况下,glTF动画是否应该保持最后一个姿势。
|
|
19836
19965
|
* @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.
|
|
19837
|
-
* @property [lightColor] -
|
|
19966
|
+
* @property [lightColor] - 控制模型自身接收的光源颜色的参数,核心作用是为模型的光照计算指定一个 “滤镜色”—— 所有照射到该模型上的光源(定向光、环境光、太阳光等)都会先与这个颜色相乘,最终改变模型呈现的整体色调和亮度。
|
|
19838
19967
|
* @property [imageBasedLighting] - The properties for managing image-based lighting on this model.
|
|
19839
19968
|
* @property [nodeTransformations] - 一个对象,其中键是节点的名称,值是{@link TranslationRotationScale}属性,描述要应用到该节点的转换。该转换是在节点的现有转换之后(如glTF中指定的那样)应用的,并且不会替换节点的现有转换。
|
|
19840
19969
|
* @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.
|
|
@@ -19914,7 +20043,7 @@ declare namespace ModelPrimitive {
|
|
|
19914
20043
|
runAnimations?: boolean;
|
|
19915
20044
|
clampAnimations?: boolean;
|
|
19916
20045
|
releaseGltfJson?: boolean;
|
|
19917
|
-
lightColor?: Cesium.Color;
|
|
20046
|
+
lightColor?: Cesium.Color | number;
|
|
19918
20047
|
imageBasedLighting?: Cesium.ImageBasedLighting;
|
|
19919
20048
|
nodeTransformations?: Cesium.PropertyBag | {
|
|
19920
20049
|
[key: string]: Cesium.TranslationRotationScale;
|
|
@@ -33804,7 +33933,7 @@ declare class CylinderWaveMaterial extends Cesium.Material {
|
|
|
33804
33933
|
* style: {
|
|
33805
33934
|
* diffHeight: 5,
|
|
33806
33935
|
* material: new mars3d.material.TextMaterial({
|
|
33807
|
-
* text: "
|
|
33936
|
+
* text: "欢迎使用Mars3D平台",
|
|
33808
33937
|
* color: "#3388cc",
|
|
33809
33938
|
* outlineWidth: 4,
|
|
33810
33939
|
* }),
|
|
@@ -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] - 控制参数
|
|
@@ -42316,8 +42469,8 @@ declare namespace Util {
|
|
|
42316
42469
|
/**
|
|
42317
42470
|
* 根据数据和格式化字符串模板,返回字符串
|
|
42318
42471
|
* @example
|
|
42319
|
-
* let str = mars3d.Util.template("<div>名称:{name}</div>", { name:"
|
|
42320
|
-
* //str结果为 : "<div
|
|
42472
|
+
* let str = mars3d.Util.template("<div>名称:{name}</div>", { name:"欢迎使用Mars3D平台", date:"2017-8-25"} );
|
|
42473
|
+
* //str结果为 : "<div>名称:欢迎使用Mars3D平台</div>"
|
|
42321
42474
|
* @param str - 格式化字符串模版,属性字段为大括号,如 {name}
|
|
42322
42475
|
* @param data - 数据对象
|
|
42323
42476
|
* @param [toEmpty = false] - 是否将模板中未匹配项转为空值
|
|
@@ -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 }
|