refactor: add prettier and format

This commit is contained in:
Hufe921
2023-07-18 20:33:59 +08:00
parent 9c2bd33b7a
commit d464c50435
158 changed files with 3749 additions and 2265 deletions
+41 -41
View File
@@ -5,56 +5,56 @@ import { IRow } from './Row'
import { ITd } from './table/Td'
export interface ICurrentPosition {
index: number;
isCheckbox?: boolean;
isControl?: boolean;
isImage?: boolean;
isTable?: boolean;
isDirectHit?: boolean;
trIndex?: number;
tdIndex?: number;
tdValueIndex?: number;
tdId?: string;
trId?: string;
tableId?: string;
zone?: EditorZone;
index: number
isCheckbox?: boolean
isControl?: boolean
isImage?: boolean
isTable?: boolean
isDirectHit?: boolean
trIndex?: number
tdIndex?: number
tdValueIndex?: number
tdId?: string
trId?: string
tableId?: string
zone?: EditorZone
}
export interface IGetPositionByXYPayload {
x: number;
y: number;
isTable?: boolean;
td?: ITd;
tablePosition?: IElementPosition;
elementList?: IElement[];
positionList?: IElementPosition[];
x: number
y: number
isTable?: boolean
td?: ITd
tablePosition?: IElementPosition
elementList?: IElement[]
positionList?: IElementPosition[]
}
export interface IPositionContext {
isTable: boolean;
isCheckbox?: boolean;
isControl?: boolean;
index?: number;
trIndex?: number;
tdIndex?: number;
tdId?: string;
trId?: string;
tableId?: string;
isTable: boolean
isCheckbox?: boolean
isControl?: boolean
index?: number
trIndex?: number
tdIndex?: number
tdId?: string
trId?: string
tableId?: string
}
export interface IComputePageRowPositionPayload {
positionList: IElementPosition[];
rowList: IRow[];
pageNo: number;
startRowIndex: number;
startIndex: number;
startX: number;
startY: number;
innerWidth: number;
positionList: IElementPosition[]
rowList: IRow[]
pageNo: number
startRowIndex: number
startIndex: number
startX: number
startY: number
innerWidth: number
}
export interface IComputePageRowPositionResult {
x: number;
y: number;
index: number;
}
x: number
y: number
index: number
}