@hailin-zheng/editor-core 2.0.21 → 2.0.23

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.
@@ -128,6 +128,10 @@ export declare class DocEditor {
128
128
  * @returns
129
129
  */
130
130
  getCurrentDataElement(): DataElementInlineGroup | DataElementLeaf | null;
131
+ /**
132
+ * 移动光标到下一个数据元素上
133
+ */
134
+ moveFocusToNextDataElement(): void;
131
135
  /**
132
136
  * 设置当前光标所在的数据元的值
133
137
  * @param val
@@ -290,6 +294,7 @@ export declare class DocEditor {
290
294
  * @param element
291
295
  */
292
296
  bringToView(element: Element): void;
297
+ scrollToPosition(pos: Position): void;
293
298
  /**
294
299
  * 设置当前文档页边距
295
300
  */
@@ -2,7 +2,7 @@ import { DocumentPaint } from "./document-paint";
2
2
  import { SelectionState } from "./document-selection";
3
3
  import { Element, ICancelTokenFn, LeafElement, Position, Rect, ViewOptions } from "./element-define";
4
4
  import { ElementEvent, EventStage, EventTypes, HitEventInfo, HitRegion, ITrackTips, MouseElementEvent } from "./element-event-define";
5
- import { DocumentRenderObject } from "./impl";
5
+ import { DataElementInlineGroup, DataElementLeaf, DocumentRenderObject } from "./impl";
6
6
  import { BorderType, CursorType, RenderObject } from "./render-define";
7
7
  import { EditorContext } from "./document-context";
8
8
  import { Subject, Subscription } from "./event-subject";
@@ -216,6 +216,10 @@ export declare class DocumentEvent {
216
216
  * @private
217
217
  */
218
218
  private moveCursorToLeftHandle;
219
+ /**
220
+ * 移动光标到下一个数据元素上
221
+ */
222
+ moveFocusToNextDataElement(): void;
219
223
  /**
220
224
  * 向右移动光标
221
225
  */
@@ -249,5 +253,10 @@ export declare class DocumentEvent {
249
253
  * 处理三击事件
250
254
  */
251
255
  handleTripleClick(): void;
256
+ /**
257
+ * 获取当前光标所在的数据元
258
+ * @returns
259
+ */
260
+ getCurrentDataElement(mode?: 'strict' | 'free'): DataElementInlineGroup | DataElementLeaf | null;
252
261
  }
253
262
  export {};
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.21",
7
+ "version": "2.0.23",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "bwip-js": "^3.0.5",