@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.
- package/controls/NodeEvent.d.ts +2 -0
- package/controls/SurfaceView.d.ts +1 -1
- package/index-cjs.js +114 -24
- package/index-cjs.js.map +1 -1
- package/index.js +114 -24
- package/index.js.map +1 -1
- package/med_editor/framework/document-event.d.ts +2 -2
- package/med_editor/framework/element-props.d.ts +1 -1
- package/med_editor/framework/element-util.d.ts +4 -3
- package/med_editor/framework/render-context.d.ts +4 -0
- package/med_editor/texteditor.d.ts +5 -0
- package/package.json +1 -1
@@ -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
|
-
|
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
|
-
|
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
|