feat: add page footer

This commit is contained in:
Hufe921
2023-03-25 19:41:16 +08:00
committed by Hufe
parent 36f3bb42ce
commit 21626cc41b
18 changed files with 331 additions and 106 deletions
+2
View File
@@ -3,6 +3,7 @@ import { EditorMode, PageMode, PaperDirection } from '../dataset/enum/Editor'
import { ICheckboxOption } from './Checkbox'
import { IControlOption } from './Control'
import { ICursorOption } from './Cursor'
import { IFooter } from './Footer'
import { IHeader } from './Header'
import { IMargin } from './Margin'
import { IPageNumber } from './PageNumber'
@@ -49,6 +50,7 @@ export interface IEditorOption {
paperDirection?: PaperDirection;
inactiveAlpha?: number;
header?: IHeader;
footer?: IFooter;
pageNumber?: IPageNumber;
watermark?: IWatermark;
control?: IControlOption;
+6
View File
@@ -0,0 +1,6 @@
import { MaxHeightRatio } from '../dataset/enum/Common'
export interface IFooter {
bottom?: number;
maxHeightRadio?: MaxHeightRatio;
}
+2 -2
View File
@@ -1,6 +1,6 @@
import { HeaderMaxHeightRatio } from '../dataset/enum/Header'
import { MaxHeightRatio } from '../dataset/enum/Common'
export interface IHeader {
top?: number;
maxHeightRadio?: HeaderMaxHeightRatio;
maxHeightRadio?: MaxHeightRatio;
}