gis-common 5.1.14 → 5.1.16

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/types.d.ts CHANGED
@@ -88,14 +88,14 @@ export interface CanvasStyle {
88
88
  lineWidth: number;
89
89
  }
90
90
  export interface SuperArray<T = any> extends Array<T> {
91
- desc(f: (d: T) => any): SuperArray<T>;
92
- asc(f: (d: T) => any): SuperArray<T>;
91
+ desc(f?: (d: T) => any): SuperArray<T>;
92
+ asc(f?: (d: T) => any): SuperArray<T>;
93
93
  groupBy(f: (d: T) => any): SuperArray<T>;
94
- distinct(f: (d: T) => any): SuperArray<T>;
95
- max(f: (d: T) => any): T;
96
- min(f: (d: T) => any): T;
97
- sum(f: (d: T) => any): number;
98
- avg(f: (d: T) => any): number;
94
+ distinct(f?: (d: T) => any): SuperArray<T>;
95
+ max(f?: (d: T) => any): T;
96
+ min(f?: (d: T) => any): T;
97
+ sum(f?: (d: T) => any): number;
98
+ avg(f?: (d: T) => any): number;
99
99
  random(): SuperArray<T>;
100
100
  remove(f: (d: T) => any): SuperArray<T>;
101
101
  }
@@ -21,7 +21,7 @@ declare const _default: {
21
21
  * @param saveName 下载后文件的保存名称
22
22
  */
23
23
  downloadFromFile(data: string[] | BlobPart | MediaSource, saveName: string): void;
24
- readFile(file: File, resolver?: "arrayBuffer" | "text"): Promise<unknown>;
24
+ readFile(file: File | Blob, resolver?: "arrayBuffer" | "text"): Promise<unknown>;
25
25
  /**
26
26
  * 获取远程文件并读取
27
27
  * @param url 远程文件地址
@@ -2,6 +2,7 @@ import { CanvasStyle } from '../types';
2
2
  type CanvasStylePartial = Partial<CanvasStyle>;
3
3
  declare const _default: {
4
4
  emptyImageUrl: string;
5
+ transparentImageUrl: string;
5
6
  createCircle(radius: number, options?: CanvasStylePartial): string;
6
7
  createRectangle(width: number, height: number, options?: CanvasStylePartial): string;
7
8
  /**
@@ -6,12 +6,11 @@ interface VoiceOptions {
6
6
  }
7
7
  type MessageType = 'warning' | 'info' | 'success' | 'error';
8
8
  export default class MessageUtil {
9
+ static LANG: string;
9
10
  private static warned;
10
- private static isMute;
11
11
  private static speechSynthesis;
12
12
  private static speechSynthesisUtterance;
13
13
  static resetWarned(): void;
14
- static changeVoice(): void;
15
14
  private static _call;
16
15
  /**
17
16
  * 播放消息提示音和文字朗读(语音需要有交互)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gis-common",
3
- "version": "5.1.14",
3
+ "version": "5.1.16",
4
4
  "author": "Guo.Yan <luv02@vip.qq.com>",
5
5
  "license": "MIT",
6
6
  "private": false,