feat: add background image option

This commit is contained in:
Hufe921
2024-01-10 21:25:27 +08:00
parent 3253f3708e
commit eadf7f6e49
8 changed files with 138 additions and 11 deletions
+8
View File
@@ -0,0 +1,8 @@
import { BackgroundRepeat, BackgroundSize } from '../dataset/enum/Background'
export interface IBackgroundOption {
color?: string
image?: string
size?: BackgroundSize
repeat?: BackgroundRepeat
}
+2 -1
View File
@@ -5,6 +5,7 @@ import {
PaperDirection,
WordBreak
} from '../dataset/enum/Editor'
import { IBackgroundOption } from './Background'
import { ICheckboxOption } from './Checkbox'
import { IPadding } from './Common'
import { IControlOption } from './Control'
@@ -40,7 +41,6 @@ export interface IEditorOption {
height?: number
scale?: number
pageGap?: number
backgroundColor?: string
underlineColor?: string
strikeoutColor?: string
rangeColor?: string
@@ -81,6 +81,7 @@ export interface IEditorOption {
group?: IGroup
pageBreak?: IPageBreak
zone?: IZoneOption
background?: IBackgroundOption
}
export interface IEditorResult {