bbl-mapbox-react 0.0.22 → 0.0.24

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
@@ -642,6 +642,15 @@ export interface MapboxRef {
642
642
  * @param options 路径规划选项
643
643
  */
644
644
  startRoutePlanning: (options: RoutePlanningOptions) => void;
645
+ /**
646
+ * 获取路网高亮控件的 ref
647
+ * 可通过 renderPanel() 获取面板 ReactNode 在外部渲染
648
+ */
649
+ getRoadHighlightControl: () => RoadHighlightControlRef | null;
650
+ }
651
+ export interface RoadHighlightControlRef {
652
+ /** 设置外部渲染容器,面板内容会通过 Portal 渲染到该容器中,状态完全同步 */
653
+ setPortalContainer: (el: HTMLElement | null) => void;
645
654
  }
646
655
  export interface RenderContext {
647
656
  map: MapboxMap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bbl-mapbox-react",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "description": "React Mapbox 地图组件库,支持雷达、图像、标记、轨迹等多种 GIS 实体渲染",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",