@sheetxl/io-xlsx 0.8.0-beta.10 → 0.8.0-beta.11
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/browser/esm/{NQIuOQIleHC4NUW6.mjs → BiDqExNXiY7ykk8E.mjs} +527 -646
- package/browser/esm/{2EOdn2WRK5y1L58S.mjs → Bs0EzhdU8WgGfPzf.mjs} +2 -2
- package/browser/esm/CLWsOc6DO8l1G_LF.mjs +2213 -0
- package/browser/esm/{xc_LzCPgHn-acgFZ.mjs → CZ9I80og75SDRjv0.mjs} +2 -2
- package/browser/esm/{DXopGe8PrLWmwGaV.mjs → CuAXx5i4uqTz-mMY.mjs} +1 -1
- package/browser/esm/{BLXcoiDAaOMjFuhw.mjs → Cv3R6fGatARKedSn.mjs} +2531 -1952
- package/browser/esm/{B-jb5SuiVh5NnBG_.mjs → CzFYJPxmLyKgEKF0.mjs} +2 -2
- package/browser/esm/{BKT8OBj-bhQwdg49.mjs → DICL6ecj9BdJv8aX.mjs} +47 -10
- package/browser/esm/DatIA9fZbEPjW4bh.mjs +5638 -0
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{CI_CZI5m5-KkiAK5.mjs → yveeVJ6hKDI5KDEz.mjs} +1599 -990
- package/node/esm/B9Zn6H1RV07Ob377.mjs +2294 -0
- package/node/esm/Bpqm_PpGLpdjL47-.mjs +2368 -0
- package/node/esm/{BmdmvgO5Zdgx-RWo.mjs → CAJxmJdobUbzpUz5.mjs} +2 -2
- package/node/esm/{CHqRP_NjPpPd7m9L.mjs → CxlSbH7mmnEEsqmX.mjs} +1 -1
- package/node/esm/DD-yXSBzvDYy0TX5.mjs +5842 -0
- package/node/esm/{nNQ7MG89sGKwkjMA.mjs → DScqM1V4wPntNP6-.mjs} +1672 -1086
- package/node/esm/{O5mti2R9drFOlXc7.mjs → fopiRR7OiVoEiF7B.mjs} +2 -2
- package/node/esm/index.mjs +64 -27
- package/node/esm/{CtAF486aZqYzMeLM.mjs → ipiyzn5Pfohw2afB.mjs} +1777 -1157
- package/package.json +3 -3
- package/types/src/AutoFilterRules.d.ts +8 -1
- package/types/src/DefinedNameAttributes.d.ts +8 -0
- package/types/src/ExcelCompat.d.ts +15 -3
- package/types/src/KnownFonts.d.ts +50 -0
- package/types/src/LegacyFormula.d.ts +13 -0
- package/types/src/PageLayoutAttributes.d.ts +8 -0
- package/types/src/Plugin.d.ts +12 -0
- package/types/src/ProtectionAttributes.d.ts +2 -2
- package/types/src/SheetKinds.d.ts +57 -0
- package/types/src/SheetViewAttributes.d.ts +4 -0
- package/types/src/SortExtent.d.ts +16 -0
- package/types/src/Types.d.ts +11 -0
- package/types/src/XlsxHeader.d.ts +19 -0
- package/types/src/chart/ChartExXml.d.ts +38 -0
- package/types/src/chart/ChartPartXml.d.ts +47 -0
- package/types/src/chart/ChartSpaceXml.d.ts +36 -0
- package/types/src/chart/_XmlTree.d.ts +34 -0
- package/types/src/chart/_chartCodecs.d.ts +10 -0
- package/types/src/chart/_chartExCodecs.d.ts +7 -0
- package/types/src/chart/_chartExFold.d.ts +14 -0
- package/types/src/chart/_chartExMarkup.d.ts +236 -0
- package/types/src/chart/_chartExStyle.d.ts +22 -0
- package/types/src/chart/_codec.d.ts +78 -0
- package/types/src/chart/_drawingml.d.ts +10 -0
- package/types/src/chart/_xml.d.ts +70 -0
- package/types/src/reader/DocumentPropertiesRead.d.ts +16 -0
- package/types/src/reader/DummyFunctionUnwrap.d.ts +2 -2
- package/types/src/reader/HeaderStyles.d.ts +15 -0
- package/types/src/reader/IsoDateCell.d.ts +20 -0
- package/types/src/reader/LibreOfficeDataTable.d.ts +11 -0
- package/types/src/reader/domVisitors/AppPropertiesVisitor.d.ts +13 -1
- package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts +3 -3
- package/types/src/reader/domVisitors/CommentVisitor.d.ts +2 -2
- package/types/src/reader/domVisitors/DrawingElementVisitor.d.ts +3 -1
- package/types/src/reader/domVisitors/DrawingGraphicFrameVisitor.d.ts +2 -2
- package/types/src/reader/domVisitors/DrawingPicVisitor.d.ts +23 -8
- package/types/src/reader/domVisitors/FontSchemeVisitor.d.ts +3 -2
- package/types/src/reader/domVisitors/ObjectDefaultsVisitor.d.ts +11 -0
- package/types/src/reader/domVisitors/SheetColorContainerVisitor.d.ts +2 -2
- package/types/src/reader/domVisitors/SheetStyleVisitor.d.ts +2 -0
- package/types/src/reader/domVisitors/SortStateVisitor.d.ts +2 -2
- package/types/src/reader/domVisitors/ThreadedCommentsVisitor.d.ts +2 -2
- package/types/src/reader/domVisitors/_Dxfs.d.ts +10 -0
- package/types/src/reader/domVisitors/index.d.ts +2 -30
- package/types/src/reader/saxVisitors/SharedStringsVisitor.d.ts +46 -6
- package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts +16 -11
- package/types/src/utils/DrawingMLText.d.ts +2 -2
- package/types/src/utils/FormControls.d.ts +4 -4
- package/types/src/utils/SharedNames.d.ts +13 -0
- package/types/src/utils/SpreadsheetFont.d.ts +38 -0
- package/types/src/utils/VmlNoteShapes.d.ts +16 -23
- package/types/src/utils/VmlNoteStyle.d.ts +44 -0
- package/types/src/utils/VmlPrefixes.d.ts +24 -0
- package/types/src/writer/builder/PackageBuilder.d.ts +2 -0
- package/types/src/writer/builder/Types.d.ts +7 -0
- package/types/src/writer/emitters/CommentsEmitter.d.ts +3 -3
- package/types/src/writer/emitters/DrawingEmitter.d.ts +2 -2
- package/types/src/writer/emitters/LegacyDrawingEmitter.d.ts +4 -4
- package/types/src/writer/emitters/PropsCoreEmitter.d.ts +7 -2
- package/types/src/writer/emitters/PropsCustomEmitter.d.ts +15 -0
- package/types/src/writer/emitters/SharedStringsEmitter.d.ts +6 -3
- package/types/src/writer/emitters/SlicerEmitter.d.ts +3 -3
- package/types/src/writer/emitters/WorkbookEmitter.d.ts +5 -0
- package/types/src/writer/emitters/WorksheetEmitter.d.ts +4 -3
- package/types/src/writer/utils/AutoFilter.d.ts +1 -1
- package/types/src/writer/utils/DefaultRows.d.ts +38 -0
- package/types/src/writer/utils/DxfCollector.d.ts +11 -8
- package/types/src/writer/utils/HiddenFormulaXfs.d.ts +1 -1
- package/types/src/writer/utils/SheetStyleLayout.d.ts +73 -0
- package/types/src/writer/utils/TextUtils.d.ts +6 -1
- package/types/src/writer/utils/UnsupportedFunctions.d.ts +2 -2
- package/browser/esm/BPmehfSqdvgsLBsB.mjs +0 -5153
- package/node/esm/BpxxiZ2oKPkUSfdB.mjs +0 -2486
- package/node/esm/QS_theNoeqNGLStj.mjs +0 -5298
- package/types/src/legacyChart/OOXMLMappings.d.ts +0 -8
- package/types/src/legacyChart/OOXMLUtils.d.ts +0 -78
- package/types/src/legacyChart/ToOOXMLConverter.d.ts +0 -30
- package/types/src/reader/domVisitors/AxisVisitor.d.ts +0 -12
- package/types/src/reader/domVisitors/BarChartTypeVisitor.d.ts +0 -6
- package/types/src/reader/domVisitors/ChartSpaceVisitor.d.ts +0 -6
- package/types/src/reader/domVisitors/ChartTypeVisitor.d.ts +0 -7
- package/types/src/reader/domVisitors/ChartVisitor.d.ts +0 -7
- package/types/src/reader/domVisitors/DataLabelsVisitor.d.ts +0 -8
- package/types/src/reader/domVisitors/DataPointVisitor.d.ts +0 -6
- package/types/src/reader/domVisitors/LayoutVisitor.d.ts +0 -5
- package/types/src/reader/domVisitors/LegendEntryVisitor.d.ts +0 -5
- package/types/src/reader/domVisitors/LegendVisitor.d.ts +0 -5
- package/types/src/reader/domVisitors/MarkerVisitor.d.ts +0 -5
- package/types/src/reader/domVisitors/NegativeShapeVisitor.d.ts +0 -6
- package/types/src/reader/domVisitors/PlotAreaVisitor.d.ts +0 -5
- package/types/src/reader/domVisitors/SeriesVisitor.d.ts +0 -8
- package/types/src/reader/domVisitors/TitleVisitor.d.ts +0 -9
- package/types/src/writer/emitters/ChartColorsEmitter.d.ts +0 -7
- package/types/src/writer/emitters/ChartEmitter.d.ts +0 -14
- package/types/src/writer/emitters/ChartStyleEmitter.d.ts +0 -46
|
@@ -16,6 +16,11 @@ export declare const SHARED_STATE_CALC_FEATURES = "calcFeatures";
|
|
|
16
16
|
* `sheetId`. See {@link resolveSheetPaths}.
|
|
17
17
|
*/
|
|
18
18
|
export declare const SHARED_STATE_SHEET_PARTS = "sheetParts";
|
|
19
|
+
/**
|
|
20
|
+
* Shared-states key under which `XLSXWriter` leaves whether the package being written can hold
|
|
21
|
+
* macros. See {@link writeOpaqueSheet}.
|
|
22
|
+
*/
|
|
23
|
+
export declare const SHARED_STATE_MACRO_ENABLED = "macroEnabled";
|
|
19
24
|
/**
|
|
20
25
|
* Shared-states key under which `XLSXWriter` leaves the source package's external-link part paths,
|
|
21
26
|
* in `[n]` order. See {@link writeExternalReferences}.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IWorksheet } from '@sheetxl/sdk';
|
|
2
2
|
import { Emitter, EmitContext } from '../builder';
|
|
3
|
+
import { XlsxWorksheetJSON } from '../utils/SheetStyleLayout';
|
|
3
4
|
export declare const WorksheetKind = "worksheet";
|
|
4
5
|
/**
|
|
5
6
|
* Emits the worksheet.xml part.
|
|
@@ -10,9 +11,9 @@ export declare class WorksheetEmitter extends Emitter<ModelHandle> {
|
|
|
10
11
|
emit(handle: ModelHandle, ctx: EmitContext): Promise<void>;
|
|
11
12
|
}
|
|
12
13
|
type ModelHandle = {
|
|
13
|
-
model:
|
|
14
|
+
model: IWorksheet;
|
|
14
15
|
isSelected: boolean;
|
|
15
|
-
json:
|
|
16
|
+
json: XlsxWorksheetJSON;
|
|
16
17
|
};
|
|
17
18
|
export {};
|
|
18
19
|
//# sourceMappingURL=WorksheetEmitter.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ICondition, IRange, ITable, ISort, ICellRange, IFilter } from '@sheetxl/sdk';
|
|
2
2
|
import { EmitContext, IXmlWriter } from '../builder';
|
|
3
|
-
export declare const writeSortState: (ctx: EmitContext, xml: IXmlWriter, model: ITable, json: ISort.JSON, range: ICellRange, coords: IRange.Coords) => void;
|
|
3
|
+
export declare const writeSortState: (ctx: EmitContext, xml: IXmlWriter, model: ITable, json: ISort.JSON, range: ICellRange, coords: IRange.Coords, headerRows: number) => void;
|
|
4
4
|
export declare const writeAutoFilter: (ctx: EmitContext, xml: IXmlWriter, model: ITable, json: ITable.JSON, isAutoTable?: boolean) => void;
|
|
5
5
|
/** Writes one `customFilter`, taking its OOXML spelling from the border. */
|
|
6
6
|
export declare const writeCustomFilter: (ctx: EmitContext, xml: IXmlWriter, condition: ICondition.JSON) => void;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ITypes } from '@sheetxl/sdk';
|
|
2
|
+
import { XlsxHeader, XlsxWorksheetJSON } from './SheetStyleLayout';
|
|
3
|
+
/** How the rows a sheet does not list are written (`sheetFormatPr`). */
|
|
4
|
+
export interface DefaultRows {
|
|
5
|
+
/** `defaultRowHeight`, in points. */
|
|
6
|
+
height: number;
|
|
7
|
+
/** `customHeight`: Excel uses `height` as is; otherwise it uses the Normal height plus the flags' pixels. */
|
|
8
|
+
custom: boolean;
|
|
9
|
+
/** `thickTop`: every row gives a pixel to a thick line above it. */
|
|
10
|
+
thickTop: boolean;
|
|
11
|
+
/** `thickBottom`: every row gives a pixel to a medium or thick line below it. */
|
|
12
|
+
thickBottom: boolean;
|
|
13
|
+
/** The row run written as the default instead of row by row, or `null` when there is none. */
|
|
14
|
+
run: ITypes.RunCoordValue<XlsxHeader> | null;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The row runs to write once `defaultRows.run` is the sheet's default: the other runs, and the rows
|
|
18
|
+
* no run lists, at the height they no longer get by default.
|
|
19
|
+
*/
|
|
20
|
+
export declare const listedRowRuns: (rows: ITypes.RunCoordValue<XlsxHeader>[], defaultRun: ITypes.RunCoordValue<XlsxHeader>, unlistedHeight: number, maxRows: number) => ITypes.RunCoordValue<XlsxHeader>[];
|
|
21
|
+
/**
|
|
22
|
+
* How a sheet's unlisted rows are written: Excel's `sheetFormatPr` is its cache of the row height
|
|
23
|
+
* every row shares, so the height that covers most of the sheet is written once there rather than as
|
|
24
|
+
* a row element per row.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Excel computes an unlisted row's height from the Normal font plus a pixel for each `thickTop`/
|
|
28
|
+
* `thickBottom` (`probe-sheet-thick-derive.ps1`); it moves the flags there only for a style on whole
|
|
29
|
+
* columns, and our export promotes a style on most of a column to one, so the default takes the flags
|
|
30
|
+
* of the run it replaces. A height those explain is written that way, so Excel keeps sizing the rows
|
|
31
|
+
* itself; any other is written as a custom height.
|
|
32
|
+
*
|
|
33
|
+
* @param normalHeight The Normal font's row height, in points.
|
|
34
|
+
* @param maxRows The sheet's row count.
|
|
35
|
+
* @returns `null` when the rows share no height but the Normal one.
|
|
36
|
+
*/
|
|
37
|
+
export declare const resolveDefaultRows: (json: XlsxWorksheetJSON, normalHeight: number, maxRows: number) => DefaultRows | null;
|
|
38
|
+
//# sourceMappingURL=DefaultRows.d.ts.map
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { ICellStyle } from '@sheetxl/sdk';
|
|
2
2
|
/**
|
|
3
|
-
* Accumulates
|
|
4
|
-
*
|
|
3
|
+
* Accumulates the differential styles (dxfs) a worksheet and its parts cite — conditional formats,
|
|
4
|
+
* color filters, color sorts — so the styles part, written after the worksheets, can include them
|
|
5
|
+
* in `<dxfs>`.
|
|
5
6
|
*
|
|
6
|
-
* Index contract:
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* Index contract: collected dxfs take `0..count-1`; the table-style dxfs the styles emitter
|
|
8
|
+
* denormalizes are appended after and offset by {@link getCount}. This keeps the `dxfId` written
|
|
9
|
+
* into worksheet and table XML final at the time it is written.
|
|
9
10
|
*
|
|
10
|
-
* Shared via `EmitContext.getSharedStates()` under
|
|
11
|
-
* for the pattern).
|
|
11
|
+
* Shared via `EmitContext.getSharedStates()` under {@link DXFS_SHARED_STATE}; use
|
|
12
|
+
* {@link dxfCollectorOf} (see `MetadataCollector` for the pattern).
|
|
12
13
|
*/
|
|
13
14
|
export declare class DxfCollector {
|
|
14
15
|
private readonly _dxfs;
|
|
@@ -18,5 +19,7 @@ export declare class DxfCollector {
|
|
|
18
19
|
getDxfs(): readonly ICellStyle.JSON[];
|
|
19
20
|
getCount(): number;
|
|
20
21
|
}
|
|
21
|
-
export declare const
|
|
22
|
+
export declare const DXFS_SHARED_STATE = "dxfs";
|
|
23
|
+
/** The write's collector, created on first use. */
|
|
24
|
+
export declare const dxfCollectorOf: (sharedStates: Map<string, any>) => DxfCollector;
|
|
22
25
|
//# sourceMappingURL=DxfCollector.d.ts.map
|
|
@@ -3,7 +3,7 @@ export declare const HIDDEN_FORMULA_XFS_SHARED_STATE = "hiddenFormulaXfs";
|
|
|
3
3
|
/**
|
|
4
4
|
* The `hidden="1"` twins of cell xfs, for sheets whose protection hides formulas.
|
|
5
5
|
*
|
|
6
|
-
* xlsx has no sheet-level form of `
|
|
6
|
+
* xlsx has no sheet-level form of `IWorksheetProtection.showFormulas: false`; Excel only hides a formula
|
|
7
7
|
* whose format says `hidden="1"`. So a sheet that hides formulas writes every format it uses as a
|
|
8
8
|
* hidden variant, unless the format itself grants `showFormulas`. Variants are appended after the
|
|
9
9
|
* direct styles and shared by every sheet that asks for one. `cellXfs[0]` is never changed in place:
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { IRange, ICellStyle, ITypes, IWorkbook, IWorksheet } from '@sheetxl/sdk';
|
|
2
|
+
import { XlsxHeader } from '../../XlsxHeader';
|
|
3
|
+
export { type XlsxHeader };
|
|
4
|
+
/**
|
|
5
|
+
* A worksheet as the sheet part writes it: the model's JSON with whole-row and whole-column styles
|
|
6
|
+
* moved onto `rows`/`cols` and borders split so every cell of a range draws the same edges.
|
|
7
|
+
*/
|
|
8
|
+
export interface XlsxWorksheetJSON extends Omit<IWorksheet.JSON, 'rows' | 'cols'> {
|
|
9
|
+
cols?: IRange.JSONReference<XlsxHeader>[];
|
|
10
|
+
rows?: IRange.JSONReference<XlsxHeader>[];
|
|
11
|
+
}
|
|
12
|
+
type StyledCells = [coords: IRange.Coords, styleId: number][];
|
|
13
|
+
/** Looks style JSON up by direct style id, and mints ids for new JSON. */
|
|
14
|
+
export interface StyleIdScope {
|
|
15
|
+
getElementJSON(id: number): ICellStyle.JSON;
|
|
16
|
+
getElementID(json: ICellStyle.JSON): number | null;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Direct style ids keyed by the style's JSON, the same way the SDK's persist scope keys them
|
|
20
|
+
* (`JSONStableStringify`, Normal at 0), so a style keeps one xf however often it is minted.
|
|
21
|
+
*/
|
|
22
|
+
export declare class StyleIds implements StyleIdScope {
|
|
23
|
+
private _byKey;
|
|
24
|
+
readonly list: ICellStyle.JSON[];
|
|
25
|
+
constructor(normal: ICellStyle.JSON | null | undefined);
|
|
26
|
+
getElementJSON(id: number): ICellStyle.JSON;
|
|
27
|
+
getElementID(json: ICellStyle.JSON | null | undefined): number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Lays out every worksheet's styles the way xlsx stores them, re-minting the workbook's direct styles
|
|
31
|
+
* in the order the sheets cite them.
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Replaces `json.styles.direct`. Cell xf indices are direct style ids, so the list is minted sheet by
|
|
35
|
+
* sheet and range by range, with each split piece in its range's place and each re-derived border
|
|
36
|
+
* after.
|
|
37
|
+
*
|
|
38
|
+
* @returns The sheet part's JSON for each worksheet, keyed by the model's JSON for it.
|
|
39
|
+
*/
|
|
40
|
+
export declare function layoutWorkbookStyles(json: IWorkbook.JSON, sheets: readonly (IWorksheet | null)[]): Map<IWorksheet.JSON, XlsxWorksheetJSON>;
|
|
41
|
+
/**
|
|
42
|
+
* Breaks a bordered range into pieces whose every cell draws the same edges, which is all a cell xf
|
|
43
|
+
* can say.
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* A range that reaches the grid's terminal row or column (a `<col style>` reads back as a
|
|
47
|
+
* full-height range) has no closing border at the boundary, so no end sliver is split off there: a
|
|
48
|
+
* style-only piece at the last row or column materializes real `<c>` records, and Excel then treats
|
|
49
|
+
* the whole grid as the used range.
|
|
50
|
+
*/
|
|
51
|
+
export declare function splitStyleBordersIntoSame(coords: IRange.Coords, json: ICellStyle.JSON, entireCoords?: IRange.Coords): IRange.JSONReferenceTuple<ICellStyle.JSON>[];
|
|
52
|
+
export interface StyleRanges {
|
|
53
|
+
cols: ITypes.RunCoordValue<XlsxHeader>[];
|
|
54
|
+
rows: ITypes.RunCoordValue<XlsxHeader>[];
|
|
55
|
+
cells: StyledCells;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Moves styles that cover most of a row or column onto `<row s>` / `<col style>`, leaving the cells
|
|
59
|
+
* only what the headers do not already say.
|
|
60
|
+
*
|
|
61
|
+
* @remarks
|
|
62
|
+
* 1. A style whose cells cover more than half of a column (or row) and reach the grid's edge
|
|
63
|
+
* becomes that column's (or row's) style. A style the columns already carry across most of the
|
|
64
|
+
* sheet is not repeated on rows.
|
|
65
|
+
* 2. An overlap sweep then finds what each crossing of cells and headers still has to write.
|
|
66
|
+
*
|
|
67
|
+
* A style's border is relative to the range it is stored with (a row or column style's range is the
|
|
68
|
+
* whole row or column), so ids are not position-independent: wherever a range is written smaller
|
|
69
|
+
* than the entry it came from, its id is re-derived from the style's JSON through `ids`, and two
|
|
70
|
+
* entries sharing an id agree on a crossing only if they draw the same edges there.
|
|
71
|
+
*/
|
|
72
|
+
export declare function promoteStylesToHeaders(styles: StyleRanges, entireCoords: IRange.Coords, ids: StyleIdScope): StyleRanges;
|
|
73
|
+
//# sourceMappingURL=SheetStyleLayout.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IStyleCollection, IText } from '@sheetxl/sdk';
|
|
1
|
+
import { IStyleCollection, IText, ITextFrame } from '@sheetxl/sdk';
|
|
2
2
|
import { EmitContext } from '../builder';
|
|
3
3
|
/**
|
|
4
4
|
* The attributes of an `rPr`/`defRPr`/`endParaRPr` from run properties. Keys the chart style
|
|
@@ -22,6 +22,11 @@ export declare const writeParagraphProperties: (ctx: EmitContext, styles: IStyle
|
|
|
22
22
|
* DrawingML's differs (overflow, a run's size) the default is stated, so the file means the same.
|
|
23
23
|
*/
|
|
24
24
|
export declare const writeTxBody: (ctx: EmitContext, styles: IStyleCollection, jsonText: any) => void;
|
|
25
|
+
/**
|
|
26
|
+
* A text body's `bodyPr` and `lstStyle` without its paragraphs, as a theme's object default states
|
|
27
|
+
* them. Both are written, empty when there is no text.
|
|
28
|
+
*/
|
|
29
|
+
export declare const writeBodyAndListStyle: (ctx: EmitContext, styles: IStyleCollection, text: ITextFrame.JSON | undefined) => void;
|
|
25
30
|
export declare const writeDefaultRProperties: (ctx: EmitContext, styles: IStyleCollection, defRPr: Record<string, any>) => void;
|
|
26
31
|
export declare const writeBodyProperties: (ctx: EmitContext, styles: IStyleCollection, bodyPr: Record<string, any> | undefined) => void;
|
|
27
32
|
//# sourceMappingURL=TextUtils.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IWorksheet, IRange } from '@sheetxl/sdk';
|
|
2
2
|
/**
|
|
3
3
|
* Which formulas on a sheet call a function Excel does not have.
|
|
4
4
|
*
|
|
@@ -15,5 +15,5 @@ export interface UnsupportedFunctions {
|
|
|
15
15
|
/** Whether formula `index` calls anything in {@link names}. */
|
|
16
16
|
affects(index: number): boolean;
|
|
17
17
|
}
|
|
18
|
-
export declare const collectUnsupportedFunctions: (sheet:
|
|
18
|
+
export declare const collectUnsupportedFunctions: (sheet: IWorksheet, jsonFormulas: IRange.JSONReferenceTuple<string>[] | undefined) => Promise<UnsupportedFunctions>;
|
|
19
19
|
//# sourceMappingURL=UnsupportedFunctions.d.ts.map
|