feat: add background image option
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { IBackgroundOption } from '../../interface/Background'
|
||||
import { BackgroundRepeat, BackgroundSize } from '../enum/Background'
|
||||
|
||||
export const defaultBackground: Readonly<Required<IBackgroundOption>> = {
|
||||
color: '#FFFFFF',
|
||||
image: '',
|
||||
size: BackgroundSize.COVER,
|
||||
repeat: BackgroundRepeat.NO_REPEAT
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
export enum BackgroundSize {
|
||||
CONTAIN = 'contain',
|
||||
COVER = 'cover'
|
||||
}
|
||||
|
||||
export enum BackgroundRepeat {
|
||||
REPEAT = 'repeat',
|
||||
NO_REPEAT = 'no-repeat',
|
||||
REPEAT_X = 'repeat-x',
|
||||
REPEAT_Y = 'repeat-y'
|
||||
}
|
||||
Reference in New Issue
Block a user