@office-open/core 0.6.7 → 0.6.9
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 +9 -9
- package/dist/chart/index.d.mts +1 -1
- package/dist/chart/index.mjs +1 -1
- package/dist/{chart-DO9i3S1G.mjs → chart-BjBXDvRe.mjs} +1 -1
- package/dist/drawingml/index.d.mts +2 -2
- package/dist/drawingml/index.mjs +1 -1
- package/dist/{drawingml-DzU9sEb0.mjs → drawingml-B_cFnIfw.mjs} +9 -9
- package/dist/{index-BCjRiF78.d.mts → index-BD7Tgfi4.d.mts} +1 -1
- package/dist/{index-CCGNb26x.d.mts → index-C0Iqsm0K.d.mts} +2 -2
- package/dist/{index-Bf86IyeY.d.mts → index-CECweGf1.d.mts} +2 -2
- package/dist/{index-bZQnCpM1.d.mts → index-CzsIq-Qi.d.mts} +25 -40
- package/dist/index.d.mts +31 -30
- package/dist/index.mjs +24 -42
- package/dist/patch/index.d.mts +2 -2
- package/dist/patch/index.mjs +1 -1
- package/dist/{patch-O6SD_BaJ.mjs → patch-DCGadPUU.mjs} +56 -38
- package/dist/smartart/index.d.mts +1 -1
- package/dist/smartart/index.mjs +1 -1
- package/dist/{smartart-vyDm6U1_.mjs → smartart-3Aw0Aho1.mjs} +5 -9
- package/dist/values.d.mts +1 -1
- package/dist/{xml-components-ctIqansl.mjs → xml-components-BWnF8xox.mjs} +38 -83
- package/package.json +2 -2
- /package/dist/{index-DNLRdIqy.d.mts → index-BCUfgp9A.d.mts} +0 -0
- /package/dist/{values-QyWq4U4A.d.mts → values-COjPGYkS.d.mts} +0 -0
package/README.md
CHANGED
|
@@ -96,15 +96,15 @@ gen(); // → 1, 2, 3, ...
|
|
|
96
96
|
|
|
97
97
|
| Operation | hz |
|
|
98
98
|
| ----------------------------- | ----- |
|
|
99
|
-
| `decimalNumber` | ~
|
|
100
|
-
| `hexColorValue` (6-char hex) | ~
|
|
101
|
-
| `uniqueNumericIdCreator` | ~
|
|
102
|
-
| `uniqueId` (nanoid) | ~3.
|
|
103
|
-
| `uniqueUuid` | ~
|
|
104
|
-
| `onOffObj` (true) | ~
|
|
105
|
-
| `onOffObj` (false) | ~3.
|
|
106
|
-
| `BuilderElement` (attributes) | ~
|
|
107
|
-
| `BuilderElement` (children) | ~
|
|
99
|
+
| `decimalNumber` | ~21M |
|
|
100
|
+
| `hexColorValue` (6-char hex) | ~13M |
|
|
101
|
+
| `uniqueNumericIdCreator` | ~21M |
|
|
102
|
+
| `uniqueId` (nanoid) | ~3.2M |
|
|
103
|
+
| `uniqueUuid` | ~2.0M |
|
|
104
|
+
| `onOffObj` (true) | ~19M |
|
|
105
|
+
| `onOffObj` (false) | ~3.7M |
|
|
106
|
+
| `BuilderElement` (attributes) | ~3.1M |
|
|
107
|
+
| `BuilderElement` (children) | ~2.6M |
|
|
108
108
|
|
|
109
109
|
## License
|
|
110
110
|
|
package/dist/chart/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as CatAx, a as ChartData, c as ChartSeriesData, d as createChartType, f as ScatterChart, g as AreaChart, h as BarChart, i as ChartCollection, l as ChartType, m as LineChart, n as createNumRef, o as ChartSpace, p as PieChart, r as createStrRef, s as ChartSpaceOptions, t as ChartTitle, u as ChartTypeOptions, v as ValAx } from "../index-
|
|
1
|
+
import { _ as CatAx, a as ChartData, c as ChartSeriesData, d as createChartType, f as ScatterChart, g as AreaChart, h as BarChart, i as ChartCollection, l as ChartType, m as LineChart, n as createNumRef, o as ChartSpace, p as PieChart, r as createStrRef, s as ChartSpaceOptions, t as ChartTitle, u as ChartTypeOptions, v as ValAx } from "../index-CECweGf1.mjs";
|
|
2
2
|
export { AreaChart, BarChart, CatAx, ChartCollection, ChartData, ChartSeriesData, ChartSpace, ChartSpaceOptions, ChartTitle, ChartType, ChartTypeOptions, LineChart, PieChart, ScatterChart, ValAx, createChartType, createNumRef, createStrRef };
|
package/dist/chart/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ScatterChart, c as BarChart, d as createStrRef, f as CatAx, i as createChartType, l as AreaChart, n as ChartSpace, o as PieChart, p as ValAx, r as ChartTitle, s as LineChart, t as ChartCollection, u as createNumRef } from "../chart-
|
|
1
|
+
import { a as ScatterChart, c as BarChart, d as createStrRef, f as CatAx, i as createChartType, l as AreaChart, n as ChartSpace, o as PieChart, p as ValAx, r as ChartTitle, s as LineChart, t as ChartCollection, u as createNumRef } from "../chart-BjBXDvRe.mjs";
|
|
2
2
|
export { AreaChart, BarChart, CatAx, ChartCollection, ChartSpace, ChartTitle, LineChart, PieChart, ScatterChart, ValAx, createChartType, createNumRef, createStrRef };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BuilderElement,
|
|
1
|
+
import { a as BuilderElement, g as wrapEl, l as chartAttr, o as EmptyElement, y as XmlComponent } from "./xml-components-BWnF8xox.mjs";
|
|
2
2
|
//#region src/chart/axes.ts
|
|
3
3
|
/**
|
|
4
4
|
* c:scaling — axis scaling configuration (minOccurs=1 in EG_AxShared).
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as RectAlignment, $t as createSolidFill, A as createBevel, At as FillOptions, B as createSoftEdgeEffect, Bt as RelativeRect, C as GeometryGuide, Ct as createGroupFill, D as createShape3D, Dt as createNoFill, E as Shape3DOptions, Et as createPatternFill, F as Point3D, Ft as GradientShadeOptions, G as EffectListOptions, Gt as TileOptions, H as EffectDagOptions, Ht as createGradientFill, I as Scene3DOptions, It as GradientStop, J as createReflectionEffect, Jt as createSourceRectangle, K as createEffectList, Kt as createTileInfo, L as SphereCoords, Lt as LinearShadeOptions, M as BackdropOptions, Mt as buildFill, N as CameraOptions, Nt as extractBlipFillMedia, O as BevelOptions, Ot as BlipFillConfigOptions, P as LightRigOptions, Pt as GradientFillOptions, Q as OuterShadowEffectOptions, Qt as createColorElement, R as Vector3D, Rt as PathShadeOptions, S as PresetGeometryOptions, St as createCustomDash, T as PresetMaterialType, Tt as PresetPattern, U as createEffectDag, Ut as createGradientStop, V as EffectContainerType, Vt as TileFlipMode, W as BlurEffectOptions, Wt as TileAlignment, X as PresetShadowVal, Xt as createBlipEffects, Y as PresetShadowEffectOptions, Yt as BlipEffectsOptions, Z as createPresetShadowEffect, Zt as SolidFillOptions, _ as PathCommand, _t as LineEndOptions, a as Transform2DOptions, an as createSchemeColor, at as BlendMode, b as createCustomGeometry, bt as createLineEnd, c as Stretch, cn as RgbColorOptions, ct as CompoundLine, d as createBlipFill, dn as PresetColorOptions, dt as OutlineFillProperties, en as SystemColor, et as createOuterShadowEffect, f as BlipOptions, fn as createPresetColor, ft as OutlineOptions, g as GeomRect, gn as createColorTransforms, gt as LineEndLength, h as CustomGeometryOptions, hn as ColorTransformOptions, ht as createOutline, i as GroupTransform2DOptions, in as SchemeColorOptions, it as createGlowEffect, j as createBottomBevel, jt as GradientStopOptions, k as BevelPresetType, kt as BlipFillMediaData, l as createExtentionList, ln as createRgbColor, lt as LineCap, m as ConnectionSite, mn as createHslColor, mt as PresetDash, n as MediaTransformation, nn as createSystemColor, nt as createInnerShadowEffect, o as createGroupTransform2D, on as ScRgbColorOptions, ot as FillOverlayEffectOptions, p as createBlip, pn as HslColorOptions, pt as PenAlignment, q as ReflectionEffectOptions, qt as SourceRectangleOptions, r as createTransformation, rn as SchemeColor, rt as GlowEffectOptions, s as createTransform2D, sn as createScRgbColor, st as createFillOverlayEffect, t as MediaDataTransformation, tn as SystemColorOptions, tt as InnerShadowEffectOptions, u as BlipFillOptions, un as PresetColor, ut as LineJoin, v as PathFillMode, vt as LineEndType, w as createAdjustmentValues, wt as PatternFillOptions, x as PresetGeometry, xt as DashStop, y as PathOptions, yt as LineEndWidth, z as createScene3D, zt as PathShadeType } from "../index-
|
|
2
|
-
export { BackdropOptions, BevelOptions, BevelPresetType, BlendMode, BlipEffectsOptions, BlipFillConfigOptions, BlipFillMediaData, BlipFillOptions, BlipOptions, BlurEffectOptions, CameraOptions, ColorTransformOptions, CompoundLine, ConnectionSite, CustomGeometryOptions, DashStop, EffectContainerType, EffectDagOptions, EffectListOptions, FillOptions, FillOverlayEffectOptions, GeomRect, GeometryGuide, GlowEffectOptions, GradientFillOptions, GradientShadeOptions, GradientStop, GradientStopOptions, GroupTransform2DOptions, HslColorOptions, InnerShadowEffectOptions, LightRigOptions, LineCap, LineEndLength, LineEndOptions, LineEndType, LineEndWidth, LineJoin, LinearShadeOptions, MediaDataTransformation, MediaTransformation, OuterShadowEffectOptions, OutlineFillProperties, OutlineOptions, PathCommand, PathFillMode, PathOptions, PathShadeOptions, PathShadeType, PatternFillOptions, PenAlignment, Point3D, PresetColor, PresetColorOptions, PresetDash, PresetGeometry, PresetGeometryOptions, PresetMaterialType, PresetPattern, PresetShadowEffectOptions, PresetShadowVal, RectAlignment, ReflectionEffectOptions, RelativeRect, RgbColorOptions, ScRgbColorOptions, Scene3DOptions, SchemeColor, SchemeColorOptions, Shape3DOptions, SolidFillOptions, SourceRectangleOptions, SphereCoords, Stretch, SystemColor, SystemColorOptions, TileAlignment, TileFlipMode, TileOptions, Transform2DOptions, Vector3D, buildFill, createAdjustmentValues, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createCustomDash, createCustomGeometry, createEffectDag, createEffectList, createExtentionList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGroupFill, createGroupTransform2D, createHslColor, createInnerShadowEffect, createLineEnd, createNoFill, createOuterShadowEffect, createOutline, createPatternFill, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSystemColor, createTileInfo, createTransform2D, createTransformation, extractBlipFillMedia };
|
|
1
|
+
import { $ as RectAlignment, $t as createSolidFill, A as createBevel, At as FillOptions, B as createSoftEdgeEffect, Bt as RelativeRect, C as GeometryGuide, Ct as createGroupFill, D as createShape3D, Dt as createNoFill, E as Shape3DOptions, Et as createPatternFill, F as Point3D, Ft as GradientShadeOptions, G as EffectListOptions, Gt as TileOptions, H as EffectDagOptions, Ht as createGradientFill, I as Scene3DOptions, It as GradientStop, J as createReflectionEffect, Jt as createSourceRectangle, K as createEffectList, Kt as createTileInfo, L as SphereCoords, Lt as LinearShadeOptions, M as BackdropOptions, Mt as buildFill, N as CameraOptions, Nt as extractBlipFillMedia, O as BevelOptions, Ot as BlipFillConfigOptions, P as LightRigOptions, Pt as GradientFillOptions, Q as OuterShadowEffectOptions, Qt as createColorElement, R as Vector3D, Rt as PathShadeOptions, S as PresetGeometryOptions, St as createCustomDash, T as PresetMaterialType, Tt as PresetPattern, U as createEffectDag, Ut as createGradientStop, V as EffectContainerType, Vt as TileFlipMode, W as BlurEffectOptions, Wt as TileAlignment, X as PresetShadowVal, Xt as createBlipEffects, Y as PresetShadowEffectOptions, Yt as BlipEffectsOptions, Z as createPresetShadowEffect, Zt as SolidFillOptions, _ as PathCommand, _t as LineEndOptions, a as Transform2DOptions, an as createSchemeColor, at as BlendMode, b as createCustomGeometry, bt as createLineEnd, c as Stretch, cn as RgbColorOptions, ct as CompoundLine, d as createBlipFill, dn as PresetColorOptions, dt as OutlineFillProperties, en as SystemColor, et as createOuterShadowEffect, f as BlipOptions, fn as createPresetColor, ft as OutlineOptions, g as GeomRect, gn as createColorTransforms, gt as LineEndLength, h as CustomGeometryOptions, hn as ColorTransformOptions, ht as createOutline, i as GroupTransform2DOptions, in as SchemeColorOptions, it as createGlowEffect, j as createBottomBevel, jt as GradientStopOptions, k as BevelPresetType, kt as BlipFillMediaData, l as createExtentionList, ln as createRgbColor, lt as LineCap, m as ConnectionSite, mn as createHslColor, mt as PresetDash, n as MediaTransformation, nn as createSystemColor, nt as createInnerShadowEffect, o as createGroupTransform2D, on as ScRgbColorOptions, ot as FillOverlayEffectOptions, p as createBlip, pn as HslColorOptions, pt as PenAlignment, q as ReflectionEffectOptions, qt as SourceRectangleOptions, r as createTransformation, rn as SchemeColor, rt as GlowEffectOptions, s as createTransform2D, sn as createScRgbColor, st as createFillOverlayEffect, t as MediaDataTransformation, tn as SystemColorOptions, tt as InnerShadowEffectOptions, u as BlipFillOptions, un as PresetColor, ut as LineJoin, v as PathFillMode, vt as LineEndType, w as createAdjustmentValues, wt as PatternFillOptions, x as PresetGeometry, xt as DashStop, y as PathOptions, yt as LineEndWidth, z as createScene3D, zt as PathShadeType } from "../index-C0Iqsm0K.mjs";
|
|
2
|
+
export { type BackdropOptions, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, type CameraOptions, type ColorTransformOptions, CompoundLine, type ConnectionSite, type CustomGeometryOptions, type DashStop, type EffectContainerType, type EffectDagOptions, type EffectListOptions, type FillOptions, type FillOverlayEffectOptions, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GroupTransform2DOptions, type HslColorOptions, type InnerShadowEffectOptions, type LightRigOptions, LineCap, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MediaDataTransformation, type MediaTransformation, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, type Point3D, PresetColor, type PresetColorOptions, PresetDash, PresetGeometry, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, RectAlignment, type ReflectionEffectOptions, type RelativeRect, type RgbColorOptions, type ScRgbColorOptions, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, Stretch, SystemColor, type SystemColorOptions, TileAlignment, TileFlipMode, type TileOptions, type Transform2DOptions, type Vector3D, buildFill, createAdjustmentValues, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createCustomDash, createCustomGeometry, createEffectDag, createEffectList, createExtentionList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGroupFill, createGroupTransform2D, createHslColor, createInnerShadowEffect, createLineEnd, createNoFill, createOuterShadowEffect, createOutline, createPatternFill, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSystemColor, createTileInfo, createTransform2D, createTransformation, extractBlipFillMedia };
|
package/dist/drawingml/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as LineJoin, B as createNoFill, C as createOuterShadowEffect, Ct as createSchemeColor, D as createFillOverlayEffect, Dt as createPresetColor, E as BlendMode, Et as PresetColor, F as LineEndType, G as PathShadeType, H as extractBlipFillMedia, I as LineEndWidth, J as createGradientStop, K as TileFlipMode, L as createLineEnd, M as PresetDash, N as createOutline, O as CompoundLine, Ot as createHslColor, P as LineEndLength, R as createCustomDash, S as RectAlignment, St as SchemeColor, T as createGlowEffect, Tt as createRgbColor, U as PresetPattern, V as buildFill, W as createPatternFill, X as createTileInfo, Y as TileAlignment, _ as createEffectList, _t as createBlipEffects, a as createBlip, b as PresetShadowVal, bt as SystemColor, c as PresetGeometry, d as createShape3D, f as BevelPresetType, g as createEffectDag, gt as createSourceRectangle, h as createScene3D, ht as Stretch, i as createBlipFill, j as PenAlignment, k as LineCap, kt as createColorTransforms, l as createAdjustmentValues, m as createBottomBevel, n as createGroupTransform2D, o as createExtentionList, p as createBevel, q as createGradientFill, r as createTransform2D, s as createCustomGeometry, t as createTransformation, u as PresetMaterialType, v as createSoftEdgeEffect, vt as createColorElement, w as createInnerShadowEffect, wt as createScRgbColor, x as createPresetShadowEffect, xt as createSystemColor, y as createReflectionEffect, yt as createSolidFill, z as createGroupFill } from "../drawingml-
|
|
1
|
+
import { A as LineJoin, B as createNoFill, C as createOuterShadowEffect, Ct as createSchemeColor, D as createFillOverlayEffect, Dt as createPresetColor, E as BlendMode, Et as PresetColor, F as LineEndType, G as PathShadeType, H as extractBlipFillMedia, I as LineEndWidth, J as createGradientStop, K as TileFlipMode, L as createLineEnd, M as PresetDash, N as createOutline, O as CompoundLine, Ot as createHslColor, P as LineEndLength, R as createCustomDash, S as RectAlignment, St as SchemeColor, T as createGlowEffect, Tt as createRgbColor, U as PresetPattern, V as buildFill, W as createPatternFill, X as createTileInfo, Y as TileAlignment, _ as createEffectList, _t as createBlipEffects, a as createBlip, b as PresetShadowVal, bt as SystemColor, c as PresetGeometry, d as createShape3D, f as BevelPresetType, g as createEffectDag, gt as createSourceRectangle, h as createScene3D, ht as Stretch, i as createBlipFill, j as PenAlignment, k as LineCap, kt as createColorTransforms, l as createAdjustmentValues, m as createBottomBevel, n as createGroupTransform2D, o as createExtentionList, p as createBevel, q as createGradientFill, r as createTransform2D, s as createCustomGeometry, t as createTransformation, u as PresetMaterialType, v as createSoftEdgeEffect, vt as createColorElement, w as createInnerShadowEffect, wt as createScRgbColor, x as createPresetShadowEffect, xt as createSystemColor, y as createReflectionEffect, yt as createSolidFill, z as createGroupFill } from "../drawingml-B_cFnIfw.mjs";
|
|
2
2
|
export { BevelPresetType, BlendMode, CompoundLine, LineCap, LineEndLength, LineEndType, LineEndWidth, LineJoin, PathShadeType, PenAlignment, PresetColor, PresetDash, PresetGeometry, PresetMaterialType, PresetPattern, PresetShadowVal, RectAlignment, SchemeColor, Stretch, SystemColor, TileAlignment, TileFlipMode, buildFill, createAdjustmentValues, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createCustomDash, createCustomGeometry, createEffectDag, createEffectList, createExtentionList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGroupFill, createGroupTransform2D, createHslColor, createInnerShadowEffect, createLineEnd, createNoFill, createOuterShadowEffect, createOutline, createPatternFill, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSystemColor, createTileInfo, createTransform2D, createTransformation, extractBlipFillMedia };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BuilderElement,
|
|
1
|
+
import { a as BuilderElement, y as XmlComponent } from "./xml-components-BWnF8xox.mjs";
|
|
2
2
|
import hash from "hash.js";
|
|
3
3
|
import { customAlphabet, nanoid } from "nanoid/non-secure";
|
|
4
4
|
//#region src/converters.ts
|
|
@@ -310,7 +310,7 @@ const createHslColor = (options) => {
|
|
|
310
310
|
value: options.saturation
|
|
311
311
|
}
|
|
312
312
|
},
|
|
313
|
-
children:
|
|
313
|
+
children: transforms,
|
|
314
314
|
name: "a:hslClr"
|
|
315
315
|
});
|
|
316
316
|
};
|
|
@@ -510,7 +510,7 @@ const createPresetColor = (options) => {
|
|
|
510
510
|
key: "val",
|
|
511
511
|
value: options.value
|
|
512
512
|
} },
|
|
513
|
-
children:
|
|
513
|
+
children: transforms,
|
|
514
514
|
name: "a:prstClr"
|
|
515
515
|
});
|
|
516
516
|
};
|
|
@@ -554,7 +554,7 @@ const createRgbColor = (options) => {
|
|
|
554
554
|
key: "val",
|
|
555
555
|
value: options.value
|
|
556
556
|
} },
|
|
557
|
-
children:
|
|
557
|
+
children: transforms,
|
|
558
558
|
name: "a:srgbClr"
|
|
559
559
|
});
|
|
560
560
|
};
|
|
@@ -610,7 +610,7 @@ const createScRgbColor = (options) => {
|
|
|
610
610
|
value: options.b
|
|
611
611
|
}
|
|
612
612
|
},
|
|
613
|
-
children:
|
|
613
|
+
children: transforms,
|
|
614
614
|
name: "a:scrgbClr"
|
|
615
615
|
});
|
|
616
616
|
};
|
|
@@ -699,7 +699,7 @@ const createSchemeColor = (options) => {
|
|
|
699
699
|
key: "val",
|
|
700
700
|
value: options.value
|
|
701
701
|
} },
|
|
702
|
-
children:
|
|
702
|
+
children: transforms,
|
|
703
703
|
name: "a:schemeClr"
|
|
704
704
|
});
|
|
705
705
|
};
|
|
@@ -790,7 +790,7 @@ const createSystemColor = (options) => {
|
|
|
790
790
|
value: options.value
|
|
791
791
|
}
|
|
792
792
|
},
|
|
793
|
-
children:
|
|
793
|
+
children: transforms,
|
|
794
794
|
name: "a:sysClr"
|
|
795
795
|
});
|
|
796
796
|
};
|
|
@@ -1139,7 +1139,7 @@ var Stretch = class extends XmlComponent {
|
|
|
1139
1139
|
/** Invert a Record<K, V> into Record<V, K>. */
|
|
1140
1140
|
function invertMap(map) {
|
|
1141
1141
|
const result = {};
|
|
1142
|
-
for (const key
|
|
1142
|
+
for (const key of Object.keys(map)) result[map[key]] = key;
|
|
1143
1143
|
return result;
|
|
1144
1144
|
}
|
|
1145
1145
|
/** Create a bidirectional mapping helper from a single forward map. */
|
|
@@ -1797,7 +1797,7 @@ function toUint8Array(data) {
|
|
|
1797
1797
|
* Returns undefined for non-blip fills.
|
|
1798
1798
|
*
|
|
1799
1799
|
* The returned data should be registered with the document's media store
|
|
1800
|
-
* during
|
|
1800
|
+
* during serialization so the packer can resolve the `{fileName}` placeholder.
|
|
1801
1801
|
*/
|
|
1802
1802
|
const extractBlipFillMedia = (fill) => {
|
|
1803
1803
|
if (typeof fill === "string" || fill.type !== "blip") return void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as BuilderElement, b as XmlComponent } from "./index-CzsIq-Qi.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/drawingml/color/color-transform.d.ts
|
|
4
4
|
/**
|
|
@@ -1130,7 +1130,7 @@ type FillOptions = string | {
|
|
|
1130
1130
|
* Returns undefined for non-blip fills.
|
|
1131
1131
|
*
|
|
1132
1132
|
* The returned data should be registered with the document's media store
|
|
1133
|
-
* during
|
|
1133
|
+
* during serialization so the packer can resolve the `{fileName}` placeholder.
|
|
1134
1134
|
*/
|
|
1135
1135
|
declare const extractBlipFillMedia: (fill: FillOptions) => BlipFillMediaData | undefined;
|
|
1136
1136
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as XmlComponent } from "./index-CzsIq-Qi.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/chart/axes.d.ts
|
|
4
4
|
/**
|
|
@@ -77,7 +77,7 @@ interface ChartTypeOptions {
|
|
|
77
77
|
readonly series: readonly ChartSeriesData[];
|
|
78
78
|
readonly categories: readonly string[];
|
|
79
79
|
}
|
|
80
|
-
declare const createChartType: (options: ChartTypeOptions) =>
|
|
80
|
+
declare const createChartType: (options: ChartTypeOptions) => BarChart | LineChart | PieChart | AreaChart | ScatterChart;
|
|
81
81
|
//#endregion
|
|
82
82
|
//#region src/chart/chart-space.d.ts
|
|
83
83
|
interface ChartSpaceOptions {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as PositiveUniversalMeasure } from "./values-
|
|
1
|
+
import { r as PositiveUniversalMeasure } from "./values-COjPGYkS.mjs";
|
|
2
2
|
import { Element } from "@office-open/xml";
|
|
3
3
|
|
|
4
4
|
//#region src/xml-components/types.d.ts
|
|
@@ -36,17 +36,13 @@ declare abstract class BaseXmlComponent {
|
|
|
36
36
|
protected readonly rootKey: string;
|
|
37
37
|
constructor(rootKey: string);
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* @param context - The serialization context
|
|
42
|
-
* @returns The XML-serializable object, or undefined to exclude from output
|
|
39
|
+
* @deprecated Use `toXml()` instead.
|
|
43
40
|
*/
|
|
44
|
-
|
|
41
|
+
prepForXml(_context: Context): IXmlableObject | undefined;
|
|
45
42
|
/**
|
|
46
43
|
* Direct XML serialization. Override in subclasses for zero-allocation output.
|
|
47
|
-
* Default falls back to prepForXml() + xml().
|
|
48
44
|
*/
|
|
49
|
-
toXml(
|
|
45
|
+
toXml(_context: Context): string;
|
|
50
46
|
}
|
|
51
47
|
//#endregion
|
|
52
48
|
//#region src/xml-components/component.d.ts
|
|
@@ -71,7 +67,7 @@ declare abstract class XmlComponent extends BaseXmlComponent {
|
|
|
71
67
|
root: (BaseXmlComponent | IXmlableObject | string)[];
|
|
72
68
|
constructor(rootKey: string);
|
|
73
69
|
/**
|
|
74
|
-
*
|
|
70
|
+
* @deprecated Use `toXml()` instead.
|
|
75
71
|
*/
|
|
76
72
|
prepForXml(context: Context): IXmlableObject | undefined;
|
|
77
73
|
/**
|
|
@@ -90,6 +86,9 @@ declare abstract class XmlComponent extends BaseXmlComponent {
|
|
|
90
86
|
declare abstract class IgnoreIfEmptyXmlComponent extends XmlComponent {
|
|
91
87
|
private readonly includeIfEmpty;
|
|
92
88
|
constructor(rootKey: string, includeIfEmpty?: boolean);
|
|
89
|
+
/**
|
|
90
|
+
* @deprecated Use `toXml()` instead.
|
|
91
|
+
*/
|
|
93
92
|
prepForXml(context: Context): IXmlableObject | undefined;
|
|
94
93
|
/**
|
|
95
94
|
* Suppress empty elements — super.toXml() produces a self-closing tag
|
|
@@ -102,13 +101,10 @@ declare abstract class IgnoreIfEmptyXmlComponent extends XmlComponent {
|
|
|
102
101
|
//#endregion
|
|
103
102
|
//#region src/xml-components/attributes.d.ts
|
|
104
103
|
/**
|
|
105
|
-
*
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Simple attribute data as a key-value record.
|
|
104
|
+
* XML attribute types for OOXML document generation.
|
|
105
|
+
*
|
|
106
|
+
* @module
|
|
110
107
|
*/
|
|
111
|
-
type AttributeData = Record<string, boolean | number | string>;
|
|
112
108
|
/**
|
|
113
109
|
* Structured attribute payload with explicit key-value mapping.
|
|
114
110
|
*/
|
|
@@ -116,26 +112,6 @@ type AttributePayload<T> = { readonly [P in keyof T]: {
|
|
|
116
112
|
readonly key: string;
|
|
117
113
|
readonly value: T[P];
|
|
118
114
|
} };
|
|
119
|
-
/**
|
|
120
|
-
* Base class for creating XML attributes with automatic name mapping.
|
|
121
|
-
*/
|
|
122
|
-
declare abstract class XmlAttributeComponent<T extends Record<string, any>> extends BaseXmlComponent {
|
|
123
|
-
private readonly root;
|
|
124
|
-
/** Optional mapping from property names to XML attribute names. */
|
|
125
|
-
protected readonly xmlKeys?: AttributeMap<T>;
|
|
126
|
-
constructor(root: T);
|
|
127
|
-
prepForXml(_: Context): IXmlableObject;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Next-generation attribute component with explicit key-value pairs.
|
|
131
|
-
*/
|
|
132
|
-
declare class NextAttributeComponent<T> extends BaseXmlComponent {
|
|
133
|
-
private readonly root;
|
|
134
|
-
constructor(root: AttributePayload<T>);
|
|
135
|
-
prepForXml(_: Context): IXmlableObject;
|
|
136
|
-
/** Attribute components produce no XML output — attrs are inlined by the parent. */
|
|
137
|
-
toXml(_context: Context): string;
|
|
138
|
-
}
|
|
139
115
|
//#endregion
|
|
140
116
|
//#region src/xml-components/elements.d.ts
|
|
141
117
|
/**
|
|
@@ -186,13 +162,17 @@ declare class BuilderElement<T = {}> extends XmlComponent {
|
|
|
186
162
|
});
|
|
187
163
|
}
|
|
188
164
|
/**
|
|
189
|
-
*
|
|
165
|
+
* Builds an attribute-only IXmlableObject from a plain key-value record.
|
|
190
166
|
*/
|
|
191
|
-
declare
|
|
167
|
+
declare function buildAttrObject(attrs: Record<string, string | number | boolean>): IXmlableObject;
|
|
168
|
+
/**
|
|
169
|
+
* Creates an attribute IXmlableObject for chart elements.
|
|
170
|
+
*/
|
|
171
|
+
declare const chartAttr: (attrs: Record<string, string | number | boolean>) => IXmlableObject;
|
|
192
172
|
/**
|
|
193
173
|
* Wraps a component in a named XmlComponent element.
|
|
194
174
|
*/
|
|
195
|
-
declare function wrapEl(elementName: string, child: BaseXmlComponent): XmlComponent;
|
|
175
|
+
declare function wrapEl(elementName: string, child: BaseXmlComponent | IXmlableObject): XmlComponent;
|
|
196
176
|
//#endregion
|
|
197
177
|
//#region src/xml-components/imported.d.ts
|
|
198
178
|
/**
|
|
@@ -212,11 +192,16 @@ declare class ImportedXmlComponent extends XmlComponent {
|
|
|
212
192
|
}
|
|
213
193
|
/**
|
|
214
194
|
* Represents attributes for imported root elements.
|
|
195
|
+
* The { _attr } in root is consumed by the parent's toXml() serialization.
|
|
215
196
|
*/
|
|
216
197
|
declare class ImportedRootElementAttributes extends XmlComponent {
|
|
217
198
|
private readonly _attr;
|
|
218
199
|
constructor(_attr: any);
|
|
219
|
-
|
|
200
|
+
/**
|
|
201
|
+
* @deprecated Use `toXml()` instead.
|
|
202
|
+
*/
|
|
203
|
+
prepForXml(_context: Context): IXmlableObject;
|
|
204
|
+
toXml(_context: Context): string;
|
|
220
205
|
}
|
|
221
206
|
//#endregion
|
|
222
207
|
//#region src/xml-components/initializable.d.ts
|
|
@@ -227,4 +212,4 @@ declare abstract class InitializableXmlComponent extends XmlComponent {
|
|
|
227
212
|
constructor(rootKey: string, initComponent?: XmlComponent);
|
|
228
213
|
}
|
|
229
214
|
//#endregion
|
|
230
|
-
export {
|
|
215
|
+
export { IXmlAttribute as C, Context as S, AttributePayload as _, BuilderElement as a, XmlComponent as b, buildAttrObject as c, numberValObj as d, onOffObj as f, wrapEl as g, stringValObj as h, convertToXmlComponent as i, chartAttr as l, stringEnumValObj as m, ImportedRootElementAttributes as n, EmptyElement as o, stringContainerObj as p, ImportedXmlComponent as r, attrObj as s, InitializableXmlComponent as t, hpsMeasureObj as u, EMPTY_OBJECT as v, IXmlableObject as w, BaseXmlComponent as x, IgnoreIfEmptyXmlComponent as y };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
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-
|
|
3
|
-
import { _ as CatAx, a as ChartData, c as ChartSeriesData, d as createChartType, f as ScatterChart, g as AreaChart, h as BarChart, i as ChartCollection, l as ChartType, m as LineChart, n as createNumRef, o as ChartSpace, p as PieChart, r as createStrRef, s as ChartSpaceOptions, t as ChartTitle, u as ChartTypeOptions, v as ValAx } from "./index-
|
|
4
|
-
import { $ as RectAlignment, $t as createSolidFill, A as createBevel, At as FillOptions, B as createSoftEdgeEffect, Bt as RelativeRect, C as GeometryGuide, Ct as createGroupFill, D as createShape3D, Dt as createNoFill, E as Shape3DOptions, Et as createPatternFill, F as Point3D, Ft as GradientShadeOptions, G as EffectListOptions, Gt as TileOptions, H as EffectDagOptions, Ht as createGradientFill, I as Scene3DOptions, It as GradientStop, J as createReflectionEffect, Jt as createSourceRectangle, K as createEffectList, Kt as createTileInfo, L as SphereCoords, Lt as LinearShadeOptions, M as BackdropOptions, Mt as buildFill, N as CameraOptions, Nt as extractBlipFillMedia, O as BevelOptions, Ot as BlipFillConfigOptions, P as LightRigOptions, Pt as GradientFillOptions, Q as OuterShadowEffectOptions, Qt as createColorElement, R as Vector3D, Rt as PathShadeOptions, S as PresetGeometryOptions, St as createCustomDash, T as PresetMaterialType, Tt as PresetPattern, U as createEffectDag, Ut as createGradientStop, V as EffectContainerType, Vt as TileFlipMode, W as BlurEffectOptions, Wt as TileAlignment, X as PresetShadowVal, Xt as createBlipEffects, Y as PresetShadowEffectOptions, Yt as BlipEffectsOptions, Z as createPresetShadowEffect, Zt as SolidFillOptions, _ as PathCommand, _t as LineEndOptions, a as Transform2DOptions, an as createSchemeColor, at as BlendMode, b as createCustomGeometry, bt as createLineEnd, c as Stretch, cn as RgbColorOptions, ct as CompoundLine, d as createBlipFill, dn as PresetColorOptions, dt as OutlineFillProperties, en as SystemColor, et as createOuterShadowEffect, f as BlipOptions, fn as createPresetColor, ft as OutlineOptions, g as GeomRect, gn as createColorTransforms, gt as LineEndLength, h as CustomGeometryOptions, hn as ColorTransformOptions, ht as createOutline, i as GroupTransform2DOptions, in as SchemeColorOptions, it as createGlowEffect, j as createBottomBevel, jt as GradientStopOptions, k as BevelPresetType, kt as BlipFillMediaData, l as createExtentionList, ln as createRgbColor, lt as LineCap, m as ConnectionSite, mn as createHslColor, mt as PresetDash, n as MediaTransformation, nn as createSystemColor, nt as createInnerShadowEffect, o as createGroupTransform2D, on as ScRgbColorOptions, ot as FillOverlayEffectOptions, p as createBlip, pn as HslColorOptions, pt as PenAlignment, q as ReflectionEffectOptions, qt as SourceRectangleOptions, r as createTransformation, rn as SchemeColor, rt as GlowEffectOptions, s as createTransform2D, sn as createScRgbColor, st as createFillOverlayEffect, t as MediaDataTransformation, tn as SystemColorOptions, tt as InnerShadowEffectOptions, u as BlipFillOptions, un as PresetColor, ut as LineJoin, v as PathFillMode, vt as LineEndType, w as createAdjustmentValues, wt as PatternFillOptions, x as PresetGeometry, xt as DashStop, y as PathOptions, yt as LineEndWidth, z as createScene3D, zt as PathShadeType } from "./index-
|
|
5
|
-
import { a as Point, c as Connection, d as getLayoutXml, f as getStyleXml, h as STYLE_CATEGORIES, i as SmartArtData, l as DEFAULT_DRAWING_XML, m as LAYOUT_CATEGORIES, n as createDataModel, o as TransPoint, p as COLOR_CATEGORIES, r as SmartArtCollection, s as DataModel, t as TreeNode, u as getColorXml } from "./index-
|
|
6
|
-
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-
|
|
1
|
+
import { C as IXmlAttribute, S as Context, _ as AttributePayload, a as BuilderElement, b as XmlComponent, c as buildAttrObject, d as numberValObj, f as onOffObj, g as wrapEl, h as stringValObj, i as convertToXmlComponent, l as chartAttr, m as stringEnumValObj, n as ImportedRootElementAttributes, o as EmptyElement, p as stringContainerObj, r as ImportedXmlComponent, s as attrObj, t as InitializableXmlComponent, u as hpsMeasureObj, v as EMPTY_OBJECT, w as IXmlableObject, x as BaseXmlComponent, y as IgnoreIfEmptyXmlComponent } from "./index-CzsIq-Qi.mjs";
|
|
2
|
+
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-COjPGYkS.mjs";
|
|
3
|
+
import { _ as CatAx, a as ChartData, c as ChartSeriesData, d as createChartType, f as ScatterChart, g as AreaChart, h as BarChart, i as ChartCollection, l as ChartType, m as LineChart, n as createNumRef, o as ChartSpace, p as PieChart, r as createStrRef, s as ChartSpaceOptions, t as ChartTitle, u as ChartTypeOptions, v as ValAx } from "./index-CECweGf1.mjs";
|
|
4
|
+
import { $ as RectAlignment, $t as createSolidFill, A as createBevel, At as FillOptions, B as createSoftEdgeEffect, Bt as RelativeRect, C as GeometryGuide, Ct as createGroupFill, D as createShape3D, Dt as createNoFill, E as Shape3DOptions, Et as createPatternFill, F as Point3D, Ft as GradientShadeOptions, G as EffectListOptions, Gt as TileOptions, H as EffectDagOptions, Ht as createGradientFill, I as Scene3DOptions, It as GradientStop, J as createReflectionEffect, Jt as createSourceRectangle, K as createEffectList, Kt as createTileInfo, L as SphereCoords, Lt as LinearShadeOptions, M as BackdropOptions, Mt as buildFill, N as CameraOptions, Nt as extractBlipFillMedia, O as BevelOptions, Ot as BlipFillConfigOptions, P as LightRigOptions, Pt as GradientFillOptions, Q as OuterShadowEffectOptions, Qt as createColorElement, R as Vector3D, Rt as PathShadeOptions, S as PresetGeometryOptions, St as createCustomDash, T as PresetMaterialType, Tt as PresetPattern, U as createEffectDag, Ut as createGradientStop, V as EffectContainerType, Vt as TileFlipMode, W as BlurEffectOptions, Wt as TileAlignment, X as PresetShadowVal, Xt as createBlipEffects, Y as PresetShadowEffectOptions, Yt as BlipEffectsOptions, Z as createPresetShadowEffect, Zt as SolidFillOptions, _ as PathCommand, _t as LineEndOptions, a as Transform2DOptions, an as createSchemeColor, at as BlendMode, b as createCustomGeometry, bt as createLineEnd, c as Stretch, cn as RgbColorOptions, ct as CompoundLine, d as createBlipFill, dn as PresetColorOptions, dt as OutlineFillProperties, en as SystemColor, et as createOuterShadowEffect, f as BlipOptions, fn as createPresetColor, ft as OutlineOptions, g as GeomRect, gn as createColorTransforms, gt as LineEndLength, h as CustomGeometryOptions, hn as ColorTransformOptions, ht as createOutline, i as GroupTransform2DOptions, in as SchemeColorOptions, it as createGlowEffect, j as createBottomBevel, jt as GradientStopOptions, k as BevelPresetType, kt as BlipFillMediaData, l as createExtentionList, ln as createRgbColor, lt as LineCap, m as ConnectionSite, mn as createHslColor, mt as PresetDash, n as MediaTransformation, nn as createSystemColor, nt as createInnerShadowEffect, o as createGroupTransform2D, on as ScRgbColorOptions, ot as FillOverlayEffectOptions, p as createBlip, pn as HslColorOptions, pt as PenAlignment, q as ReflectionEffectOptions, qt as SourceRectangleOptions, r as createTransformation, rn as SchemeColor, rt as GlowEffectOptions, s as createTransform2D, sn as createScRgbColor, st as createFillOverlayEffect, t as MediaDataTransformation, tn as SystemColorOptions, tt as InnerShadowEffectOptions, u as BlipFillOptions, un as PresetColor, ut as LineJoin, v as PathFillMode, vt as LineEndType, w as createAdjustmentValues, wt as PatternFillOptions, x as PresetGeometry, xt as DashStop, y as PathOptions, yt as LineEndWidth, z as createScene3D, zt as PathShadeType } from "./index-C0Iqsm0K.mjs";
|
|
5
|
+
import { a as Point, c as Connection, d as getLayoutXml, f as getStyleXml, h as STYLE_CATEGORIES, i as SmartArtData, l as DEFAULT_DRAWING_XML, m as LAYOUT_CATEGORIES, n as createDataModel, o as TransPoint, p as COLOR_CATEGORIES, r as SmartArtCollection, s as DataModel, t as TreeNode, u as getColorXml } from "./index-BD7Tgfi4.mjs";
|
|
6
|
+
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-BCUfgp9A.mjs";
|
|
7
7
|
import { Element } from "@office-open/xml";
|
|
8
8
|
import { ZipOptions, Zippable, Zippable as Zippable$1, strFromU8, unzipSync } from "fflate";
|
|
9
9
|
|
|
@@ -186,7 +186,6 @@ declare const createPacker: <TFile>(options: {
|
|
|
186
186
|
declare class AppProperties extends ImportedXmlComponent {
|
|
187
187
|
private static instance;
|
|
188
188
|
constructor();
|
|
189
|
-
prepForXml(): Readonly<Record<string, any>> | undefined;
|
|
190
189
|
toXml(_context: Context): string;
|
|
191
190
|
}
|
|
192
191
|
//#endregion
|
|
@@ -205,7 +204,6 @@ declare class Relationships extends BaseXmlComponent {
|
|
|
205
204
|
* Bypasses the IXmlableObject intermediate tree entirely.
|
|
206
205
|
*/
|
|
207
206
|
toXml(_context: Context): string;
|
|
208
|
-
prepForXml(_context: Context): IXmlableObject;
|
|
209
207
|
}
|
|
210
208
|
//#endregion
|
|
211
209
|
//#region src/opc/content-types.d.ts
|
|
@@ -231,6 +229,9 @@ declare const createOverride: (contentType: string, partName?: string) => XmlCom
|
|
|
231
229
|
* Converts an XmlComponent tree into a serializable XML object or string.
|
|
232
230
|
*/
|
|
233
231
|
declare class Formatter {
|
|
232
|
+
/**
|
|
233
|
+
* @deprecated Use `component.toXml(context)` or `formatToXml()` instead.
|
|
234
|
+
*/
|
|
234
235
|
format<T extends Context = Context>(input: BaseXmlComponent, context?: T): Record<string, any>;
|
|
235
236
|
/**
|
|
236
237
|
* Serialize a component directly to XML string via the toXml() fast path.
|
|
@@ -274,7 +275,7 @@ declare function buildCorePropertiesXml(opts: {
|
|
|
274
275
|
/**
|
|
275
276
|
* Build a cp:coreProperties XML string directly (fast path).
|
|
276
277
|
*
|
|
277
|
-
* Shared by pptx and xlsx to bypass
|
|
278
|
+
* Shared by pptx and xlsx to bypass the toXml() → xml() pipeline.
|
|
278
279
|
*/
|
|
279
280
|
declare function buildCorePropertiesXmlString(opts: {
|
|
280
281
|
readonly title?: string;
|
|
@@ -377,32 +378,32 @@ declare function invertMap<K extends string, V extends string>(map: Record<K, V>
|
|
|
377
378
|
declare const xsdRectAlignment: {
|
|
378
379
|
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
379
380
|
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
380
|
-
forward: Record<"
|
|
381
|
-
reverse: Record<"tl" | "t" | "tr" | "l" | "ctr" | "r" | "bl" | "b" | "br", "
|
|
381
|
+
forward: Record<"topLeft" | "top" | "topRight" | "left" | "center" | "right" | "bottomLeft" | "bottom" | "bottomRight", "tl" | "t" | "tr" | "l" | "ctr" | "r" | "bl" | "b" | "br">; /** The reverse map (XSD → user) */
|
|
382
|
+
reverse: Record<"tl" | "t" | "tr" | "l" | "ctr" | "r" | "bl" | "b" | "br", "topLeft" | "top" | "topRight" | "left" | "center" | "right" | "bottomLeft" | "bottom" | "bottomRight">;
|
|
382
383
|
};
|
|
383
384
|
declare const xsdTextAlign: {
|
|
384
385
|
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
385
386
|
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
386
|
-
forward: Record<"
|
|
387
|
-
reverse: Record<"l" | "ctr" | "r" | "just", "
|
|
387
|
+
forward: Record<"left" | "center" | "right" | "justify", "l" | "ctr" | "r" | "just">; /** The reverse map (XSD → user) */
|
|
388
|
+
reverse: Record<"l" | "ctr" | "r" | "just", "left" | "center" | "right" | "justify">;
|
|
388
389
|
};
|
|
389
390
|
declare const xsdTextAnchor: {
|
|
390
391
|
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
391
392
|
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
392
|
-
forward: Record<"
|
|
393
|
-
reverse: Record<"t" | "ctr" | "b", "
|
|
393
|
+
forward: Record<"top" | "center" | "bottom", "t" | "ctr" | "b">; /** The reverse map (XSD → user) */
|
|
394
|
+
reverse: Record<"t" | "ctr" | "b", "top" | "center" | "bottom">;
|
|
394
395
|
};
|
|
395
396
|
declare const xsdLineCap: {
|
|
396
397
|
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
397
398
|
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
398
|
-
forward: Record<"round" | "square" | "flat", "
|
|
399
|
-
reverse: Record<"
|
|
399
|
+
forward: Record<"round" | "square" | "flat", "rnd" | "sq" | "flat">; /** The reverse map (XSD → user) */
|
|
400
|
+
reverse: Record<"rnd" | "sq" | "flat", "round" | "square" | "flat">;
|
|
400
401
|
};
|
|
401
402
|
declare const xsdCompoundLine: {
|
|
402
403
|
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
403
404
|
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
404
|
-
forward: Record<"single" | "double" | "thickThin" | "thinThick" | "triple", "
|
|
405
|
-
reverse: Record<"
|
|
405
|
+
forward: Record<"single" | "double" | "thickThin" | "thinThick" | "triple", "sng" | "dbl" | "thickThin" | "thinThick" | "tri">; /** The reverse map (XSD → user) */
|
|
406
|
+
reverse: Record<"sng" | "dbl" | "thickThin" | "thinThick" | "tri", "single" | "double" | "thickThin" | "thinThick" | "triple">;
|
|
406
407
|
};
|
|
407
408
|
declare const xsdPenAlignment: {
|
|
408
409
|
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
@@ -419,20 +420,20 @@ declare const xsdLineEndSize: {
|
|
|
419
420
|
declare const xsdBlendMode: {
|
|
420
421
|
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
421
422
|
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
422
|
-
forward: Record<"
|
|
423
|
-
reverse: Record<"
|
|
423
|
+
forward: Record<"over" | "multiply" | "screen" | "darken" | "lighten", "over" | "mult" | "screen" | "darken" | "lighten">; /** The reverse map (XSD → user) */
|
|
424
|
+
reverse: Record<"over" | "mult" | "screen" | "darken" | "lighten", "over" | "multiply" | "screen" | "darken" | "lighten">;
|
|
424
425
|
};
|
|
425
426
|
declare const xsdPathFillMode: {
|
|
426
427
|
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
427
428
|
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
428
|
-
forward: Record<"none" | "
|
|
429
|
-
reverse: Record<"none" | "
|
|
429
|
+
forward: Record<"none" | "darken" | "lighten" | "normal" | "lightenLess" | "darkenLess", "none" | "darken" | "lighten" | "norm" | "lightenLess" | "darkenLess">; /** The reverse map (XSD → user) */
|
|
430
|
+
reverse: Record<"none" | "darken" | "lighten" | "norm" | "lightenLess" | "darkenLess", "none" | "darken" | "lighten" | "normal" | "lightenLess" | "darkenLess">;
|
|
430
431
|
};
|
|
431
432
|
declare const xsdEffectContainer: {
|
|
432
433
|
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
433
434
|
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
434
|
-
forward: Record<"sibling" | "tree", "
|
|
435
|
-
reverse: Record<"
|
|
435
|
+
forward: Record<"sibling" | "tree", "sib" | "tree">; /** The reverse map (XSD → user) */
|
|
436
|
+
reverse: Record<"sib" | "tree", "sibling" | "tree">;
|
|
436
437
|
};
|
|
437
438
|
declare const xsdPresetShadow: {
|
|
438
439
|
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
@@ -443,14 +444,14 @@ declare const xsdPresetShadow: {
|
|
|
443
444
|
declare const xsdMaterialType: {
|
|
444
445
|
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
445
446
|
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
446
|
-
forward: Record<"flat" | "legacyMatte" | "legacyPlastic" | "legacyMetal" | "legacyWireframe" | "matte" | "plastic" | "metal" | "warmMatte" | "translucentPowder" | "powder" | "darkEdge" | "softEdge" | "clear" | "softMetal", "flat" | "legacyMatte" | "legacyPlastic" | "legacyMetal" | "legacyWireframe" | "matte" | "plastic" | "metal" | "warmMatte" | "translucentPowder" | "powder" | "
|
|
447
|
-
reverse: Record<"flat" | "legacyMatte" | "legacyPlastic" | "legacyMetal" | "legacyWireframe" | "matte" | "plastic" | "metal" | "warmMatte" | "translucentPowder" | "powder" | "
|
|
447
|
+
forward: Record<"flat" | "legacyMatte" | "legacyPlastic" | "legacyMetal" | "legacyWireframe" | "matte" | "plastic" | "metal" | "warmMatte" | "translucentPowder" | "powder" | "darkEdge" | "softEdge" | "clear" | "softMetal", "flat" | "legacyMatte" | "legacyPlastic" | "legacyMetal" | "legacyWireframe" | "matte" | "plastic" | "metal" | "warmMatte" | "translucentPowder" | "powder" | "dkEdge" | "softEdge" | "clear" | "softmetal">; /** The reverse map (XSD → user) */
|
|
448
|
+
reverse: Record<"flat" | "legacyMatte" | "legacyPlastic" | "legacyMetal" | "legacyWireframe" | "matte" | "plastic" | "metal" | "warmMatte" | "translucentPowder" | "powder" | "dkEdge" | "softEdge" | "clear" | "softmetal", "flat" | "legacyMatte" | "legacyPlastic" | "legacyMetal" | "legacyWireframe" | "matte" | "plastic" | "metal" | "warmMatte" | "translucentPowder" | "powder" | "darkEdge" | "softEdge" | "clear" | "softMetal">;
|
|
448
449
|
};
|
|
449
450
|
declare const xsdPattern: {
|
|
450
451
|
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
451
452
|
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
452
|
-
forward: Record<"percent5" | "percent10" | "percent20" | "percent25" | "percent30" | "percent40" | "percent50" | "percent60" | "percent70" | "percent75" | "percent80" | "percent90" | "horizontal" | "vertical" | "lightHorizontal" | "lightVertical" | "darkHorizontal" | "darkVertical" | "narrowHorizontal" | "narrowVertical" | "dashedHorizontal" | "dashedVertical" | "cross" | "downDiagonal" | "upDiagonal" | "lightDownDiagonal" | "lightUpDiagonal" | "darkDownDiagonal" | "darkUpDiagonal" | "wideDownDiagonal" | "wideUpDiagonal" | "dashedDownDiagonal" | "dashedUpDiagonal" | "diagonalCross" | "smallChecker" | "largeChecker" | "smallGrid" | "largeGrid" | "dotGrid" | "smallConfetti" | "largeConfetti" | "horizontalBrick" | "diagonalBrick" | "solidDiamond" | "openDiamond" | "dottedDiamond" | "plaid" | "sphere" | "weave" | "divot" | "shingle" | "wave" | "trellis" | "zigZag", "
|
|
453
|
-
reverse: Record<"
|
|
453
|
+
forward: Record<"percent5" | "percent10" | "percent20" | "percent25" | "percent30" | "percent40" | "percent50" | "percent60" | "percent70" | "percent75" | "percent80" | "percent90" | "horizontal" | "vertical" | "lightHorizontal" | "lightVertical" | "darkHorizontal" | "darkVertical" | "narrowHorizontal" | "narrowVertical" | "dashedHorizontal" | "dashedVertical" | "cross" | "downDiagonal" | "upDiagonal" | "lightDownDiagonal" | "lightUpDiagonal" | "darkDownDiagonal" | "darkUpDiagonal" | "wideDownDiagonal" | "wideUpDiagonal" | "dashedDownDiagonal" | "dashedUpDiagonal" | "diagonalCross" | "smallChecker" | "largeChecker" | "smallGrid" | "largeGrid" | "dotGrid" | "smallConfetti" | "largeConfetti" | "horizontalBrick" | "diagonalBrick" | "solidDiamond" | "openDiamond" | "dottedDiamond" | "plaid" | "sphere" | "weave" | "divot" | "shingle" | "wave" | "trellis" | "zigZag", "pct5" | "pct10" | "pct20" | "pct25" | "pct30" | "pct40" | "pct50" | "pct60" | "pct70" | "pct75" | "pct80" | "pct90" | "horz" | "vert" | "ltHorz" | "ltVert" | "dkHorz" | "dkVert" | "narHorz" | "narVert" | "dashHorz" | "dashVert" | "cross" | "dnDiag" | "upDiag" | "ltDnDiag" | "ltUpDiag" | "dkDnDiag" | "dkUpDiag" | "wdDnDiag" | "wdUpDiag" | "dashDnDiag" | "dashUpDiag" | "diagCross" | "smCheck" | "lgCheck" | "smGrid" | "lgGrid" | "dotGrid" | "smConfetti" | "lgConfetti" | "horzBrick" | "diagBrick" | "solidDmnd" | "openDmnd" | "dotDmnd" | "plaid" | "sphere" | "weave" | "divot" | "shingle" | "wave" | "trellis" | "zigZag">; /** The reverse map (XSD → user) */
|
|
454
|
+
reverse: Record<"pct5" | "pct10" | "pct20" | "pct25" | "pct30" | "pct40" | "pct50" | "pct60" | "pct70" | "pct75" | "pct80" | "pct90" | "horz" | "vert" | "ltHorz" | "ltVert" | "dkHorz" | "dkVert" | "narHorz" | "narVert" | "dashHorz" | "dashVert" | "cross" | "dnDiag" | "upDiag" | "ltDnDiag" | "ltUpDiag" | "dkDnDiag" | "dkUpDiag" | "wdDnDiag" | "wdUpDiag" | "dashDnDiag" | "dashUpDiag" | "diagCross" | "smCheck" | "lgCheck" | "smGrid" | "lgGrid" | "dotGrid" | "smConfetti" | "lgConfetti" | "horzBrick" | "diagBrick" | "solidDmnd" | "openDmnd" | "dotDmnd" | "plaid" | "sphere" | "weave" | "divot" | "shingle" | "wave" | "trellis" | "zigZag", "percent5" | "percent10" | "percent20" | "percent25" | "percent30" | "percent40" | "percent50" | "percent60" | "percent70" | "percent75" | "percent80" | "percent90" | "horizontal" | "vertical" | "lightHorizontal" | "lightVertical" | "darkHorizontal" | "darkVertical" | "narrowHorizontal" | "narrowVertical" | "dashedHorizontal" | "dashedVertical" | "cross" | "downDiagonal" | "upDiagonal" | "lightDownDiagonal" | "lightUpDiagonal" | "darkDownDiagonal" | "darkUpDiagonal" | "wideDownDiagonal" | "wideUpDiagonal" | "dashedDownDiagonal" | "dashedUpDiagonal" | "diagonalCross" | "smallChecker" | "largeChecker" | "smallGrid" | "largeGrid" | "dotGrid" | "smallConfetti" | "largeConfetti" | "horizontalBrick" | "diagonalBrick" | "solidDiamond" | "openDiamond" | "dottedDiamond" | "plaid" | "sphere" | "weave" | "divot" | "shingle" | "wave" | "trellis" | "zigZag">;
|
|
454
455
|
};
|
|
455
456
|
declare const xsdVerticalMergeRev: {
|
|
456
457
|
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
@@ -491,4 +492,4 @@ declare function compileMapping(mapping: Record<string, {
|
|
|
491
492
|
path: string;
|
|
492
493
|
}[]): Zippable;
|
|
493
494
|
//#endregion
|
|
494
|
-
export { AppProperties, AreaChart,
|
|
495
|
+
export { AppProperties, AreaChart, AttributePayload, type BackdropOptions, BarChart, BaseXmlComponent, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, BuilderElement, COLOR_CATEGORIES, type CameraOptions, CatAx, ChartCollection, ChartData, ChartSeriesData, ChartSpace, ChartSpaceOptions, ChartTitle, ChartType, ChartTypeOptions, type ColorTransformOptions, CompileFn, CompoundLine, Connection, type ConnectionSite, Context, CoreProperties, type CustomGeometryOptions, DEFAULT_DRAWING_XML, DOCX_NS, type DashStop, DataModel, type DefaultAttributes, EMPTY_OBJECT, type EffectContainerType, type EffectDagOptions, type EffectListOptions, EmptyElement, type FillOptions, type FillOverlayEffectOptions, Formatter, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GroupTransform2DOptions, type HslColorOptions, IXmlAttribute, IXmlableObject, IdFormat, IgnoreIfEmptyXmlComponent, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, type InnerShadowEffectOptions, LAYOUT_CATEGORIES, type LightRigOptions, LineCap, LineChart, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MediaDataTransformation, type MediaTransformation, OoxmlMimeType, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, OutputByType, OutputType, type OverrideAttributes, PPTX_NS, Packer, ParsedArchive, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, Percentage, PieChart, Point, type Point3D, PositivePercentage, PositiveUniversalMeasure, PresetColor, type PresetColorOptions, PresetDash, PresetGeometry, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, RawPassthrough, RectAlignment, type ReflectionEffectOptions, type RelationshipType, Relationships, RelativeMeasure, type RelativeRect, type RenderedParagraphNode, type ReplacerConfig, type RgbColorOptions, STYLE_CATEGORIES, type ScRgbColorOptions, ScatterChart, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, SmartArtCollection, SmartArtData, SmartArtRelOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, Stretch, SystemColor, type SystemColorOptions, TargetModeType, ThemeColor, ThemeFont, TileAlignment, TileFlipMode, type TileOptions, TokenNotFoundError, TransPoint, type Transform2DOptions, TreeNode, UniqueNumericIdCreator, UniversalMeasure, ValAx, type Vector3D, XmlComponent, type XmlNamespaceConfig, XmlifyedFile, ZIP_DEFLATE_LEVEL, ZIP_STORED_LEVEL, type ZipOptions, type Zippable, addSmartArtRelationships, appendContentType, appendRelationship, attrObj, buildAttrObject, buildCorePropertiesXml, buildCorePropertiesXmlString, buildFill, chartAttr, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertPixelsToEmu, convertPointsToEmu, convertToXmlComponent, createAdjustmentValues, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChartType, createColorElement, createColorTransforms, createCustomDash, createCustomGeometry, createDataModel, createDefault, createEffectDag, createEffectList, createExtentionList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGroupFill, createGroupTransform2D, createHslColor, createInnerShadowEffect, createLineEnd, createNoFill, createNumRef, createOuterShadowEffect, createOutline, createOverride, createPacker, createPatternFill, createPresetColor, createPresetShadowEffect, createReflectionEffect, createReplacer, createRgbColor, createRunRenderer, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSplitInject, createStrRef, createSystemColor, createTextElementContents, createTileInfo, createTokenReplacer, createTransform2D, createTransformation, createTraverser, createZipStream, dateTimeValue, decimalNumber, eighthPointMeasureValue, elementToCompact, extractBlipFillMedia, formatId, getColorXml, getFirstLevelElements, getLayoutXml, getNextRelationshipIndex, getReferencedMedia, getStyleXml, hasPlaceholders, hashedId, hexBinary, hexColorValue, hpsMeasureObj, hpsMeasureValue, invertMap, longHexNumber, measurementOrPercentValue, numberValObj, onOffObj, parseArchive, parseCorePropsElement, patchSpaceAttribute, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, replaceChartPlaceholders, replaceImagePlaceholders, replaceSmartArtPlaceholders, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, strFromU8, stringContainerObj, stringEnumValObj, stringValObj, toJson, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, unzipSync, wrapEl, xsdBlendMode, xsdCompoundLine, xsdEffectContainer, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPresetShadow, xsdRectAlignment, xsdStrikeStyle, xsdTextAlign, xsdTextAnchor, xsdTextCaps, xsdUnderlineStyle, xsdVerticalMergeRev, zipAndConvert, zipSyncAndConvert };
|