@hailin-zheng/editor-core 1.1.11 → 1.1.13

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.
@@ -216,10 +216,10 @@ export declare class DocumentEvent {
216
216
  private isLeafEleEndOffset;
217
217
  /**
218
218
  * 获取点击的文档区域
219
- * @param docRender
220
- * @param pos
221
219
  * @returns
220
+ * @param docEvent
222
221
  */
223
222
  getHitRegion(docEvent: MouseElementEvent): HitRegion | null;
223
+ private onKeydown;
224
224
  }
225
225
  export {};
@@ -105,7 +105,7 @@ export declare type TableAlignment = 'start' | 'end' | 'center';
105
105
  export declare class TableProps extends INotifyPropertyChanged {
106
106
  id: string;
107
107
  cols: Array<number>;
108
- alignment: TableAlignment;
108
+ align: TableAlignment;
109
109
  border: 'all' | 'none' | 'dashed';
110
110
  allowBreakRow: boolean;
111
111
  clone(dest: TableProps): TableProps;
@@ -67,11 +67,12 @@ export declare class ElementUtil {
67
67
  */
68
68
  private static measureCellVAlign;
69
69
  /**
70
- * 设置表格横向排列方式
71
- * @param tbRender
70
+ * 设置原色横向排列方式
72
71
  * @private
72
+ * @param render
73
+ * @param limitRect
73
74
  */
74
- private static setTableAlign;
75
+ static setHorizontalAlign(render: RenderObject, limitRect: Rect): void;
75
76
  /**
76
77
  * 重新测量合并单元格高度
77
78
  * @param tbRender
@@ -60,6 +60,10 @@ export declare class PaintContent {
60
60
  width: number;
61
61
  height: number;
62
62
  };
63
+ measureText2(text: string, font: {
64
+ fontSize: number;
65
+ fontName: string;
66
+ }): number;
63
67
  measureTextUnits(units: Array<TextUnits>, textProps: TextProps): void;
64
68
  clearRect(x: number, y: number, width: number, height: number): void;
65
69
  save(): void;
@@ -250,6 +250,11 @@ export declare class CanvasTextEditor extends AbsolutePanel {
250
250
  switchFullViewPage(): void;
251
251
  getSelectedJSON(): string;
252
252
  getSelectedText(): string;
253
+ /**
254
+ * 执行编辑器内部复制事件
255
+ * @param evt
256
+ */
257
+ execCopy(evt: ClipboardEvent): void;
253
258
  /**
254
259
  * 设置纸张方向
255
260
  * @param orientation
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "hailin-zheng",
5
5
  "private": false,
6
6
  "license": "ISC",
7
- "version": "1.1.11",
7
+ "version": "1.1.13",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "bwip-js": "^3.0.5",