feat: add isTable property to the RangeContext interface

This commit is contained in:
Hufe921
2024-04-01 21:37:13 +08:00
parent 1df98b9359
commit 9ad991a393
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -2125,6 +2125,8 @@ export class CommandAdapt {
}
// 区域信息
const zone = this.draw.getZone().getZone()
// 表格信息
const isTable = this.position.getPositionContext().isTable
return deepClone({
isCollapsed,
startElement,
@@ -2132,7 +2134,8 @@ export class CommandAdapt {
startPageNo,
endPageNo,
rangeRects,
zone
zone,
isTable
})
}
+1
View File
@@ -27,4 +27,5 @@ export type RangeContext = {
endPageNo: number
rangeRects: RangeRect[]
zone: EditorZone
isTable: boolean
}