@office-open/core 0.7.1 → 0.8.1

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