@a3s-lab/office 0.1.0 → 0.2.2
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/README.md +101 -24
- package/dist/0~2582.js +485 -0
- package/dist/0~4595.js +14 -7
- package/dist/0~4750.js +939 -0
- package/dist/{0~work-document-paragraph-formatting.js → 0~5861.js} +174 -3
- package/dist/0~7048.js +8 -6
- package/dist/0~9512.js +7 -4
- package/dist/0~document-editor.js +3147 -531
- package/dist/0~markdown-editor.js +26 -1
- package/dist/0~presentation-editor.js +68 -12
- package/dist/0~spreadsheet-editor.js +37 -17
- package/dist/0~work-document-extensions.js +588 -13
- package/dist/0~work-document-model-codec.js +1 -1
- package/dist/0~work-docx-bibliography.js +1 -1
- package/dist/0~work-docx-export.js +116 -55
- package/dist/0~work-docx-import.js +766 -107
- package/dist/0~work-office-diagnostics.js +2 -2
- package/dist/{4704.js → 2881.js} +162 -71
- package/dist/4104.js +2 -62
- package/dist/internal/features/work/editors/document-comment-window.d.ts +37 -0
- package/dist/internal/features/work/editors/document-navigation-panel.d.ts +3 -1
- package/dist/internal/features/work/editors/document-navigation-window.d.ts +64 -0
- package/dist/internal/features/work/editors/document-outline-navigation.d.ts +11 -0
- package/dist/internal/features/work/editors/document-page-navigation.d.ts +11 -1
- package/dist/internal/features/work/editors/document-page-thumbnail.d.ts +31 -0
- package/dist/internal/features/work/editors/document-picture-properties-dialog-model.d.ts +28 -0
- package/dist/internal/features/work/editors/document-picture-properties-dialog.d.ts +4 -0
- package/dist/internal/features/work/editors/document-search-navigation.d.ts +12 -0
- package/dist/internal/features/work/editors/document-table-margins-popover.d.ts +4 -0
- package/dist/internal/features/work/editors/document-table-properties-dialog-model.d.ts +51 -0
- package/dist/internal/features/work/editors/document-table-properties-dialog-sections.d.ts +19 -0
- package/dist/internal/features/work/editors/document-table-properties-dialog.d.ts +8 -0
- package/dist/internal/features/work/editors/office-task-pane.d.ts +1 -1
- package/dist/internal/features/work/editors/presentation-chart-panel.d.ts +2 -1
- package/dist/internal/features/work/editors/presentation-comments-panel.d.ts +2 -1
- package/dist/internal/features/work/editors/spreadsheet-workbook-panel.d.ts +2 -1
- package/dist/internal/features/work/editors/use-document-pagination.d.ts +6 -0
- package/dist/internal/features/work/editors/use-presentation-review-commands.d.ts +1 -1
- package/dist/internal/features/work/work-document-image-layout.d.ts +11 -0
- package/dist/internal/features/work/work-document-page-capture.d.ts +15 -0
- package/dist/internal/features/work/work-document-paragraph-formatting.d.ts +4 -0
- package/dist/internal/features/work/work-document-section.d.ts +3 -1
- package/dist/internal/features/work/work-document-table-borders.d.ts +20 -0
- package/dist/internal/features/work/work-document-table-cell-formatting.d.ts +8 -5
- package/dist/internal/features/work/work-document-table-geometry.d.ts +41 -0
- package/dist/internal/features/work/work-document-table-property-changes.d.ts +25 -0
- package/dist/internal/features/work/work-document-table-sizing.d.ts +15 -2
- package/dist/internal/features/work/work-document-word-line-metrics.d.ts +11 -0
- package/dist/internal/features/work/work-docx-document-layout.d.ts +2 -0
- package/dist/internal/features/work/work-docx-paragraph-alignment-import.d.ts +2 -1
- package/dist/internal/features/work/work-docx-paragraph-direction-import.d.ts +2 -1
- package/dist/internal/features/work/work-docx-paragraph-indent-import.d.ts +2 -1
- package/dist/internal/features/work/work-docx-paragraph-pagination-import.d.ts +2 -1
- package/dist/internal/features/work/work-docx-paragraph-spacing-import.d.ts +3 -2
- package/dist/internal/features/work/work-docx-paragraph-styles.d.ts +2 -2
- package/dist/internal/features/work/work-docx-run-formatting-import.d.ts +8 -1
- package/dist/internal/features/work/work-docx-tab-stop-import.d.ts +2 -1
- package/dist/internal/features/work/work-docx-table-cell-export.d.ts +1 -1
- package/dist/internal/features/work/work-docx-table-cell-import.d.ts +14 -4
- package/dist/internal/features/work/work-docx-table-sizing-export.d.ts +1 -1
- package/dist/internal/features/work/work-docx-table-sizing-import.d.ts +4 -3
- package/dist/internal/features/work/work-docx-table-styles.d.ts +22 -0
- package/dist/internal/features/work/work-types.d.ts +6 -0
- package/dist/office-kernel.wasm +0 -0
- package/dist/styles.css +1288 -233
- package/docs/{browser-editor-architecture.md → latest/en/browser-editor-architecture.md} +144 -35
- package/package.json +9 -5
- package/dist/0~6552.js +0 -787
- package/dist/0~8155.js +0 -299
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type DocxParagraphStyleSource } from './work-docx-paragraph-styles';
|
|
2
|
+
import { type DocxTableStyleSource } from './work-docx-table-styles';
|
|
2
3
|
export type ImportedDocxParagraphAlignment = 'left' | 'center' | 'right' | 'justify';
|
|
3
4
|
export interface ImportedDocxParagraphAlignmentMarker {
|
|
4
5
|
marker: string;
|
|
@@ -7,6 +8,6 @@ export interface ImportedDocxParagraphAlignmentMarker {
|
|
|
7
8
|
export interface ImportedDocxParagraphAlignmentMarkers {
|
|
8
9
|
paragraphs: ImportedDocxParagraphAlignmentMarker[];
|
|
9
10
|
}
|
|
10
|
-
export declare function markDocxParagraphAlignments(document: Document, styleSource?: DocxParagraphStyleSource): ImportedDocxParagraphAlignmentMarkers;
|
|
11
|
+
export declare function markDocxParagraphAlignments(document: Document, styleSource?: DocxParagraphStyleSource, tableStyleSource?: DocxTableStyleSource): ImportedDocxParagraphAlignmentMarkers;
|
|
11
12
|
export declare function applyImportedDocxParagraphAlignmentMarkers(document: Document, markers: ImportedDocxParagraphAlignmentMarkers): void;
|
|
12
13
|
export declare function hasImportedDocxParagraphAlignmentMarkers(markers: ImportedDocxParagraphAlignmentMarkers): boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DocumentParagraphDirection } from './work-document-paragraph-formatting';
|
|
2
2
|
import { type DocxParagraphStyleSource } from './work-docx-paragraph-styles';
|
|
3
|
+
import { type DocxTableStyleSource } from './work-docx-table-styles';
|
|
3
4
|
export interface ImportedDocxParagraphDirectionMarker {
|
|
4
5
|
marker: string;
|
|
5
6
|
direction: DocumentParagraphDirection;
|
|
@@ -7,6 +8,6 @@ export interface ImportedDocxParagraphDirectionMarker {
|
|
|
7
8
|
export interface ImportedDocxParagraphDirectionMarkers {
|
|
8
9
|
paragraphs: ImportedDocxParagraphDirectionMarker[];
|
|
9
10
|
}
|
|
10
|
-
export declare function markDocxParagraphDirections(document: Document, styleSource?: DocxParagraphStyleSource): ImportedDocxParagraphDirectionMarkers;
|
|
11
|
+
export declare function markDocxParagraphDirections(document: Document, styleSource?: DocxParagraphStyleSource, tableStyleSource?: DocxTableStyleSource): ImportedDocxParagraphDirectionMarkers;
|
|
11
12
|
export declare function applyImportedDocxParagraphDirectionMarkers(document: Document, markers: ImportedDocxParagraphDirectionMarkers): void;
|
|
12
13
|
export declare function hasImportedDocxParagraphDirectionMarkers(markers: ImportedDocxParagraphDirectionMarkers): boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type DocumentParagraphIndent } from './work-document-paragraph-formatting';
|
|
2
2
|
import { type DocxParagraphStyleSource } from './work-docx-paragraph-styles';
|
|
3
|
+
import { type DocxTableStyleSource } from './work-docx-table-styles';
|
|
3
4
|
export interface ImportedDocxParagraphIndentMarker {
|
|
4
5
|
marker: string;
|
|
5
6
|
indent: DocumentParagraphIndent;
|
|
@@ -7,6 +8,6 @@ export interface ImportedDocxParagraphIndentMarker {
|
|
|
7
8
|
export interface ImportedDocxParagraphIndentMarkers {
|
|
8
9
|
paragraphs: ImportedDocxParagraphIndentMarker[];
|
|
9
10
|
}
|
|
10
|
-
export declare function markDocxParagraphIndents(document: Document, styleSource?: DocxParagraphStyleSource): ImportedDocxParagraphIndentMarkers;
|
|
11
|
+
export declare function markDocxParagraphIndents(document: Document, styleSource?: DocxParagraphStyleSource, tableStyleSource?: DocxTableStyleSource): ImportedDocxParagraphIndentMarkers;
|
|
11
12
|
export declare function applyImportedDocxParagraphIndentMarkers(document: Document, markers: ImportedDocxParagraphIndentMarkers): void;
|
|
12
13
|
export declare function hasImportedDocxParagraphIndentMarkers(markers: ImportedDocxParagraphIndentMarkers): boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DocumentParagraphPagination } from './work-document-paragraph-formatting';
|
|
2
2
|
import { type DocxParagraphStyleSource } from './work-docx-paragraph-styles';
|
|
3
|
+
import { type DocxTableStyleSource } from './work-docx-table-styles';
|
|
3
4
|
export interface ImportedDocxParagraphPaginationMarker {
|
|
4
5
|
marker: string;
|
|
5
6
|
pagination: Partial<DocumentParagraphPagination>;
|
|
@@ -7,6 +8,6 @@ export interface ImportedDocxParagraphPaginationMarker {
|
|
|
7
8
|
export interface ImportedDocxParagraphPaginationMarkers {
|
|
8
9
|
paragraphs: ImportedDocxParagraphPaginationMarker[];
|
|
9
10
|
}
|
|
10
|
-
export declare function markDocxParagraphPagination(document: Document, styleSource?: DocxParagraphStyleSource): ImportedDocxParagraphPaginationMarkers;
|
|
11
|
+
export declare function markDocxParagraphPagination(document: Document, styleSource?: DocxParagraphStyleSource, tableStyleSource?: DocxTableStyleSource): ImportedDocxParagraphPaginationMarkers;
|
|
11
12
|
export declare function applyImportedDocxParagraphPaginationMarkers(document: Document, markers: ImportedDocxParagraphPaginationMarkers): void;
|
|
12
13
|
export declare function hasImportedDocxParagraphPaginationMarkers(markers: ImportedDocxParagraphPaginationMarkers): boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type DocumentParagraphSpacing } from './work-document-paragraph-formatting';
|
|
2
2
|
import { type DocxParagraphStyleSource } from './work-docx-paragraph-styles';
|
|
3
|
+
import { type DocxTableStyleSource } from './work-docx-table-styles';
|
|
3
4
|
export interface ImportedDocxParagraphSpacingMarker {
|
|
4
5
|
marker: string;
|
|
5
6
|
spacing: Partial<DocumentParagraphSpacing>;
|
|
@@ -7,6 +8,6 @@ export interface ImportedDocxParagraphSpacingMarker {
|
|
|
7
8
|
export interface ImportedDocxParagraphSpacingMarkers {
|
|
8
9
|
paragraphs: ImportedDocxParagraphSpacingMarker[];
|
|
9
10
|
}
|
|
10
|
-
export declare function markDocxParagraphSpacing(document: Document, styleSource?: DocxParagraphStyleSource): ImportedDocxParagraphSpacingMarkers;
|
|
11
|
+
export declare function markDocxParagraphSpacing(document: Document, styleSource?: DocxParagraphStyleSource, tableStyleSource?: DocxTableStyleSource): ImportedDocxParagraphSpacingMarkers;
|
|
11
12
|
export declare function applyImportedDocxParagraphSpacingMarkers(document: Document, markers: ImportedDocxParagraphSpacingMarkers): void;
|
|
12
13
|
export declare function hasImportedDocxParagraphSpacingMarkers(markers: ImportedDocxParagraphSpacingMarkers): boolean;
|
|
@@ -13,6 +13,6 @@ export interface DocxParagraphStyleResolver {
|
|
|
13
13
|
export type DocxParagraphStyleSource = Document | DocxParagraphStyleResolver | null | undefined;
|
|
14
14
|
export declare function createDocxParagraphStyleResolver(stylesDocument?: Document | null): DocxParagraphStyleResolver;
|
|
15
15
|
export declare function resolveDocxParagraphStyleResolver(source: DocxParagraphStyleSource): DocxParagraphStyleResolver;
|
|
16
|
-
export declare function docxParagraphPropertySources(directProperties: Element | undefined, resolver: DocxParagraphStyleResolver): Element[];
|
|
17
|
-
export declare function docxRunPropertySources(paragraphProperties: Element | undefined, runProperties: Element | undefined, resolver: DocxParagraphStyleResolver): Element[];
|
|
16
|
+
export declare function docxParagraphPropertySources(directProperties: Element | undefined, resolver: DocxParagraphStyleResolver, contextualProperties?: readonly Element[]): Element[];
|
|
17
|
+
export declare function docxRunPropertySources(paragraphProperties: Element | undefined, runProperties: Element | undefined, resolver: DocxParagraphStyleResolver, contextualProperties?: readonly Element[]): Element[];
|
|
18
18
|
export {};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { type DocxParagraphStyleSource } from './work-docx-paragraph-styles';
|
|
2
2
|
import { type DocxThemeSource } from './work-docx-theme';
|
|
3
|
+
import { type DocxTableStyleSource } from './work-docx-table-styles';
|
|
3
4
|
export interface ImportedDocxRunFormatting {
|
|
5
|
+
bold?: boolean;
|
|
6
|
+
italic?: boolean;
|
|
7
|
+
underline?: boolean;
|
|
8
|
+
strike?: boolean;
|
|
4
9
|
fontFamily?: string;
|
|
10
|
+
wordLineHeightFactor?: number;
|
|
11
|
+
wordSnapToGrid?: boolean;
|
|
5
12
|
fontSize?: number;
|
|
6
13
|
color?: string;
|
|
7
14
|
backgroundColor?: string;
|
|
@@ -14,6 +21,6 @@ export interface ImportedDocxRunFormattingMarker {
|
|
|
14
21
|
export interface ImportedDocxRunFormattingMarkers {
|
|
15
22
|
runs: ImportedDocxRunFormattingMarker[];
|
|
16
23
|
}
|
|
17
|
-
export declare function markDocxRunFormatting(document: Document, styleSource?: DocxParagraphStyleSource, themeSource?: DocxThemeSource): ImportedDocxRunFormattingMarkers;
|
|
24
|
+
export declare function markDocxRunFormatting(document: Document, styleSource?: DocxParagraphStyleSource, themeSource?: DocxThemeSource, tableStyleSource?: DocxTableStyleSource): ImportedDocxRunFormattingMarkers;
|
|
18
25
|
export declare function applyImportedDocxRunFormattingMarkers(document: Document, markers: ImportedDocxRunFormattingMarkers): void;
|
|
19
26
|
export declare function hasImportedDocxRunFormattingMarkers(markers: ImportedDocxRunFormattingMarkers): boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type DocumentTabStop } from './work-document-tab-stops';
|
|
2
2
|
import { type DocxParagraphStyleSource } from './work-docx-paragraph-styles';
|
|
3
|
+
import { type DocxTableStyleSource } from './work-docx-table-styles';
|
|
3
4
|
export interface ImportedDocxParagraphTabStopMarker {
|
|
4
5
|
marker: string;
|
|
5
6
|
tabStops: DocumentTabStop[];
|
|
@@ -8,6 +9,6 @@ export interface ImportedDocxParagraphTabStopMarkers {
|
|
|
8
9
|
paragraphs: ImportedDocxParagraphTabStopMarker[];
|
|
9
10
|
inlineTabs: string[];
|
|
10
11
|
}
|
|
11
|
-
export declare function markDocxParagraphTabStops(document: Document, styleSource?: DocxParagraphStyleSource): ImportedDocxParagraphTabStopMarkers;
|
|
12
|
+
export declare function markDocxParagraphTabStops(document: Document, styleSource?: DocxParagraphStyleSource, tableStyleSource?: DocxTableStyleSource): ImportedDocxParagraphTabStopMarkers;
|
|
12
13
|
export declare function applyImportedDocxParagraphTabStopMarkers(document: Document, markers: ImportedDocxParagraphTabStopMarkers): void;
|
|
13
14
|
export declare function hasImportedDocxParagraphTabStopMarkers(markers: ImportedDocxParagraphTabStopMarkers): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ITableCellOptions } from 'docx';
|
|
2
|
-
type TableCellPresentationOptions = Partial<Pick<ITableCellOptions, 'borders' | 'shading' | 'verticalAlign'>>;
|
|
2
|
+
type TableCellPresentationOptions = Partial<Pick<ITableCellOptions, 'borders' | 'margins' | 'shading' | 'verticalAlign'>>;
|
|
3
3
|
export declare function documentTableCellDocxOptions(cell: HTMLTableCellElement, docx: typeof import('docx')): TableCellPresentationOptions;
|
|
4
4
|
export {};
|
|
@@ -1,16 +1,26 @@
|
|
|
1
|
+
import { type DocumentTableBorderEdge } from './work-document-table-borders';
|
|
2
|
+
import { type DocxThemeSource } from './work-docx-theme';
|
|
3
|
+
import { type DocxTableStyleSource } from './work-docx-table-styles';
|
|
4
|
+
import { type DocumentTableCellMarginOverrides } from './work-document-table-geometry';
|
|
1
5
|
export type ImportedDocxTableCellVerticalAlign = 'top' | 'middle' | 'bottom';
|
|
2
6
|
export type ImportedDocxTableCellBorderStyle = 'solid' | 'dashed' | 'dotted' | 'double' | 'none';
|
|
3
7
|
export interface ImportedDocxTableCellMarker {
|
|
4
8
|
marker: string;
|
|
5
9
|
backgroundColor?: string;
|
|
6
10
|
verticalAlign?: ImportedDocxTableCellVerticalAlign;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
borderWidth?: number;
|
|
11
|
+
borders?: ImportedDocxTableCellBorders;
|
|
12
|
+
margins?: DocumentTableCellMarginOverrides;
|
|
10
13
|
}
|
|
11
14
|
export interface ImportedDocxTableCellMarkers {
|
|
12
15
|
cells: ImportedDocxTableCellMarker[];
|
|
13
16
|
}
|
|
14
|
-
|
|
17
|
+
interface ImportedDocxCellBorder {
|
|
18
|
+
color: string;
|
|
19
|
+
style: ImportedDocxTableCellBorderStyle;
|
|
20
|
+
width: number;
|
|
21
|
+
}
|
|
22
|
+
type ImportedDocxTableCellBorders = Partial<Record<DocumentTableBorderEdge, ImportedDocxCellBorder>>;
|
|
23
|
+
export declare function markDocxTableCells(document: Document, themeSource?: DocxThemeSource, tableStyleSource?: DocxTableStyleSource): ImportedDocxTableCellMarkers;
|
|
15
24
|
export declare function applyImportedDocxTableCellMarkers(document: Document, markers: ImportedDocxTableCellMarkers): void;
|
|
16
25
|
export declare function hasImportedDocxTableCellMarkers(markers: ImportedDocxTableCellMarkers): boolean;
|
|
26
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ITableCellOptions, ITableOptions, ITableRowOptions } from 'docx';
|
|
2
|
-
type TableSizingDocxOptions = Pick<ITableOptions, 'columnWidths' | 'layout' | 'width'>;
|
|
2
|
+
type TableSizingDocxOptions = Pick<ITableOptions, 'alignment' | 'columnWidths' | 'indent' | 'layout' | 'margins' | 'width'>;
|
|
3
3
|
type TableCellSizingDocxOptions = Pick<ITableCellOptions, 'width'>;
|
|
4
4
|
type TableRowSizingDocxOptions = Pick<ITableRowOptions, 'height'>;
|
|
5
5
|
export declare function documentTableSizingDocxOptions(table: HTMLTableElement, docx: typeof import('docx')): TableSizingDocxOptions;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type DocumentTableGeometry } from './work-document-table-geometry';
|
|
2
|
+
import { type DocxTableStyleSource } from './work-docx-table-styles';
|
|
2
3
|
export interface ImportedDocxTableSizingMarker {
|
|
3
4
|
marker: string;
|
|
4
|
-
|
|
5
|
+
geometry: DocumentTableGeometry;
|
|
5
6
|
columnWidths: number[];
|
|
6
7
|
}
|
|
7
8
|
export interface ImportedDocxTableSizingMarkers {
|
|
8
9
|
tables: ImportedDocxTableSizingMarker[];
|
|
9
10
|
}
|
|
10
|
-
export declare function markDocxTableSizing(document: Document): ImportedDocxTableSizingMarkers;
|
|
11
|
+
export declare function markDocxTableSizing(document: Document, tableStyleSource?: DocxTableStyleSource): ImportedDocxTableSizingMarkers;
|
|
11
12
|
export declare function applyImportedDocxTableSizingMarkers(document: Document, markers: ImportedDocxTableSizingMarkers): void;
|
|
12
13
|
export declare function hasImportedDocxTableSizingMarkers(markers: ImportedDocxTableSizingMarkers): boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface DocxTableStyleLayer {
|
|
2
|
+
tableProperties?: Element;
|
|
3
|
+
cellProperties?: Element;
|
|
4
|
+
paragraphProperties?: Element;
|
|
5
|
+
runProperties?: Element;
|
|
6
|
+
}
|
|
7
|
+
interface DocxTableStyle extends DocxTableStyleLayer {
|
|
8
|
+
basedOn?: string;
|
|
9
|
+
conditional: ReadonlyMap<string, DocxTableStyleLayer>;
|
|
10
|
+
}
|
|
11
|
+
export interface DocxTableStyleResolver {
|
|
12
|
+
defaultStyleId?: string;
|
|
13
|
+
tableStyles: ReadonlyMap<string, DocxTableStyle>;
|
|
14
|
+
}
|
|
15
|
+
export type DocxTableStyleSource = Document | DocxTableStyleResolver | null | undefined;
|
|
16
|
+
export declare function createDocxTableStyleResolver(stylesDocument?: Document | null): DocxTableStyleResolver;
|
|
17
|
+
export declare function resolveDocxTableStyleResolver(source: DocxTableStyleSource): DocxTableStyleResolver;
|
|
18
|
+
export declare function docxTablePropertySources(table: Element, resolver: DocxTableStyleResolver): readonly Element[];
|
|
19
|
+
export declare function docxTableCellStyleLayers(cell: Element, resolver: DocxTableStyleResolver): readonly DocxTableStyleLayer[];
|
|
20
|
+
export declare function docxTableRunPropertySources(element: Element, resolver: DocxTableStyleResolver): Element[];
|
|
21
|
+
export declare function docxTableParagraphPropertySources(element: Element, resolver: DocxTableStyleResolver): Element[];
|
|
22
|
+
export {};
|
|
@@ -36,6 +36,11 @@ export interface WorkDocumentPageChrome {
|
|
|
36
36
|
even: WorkDocumentPageChromeContent;
|
|
37
37
|
}
|
|
38
38
|
export type WorkDocumentSectionBreakType = 'nextPage' | 'continuous' | 'evenPage' | 'oddPage' | 'nextColumn';
|
|
39
|
+
export type WorkDocumentGridType = 'default' | 'lines' | 'linesAndChars' | 'snapToChars';
|
|
40
|
+
export interface WorkDocumentGrid {
|
|
41
|
+
type: WorkDocumentGridType;
|
|
42
|
+
linePitch: number;
|
|
43
|
+
}
|
|
39
44
|
export interface WorkDocumentSectionLayout {
|
|
40
45
|
pageSize: 'a4' | 'letter';
|
|
41
46
|
orientation: 'portrait' | 'landscape';
|
|
@@ -47,6 +52,7 @@ export interface WorkDocumentSectionLayout {
|
|
|
47
52
|
showPageNumbers?: boolean;
|
|
48
53
|
pageNumberStart?: number;
|
|
49
54
|
pageChrome?: WorkDocumentPageChrome;
|
|
55
|
+
documentGrid?: WorkDocumentGrid;
|
|
50
56
|
}
|
|
51
57
|
export type WorkDocumentAttributeValue = string | number | boolean | null | WorkDocumentAttributeValue[] | {
|
|
52
58
|
[key: string]: WorkDocumentAttributeValue;
|
package/dist/office-kernel.wasm
CHANGED
|
Binary file
|