ooxml-core 0.22.1 → 0.23.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/dist/pptx/automation/index.cjs +8 -0
- package/dist/pptx/automation/index.d.ts +4 -3
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +8 -0
- package/dist/pptx/chunks/{index-ucqKcqvI.d.ts → index-CEyiW7oo.d.ts} +3 -2
- package/dist/pptx/chunks/index-CEyiW7oo.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-D2y7ehZ5.d.ts → index-CvtFF9SI.d.ts} +4 -3
- package/dist/pptx/chunks/index-CvtFF9SI.d.ts.map +1 -0
- package/dist/pptx/chunks/smart-art-CO2jmJFf.d.ts +2908 -0
- package/dist/pptx/chunks/smart-art-CO2jmJFf.d.ts.map +1 -0
- package/dist/pptx/chunks/{text-operations-CR3pUJi-.d.ts → text-operations-DM2_DC-I.d.ts} +263 -3162
- package/dist/pptx/chunks/text-operations-DM2_DC-I.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +8 -0
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +8 -0
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/index.cjs +9 -0
- package/dist/pptx/index.d.ts +4 -3
- package/dist/pptx/index.mjs +9 -0
- package/dist/pptx/smartart-layouts/index.cjs +2120 -0
- package/dist/pptx/smartart-layouts/index.d.ts +35 -0
- package/dist/pptx/smartart-layouts/index.d.ts.map +1 -0
- package/dist/pptx/smartart-layouts/index.mjs +2113 -0
- package/package.json +7 -1
- package/dist/pptx/chunks/index-D2y7ehZ5.d.ts.map +0 -1
- package/dist/pptx/chunks/index-ucqKcqvI.d.ts.map +0 -1
- package/dist/pptx/chunks/text-operations-CR3pUJi-.d.ts.map +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { n as PptxSmartArtData } from "../chunks/smart-art-CO2jmJFf.js";
|
|
2
|
+
//#region pptx/core/utils/smartart-builtin-layouts/types.d.ts
|
|
3
|
+
/** One entry of the built-in SmartArt layout catalogue. */
|
|
4
|
+
interface BuiltinSmartArtLayoutEntry {
|
|
5
|
+
/** The layout definition's `uniqueId` URN. */
|
|
6
|
+
id: string;
|
|
7
|
+
/** The gallery name PowerPoint shows (en-US), e.g. `Basic Timeline`. */
|
|
8
|
+
title: string;
|
|
9
|
+
/** The first `dgm:cat/@type` (`list`, `process`, `cycle`, `relationship`, ...). */
|
|
10
|
+
category: string;
|
|
11
|
+
/** Byte range of this layout's gzip member in the decoded data blob. */
|
|
12
|
+
offset: number;
|
|
13
|
+
length: number;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region pptx/core/utils/smartart-builtin-layouts/index.d.ts
|
|
17
|
+
/** The catalogue of built-in layouts (index only: no definition is inflated). */
|
|
18
|
+
export declare function listBuiltinSmartArtLayouts(): readonly BuiltinSmartArtLayoutEntry[];
|
|
19
|
+
/** The catalogue entry for a layout `uniqueId`, or `undefined` when it is not built in. */
|
|
20
|
+
export declare function findBuiltinSmartArtLayout(id: string): BuiltinSmartArtLayoutEntry | undefined;
|
|
21
|
+
/** The `dgm:layoutDef` XML of a built-in layout; throws for an unknown id. */
|
|
22
|
+
export declare function loadBuiltinSmartArtLayoutXml(id: string): string;
|
|
23
|
+
/** Parse a `dgm:layoutDef` XML into the typed definition the engine runs (raw XML attached). */
|
|
24
|
+
export declare function parseBuiltinLayoutDefinition(xml: string): PptxSmartArtData['layoutDefinition'];
|
|
25
|
+
/**
|
|
26
|
+
* `data` re-laid-out as the built-in layout `id`: its definition replaces the current one and its
|
|
27
|
+
* category becomes `resolvedLayoutType`. Nodes, connections, colours and styles are kept, and the
|
|
28
|
+
* cached drawing is marked stale so it is rebuilt by the engine. Throws for an unknown id.
|
|
29
|
+
*/
|
|
30
|
+
export declare function applyBuiltinSmartArtLayout(data: PptxSmartArtData, id: string): PptxSmartArtData;
|
|
31
|
+
/** The `uniqueId` of the built-in layout for a category, or `undefined` when none is mapped. */
|
|
32
|
+
export declare function defaultBuiltinSmartArtLayoutId(category: string): string | undefined;
|
|
33
|
+
//#endregion
|
|
34
|
+
export type { BuiltinSmartArtLayoutEntry };
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../pptx/core/utils/smartart-builtin-layouts/types.ts","../../../pptx/core/utils/smartart-builtin-layouts/index.ts"],"mappings":";;;UACiB;;EAEhB;;EAEA;;EAEA;;EAEA;EACA;;;;;wBCiBe,uCAAuC;;wBAKvC,0BAA0B,aAAa;;wBAavC,6BAA6B;;wBAgB7B,6BAA6B,cAAc;;;;;;wBAsB3C,2BAA2B,MAAM,kBAAkB,aAAa;;wBAgDhE,+BAA+B"}
|