@office-open/core 0.9.2 → 0.9.4
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 +1 -1
- package/dist/chart/index.d.mts +1 -1
- package/dist/chart/index.mjs +1 -1
- package/dist/{chart-DNpai28f.mjs → chart-DwE8FCFk.mjs} +7 -1
- package/dist/descriptor/index.d.mts +2 -2
- package/dist/descriptor/index.mjs +2 -2
- package/dist/descriptor-DcQm32dg.mjs +71 -0
- package/dist/drawingml/index.d.mts +2 -2
- package/dist/drawingml/index.mjs +2 -2
- package/dist/{index-BKotL3AP.d.mts → index-4hjRdzMU.d.mts} +1 -1
- package/dist/index-C4r2WLEy.d.mts +73 -0
- package/dist/{index-xXbaecaB.d.mts → index-DMw7eid7.d.mts} +1 -1
- package/dist/{index-BqJRDf5H.d.mts → index-FByLiyYM.d.mts} +12 -3
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +4 -4
- package/dist/{src-DPuDEZYF.mjs → src-Bd5Aw7iO.mjs} +191 -54
- package/dist/theme/index.d.mts +1 -1
- package/package.json +2 -2
- package/dist/descriptor-57JUzfpG.mjs +0 -282
- package/dist/index-D81RV9Vc.d.mts +0 -153
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
11
|
-
- **Descriptor Runtime** — `CustomDescriptor<T>`
|
|
11
|
+
- **Descriptor Runtime** — `CustomDescriptor<T>` for bidirectional XML stringify/parse
|
|
12
12
|
- **DrawingML** — Fills, outlines, effects, geometry, text body, scene 3D, and more
|
|
13
13
|
- **Chart Components** — Shared chart types (bar, line, pie, area, scatter) and chart collection
|
|
14
14
|
- **SmartArt Components** — Data model, tree-to-model converter, layout/style/color definitions
|
package/dist/chart/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as ChartCollection, a as ChartSpaceOptions, c as DataLabelsOptions, d as ErrorBarType, f as ErrorValueType, g as View3DOptions, h as TrendlineType, i as ChartSeriesData, l as ErrorBarDirection, m as TrendlineOptions, n as AxisChartType, o as ChartType, p as TimeUnit, r as BubbleSeriesData, s as DataLabelPosition, t as chartSpaceDesc, u as ErrorBarOptions, v as ChartData } from "../index-
|
|
1
|
+
import { _ as ChartCollection, a as ChartSpaceOptions, c as DataLabelsOptions, d as ErrorBarType, f as ErrorValueType, g as View3DOptions, h as TrendlineType, i as ChartSeriesData, l as ErrorBarDirection, m as TrendlineOptions, n as AxisChartType, o as ChartType, p as TimeUnit, r as BubbleSeriesData, s as DataLabelPosition, t as chartSpaceDesc, u as ErrorBarOptions, v as ChartData } from "../index-DMw7eid7.mjs";
|
|
2
2
|
export { AxisChartType, BubbleSeriesData, ChartCollection, ChartData, ChartSeriesData, ChartSpaceOptions, ChartType, DataLabelPosition, DataLabelsOptions, ErrorBarDirection, ErrorBarOptions, ErrorBarType, ErrorValueType, TimeUnit, TrendlineOptions, TrendlineType, View3DOptions, chartSpaceDesc };
|
package/dist/chart/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TimeUnit, c as ChartCollection, i as ErrorValueType, n as ErrorBarDirection, o as TrendlineType, r as ErrorBarType, s as chartSpaceDesc, t as DataLabelPosition } from "../chart-
|
|
1
|
+
import { a as TimeUnit, c as ChartCollection, i as ErrorValueType, n as ErrorBarDirection, o as TrendlineType, r as ErrorBarType, s as chartSpaceDesc, t as DataLabelPosition } from "../chart-DwE8FCFk.mjs";
|
|
2
2
|
export { ChartCollection, DataLabelPosition, ErrorBarDirection, ErrorBarType, ErrorValueType, TimeUnit, TrendlineType, chartSpaceDesc };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { children, escapeXml, findChild } from "@office-open/xml";
|
|
1
|
+
import { attr, children, escapeXml, findChild } from "@office-open/xml";
|
|
2
2
|
//#region src/chart/chart-collection.ts
|
|
3
3
|
var ChartCollection = class {
|
|
4
4
|
map;
|
|
@@ -271,6 +271,12 @@ const chartSpaceDesc = {
|
|
|
271
271
|
if (mapping) {
|
|
272
272
|
detectedType = mapping.type;
|
|
273
273
|
threeD = mapping.threeD ?? false;
|
|
274
|
+
if (child.name === "c:barChart" || child.name === "c:bar3DChart") {
|
|
275
|
+
const barDir = findChild(child, "c:barDir");
|
|
276
|
+
const barDirVal = barDir ? attr(barDir, "val") : void 0;
|
|
277
|
+
if (barDirVal === "bar") detectedType = "bar";
|
|
278
|
+
else if (barDirVal === "col") detectedType = "column";
|
|
279
|
+
}
|
|
274
280
|
break;
|
|
275
281
|
}
|
|
276
282
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { type
|
|
1
|
+
import { a as enumEncode, c as CustomDescriptor, d as WriteContext, i as enumDecode, l as Descriptor, n as boolDecode, o as parse, r as boolEncode, s as stringify, t as DescriptorRegistry, u as ReadContext } from "../index-C4r2WLEy.mjs";
|
|
2
|
+
export { type CustomDescriptor, type Descriptor, DescriptorRegistry, type ReadContext, type WriteContext, boolDecode, boolEncode, enumDecode, enumEncode, parse, stringify };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as enumEncode,
|
|
2
|
-
export {
|
|
1
|
+
import { a as enumEncode, i as enumDecode, n as boolDecode, o as parse, r as boolEncode, s as stringify, t as DescriptorRegistry } from "../descriptor-DcQm32dg.mjs";
|
|
2
|
+
export { DescriptorRegistry, boolDecode, boolEncode, enumDecode, enumEncode, parse, stringify };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
//#region src/descriptor/runtime.ts
|
|
2
|
+
/**
|
|
3
|
+
* Serialize an Options object to an XML string using its descriptor.
|
|
4
|
+
* Returns `undefined` when an optional element should be omitted.
|
|
5
|
+
*/
|
|
6
|
+
function stringify(desc, value, ctx) {
|
|
7
|
+
return desc.stringify(value, ctx);
|
|
8
|
+
}
|
|
9
|
+
/** Parse an XML Element into an Options object using its descriptor. */
|
|
10
|
+
function parse(desc, el, ctx) {
|
|
11
|
+
return desc.parse(el, ctx);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/descriptor/helpers.ts
|
|
15
|
+
/**
|
|
16
|
+
* OOXML-specific encode/decode helpers for descriptors.
|
|
17
|
+
*
|
|
18
|
+
* XML traversal helpers (findChild, etc.) are in @office-open/xml utils.
|
|
19
|
+
* This file only contains OOXML value encoding/decoding.
|
|
20
|
+
*
|
|
21
|
+
* @module
|
|
22
|
+
*/
|
|
23
|
+
/** Encode boolean for CT_OnOff: true → omit val, false → "0". */
|
|
24
|
+
const boolEncode = (v) => {
|
|
25
|
+
if (v === void 0) return void 0;
|
|
26
|
+
return v ? void 0 : "0";
|
|
27
|
+
};
|
|
28
|
+
/** Decode CT_OnOff: absent or "true"/"1" → true, "0"/"false" → false. */
|
|
29
|
+
const boolDecode = (raw) => raw !== "0" && raw !== "false";
|
|
30
|
+
/** Create an enum encoder from a JS↔XML mapping. */
|
|
31
|
+
const enumEncode = (map) => (v) => {
|
|
32
|
+
if (v === void 0) return void 0;
|
|
33
|
+
return map[v] ?? v;
|
|
34
|
+
};
|
|
35
|
+
/** Create an enum decoder from a JS↔XML mapping (inverted). */
|
|
36
|
+
const enumDecode = (map) => {
|
|
37
|
+
const inv = invertRecord(map);
|
|
38
|
+
return (raw) => inv[raw] ?? raw;
|
|
39
|
+
};
|
|
40
|
+
function invertRecord(map) {
|
|
41
|
+
const result = {};
|
|
42
|
+
for (const key of Object.keys(map)) result[map[key]] = key;
|
|
43
|
+
return result;
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/descriptor/registry.ts
|
|
47
|
+
var DescriptorRegistry = class DescriptorRegistry {
|
|
48
|
+
static _map = /* @__PURE__ */ new Map();
|
|
49
|
+
/** Register a descriptor with its XML tag. */
|
|
50
|
+
static register(tag, desc) {
|
|
51
|
+
DescriptorRegistry._map.set(tag, desc);
|
|
52
|
+
}
|
|
53
|
+
/** Look up a descriptor by XML tag. */
|
|
54
|
+
static get(tag) {
|
|
55
|
+
return DescriptorRegistry._map.get(tag);
|
|
56
|
+
}
|
|
57
|
+
/** Get all registered tags. */
|
|
58
|
+
static tags() {
|
|
59
|
+
return new Set(DescriptorRegistry._map.keys());
|
|
60
|
+
}
|
|
61
|
+
/** Check if a tag is registered. */
|
|
62
|
+
static has(tag) {
|
|
63
|
+
return DescriptorRegistry._map.has(tag);
|
|
64
|
+
}
|
|
65
|
+
/** Get the number of registered descriptors. */
|
|
66
|
+
static get size() {
|
|
67
|
+
return DescriptorRegistry._map.size;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
//#endregion
|
|
71
|
+
export { enumEncode as a, enumDecode as i, boolDecode as n, parse as o, boolEncode as r, stringify as s, DescriptorRegistry as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { type AdjLstOptions, type AdjOptions, AnimLevelValue, type AnimLvlOptions, type AnimOneOptions, AnimOneValue, type BackdropOptions, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, type CameraOptions, type ChMaxOptions, type ChPrefOptions, type ColorListOptions, ColorMethod, type ColorTransformOptions, type ColorsDefHdrLstOptions, type ColorsDefHdrOptions, CompoundLine, type ConnectionSite, type CustomGeometryOptions, type DashStop, type DiagramCategoryOptions, type DiagramDescriptionOptions, type DiagramExtLstOptions, type DiagramExtensionOptions, type DiagramNameOptions, type DiagramRelIdsOptions, type DiagramStyleLblOptions, type DiagramStyleOptions, type DiagramTextPropsOptions, type EffectContainerType, type EffectDagOptions, type EffectExtent, type EffectListOptions, type FillOptions, type FillOverlayEffectOptions, FontCollectionIndex, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GraphicFrameLockingOptions, type GroupLockingOptions, type GroupTransform2DOptions, type HierBranchOptions, HierBranchStyle, type HslColorOptions, HueDirection, type InnerShadowEffectOptions, type LayoutDefHdrLstOptions, type LayoutDefHdrOptions, type LightRigOptions, LineCap, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MediaDataTransformation, type MediaTransformation, type OnOffStyleType, type OrgChartOptions, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, type PictureLockingOptions, type Point3D, type PresLayoutVarsOptions, PresetColor, type PresetColorOptions, PresetDash, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, RectAlignment, type ReflectionEffectOptions, type RelativeRect, type RgbColorOptions, type ScRgbColorOptions, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, type ShapeLockingOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, type StyleDefHdrLstOptions, type StyleDefHdrOptions, StyleMatrixIndex, type StyleMatrixReferenceOptions, SystemColor, type SystemColorOptions, type TableCellBorderOptions, type TableCellStyleOptions, type TablePartStyleOptions, type TableStyleListOptions, type TableStyleOptions, type TableStyleRegion, type TableTextStyleOptions, type ThemeableLineStyleOptions, TileAlignment, TileFlipMode, type TileOptions, type Transform2DOptions, type Vector3D, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdj, createAdjLst, createAnimLvl, createAnimOne, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChMax, createChPref, createColorElement, createColorTransforms, createColorsDefHdr, createColorsDefHdrLst, createCustomDash, createCustomGeometry, createDiagramExtLst, createDiagramRelIds, createDiagramSp3d, createDiagramStyle, createDiagramTxPr, createEffectClrLst, createEffectDag, createEffectList, createExtentionList, createFillClrLst, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefHdr, createLayoutDefHdrLst, createLinClrLst, createLineEnd, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPresLayoutVars, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefHdr, createStyleDefHdrLst, createStyleLbl, createSystemColor, createTableStyle, createTableStyleList, createTileInfo, createTransform2D, createTransformation, createTxEffectClrLst, createTxFillClrLst, createTxLinClrLst, customGeometryDesc, diagramExtLstDesc, diagramRelIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc, getColorDescriptor, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hslColorDesc, outlineDesc, patternFillDesc, pictureLockingDesc, presLayoutVarsDesc, presetColorDesc, presetGeometryDesc, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyPresetGeometry, stringifyStretch, systemColorDesc, tileDesc, transform2DDesc };
|
|
1
|
+
import { $ as createLinClrLst, $a as SchemeColor, $n as calculateEffectExtent, $t as TableStyleListOptions, A as rgbColorDesc, Aa as GradientFillOptions, An as stringifyAdjustmentValues, Ar as createCustomDash, At as PresLayoutVarsOptions, B as createDiagramTxPr, Ba as TileAlignment, Bn as LightRigOptions, Bt as GraphicFrameLockingOptions, C as fillDesc, Ca as createNoFill, Cn as PathCommand, Cr as createOutline, Ct as AnimOneOptions, D as hslColorDesc, Da as GradientStopOptions, Dn as PresetGeometryOptions, Dr as LineEndWidth, Dt as HierBranchOptions, E as getColorDescriptor, Ea as FillOptions, En as createCustomGeometry, Er as LineEndType, Et as ChPrefOptions, F as DiagramExtLstOptions, Fa as PathShadeType, Fn as BevelPresetType, Ft as createChMax, G as DiagramStyleLblOptions, Ga as BlipEffectsOptions, Gn as createScene3D, Gt as createGroupLocking, H as createDiagramRelIds, Ha as createTileInfo, Hn as Scene3DOptions, Ht as PictureLockingOptions, I as DiagramExtensionOptions, Ia as RelativeRect, In as createBevel, It as createChPref, J as HueDirection, Ja as createColorElement, Jn as EffectDagOptions, Jt as OnOffStyleType, K as DiagramStyleOptions, Ka as createBlipEffects, Kn as createSoftEdgeEffect, Kt as createPictureLocking, L as DiagramTextPropsOptions, La as TileFlipMode, Ln as createBottomBevel, Lt as createHierBranch, M as schemeColorDesc, Ma as GradientStop, Mn as Shape3DOptions, Mt as createAdjLst, N as solidFillDesc, Na as LinearShadeOptions, Nn as createShape3D, Nt as createAnimLvl, O as parseColorChoice, Oa as buildFill, On as stringifyPresetGeometry, Or as createLineEnd, Ot as HierBranchStyle, P as systemColorDesc, Pa as PathShadeOptions, Pn as BevelOptions, Pt as createAnimOne, Q as createFillClrLst, Qa as createSystemColor, Qn as EffectListOptions, Qt as TablePartStyleOptions, R as createDiagramExtLst, Ra as createGradientFill, Rn as BackdropOptions, Rt as createOrgChart, S as outlineDesc, Sa as createPatternFill, Sn as GeomRect, Sr as PresetDash, St as AnimLvlOptions, T as patternFillDesc, Ta as BlipFillMediaData, Tn as PathOptions, Tr as LineEndOptions, Tt as ChMaxOptions, U as ColorListOptions, Ua as SourceRectangleOptions, Un as SphereCoords, Ut as ShapeLockingOptions, V as DiagramRelIdsOptions, Va as TileOptions, Vn as Point3D, Vt as GroupLockingOptions, W as ColorMethod, Wa as createSourceRectangle, Wn as Vector3D, Wt as createGraphicFrameLocking, X as createDiagramStyle, Xa as SystemColor, Xn as BlurEffectOptions, Xt as TableCellBorderOptions, Y as StyleMatrixIndex, Ya as createSolidFill, Yn as createEffectDag, Yt as StyleMatrixReferenceOptions, Z as createEffectClrLst, Za as SystemColorOptions, Zn as EffectExtent, Zt as TableCellStyleOptions, _ as graphicFrameLockingDesc, _n as createBlipFill, _r as LineCap, _t as createStyleDefHdr, a as blipDesc, an as createTableStyleList, ao as createRgbColor, ar as createPresetShadowEffect, at as ColorsDefHdrOptions, b as shapeLockingDesc, ba as PatternFillOptions, bn as ConnectionSite, br as OutlineOptions, bt as AdjOptions, c as stretchDesc, cn as MediaTransformation, co as createPresetColor, cr as createOuterShadowEffect, ct as DiagramNameOptions, d as scene3DDesc, dn as Transform2DOptions, do as ColorTransformOptions, dr as GlowEffectOptions, dt as StyleDefHdrLstOptions, en as TableStyleOptions, eo as SchemeColorOptions, er as createEffectList, et as createStyleLbl, f as shape3DDesc, fn as createGroupTransform2D, fo as createColorTransforms, fr as createGlowEffect, ft as StyleDefHdrOptions, g as presetGeometryDesc, gn as BlipFillOptions, gr as CompoundLine, gt as createLayoutDefHdrLst, h as customGeometryDesc, hn as createExtentionList, hr as createFillOverlayEffect, ht as createLayoutDefHdr, i as presLayoutVarsDesc, in as createTableStyle, io as RgbColorOptions, ir as PresetShadowVal, it as ColorsDefHdrLstOptions, j as scRgbColorDesc, ja as GradientShadeOptions, jn as PresetMaterialType, jt as createAdj, k as presetColorDesc, ka as extractBlipFillMedia, kn as GeometryGuide, kr as DashStop, kt as OrgChartOptions, l as tileDesc, ln as createTransformation, lo as HslColorOptions, lr as InnerShadowEffectOptions, lt as LayoutDefHdrLstOptions, m as transform2DDesc, mn as stringifyStretch, mr as FillOverlayEffectOptions, mt as createColorsDefHdrLst, n as diagramRelIdsDesc, nn as TableTextStyleOptions, no as ScRgbColorOptions, nr as createReflectionEffect, nt as createTxFillClrLst, o as blipFillDesc, on as parseTableStyleList, oo as PresetColor, or as OuterShadowEffectOptions, ot as DiagramCategoryOptions, p as groupTransform2DDesc, pn as createTransform2D, pr as BlendMode, pt as createColorsDefHdr, q as FontCollectionIndex, qa as SolidFillOptions, qn as EffectContainerType, qt as createShapeLocking, r as diagramStyleDesc, rn as ThemeableLineStyleOptions, ro as createScRgbColor, rr as PresetShadowEffectOptions, rt as createTxLinClrLst, s as sourceRectangleDesc, sn as MediaDataTransformation, so as PresetColorOptions, sr as RectAlignment, st as DiagramDescriptionOptions, t as diagramExtLstDesc, tn as TableStyleRegion, to as createSchemeColor, tr as ReflectionEffectOptions, tt as createTxEffectClrLst, u as bevelDesc, un as GroupTransform2DOptions, uo as createHslColor, ur as createInnerShadowEffect, ut as LayoutDefHdrOptions, v as groupLockingDesc, vn as BlipOptions, vr as LineJoin, vt as createStyleDefHdrLst, w as gradientFillDesc, wa as BlipFillConfigOptions, wn as PathFillMode, wr as LineEndLength, wt as AnimOneValue, x as effectListDesc, xa as PresetPattern, xn as CustomGeometryOptions, xr as PenAlignment, xt as AnimLevelValue, y as pictureLockingDesc, ya as createGroupFill, yn as createBlip, yr as OutlineFillProperties, yt as AdjLstOptions, z as createDiagramSp3d, za as createGradientStop, zn as CameraOptions, zt as createPresLayoutVars } from "../index-FByLiyYM.mjs";
|
|
2
|
+
export { type AdjLstOptions, type AdjOptions, AnimLevelValue, type AnimLvlOptions, type AnimOneOptions, AnimOneValue, type BackdropOptions, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, type CameraOptions, type ChMaxOptions, type ChPrefOptions, type ColorListOptions, ColorMethod, type ColorTransformOptions, type ColorsDefHdrLstOptions, type ColorsDefHdrOptions, CompoundLine, type ConnectionSite, type CustomGeometryOptions, type DashStop, type DiagramCategoryOptions, type DiagramDescriptionOptions, type DiagramExtLstOptions, type DiagramExtensionOptions, type DiagramNameOptions, type DiagramRelIdsOptions, type DiagramStyleLblOptions, type DiagramStyleOptions, type DiagramTextPropsOptions, type EffectContainerType, type EffectDagOptions, type EffectExtent, type EffectListOptions, type FillOptions, type FillOverlayEffectOptions, FontCollectionIndex, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GraphicFrameLockingOptions, type GroupLockingOptions, type GroupTransform2DOptions, type HierBranchOptions, HierBranchStyle, type HslColorOptions, HueDirection, type InnerShadowEffectOptions, type LayoutDefHdrLstOptions, type LayoutDefHdrOptions, type LightRigOptions, LineCap, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MediaDataTransformation, type MediaTransformation, type OnOffStyleType, type OrgChartOptions, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, type PictureLockingOptions, type Point3D, type PresLayoutVarsOptions, PresetColor, type PresetColorOptions, PresetDash, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, RectAlignment, type ReflectionEffectOptions, type RelativeRect, type RgbColorOptions, type ScRgbColorOptions, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, type ShapeLockingOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, type StyleDefHdrLstOptions, type StyleDefHdrOptions, StyleMatrixIndex, type StyleMatrixReferenceOptions, SystemColor, type SystemColorOptions, type TableCellBorderOptions, type TableCellStyleOptions, type TablePartStyleOptions, type TableStyleListOptions, type TableStyleOptions, type TableStyleRegion, type TableTextStyleOptions, type ThemeableLineStyleOptions, TileAlignment, TileFlipMode, type TileOptions, type Transform2DOptions, type Vector3D, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdj, createAdjLst, createAnimLvl, createAnimOne, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChMax, createChPref, createColorElement, createColorTransforms, createColorsDefHdr, createColorsDefHdrLst, createCustomDash, createCustomGeometry, createDiagramExtLst, createDiagramRelIds, createDiagramSp3d, createDiagramStyle, createDiagramTxPr, createEffectClrLst, createEffectDag, createEffectList, createExtentionList, createFillClrLst, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefHdr, createLayoutDefHdrLst, createLinClrLst, createLineEnd, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPresLayoutVars, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefHdr, createStyleDefHdrLst, createStyleLbl, createSystemColor, createTableStyle, createTableStyleList, createTileInfo, createTransform2D, createTransformation, createTxEffectClrLst, createTxFillClrLst, createTxLinClrLst, customGeometryDesc, diagramExtLstDesc, diagramRelIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc, getColorDescriptor, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hslColorDesc, outlineDesc, parseColorChoice, parseTableStyleList, patternFillDesc, pictureLockingDesc, presLayoutVarsDesc, presetColorDesc, presetGeometryDesc, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyPresetGeometry, stringifyStretch, systemColorDesc, tileDesc, transform2DDesc };
|
package/dist/drawingml/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { AnimLevelValue, AnimOneValue, BevelPresetType, BlendMode, ColorMethod, CompoundLine, FontCollectionIndex, HierBranchStyle, HueDirection, LineCap, LineEndLength, LineEndType, LineEndWidth, LineJoin, PathShadeType, PenAlignment, PresetColor, PresetDash, PresetMaterialType, PresetPattern, PresetShadowVal, RectAlignment, SchemeColor, StyleMatrixIndex, SystemColor, TileAlignment, TileFlipMode, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdj, createAdjLst, createAnimLvl, createAnimOne, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChMax, createChPref, createColorElement, createColorTransforms, createColorsDefHdr, createColorsDefHdrLst, createCustomDash, createCustomGeometry, createDiagramExtLst, createDiagramRelIds, createDiagramSp3d, createDiagramStyle, createDiagramTxPr, createEffectClrLst, createEffectDag, createEffectList, createExtentionList, createFillClrLst, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefHdr, createLayoutDefHdrLst, createLinClrLst, createLineEnd, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPresLayoutVars, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefHdr, createStyleDefHdrLst, createStyleLbl, createSystemColor, createTableStyle, createTableStyleList, createTileInfo, createTransform2D, createTransformation, createTxEffectClrLst, createTxFillClrLst, createTxLinClrLst, customGeometryDesc, diagramExtLstDesc, diagramRelIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc, getColorDescriptor, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hslColorDesc, outlineDesc, patternFillDesc, pictureLockingDesc, presLayoutVarsDesc, presetColorDesc, presetGeometryDesc, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyPresetGeometry, stringifyStretch, systemColorDesc, tileDesc, transform2DDesc };
|
|
1
|
+
import { $ as solidFillDesc, $n as createTileInfo, A as bevelDesc, An as createFillOverlayEffect, Ar as createScRgbColor, At as createChMax, B as shapeLockingDesc, Bn as createLineEnd, Bt as createTableStyleList, C as diagramStyleDesc, Cn as PresetShadowVal, Ct as AnimLevelValue, D as sourceRectangleDesc, Dn as createInnerShadowEffect, Dr as createSystemColor, Dt as createAdjLst, E as blipFillDesc, En as createOuterShadowEffect, Er as SystemColor, Et as createAdj, F as customGeometryDesc, Fn as PresetDash, Fr as createColorTransforms, Ft as createGraphicFrameLocking, G as patternFillDesc, Gn as extractBlipFillMedia, H as outlineDesc, Hn as createGroupFill, Ht as createTransformation, I as presetGeometryDesc, In as createOutline, It as createGroupLocking, J as parseColorChoice, Jn as PathShadeType, K as getColorDescriptor, Kn as PresetPattern, L as graphicFrameLockingDesc, Ln as LineEndLength, Lt as createPictureLocking, M as shape3DDesc, Mn as LineCap, Mr as PresetColor, Mt as createHierBranch, N as groupTransform2DDesc, Nn as LineJoin, Nr as createPresetColor, Nt as createOrgChart, O as stretchDesc, On as createGlowEffect, Or as SchemeColor, Ot as createAnimLvl, P as transform2DDesc, Pn as PenAlignment, Pr as createHslColor, Pt as createPresLayoutVars, Q as schemeColorDesc, Qn as TileAlignment, R as groupLockingDesc, Rn as LineEndType, Rt as createShapeLocking, S as diagramRelIdsDesc, Sn as createReflectionEffect, St as createStyleDefHdrLst, T as blipDesc, Tn as RectAlignment, Tr as createSolidFill, Tt as HierBranchStyle, U as fillDesc, Un as createNoFill, V as effectListDesc, Vn as createCustomDash, Vt as parseTableStyleList, W as gradientFillDesc, Wn as buildFill, X as rgbColorDesc, Xn as createGradientFill, Y as presetColorDesc, Yn as TileFlipMode, Z as scRgbColorDesc, Zn as createGradientStop, _n as createScene3D, _t as createColorsDefHdr, an as stringifyStretch, at as ColorMethod, bn as createEffectList, bt as createLayoutDefHdrLst, cn as createExtentionList, ct as StyleMatrixIndex, dn as stringifyAdjustmentValues, dt as createFillClrLst, et as systemColorDesc, fn as PresetMaterialType, ft as createLinClrLst, gn as createBottomBevel, gt as createTxLinClrLst, hn as createBevel, ht as createTxFillClrLst, in as createTransform2D, it as createDiagramRelIds, j as scene3DDesc, jn as CompoundLine, jr as createRgbColor, jt as createChPref, k as tileDesc, kn as BlendMode, kr as createSchemeColor, kt as createAnimOne, ln as createCustomGeometry, lt as createDiagramStyle, mn as BevelPresetType, mt as createTxEffectClrLst, nt as createDiagramSp3d, on as createBlipFill, ot as FontCollectionIndex, pn as createShape3D, pt as createStyleLbl, q as hslColorDesc, qn as createPatternFill, rn as createGroupTransform2D, rt as createDiagramTxPr, sn as createBlip, st as HueDirection, tt as createDiagramExtLst, un as stringifyPresetGeometry, ut as createEffectClrLst, vn as createEffectDag, vr as createSourceRectangle, vt as createColorsDefHdrLst, w as presLayoutVarsDesc, wn as createPresetShadowEffect, wr as createColorElement, wt as AnimOneValue, x as diagramExtLstDesc, xn as createSoftEdgeEffect, xt as createStyleDefHdr, yn as calculateEffectExtent, yr as createBlipEffects, yt as createLayoutDefHdr, z as pictureLockingDesc, zn as LineEndWidth, zt as createTableStyle } from "../src-Bd5Aw7iO.mjs";
|
|
2
|
+
export { AnimLevelValue, AnimOneValue, BevelPresetType, BlendMode, ColorMethod, CompoundLine, FontCollectionIndex, HierBranchStyle, HueDirection, LineCap, LineEndLength, LineEndType, LineEndWidth, LineJoin, PathShadeType, PenAlignment, PresetColor, PresetDash, PresetMaterialType, PresetPattern, PresetShadowVal, RectAlignment, SchemeColor, StyleMatrixIndex, SystemColor, TileAlignment, TileFlipMode, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdj, createAdjLst, createAnimLvl, createAnimOne, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChMax, createChPref, createColorElement, createColorTransforms, createColorsDefHdr, createColorsDefHdrLst, createCustomDash, createCustomGeometry, createDiagramExtLst, createDiagramRelIds, createDiagramSp3d, createDiagramStyle, createDiagramTxPr, createEffectClrLst, createEffectDag, createEffectList, createExtentionList, createFillClrLst, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefHdr, createLayoutDefHdrLst, createLinClrLst, createLineEnd, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPresLayoutVars, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefHdr, createStyleDefHdrLst, createStyleLbl, createSystemColor, createTableStyle, createTableStyleList, createTileInfo, createTransform2D, createTransformation, createTxEffectClrLst, createTxFillClrLst, createTxLinClrLst, customGeometryDesc, diagramExtLstDesc, diagramRelIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc, getColorDescriptor, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hslColorDesc, outlineDesc, parseColorChoice, parseTableStyleList, patternFillDesc, pictureLockingDesc, presLayoutVarsDesc, presetColorDesc, presetGeometryDesc, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyPresetGeometry, stringifyStretch, systemColorDesc, tileDesc, transform2DDesc };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Element } from "@office-open/xml";
|
|
2
|
+
|
|
3
|
+
//#region src/descriptor/context.d.ts
|
|
4
|
+
/** Context passed during stringify (write path). */
|
|
5
|
+
interface WriteContext {
|
|
6
|
+
/** Register a relationship and return its rId. */
|
|
7
|
+
addRelationship(type: string, target: string, mode?: string): string;
|
|
8
|
+
/** Add a media file and return its reference. */
|
|
9
|
+
addMedia(data: Uint8Array, type: string): string;
|
|
10
|
+
}
|
|
11
|
+
/** Context passed during parse (parse path). */
|
|
12
|
+
interface ReadContext {
|
|
13
|
+
/** Resolve a relationship rId to its target path. */
|
|
14
|
+
resolveRelationship(rId: string): string | undefined;
|
|
15
|
+
/** Get a parsed XML part by path. */
|
|
16
|
+
getPart(path: string): Element | undefined;
|
|
17
|
+
/** Get raw binary data (images, media, etc.) by path. */
|
|
18
|
+
getRaw(path: string): Uint8Array | undefined;
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/descriptor/types.d.ts
|
|
22
|
+
/** Custom descriptor — hand-written stringify/parse for an OOXML part. */
|
|
23
|
+
interface CustomDescriptor<T, Ctx = WriteContext> {
|
|
24
|
+
readonly kind: "custom";
|
|
25
|
+
stringify(value: T, ctx: Ctx): string | undefined;
|
|
26
|
+
parse(el: Element, ctx: ReadContext): T;
|
|
27
|
+
}
|
|
28
|
+
/** Alias for "any descriptor" — retained for call-site readability. */
|
|
29
|
+
type Descriptor<T> = CustomDescriptor<T>;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/descriptor/runtime.d.ts
|
|
32
|
+
/**
|
|
33
|
+
* Serialize an Options object to an XML string using its descriptor.
|
|
34
|
+
* Returns `undefined` when an optional element should be omitted.
|
|
35
|
+
*/
|
|
36
|
+
declare function stringify$1<T>(desc: CustomDescriptor<T>, value: T, ctx: WriteContext): string | undefined;
|
|
37
|
+
/** Parse an XML Element into an Options object using its descriptor. */
|
|
38
|
+
declare function parse<T>(desc: CustomDescriptor<T>, el: Element, ctx: ReadContext): T;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/descriptor/helpers.d.ts
|
|
41
|
+
/**
|
|
42
|
+
* OOXML-specific encode/decode helpers for descriptors.
|
|
43
|
+
*
|
|
44
|
+
* XML traversal helpers (findChild, etc.) are in @office-open/xml utils.
|
|
45
|
+
* This file only contains OOXML value encoding/decoding.
|
|
46
|
+
*
|
|
47
|
+
* @module
|
|
48
|
+
*/
|
|
49
|
+
/** Encode boolean for CT_OnOff: true → omit val, false → "0". */
|
|
50
|
+
declare const boolEncode: (v: boolean | undefined) => string | undefined;
|
|
51
|
+
/** Decode CT_OnOff: absent or "true"/"1" → true, "0"/"false" → false. */
|
|
52
|
+
declare const boolDecode: (raw: string) => boolean;
|
|
53
|
+
/** Create an enum encoder from a JS↔XML mapping. */
|
|
54
|
+
declare const enumEncode: (map: Record<string, string>) => (v: string | undefined) => string | undefined;
|
|
55
|
+
/** Create an enum decoder from a JS↔XML mapping (inverted). */
|
|
56
|
+
declare const enumDecode: (map: Record<string, string>) => (raw: string) => string;
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/descriptor/registry.d.ts
|
|
59
|
+
declare class DescriptorRegistry {
|
|
60
|
+
private static readonly _map;
|
|
61
|
+
/** Register a descriptor with its XML tag. */
|
|
62
|
+
static register(tag: string, desc: Descriptor<any>): void;
|
|
63
|
+
/** Look up a descriptor by XML tag. */
|
|
64
|
+
static get(tag: string): Descriptor<any> | undefined;
|
|
65
|
+
/** Get all registered tags. */
|
|
66
|
+
static tags(): ReadonlySet<string>;
|
|
67
|
+
/** Check if a tag is registered. */
|
|
68
|
+
static has(tag: string): boolean;
|
|
69
|
+
/** Get the number of registered descriptors. */
|
|
70
|
+
static get size(): number;
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
export { enumEncode as a, CustomDescriptor as c, WriteContext as d, enumDecode as i, Descriptor as l, boolDecode as n, parse as o, boolEncode as r, stringify$1 as s, DescriptorRegistry as t, ReadContext as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as CustomDescriptor, u as ReadContext } from "./index-C4r2WLEy.mjs";
|
|
2
2
|
import { s as UniversalMeasure } from "./values-Dqj8cbcy.mjs";
|
|
3
3
|
import { Element } from "@office-open/xml";
|
|
4
4
|
import { ZipOptions, Zippable, Zippable as Zippable$1, strFromU8 as strFromU8$1, unzipSync as unzipSync$1 } from "fflate";
|
|
@@ -3760,7 +3760,7 @@ interface MediaTransformation {
|
|
|
3760
3760
|
*/
|
|
3761
3761
|
declare const createTransformation: (options: MediaTransformation) => MediaDataTransformation;
|
|
3762
3762
|
//#endregion
|
|
3763
|
-
//#region src/drawingml/table-style
|
|
3763
|
+
//#region src/drawingml/table-style.d.ts
|
|
3764
3764
|
type TableStyleRegion = "tblBg" | "wholeTbl" | "band1H" | "band2H" | "band1V" | "band2V" | "lastCol" | "firstCol" | "lastRow" | "seCell" | "swCell" | "firstRow" | "neCell" | "nwCell";
|
|
3765
3765
|
type OnOffStyleType = "on" | "off" | "def";
|
|
3766
3766
|
interface TablePartStyleOptions {
|
|
@@ -3827,6 +3827,8 @@ interface TableStyleListOptions {
|
|
|
3827
3827
|
declare function createTableStyle(opts: TableStyleOptions): string;
|
|
3828
3828
|
/** Create table style list (CT_TableStyleList) */
|
|
3829
3829
|
declare function createTableStyleList(opts: TableStyleListOptions): string;
|
|
3830
|
+
/** Parse a:tblStyleLst → TableStyleListOptions (reverse of createTableStyleList). */
|
|
3831
|
+
declare function parseTableStyleList(el: Element): TableStyleListOptions;
|
|
3830
3832
|
//#endregion
|
|
3831
3833
|
//#region src/drawingml/locking/locking.d.ts
|
|
3832
3834
|
interface BaseLockingOptions {
|
|
@@ -4269,6 +4271,13 @@ declare const systemColorDesc: CustomDescriptor<SystemColorOptions>;
|
|
|
4269
4271
|
declare const presetColorDesc: CustomDescriptor<PresetColorOptions>;
|
|
4270
4272
|
declare const scRgbColorDesc: CustomDescriptor<ScRgbColorOptions>;
|
|
4271
4273
|
declare function getColorDescriptor(color: SolidFillOptions): CustomDescriptor<any>;
|
|
4274
|
+
/**
|
|
4275
|
+
* Parse an EG_ColorChoice from an element's direct children. Handles all six
|
|
4276
|
+
* color element kinds (srgbClr/schemeClr/hslClr/sysClr/prstClr/scrgbClr) —
|
|
4277
|
+
* used both by {@link solidFillDesc} (under a:solidFill) and by fill
|
|
4278
|
+
* descriptors reading direct colors under a:gs / a:fgClr / a:bgClr.
|
|
4279
|
+
*/
|
|
4280
|
+
declare function parseColorChoice(el: Element, ctx: ReadContext): SolidFillOptions;
|
|
4272
4281
|
declare const solidFillDesc: CustomDescriptor<SolidFillOptions>;
|
|
4273
4282
|
//#endregion
|
|
4274
4283
|
//#region src/drawingml/fill/fill-descriptors.d.ts
|
|
@@ -4319,4 +4328,4 @@ declare const diagramStyleDesc: CustomDescriptor<DiagramStyleOptions>;
|
|
|
4319
4328
|
declare const presLayoutVarsDesc: CustomDescriptor<PresLayoutVarsOptions>;
|
|
4320
4329
|
declare const diagramExtLstDesc: CustomDescriptor<DiagramExtLstOptions>;
|
|
4321
4330
|
//#endregion
|
|
4322
|
-
export {
|
|
4331
|
+
export { createLinClrLst as $, SchemeColor as $a, toUint8Array as $i, calculateEffectExtent as $n, xsdLineCap as $r, TableStyleListOptions as $t, rgbColorDesc as A, GradientFillOptions as Aa, convertPointsToEmu as Ai, stringifyAdjustmentValues as An, createCustomDash as Ar, PresLayoutVarsOptions as At, createDiagramTxPr as B, TileAlignment as Ba, CompileFn as Bi, LightRigOptions as Bn, hasPlaceholders as Br, GraphicFrameLockingOptions as Bt, fillDesc as C, createNoFill as Ca, convertEmuToInches as Ci, PathCommand as Cn, createOutline as Cr, AnimOneOptions as Ct, hslColorDesc as D, GradientStopOptions as Da, convertInchesToTwip as Di, PresetGeometryOptions as Dn, LineEndWidth as Dr, HierBranchOptions as Dt, getColorDescriptor as E, FillOptions as Ea, convertInchesToEmu as Ei, createCustomGeometry as En, LineEndType as Er, ChPrefOptions as Et, DiagramExtLstOptions as F, PathShadeType as Fa, convertUniversalMeasureToTwip as Fi, BevelPresetType as Fn, findAndReplaceImagePlaceholders as Fr, createChMax as Ft, DiagramStyleLblOptions as G, BlipEffectsOptions as Ga, XmlifyedFile as Gi, createScene3D as Gn, replaceMediaPlaceholders as Gr, createGroupLocking as Gt, createDiagramRelIds as H, createTileInfo as Ha, DataType as Hi, Scene3DOptions as Hn, replaceChartPlaceholders as Hr, PictureLockingOptions as Ht, DiagramExtensionOptions as I, RelativeRect as Ia, parseUniversalMeasure as Ii, createBevel as In, formatId as Ir, createChPref as It, HueDirection as J, createColorElement as Ja, ZipOptions as Ji, EffectDagOptions as Jn, replaceVideoPlaceholders as Jr, OnOffStyleType as Jt, DiagramStyleOptions as K, createBlipEffects as Ka, ZIP_DEFLATE_LEVEL as Ki, createSoftEdgeEffect as Kn, replaceNumberingPlaceholders as Kr, createPictureLocking as Kt, DiagramTextPropsOptions as L, TileFlipMode as La, compileMapping as Li, createBottomBevel as Ln, getMediaRefs as Lr, createHierBranch as Lt, schemeColorDesc as M, GradientStop as Ma, convertToEmu as Mi, Shape3DOptions as Mn, SmartArtRelOptions as Mr, createAdjLst as Mt, solidFillDesc as N, LinearShadeOptions as Na, convertToTwip as Ni, createShape3D as Nn, addSmartArtRelationships as Nr, createAnimLvl as Nt, parseColorChoice as O, buildFill as Oa, convertMillimetersToTwip as Oi, stringifyPresetGeometry as On, createLineEnd as Or, HierBranchStyle as Ot, systemColorDesc as P, PathShadeOptions as Pa, convertUniversalMeasureToEmu as Pi, BevelOptions as Pn, collectPlaceholderKeys as Pr, createAnimOne as Pt, createFillClrLst as Q, createSystemColor as Qa, strFromU8$1 as Qi, EffectListOptions as Qn, xsdEffectContainer as Qr, TablePartStyleOptions as Qt, createDiagramExtLst as R, createGradientFill as Ra, ParsedArchive as Ri, BackdropOptions as Rn, getReferencedMedia as Rr, createOrgChart as Rt, outlineDesc as S, createPatternFill as Sa, PixelPosition as Si, GeomRect as Sn, PresetDash as Sr, AnimLvlOptions as St, patternFillDesc as T, BlipFillMediaData as Ta, convertEmuToPoints as Ti, PathOptions as Tn, LineEndOptions as Tr, ChMaxOptions as Tt, ColorListOptions as U, SourceRectangleOptions as Ua, Packer as Ui, SphereCoords as Un, replaceHyperlinkPlaceholders as Ur, ShapeLockingOptions as Ut, DiagramRelIdsOptions as V, TileOptions as Va, CompressionOptions as Vi, Point3D as Vn, replaceAllPlaceholders as Vr, GroupLockingOptions as Vt, ColorMethod as W, createSourceRectangle as Wa, PackerOptions as Wi, Vector3D as Wn, replaceImagePlaceholders as Wr, createGraphicFrameLocking as Wt, createDiagramStyle as X, SystemColor as Xa, createPacker as Xi, BlurEffectOptions as Xn, xsdBlendMode as Xr, TableCellBorderOptions as Xt, StyleMatrixIndex as Y, createSolidFill as Ya, Zippable$1 as Yi, createEffectDag as Yn, invertMap as Yr, StyleMatrixReferenceOptions as Yt, createEffectClrLst as Z, SystemColorOptions as Za, createZipStream as Zi, EffectExtent as Zn, xsdCompoundLine as Zr, TableCellStyleOptions as Zt, graphicFrameLockingDesc as _, TargetModeType as _a, uniqueUuid as _i, createBlipFill as _n, LineCap as _r, createStyleDefHdr as _t, blipDesc as a, OutputType as aa, xsdPresetShadow as ai, createTableStyleList as an, createRgbColor as ao, createPresetShadowEffect as ar, ColorsDefHdrOptions as at, shapeLockingDesc as b, PatternFillOptions as ba, randomBytes as bi, ConnectionSite as bn, OutlineOptions as br, AdjOptions as bt, stretchDesc as c, buildCorePropertiesXml as ca, xsdTextAlign as ci, MediaTransformation as cn, createPresetColor as co, createOuterShadowEffect as cr, DiagramNameOptions as ct, scene3DDesc as d, DefaultAttributes as da, xsdUnderlineStyle as di, Transform2DOptions as dn, ColorTransformOptions as do, GlowEffectOptions as dr, StyleDefHdrLstOptions as dt, unzipSync$1 as ea, xsdLineEndSize as ei, TableStyleOptions as en, SchemeColorOptions as eo, createEffectList as er, createStyleLbl as et, shape3DDesc as f, OverrideAttributes as fa, xsdVerticalMergeRev as fi, createGroupTransform2D as fn, createColorTransforms as fo, createGlowEffect as fr, StyleDefHdrOptions as ft, presetGeometryDesc as g, Relationships as ga, uniqueNumericIdCreator as gi, BlipFillOptions as gn, CompoundLine as gr, createLayoutDefHdrLst as gt, customGeometryDesc as h, RelationshipType as ha, uniqueId as hi, createExtentionList as hn, createFillOverlayEffect as hr, createLayoutDefHdr as ht, presLayoutVarsDesc as i, OutputByType as ia, xsdPenAlignment as ii, createTableStyle as in, RgbColorOptions as io, PresetShadowVal as ir, ColorsDefHdrLstOptions as it, scRgbColorDesc as j, GradientShadeOptions as ja, convertPositionToEmu as ji, PresetMaterialType as jn, IdFormat as jr, createAdj as jt, presetColorDesc as k, extractBlipFillMedia as ka, convertPixelsToEmu as ki, GeometryGuide as kn, DashStop as kr, OrgChartOptions as kt, tileDesc as l, buildCorePropertiesXmlString as la, xsdTextAnchor as li, createTransformation as ln, HslColorOptions as lo, InnerShadowEffectOptions as lr, LayoutDefHdrLstOptions as lt, transform2DDesc as m, createOverride as ma, hashedId as mi, stringifyStretch as mn, FillOverlayEffectOptions as mr, createColorsDefHdrLst as mt, diagramRelIdsDesc as n, zipSyncAndConvert as na, xsdPathFillMode as ni, TableTextStyleOptions as nn, ScRgbColorOptions as no, createReflectionEffect as nr, createTxFillClrLst as nt, blipFillDesc as o, convertOutput as oa, xsdRectAlignment as oi, parseTableStyleList as on, PresetColor as oo, OuterShadowEffectOptions as or, DiagramCategoryOptions as ot, groupTransform2DDesc as p, createDefault as pa, UniqueNumericIdCreator as pi, createTransform2D as pn, BlendMode as pr, createColorsDefHdr as pt, FontCollectionIndex as q, SolidFillOptions as qa, ZIP_STORED_LEVEL as qi, EffectContainerType as qn, replaceSmartArtPlaceholders as qr, createShapeLocking as qt, diagramStyleDesc as r, OoxmlMimeType as ra, xsdPattern as ri, ThemeableLineStyleOptions as rn, createScRgbColor as ro, PresetShadowEffectOptions as rr, createTxLinClrLst as rt, sourceRectangleDesc as s, CoreProperties as sa, xsdStrikeStyle as si, MediaDataTransformation as sn, PresetColorOptions as so, RectAlignment as sr, DiagramDescriptionOptions as st, diagramExtLstDesc as t, zipAndConvert as ta, xsdMaterialType as ti, TableStyleRegion as tn, createSchemeColor as to, ReflectionEffectOptions as tr, createTxEffectClrLst as tt, bevelDesc as u, parseCorePropsElement as ua, xsdTextCaps as ui, GroupTransform2DOptions as un, createHslColor as uo, createInnerShadowEffect as ur, LayoutDefHdrOptions as ut, groupLockingDesc as v, APP_PROPS_XML as va, derivePasswordHash as vi, BlipOptions as vn, LineJoin as vr, createStyleDefHdrLst as vt, gradientFillDesc as w, BlipFillConfigOptions as wa, convertEmuToPixels as wi, PathFillMode as wn, LineEndLength as wr, AnimOneValue as wt, effectListDesc as x, PresetPattern as xa, EmuPosition as xi, CustomGeometryOptions as xn, PenAlignment as xr, AnimLevelValue as xt, pictureLockingDesc as y, createGroupFill as ya, hashPasswordAgile as yi, createBlip as yn, OutlineFillProperties as yr, AdjLstOptions as yt, createDiagramSp3d as z, createGradientStop as za, parseArchive as zi, CameraOptions as zn, getVideoRefs as zr, createPresLayoutVars as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as ChartCollection, a as ChartSpaceOptions, c as DataLabelsOptions, d as ErrorBarType, f as ErrorValueType, g as View3DOptions, h as TrendlineType, i as ChartSeriesData, l as ErrorBarDirection, m as TrendlineOptions, n as AxisChartType, o as ChartType, p as TimeUnit, r as BubbleSeriesData, s as DataLabelPosition, t as chartSpaceDesc, u as ErrorBarOptions, v as ChartData } from "./index-
|
|
2
|
-
import {
|
|
3
|
-
import { $ as
|
|
1
|
+
import { _ as ChartCollection, a as ChartSpaceOptions, c as DataLabelsOptions, d as ErrorBarType, f as ErrorValueType, g as View3DOptions, h as TrendlineType, i as ChartSeriesData, l as ErrorBarDirection, m as TrendlineOptions, n as AxisChartType, o as ChartType, p as TimeUnit, r as BubbleSeriesData, s as DataLabelPosition, t as chartSpaceDesc, u as ErrorBarOptions, v as ChartData } from "./index-DMw7eid7.mjs";
|
|
2
|
+
import { a as enumEncode, c as CustomDescriptor, d as WriteContext, i as enumDecode, l as Descriptor, n as boolDecode, o as parse, r as boolEncode, s as stringify, t as DescriptorRegistry, u as ReadContext } from "./index-C4r2WLEy.mjs";
|
|
3
|
+
import { $ as createLinClrLst, $a as SchemeColor, $i as toUint8Array, $n as calculateEffectExtent, $r as xsdLineCap, $t as TableStyleListOptions, A as rgbColorDesc, Aa as GradientFillOptions, Ai as convertPointsToEmu, An as stringifyAdjustmentValues, Ar as createCustomDash, At as PresLayoutVarsOptions, B as createDiagramTxPr, Ba as TileAlignment, Bi as CompileFn, Bn as LightRigOptions, Br as hasPlaceholders, Bt as GraphicFrameLockingOptions, C as fillDesc, Ca as createNoFill, Ci as convertEmuToInches, Cn as PathCommand, Cr as createOutline, Ct as AnimOneOptions, D as hslColorDesc, Da as GradientStopOptions, Di as convertInchesToTwip, Dn as PresetGeometryOptions, Dr as LineEndWidth, Dt as HierBranchOptions, E as getColorDescriptor, Ea as FillOptions, Ei as convertInchesToEmu, En as createCustomGeometry, Er as LineEndType, Et as ChPrefOptions, F as DiagramExtLstOptions, Fa as PathShadeType, Fi as convertUniversalMeasureToTwip, Fn as BevelPresetType, Fr as findAndReplaceImagePlaceholders, Ft as createChMax, G as DiagramStyleLblOptions, Ga as BlipEffectsOptions, Gi as XmlifyedFile, Gn as createScene3D, Gr as replaceMediaPlaceholders, Gt as createGroupLocking, H as createDiagramRelIds, Ha as createTileInfo, Hi as DataType, Hn as Scene3DOptions, Hr as replaceChartPlaceholders, Ht as PictureLockingOptions, I as DiagramExtensionOptions, Ia as RelativeRect, Ii as parseUniversalMeasure, In as createBevel, Ir as formatId, It as createChPref, J as HueDirection, Ja as createColorElement, Ji as ZipOptions, Jn as EffectDagOptions, Jr as replaceVideoPlaceholders, Jt as OnOffStyleType, K as DiagramStyleOptions, Ka as createBlipEffects, Ki as ZIP_DEFLATE_LEVEL, Kn as createSoftEdgeEffect, Kr as replaceNumberingPlaceholders, Kt as createPictureLocking, L as DiagramTextPropsOptions, La as TileFlipMode, Li as compileMapping, Ln as createBottomBevel, Lr as getMediaRefs, Lt as createHierBranch, M as schemeColorDesc, Ma as GradientStop, Mi as convertToEmu, Mn as Shape3DOptions, Mr as SmartArtRelOptions, Mt as createAdjLst, N as solidFillDesc, Na as LinearShadeOptions, Ni as convertToTwip, Nn as createShape3D, Nr as addSmartArtRelationships, Nt as createAnimLvl, O as parseColorChoice, Oa as buildFill, Oi as convertMillimetersToTwip, On as stringifyPresetGeometry, Or as createLineEnd, Ot as HierBranchStyle, P as systemColorDesc, Pa as PathShadeOptions, Pi as convertUniversalMeasureToEmu, Pn as BevelOptions, Pr as collectPlaceholderKeys, Pt as createAnimOne, Q as createFillClrLst, Qa as createSystemColor, Qi as strFromU8, Qn as EffectListOptions, Qr as xsdEffectContainer, Qt as TablePartStyleOptions, R as createDiagramExtLst, Ra as createGradientFill, Ri as ParsedArchive, Rn as BackdropOptions, Rr as getReferencedMedia, Rt as createOrgChart, S as outlineDesc, Sa as createPatternFill, Si as PixelPosition, Sn as GeomRect, Sr as PresetDash, St as AnimLvlOptions, T as patternFillDesc, Ta as BlipFillMediaData, Ti as convertEmuToPoints, Tn as PathOptions, Tr as LineEndOptions, Tt as ChMaxOptions, U as ColorListOptions, Ua as SourceRectangleOptions, Ui as Packer, Un as SphereCoords, Ur as replaceHyperlinkPlaceholders, Ut as ShapeLockingOptions, V as DiagramRelIdsOptions, Va as TileOptions, Vi as CompressionOptions, Vn as Point3D, Vr as replaceAllPlaceholders, Vt as GroupLockingOptions, W as ColorMethod, Wa as createSourceRectangle, Wi as PackerOptions, Wn as Vector3D, Wr as replaceImagePlaceholders, Wt as createGraphicFrameLocking, X as createDiagramStyle, Xa as SystemColor, Xi as createPacker, Xn as BlurEffectOptions, Xr as xsdBlendMode, Xt as TableCellBorderOptions, Y as StyleMatrixIndex, Ya as createSolidFill, Yi as Zippable, Yn as createEffectDag, Yr as invertMap, Yt as StyleMatrixReferenceOptions, Z as createEffectClrLst, Za as SystemColorOptions, Zi as createZipStream, Zn as EffectExtent, Zr as xsdCompoundLine, Zt as TableCellStyleOptions, _ as graphicFrameLockingDesc, _a as TargetModeType, _i as uniqueUuid, _n as createBlipFill, _r as LineCap, _t as createStyleDefHdr, a as blipDesc, aa as OutputType, ai as xsdPresetShadow, an as createTableStyleList, ao as createRgbColor, ar as createPresetShadowEffect, at as ColorsDefHdrOptions, b as shapeLockingDesc, ba as PatternFillOptions, bi as randomBytes, bn as ConnectionSite, br as OutlineOptions, bt as AdjOptions, c as stretchDesc, ca as buildCorePropertiesXml, ci as xsdTextAlign, cn as MediaTransformation, co as createPresetColor, cr as createOuterShadowEffect, ct as DiagramNameOptions, d as scene3DDesc, da as DefaultAttributes, di as xsdUnderlineStyle, dn as Transform2DOptions, do as ColorTransformOptions, dr as GlowEffectOptions, dt as StyleDefHdrLstOptions, ea as unzipSync, ei as xsdLineEndSize, en as TableStyleOptions, eo as SchemeColorOptions, er as createEffectList, et as createStyleLbl, f as shape3DDesc, fa as OverrideAttributes, fi as xsdVerticalMergeRev, fn as createGroupTransform2D, fo as createColorTransforms, fr as createGlowEffect, ft as StyleDefHdrOptions, g as presetGeometryDesc, ga as Relationships, gi as uniqueNumericIdCreator, gn as BlipFillOptions, gr as CompoundLine, gt as createLayoutDefHdrLst, h as customGeometryDesc, ha as RelationshipType, hi as uniqueId, hn as createExtentionList, hr as createFillOverlayEffect, ht as createLayoutDefHdr, i as presLayoutVarsDesc, ia as OutputByType, ii as xsdPenAlignment, in as createTableStyle, io as RgbColorOptions, ir as PresetShadowVal, it as ColorsDefHdrLstOptions, j as scRgbColorDesc, ja as GradientShadeOptions, ji as convertPositionToEmu, jn as PresetMaterialType, jr as IdFormat, jt as createAdj, k as presetColorDesc, ka as extractBlipFillMedia, ki as convertPixelsToEmu, kn as GeometryGuide, kr as DashStop, kt as OrgChartOptions, l as tileDesc, la as buildCorePropertiesXmlString, li as xsdTextAnchor, ln as createTransformation, lo as HslColorOptions, lr as InnerShadowEffectOptions, lt as LayoutDefHdrLstOptions, m as transform2DDesc, ma as createOverride, mi as hashedId, mn as stringifyStretch, mr as FillOverlayEffectOptions, mt as createColorsDefHdrLst, n as diagramRelIdsDesc, na as zipSyncAndConvert, ni as xsdPathFillMode, nn as TableTextStyleOptions, no as ScRgbColorOptions, nr as createReflectionEffect, nt as createTxFillClrLst, o as blipFillDesc, oa as convertOutput, oi as xsdRectAlignment, on as parseTableStyleList, oo as PresetColor, or as OuterShadowEffectOptions, ot as DiagramCategoryOptions, p as groupTransform2DDesc, pa as createDefault, pi as UniqueNumericIdCreator, pn as createTransform2D, pr as BlendMode, pt as createColorsDefHdr, q as FontCollectionIndex, qa as SolidFillOptions, qi as ZIP_STORED_LEVEL, qn as EffectContainerType, qr as replaceSmartArtPlaceholders, qt as createShapeLocking, r as diagramStyleDesc, ra as OoxmlMimeType, ri as xsdPattern, rn as ThemeableLineStyleOptions, ro as createScRgbColor, rr as PresetShadowEffectOptions, rt as createTxLinClrLst, s as sourceRectangleDesc, sa as CoreProperties, si as xsdStrikeStyle, sn as MediaDataTransformation, so as PresetColorOptions, sr as RectAlignment, st as DiagramDescriptionOptions, t as diagramExtLstDesc, ta as zipAndConvert, ti as xsdMaterialType, tn as TableStyleRegion, to as createSchemeColor, tr as ReflectionEffectOptions, tt as createTxEffectClrLst, u as bevelDesc, ua as parseCorePropsElement, ui as xsdTextCaps, un as GroupTransform2DOptions, uo as createHslColor, ur as createInnerShadowEffect, ut as LayoutDefHdrOptions, v as groupLockingDesc, va as APP_PROPS_XML, vi as derivePasswordHash, vn as BlipOptions, vr as LineJoin, vt as createStyleDefHdrLst, w as gradientFillDesc, wa as BlipFillConfigOptions, wi as convertEmuToPixels, wn as PathFillMode, wr as LineEndLength, wt as AnimOneValue, x as effectListDesc, xa as PresetPattern, xi as EmuPosition, xn as CustomGeometryOptions, xr as PenAlignment, xt as AnimLevelValue, y as pictureLockingDesc, ya as createGroupFill, yi as hashPasswordAgile, yn as createBlip, yr as OutlineFillProperties, yt as AdjLstOptions, z as createDiagramSp3d, za as createGradientStop, zi as parseArchive, zn as CameraOptions, zr as getVideoRefs, zt as createPresLayoutVars } from "./index-FByLiyYM.mjs";
|
|
4
4
|
import { a as PointPropertySetOptions, c as stringifyDataModel, d as getColorXml, f as getLayoutXml, g as STYLE_CATEGORIES, h as LAYOUT_CATEGORIES, i as SmartArtData, l as stringifyConnection, m as COLOR_CATEGORIES, n as createDataModel, o as stringifyPoint, p as getStyleXml, r as SmartArtCollection, s as stringifyTransPoint, t as TreeNode, u as DEFAULT_DRAWING_XML } from "./index-eu1aFQCm.mjs";
|
|
5
5
|
import { _ as PPTX_NS, a as getFirstLevelElements, c as TokenNotFoundError, d as createTraverser, f as RenderedParagraphNode, g as DOCX_NS, h as createReplacer, i as createTextElementContents, l as createSplitInject, m as ReplacerConfig, n as getNextRelationshipIndex, o as patchSpaceAttribute, p as createRunRenderer, r as appendContentType, s as toJson, t as appendRelationship, u as createTokenReplacer, v as XmlNamespaceConfig } from "./index-DmPBJwSk.mjs";
|
|
6
|
-
import { a as ColorSchemeOptions, i as createThemeXml, n as DEFAULT_COLORS, o as FontSchemeOptions, r as buildThemeXml, s as ThemeOptions, t as themeDesc } from "./index-
|
|
6
|
+
import { a as ColorSchemeOptions, i as createThemeXml, n as DEFAULT_COLORS, o as FontSchemeOptions, r as buildThemeXml, s as ThemeOptions, t as themeDesc } from "./index-4hjRdzMU.mjs";
|
|
7
7
|
import { C as uCharHexNumber, S as twipsMeasureValue, T as unsignedDecimalNumber, _ as pointMeasureValue, a as ThemeColor, b as signedHpsMeasureValue, c as dateTimeValue, d as hexBinary, f as hexColorValue, g as percentageValue, h as measurementOrPercentValue, i as RelativeMeasure, l as decimalNumber, m as longHexNumber, n as PositivePercentage, o as ThemeFont, p as hpsMeasureValue, r as PositiveUniversalMeasure, s as UniversalMeasure, t as Percentage, u as eighthPointMeasureValue, v as positiveUniversalMeasureValue, w as universalMeasureValue, x as signedTwipsMeasureValue, y as shortHexNumber } from "./values-Dqj8cbcy.mjs";
|
|
8
|
-
export { APP_PROPS_XML, type AdjLstOptions, type AdjOptions, AnimLevelValue, type AnimLvlOptions, type AnimOneOptions, AnimOneValue,
|
|
8
|
+
export { APP_PROPS_XML, type AdjLstOptions, type AdjOptions, AnimLevelValue, type AnimLvlOptions, type AnimOneOptions, AnimOneValue, AxisChartType, type BackdropOptions, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, BubbleSeriesData, COLOR_CATEGORIES, type CameraOptions, type ChMaxOptions, type ChPrefOptions, ChartCollection, ChartData, ChartSeriesData, ChartSpaceOptions, ChartType, type ColorListOptions, ColorMethod, type ColorSchemeOptions, type ColorTransformOptions, type ColorsDefHdrLstOptions, type ColorsDefHdrOptions, type CompileFn, CompoundLine, type CompressionOptions, type ConnectionSite, type CoreProperties, type CustomDescriptor, type CustomGeometryOptions, DEFAULT_COLORS, DEFAULT_DRAWING_XML, DOCX_NS, type DashStop, DataLabelPosition, DataLabelsOptions, type DataType, type DefaultAttributes, type Descriptor, DescriptorRegistry, type DiagramCategoryOptions, type DiagramDescriptionOptions, type DiagramExtLstOptions, type DiagramExtensionOptions, type DiagramNameOptions, type DiagramRelIdsOptions, type DiagramStyleLblOptions, type DiagramStyleOptions, type DiagramTextPropsOptions, type EffectContainerType, type EffectDagOptions, type EffectExtent, type EffectListOptions, EmuPosition, ErrorBarDirection, ErrorBarOptions, ErrorBarType, ErrorValueType, type FillOptions, type FillOverlayEffectOptions, FontCollectionIndex, type FontSchemeOptions, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GraphicFrameLockingOptions, type GroupLockingOptions, type GroupTransform2DOptions, type HierBranchOptions, HierBranchStyle, type HslColorOptions, HueDirection, IdFormat, type InnerShadowEffectOptions, LAYOUT_CATEGORIES, type LayoutDefHdrLstOptions, type LayoutDefHdrOptions, type LightRigOptions, LineCap, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MediaDataTransformation, type MediaTransformation, type OnOffStyleType, OoxmlMimeType, type OrgChartOptions, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, type OutputByType, type OutputType, type OverrideAttributes, PPTX_NS, type Packer, type PackerOptions, ParsedArchive, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, Percentage, type PictureLockingOptions, PixelPosition, type Point3D, PointPropertySetOptions, PositivePercentage, PositiveUniversalMeasure, type PresLayoutVarsOptions, PresetColor, type PresetColorOptions, PresetDash, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, type ReadContext, RectAlignment, type ReflectionEffectOptions, type RelationshipType, Relationships, RelativeMeasure, type RelativeRect, type RenderedParagraphNode, type ReplacerConfig, type RgbColorOptions, STYLE_CATEGORIES, type ScRgbColorOptions, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, type ShapeLockingOptions, SmartArtCollection, SmartArtData, SmartArtRelOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, type StyleDefHdrLstOptions, type StyleDefHdrOptions, StyleMatrixIndex, type StyleMatrixReferenceOptions, SystemColor, type SystemColorOptions, type TableCellBorderOptions, type TableCellStyleOptions, type TablePartStyleOptions, type TableStyleListOptions, type TableStyleOptions, type TableStyleRegion, type TableTextStyleOptions, TargetModeType, ThemeColor, ThemeFont, type ThemeOptions, type ThemeableLineStyleOptions, TileAlignment, TileFlipMode, type TileOptions, TimeUnit, TokenNotFoundError, type Transform2DOptions, TreeNode, TrendlineOptions, TrendlineType, UniqueNumericIdCreator, UniversalMeasure, type Vector3D, View3DOptions, type WriteContext, type XmlNamespaceConfig, type XmlifyedFile, ZIP_DEFLATE_LEVEL, ZIP_STORED_LEVEL, type ZipOptions, type Zippable, addSmartArtRelationships, appendContentType, appendRelationship, bevelDesc, blipDesc, blipFillDesc, boolDecode, boolEncode, buildCorePropertiesXml, buildCorePropertiesXmlString, buildFill, buildThemeXml, calculateEffectExtent, chartSpaceDesc, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertPixelsToEmu, convertPointsToEmu, convertPositionToEmu, convertToEmu, convertToTwip, convertUniversalMeasureToEmu, convertUniversalMeasureToTwip, createAdj, createAdjLst, createAnimLvl, createAnimOne, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChMax, createChPref, createColorElement, createColorTransforms, createColorsDefHdr, createColorsDefHdrLst, createCustomDash, createCustomGeometry, createDataModel, createDefault, createDiagramExtLst, createDiagramRelIds, createDiagramSp3d, createDiagramStyle, createDiagramTxPr, createEffectClrLst, createEffectDag, createEffectList, createExtentionList, createFillClrLst, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefHdr, createLayoutDefHdrLst, createLinClrLst, createLineEnd, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createOverride, createPacker, createPatternFill, createPictureLocking, createPresLayoutVars, createPresetColor, createPresetShadowEffect, createReflectionEffect, createReplacer, createRgbColor, createRunRenderer, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSplitInject, createStyleDefHdr, createStyleDefHdrLst, createStyleLbl, createSystemColor, createTableStyle, createTableStyleList, createTextElementContents, createThemeXml, createTileInfo, createTokenReplacer, createTransform2D, createTransformation, createTraverser, createTxEffectClrLst, createTxFillClrLst, createTxLinClrLst, createZipStream, customGeometryDesc, dateTimeValue, decimalNumber, derivePasswordHash, diagramExtLstDesc, diagramRelIdsDesc, diagramStyleDesc, effectListDesc, eighthPointMeasureValue, enumDecode, enumEncode, extractBlipFillMedia, fillDesc, findAndReplaceImagePlaceholders, formatId, getColorDescriptor, getColorXml, getFirstLevelElements, getLayoutXml, getMediaRefs, getNextRelationshipIndex, getReferencedMedia, getStyleXml, getVideoRefs, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hasPlaceholders, hashPasswordAgile, hashedId, hexBinary, hexColorValue, hpsMeasureValue, hslColorDesc, invertMap, longHexNumber, measurementOrPercentValue, outlineDesc, parse, parseArchive, parseColorChoice, parseCorePropsElement, parseTableStyleList, parseUniversalMeasure, patchSpaceAttribute, patternFillDesc, percentageValue, pictureLockingDesc, pointMeasureValue, positiveUniversalMeasureValue, presLayoutVarsDesc, presetColorDesc, presetGeometryDesc, randomBytes, replaceAllPlaceholders, replaceChartPlaceholders, replaceHyperlinkPlaceholders, replaceImagePlaceholders, replaceMediaPlaceholders, replaceNumberingPlaceholders, replaceSmartArtPlaceholders, replaceVideoPlaceholders, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, solidFillDesc, sourceRectangleDesc, strFromU8, stretchDesc, stringify, stringifyAdjustmentValues, stringifyConnection, stringifyDataModel, stringifyPoint, stringifyPresetGeometry, stringifyStretch, stringifyTransPoint, systemColorDesc, themeDesc, tileDesc, toJson, toUint8Array, transform2DDesc, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, unzipSync, xsdBlendMode, xsdCompoundLine, xsdEffectContainer, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPresetShadow, xsdRectAlignment, xsdStrikeStyle, xsdTextAlign, xsdTextAnchor, xsdTextCaps, xsdUnderlineStyle, xsdVerticalMergeRev, zipAndConvert, zipSyncAndConvert };
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as solidFillDesc, $n as createTileInfo, $r as createOverride, $t as convertToTwip, A as bevelDesc, An as createFillOverlayEffect, Ar as createScRgbColor, At as createChMax, B as shapeLockingDesc, Bn as createLineEnd, Br as createPacker, Bt as createTableStyleList, C as diagramStyleDesc, Cn as PresetShadowVal, Cr as uniqueUuid, Ct as AnimLevelValue, D as sourceRectangleDesc, Dn as createInnerShadowEffect, Dr as createSystemColor, Dt as createAdjLst, E as blipFillDesc, En as createOuterShadowEffect, Er as SystemColor, Et as createAdj, F as customGeometryDesc, Fn as PresetDash, Fr as createColorTransforms, Ft as createGraphicFrameLocking, G as patternFillDesc, Gn as extractBlipFillMedia, Gr as zipAndConvert, Gt as convertEmuToPoints, H as outlineDesc, Hn as createGroupFill, Hr as strFromU8, Ht as createTransformation, I as presetGeometryDesc, In as createOutline, Ir as ParsedArchive, It as createGroupLocking, J as parseColorChoice, Jn as PathShadeType, Jr as convertOutput, Jt as convertMillimetersToTwip, K as getColorDescriptor, Kn as PresetPattern, Kr as zipSyncAndConvert, Kt as convertInchesToEmu, L as graphicFrameLockingDesc, Ln as LineEndLength, Lr as parseArchive, Lt as createPictureLocking, M as shape3DDesc, Mn as LineCap, Mr as PresetColor, Mt as createHierBranch, N as groupTransform2DDesc, Nn as LineJoin, Nr as createPresetColor, Nt as createOrgChart, O as stretchDesc, On as createGlowEffect, Or as SchemeColor, Ot as createAnimLvl, P as transform2DDesc, Pn as PenAlignment, Pr as createHslColor, Pt as createPresLayoutVars, Q as schemeColorDesc, Qn as TileAlignment, Qr as createDefault, Qt as convertToEmu, R as groupLockingDesc, Rn as LineEndType, Rr as ZIP_DEFLATE_LEVEL, Rt as createShapeLocking, S as diagramRelIdsDesc, Sn as createReflectionEffect, Sr as uniqueNumericIdCreator, St as createStyleDefHdrLst, T as blipDesc, Tn as RectAlignment, Tr as createSolidFill, Tt as HierBranchStyle, U as fillDesc, Un as createNoFill, Ur as toUint8Array, Ut as convertEmuToInches, V as effectListDesc, Vn as createCustomDash, Vr as createZipStream, Vt as parseTableStyleList, W as gradientFillDesc, Wn as buildFill, Wr as unzipSync, Wt as convertEmuToPixels, X as rgbColorDesc, Xn as createGradientFill, Xr as buildCorePropertiesXmlString, Xt as convertPointsToEmu, Y as presetColorDesc, Yn as TileFlipMode, Yr as buildCorePropertiesXml, Yt as convertPixelsToEmu, Z as scRgbColorDesc, Zn as createGradientStop, Zr as parseCorePropsElement, Zt as convertPositionToEmu, _ as derivePasswordHash, _n as createScene3D, _r as xsdVerticalMergeRev, _t as createColorsDefHdr, a as getMediaRefs, an as stringifyStretch, ar as xsdLineEndSize, at as ColorMethod, b as compileMapping, bn as createEffectList, br as hashedId, bt as createLayoutDefHdrLst, c as hasPlaceholders, cn as createExtentionList, cr as xsdPattern, ct as StyleMatrixIndex, d as replaceHyperlinkPlaceholders, dn as stringifyAdjustmentValues, dr as xsdRectAlignment, dt as createFillClrLst, ei as Relationships, en as convertUniversalMeasureToEmu, er as invertMap, et as systemColorDesc, f as replaceImagePlaceholders, fn as PresetMaterialType, fr as xsdStrikeStyle, ft as createLinClrLst, g as replaceVideoPlaceholders, gn as createBottomBevel, gr as xsdUnderlineStyle, gt as createTxLinClrLst, h as replaceSmartArtPlaceholders, hn as createBevel, hr as xsdTextCaps, ht as createTxFillClrLst, i as formatId, in as createTransform2D, ir as xsdLineCap, it as createDiagramRelIds, j as scene3DDesc, jn as CompoundLine, jr as createRgbColor, jt as createChPref, k as tileDesc, kn as BlendMode, kr as createSchemeColor, kt as createAnimOne, l as replaceAllPlaceholders, ln as createCustomGeometry, lr as xsdPenAlignment, lt as createDiagramStyle, m as replaceNumberingPlaceholders, mn as BevelPresetType, mr as xsdTextAnchor, mt as createTxEffectClrLst, n as collectPlaceholderKeys, ni as APP_PROPS_XML, nn as parseUniversalMeasure, nr as xsdCompoundLine, nt as createDiagramSp3d, o as getReferencedMedia, on as createBlipFill, or as xsdMaterialType, ot as FontCollectionIndex, p as replaceMediaPlaceholders, pn as createShape3D, pr as xsdTextAlign, pt as createStyleLbl, q as hslColorDesc, qn as createPatternFill, qr as OoxmlMimeType, qt as convertInchesToTwip, r as findAndReplaceImagePlaceholders, rn as createGroupTransform2D, rr as xsdEffectContainer, rt as createDiagramTxPr, s as getVideoRefs, sn as createBlip, sr as xsdPathFillMode, st as HueDirection, t as addSmartArtRelationships, ti as TargetModeType, tn as convertUniversalMeasureToTwip, tr as xsdBlendMode, tt as createDiagramExtLst, u as replaceChartPlaceholders, un as stringifyPresetGeometry, ur as xsdPresetShadow, ut as createEffectClrLst, v as hashPasswordAgile, vn as createEffectDag, vr as createSourceRectangle, vt as createColorsDefHdrLst, w as presLayoutVarsDesc, wn as createPresetShadowEffect, wr as createColorElement, wt as AnimOneValue, x as diagramExtLstDesc, xn as createSoftEdgeEffect, xr as uniqueId, xt as createStyleDefHdr, y as randomBytes, yn as calculateEffectExtent, yr as createBlipEffects, yt as createLayoutDefHdr, z as pictureLockingDesc, zn as LineEndWidth, zr as ZIP_STORED_LEVEL, zt as createTableStyle } from "./src-Bd5Aw7iO.mjs";
|
|
2
2
|
import { a as stringifyDataModel, c as getColorXml, d as COLOR_CATEGORIES, f as LAYOUT_CATEGORIES, i as stringifyTransPoint, l as getLayoutXml, n as SmartArtCollection, o as stringifyConnection, p as STYLE_CATEGORIES, r as stringifyPoint, s as DEFAULT_DRAWING_XML, t as createDataModel, u as getStyleXml } from "./smartart-DCY-Vdv7.mjs";
|
|
3
|
-
import { a as TimeUnit, c as ChartCollection, i as ErrorValueType, n as ErrorBarDirection, o as TrendlineType, r as ErrorBarType, s as chartSpaceDesc, t as DataLabelPosition } from "./chart-
|
|
4
|
-
import { a as enumEncode,
|
|
3
|
+
import { a as TimeUnit, c as ChartCollection, i as ErrorValueType, n as ErrorBarDirection, o as TrendlineType, r as ErrorBarType, s as chartSpaceDesc, t as DataLabelPosition } from "./chart-DwE8FCFk.mjs";
|
|
4
|
+
import { a as enumEncode, i as enumDecode, n as boolDecode, o as parse, r as boolEncode, s as stringify, t as DescriptorRegistry } from "./descriptor-DcQm32dg.mjs";
|
|
5
5
|
import { a as createTraverser, c as TokenNotFoundError, d as getFirstLevelElements, f as patchSpaceAttribute, h as PPTX_NS, i as createReplacer, l as createSplitInject, m as DOCX_NS, n as getNextRelationshipIndex, o as createRunRenderer, p as toJson, r as appendContentType, s as createTokenReplacer, t as appendRelationship, u as createTextElementContents } from "./patch-ilNZTQmG.mjs";
|
|
6
6
|
import { i as DEFAULT_COLORS, n as createThemeXml, r as buildThemeXml, t as themeDesc } from "./theme-CiNzdl-9.mjs";
|
|
7
7
|
import { _ as twipsMeasureValue, a as eighthPointMeasureValue, b as unsignedDecimalNumber, c as hpsMeasureValue, d as percentageValue, f as pointMeasureValue, g as signedTwipsMeasureValue, h as signedHpsMeasureValue, i as decimalNumber, l as longHexNumber, m as shortHexNumber, n as ThemeFont, o as hexBinary, p as positiveUniversalMeasureValue, r as dateTimeValue, s as hexColorValue, t as ThemeColor, u as measurementOrPercentValue, v as uCharHexNumber, y as universalMeasureValue } from "./values-CVIZcTRw.mjs";
|
|
8
|
-
export { APP_PROPS_XML, AnimLevelValue, AnimOneValue, BevelPresetType, BlendMode, COLOR_CATEGORIES, ChartCollection, ColorMethod, CompoundLine, DEFAULT_COLORS, DEFAULT_DRAWING_XML, DOCX_NS, DataLabelPosition,
|
|
8
|
+
export { APP_PROPS_XML, AnimLevelValue, AnimOneValue, BevelPresetType, BlendMode, COLOR_CATEGORIES, ChartCollection, ColorMethod, CompoundLine, DEFAULT_COLORS, DEFAULT_DRAWING_XML, DOCX_NS, DataLabelPosition, DescriptorRegistry, ErrorBarDirection, ErrorBarType, ErrorValueType, FontCollectionIndex, HierBranchStyle, HueDirection, LAYOUT_CATEGORIES, LineCap, LineEndLength, LineEndType, LineEndWidth, LineJoin, OoxmlMimeType, PPTX_NS, ParsedArchive, PathShadeType, PenAlignment, PresetColor, PresetDash, PresetMaterialType, PresetPattern, PresetShadowVal, RectAlignment, Relationships, STYLE_CATEGORIES, SchemeColor, SmartArtCollection, StyleMatrixIndex, SystemColor, TargetModeType, ThemeColor, ThemeFont, TileAlignment, TileFlipMode, TimeUnit, TokenNotFoundError, TrendlineType, ZIP_DEFLATE_LEVEL, ZIP_STORED_LEVEL, addSmartArtRelationships, appendContentType, appendRelationship, bevelDesc, blipDesc, blipFillDesc, boolDecode, boolEncode, buildCorePropertiesXml, buildCorePropertiesXmlString, buildFill, buildThemeXml, calculateEffectExtent, chartSpaceDesc, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertPixelsToEmu, convertPointsToEmu, convertPositionToEmu, convertToEmu, convertToTwip, convertUniversalMeasureToEmu, convertUniversalMeasureToTwip, createAdj, createAdjLst, createAnimLvl, createAnimOne, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChMax, createChPref, createColorElement, createColorTransforms, createColorsDefHdr, createColorsDefHdrLst, createCustomDash, createCustomGeometry, createDataModel, createDefault, createDiagramExtLst, createDiagramRelIds, createDiagramSp3d, createDiagramStyle, createDiagramTxPr, createEffectClrLst, createEffectDag, createEffectList, createExtentionList, createFillClrLst, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefHdr, createLayoutDefHdrLst, createLinClrLst, createLineEnd, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createOverride, createPacker, createPatternFill, createPictureLocking, createPresLayoutVars, createPresetColor, createPresetShadowEffect, createReflectionEffect, createReplacer, createRgbColor, createRunRenderer, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSplitInject, createStyleDefHdr, createStyleDefHdrLst, createStyleLbl, createSystemColor, createTableStyle, createTableStyleList, createTextElementContents, createThemeXml, createTileInfo, createTokenReplacer, createTransform2D, createTransformation, createTraverser, createTxEffectClrLst, createTxFillClrLst, createTxLinClrLst, createZipStream, customGeometryDesc, dateTimeValue, decimalNumber, derivePasswordHash, diagramExtLstDesc, diagramRelIdsDesc, diagramStyleDesc, effectListDesc, eighthPointMeasureValue, enumDecode, enumEncode, extractBlipFillMedia, fillDesc, findAndReplaceImagePlaceholders, formatId, getColorDescriptor, getColorXml, getFirstLevelElements, getLayoutXml, getMediaRefs, getNextRelationshipIndex, getReferencedMedia, getStyleXml, getVideoRefs, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hasPlaceholders, hashPasswordAgile, hashedId, hexBinary, hexColorValue, hpsMeasureValue, hslColorDesc, invertMap, longHexNumber, measurementOrPercentValue, outlineDesc, parse, parseArchive, parseColorChoice, parseCorePropsElement, parseTableStyleList, parseUniversalMeasure, patchSpaceAttribute, patternFillDesc, percentageValue, pictureLockingDesc, pointMeasureValue, positiveUniversalMeasureValue, presLayoutVarsDesc, presetColorDesc, presetGeometryDesc, randomBytes, replaceAllPlaceholders, replaceChartPlaceholders, replaceHyperlinkPlaceholders, replaceImagePlaceholders, replaceMediaPlaceholders, replaceNumberingPlaceholders, replaceSmartArtPlaceholders, replaceVideoPlaceholders, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, solidFillDesc, sourceRectangleDesc, strFromU8, stretchDesc, stringify, stringifyAdjustmentValues, stringifyConnection, stringifyDataModel, stringifyPoint, stringifyPresetGeometry, stringifyStretch, stringifyTransPoint, systemColorDesc, themeDesc, tileDesc, toJson, toUint8Array, transform2DDesc, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, unzipSync, xsdBlendMode, xsdCompoundLine, xsdEffectContainer, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPresetShadow, xsdRectAlignment, xsdStrikeStyle, xsdTextAlign, xsdTextAnchor, xsdTextCaps, xsdUnderlineStyle, xsdVerticalMergeRev, zipAndConvert, zipSyncAndConvert };
|