gis-common 5.1.19 → 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
@@ -659,18 +659,18 @@ export declare enum EventType {
659
659
  }
660
660
 
661
661
  export declare const ExceptionUtil: {
662
- getException(type: string, message: string): any;
663
- throwException(msg: string): never;
664
- throwColorException(msg: string): never;
665
- throwCoordinateException(msg: string): never;
666
- throwGeoJsonException(msg: string): never;
667
- throwEmptyException(msg: string): never;
668
- throwIntegerException(msg: string): never;
669
- throwNumberException(msg: string): never;
670
- throwArrayException(msg: string): never;
671
- throwFunctionException(msg: string): never;
672
- throwProcessException(msg: string): never;
673
- throwNetworkException(msg: string): never;
662
+ getException(type: string, message?: string): any;
663
+ throwException(msg?: string): never;
664
+ throwColorException(msg?: string): never;
665
+ throwCoordinateException(msg?: string): never;
666
+ throwGeoJsonException(msg?: string): never;
667
+ throwEmptyException(msg?: string): never;
668
+ throwIntegerException(msg?: string): never;
669
+ throwNumberException(msg?: string): never;
670
+ throwArrayException(msg?: string): never;
671
+ throwFunctionException(msg?: string): never;
672
+ throwProcessException(msg?: string): never;
673
+ throwNetworkException(msg?: string): never;
674
674
  };
675
675
 
676
676
  export declare const FileUtil: {
@@ -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.19",
3
+ "version": "5.1.21",
4
4
  "author": "Guo.Yan <luv02@vip.qq.com>",
5
5
  "license": "MIT",
6
6
  "private": false,