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 zone = this.draw.getZone().getZone()
|
||||||
|
// 表格信息
|
||||||
|
const isTable = this.position.getPositionContext().isTable
|
||||||
return deepClone({
|
return deepClone({
|
||||||
isCollapsed,
|
isCollapsed,
|
||||||
startElement,
|
startElement,
|
||||||
@@ -2132,7 +2134,8 @@ export class CommandAdapt {
|
|||||||
startPageNo,
|
startPageNo,
|
||||||
endPageNo,
|
endPageNo,
|
||||||
rangeRects,
|
rangeRects,
|
||||||
zone
|
zone,
|
||||||
|
isTable
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,4 +27,5 @@ export type RangeContext = {
|
|||||||
endPageNo: number
|
endPageNo: number
|
||||||
rangeRects: RangeRect[]
|
rangeRects: RangeRect[]
|
||||||
zone: EditorZone
|
zone: EditorZone
|
||||||
|
isTable: boolean
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user