feat: add isTable property to the RangeContext interface
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -27,4 +27,5 @@ export type RangeContext = {
|
||||
endPageNo: number
|
||||
rangeRects: RangeRect[]
|
||||
zone: EditorZone
|
||||
isTable: boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user