@gis_victory/gismap 2.0.57 → 2.0.59
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/gismap.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7176,7 +7176,7 @@ export declare function useDraw(options?: UseDrawOptions): UseDrawReturn;
|
|
|
7176
7176
|
/** 绘制选项 */
|
|
7177
7177
|
export declare interface UseDrawOptions {
|
|
7178
7178
|
/** 绘制完成回调 */
|
|
7179
|
-
onDraw?: (feature: DrawFeature) => void;
|
|
7179
|
+
onDraw?: (drawType: DrawType, geoJson: GeoJSON.Feature, feature: DrawFeature, wkt: string) => void;
|
|
7180
7180
|
/** 选中回调 */
|
|
7181
7181
|
onSelect?: (feature: DrawFeature | null) => void;
|
|
7182
7182
|
}
|
|
@@ -7212,7 +7212,7 @@ export declare interface UseDrawReturn {
|
|
|
7212
7212
|
/** 清除选中 */
|
|
7213
7213
|
deselect: () => void;
|
|
7214
7214
|
/** 设置绘制完成回调 */
|
|
7215
|
-
onDraw: (callback: (feature: DrawFeature) => void) => void;
|
|
7215
|
+
onDraw: (callback: (drawType: DrawType, geoJson: GeoJSON.Feature, feature: DrawFeature, wkt: string) => void) => void;
|
|
7216
7216
|
/** 设置选中回调 */
|
|
7217
7217
|
onSelect: (callback: (feature: DrawFeature | null) => void) => void;
|
|
7218
7218
|
}
|