feat: draw line break marker #520

This commit is contained in:
Hufe921
2024-04-21 20:10:30 +08:00
parent 9144d05adf
commit 4c2b8fc20a
11 changed files with 126 additions and 12 deletions
+1
View File
@@ -32,6 +32,7 @@ export interface IDrawRowPayload {
startIndex: number
innerWidth: number
zone?: EditorZone
isDrawLineBreak?: boolean
}
export interface IDrawFloatPayload {
+2
View File
@@ -13,6 +13,7 @@ import { ICursorOption } from './Cursor'
import { IFooter } from './Footer'
import { IGroup } from './Group'
import { IHeader } from './Header'
import { ILineBreakOption } from './LineBreak'
import { IMargin } from './Margin'
import { IPageBreak } from './PageBreak'
import { IPageNumber } from './PageNumber'
@@ -83,6 +84,7 @@ export interface IEditorOption {
pageBreak?: IPageBreak
zone?: IZoneOption
background?: IBackgroundOption
lineBreak?: ILineBreakOption
}
export interface IEditorResult {
+5
View File
@@ -0,0 +1,5 @@
export interface ILineBreakOption {
disabled?: boolean
color?: string
lineWidth?: number
}
+1
View File
@@ -18,4 +18,5 @@ export interface IRow {
listIndex?: number
offsetX?: number
elementList: IRowElement[]
isWidthNotEnough?: boolean
}