@office-open/core 0.7.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { a as BuilderElement, y as XmlComponent } from "./xml-components-xJkfJ6ff.mjs";
1
+ import { a as BuilderElement, y as XmlComponent } from "./xml-components-DEU24Y1T.mjs";
2
2
  import hash from "hash.js";
3
3
  import { customAlphabet, nanoid } from "nanoid/non-secure";
4
4
  //#region src/converters.ts
@@ -4154,4 +4154,2979 @@ const createTransformation = (options) => ({
4154
4154
  rotation: options.rotation ? options.rotation * 6e4 : void 0
4155
4155
  });
4156
4156
  //#endregion
4157
- export { xsdCompoundLine as $, LineJoin as A, hashedId as At, createNoFill as B, convertPixelsToEmu as Bt, createOuterShadowEffect as C, createSchemeColor as Ct, createFillOverlayEffect as D, createPresetColor as Dt, BlendMode as E, PresetColor as Et, LineEndType as F, convertEmuToPixels as Ft, PathShadeType as G, extractBlipFillMedia as H, LineEndWidth as I, convertEmuToPoints as It, createGradientStop as J, TileFlipMode as K, createLineEnd as L, convertInchesToEmu as Lt, PresetDash as M, uniqueNumericIdCreator as Mt, createOutline as N, uniqueUuid as Nt, CompoundLine as O, createHslColor as Ot, LineEndLength as P, convertEmuToInches as Pt, xsdBlendMode as Q, createCustomDash as R, convertInchesToTwip as Rt, RectAlignment as S, SchemeColor as St, createGlowEffect as T, createRgbColor as Tt, PresetPattern as U, buildFill as V, convertPointsToEmu as Vt, createPatternFill as W, createTileInfo as X, TileAlignment as Y, invertMap as Z, createEffectList as _, createBlipEffects as _t, createBlip as a, xsdPattern as at, PresetShadowVal as b, SystemColor as bt, PresetGeometry as c, xsdRectAlignment as ct, createShape3D as d, xsdTextAnchor as dt, xsdEffectContainer as et, BevelPresetType as f, xsdTextCaps as ft, createEffectDag as g, createSourceRectangle as gt, createScene3D as h, Stretch as ht, createBlipFill as i, xsdPathFillMode as it, PenAlignment as j, uniqueId as jt, LineCap as k, createColorTransforms as kt, createAdjustmentValues as l, xsdStrikeStyle as lt, createBottomBevel as m, xsdVerticalMergeRev as mt, createGroupTransform2D as n, xsdLineEndSize as nt, createExtentionList as o, xsdPenAlignment as ot, createBevel as p, xsdUnderlineStyle as pt, createGradientFill as q, createTransform2D as r, xsdMaterialType as rt, createCustomGeometry as s, xsdPresetShadow as st, createTransformation as t, xsdLineCap as tt, PresetMaterialType as u, xsdTextAlign as ut, createSoftEdgeEffect as v, createColorElement as vt, createInnerShadowEffect as w, createScRgbColor as wt, createPresetShadowEffect as x, createSystemColor as xt, createReflectionEffect as y, createSolidFill as yt, createGroupFill as z, convertMillimetersToTwip as zt };
4157
+ //#region src/drawingml/table-style/table-style.ts
4158
+ /**
4159
+ * Table Style system for DrawingML.
4160
+ *
4161
+ * Generates CT_TableStyle and CT_TableStyleList XML for custom table styles
4162
+ * in presentations (PPTX) and documents.
4163
+ *
4164
+ * Reference: ISO/IEC 29500-4, dml-main.xsd, CT_TableStyle / CT_TableStyleList
4165
+ *
4166
+ * @module
4167
+ */
4168
+ function onOffAttr(val) {
4169
+ if (val === void 0) return "";
4170
+ return val;
4171
+ }
4172
+ /** Create a:a:styleMatrixReference (fillRef, lnRef, effectRef, fontRef) */
4173
+ function createStyleMatrixRef(elementName, opts) {
4174
+ const children = [];
4175
+ if (opts.color) children.push(opts.color);
4176
+ return new BuilderElement({
4177
+ name: `a:${elementName}`,
4178
+ attributes: [{
4179
+ key: "idx",
4180
+ value: String(opts.idx)
4181
+ }],
4182
+ children: children.length > 0 ? children : void 0
4183
+ });
4184
+ }
4185
+ /** Create border line element (a:ln with color) or a:lnRef */
4186
+ function createThemeableLine(opts) {
4187
+ if (opts.lineRefIdx !== void 0) {
4188
+ const children = [];
4189
+ if (opts.color) children.push(opts.color);
4190
+ return new BuilderElement({
4191
+ name: "a:lnRef",
4192
+ attributes: [{
4193
+ key: "idx",
4194
+ value: String(opts.lineRefIdx)
4195
+ }],
4196
+ children: children.length > 0 ? children : void 0
4197
+ });
4198
+ }
4199
+ const children = [];
4200
+ if (opts.color) children.push(opts.color);
4201
+ return new BuilderElement({
4202
+ name: "a:ln",
4203
+ attributes: opts.width !== void 0 ? [{
4204
+ key: "w",
4205
+ value: String(opts.width)
4206
+ }] : void 0,
4207
+ children: children.length > 0 ? children : void 0
4208
+ });
4209
+ }
4210
+ function buildCellBorders(opts) {
4211
+ const children = [];
4212
+ if (opts.left) children.push(createThemeableLine(opts.left));
4213
+ if (opts.right) children.push(createThemeableLine(opts.right));
4214
+ if (opts.top) children.push(createThemeableLine(opts.top));
4215
+ if (opts.bottom) children.push(createThemeableLine(opts.bottom));
4216
+ if (opts.insideH) children.push(createThemeableLine(opts.insideH));
4217
+ if (opts.insideV) children.push(createThemeableLine(opts.insideV));
4218
+ return new BuilderElement({
4219
+ name: "a:tcBdr",
4220
+ children
4221
+ });
4222
+ }
4223
+ function buildTextStyle(opts) {
4224
+ const children = [];
4225
+ if (opts.fontRef) children.push(createStyleMatrixRef("fontRef", opts.fontRef));
4226
+ if (opts.color) children.push(opts.color);
4227
+ const attrs = [];
4228
+ if (opts.bold && opts.bold !== "def") attrs.push({
4229
+ key: "b",
4230
+ value: onOffAttr(opts.bold)
4231
+ });
4232
+ if (opts.italic && opts.italic !== "def") attrs.push({
4233
+ key: "i",
4234
+ value: onOffAttr(opts.italic)
4235
+ });
4236
+ return new BuilderElement({
4237
+ name: "a:tcTxStyle",
4238
+ attributes: attrs.length > 0 ? attrs : void 0,
4239
+ children: children.length > 0 ? children : void 0
4240
+ });
4241
+ }
4242
+ function buildCellStyle(opts) {
4243
+ const children = [];
4244
+ if (opts.borders) children.push(buildCellBorders(opts.borders));
4245
+ if (opts.fillRef) children.push(createStyleMatrixRef("fillRef", opts.fillRef));
4246
+ else if (opts.fill) children.push(opts.fill);
4247
+ return new BuilderElement({
4248
+ name: "a:tcStyle",
4249
+ children
4250
+ });
4251
+ }
4252
+ function buildPartStyle(elementName, opts) {
4253
+ const children = [];
4254
+ if (opts.text) children.push(buildTextStyle(opts.text));
4255
+ if (opts.cell) children.push(buildCellStyle(opts.cell));
4256
+ return new BuilderElement({
4257
+ name: elementName,
4258
+ children
4259
+ });
4260
+ }
4261
+ /** XSD ordering for CT_TableStyle children */
4262
+ const REGION_ORDER = [
4263
+ "tblBg",
4264
+ "wholeTbl",
4265
+ "band1H",
4266
+ "band2H",
4267
+ "band1V",
4268
+ "band2V",
4269
+ "lastCol",
4270
+ "firstCol",
4271
+ "lastRow",
4272
+ "seCell",
4273
+ "swCell",
4274
+ "firstRow",
4275
+ "neCell",
4276
+ "nwCell"
4277
+ ];
4278
+ /** XML element name for each region */
4279
+ const REGION_ELEMENTS = {
4280
+ tblBg: "a:tblBg",
4281
+ wholeTbl: "a:wholeTbl",
4282
+ band1H: "a:band1H",
4283
+ band2H: "a:band2H",
4284
+ band1V: "a:band1V",
4285
+ band2V: "a:band2V",
4286
+ lastCol: "a:lastCol",
4287
+ firstCol: "a:firstCol",
4288
+ lastRow: "a:lastRow",
4289
+ seCell: "a:seCell",
4290
+ swCell: "a:swCell",
4291
+ firstRow: "a:firstRow",
4292
+ neCell: "a:neCell",
4293
+ nwCell: "a:nwCell"
4294
+ };
4295
+ /** Create a single table style (CT_TableStyle) */
4296
+ function createTableStyle(opts) {
4297
+ const children = [];
4298
+ if (opts.regions) for (const region of REGION_ORDER) {
4299
+ const part = opts.regions[region];
4300
+ if (!part) continue;
4301
+ const partEl = buildPartStyle(REGION_ELEMENTS[region], part);
4302
+ children.push(partEl);
4303
+ }
4304
+ return new BuilderElement({
4305
+ name: "a:tblStyle",
4306
+ attributes: [{
4307
+ key: "styleId",
4308
+ value: opts.styleId
4309
+ }, {
4310
+ key: "styleName",
4311
+ value: opts.styleName
4312
+ }],
4313
+ children: children.length > 0 ? children : void 0
4314
+ });
4315
+ }
4316
+ /** Create table style list (CT_TableStyleList) */
4317
+ function createTableStyleList(opts) {
4318
+ const children = [];
4319
+ if (opts.styles) for (const style of opts.styles) children.push(createTableStyle(style));
4320
+ return new BuilderElement({
4321
+ name: "a:tblStyleLst",
4322
+ attributes: [{
4323
+ key: "xmlns:a",
4324
+ value: "http://schemas.openxmlformats.org/drawingml/2006/main"
4325
+ }, {
4326
+ key: "def",
4327
+ value: opts.defaultStyleId
4328
+ }],
4329
+ children: children.length > 0 ? children : void 0
4330
+ });
4331
+ }
4332
+ //#endregion
4333
+ //#region src/drawingml/locking/locking.ts
4334
+ /**
4335
+ * DrawingML shape locking properties.
4336
+ *
4337
+ * Controls which aspects of a shape can be modified by users.
4338
+ *
4339
+ * Reference: OOXML transitional, dml-main.xsd, AG_Locking / CT_ShapeLocking / CT_PictureLocking / CT_GroupLocking
4340
+ *
4341
+ * @module
4342
+ */
4343
+ function toAttrs(opts) {
4344
+ const result = {};
4345
+ for (const key of Object.keys(opts)) if (opts[key] !== void 0) result[key] = {
4346
+ key: `a:${key}`,
4347
+ value: opts[key]
4348
+ };
4349
+ return result;
4350
+ }
4351
+ function createShapeLocking(opts) {
4352
+ return new BuilderElement({
4353
+ name: "a:spLocks",
4354
+ attributes: toAttrs(opts)
4355
+ });
4356
+ }
4357
+ function createPictureLocking(opts) {
4358
+ return new BuilderElement({
4359
+ name: "a:picLocks",
4360
+ attributes: toAttrs(opts)
4361
+ });
4362
+ }
4363
+ function createGroupLocking(opts) {
4364
+ return new BuilderElement({
4365
+ name: "a:grpSpLocks",
4366
+ attributes: toAttrs(opts)
4367
+ });
4368
+ }
4369
+ function createGraphicFrameLocking(opts) {
4370
+ return new BuilderElement({
4371
+ name: "a:graphicFrameLocks",
4372
+ attributes: toAttrs(opts)
4373
+ });
4374
+ }
4375
+ //#endregion
4376
+ //#region src/drawingml/locked-canvas/locked-canvas.ts
4377
+ /**
4378
+ * Locked Canvas module for DrawingML.
4379
+ *
4380
+ * The locked canvas element (lc:lockedCanvas) represents a group of shapes
4381
+ * that cannot be individually selected or edited by the user.
4382
+ * It uses the same structure as a group shape (CT_GvmlGroupShape).
4383
+ *
4384
+ * Reference: http://www.datypic.com/sc/ooxml/e-lc_lockedCanvas-1.html
4385
+ *
4386
+ * @module
4387
+ */
4388
+ /**
4389
+ * Represents a locked canvas element (lc:lockedCanvas).
4390
+ *
4391
+ * A locked canvas contains shapes that are rendered but cannot be
4392
+ * individually selected, moved, or edited.
4393
+ *
4394
+ * Reference: http://www.datypic.com/sc/ooxml/e-lc_lockedCanvas-1.html
4395
+ *
4396
+ * ## XSD Schema
4397
+ * ```xml
4398
+ * <xsd:element name="lockedCanvas" type="a:CT_GvmlGroupShape"/>
4399
+ * ```
4400
+ */
4401
+ var LockedCanvas = class extends XmlComponent {
4402
+ constructor(options) {
4403
+ super("lc:lockedCanvas");
4404
+ if (options?.children) for (const child of options.children) this.root.push(child);
4405
+ }
4406
+ };
4407
+ //#endregion
4408
+ //#region src/drawingml/chart-drawing/chart-drawing.ts
4409
+ /**
4410
+ * DrawingML ChartDrawing elements (cdr: namespace).
4411
+ *
4412
+ * These elements define the drawing layer within chart documents,
4413
+ * including shapes, connectors, pictures, group shapes, graphic frames,
4414
+ * and their anchoring (absolute or relative size).
4415
+ *
4416
+ * Reference: ISO/IEC 29500-4, dml-chartDrawing.xsd
4417
+ *
4418
+ * @module
4419
+ */
4420
+ /**
4421
+ * Creates a cdr:x element (Marker X Coordinate).
4422
+ *
4423
+ * ## XSD Schema
4424
+ * ```xml
4425
+ * <xsd:element name="x" type="ST_MarkerCoordinate"/>
4426
+ * ```
4427
+ */
4428
+ const createCdrX = (value) => new BuilderElement({
4429
+ children: [String(value)],
4430
+ name: "cdr:x"
4431
+ });
4432
+ /**
4433
+ * Creates a cdr:y element (Marker Y Coordinate).
4434
+ *
4435
+ * ## XSD Schema
4436
+ * ```xml
4437
+ * <xsd:element name="y" type="ST_MarkerCoordinate"/>
4438
+ * ```
4439
+ */
4440
+ const createCdrY = (value) => new BuilderElement({
4441
+ children: [String(value)],
4442
+ name: "cdr:y"
4443
+ });
4444
+ /**
4445
+ * Creates a cdr:from element (Marker - top-left corner).
4446
+ *
4447
+ * ## XSD Schema
4448
+ * ```xml
4449
+ * <xsd:element name="from" type="CT_Marker"/>
4450
+ * ```
4451
+ */
4452
+ const createCdrFrom = (x, y) => new BuilderElement({
4453
+ children: [createCdrX(x), createCdrY(y)],
4454
+ name: "cdr:from"
4455
+ });
4456
+ /**
4457
+ * Creates a cdr:to element (Marker - bottom-right corner).
4458
+ *
4459
+ * ## XSD Schema
4460
+ * ```xml
4461
+ * <xsd:element name="to" type="CT_Marker"/>
4462
+ * ```
4463
+ */
4464
+ const createCdrTo = (x, y) => new BuilderElement({
4465
+ children: [createCdrX(x), createCdrY(y)],
4466
+ name: "cdr:to"
4467
+ });
4468
+ /**
4469
+ * Creates a cdr:ext element (Positive Size 2D).
4470
+ *
4471
+ * ## XSD Schema
4472
+ * ```xml
4473
+ * <xsd:element name="ext" type="a:CT_PositiveSize2D"/>
4474
+ * ```
4475
+ */
4476
+ const createCdrExt = (options) => new BuilderElement({
4477
+ attributes: {
4478
+ cx: {
4479
+ key: "cx",
4480
+ value: options.cx
4481
+ },
4482
+ cy: {
4483
+ key: "cy",
4484
+ value: options.cy
4485
+ }
4486
+ },
4487
+ name: "cdr:ext"
4488
+ });
4489
+ /**
4490
+ * Creates a cdr:cNvPr element (Non-Visual Drawing Properties).
4491
+ *
4492
+ * ## XSD Schema
4493
+ * ```xml
4494
+ * <xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps"/>
4495
+ * ```
4496
+ */
4497
+ const createCdrCNvPr = (options) => new BuilderElement({
4498
+ attributes: {
4499
+ ...options.id !== void 0 ? { id: {
4500
+ key: "id",
4501
+ value: options.id
4502
+ } } : {},
4503
+ ...options.name ? { name: {
4504
+ key: "name",
4505
+ value: options.name
4506
+ } } : {}
4507
+ },
4508
+ name: "cdr:cNvPr"
4509
+ });
4510
+ /**
4511
+ * Creates a cdr:cNvSpPr element (Non-Visual Drawing Shape Properties).
4512
+ *
4513
+ * ## XSD Schema
4514
+ * ```xml
4515
+ * <xsd:element name="cNvSpPr" type="a:CT_NonVisualDrawingShapeProps"/>
4516
+ * ```
4517
+ */
4518
+ const createCdrCNvSpPr = () => new BuilderElement({ name: "cdr:cNvSpPr" });
4519
+ /**
4520
+ * Creates a cdr:cNvCxnSpPr element (Non-Visual Connector Properties).
4521
+ *
4522
+ * ## XSD Schema
4523
+ * ```xml
4524
+ * <xsd:element name="cNvCxnSpPr" type="a:CT_NonVisualConnectorProperties"/>
4525
+ * ```
4526
+ */
4527
+ const createCdrCNvCxnSpPr = () => new BuilderElement({ name: "cdr:cNvCxnSpPr" });
4528
+ /**
4529
+ * Creates a cdr:cNvPicPr element (Non-Visual Picture Properties).
4530
+ *
4531
+ * ## XSD Schema
4532
+ * ```xml
4533
+ * <xsd:element name="cNvPicPr" type="a:CT_NonVisualPictureProperties"/>
4534
+ * ```
4535
+ */
4536
+ const createCdrCNvPicPr = () => new BuilderElement({ name: "cdr:cNvPicPr" });
4537
+ /**
4538
+ * Creates a cdr:cNvGrpSpPr element (Non-Visual Group Shape Properties).
4539
+ *
4540
+ * ## XSD Schema
4541
+ * ```xml
4542
+ * <xsd:element name="cNvGrpSpPr" type="a:CT_NonVisualGroupDrawingShapeProps"/>
4543
+ * ```
4544
+ */
4545
+ const createCdrCNvGrpSpPr = () => new BuilderElement({ name: "cdr:cNvGrpSpPr" });
4546
+ /**
4547
+ * Creates a cdr:cNvGraphicFramePr element (Non-Visual Graphic Frame Properties).
4548
+ *
4549
+ * ## XSD Schema
4550
+ * ```xml
4551
+ * <xsd:element name="cNvGraphicFramePr" type="a:CT_NonVisualGraphicFrameProperties"/>
4552
+ * ```
4553
+ */
4554
+ const createCdrCNvGraphicFramePr = () => new BuilderElement({ name: "cdr:cNvGraphicFramePr" });
4555
+ /**
4556
+ * Creates a cdr:nvSpPr element (Shape Non-Visual Properties).
4557
+ *
4558
+ * ## XSD Schema
4559
+ * ```xml
4560
+ * <xsd:element name="nvSpPr" type="CT_ShapeNonVisual"/>
4561
+ * ```
4562
+ */
4563
+ const createCdrNvSpPr = (children) => new BuilderElement({
4564
+ children,
4565
+ name: "cdr:nvSpPr"
4566
+ });
4567
+ /**
4568
+ * Creates a cdr:nvCxnSpPr element (Connector Non-Visual Properties).
4569
+ *
4570
+ * ## XSD Schema
4571
+ * ```xml
4572
+ * <xsd:element name="nvCxnSpPr" type="CT_ConnectorNonVisual"/>
4573
+ * ```
4574
+ */
4575
+ const createCdrNvCxnSpPr = (children) => new BuilderElement({
4576
+ children,
4577
+ name: "cdr:nvCxnSpPr"
4578
+ });
4579
+ /**
4580
+ * Creates a cdr:nvPicPr element (Picture Non-Visual Properties).
4581
+ *
4582
+ * ## XSD Schema
4583
+ * ```xml
4584
+ * <xsd:element name="nvPicPr" type="CT_PictureNonVisual"/>
4585
+ * ```
4586
+ */
4587
+ const createCdrNvPicPr = (children) => new BuilderElement({
4588
+ children,
4589
+ name: "cdr:nvPicPr"
4590
+ });
4591
+ /**
4592
+ * Creates a cdr:nvGrpSpPr element (Group Shape Non-Visual Properties).
4593
+ *
4594
+ * ## XSD Schema
4595
+ * ```xml
4596
+ * <xsd:element name="nvGrpSpPr" type="CT_GroupShapeNonVisual"/>
4597
+ * ```
4598
+ */
4599
+ const createCdrNvGrpSpPr = (children) => new BuilderElement({
4600
+ children,
4601
+ name: "cdr:nvGrpSpPr"
4602
+ });
4603
+ /**
4604
+ * Creates a cdr:nvGraphicFramePr element (Graphic Frame Non-Visual Properties).
4605
+ *
4606
+ * ## XSD Schema
4607
+ * ```xml
4608
+ * <xsd:element name="nvGraphicFramePr" type="CT_GraphicFrameNonVisual"/>
4609
+ * ```
4610
+ */
4611
+ const createCdrNvGraphicFramePr = (children) => new BuilderElement({
4612
+ children,
4613
+ name: "cdr:nvGraphicFramePr"
4614
+ });
4615
+ /**
4616
+ * Creates a cdr:sp element (Shape).
4617
+ *
4618
+ * ## XSD Schema
4619
+ * ```xml
4620
+ * <xsd:element name="sp" type="CT_Shape"/>
4621
+ * ```
4622
+ */
4623
+ const createCdrSp = (children) => new BuilderElement({
4624
+ children,
4625
+ name: "cdr:sp"
4626
+ });
4627
+ /**
4628
+ * Creates a cdr:cxnSp element (Connector Shape).
4629
+ *
4630
+ * ## XSD Schema
4631
+ * ```xml
4632
+ * <xsd:element name="cxnSp" type="CT_Connector"/>
4633
+ * ```
4634
+ */
4635
+ const createCdrCxnSp = (children) => new BuilderElement({
4636
+ children,
4637
+ name: "cdr:cxnSp"
4638
+ });
4639
+ /**
4640
+ * Creates a cdr:pic element (Picture).
4641
+ *
4642
+ * ## XSD Schema
4643
+ * ```xml
4644
+ * <xsd:element name="pic" type="CT_Picture"/>
4645
+ * ```
4646
+ */
4647
+ const createCdrPic = (children) => new BuilderElement({
4648
+ children,
4649
+ name: "cdr:pic"
4650
+ });
4651
+ /**
4652
+ * Creates a cdr:grpSp element (Group Shape).
4653
+ *
4654
+ * ## XSD Schema
4655
+ * ```xml
4656
+ * <xsd:element name="grpSp" type="CT_GroupShape"/>
4657
+ * ```
4658
+ */
4659
+ const createCdrGrpSp = (children) => new BuilderElement({
4660
+ children,
4661
+ name: "cdr:grpSp"
4662
+ });
4663
+ /**
4664
+ * Creates a cdr:graphicFrame element (Graphic Frame).
4665
+ *
4666
+ * ## XSD Schema
4667
+ * ```xml
4668
+ * <xsd:element name="graphicFrame" type="CT_GraphicFrame"/>
4669
+ * ```
4670
+ */
4671
+ const createCdrGraphicFrame = (children) => new BuilderElement({
4672
+ children,
4673
+ name: "cdr:graphicFrame"
4674
+ });
4675
+ /**
4676
+ * Creates a cdr:spPr element (Shape Properties).
4677
+ *
4678
+ * ## XSD Schema
4679
+ * ```xml
4680
+ * <xsd:element name="spPr" type="a:CT_ShapeProperties"/>
4681
+ * ```
4682
+ */
4683
+ const createCdrSpPr = (children) => new BuilderElement({
4684
+ children,
4685
+ name: "cdr:spPr"
4686
+ });
4687
+ /**
4688
+ * Creates a cdr:grpSpPr element (Group Shape Properties).
4689
+ *
4690
+ * ## XSD Schema
4691
+ * ```xml
4692
+ * <xsd:element name="grpSpPr" type="a:CT_GroupShapeProperties"/>
4693
+ * ```
4694
+ */
4695
+ const createCdrGrpSpPr = (children) => new BuilderElement({
4696
+ children,
4697
+ name: "cdr:grpSpPr"
4698
+ });
4699
+ /**
4700
+ * Creates a cdr:style element (Shape Style).
4701
+ *
4702
+ * ## XSD Schema
4703
+ * ```xml
4704
+ * <xsd:element name="style" type="a:CT_ShapeStyle"/>
4705
+ * ```
4706
+ */
4707
+ const createCdrStyle = () => new BuilderElement({ name: "cdr:style" });
4708
+ /**
4709
+ * Creates a cdr:txBody element (Text Body).
4710
+ *
4711
+ * ## XSD Schema
4712
+ * ```xml
4713
+ * <xsd:element name="txBody" type="a:CT_TextBody"/>
4714
+ * ```
4715
+ */
4716
+ const createCdrTxBody = (children) => new BuilderElement({
4717
+ children,
4718
+ name: "cdr:txBody"
4719
+ });
4720
+ /**
4721
+ * Creates a cdr:blipFill element (Blip Fill).
4722
+ *
4723
+ * ## XSD Schema
4724
+ * ```xml
4725
+ * <xsd:element name="blipFill" type="a:CT_BlipFillProperties"/>
4726
+ * ```
4727
+ */
4728
+ const createCdrBlipFill = (children) => new BuilderElement({
4729
+ children,
4730
+ name: "cdr:blipFill"
4731
+ });
4732
+ /**
4733
+ * Creates a cdr:xfrm element (2D Transform).
4734
+ *
4735
+ * ## XSD Schema
4736
+ * ```xml
4737
+ * <xsd:element name="xfrm" type="a:CT_Transform2D"/>
4738
+ * ```
4739
+ */
4740
+ const createCdrXfrm = (children) => new BuilderElement({
4741
+ children,
4742
+ name: "cdr:xfrm"
4743
+ });
4744
+ /**
4745
+ * Creates a cdr:relSizeAnchor element (Relative Size Anchor).
4746
+ *
4747
+ * ## XSD Schema
4748
+ * ```xml
4749
+ * <xsd:element name="relSizeAnchor" type="CT_RelSizeAnchor"/>
4750
+ * ```
4751
+ */
4752
+ const createCdrRelSizeAnchor = (children) => new BuilderElement({
4753
+ children,
4754
+ name: "cdr:relSizeAnchor"
4755
+ });
4756
+ /**
4757
+ * Creates a cdr:absSizeAnchor element (Absolute Size Anchor).
4758
+ *
4759
+ * ## XSD Schema
4760
+ * ```xml
4761
+ * <xsd:element name="absSizeAnchor" type="CT_AbsSizeAnchor"/>
4762
+ * ```
4763
+ */
4764
+ const createCdrAbsSizeAnchor = (children) => new BuilderElement({
4765
+ children,
4766
+ name: "cdr:absSizeAnchor"
4767
+ });
4768
+ //#endregion
4769
+ //#region src/drawingml/chart/dml-chart-elements.ts
4770
+ /**
4771
+ * DrawingML Chart elements (c: namespace) — simple BuilderElement factories.
4772
+ *
4773
+ * Covers all 120 missing elements from dml-chart.xsd.
4774
+ * Each factory returns a XmlComponent that can be used as a child in chart XML trees.
4775
+ *
4776
+ * Reference: ISO/IEC 29500-4, dml-chart.xsd
4777
+ *
4778
+ * @module
4779
+ */
4780
+ const createApplyToEnd = () => new BuilderElement({ name: "c:applyToEnd" });
4781
+ const createApplyToFront = () => new BuilderElement({ name: "c:applyToFront" });
4782
+ const createApplyToSides = () => new BuilderElement({ name: "c:applyToSides" });
4783
+ const createAutoUpdate = () => new BuilderElement({ name: "c:autoUpdate" });
4784
+ const createBubble3D = () => new BuilderElement({ name: "c:bubble3D" });
4785
+ const createInvertIfNegative = () => new BuilderElement({ name: "c:invertIfNegative" });
4786
+ const createPlotVisOnly = () => new BuilderElement({ name: "c:plotVisOnly" });
4787
+ const createShowDLblsOverMax = () => new BuilderElement({ name: "c:showDLblsOverMax" });
4788
+ const createShowNegBubbles = () => new BuilderElement({ name: "c:showNegBubbles" });
4789
+ const createShowLeaderLines = () => new BuilderElement({ name: "c:showLeaderLines" });
4790
+ const createSmooth = () => new BuilderElement({ name: "c:smooth" });
4791
+ const createExplosion = (val) => new BuilderElement({
4792
+ name: "c:explosion",
4793
+ attributes: { val: {
4794
+ key: "c:val",
4795
+ value: val
4796
+ } }
4797
+ });
4798
+ const createFmtId = (val) => new BuilderElement({
4799
+ name: "c:fmtId",
4800
+ attributes: { val: {
4801
+ key: "c:val",
4802
+ value: val
4803
+ } }
4804
+ });
4805
+ const createSize = (val) => new BuilderElement({
4806
+ name: "c:size",
4807
+ attributes: { val: {
4808
+ key: "c:val",
4809
+ value: val
4810
+ } }
4811
+ });
4812
+ const createBubbleScale = (val) => new BuilderElement({
4813
+ name: "c:bubbleScale",
4814
+ attributes: { val: {
4815
+ key: "c:val",
4816
+ value: val
4817
+ } }
4818
+ });
4819
+ const createCrossesAt = (val) => new BuilderElement({
4820
+ name: "c:crossesAt",
4821
+ attributes: { val: {
4822
+ key: "c:val",
4823
+ value: val
4824
+ } }
4825
+ });
4826
+ const createCustUnit = (val) => new BuilderElement({
4827
+ name: "c:custUnit",
4828
+ attributes: { val: {
4829
+ key: "c:val",
4830
+ value: val
4831
+ } }
4832
+ });
4833
+ const createGapDepth = (val) => new BuilderElement({
4834
+ name: "c:gapDepth",
4835
+ attributes: { val: {
4836
+ key: "c:val",
4837
+ value: val
4838
+ } }
4839
+ });
4840
+ const createGapWidth = (val) => new BuilderElement({
4841
+ name: "c:gapWidth",
4842
+ attributes: { val: {
4843
+ key: "c:val",
4844
+ value: val
4845
+ } }
4846
+ });
4847
+ const createH = (val) => new BuilderElement({
4848
+ name: "c:h",
4849
+ attributes: { val: {
4850
+ key: "c:val",
4851
+ value: val
4852
+ } }
4853
+ });
4854
+ const createHoleSize = (val) => new BuilderElement({
4855
+ name: "c:holeSize",
4856
+ attributes: { val: {
4857
+ key: "c:val",
4858
+ value: val
4859
+ } }
4860
+ });
4861
+ const createLogBase = (val) => new BuilderElement({
4862
+ name: "c:logBase",
4863
+ attributes: { val: {
4864
+ key: "c:val",
4865
+ value: val
4866
+ } }
4867
+ });
4868
+ const createMajorUnit = (val) => new BuilderElement({
4869
+ name: "c:majorUnit",
4870
+ attributes: { val: {
4871
+ key: "c:val",
4872
+ value: val
4873
+ } }
4874
+ });
4875
+ const createMax = (val) => new BuilderElement({
4876
+ name: "c:max",
4877
+ attributes: { val: {
4878
+ key: "c:val",
4879
+ value: val
4880
+ } }
4881
+ });
4882
+ const createMin = (val) => new BuilderElement({
4883
+ name: "c:min",
4884
+ attributes: { val: {
4885
+ key: "c:val",
4886
+ value: val
4887
+ } }
4888
+ });
4889
+ const createMinorUnit = (val) => new BuilderElement({
4890
+ name: "c:minorUnit",
4891
+ attributes: { val: {
4892
+ key: "c:val",
4893
+ value: val
4894
+ } }
4895
+ });
4896
+ const createOverlap = (val) => new BuilderElement({
4897
+ name: "c:overlap",
4898
+ attributes: { val: {
4899
+ key: "c:val",
4900
+ value: val
4901
+ } }
4902
+ });
4903
+ const createSecondPieSize = (val) => new BuilderElement({
4904
+ name: "c:secondPieSize",
4905
+ attributes: { val: {
4906
+ key: "c:val",
4907
+ value: val
4908
+ } }
4909
+ });
4910
+ const createSplitPos = (val) => new BuilderElement({
4911
+ name: "c:splitPos",
4912
+ attributes: { val: {
4913
+ key: "c:val",
4914
+ value: val
4915
+ } }
4916
+ });
4917
+ const createW = (val) => new BuilderElement({
4918
+ name: "c:w",
4919
+ attributes: { val: {
4920
+ key: "c:val",
4921
+ value: val
4922
+ } }
4923
+ });
4924
+ const createX = (val) => new BuilderElement({
4925
+ name: "c:x",
4926
+ attributes: { val: {
4927
+ key: "c:val",
4928
+ value: val
4929
+ } }
4930
+ });
4931
+ const createY = (val) => new BuilderElement({
4932
+ name: "c:y",
4933
+ attributes: { val: {
4934
+ key: "c:val",
4935
+ value: val
4936
+ } }
4937
+ });
4938
+ const createBaseTimeUnit = (val) => new BuilderElement({
4939
+ name: "c:baseTimeUnit",
4940
+ attributes: { val: {
4941
+ key: "c:val",
4942
+ value: val
4943
+ } }
4944
+ });
4945
+ const createBuiltInUnit = (val) => new BuilderElement({
4946
+ name: "c:builtInUnit",
4947
+ attributes: { val: {
4948
+ key: "c:val",
4949
+ value: val
4950
+ } }
4951
+ });
4952
+ const createCrossBetween = (val) => new BuilderElement({
4953
+ name: "c:crossBetween",
4954
+ attributes: { val: {
4955
+ key: "c:val",
4956
+ value: val
4957
+ } }
4958
+ });
4959
+ const createDispBlanksAs = (val) => new BuilderElement({
4960
+ name: "c:dispBlanksAs",
4961
+ attributes: { val: {
4962
+ key: "c:val",
4963
+ value: val
4964
+ } }
4965
+ });
4966
+ const createHMode = (val) => new BuilderElement({
4967
+ name: "c:hMode",
4968
+ attributes: { val: {
4969
+ key: "c:val",
4970
+ value: val
4971
+ } }
4972
+ });
4973
+ const createLayoutTarget = (val) => new BuilderElement({
4974
+ name: "c:layoutTarget",
4975
+ attributes: { val: {
4976
+ key: "c:val",
4977
+ value: val
4978
+ } }
4979
+ });
4980
+ const createLblAlgn = (val) => new BuilderElement({
4981
+ name: "c:lblAlgn",
4982
+ attributes: { val: {
4983
+ key: "c:val",
4984
+ value: val
4985
+ } }
4986
+ });
4987
+ const createMajorTickMark = (val) => new BuilderElement({
4988
+ name: "c:majorTickMark",
4989
+ attributes: { val: {
4990
+ key: "c:val",
4991
+ value: val
4992
+ } }
4993
+ });
4994
+ const createMajorTimeUnit = (val) => new BuilderElement({
4995
+ name: "c:majorTimeUnit",
4996
+ attributes: { val: {
4997
+ key: "c:val",
4998
+ value: val
4999
+ } }
5000
+ });
5001
+ const createMinorTickMark = (val) => new BuilderElement({
5002
+ name: "c:minorTickMark",
5003
+ attributes: { val: {
5004
+ key: "c:val",
5005
+ value: val
5006
+ } }
5007
+ });
5008
+ const createMinorTimeUnit = (val) => new BuilderElement({
5009
+ name: "c:minorTimeUnit",
5010
+ attributes: { val: {
5011
+ key: "c:val",
5012
+ value: val
5013
+ } }
5014
+ });
5015
+ const createOfPieType = (val) => new BuilderElement({
5016
+ name: "c:ofPieType",
5017
+ attributes: { val: {
5018
+ key: "c:val",
5019
+ value: val
5020
+ } }
5021
+ });
5022
+ const createPictureFormat = (val) => new BuilderElement({
5023
+ name: "c:pictureFormat",
5024
+ attributes: { val: {
5025
+ key: "c:val",
5026
+ value: val
5027
+ } }
5028
+ });
5029
+ const createPictureStackUnit = (val) => new BuilderElement({
5030
+ name: "c:pictureStackUnit",
5031
+ attributes: { val: {
5032
+ key: "c:val",
5033
+ value: val
5034
+ } }
5035
+ });
5036
+ const createShape = (val) => new BuilderElement({
5037
+ name: "c:shape",
5038
+ attributes: { val: {
5039
+ key: "c:val",
5040
+ value: val
5041
+ } }
5042
+ });
5043
+ const createSizeRepresents = (val) => new BuilderElement({
5044
+ name: "c:sizeRepresents",
5045
+ attributes: { val: {
5046
+ key: "c:val",
5047
+ value: val
5048
+ } }
5049
+ });
5050
+ const createSplitType = (val) => new BuilderElement({
5051
+ name: "c:splitType",
5052
+ attributes: { val: {
5053
+ key: "c:val",
5054
+ value: val
5055
+ } }
5056
+ });
5057
+ const createSymbol = (val) => new BuilderElement({
5058
+ name: "c:symbol",
5059
+ attributes: { val: {
5060
+ key: "c:val",
5061
+ value: val
5062
+ } }
5063
+ });
5064
+ const createTickLblPos = (val) => new BuilderElement({
5065
+ name: "c:tickLblPos",
5066
+ attributes: { val: {
5067
+ key: "c:val",
5068
+ value: val
5069
+ } }
5070
+ });
5071
+ const createTickMarkSkip = (val) => new BuilderElement({
5072
+ name: "c:tickMarkSkip",
5073
+ attributes: { val: {
5074
+ key: "c:val",
5075
+ value: val
5076
+ } }
5077
+ });
5078
+ const createThickness = (val) => new BuilderElement({
5079
+ name: "c:thickness",
5080
+ attributes: { val: {
5081
+ key: "c:val",
5082
+ value: val
5083
+ } }
5084
+ });
5085
+ const createWMode = (val) => new BuilderElement({
5086
+ name: "c:wMode",
5087
+ attributes: { val: {
5088
+ key: "c:val",
5089
+ value: val
5090
+ } }
5091
+ });
5092
+ const createXMode = (val) => new BuilderElement({
5093
+ name: "c:xMode",
5094
+ attributes: { val: {
5095
+ key: "c:val",
5096
+ value: val
5097
+ } }
5098
+ });
5099
+ const createYMode = (val) => new BuilderElement({
5100
+ name: "c:yMode",
5101
+ attributes: { val: {
5102
+ key: "c:val",
5103
+ value: val
5104
+ } }
5105
+ });
5106
+ const createName = (val) => new BuilderElement({
5107
+ name: "c:name",
5108
+ children: [val]
5109
+ });
5110
+ const createBackWall = (children) => new BuilderElement({
5111
+ name: "c:backWall",
5112
+ children
5113
+ });
5114
+ const createBandFmt = (children) => new BuilderElement({
5115
+ name: "c:bandFmt",
5116
+ children
5117
+ });
5118
+ const createBandFmts = (children) => new BuilderElement({
5119
+ name: "c:bandFmts",
5120
+ children
5121
+ });
5122
+ const createChartObject = () => new BuilderElement({ name: "c:chartObject" });
5123
+ const createClrMapOvr = (children) => new BuilderElement({
5124
+ name: "c:clrMapOvr",
5125
+ children
5126
+ });
5127
+ const createCustSplit = (children) => new BuilderElement({
5128
+ name: "c:custSplit",
5129
+ children
5130
+ });
5131
+ const createDLbl = (children) => new BuilderElement({
5132
+ name: "c:dLbl",
5133
+ children
5134
+ });
5135
+ const createDPt = (children) => new BuilderElement({
5136
+ name: "c:dPt",
5137
+ children
5138
+ });
5139
+ const createDTable = (children) => new BuilderElement({
5140
+ name: "c:dTable",
5141
+ children
5142
+ });
5143
+ const createData = () => new BuilderElement({ name: "c:data" });
5144
+ const createDispUnits = (children) => new BuilderElement({
5145
+ name: "c:dispUnits",
5146
+ children
5147
+ });
5148
+ const createDispUnitsLbl = (children) => new BuilderElement({
5149
+ name: "c:dispUnitsLbl",
5150
+ children
5151
+ });
5152
+ const createDownBars = (children) => new BuilderElement({
5153
+ name: "c:downBars",
5154
+ children
5155
+ });
5156
+ const createEvenFooter = (val) => new BuilderElement({
5157
+ name: "c:evenFooter",
5158
+ children: [val]
5159
+ });
5160
+ const createEvenHeader = (val) => new BuilderElement({
5161
+ name: "c:evenHeader",
5162
+ children: [val]
5163
+ });
5164
+ const createExt = (children) => new BuilderElement({
5165
+ name: "c:ext",
5166
+ children
5167
+ });
5168
+ const createExtLst = (children) => new BuilderElement({
5169
+ name: "c:extLst",
5170
+ children
5171
+ });
5172
+ const createExternalData = (children) => new BuilderElement({
5173
+ name: "c:externalData",
5174
+ children
5175
+ });
5176
+ const createFirstFooter = (val) => new BuilderElement({
5177
+ name: "c:firstFooter",
5178
+ children: [val]
5179
+ });
5180
+ const createFirstHeader = (val) => new BuilderElement({
5181
+ name: "c:firstHeader",
5182
+ children: [val]
5183
+ });
5184
+ const createFloor = (children) => new BuilderElement({
5185
+ name: "c:floor",
5186
+ children
5187
+ });
5188
+ const createFormatting = () => new BuilderElement({ name: "c:formatting" });
5189
+ const createHeaderFooter = (children, options) => new BuilderElement({
5190
+ name: "c:headerFooter",
5191
+ children,
5192
+ attributes: options ? {
5193
+ ...options.alignWithMargins !== void 0 ? { alignWithMargins: {
5194
+ key: "alignWithMargins",
5195
+ value: options.alignWithMargins
5196
+ } } : {},
5197
+ ...options.differentOddEven !== void 0 ? { differentOddEven: {
5198
+ key: "differentOddEven",
5199
+ value: options.differentOddEven
5200
+ } } : {},
5201
+ ...options.differentFirst !== void 0 ? { differentFirst: {
5202
+ key: "differentFirst",
5203
+ value: options.differentFirst
5204
+ } } : {}
5205
+ } : void 0
5206
+ });
5207
+ const createHiLowLines = (children) => new BuilderElement({
5208
+ name: "c:hiLowLines",
5209
+ children
5210
+ });
5211
+ const createLeaderLines = (children) => new BuilderElement({
5212
+ name: "c:leaderLines",
5213
+ children
5214
+ });
5215
+ const createLegacyDrawingHF = () => new BuilderElement({ name: "c:legacyDrawingHF" });
5216
+ const createLegendEntry = (children) => new BuilderElement({
5217
+ name: "c:legendEntry",
5218
+ children
5219
+ });
5220
+ const createLvl = (children) => new BuilderElement({
5221
+ name: "c:lvl",
5222
+ children
5223
+ });
5224
+ const createMajorGridlines = (children) => new BuilderElement({
5225
+ name: "c:majorGridlines",
5226
+ children
5227
+ });
5228
+ const createManualLayout = (children) => new BuilderElement({
5229
+ name: "c:manualLayout",
5230
+ children
5231
+ });
5232
+ const createMarker = (children) => new BuilderElement({
5233
+ name: "c:marker",
5234
+ children
5235
+ });
5236
+ const createMinorGridlines = (children) => new BuilderElement({
5237
+ name: "c:minorGridlines",
5238
+ children
5239
+ });
5240
+ const createMinus = (children) => new BuilderElement({
5241
+ name: "c:minus",
5242
+ children
5243
+ });
5244
+ const createMultiLvlStrCache = (children) => new BuilderElement({
5245
+ name: "c:multiLvlStrCache",
5246
+ children
5247
+ });
5248
+ const createMultiLvlStrRef = (children) => new BuilderElement({
5249
+ name: "c:multiLvlStrRef",
5250
+ children
5251
+ });
5252
+ const createNumLit = (children) => new BuilderElement({
5253
+ name: "c:numLit",
5254
+ children
5255
+ });
5256
+ const createOddFooter = (val) => new BuilderElement({
5257
+ name: "c:oddFooter",
5258
+ children: [val]
5259
+ });
5260
+ const createOddHeader = (val) => new BuilderElement({
5261
+ name: "c:oddHeader",
5262
+ children: [val]
5263
+ });
5264
+ const createOfPieChart = (children) => new BuilderElement({
5265
+ name: "c:ofPieChart",
5266
+ children
5267
+ });
5268
+ const createPageMargins = (options) => new BuilderElement({
5269
+ name: "c:pageMargins",
5270
+ attributes: {
5271
+ l: {
5272
+ key: "l",
5273
+ value: options.l
5274
+ },
5275
+ r: {
5276
+ key: "r",
5277
+ value: options.r
5278
+ },
5279
+ t: {
5280
+ key: "t",
5281
+ value: options.t
5282
+ },
5283
+ b: {
5284
+ key: "b",
5285
+ value: options.b
5286
+ },
5287
+ header: {
5288
+ key: "header",
5289
+ value: options.header
5290
+ },
5291
+ footer: {
5292
+ key: "footer",
5293
+ value: options.footer
5294
+ }
5295
+ }
5296
+ });
5297
+ const createPageSetup = (options) => new BuilderElement({
5298
+ name: "c:pageSetup",
5299
+ attributes: options ? {
5300
+ ...options.paperSize !== void 0 ? { paperSize: {
5301
+ key: "paperSize",
5302
+ value: options.paperSize
5303
+ } } : {},
5304
+ ...options.paperHeight ? { paperHeight: {
5305
+ key: "paperHeight",
5306
+ value: options.paperHeight
5307
+ } } : {},
5308
+ ...options.paperWidth ? { paperWidth: {
5309
+ key: "paperWidth",
5310
+ value: options.paperWidth
5311
+ } } : {},
5312
+ ...options.firstPageNumber !== void 0 ? { firstPageNumber: {
5313
+ key: "firstPageNumber",
5314
+ value: options.firstPageNumber
5315
+ } } : {},
5316
+ ...options.orientation ? { orientation: {
5317
+ key: "orientation",
5318
+ value: options.orientation
5319
+ } } : {},
5320
+ ...options.blackAndWhite !== void 0 ? { blackAndWhite: {
5321
+ key: "blackAndWhite",
5322
+ value: options.blackAndWhite
5323
+ } } : {},
5324
+ ...options.draft !== void 0 ? { draft: {
5325
+ key: "draft",
5326
+ value: options.draft
5327
+ } } : {},
5328
+ ...options.useFirstPageNumber !== void 0 ? { useFirstPageNumber: {
5329
+ key: "useFirstPageNumber",
5330
+ value: options.useFirstPageNumber
5331
+ } } : {},
5332
+ ...options.horizontalDpi !== void 0 ? { horizontalDpi: {
5333
+ key: "horizontalDpi",
5334
+ value: options.horizontalDpi
5335
+ } } : {},
5336
+ ...options.verticalDpi !== void 0 ? { verticalDpi: {
5337
+ key: "verticalDpi",
5338
+ value: options.verticalDpi
5339
+ } } : {},
5340
+ ...options.copies !== void 0 ? { copies: {
5341
+ key: "copies",
5342
+ value: options.copies
5343
+ } } : {}
5344
+ } : void 0
5345
+ });
5346
+ const createPictureOptions = (children) => new BuilderElement({
5347
+ name: "c:pictureOptions",
5348
+ children
5349
+ });
5350
+ const createPivotFmt = (children) => new BuilderElement({
5351
+ name: "c:pivotFmt",
5352
+ children
5353
+ });
5354
+ const createPivotFmts = (children) => new BuilderElement({
5355
+ name: "c:pivotFmts",
5356
+ children
5357
+ });
5358
+ const createPivotSource = (children) => new BuilderElement({
5359
+ name: "c:pivotSource",
5360
+ children
5361
+ });
5362
+ const createPlus = (children) => new BuilderElement({
5363
+ name: "c:plus",
5364
+ children
5365
+ });
5366
+ const createPrintSettings = (children) => new BuilderElement({
5367
+ name: "c:printSettings",
5368
+ children
5369
+ });
5370
+ const createProtection = (children) => new BuilderElement({
5371
+ name: "c:protection",
5372
+ children
5373
+ });
5374
+ const createSecondPiePt = (val) => new BuilderElement({
5375
+ name: "c:secondPiePt",
5376
+ attributes: { val: {
5377
+ key: "c:val",
5378
+ value: val
5379
+ } }
5380
+ });
5381
+ const createSelection = () => new BuilderElement({ name: "c:selection" });
5382
+ const createSerLines = (children) => new BuilderElement({
5383
+ name: "c:serLines",
5384
+ children
5385
+ });
5386
+ const createShowHorzBorder = () => new BuilderElement({ name: "c:showHorzBorder" });
5387
+ const createShowKeys = () => new BuilderElement({ name: "c:showKeys" });
5388
+ const createShowOutline = () => new BuilderElement({ name: "c:showOutline" });
5389
+ const createShowVertBorder = () => new BuilderElement({ name: "c:showVertBorder" });
5390
+ const createSideWall = (children) => new BuilderElement({
5391
+ name: "c:sideWall",
5392
+ children
5393
+ });
5394
+ const createStrLit = (children) => new BuilderElement({
5395
+ name: "c:strLit",
5396
+ children
5397
+ });
5398
+ const createSurface3DChart = (children) => new BuilderElement({
5399
+ name: "c:surface3DChart",
5400
+ children
5401
+ });
5402
+ const createTrendlineLbl = (children) => new BuilderElement({
5403
+ name: "c:trendlineLbl",
5404
+ children
5405
+ });
5406
+ const createUpBars = (children) => new BuilderElement({
5407
+ name: "c:upBars",
5408
+ children
5409
+ });
5410
+ const createUpDownBars = (children) => new BuilderElement({
5411
+ name: "c:upDownBars",
5412
+ children
5413
+ });
5414
+ const createUserInterface = () => new BuilderElement({ name: "c:userInterface" });
5415
+ const createUserShapes = () => new BuilderElement({ name: "c:userShapes" });
5416
+ //#endregion
5417
+ //#region src/drawingml/spreadsheet-drawing/spreadsheet-drawing.ts
5418
+ /**
5419
+ * DrawingML SpreadsheetDrawing elements (xdr: namespace).
5420
+ *
5421
+ * These elements define anchoring of images, charts, shapes, and other
5422
+ * graphical objects to worksheet cells in SpreadsheetML documents.
5423
+ *
5424
+ * Reference: ISO/IEC 29500-4, dml-spreadsheetDrawing.xsd
5425
+ *
5426
+ * @module
5427
+ */
5428
+ /**
5429
+ * Creates an xdr:col element (Column ID).
5430
+ *
5431
+ * ## XSD Schema
5432
+ * ```xml
5433
+ * <xsd:element name="col" type="ST_ColID"/>
5434
+ * ```
5435
+ */
5436
+ const createXdrCol = (value) => new BuilderElement({
5437
+ children: [String(value)],
5438
+ name: "xdr:col"
5439
+ });
5440
+ /**
5441
+ * Creates an xdr:colOff element (Column Offset).
5442
+ *
5443
+ * ## XSD Schema
5444
+ * ```xml
5445
+ * <xsd:element name="colOff" type="a:ST_Coordinate"/>
5446
+ * ```
5447
+ */
5448
+ const createXdrColOff = (value) => new BuilderElement({
5449
+ children: [String(value)],
5450
+ name: "xdr:colOff"
5451
+ });
5452
+ /**
5453
+ * Creates an xdr:row element (Row ID).
5454
+ *
5455
+ * ## XSD Schema
5456
+ * ```xml
5457
+ * <xsd:element name="row" type="ST_RowID"/>
5458
+ * ```
5459
+ */
5460
+ const createXdrRow = (value) => new BuilderElement({
5461
+ children: [String(value)],
5462
+ name: "xdr:row"
5463
+ });
5464
+ /**
5465
+ * Creates an xdr:rowOff element (Row Offset).
5466
+ *
5467
+ * ## XSD Schema
5468
+ * ```xml
5469
+ * <xsd:element name="rowOff" type="a:ST_Coordinate"/>
5470
+ * ```
5471
+ */
5472
+ const createXdrRowOff = (value) => new BuilderElement({
5473
+ children: [String(value)],
5474
+ name: "xdr:rowOff"
5475
+ });
5476
+ /**
5477
+ * Creates an xdr:from element (Marker - top-left corner).
5478
+ *
5479
+ * ## XSD Schema
5480
+ * ```xml
5481
+ * <xsd:element name="from" type="CT_Marker"/>
5482
+ * ```
5483
+ */
5484
+ const createXdrFrom = (options) => new BuilderElement({
5485
+ children: [
5486
+ createXdrCol(options.col),
5487
+ createXdrColOff(options.colOff),
5488
+ createXdrRow(options.row),
5489
+ createXdrRowOff(options.rowOff)
5490
+ ],
5491
+ name: "xdr:from"
5492
+ });
5493
+ /**
5494
+ * Creates an xdr:to element (Marker - bottom-right corner).
5495
+ *
5496
+ * ## XSD Schema
5497
+ * ```xml
5498
+ * <xsd:element name="to" type="CT_Marker"/>
5499
+ * ```
5500
+ */
5501
+ const createXdrTo = (options) => new BuilderElement({
5502
+ children: [
5503
+ createXdrCol(options.col),
5504
+ createXdrColOff(options.colOff),
5505
+ createXdrRow(options.row),
5506
+ createXdrRowOff(options.rowOff)
5507
+ ],
5508
+ name: "xdr:to"
5509
+ });
5510
+ /**
5511
+ * Creates an xdr:cNvPr element (Non-Visual Drawing Properties).
5512
+ *
5513
+ * ## XSD Schema
5514
+ * ```xml
5515
+ * <xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps"/>
5516
+ * ```
5517
+ */
5518
+ const createXdrCNvPr = (options) => new BuilderElement({
5519
+ attributes: {
5520
+ ...options.id !== void 0 ? { id: {
5521
+ key: "id",
5522
+ value: options.id
5523
+ } } : {},
5524
+ ...options.name ? { name: {
5525
+ key: "name",
5526
+ value: options.name
5527
+ } } : {}
5528
+ },
5529
+ name: "xdr:cNvPr"
5530
+ });
5531
+ /**
5532
+ * Creates an xdr:cNvSpPr element (Non-Visual Drawing Shape Properties).
5533
+ *
5534
+ * ## XSD Schema
5535
+ * ```xml
5536
+ * <xsd:element name="cNvSpPr" type="a:CT_NonVisualDrawingShapeProps"/>
5537
+ * ```
5538
+ */
5539
+ const createXdrCNvSpPr = () => new BuilderElement({ name: "xdr:cNvSpPr" });
5540
+ /**
5541
+ * Creates an xdr:cNvCxnSpPr element (Non-Visual Connector Properties).
5542
+ *
5543
+ * ## XSD Schema
5544
+ * ```xml
5545
+ * <xsd:element name="cNvCxnSpPr" type="a:CT_NonVisualConnectorProperties"/>
5546
+ * ```
5547
+ */
5548
+ const createXdrCNvCxnSpPr = () => new BuilderElement({ name: "xdr:cNvCxnSpPr" });
5549
+ /**
5550
+ * Creates an xdr:cNvPicPr element (Non-Visual Picture Properties).
5551
+ *
5552
+ * ## XSD Schema
5553
+ * ```xml
5554
+ * <xsd:element name="cNvPicPr" type="a:CT_NonVisualPictureProperties"/>
5555
+ * ```
5556
+ */
5557
+ const createXdrCNvPicPr = (options) => new BuilderElement({
5558
+ attributes: options?.preferRelativeResize !== void 0 ? { preferRelativeResize: {
5559
+ key: "preferRelativeResize",
5560
+ value: options.preferRelativeResize ? 1 : 0
5561
+ } } : void 0,
5562
+ name: "xdr:cNvPicPr"
5563
+ });
5564
+ /**
5565
+ * Creates an xdr:cNvGrpSpPr element (Non-Visual Group Shape Properties).
5566
+ *
5567
+ * ## XSD Schema
5568
+ * ```xml
5569
+ * <xsd:element name="cNvGrpSpPr" type="a:CT_NonVisualGroupDrawingShapeProps"/>
5570
+ * ```
5571
+ */
5572
+ const createXdrCNvGrpSpPr = () => new BuilderElement({ name: "xdr:cNvGrpSpPr" });
5573
+ /**
5574
+ * Creates an xdr:nvSpPr element (Shape Non-Visual Properties).
5575
+ *
5576
+ * ## XSD Schema
5577
+ * ```xml
5578
+ * <xsd:element name="nvSpPr" type="CT_ShapeNonVisual"/>
5579
+ * ```
5580
+ */
5581
+ const createXdrNvSpPr = (children) => new BuilderElement({
5582
+ children,
5583
+ name: "xdr:nvSpPr"
5584
+ });
5585
+ /**
5586
+ * Creates an xdr:nvCxnSpPr element (Connector Non-Visual Properties).
5587
+ *
5588
+ * ## XSD Schema
5589
+ * ```xml
5590
+ * <xsd:element name="nvCxnSpPr" type="CT_ConnectorNonVisual"/>
5591
+ * ```
5592
+ */
5593
+ const createXdrNvCxnSpPr = (children) => new BuilderElement({
5594
+ children,
5595
+ name: "xdr:nvCxnSpPr"
5596
+ });
5597
+ /**
5598
+ * Creates an xdr:nvPicPr element (Picture Non-Visual Properties).
5599
+ *
5600
+ * ## XSD Schema
5601
+ * ```xml
5602
+ * <xsd:element name="nvPicPr" type="CT_PictureNonVisual"/>
5603
+ * ```
5604
+ */
5605
+ const createXdrNvPicPr = (children) => new BuilderElement({
5606
+ children,
5607
+ name: "xdr:nvPicPr"
5608
+ });
5609
+ /**
5610
+ * Creates an xdr:nvGrpSpPr element (Group Shape Non-Visual Properties).
5611
+ *
5612
+ * ## XSD Schema
5613
+ * ```xml
5614
+ * <xsd:element name="nvGrpSpPr" type="CT_GroupShapeNonVisual"/>
5615
+ * ```
5616
+ */
5617
+ const createXdrNvGrpSpPr = (children) => new BuilderElement({
5618
+ children,
5619
+ name: "xdr:nvGrpSpPr"
5620
+ });
5621
+ /**
5622
+ * Creates an xdr:sp element (Shape).
5623
+ *
5624
+ * ## XSD Schema
5625
+ * ```xml
5626
+ * <xsd:element name="sp" type="CT_Shape"/>
5627
+ * ```
5628
+ */
5629
+ const createXdrSp = (options) => new BuilderElement({
5630
+ attributes: options?.attributes ? {
5631
+ ...options.attributes.macro ? { macro: {
5632
+ key: "macro",
5633
+ value: options.attributes.macro
5634
+ } } : {},
5635
+ ...options.attributes.textlink ? { textlink: {
5636
+ key: "textlink",
5637
+ value: options.attributes.textlink
5638
+ } } : {},
5639
+ ...options.attributes.fLocksText !== void 0 ? { fLocksText: {
5640
+ key: "fLocksText",
5641
+ value: options.attributes.fLocksText ? 1 : 0
5642
+ } } : {},
5643
+ ...options.attributes.fPublished !== void 0 ? { fPublished: {
5644
+ key: "fPublished",
5645
+ value: options.attributes.fPublished ? 1 : 0
5646
+ } } : {}
5647
+ } : void 0,
5648
+ children: options?.children,
5649
+ name: "xdr:sp"
5650
+ });
5651
+ /**
5652
+ * Creates an xdr:cxnSp element (Connector Shape).
5653
+ *
5654
+ * ## XSD Schema
5655
+ * ```xml
5656
+ * <xsd:element name="cxnSp" type="CT_Connector"/>
5657
+ * ```
5658
+ */
5659
+ const createXdrCxnSp = (children) => new BuilderElement({
5660
+ children,
5661
+ name: "xdr:cxnSp"
5662
+ });
5663
+ /**
5664
+ * Creates an xdr:pic element (Picture).
5665
+ *
5666
+ * ## XSD Schema
5667
+ * ```xml
5668
+ * <xsd:element name="pic" type="CT_Picture"/>
5669
+ * ```
5670
+ */
5671
+ const createXdrPic = (children) => new BuilderElement({
5672
+ children,
5673
+ name: "xdr:pic"
5674
+ });
5675
+ /**
5676
+ * Creates an xdr:grpSp element (Group Shape).
5677
+ *
5678
+ * ## XSD Schema
5679
+ * ```xml
5680
+ * <xsd:element name="grpSp" type="CT_GroupShape"/>
5681
+ * ```
5682
+ */
5683
+ const createXdrGrpSp = (children) => new BuilderElement({
5684
+ children,
5685
+ name: "xdr:grpSp"
5686
+ });
5687
+ /**
5688
+ * Creates an xdr:spPr element (Shape Properties).
5689
+ *
5690
+ * ## XSD Schema
5691
+ * ```xml
5692
+ * <xsd:element name="spPr" type="a:CT_ShapeProperties"/>
5693
+ * ```
5694
+ */
5695
+ const createXdrSpPr = (children) => new BuilderElement({
5696
+ children,
5697
+ name: "xdr:spPr"
5698
+ });
5699
+ /**
5700
+ * Creates an xdr:grpSpPr element (Group Shape Properties).
5701
+ *
5702
+ * ## XSD Schema
5703
+ * ```xml
5704
+ * <xsd:element name="grpSpPr" type="a:CT_GroupShapeProperties"/>
5705
+ * ```
5706
+ */
5707
+ const createXdrGrpSpPr = (children) => new BuilderElement({
5708
+ children,
5709
+ name: "xdr:grpSpPr"
5710
+ });
5711
+ /**
5712
+ * Creates an xdr:style element (Shape Style).
5713
+ *
5714
+ * ## XSD Schema
5715
+ * ```xml
5716
+ * <xsd:element name="style" type="a:CT_ShapeStyle"/>
5717
+ * ```
5718
+ */
5719
+ const createXdrStyle = () => new BuilderElement({ name: "xdr:style" });
5720
+ /**
5721
+ * Creates an xdr:txBody element (Text Body).
5722
+ *
5723
+ * ## XSD Schema
5724
+ * ```xml
5725
+ * <xsd:element name="txBody" type="a:CT_TextBody"/>
5726
+ * ```
5727
+ */
5728
+ const createXdrTxBody = (children) => new BuilderElement({
5729
+ children,
5730
+ name: "xdr:txBody"
5731
+ });
5732
+ /**
5733
+ * Creates an xdr:blipFill element (Blip Fill).
5734
+ *
5735
+ * ## XSD Schema
5736
+ * ```xml
5737
+ * <xsd:element name="blipFill" type="a:CT_BlipFillProperties"/>
5738
+ * ```
5739
+ */
5740
+ const createXdrBlipFill = (children) => new BuilderElement({
5741
+ children,
5742
+ name: "xdr:blipFill"
5743
+ });
5744
+ /**
5745
+ * Creates an xdr:contentPart element (Content Part).
5746
+ *
5747
+ * ## XSD Schema
5748
+ * ```xml
5749
+ * <xsd:element name="contentPart" type="CT_Rel"/>
5750
+ * ```
5751
+ */
5752
+ const createXdrContentPart = (rId) => new BuilderElement({
5753
+ attributes: rId ? { "r:id": {
5754
+ key: "r:id",
5755
+ value: rId
5756
+ } } : void 0,
5757
+ name: "xdr:contentPart"
5758
+ });
5759
+ /**
5760
+ * Creates an xdr:twoCellAnchor element (Two Cell Anchor).
5761
+ *
5762
+ * ## XSD Schema
5763
+ * ```xml
5764
+ * <xsd:element name="twoCellAnchor" type="CT_TwoCellAnchor"/>
5765
+ * ```
5766
+ */
5767
+ const createXdrTwoCellAnchor = (options) => new BuilderElement({
5768
+ attributes: options?.editAs ? { editAs: {
5769
+ key: "editAs",
5770
+ value: options.editAs
5771
+ } } : void 0,
5772
+ children: options?.children,
5773
+ name: "xdr:twoCellAnchor"
5774
+ });
5775
+ /**
5776
+ * Creates an xdr:oneCellAnchor element (One Cell Anchor).
5777
+ *
5778
+ * ## XSD Schema
5779
+ * ```xml
5780
+ * <xsd:element name="oneCellAnchor" type="CT_OneCellAnchor"/>
5781
+ * ```
5782
+ */
5783
+ const createXdrOneCellAnchor = (children) => new BuilderElement({
5784
+ children,
5785
+ name: "xdr:oneCellAnchor"
5786
+ });
5787
+ //#endregion
5788
+ //#region src/drawingml/wordprocessing-drawing/wordprocessing-drawing.ts
5789
+ /**
5790
+ * DrawingML WordprocessingDrawing elements (wp: namespace).
5791
+ *
5792
+ * These elements define inline and anchored drawings within WordprocessingML
5793
+ * documents, including wordprocessing shapes, groups, canvases, content parts,
5794
+ * and their non-visual properties.
5795
+ *
5796
+ * Reference: ISO/IEC 29500-4, dml-wordprocessingDrawing.xsd
5797
+ *
5798
+ * @module
5799
+ */
5800
+ /**
5801
+ * Creates a wp:cNvPr element (Non-Visual Drawing Properties).
5802
+ *
5803
+ * ## XSD Schema
5804
+ * ```xml
5805
+ * <xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps"/>
5806
+ * ```
5807
+ */
5808
+ const createWpCNvPr = (options) => new BuilderElement({
5809
+ attributes: {
5810
+ ...options?.id !== void 0 ? { id: {
5811
+ key: "id",
5812
+ value: options.id
5813
+ } } : {},
5814
+ ...options?.name ? { name: {
5815
+ key: "name",
5816
+ value: options.name
5817
+ } } : {},
5818
+ ...options?.descr ? { descr: {
5819
+ key: "descr",
5820
+ value: options.descr
5821
+ } } : {},
5822
+ ...options?.hidden !== void 0 ? { hidden: {
5823
+ key: "hidden",
5824
+ value: options.hidden ? 1 : 0
5825
+ } } : {}
5826
+ },
5827
+ name: "wp:cNvPr"
5828
+ });
5829
+ /**
5830
+ * Creates a wp:cNvSpPr element (Non-Visual Drawing Shape Properties).
5831
+ *
5832
+ * ## XSD Schema
5833
+ * ```xml
5834
+ * <xsd:element name="cNvSpPr" type="a:CT_NonVisualDrawingShapeProps"/>
5835
+ * ```
5836
+ */
5837
+ const createWpCNvSpPr = (options) => new BuilderElement({
5838
+ attributes: options?.txSp !== void 0 ? { txSp: {
5839
+ key: "txSp",
5840
+ value: options.txSp ? 1 : 0
5841
+ } } : void 0,
5842
+ name: "wp:cNvSpPr"
5843
+ });
5844
+ /**
5845
+ * Creates a wp:cNvCnPr element (Non-Visual Connector Properties).
5846
+ *
5847
+ * ## XSD Schema
5848
+ * ```xml
5849
+ * <xsd:element name="cNvCnPr" type="a:CT_NonVisualConnectorProperties"/>
5850
+ * ```
5851
+ */
5852
+ const createWpCNvCnPr = () => new BuilderElement({ name: "wp:cNvCnPr" });
5853
+ /**
5854
+ * Creates a wp:cNvFrPr element (Non-Visual Graphic Frame Properties).
5855
+ *
5856
+ * ## XSD Schema
5857
+ * ```xml
5858
+ * <xsd:element name="cNvFrPr" type="a:CT_NonVisualGraphicFrameProperties"/>
5859
+ * ```
5860
+ */
5861
+ const createWpCNvFrPr = () => new BuilderElement({ name: "wp:cNvFrPr" });
5862
+ /**
5863
+ * Creates a wp:cNvGrpSpPr element (Non-Visual Group Shape Properties).
5864
+ *
5865
+ * ## XSD Schema
5866
+ * ```xml
5867
+ * <xsd:element name="cNvGrpSpPr" type="a:CT_NonVisualGroupDrawingShapeProps"/>
5868
+ * ```
5869
+ */
5870
+ const createWpCNvGrpSpPr = () => new BuilderElement({ name: "wp:cNvGrpSpPr" });
5871
+ const createWpCNvContentPartPr = (options) => {
5872
+ const attrs = {};
5873
+ if (options?.isComment !== void 0) attrs.isComment = {
5874
+ key: "isComment",
5875
+ value: options.isComment ? "1" : "0"
5876
+ };
5877
+ return new BuilderElement({
5878
+ name: "wp:cNvContentPartPr",
5879
+ attributes: Object.keys(attrs).length > 0 ? attrs : void 0
5880
+ });
5881
+ };
5882
+ /**
5883
+ * Creates a wp:wsp element (Wordprocessing Shape).
5884
+ *
5885
+ * ## XSD Schema
5886
+ * ```xml
5887
+ * <xsd:element name="wsp" type="CT_WordprocessingShape"/>
5888
+ * ```
5889
+ */
5890
+ const createWpSp = (options) => new BuilderElement({
5891
+ attributes: options?.normalEastAsianFlow !== void 0 ? { normalEastAsianFlow: {
5892
+ key: "normalEastAsianFlow",
5893
+ value: options.normalEastAsianFlow ? 1 : 0
5894
+ } } : void 0,
5895
+ children: options?.children,
5896
+ name: "wp:wsp"
5897
+ });
5898
+ /**
5899
+ * Creates a wp:spPr element (Shape Properties within wp namespace).
5900
+ *
5901
+ * ## XSD Schema
5902
+ * ```xml
5903
+ * <xsd:element name="spPr" type="a:CT_ShapeProperties"/>
5904
+ * ```
5905
+ */
5906
+ const createWpSpPr = (children) => new BuilderElement({
5907
+ children,
5908
+ name: "wp:spPr"
5909
+ });
5910
+ /**
5911
+ * Creates a wp:grpSpPr element (Group Shape Properties within wp namespace).
5912
+ *
5913
+ * ## XSD Schema
5914
+ * ```xml
5915
+ * <xsd:element name="grpSpPr" type="a:CT_GroupShapeProperties"/>
5916
+ * ```
5917
+ */
5918
+ const createWpGrpSpPr = (children) => new BuilderElement({
5919
+ children,
5920
+ name: "wp:grpSpPr"
5921
+ });
5922
+ /**
5923
+ * Creates a wp:style element (Shape Style).
5924
+ *
5925
+ * ## XSD Schema
5926
+ * ```xml
5927
+ * <xsd:element name="style" type="a:CT_ShapeStyle"/>
5928
+ * ```
5929
+ */
5930
+ const createWpStyle = () => new BuilderElement({ name: "wp:style" });
5931
+ /**
5932
+ * Creates a wp:xfrm element (2D Transform).
5933
+ *
5934
+ * ## XSD Schema
5935
+ * ```xml
5936
+ * <xsd:element name="xfrm" type="a:CT_Transform2D"/>
5937
+ * ```
5938
+ */
5939
+ const createWpXfrm = (children) => new BuilderElement({
5940
+ children,
5941
+ name: "wp:xfrm"
5942
+ });
5943
+ /**
5944
+ * Creates a wp:bodyPr element (Text Body Properties).
5945
+ *
5946
+ * ## XSD Schema
5947
+ * ```xml
5948
+ * <xsd:element name="bodyPr" type="a:CT_TextBodyProperties"/>
5949
+ * ```
5950
+ */
5951
+ const createWpBodyPr = () => new BuilderElement({ name: "wp:bodyPr" });
5952
+ /**
5953
+ * Creates a wp:txbx element (Textbox Info).
5954
+ *
5955
+ * ## XSD Schema
5956
+ * ```xml
5957
+ * <xsd:element name="txbx" type="CT_TextboxInfo"/>
5958
+ * ```
5959
+ */
5960
+ const createWpTxbx = (options) => new BuilderElement({
5961
+ attributes: options?.id !== void 0 ? { id: {
5962
+ key: "id",
5963
+ value: options.id
5964
+ } } : void 0,
5965
+ children: options?.children,
5966
+ name: "wp:txbx"
5967
+ });
5968
+ /**
5969
+ * Creates a wp:txbxContent element (Textbox Content).
5970
+ *
5971
+ * ## XSD Schema
5972
+ * ```xml
5973
+ * <xsd:element name="txbxContent" type="CT_TxbxContent"/>
5974
+ * ```
5975
+ */
5976
+ const createWpTxbxContent = (children) => new BuilderElement({
5977
+ children,
5978
+ name: "wp:txbxContent"
5979
+ });
5980
+ /**
5981
+ * Creates a wp:linkedTxbx element (Linked Textbox Information).
5982
+ *
5983
+ * ## XSD Schema
5984
+ * ```xml
5985
+ * <xsd:element name="linkedTxbx" type="CT_LinkedTextboxInformation"/>
5986
+ * ```
5987
+ */
5988
+ const createWpLinkedTxbx = (options) => new BuilderElement({
5989
+ attributes: {
5990
+ id: {
5991
+ key: "id",
5992
+ value: options.id
5993
+ },
5994
+ seq: {
5995
+ key: "seq",
5996
+ value: options.seq
5997
+ }
5998
+ },
5999
+ name: "wp:linkedTxbx"
6000
+ });
6001
+ /**
6002
+ * Creates a wp:extLst element (Extension List).
6003
+ *
6004
+ * ## XSD Schema
6005
+ * ```xml
6006
+ * <xsd:element name="extLst" type="a:CT_OfficeArtExtensionList"/>
6007
+ * ```
6008
+ */
6009
+ const createWpExtLst = (children) => new BuilderElement({
6010
+ children,
6011
+ name: "wp:extLst"
6012
+ });
6013
+ /**
6014
+ * Creates a wp:graphicFrame element (Graphic Frame).
6015
+ *
6016
+ * ## XSD Schema
6017
+ * ```xml
6018
+ * <xsd:element name="graphicFrame" type="CT_GraphicFrame"/>
6019
+ * ```
6020
+ */
6021
+ const createWpGraphicFrame = (options) => new BuilderElement({
6022
+ children: options?.children,
6023
+ name: "wp:graphicFrame"
6024
+ });
6025
+ /**
6026
+ * Creates a wp:contentPart element (Content Part).
6027
+ *
6028
+ * ## XSD Schema
6029
+ * ```xml
6030
+ * <xsd:element name="contentPart" type="CT_WordprocessingContentPart"/>
6031
+ * ```
6032
+ */
6033
+ const createWpContentPart = (options) => new BuilderElement({
6034
+ attributes: {
6035
+ ...options?.bwMode ? { bwMode: {
6036
+ key: "bwMode",
6037
+ value: options.bwMode
6038
+ } } : {},
6039
+ ...options?.rId ? { "r:id": {
6040
+ key: "r:id",
6041
+ value: options.rId
6042
+ } } : {}
6043
+ },
6044
+ name: "wp:contentPart"
6045
+ });
6046
+ /**
6047
+ * Creates a wp:nvContentPartPr element (Non-Visual Content Part Properties).
6048
+ *
6049
+ * ## XSD Schema
6050
+ * ```xml
6051
+ * <xsd:element name="nvContentPartPr" type="CT_WordprocessingContentPartNonVisual"/>
6052
+ * ```
6053
+ */
6054
+ const createWpNvContentPartPr = (children) => new BuilderElement({
6055
+ children,
6056
+ name: "wp:nvContentPartPr"
6057
+ });
6058
+ /**
6059
+ * Creates a wp:wgp element (Wordprocessing Group).
6060
+ *
6061
+ * ## XSD Schema
6062
+ * ```xml
6063
+ * <xsd:element name="wgp" type="CT_WordprocessingGroup"/>
6064
+ * ```
6065
+ */
6066
+ const createWpGrpSp = (options) => new BuilderElement({
6067
+ children: options?.children,
6068
+ name: "wp:wgp"
6069
+ });
6070
+ /**
6071
+ * Creates a wp:grpSp element (Nested Group Shape within Wordprocessing Group).
6072
+ *
6073
+ * ## XSD Schema
6074
+ * ```xml
6075
+ * <xsd:element name="grpSp" type="CT_WordprocessingGroup"/>
6076
+ * ```
6077
+ */
6078
+ const createWpNestedGrpSp = (options) => new BuilderElement({
6079
+ children: options?.children,
6080
+ name: "wp:grpSp"
6081
+ });
6082
+ /**
6083
+ * Creates a wp:wpc element (Wordprocessing Canvas).
6084
+ *
6085
+ * ## XSD Schema
6086
+ * ```xml
6087
+ * <xsd:element name="wpc" type="CT_WordprocessingCanvas"/>
6088
+ * ```
6089
+ */
6090
+ const createWpCanvas = (options) => new BuilderElement({
6091
+ children: options?.children,
6092
+ name: "wp:wpc"
6093
+ });
6094
+ /**
6095
+ * Creates a wp:bg element (Background Formatting).
6096
+ *
6097
+ * ## XSD Schema
6098
+ * ```xml
6099
+ * <xsd:element name="bg" type="a:CT_BackgroundFormatting"/>
6100
+ * ```
6101
+ */
6102
+ const createWpBg = () => new BuilderElement({ name: "wp:bg" });
6103
+ /**
6104
+ * Creates a wp:whole element (Whole E2O Formatting).
6105
+ *
6106
+ * ## XSD Schema
6107
+ * ```xml
6108
+ * <xsd:element name="whole" type="a:CT_WholeE2oFormatting"/>
6109
+ * ```
6110
+ */
6111
+ const createWpWhole = () => new BuilderElement({ name: "wp:whole" });
6112
+ //#endregion
6113
+ //#region src/drawingml/diagram/layout-vars.ts
6114
+ /**
6115
+ * Diagram layout variable property set elements.
6116
+ *
6117
+ * Reference: ISO/IEC 29500-4, dml-diagram.xsd
6118
+ * CT_LayoutVariablePropertySet and its child elements.
6119
+ *
6120
+ * @module
6121
+ */
6122
+ /** Creates a dgm:adj element. */
6123
+ const createAdj = (options) => new BuilderElement({
6124
+ name: "dgm:adj",
6125
+ attributes: {
6126
+ idx: {
6127
+ key: "idx",
6128
+ value: options.idx
6129
+ },
6130
+ val: {
6131
+ key: "val",
6132
+ value: options.val
6133
+ }
6134
+ }
6135
+ });
6136
+ const AnimLevelValue = {
6137
+ NONE: "none",
6138
+ LEVEL: "lvl",
6139
+ CENTER: "ctr"
6140
+ };
6141
+ /** Creates a dgm:animLvl element. */
6142
+ const createAnimLvl = (options) => new BuilderElement({
6143
+ name: "dgm:animLvl",
6144
+ attributes: options?.val !== void 0 ? { val: {
6145
+ key: "val",
6146
+ value: options.val
6147
+ } } : void 0
6148
+ });
6149
+ const AnimOneValue = {
6150
+ NONE: "none",
6151
+ ONE: "one",
6152
+ BRANCH: "branch"
6153
+ };
6154
+ /** Creates a dgm:animOne element. */
6155
+ const createAnimOne = (options) => new BuilderElement({
6156
+ name: "dgm:animOne",
6157
+ attributes: options?.val !== void 0 ? { val: {
6158
+ key: "val",
6159
+ value: options.val
6160
+ } } : void 0
6161
+ });
6162
+ /** Creates a dgm:chMax element. */
6163
+ const createChMax = (options) => new BuilderElement({
6164
+ name: "dgm:chMax",
6165
+ attributes: options?.val !== void 0 ? { val: {
6166
+ key: "val",
6167
+ value: options.val
6168
+ } } : void 0
6169
+ });
6170
+ /** Creates a dgm:chPref element. */
6171
+ const createChPref = (options) => new BuilderElement({
6172
+ name: "dgm:chPref",
6173
+ attributes: options?.val !== void 0 ? { val: {
6174
+ key: "val",
6175
+ value: options.val
6176
+ } } : void 0
6177
+ });
6178
+ /** Creates a dgm:orgChart element. */
6179
+ const createOrgChart = (options) => new BuilderElement({
6180
+ name: "dgm:orgChart",
6181
+ attributes: options?.val !== void 0 ? { val: {
6182
+ key: "val",
6183
+ value: options.val
6184
+ } } : void 0
6185
+ });
6186
+ const HierBranchStyle = {
6187
+ LEFT: "l",
6188
+ RIGHT: "r",
6189
+ HANGING: "hang",
6190
+ STANDARD: "std",
6191
+ INITIAL: "init"
6192
+ };
6193
+ /** Creates a dgm:hierBranch element. */
6194
+ const createHierBranch = (options) => new BuilderElement({
6195
+ name: "dgm:hierBranch",
6196
+ attributes: options?.val !== void 0 ? { val: {
6197
+ key: "val",
6198
+ value: options.val
6199
+ } } : void 0
6200
+ });
6201
+ /**
6202
+ * Creates a dgm:presLayoutVars element (CT_LayoutVariablePropertySet).
6203
+ *
6204
+ * ## XSD Schema
6205
+ * ```xml
6206
+ * <xsd:complexType name="CT_LayoutVariablePropertySet">
6207
+ * <xsd:sequence>
6208
+ * <xsd:element name="orgChart" type="CT_OrgChart" minOccurs="0"/>
6209
+ * <xsd:element name="chMax" type="CT_ChildMax" minOccurs="0"/>
6210
+ * <xsd:element name="chPref" type="CT_ChildPref" minOccurs="0"/>
6211
+ * <xsd:element name="bulletEnabled" type="CT_BulletEnabled" minOccurs="0"/>
6212
+ * <xsd:element name="dir" type="CT_Direction" minOccurs="0"/>
6213
+ * <xsd:element name="hierBranch" type="CT_HierBranchStyle" minOccurs="0"/>
6214
+ * <xsd:element name="animOne" type="CT_AnimOne" minOccurs="0"/>
6215
+ * <xsd:element name="animLvl" type="CT_AnimLvl" minOccurs="0"/>
6216
+ * <xsd:element name="resizeHandles" type="CT_ResizeHandles" minOccurs="0"/>
6217
+ * </xsd:sequence>
6218
+ * </xsd:complexType>
6219
+ * ```
6220
+ */
6221
+ const createPresLayoutVars = (options) => {
6222
+ const children = [];
6223
+ if (options?.orgChart) children.push(createOrgChart(options.orgChart));
6224
+ if (options?.chMax) children.push(createChMax(options.chMax));
6225
+ if (options?.chPref) children.push(createChPref(options.chPref));
6226
+ if (options?.animOne) children.push(createAnimOne(options.animOne));
6227
+ if (options?.animLvl) children.push(createAnimLvl(options.animLvl));
6228
+ if (options?.hierBranch) children.push(createHierBranch(options.hierBranch));
6229
+ return new BuilderElement({
6230
+ name: "dgm:presLayoutVars",
6231
+ children
6232
+ });
6233
+ };
6234
+ /** Creates a dgm:adjLst element containing dgm:adj children. */
6235
+ const createAdjLst = (options) => {
6236
+ const children = [];
6237
+ if (options?.adj) for (const a of options.adj) children.push(createAdj(a));
6238
+ return new BuilderElement({
6239
+ name: "dgm:adjLst",
6240
+ children
6241
+ });
6242
+ };
6243
+ //#endregion
6244
+ //#region src/drawingml/diagram/headers.ts
6245
+ /**
6246
+ * Diagram definition header elements.
6247
+ *
6248
+ * Reference: ISO/IEC 29500-4, dml-diagram.xsd
6249
+ * CT_ColorTransformHeader, CT_DiagramDefinitionHeader, CT_StyleDefinitionHeader
6250
+ * and their list containers.
6251
+ *
6252
+ * @module
6253
+ */
6254
+ const createNameEl = (tag, options) => {
6255
+ const attrs = { val: options.val };
6256
+ if (options.lang) attrs.lang = options.lang;
6257
+ return new BuilderElement({
6258
+ name: tag,
6259
+ attributes: {
6260
+ val: {
6261
+ key: "val",
6262
+ value: attrs.val
6263
+ },
6264
+ ...attrs.lang && { lang: {
6265
+ key: "lang",
6266
+ value: attrs.lang
6267
+ } }
6268
+ }
6269
+ });
6270
+ };
6271
+ const createDescEl = (tag, options) => {
6272
+ const attrs = { val: options.val };
6273
+ if (options.lang) attrs.lang = options.lang;
6274
+ return new BuilderElement({
6275
+ name: tag,
6276
+ attributes: {
6277
+ val: {
6278
+ key: "val",
6279
+ value: attrs.val
6280
+ },
6281
+ ...attrs.lang && { lang: {
6282
+ key: "lang",
6283
+ value: attrs.lang
6284
+ } }
6285
+ }
6286
+ });
6287
+ };
6288
+ const createCatEl = (options) => new BuilderElement({
6289
+ name: "dgm:cat",
6290
+ attributes: {
6291
+ type: {
6292
+ key: "type",
6293
+ value: options.type
6294
+ },
6295
+ pri: {
6296
+ key: "pri",
6297
+ value: options.pri
6298
+ }
6299
+ }
6300
+ });
6301
+ const createCatLst = (categories) => {
6302
+ const children = [];
6303
+ if (categories) for (const cat of categories) children.push(createCatEl(cat));
6304
+ return new BuilderElement({
6305
+ name: "dgm:catLst",
6306
+ children
6307
+ });
6308
+ };
6309
+ /**
6310
+ * Creates a dgm:colorsDefHdr element (CT_ColorTransformHeader).
6311
+ *
6312
+ * ## XSD Schema
6313
+ * ```xml
6314
+ * <xsd:complexType name="CT_ColorTransformHeader">
6315
+ * <xsd:sequence>
6316
+ * <xsd:element name="title" type="CT_CTName" minOccurs="1" maxOccurs="unbounded"/>
6317
+ * <xsd:element name="desc" type="CT_CTDescription" minOccurs="1" maxOccurs="unbounded"/>
6318
+ * <xsd:element name="catLst" type="CT_CTCategories" minOccurs="0"/>
6319
+ * <xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0"/>
6320
+ * </xsd:sequence>
6321
+ * <xsd:attribute name="uniqueId" type="xsd:string" use="required"/>
6322
+ * <xsd:attribute name="minVer" type="xsd:string" use="optional"/>
6323
+ * <xsd:attribute name="resId" type="xsd:int" use="optional" default="0"/>
6324
+ * </xsd:complexType>
6325
+ * ```
6326
+ */
6327
+ const createColorsDefHdr = (options) => {
6328
+ const children = [];
6329
+ for (const t of options.title) children.push(createNameEl("dgm:title", t));
6330
+ for (const d of options.desc) children.push(createDescEl("dgm:desc", d));
6331
+ if (options.categories?.length) children.push(createCatLst(options.categories));
6332
+ return new BuilderElement({
6333
+ name: "dgm:colorsDefHdr",
6334
+ attributes: {
6335
+ uniqueId: {
6336
+ key: "uniqueId",
6337
+ value: options.uniqueId
6338
+ },
6339
+ ...options.minVer !== void 0 && { minVer: {
6340
+ key: "minVer",
6341
+ value: options.minVer
6342
+ } },
6343
+ ...options.resId !== void 0 && { resId: {
6344
+ key: "resId",
6345
+ value: options.resId
6346
+ } }
6347
+ },
6348
+ children
6349
+ });
6350
+ };
6351
+ /** Creates a dgm:colorsDefHdrLst element. */
6352
+ const createColorsDefHdrLst = (options) => {
6353
+ const children = [];
6354
+ if (options?.headers) for (const hdr of options.headers) children.push(createColorsDefHdr(hdr));
6355
+ return new BuilderElement({
6356
+ name: "dgm:colorsDefHdrLst",
6357
+ children
6358
+ });
6359
+ };
6360
+ /**
6361
+ * Creates a dgm:layoutDefHdr element (CT_DiagramDefinitionHeader).
6362
+ *
6363
+ * ## XSD Schema
6364
+ * ```xml
6365
+ * <xsd:complexType name="CT_DiagramDefinitionHeader">
6366
+ * <xsd:sequence>
6367
+ * <xsd:element name="title" type="CT_Name" minOccurs="1" maxOccurs="unbounded"/>
6368
+ * <xsd:element name="desc" type="CT_Description" minOccurs="1" maxOccurs="unbounded"/>
6369
+ * <xsd:element name="catLst" type="CT_Categories" minOccurs="0"/>
6370
+ * <xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0"/>
6371
+ * </xsd:sequence>
6372
+ * <xsd:attribute name="uniqueId" type="xsd:string" use="required"/>
6373
+ * <xsd:attribute name="minVer" type="xsd:string" use="optional"/>
6374
+ * <xsd:attribute name="defStyle" type="xsd:string" use="optional" default=""/>
6375
+ * <xsd:attribute name="resId" type="xsd:int" use="optional" default="0"/>
6376
+ * </xsd:complexType>
6377
+ * ```
6378
+ */
6379
+ const createLayoutDefHdr = (options) => {
6380
+ const children = [];
6381
+ for (const t of options.title) children.push(createNameEl("dgm:title", t));
6382
+ for (const d of options.desc) children.push(createDescEl("dgm:desc", d));
6383
+ if (options.categories?.length) children.push(createCatLst(options.categories));
6384
+ return new BuilderElement({
6385
+ name: "dgm:layoutDefHdr",
6386
+ attributes: {
6387
+ uniqueId: {
6388
+ key: "uniqueId",
6389
+ value: options.uniqueId
6390
+ },
6391
+ ...options.minVer !== void 0 && { minVer: {
6392
+ key: "minVer",
6393
+ value: options.minVer
6394
+ } },
6395
+ ...options.defStyle !== void 0 && { defStyle: {
6396
+ key: "defStyle",
6397
+ value: options.defStyle
6398
+ } },
6399
+ ...options.resId !== void 0 && { resId: {
6400
+ key: "resId",
6401
+ value: options.resId
6402
+ } }
6403
+ },
6404
+ children
6405
+ });
6406
+ };
6407
+ /** Creates a dgm:layoutDefHdrLst element. */
6408
+ const createLayoutDefHdrLst = (options) => {
6409
+ const children = [];
6410
+ if (options?.headers) for (const hdr of options.headers) children.push(createLayoutDefHdr(hdr));
6411
+ return new BuilderElement({
6412
+ name: "dgm:layoutDefHdrLst",
6413
+ children
6414
+ });
6415
+ };
6416
+ /**
6417
+ * Creates a dgm:styleDefHdr element (CT_StyleDefinitionHeader).
6418
+ *
6419
+ * ## XSD Schema
6420
+ * ```xml
6421
+ * <xsd:complexType name="CT_StyleDefinitionHeader">
6422
+ * <xsd:sequence>
6423
+ * <xsd:element name="title" type="CT_SDName" minOccurs="1" maxOccurs="unbounded"/>
6424
+ * <xsd:element name="desc" type="CT_SDDescription" minOccurs="1" maxOccurs="unbounded"/>
6425
+ * <xsd:element name="catLst" type="CT_SDCategories" minOccurs="0"/>
6426
+ * <xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0"/>
6427
+ * </xsd:sequence>
6428
+ * <xsd:attribute name="uniqueId" type="xsd:string" use="required"/>
6429
+ * <xsd:attribute name="minVer" type="xsd:string" use="optional"/>
6430
+ * <xsd:attribute name="resId" type="xsd:int" use="optional" default="0"/>
6431
+ * </xsd:complexType>
6432
+ * ```
6433
+ */
6434
+ const createStyleDefHdr = (options) => {
6435
+ const children = [];
6436
+ for (const t of options.title) children.push(createNameEl("dgm:title", t));
6437
+ for (const d of options.desc) children.push(createDescEl("dgm:desc", d));
6438
+ if (options.categories?.length) children.push(createCatLst(options.categories));
6439
+ return new BuilderElement({
6440
+ name: "dgm:styleDefHdr",
6441
+ attributes: {
6442
+ uniqueId: {
6443
+ key: "uniqueId",
6444
+ value: options.uniqueId
6445
+ },
6446
+ ...options.minVer !== void 0 && { minVer: {
6447
+ key: "minVer",
6448
+ value: options.minVer
6449
+ } },
6450
+ ...options.resId !== void 0 && { resId: {
6451
+ key: "resId",
6452
+ value: options.resId
6453
+ } }
6454
+ },
6455
+ children
6456
+ });
6457
+ };
6458
+ /** Creates a dgm:styleDefHdrLst element. */
6459
+ const createStyleDefHdrLst = (options) => {
6460
+ const children = [];
6461
+ if (options?.headers) for (const hdr of options.headers) children.push(createStyleDefHdr(hdr));
6462
+ return new BuilderElement({
6463
+ name: "dgm:styleDefHdrLst",
6464
+ children
6465
+ });
6466
+ };
6467
+ //#endregion
6468
+ //#region src/drawingml/diagram/diagram-style.ts
6469
+ /**
6470
+ * Diagram style, color list, and style label elements.
6471
+ *
6472
+ * Reference: ISO/IEC 29500-4, dml-diagram.xsd
6473
+ * CT_Style, CT_StyleLabel, CT_Colors, CT_CTStyleLabel
6474
+ *
6475
+ * @module
6476
+ */
6477
+ const StyleMatrixIndex = {
6478
+ SUBTLE: "subtle",
6479
+ MODERATE: "moderate",
6480
+ INTENSE: "intense"
6481
+ };
6482
+ const FontCollectionIndex = {
6483
+ MAJOR: "major",
6484
+ MINOR: "minor",
6485
+ NONE: "none"
6486
+ };
6487
+ /**
6488
+ * Creates a dgm:style element (a:CT_ShapeStyle).
6489
+ *
6490
+ * ## XSD Schema
6491
+ * ```xml
6492
+ * <xsd:complexType name="CT_ShapeStyle">
6493
+ * <xsd:sequence>
6494
+ * <xsd:element name="lnRef" type="CT_StyleMatrixReference"/>
6495
+ * <xsd:element name="fillRef" type="CT_StyleMatrixReference"/>
6496
+ * <xsd:element name="effectRef" type="CT_StyleMatrixReference"/>
6497
+ * <xsd:element name="fontRef" type="CT_FontReference"/>
6498
+ * </xsd:sequence>
6499
+ * </xsd:complexType>
6500
+ * ```
6501
+ */
6502
+ const createDiagramStyle = (options) => {
6503
+ const children = [];
6504
+ children.push(new BuilderElement({
6505
+ name: "a:lnRef",
6506
+ attributes: { idx: {
6507
+ key: "idx",
6508
+ value: options?.lnIdx ?? 1
6509
+ } },
6510
+ children: [createColorElement({ value: SchemeColor.ACCENT1 })]
6511
+ }));
6512
+ children.push(new BuilderElement({
6513
+ name: "a:fillRef",
6514
+ attributes: { idx: {
6515
+ key: "idx",
6516
+ value: options?.fillIdx ?? 1
6517
+ } },
6518
+ children: [createColorElement({ value: SchemeColor.ACCENT1 })]
6519
+ }));
6520
+ children.push(new BuilderElement({
6521
+ name: "a:effectRef",
6522
+ attributes: { idx: {
6523
+ key: "idx",
6524
+ value: options?.effectIdx ?? 0
6525
+ } },
6526
+ children: [createColorElement({ value: SchemeColor.ACCENT1 })]
6527
+ }));
6528
+ children.push(new BuilderElement({
6529
+ name: "a:fontRef",
6530
+ attributes: { idx: {
6531
+ key: "idx",
6532
+ value: options?.fontIdx ?? "minor"
6533
+ } },
6534
+ children: [createColorElement({ value: SchemeColor.TX1 })]
6535
+ }));
6536
+ return new BuilderElement({
6537
+ name: "dgm:style",
6538
+ children
6539
+ });
6540
+ };
6541
+ const ColorMethod = {
6542
+ SPAN: "span",
6543
+ CYCLE: "cycle",
6544
+ REPEAT: "repeat"
6545
+ };
6546
+ const HueDirection = {
6547
+ CLOCKWISE: "cw",
6548
+ COUNTER_CLOCKWISE: "ccw"
6549
+ };
6550
+ /** Creates a generic CT_Colors element with the given tag. */
6551
+ const createColorList = (tag, options) => {
6552
+ const children = [];
6553
+ if (options?.colors) for (const c of options.colors) children.push(createColorElement(c));
6554
+ return new BuilderElement({
6555
+ name: tag,
6556
+ attributes: options?.meth !== void 0 || options?.hueDir !== void 0 ? {
6557
+ ...options.meth && { meth: {
6558
+ key: "meth",
6559
+ value: options.meth
6560
+ } },
6561
+ ...options.hueDir && { hueDir: {
6562
+ key: "hueDir",
6563
+ value: options.hueDir
6564
+ } }
6565
+ } : void 0,
6566
+ children
6567
+ });
6568
+ };
6569
+ const createFillClrLst = (options) => createColorList("dgm:fillClrLst", options);
6570
+ const createLinClrLst = (options) => createColorList("dgm:linClrLst", options);
6571
+ const createEffectClrLst = (options) => createColorList("dgm:effectClrLst", options);
6572
+ const createTxFillClrLst = (options) => createColorList("dgm:txFillClrLst", options);
6573
+ const createTxLinClrLst = (options) => createColorList("dgm:txLinClrLst", options);
6574
+ const createTxEffectClrLst = (options) => createColorList("dgm:txEffectClrLst", options);
6575
+ /**
6576
+ * Creates a dgm:styleLbl element (CT_StyleLabel or CT_CTStyleLabel).
6577
+ *
6578
+ * ## XSD Schema (CT_CTStyleLabel, for color transforms)
6579
+ * ```xml
6580
+ * <xsd:complexType name="CT_CTStyleLabel">
6581
+ * <xsd:sequence>
6582
+ * <xsd:element name="fillClrLst" type="CT_Colors" minOccurs="0"/>
6583
+ * <xsd:element name="linClrLst" type="CT_Colors" minOccurs="0"/>
6584
+ * <xsd:element name="effectClrLst" type="CT_Colors" minOccurs="0"/>
6585
+ * <xsd:element name="txLinClrLst" type="CT_Colors" minOccurs="0"/>
6586
+ * <xsd:element name="txFillClrLst" type="CT_Colors" minOccurs="0"/>
6587
+ * <xsd:element name="txEffectClrLst" type="CT_Colors" minOccurs="0"/>
6588
+ * <xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0"/>
6589
+ * </xsd:sequence>
6590
+ * <xsd:attribute name="name" type="xsd:string" use="required"/>
6591
+ * </xsd:complexType>
6592
+ * ```
6593
+ *
6594
+ * ## XSD Schema (CT_StyleLabel, for quick styles)
6595
+ * ```xml
6596
+ * <xsd:complexType name="CT_StyleLabel">
6597
+ * <xsd:sequence>
6598
+ * <xsd:element name="scene3d" type="a:CT_Scene3D" minOccurs="0"/>
6599
+ * <xsd:element name="sp3d" type="a:CT_Shape3D" minOccurs="0"/>
6600
+ * <xsd:element name="txPr" type="CT_TextProps" minOccurs="0"/>
6601
+ * <xsd:element name="style" type="a:CT_ShapeStyle" minOccurs="0"/>
6602
+ * <xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0"/>
6603
+ * </xsd:sequence>
6604
+ * <xsd:attribute name="name" type="xsd:string" use="required"/>
6605
+ * </xsd:complexType>
6606
+ * ```
6607
+ */
6608
+ const createStyleLbl = (options) => {
6609
+ const children = [];
6610
+ if (options.fillClrLst) children.push(createFillClrLst(options.fillClrLst));
6611
+ if (options.linClrLst) children.push(createLinClrLst(options.linClrLst));
6612
+ if (options.effectClrLst) children.push(createEffectClrLst(options.effectClrLst));
6613
+ if (options.txFillClrLst) children.push(createTxFillClrLst(options.txFillClrLst));
6614
+ if (options.txLinClrLst) children.push(createTxLinClrLst(options.txLinClrLst));
6615
+ if (options.txEffectClrLst) children.push(createTxEffectClrLst(options.txEffectClrLst));
6616
+ return new BuilderElement({
6617
+ name: "dgm:styleLbl",
6618
+ attributes: { name: {
6619
+ key: "name",
6620
+ value: options.name
6621
+ } },
6622
+ children
6623
+ });
6624
+ };
6625
+ //#endregion
6626
+ //#region src/drawingml/diagram/diagram-rel.ts
6627
+ /**
6628
+ * Diagram relationship IDs element.
6629
+ *
6630
+ * Reference: ISO/IEC 29500-4, dml-diagram.xsd, CT_RelIds
6631
+ *
6632
+ * @module
6633
+ */
6634
+ /**
6635
+ * Creates a dgm:relIds element (CT_RelIds).
6636
+ *
6637
+ * ## XSD Schema
6638
+ * ```xml
6639
+ * <xsd:complexType name="CT_RelIds">
6640
+ * <xsd:attribute ref="r:dm" use="required"/>
6641
+ * <xsd:attribute ref="r:lo" use="required"/>
6642
+ * <xsd:attribute ref="r:qs" use="required"/>
6643
+ * <xsd:attribute ref="r:cs" use="required"/>
6644
+ * </xsd:complexType>
6645
+ * ```
6646
+ */
6647
+ const createDiagramRelIds = (options) => new BuilderElement({
6648
+ name: "dgm:relIds",
6649
+ attributes: {
6650
+ "r:dm": {
6651
+ key: "r:dm",
6652
+ value: options.dm
6653
+ },
6654
+ "r:lo": {
6655
+ key: "r:lo",
6656
+ value: options.lo
6657
+ },
6658
+ "r:qs": {
6659
+ key: "r:qs",
6660
+ value: options.qs
6661
+ },
6662
+ "r:cs": {
6663
+ key: "r:cs",
6664
+ value: options.cs
6665
+ }
6666
+ }
6667
+ });
6668
+ //#endregion
6669
+ //#region src/drawingml/diagram/diagram-props.ts
6670
+ /**
6671
+ * Diagram extension list, 3D shape, and text properties.
6672
+ *
6673
+ * Reference: ISO/IEC 29500-4, dml-diagram.xsd, dml-main.xsd
6674
+ *
6675
+ * @module
6676
+ */
6677
+ /**
6678
+ * Creates a dgm:extLst element (a:CT_OfficeArtExtensionList).
6679
+ *
6680
+ * Generic extension list pattern used across OOXML.
6681
+ */
6682
+ const createDiagramExtLst = (options) => {
6683
+ const children = [];
6684
+ if (options?.extensions) for (const ext of options.extensions) children.push(new BuilderElement({
6685
+ name: "a:ext",
6686
+ attributes: { uri: {
6687
+ key: "uri",
6688
+ value: ext.uri
6689
+ } }
6690
+ }));
6691
+ return new BuilderElement({
6692
+ name: "dgm:extLst",
6693
+ children
6694
+ });
6695
+ };
6696
+ /**
6697
+ * Creates a dgm:sp3d element wrapping a:CT_Shape3D.
6698
+ *
6699
+ * Delegates to the shared createShape3D factory but wraps in dgm: namespace context.
6700
+ */
6701
+ const createDiagramSp3d = (options) => createShape3D(options);
6702
+ /**
6703
+ * Creates a dgm:txPr element (CT_TextProps).
6704
+ *
6705
+ * ## XSD Schema
6706
+ * ```xml
6707
+ * <xsd:complexType name="CT_TextProps">
6708
+ * <xsd:sequence>
6709
+ * <xsd:group ref="a:EG_Text3D" minOccurs="0" maxOccurs="1"/>
6710
+ * </xsd:sequence>
6711
+ * </xsd:complexType>
6712
+ * ```
6713
+ */
6714
+ const createDiagramTxPr = (_options) => new BuilderElement({ name: "dgm:txPr" });
6715
+ //#endregion
6716
+ //#region src/drawingml/dml-main-elements.ts
6717
+ /**
6718
+ * DrawingML Main elements (a: namespace).
6719
+ *
6720
+ * Factory functions for the structural/container elements defined in
6721
+ * dml-main.xsd. Each returns a BuilderElement whose XML tag matches
6722
+ * the corresponding OOXML element name.
6723
+ *
6724
+ * Reference: ISO/IEC 29500-1, Part 4 - DrawingML
6725
+ *
6726
+ * @module
6727
+ */
6728
+ /** Creates an a:sp element (Shape). */
6729
+ const createSp = (children) => new BuilderElement({
6730
+ children,
6731
+ name: "a:sp"
6732
+ });
6733
+ /** Creates an a:cxnSp element (Connector Shape). */
6734
+ const createCxnSp = (children) => new BuilderElement({
6735
+ children,
6736
+ name: "a:cxnSp"
6737
+ });
6738
+ /** Creates an a:grpSp element (Group Shape). */
6739
+ const createGrpSp = (children) => new BuilderElement({
6740
+ children,
6741
+ name: "a:grpSp"
6742
+ });
6743
+ /** Creates an a:pic element (Picture). */
6744
+ const createPic = (children) => new BuilderElement({
6745
+ children,
6746
+ name: "a:pic"
6747
+ });
6748
+ /** Creates an a:graphicFrame element (Graphic Frame). */
6749
+ const createGraphicFrame = (children) => new BuilderElement({
6750
+ children,
6751
+ name: "a:graphicFrame"
6752
+ });
6753
+ /** Creates an a:txSp element (Text Shape). */
6754
+ const createTxSp = (children) => new BuilderElement({
6755
+ children,
6756
+ name: "a:txSp"
6757
+ });
6758
+ /** Creates an a:cNvSpPr element (Non-Visual Drawing Shape Properties). */
6759
+ const createCNvSpPr = () => new BuilderElement({ name: "a:cNvSpPr" });
6760
+ /** Creates an a:cNvCxnSpPr element (Non-Visual Connector Properties). */
6761
+ const createCNvCxnSpPr = () => new BuilderElement({ name: "a:cNvCxnSpPr" });
6762
+ /** Creates an a:cNvGrpSpPr element (Non-Visual Group Shape Properties). */
6763
+ const createCNvGrpSpPr = () => new BuilderElement({ name: "a:cNvGrpSpPr" });
6764
+ /** Creates an a:cNvGraphicFramePr element (Non-Visual Graphic Frame Properties). */
6765
+ const createCNvGraphicFramePr = () => new BuilderElement({ name: "a:cNvGraphicFramePr" });
6766
+ /** Creates an a:nvSpPr element (Shape Non-Visual Properties). */
6767
+ const createNvSpPr = (children) => new BuilderElement({
6768
+ children,
6769
+ name: "a:nvSpPr"
6770
+ });
6771
+ /** Creates an a:nvCxnSpPr element (Connector Non-Visual Properties). */
6772
+ const createNvCxnSpPr = (children) => new BuilderElement({
6773
+ children,
6774
+ name: "a:nvCxnSpPr"
6775
+ });
6776
+ /** Creates an a:nvGrpSpPr element (Group Shape Non-Visual Properties). */
6777
+ const createNvGrpSpPr = (children) => new BuilderElement({
6778
+ children,
6779
+ name: "a:nvGrpSpPr"
6780
+ });
6781
+ /** Creates an a:nvGraphicFramePr element (Graphic Frame Non-Visual Properties). */
6782
+ const createNvGraphicFramePr = (children) => new BuilderElement({
6783
+ children,
6784
+ name: "a:nvGraphicFramePr"
6785
+ });
6786
+ /** Creates an a:nvPicPr element (Picture Non-Visual Properties). */
6787
+ const createNvPicPr = (children) => new BuilderElement({
6788
+ children,
6789
+ name: "a:nvPicPr"
6790
+ });
6791
+ /** Creates an a:grpSpPr element (Group Shape Properties). */
6792
+ const createGrpSpPr = (children) => new BuilderElement({
6793
+ children,
6794
+ name: "a:grpSpPr"
6795
+ });
6796
+ /** Creates an a:cpLocks element (Content Part Locking). */
6797
+ const createCpLocks = () => new BuilderElement({ name: "a:cpLocks" });
6798
+ /** Creates an a:cxnSpLocks element (Connector Locking). */
6799
+ const createCxnSpLocks = () => new BuilderElement({ name: "a:cxnSpLocks" });
6800
+ /** Creates an a:useSpRect element (Use Shape Rectangle). */
6801
+ const createUseSpRect = () => new BuilderElement({ name: "a:useSpRect" });
6802
+ /** Creates an a:tableStyle element (Table Style). */
6803
+ const createTableStyleElement = (children) => new BuilderElement({
6804
+ children,
6805
+ name: "a:tableStyle"
6806
+ });
6807
+ /** Creates an a:cell3D element (Cell 3-D Properties). */
6808
+ const createCell3D = (children) => new BuilderElement({
6809
+ children,
6810
+ name: "a:cell3D"
6811
+ });
6812
+ /** Creates an a:insideH element (Inside Horizontal Border). */
6813
+ const createInsideH = (children) => new BuilderElement({
6814
+ children,
6815
+ name: "a:insideH"
6816
+ });
6817
+ /** Creates an a:insideV element (Inside Vertical Border). */
6818
+ const createInsideV = (children) => new BuilderElement({
6819
+ children,
6820
+ name: "a:insideV"
6821
+ });
6822
+ /** Creates an a:top element (Top Border). */
6823
+ const createTop = (children) => new BuilderElement({
6824
+ children,
6825
+ name: "a:top"
6826
+ });
6827
+ /** Creates an a:bottom element (Bottom Border). */
6828
+ const createBottom = (children) => new BuilderElement({
6829
+ children,
6830
+ name: "a:bottom"
6831
+ });
6832
+ /** Creates an a:left element (Left Border). */
6833
+ const createLeft = (children) => new BuilderElement({
6834
+ children,
6835
+ name: "a:left"
6836
+ });
6837
+ /** Creates an a:right element (Right Border). */
6838
+ const createRight = (children) => new BuilderElement({
6839
+ children,
6840
+ name: "a:right"
6841
+ });
6842
+ /** Creates an a:tl2br element (Top-Left to Bottom-Right Border). */
6843
+ const createTl2br = (children) => new BuilderElement({
6844
+ children,
6845
+ name: "a:tl2br"
6846
+ });
6847
+ /** Creates an a:tr2bl element (Top-Right to Bottom-Left Border). */
6848
+ const createTr2bl = (children) => new BuilderElement({
6849
+ children,
6850
+ name: "a:tr2bl"
6851
+ });
6852
+ /** Creates an a:lnTlToBr element (Top-Left to Bottom-Right Line). */
6853
+ const createLnTlToBr = (children) => new BuilderElement({
6854
+ children,
6855
+ name: "a:lnTlToBr"
6856
+ });
6857
+ /** Creates an a:lnBlToTr element (Bottom-Left to Top-Right Line). */
6858
+ const createLnBlToTr = (children) => new BuilderElement({
6859
+ children,
6860
+ name: "a:lnBlToTr"
6861
+ });
6862
+ /** Creates an a:round element (Round Line Join). */
6863
+ const createRound = () => new BuilderElement({ name: "a:round" });
6864
+ /** Creates an a:start element (Connection Start Time). */
6865
+ const createStart = (children) => new BuilderElement({
6866
+ children,
6867
+ name: "a:start"
6868
+ });
6869
+ /** Creates an a:end element (Audio CD End Time). */
6870
+ const createEnd = (options) => {
6871
+ const attrs = {};
6872
+ if (options?.track !== void 0) attrs.track = {
6873
+ key: "track",
6874
+ value: options.track
6875
+ };
6876
+ if (options?.time !== void 0) attrs.time = {
6877
+ key: "time",
6878
+ value: options.time
6879
+ };
6880
+ return new BuilderElement({
6881
+ attributes: Object.keys(attrs).length > 0 ? attrs : void 0,
6882
+ name: "a:end"
6883
+ });
6884
+ };
6885
+ /** Creates an a:stCxn element (Start Connection). */
6886
+ const createStCxn = (children) => new BuilderElement({
6887
+ children,
6888
+ name: "a:stCxn"
6889
+ });
6890
+ /** Creates an a:endCxn element (End Connection). */
6891
+ const createEndCxn = (children) => new BuilderElement({
6892
+ children,
6893
+ name: "a:endCxn"
6894
+ });
6895
+ /** Creates an a:clrMap element (Color Map). */
6896
+ const createClrMap = (children) => new BuilderElement({
6897
+ children,
6898
+ name: "a:clrMap"
6899
+ });
6900
+ /** Creates an a:overrideClrMapping element (Override Color Mapping). */
6901
+ const createOverrideClrMapping = (children) => new BuilderElement({
6902
+ children,
6903
+ name: "a:overrideClrMapping"
6904
+ });
6905
+ /** Creates an a:extraClrScheme element (Extra Color Scheme). */
6906
+ const createExtraClrScheme = (children) => new BuilderElement({
6907
+ children,
6908
+ name: "a:extraClrScheme"
6909
+ });
6910
+ /** Creates an a:custClr element (Custom Color). */
6911
+ const createCustClr = (children) => new BuilderElement({
6912
+ children,
6913
+ name: "a:custClr"
6914
+ });
6915
+ /** Creates an a:custClrLst element (Custom Color List). */
6916
+ const createCustClrLst = (children) => new BuilderElement({
6917
+ children,
6918
+ name: "a:custClrLst"
6919
+ });
6920
+ /** Creates an a:themeManager element (Theme Manager). */
6921
+ const createThemeManager = () => new BuilderElement({ name: "a:themeManager" });
6922
+ /** Creates an a:themeOverride element (Theme Override). */
6923
+ const createThemeOverride = (children) => new BuilderElement({
6924
+ children,
6925
+ name: "a:themeOverride"
6926
+ });
6927
+ /** Creates an a:font element (Supplemental Font / Font Collection). */
6928
+ const createFontElement = (children) => new BuilderElement({
6929
+ children,
6930
+ name: "a:font"
6931
+ });
6932
+ /** Creates an a:spDef element (Shape Default). */
6933
+ const createSpDef = (children) => new BuilderElement({
6934
+ children,
6935
+ name: "a:spDef"
6936
+ });
6937
+ /** Creates an a:lnDef element (Line Default). */
6938
+ const createLnDef = (children) => new BuilderElement({
6939
+ children,
6940
+ name: "a:lnDef"
6941
+ });
6942
+ /** Creates an a:txDef element (Text Default). */
6943
+ const createTxDef = (children) => new BuilderElement({
6944
+ children,
6945
+ name: "a:txDef"
6946
+ });
6947
+ /** Creates an a:br element (Text Line Break). */
6948
+ const createBr = (children) => new BuilderElement({
6949
+ children,
6950
+ name: "a:br"
6951
+ });
6952
+ /** Creates an a:tab element (Text Tab Stop). */
6953
+ const createTab = (children) => new BuilderElement({
6954
+ children,
6955
+ name: "a:tab"
6956
+ });
6957
+ /** Creates an a:tabLst element (Text Tab Stop List). */
6958
+ const createTabLst = (children) => new BuilderElement({
6959
+ children,
6960
+ name: "a:tabLst"
6961
+ });
6962
+ /** Creates an a:sym element (Symbol Font). */
6963
+ const createSym = (children) => new BuilderElement({
6964
+ children,
6965
+ name: "a:sym"
6966
+ });
6967
+ /** Creates an a:highlight element (Text Highlight). */
6968
+ const createHighlight = (children) => new BuilderElement({
6969
+ children,
6970
+ name: "a:highlight"
6971
+ });
6972
+ /** Creates an a:buBlip element (Bullet Blip). */
6973
+ const createBuBlip = (children) => new BuilderElement({
6974
+ children,
6975
+ name: "a:buBlip"
6976
+ });
6977
+ /** Creates an a:buClrTx element (Bullet Color - Follow Text). */
6978
+ const createBuClrTx = () => new BuilderElement({ name: "a:buClrTx" });
6979
+ /** Creates an a:buFontTx element (Bullet Font - Follow Text). */
6980
+ const createBuFontTx = () => new BuilderElement({ name: "a:buFontTx" });
6981
+ /** Creates an a:buSzPts element (Bullet Size - Points). */
6982
+ const createBuSzPts = (children) => new BuilderElement({
6983
+ children,
6984
+ name: "a:buSzPts"
6985
+ });
6986
+ /** Creates an a:buSzTx element (Bullet Size - Follow Text). */
6987
+ const createBuSzTx = () => new BuilderElement({ name: "a:buSzTx" });
6988
+ /** Creates an a:uFill element (Underline Fill). */
6989
+ const createUFill = (children) => new BuilderElement({
6990
+ children,
6991
+ name: "a:uFill"
6992
+ });
6993
+ /** Creates an a:uFillTx element (Underline Fill - Follow Text). */
6994
+ const createUFillTx = () => new BuilderElement({ name: "a:uFillTx" });
6995
+ /** Creates an a:uLn element (Underline Line Properties). */
6996
+ const createULn = (children) => new BuilderElement({
6997
+ children,
6998
+ name: "a:uLn"
6999
+ });
7000
+ /** Creates an a:uLnTx element (Underline Line - Follow Text). */
7001
+ const createULnTx = () => new BuilderElement({ name: "a:uLnTx" });
7002
+ /** Creates an a:audioCd element (Audio CD). */
7003
+ const createAudioCd = (children) => new BuilderElement({
7004
+ children,
7005
+ name: "a:audioCd"
7006
+ });
7007
+ /** Creates an a:quickTimeFile element (QuickTime File). */
7008
+ const createQuickTimeFile = (children) => new BuilderElement({
7009
+ children,
7010
+ name: "a:quickTimeFile"
7011
+ });
7012
+ /** Creates an a:snd element (Sound / Embedded WAV Audio). */
7013
+ const createSnd = (children) => new BuilderElement({
7014
+ children,
7015
+ name: "a:snd"
7016
+ });
7017
+ /** Creates an a:wavAudioFile element (WAV Audio File). */
7018
+ const createWavAudioFile = (children) => new BuilderElement({
7019
+ children,
7020
+ name: "a:wavAudioFile"
7021
+ });
7022
+ /** Creates an a:bldChart element (Build Chart). */
7023
+ const createBldChart = (options) => {
7024
+ const attrs = {};
7025
+ if (options?.build !== void 0) attrs.build = {
7026
+ key: "bld",
7027
+ value: options.build
7028
+ };
7029
+ if (options?.animateBackground !== void 0) attrs.animateBackground = {
7030
+ key: "animBg",
7031
+ value: options.animateBackground ? "1" : "0"
7032
+ };
7033
+ return new BuilderElement({
7034
+ attributes: Object.keys(attrs).length > 0 ? attrs : void 0,
7035
+ name: "a:bldChart"
7036
+ });
7037
+ };
7038
+ /** Creates an a:bldDgm element (Build Diagram). */
7039
+ const createBldDgm = (options) => {
7040
+ const attrs = {};
7041
+ if (options?.build !== void 0) attrs.build = {
7042
+ key: "bld",
7043
+ value: options.build
7044
+ };
7045
+ if (options?.reverse !== void 0) attrs.reverse = {
7046
+ key: "rev",
7047
+ value: options.reverse ? "1" : "0"
7048
+ };
7049
+ return new BuilderElement({
7050
+ attributes: Object.keys(attrs).length > 0 ? attrs : void 0,
7051
+ name: "a:bldDgm"
7052
+ });
7053
+ };
7054
+ /** Creates an a:bevel element (Line Join Bevel). */
7055
+ const createBevelElement = (children) => new BuilderElement({
7056
+ children,
7057
+ name: "a:bevel"
7058
+ });
7059
+ /** Creates an a:chart element (Animation Chart Element). */
7060
+ const createChart = (options) => {
7061
+ const attrs = {};
7062
+ if (options?.seriesIndex !== void 0) attrs.seriesIndex = {
7063
+ key: "seriesIdx",
7064
+ value: options.seriesIndex
7065
+ };
7066
+ if (options?.categoryIndex !== void 0) attrs.categoryIndex = {
7067
+ key: "categoryIdx",
7068
+ value: options.categoryIndex
7069
+ };
7070
+ if (options?.buildStep !== void 0) attrs.buildStep = {
7071
+ key: "bldStep",
7072
+ value: options.buildStep
7073
+ };
7074
+ return new BuilderElement({
7075
+ attributes: Object.keys(attrs).length > 0 ? attrs : void 0,
7076
+ name: "a:chart"
7077
+ });
7078
+ };
7079
+ /** Creates an a:dgm element (Animation Diagram Element). */
7080
+ const createDgm = (options) => {
7081
+ const attrs = {};
7082
+ if (options?.id !== void 0) attrs.id = {
7083
+ key: "id",
7084
+ value: options.id
7085
+ };
7086
+ if (options?.buildStep !== void 0) attrs.buildStep = {
7087
+ key: "bldStep",
7088
+ value: options.buildStep
7089
+ };
7090
+ return new BuilderElement({
7091
+ attributes: Object.keys(attrs).length > 0 ? attrs : void 0,
7092
+ name: "a:dgm"
7093
+ });
7094
+ };
7095
+ /** Creates an a:headers element (Headers). */
7096
+ const createHeaders = (children) => new BuilderElement({
7097
+ children,
7098
+ name: "a:headers"
7099
+ });
7100
+ /** Creates an a:header element (Header). */
7101
+ const createHeader = (children) => new BuilderElement({
7102
+ children,
7103
+ name: "a:header"
7104
+ });
7105
+ /** Creates an a:hlinkMouseOver element (Hyperlink Mouse Over). */
7106
+ const createHlinkMouseOver = (children) => new BuilderElement({
7107
+ children,
7108
+ name: "a:hlinkMouseOver"
7109
+ });
7110
+ /** Creates an a:st element (Audio CD Start Time). */
7111
+ const createSt = (options) => {
7112
+ const attrs = {};
7113
+ if (options?.track !== void 0) attrs.track = {
7114
+ key: "track",
7115
+ value: options.track
7116
+ };
7117
+ if (options?.time !== void 0) attrs.time = {
7118
+ key: "time",
7119
+ value: options.time
7120
+ };
7121
+ return new BuilderElement({
7122
+ attributes: Object.keys(attrs).length > 0 ? attrs : void 0,
7123
+ name: "a:st"
7124
+ });
7125
+ };
7126
+ /** Creates an a:style element (Shape Style). */
7127
+ const createStyleElement = (children) => new BuilderElement({
7128
+ children,
7129
+ name: "a:style"
7130
+ });
7131
+ //#endregion
7132
+ export { createSp as $, createCustomGeometry as $a, createTickMarkSkip as $i, createApplyToEnd as $n, xsdPresetShadow as $o, createMajorUnit as $r, createHierBranch as $t, createGrpSp as A, createCdrPic as Aa, createSecondPiePt as Ai, createXdrCNvPr as An, createCustomDash as Ao, createFirstFooter as Ar, convertInchesToTwip as As, createDiagramStyle as At, createLnDef as B, LockedCanvas as Ba, createShowOutline as Bi, createXdrNvGrpSpPr as Bn, createGradientStop as Bo, createHiLowLines as Br, createLayoutDefHdr as Bt, createCxnSpLocks as C, createCdrGrpSp as Ca, createPivotFmt as Ci, createWpTxbxContent as Cn, PenAlignment as Co, createDownBars as Cr, uniqueId as Cs, createDiagramSp3d as Ct, createExtraClrScheme as D, createCdrNvGrpSpPr as Da, createPlus as Di, createXdrCNvCxnSpPr as Dn, LineEndType as Do, createExt as Dr, convertEmuToPixels as Ds, FontCollectionIndex as Dt, createEndCxn as E, createCdrNvGraphicFramePr as Ea, createPlotVisOnly as Ei, createXdrBlipFill as En, LineEndLength as Eo, createExplosion as Er, convertEmuToInches as Es, ColorMethod as Et, createHlinkMouseOver as F, createCdrTo as Fa, createShowDLblsOverMax as Fi, createXdrCxnSp as Fn, PresetPattern as Fo, createGapDepth as Fr, createTxEffectClrLst as Ft, createNvPicPr as G, createTableStyle as Ga, createSmooth as Gi, createXdrRow as Gn, xsdCompoundLine as Go, createLeaderLines as Gr, AnimOneValue as Gt, createNvCxnSpPr as H, createGroupLocking as Ha, createSideWall as Hi, createXdrNvSpPr as Hn, createTileInfo as Ho, createInvertIfNegative as Hr, createStyleDefHdr as Ht, createInsideH as I, createCdrTxBody as Ia, createShowHorzBorder as Ii, createXdrFrom as In, createPatternFill as Io, createGapWidth as Ir, createTxFillClrLst as It, createPic as J, createGroupTransform2D as Ja, createStrLit as Ji, createXdrSpPr as Jn, xsdLineEndSize as Jo, createLogBase as Jr, createAdjLst as Jt, createNvSpPr as K, createTableStyleList as Ka, createSplitPos as Ki, createXdrRowOff as Kn, xsdEffectContainer as Ko, createLegacyDrawingHF as Kr, HierBranchStyle as Kt, createInsideV as L, createCdrX as La, createShowKeys as Li, createXdrGrpSp as Ln, PathShadeType as Lo, createH as Lr, createTxLinClrLst as Lt, createHeader as M, createCdrSp as Ma, createSelection as Mi, createXdrCol as Mn, createNoFill as Mo, createFloor as Mr, convertPixelsToEmu as Ms, createFillClrLst as Mt, createHeaders as N, createCdrSpPr as Na, createSerLines as Ni, createXdrColOff as Nn, buildFill as No, createFmtId as Nr, convertPointsToEmu as Ns, createLinClrLst as Nt, createFontElement as O, createCdrNvPicPr as Oa, createPrintSettings as Oi, createXdrCNvGrpSpPr as On, LineEndWidth as Oo, createExtLst as Or, convertEmuToPoints as Os, HueDirection as Ot, createHighlight as P, createCdrStyle as Pa, createShape as Pi, createXdrContentPart as Pn, extractBlipFillMedia as Po, createFormatting as Pr, createStyleLbl as Pt, createSnd as Q, createExtentionList as Qa, createTickLblPos as Qi, createXdrTxBody as Qn, xsdPenAlignment as Qo, createMajorTimeUnit as Qr, createChPref as Qt, createLeft as R, createCdrXfrm as Ra, createShowLeaderLines as Ri, createXdrGrpSpPr as Rn, TileFlipMode as Ro, createHMode as Rr, createColorsDefHdr as Rt, createCxnSp as S, createCdrGraphicFrame as Sa, createPictureStackUnit as Si, createWpTxbx as Sn, LineJoin as So, createDispUnitsLbl as Sr, hashedId as Ss, createDiagramExtLst as St, createEnd as T, createCdrNvCxnSpPr as Ta, createPivotSource as Ti, createWpXfrm as Tn, createOutline as To, createEvenHeader as Tr, uniqueUuid as Ts, createDiagramRelIds as Tt, createNvGraphicFramePr as U, createPictureLocking as Ua, createSize as Ui, createXdrOneCellAnchor as Un, invertMap as Uo, createLayoutTarget as Ur, createStyleDefHdrLst as Ut, createLnTlToBr as V, createGraphicFrameLocking as Va, createShowVertBorder as Vi, createXdrNvPicPr as Vn, TileAlignment as Vo, createHoleSize as Vr, createLayoutDefHdrLst as Vt, createNvGrpSpPr as W, createShapeLocking as Wa, createSizeRepresents as Wi, createXdrPic as Wn, xsdBlendMode as Wo, createLblAlgn as Wr, AnimLevelValue as Wt, createRight as X, createBlipFill as Xa, createSymbol as Xi, createXdrTo as Xn, xsdPathFillMode as Xo, createMajorGridlines as Xr, createAnimOne as Xt, createQuickTimeFile as Y, createTransform2D as Ya, createSurface3DChart as Yi, createXdrStyle as Yn, xsdMaterialType as Yo, createLvl as Yr, createAnimLvl as Yt, createRound as Z, createBlip as Za, createThickness as Zi, createXdrTwoCellAnchor as Zn, xsdPattern as Zo, createMajorTickMark as Zr, createChMax as Zt, createChart as _, createCdrCNvPr as _a, createOverlap as _i, createWpNestedGrpSp as _n, createGlowEffect as _o, createDPt as _r, createRgbColor as _s, createUFillTx as _t, createBottom as a, createW as aa, createMinorTickMark as ai, createWpCNvContentPartPr as an, createBevel as ao, createBandFmts as ar, xsdUnderlineStyle as as, createSym as at, createCustClr as b, createCdrExt as ba, createPictureFormat as bi, createWpSpPr as bn, CompoundLine as bo, createDispBlanksAs as br, createHslColor as bs, createUseSpRect as bt, createBuClrTx as c, createXMode as ca, createMinus as ci, createWpCNvPr as cn, createEffectDag as co, createBubbleScale as cr, createSourceRectangle as cs, createTableStyleElement as ct, createBuSzTx as d, createCdrAbsSizeAnchor as da, createName as di, createWpContentPart as dn, createReflectionEffect as do, createClrMapOvr as dr, createSolidFill as ds, createTl2br as dt, createTrendlineLbl as ea, createManualLayout as ei, createOrgChart as en, PresetGeometry as eo, createApplyToFront as er, xsdRectAlignment as es, createSpDef as et, createCNvCxnSpPr as f, createCdrBlipFill as fa, createNumLit as fi, createWpExtLst as fn, PresetShadowVal as fo, createCrossBetween as fr, SystemColor as fs, createTop as ft, createCell3D as g, createCdrCNvPicPr as ga, createOfPieType as gi, createWpLinkedTxbx as gn, createInnerShadowEffect as go, createDLbl as gr, createScRgbColor as gs, createUFill as gt, createCNvSpPr as h, createCdrCNvGrpSpPr as ha, createOfPieChart as hi, createWpGrpSpPr as hn, createOuterShadowEffect as ho, createCustUnit as hr, createSchemeColor as hs, createTxSp as ht, createBldDgm as i, createUserShapes as ia, createMinorGridlines as ii, createWpCNvCnPr as in, BevelPresetType as io, createBandFmt as ir, xsdTextCaps as is, createStyleElement as it, createGrpSpPr as j, createCdrRelSizeAnchor as ja, createSecondPieSize as ji, createXdrCNvSpPr as jn, createGroupFill as jo, createFirstHeader as jr, convertMillimetersToTwip as js, createEffectClrLst as jt, createGraphicFrame as k, createCdrNvSpPr as ka, createProtection as ki, createXdrCNvPicPr as kn, createLineEnd as ko, createExternalData as kr, convertInchesToEmu as ks, StyleMatrixIndex as kt, createBuFontTx as l, createY as la, createMultiLvlStrCache as li, createWpCNvSpPr as ln, createEffectList as lo, createBuiltInUnit as lr, createBlipEffects as ls, createThemeManager as lt, createCNvGrpSpPr as m, createCdrCNvGraphicFramePr as ma, createOddHeader as mi, createWpGrpSp as mn, RectAlignment as mo, createCustSplit as mr, SchemeColor as ms, createTxDef as mt, createBevelElement as n, createUpDownBars as na, createMax as ni, createWpBg as nn, PresetMaterialType as no, createAutoUpdate as nr, xsdTextAlign as ns, createStCxn as nt, createBr as o, createWMode as oa, createMinorTimeUnit as oi, createWpCNvFrPr as on, createBottomBevel as oo, createBaseTimeUnit as or, xsdVerticalMergeRev as os, createTab as ot, createCNvGraphicFramePr as p, createCdrCNvCxnSpPr as pa, createOddFooter as pi, createWpGraphicFrame as pn, createPresetShadowEffect as po, createCrossesAt as pr, createSystemColor as ps, createTr2bl as pt, createOverrideClrMapping as q, createTransformation as qa, createSplitType as qi, createXdrSp as qn, xsdLineCap as qo, createLegendEntry as qr, createAdj as qt, createBldChart as r, createUserInterface as ra, createMin as ri, createWpBodyPr as rn, createShape3D as ro, createBackWall as rr, xsdTextAnchor as rs, createStart as rt, createBuBlip as s, createX as sa, createMinorUnit as si, createWpCNvGrpSpPr as sn, createScene3D as so, createBubble3D as sr, Stretch as ss, createTabLst as st, createAudioCd as t, createUpBars as ta, createMarker as ti, createPresLayoutVars as tn, createAdjustmentValues as to, createApplyToSides as tr, xsdStrikeStyle as ts, createSt as tt, createBuSzPts as u, createYMode as ua, createMultiLvlStrRef as ui, createWpCanvas as un, createSoftEdgeEffect as uo, createChartObject as ur, createColorElement as us, createThemeOverride as ut, createClrMap as v, createCdrCNvSpPr as va, createPageMargins as vi, createWpNvContentPartPr as vn, BlendMode as vo, createDTable as vr, PresetColor as vs, createULn as vt, createDgm as w, createCdrGrpSpPr as wa, createPivotFmts as wi, createWpWhole as wn, PresetDash as wo, createEvenFooter as wr, uniqueNumericIdCreator as ws, createDiagramTxPr as wt, createCustClrLst as x, createCdrFrom as xa, createPictureOptions as xi, createWpStyle as xn, LineCap as xo, createDispUnits as xr, createColorTransforms as xs, createWavAudioFile as xt, createCpLocks as y, createCdrCxnSp as ya, createPageSetup as yi, createWpSp as yn, createFillOverlayEffect as yo, createData as yr, createPresetColor as ys, createULnTx as yt, createLnBlToTr as z, createCdrY as za, createShowNegBubbles as zi, createXdrNvCxnSpPr as zn, createGradientFill as zo, createHeaderFooter as zr, createColorsDefHdrLst as zt };