@baidumap/mapv-three 1.2.0 → 1.2.1

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.
@@ -1,3 +1,40 @@
1
+ /**
2
+ * 填充多边形(不含描边),可沿Z轴拉伸高度成多边形柱状体
3
+ *
4
+ * 支持以下功能:
5
+ * - 基础多边形填充渲染
6
+ * - Z轴拉伸创建3D柱状体
7
+ * - 贴地渲染(Ground Primitive)
8
+ * - 纹理贴图支持
9
+ * - 顶点颜色和高度配置
10
+ *
11
+ * @category Objects
12
+ * @example
13
+ * ```javascript
14
+ * // 创建基础多边形
15
+ * const polygon = engine.add(new mapvthree.Polygon({
16
+ * vertexColors: true,
17
+ * extrude: true,
18
+ * extrudeValue: 100,
19
+ * }));
20
+ *
21
+ * // 设置数据源
22
+ * let data = mapvthree.GeoJSONDataSource.fromGeoJSON(data);
23
+ * data.defineAttribute('color', 'color');
24
+ * polygon.dataSource = data;
25
+ * ```
26
+ *
27
+ * @example
28
+ * ```javascript
29
+ * // 创建贴地多边形
30
+ * const groundPolygon = engine.add(new mapvthree.Polygon({
31
+ * isGroundPrimitive: true,
32
+ * color: 'rgba(255, 0, 0, 0.5)',
33
+ * opacity: 0.8
34
+ * }));
35
+ * ```
36
+ * ![](media://polygon.png)
37
+ */
1
38
  export class Polygon extends GeoMesh {
2
39
  /**
3
40
  * 创建多边形渲染对象
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baidumap/mapv-three",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A powerful 3D map engine.",
5
5
  "author": "mapopen-fe@baidu.com",
6
6
  "main": "dist/mapvthree.umd.js",