feat: add zone attribute to getRangeContext api

This commit is contained in:
Hufe921
2023-12-21 20:56:56 +08:00
parent f73759fdd7
commit 57fdcb8b81
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -1946,13 +1946,16 @@ export class CommandAdapt {
height: lineHeight
})
}
// 区域信息
const zone = this.draw.getZone().getZone()
return deepClone({
isCollapsed,
startElement,
endElement,
startPageNo,
endPageNo,
rangeRects
rangeRects,
zone
})
}
+1
View File
@@ -26,4 +26,5 @@ export type RangeContext = {
startPageNo: number
endPageNo: number
rangeRects: RangeRect[]
zone: EditorZone
}