Skip to content

Commit

Permalink
feat: add zone attribute to getRangeContext api
Browse files Browse the repository at this point in the history
  • Loading branch information
Hufe921 committed Dec 21, 2023
1 parent f73759f commit 57fdcb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/editor/core/command/CommandAdapt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
}

Expand Down
1 change: 1 addition & 0 deletions src/editor/interface/Range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ export type RangeContext = {
startPageNo: number
endPageNo: number
rangeRects: RangeRect[]
zone: EditorZone
}

0 comments on commit 57fdcb8

Please sign in to comment.