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/components/RoadHighlightControl.d.ts +4 -2
- package/dist/index.cjs +8 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1020 -1016
- package/dist/types.d.ts +9 -0
- package/package.json +1 -1
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;
|