bbl-mapbox-react 0.0.14 → 0.0.16
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/MeasureControl.d.ts +5 -2
- package/dist/index.cjs +7 -7
- package/dist/index.mjs +323 -297
- package/dist/types.d.ts +0 -2
- package/package.json +1 -1
|
@@ -2,8 +2,11 @@ import { Map as MapboxMap } from 'mapbox-gl';
|
|
|
2
2
|
import { EntityConfig } from '../types';
|
|
3
3
|
export interface MeasureControlProps {
|
|
4
4
|
map: MapboxMap | null;
|
|
5
|
-
|
|
5
|
+
/** 受控模式:外部传入 entityConfig */
|
|
6
|
+
entityConfig?: EntityConfig;
|
|
7
|
+
/** 受控模式:entityConfig 变更回调 */
|
|
8
|
+
onEntityConfigChange?: (config: EntityConfig) => void;
|
|
6
9
|
className?: string;
|
|
7
10
|
style?: React.CSSProperties;
|
|
8
11
|
}
|
|
9
|
-
export declare function MeasureControl({ map,
|
|
12
|
+
export declare function MeasureControl({ map, entityConfig: controlledEntityConfig, onEntityConfigChange, className, style, }: MeasureControlProps): import("react/jsx-runtime").JSX.Element | null;
|