gis-common 5.1.20 → 5.1.21

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
@@ -1407,6 +1407,21 @@ export declare interface SuperArray<T = any> extends Array<T> {
1407
1407
  remove(f: (d: T) => any): SuperArray<T>;
1408
1408
  }
1409
1409
 
1410
+ export declare class SvgLoader {
1411
+ cache: Map<string, any>;
1412
+ defaultOptions: {
1413
+ useCache: boolean;
1414
+ clearContainer: boolean;
1415
+ addClasses: string[];
1416
+ onLoad: ((svgElement: Element, url: string) => void) | null;
1417
+ onError: ((error: Error, url: string) => void) | null;
1418
+ };
1419
+ constructor(options?: {});
1420
+ load(url: string, container: HTMLElement): Promise<any>;
1421
+ _insertSVG(svgElement: HTMLElement, container: HTMLElement): void;
1422
+ clearCache(): void;
1423
+ }
1424
+
1410
1425
  declare interface TreeNode {
1411
1426
  id: string;
1412
1427
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gis-common",
3
- "version": "5.1.20",
3
+ "version": "5.1.21",
4
4
  "author": "Guo.Yan <luv02@vip.qq.com>",
5
5
  "license": "MIT",
6
6
  "private": false,