ht-emr 0.7.60 → 0.7.62
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/canvas-editor.js +5570 -5415
- package/dist/canvas-editor.umd.cjs +91 -91
- package/dist/src/editor/core/draw/Draw.d.ts +21 -1
- package/dist/src/editor/core/draw/particle/MacroParticle.d.ts +2 -0
- package/dist/src/editor/core/event/CanvasEvent.d.ts +1 -0
- package/dist/src/editor/core/history/HistoryManager.d.ts +1 -0
- package/dist/src/editor/core/position/Position.d.ts +1 -1
- package/dist/src/editor/interface/Draw.d.ts +3 -0
- package/package.json +1 -1
|
@@ -76,6 +76,17 @@ export declare class Draw {
|
|
|
76
76
|
private pendingRenderFrameId;
|
|
77
77
|
/** 合并渲染帧使用的最新参数 */
|
|
78
78
|
private pendingRenderOption;
|
|
79
|
+
/** 连续录入停止后再生成的历史快照 */
|
|
80
|
+
private pendingHistoryTimerId;
|
|
81
|
+
private pendingHistoryCurIndex;
|
|
82
|
+
/** 连续录入期间合并的内容变更通知 */
|
|
83
|
+
private pendingContentChangeTimerId;
|
|
84
|
+
/** 排版测量复用的 Canvas 上下文 */
|
|
85
|
+
private layoutContext;
|
|
86
|
+
/** 文档特性缓存,用于决定可否走增量布局 */
|
|
87
|
+
private hasSubTemplateElement;
|
|
88
|
+
private hasAreaElement;
|
|
89
|
+
private hasComplexIncrementalLayout;
|
|
79
90
|
/** 页面像素比(用于高清屏适配) */
|
|
80
91
|
private pagePixelRatio;
|
|
81
92
|
/** 编辑器模式 */
|
|
@@ -581,6 +592,12 @@ export declare class Draw {
|
|
|
581
592
|
flushPendingRender(): void;
|
|
582
593
|
private _takePendingRenderOption;
|
|
583
594
|
private _cancelPendingRender;
|
|
595
|
+
private _scheduleHistory;
|
|
596
|
+
flushPendingHistory(): void;
|
|
597
|
+
cancelPendingHistory(): void;
|
|
598
|
+
hasPendingHistory(): boolean;
|
|
599
|
+
private _emitContentChange;
|
|
600
|
+
private _scheduleContentChange;
|
|
584
601
|
/**
|
|
585
602
|
* 获取Canvas页面元素
|
|
586
603
|
* @param pageNo - 页码,-1表示当前页
|
|
@@ -830,6 +847,8 @@ export declare class Draw {
|
|
|
830
847
|
getValue(options?: IGetValueOption): IEditorResult;
|
|
831
848
|
setValue(payload: Partial<IEditorData>, options?: ISetValueOption): void;
|
|
832
849
|
setEditorData(payload: Partial<Omit<IEditorData, 'graffiti'>>): void;
|
|
850
|
+
private _refreshDocumentFeatureFlags;
|
|
851
|
+
private _markDocumentFeatureFlags;
|
|
833
852
|
private _wrapContainer;
|
|
834
853
|
private _formatContainer;
|
|
835
854
|
private _createPageContainer;
|
|
@@ -855,6 +874,7 @@ export declare class Draw {
|
|
|
855
874
|
private _disconnectLazyRender;
|
|
856
875
|
private _lazyRender;
|
|
857
876
|
private _immediateRender;
|
|
877
|
+
private _computeIncrementalMainRowList;
|
|
858
878
|
/**
|
|
859
879
|
* 渲染编辑器
|
|
860
880
|
*
|
|
@@ -877,7 +897,7 @@ export declare class Draw {
|
|
|
877
897
|
private getInlineBackgroundControlType;
|
|
878
898
|
private getIsHideInlineBackgroundControlCursor;
|
|
879
899
|
setCursor(curIndex: number | undefined): number | undefined;
|
|
880
|
-
submitHistory(curIndex: number | undefined): void;
|
|
900
|
+
submitHistory(curIndex: number | undefined, isLightweight?: boolean): void;
|
|
881
901
|
destroy(): void;
|
|
882
902
|
clearSideEffect(): void;
|
|
883
903
|
updateTableTool(): void;
|
|
@@ -9,6 +9,7 @@ export declare class MacroParticle {
|
|
|
9
9
|
private options;
|
|
10
10
|
private draw;
|
|
11
11
|
private activeInlineEditor;
|
|
12
|
+
private pendingInlineCursorFrameId;
|
|
12
13
|
constructor(draw: Draw);
|
|
13
14
|
/**
|
|
14
15
|
* 渲染宏元素
|
|
@@ -59,6 +60,7 @@ export declare class MacroParticle {
|
|
|
59
60
|
private _getCursorOffset;
|
|
60
61
|
private _focusInputAgent;
|
|
61
62
|
private _renderActiveEditor;
|
|
63
|
+
private _cancelPendingInlineCursorSync;
|
|
62
64
|
private _syncInlineCursor;
|
|
63
65
|
private _renderTextSelection;
|
|
64
66
|
private _getMacroLineHeight;
|
|
@@ -5,6 +5,9 @@ import { IRow } from './Row';
|
|
|
5
5
|
import { ITd } from './table/Td';
|
|
6
6
|
export interface IDrawOption {
|
|
7
7
|
curIndex?: number;
|
|
8
|
+
layoutStartIndex?: number;
|
|
9
|
+
isInputHistory?: boolean;
|
|
10
|
+
isDeferredRender?: boolean;
|
|
8
11
|
isSetCursor?: boolean;
|
|
9
12
|
isSubmitHistory?: boolean;
|
|
10
13
|
isCompute?: boolean;
|