@hailin-zheng/editor-core 2.0.22 → 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.
@@ -294,6 +294,7 @@ export declare class DocEditor {
294
294
  * @param element
295
295
  */
296
296
  bringToView(element: Element): void;
297
+ scrollToPosition(pos: Position): void;
297
298
  /**
298
299
  * 设置当前文档页边距
299
300
  */
@@ -257,6 +257,6 @@ export declare class DocumentEvent {
257
257
  * 获取当前光标所在的数据元
258
258
  * @returns
259
259
  */
260
- getCurrentDataElement(): DataElementInlineGroup | DataElementLeaf | null;
260
+ getCurrentDataElement(mode?: 'strict' | 'free'): DataElementInlineGroup | DataElementLeaf | null;
261
261
  }
262
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.22",
7
+ "version": "2.0.23",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "bwip-js": "^3.0.5",