@univerjs/core 0.6.10 → 0.7.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +8 -8
- package/lib/es/index.js +4611 -4535
- package/lib/index.js +4611 -4535
- package/lib/types/docs/data-model/document-data-model.d.ts +1 -0
- package/lib/types/services/theme/theme.service.d.ts +4 -0
- package/lib/types/types/const/const.d.ts +1 -0
- package/lib/types/types/const/index.d.ts +1 -0
- package/lib/types/types/const/page-size.d.ts +3 -0
- package/lib/types/types/interfaces/i-document-data.d.ts +14 -0
- package/lib/umd/index.js +8 -8
- package/package.json +6 -6
|
@@ -36,6 +36,7 @@ declare class DocumentDataModelSimple extends UnitModel<IDocumentData, UniverIns
|
|
|
36
36
|
getBulletPresetList(): Record<string, IListData>;
|
|
37
37
|
updateDocumentId(unitId: string): void;
|
|
38
38
|
updateDocumentRenderConfig(config: IDocumentRenderConfig): void;
|
|
39
|
+
getDocumentStyle(): IDocumentStyle;
|
|
39
40
|
updateDocumentStyle(config: IDocumentStyle): void;
|
|
40
41
|
updateDocumentDataMargin(data: IPaddingData): void;
|
|
41
42
|
updateDocumentDataPageSize(width?: number, height?: number): void;
|
|
@@ -4,10 +4,14 @@ export interface IStyleSheet {
|
|
|
4
4
|
[key: string]: string;
|
|
5
5
|
}
|
|
6
6
|
export declare class ThemeService extends Disposable {
|
|
7
|
+
private _darkMode;
|
|
8
|
+
private readonly _darkMode$;
|
|
9
|
+
readonly darkMode$: Observable<boolean>;
|
|
7
10
|
private _currentTheme;
|
|
8
11
|
private readonly _currentTheme$;
|
|
9
12
|
readonly currentTheme$: Observable<IStyleSheet>;
|
|
10
13
|
constructor();
|
|
11
14
|
getCurrentTheme(): IStyleSheet;
|
|
12
15
|
setTheme(theme: IStyleSheet): void;
|
|
16
|
+
setDarkMode(darkMode: boolean): void;
|
|
13
17
|
}
|
|
@@ -151,3 +151,4 @@ export declare const SHEET_EDITOR_UNITS: string[];
|
|
|
151
151
|
export declare const NAMED_STYLE_MAP: Record<NamedStyleType, Nullable<ITextStyle>>;
|
|
152
152
|
export declare const NAMED_STYLE_SPACE_MAP: Record<NamedStyleType, Nullable<IParagraphStyle>>;
|
|
153
153
|
export declare const PRINT_CHART_COMPONENT_KEY = "univer-sheets-chart-print-chart";
|
|
154
|
+
export declare const DOC_DRAWING_PRINTING_COMPONENT_KEY = "univer-docs-drawing-printing";
|
|
@@ -841,3 +841,17 @@ export declare enum PageOrientType {
|
|
|
841
841
|
PORTRAIT = 0,
|
|
842
842
|
LANDSCAPE = 1
|
|
843
843
|
}
|
|
844
|
+
export declare enum PaperType {
|
|
845
|
+
Letter = "Letter",
|
|
846
|
+
Tabloid = "Tabloid",
|
|
847
|
+
Legal = "Legal",
|
|
848
|
+
Statement = "Statement",
|
|
849
|
+
Executive = "Executive",
|
|
850
|
+
Folio = "Folio",
|
|
851
|
+
A3 = "A3",
|
|
852
|
+
A4 = "A4",
|
|
853
|
+
A5 = "A5",
|
|
854
|
+
B4 = "B4",
|
|
855
|
+
B5 = "B5"
|
|
856
|
+
}
|
|
857
|
+
export declare const PAPER_TYPES: PaperType[];
|