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/index.cjs +3 -3
- package/dist/index.mjs +305 -291
- package/dist/types.d.ts +6 -0
- package/package.json +1 -1
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 数组
|