bbl-mapbox-react 0.0.28 → 0.0.30
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 +4 -4
- package/dist/index.css +1 -1
- package/dist/index.mjs +775 -718
- package/dist/types.d.ts +30 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -857,6 +857,36 @@ export interface PickerModeConfig {
|
|
|
857
857
|
name?: string;
|
|
858
858
|
/** 文本样式配置 */
|
|
859
859
|
nameConfig?: NameConfig;
|
|
860
|
+
/**
|
|
861
|
+
* 自定义鼠标图标配置
|
|
862
|
+
* 不配置时使用默认的 crosshair 光标
|
|
863
|
+
*/
|
|
864
|
+
cursorImage?: PickerCursorImageConfig;
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* 选址模式自定义鼠标图标配置
|
|
868
|
+
*/
|
|
869
|
+
export interface PickerCursorImageConfig {
|
|
870
|
+
/** 图片 URL(支持 svg/png/cur 等) */
|
|
871
|
+
url: string;
|
|
872
|
+
/**
|
|
873
|
+
* 图片锚点位置(相对于鼠标实际点击位置)
|
|
874
|
+
* - 'center': 图片中心对齐鼠标
|
|
875
|
+
* - 'top': 图片顶部中心对齐鼠标
|
|
876
|
+
* - 'top-left': 图片左上角对齐鼠标
|
|
877
|
+
* - 'top-right': 图片右上角对齐鼠标
|
|
878
|
+
* - 'bottom': 图片底部中心对齐鼠标
|
|
879
|
+
* - 'bottom-left': 图片左下角对齐鼠标
|
|
880
|
+
* - 'bottom-right': 图片右下角对齐鼠标
|
|
881
|
+
* - 'left': 图片左侧中心对齐鼠标
|
|
882
|
+
* - 'right': 图片右侧中心对齐鼠标
|
|
883
|
+
* 默认 'center'
|
|
884
|
+
*/
|
|
885
|
+
anchor?: 'center' | 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'right';
|
|
886
|
+
/** 图片宽度(px),用于计算锚点偏移,默认 32 */
|
|
887
|
+
width?: number;
|
|
888
|
+
/** 图片高度(px),用于计算锚点偏移,默认 32 */
|
|
889
|
+
height?: number;
|
|
860
890
|
}
|
|
861
891
|
/**
|
|
862
892
|
* Marker 模板定义
|