@antv/aimapui 0.3.5 → 0.4.2
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 +50 -50
- package/dist/index.d.ts +88 -20
- package/dist/index.es.js +40694 -42242
- package/dist/index.iife.js +56 -56
- package/dist/style.css +1 -1
- package/package.json +16 -16
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { Scene } from '@antv/l7';
|
|
|
7
7
|
|
|
8
8
|
export declare type ActiveConfig = boolean | {
|
|
9
9
|
color: string;
|
|
10
|
+
duration?: number;
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -1095,7 +1096,7 @@ declare type BubbleAnchor = 'center' | 'top' | 'right' | 'bottom' | 'left' | 'to
|
|
|
1095
1096
|
* - bubbleAnchor='center', labelAnchor='center' — 标签居中覆盖气泡(适合短文本)
|
|
1096
1097
|
* - bubbleAnchor='bottom', labelAnchor='top' — 标签在气泡上方(经典布局)
|
|
1097
1098
|
*/
|
|
1098
|
-
export declare function BubbleLayer({ source, sourceType, sourceConfig, labelField, labelColor, labelSize, showLabel, labelOffset, sizeDomain, bubbleAnchor, labelAnchor, hoverEffect, clickEffect, tooltipEffect, tooltipFields, tooltipTemplate, semanticColorField, color, size, sizeField, sizeValues, style, active, select, onClick, onMouseMove, onMouseEnter, onMouseLeave, ...rest }: BubbleLayerProps): default_2.JSX.Element;
|
|
1099
|
+
export declare function BubbleLayer({ source, sourceType, sourceConfig, labelField, labelColor, labelSize, showLabel, labelOffset, sizeDomain, sizeRange, bubbleAnchor, labelAnchor, hoverEffect, clickEffect, tooltipEffect, tooltipFields, tooltipTemplate, semanticColorField, colorScheme, color, size, sizeField, sizeValues, style, active, select, onClick, onMouseMove, onMouseEnter, onMouseLeave, ...rest }: BubbleLayerProps): default_2.JSX.Element;
|
|
1099
1100
|
|
|
1100
1101
|
export declare interface BubbleLayerProps extends Omit<LayerSchema, 'type' | 'source' | 'sourceType' | 'sourceConfig'> {
|
|
1101
1102
|
source: LayerSchema['source'];
|
|
@@ -1110,6 +1111,8 @@ export declare interface BubbleLayerProps extends Omit<LayerSchema, 'type' | 'so
|
|
|
1110
1111
|
labelOffset?: [number, number];
|
|
1111
1112
|
/** sizeField 为离散值时,对应每个 sizeValues 的域值顺序(默认 1..N) */
|
|
1112
1113
|
sizeDomain?: Array<string | number>;
|
|
1114
|
+
/** 连续数值尺寸范围 [min, max],与 sizeField 配合使用。提供时自动线性映射 */
|
|
1115
|
+
sizeRange?: [number, number];
|
|
1113
1116
|
/** 气泡锚点,决定标签相对气泡的连接参考点 */
|
|
1114
1117
|
bubbleAnchor?: BubbleAnchor;
|
|
1115
1118
|
/** 文本锚点,映射到 textAnchor */
|
|
@@ -1126,6 +1129,8 @@ export declare interface BubbleLayerProps extends Omit<LayerSchema, 'type' | 'so
|
|
|
1126
1129
|
tooltipTemplate?: string;
|
|
1127
1130
|
/** 语义色板映射字段,例如 status: primary|warning|error|success */
|
|
1128
1131
|
semanticColorField?: string;
|
|
1132
|
+
/** 色板预设,默认 'categorical'。当无 semanticColorField 且无 colorValues 时使用 */
|
|
1133
|
+
colorScheme?: ColorScheme;
|
|
1129
1134
|
/** 点击事件 */
|
|
1130
1135
|
onClick?: (payload: LayerEventPayload) => void;
|
|
1131
1136
|
/** 鼠标移动事件 */
|
|
@@ -1153,6 +1158,9 @@ export declare interface CalibrationResult {
|
|
|
1153
1158
|
extent: [number, number, number, number];
|
|
1154
1159
|
}
|
|
1155
1160
|
|
|
1161
|
+
/** 分类色板 — 适用于离散类别,色盲安全 */
|
|
1162
|
+
export declare const CATEGORICAL_COLORS: readonly ["#2563eb", "#f59e0b", "#ef4444", "#10b981", "#8b5cf6", "#14b8a6", "#f97316", "#64748b"];
|
|
1163
|
+
|
|
1156
1164
|
/**
|
|
1157
1165
|
* 中国行政区划图层(ChinaDistrict)
|
|
1158
1166
|
*
|
|
@@ -1255,6 +1263,14 @@ declare interface ColorConfig {
|
|
|
1255
1263
|
values?: string[] | string;
|
|
1256
1264
|
}
|
|
1257
1265
|
|
|
1266
|
+
/**
|
|
1267
|
+
* 语义化色板预设
|
|
1268
|
+
*
|
|
1269
|
+
* 基于 ColorBrewer 推荐,色盲安全。
|
|
1270
|
+
* 参考: https://colorbrewer2.org/
|
|
1271
|
+
*/
|
|
1272
|
+
export declare type ColorScheme = 'sequential' | 'diverging' | 'categorical';
|
|
1273
|
+
|
|
1258
1274
|
/**
|
|
1259
1275
|
* L7 规范的控件容器,将子控件按 position 分组到四角自动排列
|
|
1260
1276
|
*
|
|
@@ -1408,6 +1424,9 @@ export declare const DEFAULT_PROVINCE_SOURCE = "https://mdn.alipayobjects.com/an
|
|
|
1408
1424
|
*/
|
|
1409
1425
|
export declare function diffSchema(prev: AiMapSchema, next: AiMapSchema): SchemaDiffResult;
|
|
1410
1426
|
|
|
1427
|
+
/** 发散色板(红-白-绿)— 适用于有中心点的双向数据 */
|
|
1428
|
+
export declare const DIVERGING_COLORS: readonly ["#dc2626", "#fca5a5", "#e5e7eb", "#86efac", "#16a34a"];
|
|
1429
|
+
|
|
1411
1430
|
/** 基础绘制模式(产生要素的模式) */
|
|
1412
1431
|
declare type DrawBasicMode = 'point' | 'polyline' | 'polygon' | 'rectangle' | 'circle';
|
|
1413
1432
|
|
|
@@ -1725,12 +1744,12 @@ declare interface ExportUploadData {
|
|
|
1725
1744
|
outputHeight: number;
|
|
1726
1745
|
}
|
|
1727
1746
|
|
|
1728
|
-
declare type FillColorMapping =
|
|
1747
|
+
declare type FillColorMapping = ColorScheme;
|
|
1729
1748
|
|
|
1730
1749
|
/**
|
|
1731
1750
|
* 填充图组件(填充 + 描边 + 文字)
|
|
1732
1751
|
*/
|
|
1733
|
-
export declare function FillLayer({ source, sourceType, colorMapping, showStroke, strokeColor, strokeWidth, hoverEffect, clickEffect, stickySelection, tooltipEffect, tooltipFields, tooltipTemplate, regionIdField, highlightStrokeColor, highlightStrokeWidth, zoomToRegionOnClick, clickZoomPadding, clickZoomDelta, onRegionClick, onDrilldown, onLayerCreated, showLabel, labelField, labelColor, labelSize, labelAreaThreshold, labelHaloWidth, minLabelZoom, valueField, percentageField, nameField, color, colorField, colorValues, active, select, events, style, ...rest }: FillLayerProps): default_2.JSX.Element;
|
|
1752
|
+
export declare function FillLayer({ source, sourceType, colorMapping, showStroke, strokeColor, strokeWidth, hoverEffect, clickEffect, stickySelection, tooltipEffect, tooltipFields, tooltipTemplate, regionIdField, highlightStrokeColor, highlightStrokeWidth, zoomToRegionOnClick, clickZoomPadding, clickZoomDelta, onRegionClick, onDrilldown, onMouseMove, onMouseLeave, onLayerCreated, showLabel, labelField, labelColor, labelSize, labelAreaThreshold, labelHaloWidth, minLabelZoom, valueField, percentageField, nameField, color, colorField, colorValues, active, select, events, style, ...rest }: FillLayerProps): default_2.JSX.Element;
|
|
1734
1753
|
|
|
1735
1754
|
export declare interface FillLayerProps extends Omit<LayerSchema, 'type' | 'source' | 'sourceType' | 'sourceConfig'> {
|
|
1736
1755
|
source: LayerSchema['source'];
|
|
@@ -1753,6 +1772,8 @@ export declare interface FillLayerProps extends Omit<LayerSchema, 'type' | 'sour
|
|
|
1753
1772
|
clickZoomDelta?: number;
|
|
1754
1773
|
onRegionClick?: (payload: LayerEventPayload) => void;
|
|
1755
1774
|
onDrilldown?: (feature: Record<string, unknown>) => void;
|
|
1775
|
+
onMouseMove?: (payload: LayerEventPayload) => void;
|
|
1776
|
+
onMouseLeave?: (payload: LayerEventPayload) => void;
|
|
1756
1777
|
onLayerCreated?: (layer: any) => void;
|
|
1757
1778
|
showLabel?: boolean;
|
|
1758
1779
|
labelField?: string;
|
|
@@ -1839,6 +1860,9 @@ export declare interface GestureConfig {
|
|
|
1839
1860
|
dragRotate?: boolean;
|
|
1840
1861
|
}
|
|
1841
1862
|
|
|
1863
|
+
/** 根据 colorScheme 获取对应色板 */
|
|
1864
|
+
export declare function getColorPalette(scheme: ColorScheme): readonly string[];
|
|
1865
|
+
|
|
1842
1866
|
/**
|
|
1843
1867
|
* 根据控件 position 计算弹出面板的初始方向
|
|
1844
1868
|
* - top* → 向下弹出, bottom* → 向上弹出
|
|
@@ -1945,17 +1969,17 @@ export declare interface GlyphLayerProps extends Omit<LayerSchema, 'type' | 'sou
|
|
|
1945
1969
|
onMouseLeave?: (payload: LayerEventPayload) => void;
|
|
1946
1970
|
}
|
|
1947
1971
|
|
|
1948
|
-
export declare const H3_SEQUENTIAL_COLORS: readonly ["#dbeafe", "#93c5fd", "#60a5fa", "#3b82f6", "#2563eb"];
|
|
1949
|
-
|
|
1950
1972
|
export declare interface H3DataItem {
|
|
1951
1973
|
[key: string]: unknown;
|
|
1952
1974
|
}
|
|
1953
1975
|
|
|
1954
|
-
export declare function H3Layer({ source, h3Field, color, colorField, colorValues, opacity, showStroke, strokeColor, strokeWidth, hoverEffect, clickEffect, showLabel, labelField, labelColor, labelSize, active, select, style, onClick, onMouseMove, onMouseEnter, onMouseLeave, ...rest }: H3LayerProps): default_2.JSX.Element;
|
|
1976
|
+
export declare function H3Layer({ source, h3Field, color, colorField, colorValues, colorScheme, opacity, showStroke, strokeColor, strokeWidth, hoverEffect, clickEffect, showLabel, labelField, labelColor, labelSize, active, select, style, onClick, onMouseMove, onMouseEnter, onMouseLeave, ...rest }: H3LayerProps): default_2.JSX.Element;
|
|
1955
1977
|
|
|
1956
1978
|
export declare interface H3LayerProps extends Omit<LayerSchema, 'type' | 'source' | 'sourceType' | 'sourceConfig' | 'shape' | 'shapeField' | 'shapeValues'> {
|
|
1957
1979
|
source: H3DataItem[];
|
|
1958
1980
|
h3Field?: string;
|
|
1981
|
+
/** 色板预设,默认 'sequential' */
|
|
1982
|
+
colorScheme?: ColorScheme;
|
|
1959
1983
|
showStroke?: boolean;
|
|
1960
1984
|
strokeColor?: string;
|
|
1961
1985
|
strokeWidth?: number;
|
|
@@ -2003,7 +2027,7 @@ export declare interface HeatmapLayerProps extends Omit<LayerSchema, 'type' | 's
|
|
|
2003
2027
|
* - 默认 hexSize=20(屏幕空间 20-40px 范围)
|
|
2004
2028
|
* - 支持 hover 高亮反馈
|
|
2005
2029
|
*/
|
|
2006
|
-
declare function HexagonLayer({ source, sourceType, sourceConfig, mode, hexSize, weightField, weightMethod, showStroke, strokeColor, strokeWidth, hoverEffect, activeColor, onClick, onMouseMove, onMouseEnter, onMouseLeave, style, ...rest }: HexagonLayerProps): default_2.JSX.Element;
|
|
2030
|
+
declare function HexagonLayer({ source, sourceType, sourceConfig, mode, hexSize, weightField, weightMethod, showStroke, strokeColor, strokeWidth, hoverEffect, activeColor, colorScheme, onClick, onMouseMove, onMouseEnter, onMouseLeave, style, ...rest }: HexagonLayerProps): default_2.JSX.Element;
|
|
2007
2031
|
export { HexagonLayer as HeatmapHexagonLayer }
|
|
2008
2032
|
export { HexagonLayer }
|
|
2009
2033
|
|
|
@@ -2029,6 +2053,8 @@ declare interface HexagonLayerProps extends Omit<LayerSchema, 'type' | 'shape' |
|
|
|
2029
2053
|
hoverEffect?: boolean;
|
|
2030
2054
|
/** hover 高亮色,默认 '#fbbf24' (secondary) */
|
|
2031
2055
|
activeColor?: string;
|
|
2056
|
+
/** 色板预设,默认 'sequential'。用于生成 heatmap rampColors */
|
|
2057
|
+
colorScheme?: ColorScheme;
|
|
2032
2058
|
onClick?: (payload: LayerEventPayload) => void;
|
|
2033
2059
|
onMouseMove?: (payload: LayerEventPayload) => void;
|
|
2034
2060
|
onMouseEnter?: (payload: LayerEventPayload) => void;
|
|
@@ -2070,7 +2096,7 @@ declare type IconAnchor_2 = 'center' | 'top' | 'bottom' | 'left' | 'right';
|
|
|
2070
2096
|
* - 缩放适配:Zoom15+ 全显示 → 10-14 仅图标 → <10 降级圆点
|
|
2071
2097
|
* - 碰撞检测:重叠时隐藏低优先级文本
|
|
2072
2098
|
*/
|
|
2073
|
-
export declare function IconLayer({ source, sourceType, sourceConfig, iconField, iconMap, iconSize, iconAnchor, size, showLabel, labelField, labelColor, labelSize, labelAnchor, labelOffset, labelHaloColor, labelHaloWidth, labelStyle, textAllowOverlap, iconAllowOverlap, zoomAdaption, zoomShowLabel, zoomDegradeToPoint, onClick, onMouseEnter, onMouseLeave, ...rest }: IconLayerProps): default_2.JSX.Element | null;
|
|
2099
|
+
export declare function IconLayer({ source, sourceType, sourceConfig, iconField, iconMap, iconSize, iconAnchor, size, showLabel, labelField, labelColor, labelSize, labelAnchor, labelOffset, labelHaloColor, labelHaloWidth, labelStyle, textAllowOverlap, iconAllowOverlap, zoomAdaption, zoomShowLabel, zoomDegradeToPoint, onClick, onMouseEnter, onMouseLeave, accuracy, ...rest }: IconLayerProps): default_2.JSX.Element | null;
|
|
2074
2100
|
|
|
2075
2101
|
export declare interface IconLayerProps extends Omit<LayerSchema, 'type' | 'source' | 'sourceType' | 'sourceConfig'> {
|
|
2076
2102
|
source: LayerSchema['source'];
|
|
@@ -2115,6 +2141,12 @@ export declare interface IconLayerProps extends Omit<LayerSchema, 'type' | 'sour
|
|
|
2115
2141
|
onClick?: (payload: LayerEventPayload) => void;
|
|
2116
2142
|
onMouseEnter?: (payload: LayerEventPayload) => void;
|
|
2117
2143
|
onMouseLeave?: (payload: LayerEventPayload) => void;
|
|
2144
|
+
/**
|
|
2145
|
+
* 定位精度模式
|
|
2146
|
+
* - precise: 精确地址,使用尖头 pin 图标(默认)
|
|
2147
|
+
* - general: 模糊区域,使用圆形标记,避免误导用户以为精确定位
|
|
2148
|
+
*/
|
|
2149
|
+
accuracy?: 'precise' | 'general';
|
|
2118
2150
|
}
|
|
2119
2151
|
|
|
2120
2152
|
declare interface ImageAnnotationProperties extends AnnotationPropertiesBase {
|
|
@@ -2343,6 +2375,8 @@ export declare interface LayerSchema {
|
|
|
2343
2375
|
size?: number;
|
|
2344
2376
|
sizeField?: string;
|
|
2345
2377
|
sizeValues?: number[];
|
|
2378
|
+
/** 连续数值尺寸范围 [min, max],与 sizeField 配合使用 */
|
|
2379
|
+
sizeRange?: [number, number];
|
|
2346
2380
|
shape?: string;
|
|
2347
2381
|
shapeField?: string;
|
|
2348
2382
|
shapeValues?: string[] | string;
|
|
@@ -3088,7 +3122,7 @@ export declare interface PolygonLayerProps extends Omit<LayerSchema, 'type' | 's
|
|
|
3088
3122
|
onLayerCreated?: (layer: any) => void;
|
|
3089
3123
|
}
|
|
3090
3124
|
|
|
3091
|
-
export declare function Popup({ longitude, latitude, content, closeButton, size, placement: placementProp, offset, header, attributes, actions, visible: visibleProp, singleton, overlayContainer, onClose, className, }: PopupProps): default_2.ReactPortal | null;
|
|
3125
|
+
export declare function Popup({ longitude, latitude, content, closeButton, size: sizeProp, placement: placementProp, offset, layout, header, attributes, actions, visible: visibleProp, singleton, overlayContainer, onClose, className, }: PopupProps): default_2.ReactPortal | null;
|
|
3092
3126
|
|
|
3093
3127
|
/**
|
|
3094
3128
|
* Popup 操作按钮
|
|
@@ -3151,6 +3185,14 @@ export declare interface PopupProps extends Omit<PopupSchema, 'type' | 'content'
|
|
|
3151
3185
|
placement?: PopupPlacement;
|
|
3152
3186
|
/** 弹出框偏移量(像素),默认 8px,正数远离锚点 */
|
|
3153
3187
|
offset?: number;
|
|
3188
|
+
/**
|
|
3189
|
+
* 布局预设 — 快速选择信息排布方式,自动映射到 size + 内部样式
|
|
3190
|
+
* - simple: 纯文本/HTML,compact 尺寸
|
|
3191
|
+
* - card: 标题 + 属性列表,standard 尺寸
|
|
3192
|
+
* - rich: 封面图 + 标题 + 属性 + 操作按钮,detailed 尺寸
|
|
3193
|
+
* 传入后仍可被 size/header/attributes/actions 单独覆盖
|
|
3194
|
+
*/
|
|
3195
|
+
layout?: 'simple' | 'card' | 'rich';
|
|
3154
3196
|
/** 结构化标题栏(可选,传入后覆盖简单内容模式) */
|
|
3155
3197
|
header?: PopupHeader;
|
|
3156
3198
|
/** 属性列表(可选,"标签-值"对齐模式) */
|
|
@@ -3250,6 +3292,32 @@ declare interface RegisteredImage {
|
|
|
3250
3292
|
croppedRevokeUrl: (() => void) | null;
|
|
3251
3293
|
}
|
|
3252
3294
|
|
|
3295
|
+
export declare function ResetViewControl({ position, icon, title, initialView, className, style, }: ResetViewControlProps): default_2.JSX.Element;
|
|
3296
|
+
|
|
3297
|
+
/**
|
|
3298
|
+
* ResetView 控件 — 一键重置地图到初始视图
|
|
3299
|
+
*
|
|
3300
|
+
* 遵循 L7 Control 规范 + Material Design 3 玻璃态风格。
|
|
3301
|
+
* 点击后将地图中心、缩放级别、旋转角、俯仰角恢复到初始状态。
|
|
3302
|
+
*/
|
|
3303
|
+
export declare interface ResetViewControlProps {
|
|
3304
|
+
/** 控件位置,默认 bottomright */
|
|
3305
|
+
position?: L7ControlPosition;
|
|
3306
|
+
/** 按钮图标,默认 Material Symbols "center_focus_strong" */
|
|
3307
|
+
icon?: default_2.ReactNode;
|
|
3308
|
+
/** 按钮标题/tooltip */
|
|
3309
|
+
title?: string;
|
|
3310
|
+
/** 自定义初始视图参数。不传时使用 scene 创建时的初始值 */
|
|
3311
|
+
initialView?: {
|
|
3312
|
+
center?: [number, number];
|
|
3313
|
+
zoom?: number;
|
|
3314
|
+
pitch?: number;
|
|
3315
|
+
rotation?: number;
|
|
3316
|
+
};
|
|
3317
|
+
className?: string;
|
|
3318
|
+
style?: default_2.CSSProperties;
|
|
3319
|
+
}
|
|
3320
|
+
|
|
3253
3321
|
declare type ResolvedMapSchema = MapSchema & {
|
|
3254
3322
|
basemap: NonNullable<MapSchema['basemap']>;
|
|
3255
3323
|
center: NonNullable<MapSchema['center']>;
|
|
@@ -3282,9 +3350,7 @@ export declare interface ResponsiveSchema {
|
|
|
3282
3350
|
*
|
|
3283
3351
|
* 遵循设计规范:
|
|
3284
3352
|
* - 序列化途经点 (Numbered Stops)
|
|
3285
|
-
* - 路径发光效果
|
|
3286
3353
|
* - 分段着色(路况/属性)
|
|
3287
|
-
* - 流动动画
|
|
3288
3354
|
*
|
|
3289
3355
|
* @example
|
|
3290
3356
|
* ```tsx
|
|
@@ -3294,12 +3360,10 @@ export declare interface ResponsiveSchema {
|
|
|
3294
3360
|
* { lng: 120.15, lat: 30.28, name: '西湖' },
|
|
3295
3361
|
* { lng: 120.17, lat: 30.25, name: '灵隐寺' },
|
|
3296
3362
|
* ]}
|
|
3297
|
-
* animate
|
|
3298
|
-
* glow
|
|
3299
3363
|
* />
|
|
3300
3364
|
* ```
|
|
3301
3365
|
*/
|
|
3302
|
-
export declare function RouteLayer({ path, segments, stops, routeType, onRouteQuery, onRouteResult, color, lineWidth, opacity,
|
|
3366
|
+
export declare function RouteLayer({ path, segments, stops, routeType, onRouteQuery, onRouteResult, color, lineWidth, opacity, stopSize, stopColor, endColor, showStopIndex, showStopName, stopNameColor, stopNameSize, stopRenderer, stopMarkerVariant, stopIconMap, stopIconField, stopIconSize, stopIconAnchor, showStopPopup, activeColor, onPathClick, onStopClick, zIndex, ...rest }: RouteLayerProps): default_2.JSX.Element | null;
|
|
3303
3367
|
|
|
3304
3368
|
export declare interface RouteLayerProps {
|
|
3305
3369
|
/** 路径坐标 — 完整线坐标或分段 */
|
|
@@ -3320,12 +3384,6 @@ export declare interface RouteLayerProps {
|
|
|
3320
3384
|
lineWidth?: number;
|
|
3321
3385
|
/** 路径透明度,默认 0.9 */
|
|
3322
3386
|
opacity?: number;
|
|
3323
|
-
/** 是否显示发光效果,默认 true */
|
|
3324
|
-
glow?: boolean;
|
|
3325
|
-
/** 是否启用流动动画,默认 false */
|
|
3326
|
-
animate?: boolean;
|
|
3327
|
-
/** 动画速度,默认 1 */
|
|
3328
|
-
animateSpeed?: number;
|
|
3329
3387
|
/** 途经点大小,默认 14 */
|
|
3330
3388
|
stopSize?: number;
|
|
3331
3389
|
/** 途经点颜色(默认跟随路径色) */
|
|
@@ -3360,6 +3418,8 @@ export declare interface RouteLayerProps {
|
|
|
3360
3418
|
onPathClick?: (payload: LayerEventPayload) => void;
|
|
3361
3419
|
/** 途经点点击 */
|
|
3362
3420
|
onStopClick?: (payload: LayerEventPayload) => void;
|
|
3421
|
+
/** 图层层级 */
|
|
3422
|
+
zIndex?: number;
|
|
3363
3423
|
}
|
|
3364
3424
|
|
|
3365
3425
|
/** 交通路线查询参数 */
|
|
@@ -3602,8 +3662,14 @@ export declare interface SearchBarProps {
|
|
|
3602
3662
|
|
|
3603
3663
|
export declare type SelectConfig = boolean | {
|
|
3604
3664
|
color: string;
|
|
3665
|
+
duration?: number;
|
|
3605
3666
|
};
|
|
3606
3667
|
|
|
3668
|
+
/** 顺序色板(蓝)— 适用于单调递增/递减数据 */
|
|
3669
|
+
declare const SEQUENTIAL_COLORS: readonly ["#dbeafe", "#93c5fd", "#60a5fa", "#3b82f6", "#2563eb"];
|
|
3670
|
+
export { SEQUENTIAL_COLORS as H3_SEQUENTIAL_COLORS }
|
|
3671
|
+
export { SEQUENTIAL_COLORS }
|
|
3672
|
+
|
|
3607
3673
|
declare interface ShapeConfig {
|
|
3608
3674
|
field?: string;
|
|
3609
3675
|
values?: string[] | string;
|
|
@@ -3612,6 +3678,8 @@ declare interface ShapeConfig {
|
|
|
3612
3678
|
declare interface SizeConfig {
|
|
3613
3679
|
field?: string;
|
|
3614
3680
|
values?: number[] | number;
|
|
3681
|
+
/** 连续数值尺寸范围 [min, max],与 field 配合使用 */
|
|
3682
|
+
range?: [number, number];
|
|
3615
3683
|
}
|
|
3616
3684
|
|
|
3617
3685
|
export declare interface SourceConfig {
|