improve:position compute separate from draw row

This commit is contained in:
Hufe921
2023-02-28 15:58:42 +08:00
parent fcb96a6f56
commit 8910c7cf0a
12 changed files with 235 additions and 131 deletions
+17
View File
@@ -1,5 +1,6 @@
import { IElement } from '..'
import { IElementPosition } from './Element'
import { IRow } from './Row'
import { ITd } from './table/Td'
export interface ICurrentPosition {
@@ -37,4 +38,20 @@ export interface IPositionContext {
tdId?: string;
trId?: string;
tableId?: string;
}
export interface IComputePageRowPositionPayload {
positionList: IElementPosition[];
rowList: IRow[];
pageNo: number;
startIndex: number;
startX: number;
startY: number;
innerWidth: number;
}
export interface IComputePageRowPositionResult {
x: number;
y: number;
index: number;
}