@worktile/theia 1.2.15 → 1.2.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "1.2.15",
3
+ "version": "1.2.16",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -2,6 +2,7 @@ import { Editor, NodeEntry, Path, Range } from 'slate';
2
2
  import { TableOptions } from './table.types';
3
3
  import { Alignment, VerticalAlignment } from '../../constants/node-types';
4
4
  import { TheEditor } from '../../interfaces';
5
+ import { TableElement } from '../../custom-types';
5
6
  export declare const TableEditor: {
6
7
  insertTable(editor: Editor, optionsParam?: TableOptions): void;
7
8
  insertColumn(editor: Editor, count?: number, at?: number, optionsParam?: TableOptions): void;
@@ -20,4 +21,5 @@ export declare const TableEditor: {
20
21
  clearMark(editor: TheEditor): boolean;
21
22
  handleSelectedCells(editor: TheEditor, handle: (cellPath: Path, cellRange: Range) => void): boolean;
22
23
  isActiveHeader(editor: TheEditor): boolean;
24
+ selectOriginCell(editor: TheEditor, table: TableElement, rowIndex: number, columnIndex: number, isStart: boolean): void;
23
25
  };
@@ -7,5 +7,5 @@ export interface CellRect {
7
7
  }
8
8
  export declare function calcSpanForRow(table: TableElement, targetIndex: number): boolean[];
9
9
  export declare function calcSpanForColumn(table: TableElement, targetIndex: number): boolean[];
10
- export declare function calcOriginSpan(table: TableElement, targetRowIndex: number, targetColumnIndex: number): TableCellElement;
10
+ export declare function getOriginCell(table: TableElement, targetRowIndex: number, targetColumnIndex: number): TableCellElement;
11
11
  export declare function isInside(cellRect: CellRect, rowIndex: number, columnIndex: number): boolean;