@hufe921/canvas-editor
Version:
rich text editor by canvas/svg
26 lines (25 loc) • 680 B
TypeScript
import { EditorContext } from '../dataset/enum/Editor';
import { IElementPosition } from './Element';
import { IRange } from './Range';
export interface ISearchResultBasic {
type: EditorContext;
index: number;
groupId: string;
}
export interface ISearchResultRestArgs {
tableId?: string;
tableIndex?: number;
trIndex?: number;
tdIndex?: number;
tdId?: string;
startIndex?: number;
}
export type ISearchResult = ISearchResultBasic & ISearchResultRestArgs;
export interface ISearchResultContext {
range: IRange;
startPosition: IElementPosition;
endPosition: IElementPosition;
}
export interface IReplaceOption {
index?: number;
}