@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.
@@ -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";
@@ -15,4 +15,5 @@
15
15
  */
16
16
  export * from './const';
17
17
  export * from './extension-names';
18
+ export * from './page-size';
18
19
  export * from './theme-color-map';
@@ -0,0 +1,3 @@
1
+ import { ISize } from '../../shared';
2
+ import { PaperType } from '../interfaces';
3
+ export declare const PAGE_SIZE: Record<PaperType, Required<ISize>>;
@@ -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[];