bbl-mapbox-react 0.0.13 → 0.0.14
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/BaseCanvasRenderer.d.ts +1 -1
- package/dist/components/CanvasCircleRenderer.d.ts +1 -1
- package/dist/components/RasterPaintControl.d.ts +15 -0
- package/dist/index.cjs +7 -7
- package/dist/index.css +1 -1
- package/dist/index.mjs +965 -798
- package/dist/types.d.ts +34 -1
- package/package.json +1 -1
|
@@ -56,7 +56,7 @@ export declare abstract class BaseCanvasRenderer<T extends BaseEntity> {
|
|
|
56
56
|
* 获取面积标签的锚点和偏移,子类可覆盖以自定义位置
|
|
57
57
|
*/
|
|
58
58
|
protected getAreaLabelAnchor(): {
|
|
59
|
-
anchor:
|
|
59
|
+
anchor: 'top' | 'bottom' | 'left' | 'right' | 'center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
60
60
|
offset: [number, number];
|
|
61
61
|
};
|
|
62
62
|
protected initLabelLayer(): void;
|
|
@@ -37,7 +37,7 @@ export declare class CanvasCircleRenderer extends BaseCanvasRenderer<CircleEntit
|
|
|
37
37
|
* 面积标签在中心点上方
|
|
38
38
|
*/
|
|
39
39
|
protected getAreaLabelAnchor(): {
|
|
40
|
-
anchor:
|
|
40
|
+
anchor: 'top' | 'bottom' | 'left' | 'right' | 'center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
41
41
|
offset: [number, number];
|
|
42
42
|
};
|
|
43
43
|
private get radiusTextStyle();
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Map as MapboxMap } from 'mapbox-gl';
|
|
3
|
+
import { RasterPaintConfig } from '../types';
|
|
4
|
+
export interface RasterPaintControlProps {
|
|
5
|
+
map: MapboxMap | null;
|
|
6
|
+
/** 受控模式值 */
|
|
7
|
+
value?: RasterPaintConfig;
|
|
8
|
+
/** 受控模式回调 */
|
|
9
|
+
onChange?: (config: RasterPaintConfig) => void;
|
|
10
|
+
/** 需要应用 rasterPaint 的地图图层 ID 列表 */
|
|
11
|
+
rasterPaintLayerIds?: string[];
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
}
|
|
15
|
+
export default function RasterPaintControl({ map, value, onChange, rasterPaintLayerIds, className, style, }: RasterPaintControlProps): import("react/jsx-runtime").JSX.Element;
|