@gis_victory/gismap 2.0.56 → 2.0.58

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.d.ts CHANGED
@@ -2015,7 +2015,13 @@ collapse: () => void;
2015
2015
  shouldLoadData: () => boolean;
2016
2016
  updateLeafState: () => void;
2017
2017
  setChecked: (value?: boolean | string, deep?: boolean, recursion?: boolean, passValue?: boolean) => void;
2018
- getChildren: (forceInit?: boolean) => TreeNodeData | TreeNodeData[] | null;
2018
+ getChildren: (forceInit
2019
+ /**
2020
+ * 切换图例显示状态
2021
+ * @param data 图层数据
2022
+ * @param visible 是否显示图例
2023
+ */
2024
+ ?: boolean) => TreeNodeData | TreeNodeData[] | null;
2019
2025
  updateChildren: () => void;
2020
2026
  loadData: (callback: (data?: TreeNodeData[]) => void, defaultProps?: TreeNodeLoadedDefaultProps) => void;
2021
2027
  eachNode: (callback: (node: Node_2) => void) => void;
@@ -3221,7 +3227,13 @@ collapse: () => void;
3221
3227
  shouldLoadData: () => boolean;
3222
3228
  updateLeafState: () => void;
3223
3229
  setChecked: (value?: boolean | string, deep?: boolean, recursion?: boolean, passValue?: boolean) => void;
3224
- getChildren: (forceInit?: boolean) => TreeNodeData | TreeNodeData[] | null;
3230
+ getChildren: (forceInit
3231
+ /**
3232
+ * 切换图例显示状态
3233
+ * @param data 图层数据
3234
+ * @param visible 是否显示图例
3235
+ */
3236
+ ?: boolean) => TreeNodeData | TreeNodeData[] | null;
3225
3237
  updateChildren: () => void;
3226
3238
  loadData: (callback: (data?: TreeNodeData[]) => void, defaultProps?: TreeNodeLoadedDefaultProps) => void;
3227
3239
  eachNode: (callback: (node: Node_2) => void) => void;
@@ -7164,7 +7176,7 @@ export declare function useDraw(options?: UseDrawOptions): UseDrawReturn;
7164
7176
  /** 绘制选项 */
7165
7177
  export declare interface UseDrawOptions {
7166
7178
  /** 绘制完成回调 */
7167
- onDraw?: (feature: DrawFeature) => void;
7179
+ onDraw?: (drawType: DrawType, geoJson: GeoJSON.Feature, feature: DrawFeature, wkt: string) => void;
7168
7180
  /** 选中回调 */
7169
7181
  onSelect?: (feature: DrawFeature | null) => void;
7170
7182
  }
@@ -7200,7 +7212,7 @@ export declare interface UseDrawReturn {
7200
7212
  /** 清除选中 */
7201
7213
  deselect: () => void;
7202
7214
  /** 设置绘制完成回调 */
7203
- onDraw: (callback: (feature: DrawFeature) => void) => void;
7215
+ onDraw: (callback: (drawType: DrawType, geoJson: GeoJSON.Feature, feature: DrawFeature, wkt: string) => void) => void;
7204
7216
  /** 设置选中回调 */
7205
7217
  onSelect: (callback: (feature: DrawFeature | null) => void) => void;
7206
7218
  }