import type { Editor } from '../Editor'; import Controller from './Controller'; import type { Document, TableService, ContentService, IRange, SelectionService } from '@fast-editor/core'; export default class TableController extends Controller { private contentService; private selectionService; private tableService; private cellTop; private cellBottom; private cellLeft; private cellRight; private rowResizeLine; private colResizeLine; private currentTable; private currentRow; private currentCell; private currentBorder; private currentTableAbsPos; private currentCellAbsPos; private startMousePosX; private startMousePosY; private startLinePosX; private startLinePosY; private startColWidth; private startRowHeight; private startTableWidth; constructor(editor: Editor, doc: Document, contentService: ContentService, selectionService: SelectionService, tableService: TableService); reset(): void; insertTable(range: IRange[], rowCount?: number, colCount?: number): void; private initToolbarDom; private initEventListener; private startDrag; private setResizeLinePos; private onEnterCell; private onLeaveCell; private onMouseMove; private onMouseUp; }