bbl-mapbox-react 0.0.30 → 0.0.31

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/dist/types.d.ts CHANGED
@@ -566,6 +566,12 @@ export interface MapboxRef {
566
566
  bearing?: number;
567
567
  essential?: boolean;
568
568
  }) => void;
569
+ /**
570
+ * 通过实体 ID 数组获取所有实体的中心点
571
+ * @param ids 实体 ID 数组
572
+ * @returns 中心点坐标 [经度, 纬度],如果没有有效实体则返回 null
573
+ */
574
+ getCenterByIds: (ids: EntityId[]) => [number, number] | null;
569
575
  /**
570
576
  * 飞行到指定实体(可多个)
571
577
  * @param ids 实体 ID 数组
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bbl-mapbox-react",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "description": "React Mapbox 地图组件库,支持雷达、图像、标记、轨迹等多种 GIS 实体渲染",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",