@hailin-zheng/editor-core 2.0.29 → 2.0.31

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.
@@ -394,7 +394,7 @@ export declare class ElementUtil {
394
394
  static getRectPath(x: number, y: number, width: number, height: number): string;
395
395
  static getFillSvgPath(pathPoints: Array<Position> | string, fill: string, width: number): any;
396
396
  static getFillSvgRect(x: number, y: number, width: number, height: number, fill: string): any;
397
- static getMousePos(e: MouseEvent): Position;
397
+ static getMousePos(e: MouseEvent, scale?: number): Position;
398
398
  static createClipPath(id: string, width: number, height: number, x?: number, y?: number): any;
399
399
  /**
400
400
  * 判断是否光标可以设置接受编辑
@@ -7,7 +7,7 @@ export declare class DataElementDate extends DataElementInlineGroup<DataEleDateP
7
7
  createRenderObject(): RenderObject;
8
8
  serialize(viewOptions: ViewOptions): SerializeProps & any;
9
9
  clone(data: boolean): DataElementDate;
10
- setValue(val: Date | string): void;
10
+ setValue(val: Date | string | null): void;
11
11
  isValid(val: any): boolean;
12
12
  getValue(): string;
13
13
  validate(): string;
@@ -7,7 +7,7 @@ export declare class DataElementList extends DataElementInlineGroup<DataEleListP
7
7
  createRenderObject(): RenderObject;
8
8
  serialize(viewOptions: ViewOptions): SerializeProps & any;
9
9
  clone(data: boolean): DataElementList;
10
- setValue(vals: string[] | string): void;
10
+ setValue(vals: string[] | string | null): void;
11
11
  getValue(): string;
12
12
  }
13
13
  export declare class DataElementListRenderObject extends DataElementRenderObject<DataElementList> {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "hailin-zheng",
5
5
  "private": false,
6
6
  "license": "ISC",
7
- "version": "2.0.29",
7
+ "version": "2.0.31",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "bwip-js": "^3.0.5",