@office-kit/pptx-editor 0.2.4 → 0.3.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.
@@ -11778,8 +11778,8 @@ const generatedTools = {
11778
11778
  enum: [
11779
11779
  "circle",
11780
11780
  "shape",
11781
- "rect",
11782
- "linear"
11781
+ "linear",
11782
+ "rect"
11783
11783
  ],
11784
11784
  description: "Non-linear gradient path. `circle` paints concentric circles,\n`rect` paints nested rectangles, `shape` follows the shape's\noutline. Absent / `'linear'` → linear gradient using `angleDeg`.\nMirrors ECMA-376 §20.1.8.33 `<a:path path=\"…\"/>`."
11785
11785
  },
@@ -13052,7 +13052,7 @@ const generatedTools = {
13052
13052
  }] },
13053
13053
  runs: {
13054
13054
  type: "array",
13055
- items: {
13055
+ items: { anyOf: [{
13056
13056
  type: "object",
13057
13057
  properties: {
13058
13058
  text: {
@@ -13063,7 +13063,23 @@ const generatedTools = {
13063
13063
  },
13064
13064
  required: ["text"],
13065
13065
  additionalProperties: false
13066
- }
13066
+ }, {
13067
+ type: "object",
13068
+ properties: {
13069
+ equation: { $ref: "#/$defs/MathNodeSpecs" },
13070
+ display: {
13071
+ type: "boolean",
13072
+ description: "A display equation (`<m:oMathPara>`) instead of an inline one."
13073
+ },
13074
+ format: {
13075
+ $ref: "#/$defs/TextFormat",
13076
+ description: "Format of every math run (size, color, …), under each text node's own."
13077
+ }
13078
+ },
13079
+ required: ["equation"],
13080
+ additionalProperties: false
13081
+ }] },
13082
+ description: "Text runs and equations, in reading order."
13067
13083
  },
13068
13084
  endFormat: {
13069
13085
  $ref: "#/$defs/TextFormat",
@@ -13293,6 +13309,228 @@ const generatedTools = {
13293
13309
  type: "string",
13294
13310
  const: "ctr"
13295
13311
  }] },
13312
+ MathNodeSpecs: {
13313
+ type: "array",
13314
+ items: { anyOf: [
13315
+ {
13316
+ type: "object",
13317
+ properties: {
13318
+ kind: {
13319
+ type: "string",
13320
+ const: "text"
13321
+ },
13322
+ text: { type: "string" },
13323
+ style: {
13324
+ type: "string",
13325
+ enum: [
13326
+ "bold",
13327
+ "italic",
13328
+ "plain",
13329
+ "boldItalic"
13330
+ ]
13331
+ },
13332
+ format: { $ref: "#/$defs/TextFormat" }
13333
+ },
13334
+ required: ["kind", "text"],
13335
+ additionalProperties: false
13336
+ },
13337
+ {
13338
+ type: "object",
13339
+ properties: {
13340
+ kind: {
13341
+ type: "string",
13342
+ const: "fraction"
13343
+ },
13344
+ type: {
13345
+ type: "string",
13346
+ enum: [
13347
+ "bar",
13348
+ "skewed",
13349
+ "linear",
13350
+ "noBar"
13351
+ ]
13352
+ },
13353
+ numerator: { $ref: "#/$defs/MathNodeSpecs" },
13354
+ denominator: { $ref: "#/$defs/MathNodeSpecs" }
13355
+ },
13356
+ required: [
13357
+ "kind",
13358
+ "numerator",
13359
+ "denominator"
13360
+ ],
13361
+ additionalProperties: false
13362
+ },
13363
+ {
13364
+ type: "object",
13365
+ properties: {
13366
+ kind: {
13367
+ type: "string",
13368
+ const: "subscript"
13369
+ },
13370
+ base: { $ref: "#/$defs/MathNodeSpecs" },
13371
+ sub: { $ref: "#/$defs/MathNodeSpecs" }
13372
+ },
13373
+ required: [
13374
+ "kind",
13375
+ "base",
13376
+ "sub"
13377
+ ],
13378
+ additionalProperties: false
13379
+ },
13380
+ {
13381
+ type: "object",
13382
+ properties: {
13383
+ kind: {
13384
+ type: "string",
13385
+ const: "superscript"
13386
+ },
13387
+ base: { $ref: "#/$defs/MathNodeSpecs" },
13388
+ sup: { $ref: "#/$defs/MathNodeSpecs" }
13389
+ },
13390
+ required: [
13391
+ "kind",
13392
+ "base",
13393
+ "sup"
13394
+ ],
13395
+ additionalProperties: false
13396
+ },
13397
+ {
13398
+ type: "object",
13399
+ properties: {
13400
+ kind: {
13401
+ type: "string",
13402
+ const: "subSuperscript"
13403
+ },
13404
+ base: { $ref: "#/$defs/MathNodeSpecs" },
13405
+ sub: { $ref: "#/$defs/MathNodeSpecs" },
13406
+ sup: { $ref: "#/$defs/MathNodeSpecs" }
13407
+ },
13408
+ required: [
13409
+ "kind",
13410
+ "base",
13411
+ "sub",
13412
+ "sup"
13413
+ ],
13414
+ additionalProperties: false
13415
+ },
13416
+ {
13417
+ type: "object",
13418
+ properties: {
13419
+ kind: {
13420
+ type: "string",
13421
+ const: "radical"
13422
+ },
13423
+ degree: { $ref: "#/$defs/NullOrMathNodeSpecs" },
13424
+ body: { $ref: "#/$defs/MathNodeSpecs" }
13425
+ },
13426
+ required: ["kind", "body"],
13427
+ additionalProperties: false
13428
+ },
13429
+ {
13430
+ type: "object",
13431
+ properties: {
13432
+ kind: {
13433
+ type: "string",
13434
+ const: "nary"
13435
+ },
13436
+ operator: { type: "string" },
13437
+ limitLocation: {
13438
+ type: "string",
13439
+ enum: ["underOver", "subSup"]
13440
+ },
13441
+ sub: { $ref: "#/$defs/NullOrMathNodeSpecs" },
13442
+ sup: { $ref: "#/$defs/NullOrMathNodeSpecs" },
13443
+ body: { $ref: "#/$defs/MathNodeSpecs" }
13444
+ },
13445
+ required: ["kind", "body"],
13446
+ additionalProperties: false
13447
+ },
13448
+ {
13449
+ type: "object",
13450
+ properties: {
13451
+ kind: {
13452
+ type: "string",
13453
+ const: "delimiter"
13454
+ },
13455
+ open: { type: "string" },
13456
+ close: { type: "string" },
13457
+ separator: { type: "string" },
13458
+ items: {
13459
+ type: "array",
13460
+ items: { $ref: "#/$defs/MathNodeSpecs" }
13461
+ }
13462
+ },
13463
+ required: ["kind", "items"],
13464
+ additionalProperties: false
13465
+ },
13466
+ {
13467
+ type: "object",
13468
+ properties: {
13469
+ kind: {
13470
+ type: "string",
13471
+ const: "matrix"
13472
+ },
13473
+ rows: {
13474
+ type: "array",
13475
+ items: {
13476
+ type: "array",
13477
+ items: { $ref: "#/$defs/MathNodeSpecs" }
13478
+ }
13479
+ }
13480
+ },
13481
+ required: ["kind", "rows"],
13482
+ additionalProperties: false
13483
+ },
13484
+ {
13485
+ type: "object",
13486
+ properties: {
13487
+ kind: {
13488
+ type: "string",
13489
+ const: "accent"
13490
+ },
13491
+ accent: { type: "string" },
13492
+ body: { $ref: "#/$defs/MathNodeSpecs" }
13493
+ },
13494
+ required: ["kind", "body"],
13495
+ additionalProperties: false
13496
+ },
13497
+ {
13498
+ type: "object",
13499
+ properties: {
13500
+ kind: {
13501
+ type: "string",
13502
+ const: "function"
13503
+ },
13504
+ name: { $ref: "#/$defs/MathNodeSpecs" },
13505
+ body: { $ref: "#/$defs/MathNodeSpecs" }
13506
+ },
13507
+ required: [
13508
+ "kind",
13509
+ "name",
13510
+ "body"
13511
+ ],
13512
+ additionalProperties: false
13513
+ },
13514
+ {
13515
+ type: "object",
13516
+ properties: {
13517
+ kind: {
13518
+ type: "string",
13519
+ enum: ["lowerLimit", "upperLimit"]
13520
+ },
13521
+ base: { $ref: "#/$defs/MathNodeSpecs" },
13522
+ limit: { $ref: "#/$defs/MathNodeSpecs" }
13523
+ },
13524
+ required: [
13525
+ "kind",
13526
+ "base",
13527
+ "limit"
13528
+ ],
13529
+ additionalProperties: false
13530
+ }
13531
+ ] }
13532
+ },
13533
+ NullOrMathNodeSpecs: { anyOf: [{ type: "null" }, { $ref: "#/$defs/MathNodeSpecs" }] },
13296
13534
  OffsetEmu: {
13297
13535
  type: "number",
13298
13536
  description: "Offset distance in EMU. Defaults to 38100 (3pt)."
@@ -13306,8 +13544,8 @@ const generatedTools = {
13306
13544
  enum: [
13307
13545
  "circle",
13308
13546
  "shape",
13309
- "rect",
13310
- "linear"
13547
+ "linear",
13548
+ "rect"
13311
13549
  ],
13312
13550
  description: "Non-linear gradient path. `circle` paints concentric circles,\n`rect` paints nested rectangles, `shape` follows the shape's\noutline. Absent / `'linear'` → linear gradient using `angleDeg`.\nMirrors ECMA-376 §20.1.8.33 `<a:path path=\"…\"/>`."
13313
13551
  },
@@ -14948,8 +15186,8 @@ const generatedTools = {
14948
15186
  enum: [
14949
15187
  "circle",
14950
15188
  "shape",
14951
- "rect",
14952
- "linear"
15189
+ "linear",
15190
+ "rect"
14953
15191
  ],
14954
15192
  description: "Non-linear gradient path. `circle` paints concentric circles,\n`rect` paints nested rectangles, `shape` follows the shape's\noutline. Absent / `'linear'` → linear gradient using `angleDeg`.\nMirrors ECMA-376 §20.1.8.33 `<a:path path=\"…\"/>`."
14955
15193
  },
@@ -15579,8 +15817,8 @@ const generatedTools = {
15579
15817
  enum: [
15580
15818
  "circle",
15581
15819
  "shape",
15582
- "rect",
15583
- "linear"
15820
+ "linear",
15821
+ "rect"
15584
15822
  ],
15585
15823
  description: "Non-linear gradient path. `circle` paints concentric circles,\n`rect` paints nested rectangles, `shape` follows the shape's\noutline. Absent / `'linear'` → linear gradient using `angleDeg`.\nMirrors ECMA-376 §20.1.8.33 `<a:path path=\"…\"/>`."
15586
15824
  },
@@ -17682,8 +17920,8 @@ const generatedTools = {
17682
17920
  enum: [
17683
17921
  "circle",
17684
17922
  "shape",
17685
- "rect",
17686
- "linear"
17923
+ "linear",
17924
+ "rect"
17687
17925
  ],
17688
17926
  description: "Non-linear gradient path. `circle` paints concentric circles,\n`rect` paints nested rectangles, `shape` follows the shape's\noutline. Absent / `'linear'` → linear gradient using `angleDeg`.\nMirrors ECMA-376 §20.1.8.33 `<a:path path=\"…\"/>`."
17689
17927
  },
@@ -18153,8 +18391,8 @@ const generatedTools = {
18153
18391
  enum: [
18154
18392
  "circle",
18155
18393
  "shape",
18156
- "rect",
18157
- "linear"
18394
+ "linear",
18395
+ "rect"
18158
18396
  ],
18159
18397
  description: "Non-linear gradient path. `circle` paints concentric circles,\n`rect` paints nested rectangles, `shape` follows the shape's\noutline. Absent / `'linear'` → linear gradient using `angleDeg`.\nMirrors ECMA-376 §20.1.8.33 `<a:path path=\"…\"/>`."
18160
18398
  },
@@ -19526,8 +19764,8 @@ const generatedTools = {
19526
19764
  enum: [
19527
19765
  "circle",
19528
19766
  "shape",
19529
- "rect",
19530
- "linear"
19767
+ "linear",
19768
+ "rect"
19531
19769
  ],
19532
19770
  description: "Non-linear gradient path. `circle` paints concentric circles,\n`rect` paints nested rectangles, `shape` follows the shape's\noutline. Absent / `'linear'` → linear gradient using `angleDeg`.\nMirrors ECMA-376 §20.1.8.33 `<a:path path=\"…\"/>`."
19533
19771
  },
@@ -20645,7 +20883,7 @@ const generatedTools = {
20645
20883
  }] },
20646
20884
  runs: {
20647
20885
  type: "array",
20648
- items: {
20886
+ items: { anyOf: [{
20649
20887
  type: "object",
20650
20888
  properties: {
20651
20889
  text: {
@@ -20656,7 +20894,23 @@ const generatedTools = {
20656
20894
  },
20657
20895
  required: ["text"],
20658
20896
  additionalProperties: false
20659
- }
20897
+ }, {
20898
+ type: "object",
20899
+ properties: {
20900
+ equation: { $ref: "#/$defs/MathNodeSpecs" },
20901
+ display: {
20902
+ type: "boolean",
20903
+ description: "A display equation (`<m:oMathPara>`) instead of an inline one."
20904
+ },
20905
+ format: {
20906
+ $ref: "#/$defs/TextFormat",
20907
+ description: "Format of every math run (size, color, …), under each text node's own."
20908
+ }
20909
+ },
20910
+ required: ["equation"],
20911
+ additionalProperties: false
20912
+ }] },
20913
+ description: "Text runs and equations, in reading order."
20660
20914
  },
20661
20915
  endFormat: {
20662
20916
  $ref: "#/$defs/TextFormat",
@@ -20886,6 +21140,228 @@ const generatedTools = {
20886
21140
  type: "string",
20887
21141
  const: "ctr"
20888
21142
  }] },
21143
+ MathNodeSpecs: {
21144
+ type: "array",
21145
+ items: { anyOf: [
21146
+ {
21147
+ type: "object",
21148
+ properties: {
21149
+ kind: {
21150
+ type: "string",
21151
+ const: "text"
21152
+ },
21153
+ text: { type: "string" },
21154
+ style: {
21155
+ type: "string",
21156
+ enum: [
21157
+ "bold",
21158
+ "italic",
21159
+ "plain",
21160
+ "boldItalic"
21161
+ ]
21162
+ },
21163
+ format: { $ref: "#/$defs/TextFormat" }
21164
+ },
21165
+ required: ["kind", "text"],
21166
+ additionalProperties: false
21167
+ },
21168
+ {
21169
+ type: "object",
21170
+ properties: {
21171
+ kind: {
21172
+ type: "string",
21173
+ const: "fraction"
21174
+ },
21175
+ type: {
21176
+ type: "string",
21177
+ enum: [
21178
+ "bar",
21179
+ "skewed",
21180
+ "linear",
21181
+ "noBar"
21182
+ ]
21183
+ },
21184
+ numerator: { $ref: "#/$defs/MathNodeSpecs" },
21185
+ denominator: { $ref: "#/$defs/MathNodeSpecs" }
21186
+ },
21187
+ required: [
21188
+ "kind",
21189
+ "numerator",
21190
+ "denominator"
21191
+ ],
21192
+ additionalProperties: false
21193
+ },
21194
+ {
21195
+ type: "object",
21196
+ properties: {
21197
+ kind: {
21198
+ type: "string",
21199
+ const: "subscript"
21200
+ },
21201
+ base: { $ref: "#/$defs/MathNodeSpecs" },
21202
+ sub: { $ref: "#/$defs/MathNodeSpecs" }
21203
+ },
21204
+ required: [
21205
+ "kind",
21206
+ "base",
21207
+ "sub"
21208
+ ],
21209
+ additionalProperties: false
21210
+ },
21211
+ {
21212
+ type: "object",
21213
+ properties: {
21214
+ kind: {
21215
+ type: "string",
21216
+ const: "superscript"
21217
+ },
21218
+ base: { $ref: "#/$defs/MathNodeSpecs" },
21219
+ sup: { $ref: "#/$defs/MathNodeSpecs" }
21220
+ },
21221
+ required: [
21222
+ "kind",
21223
+ "base",
21224
+ "sup"
21225
+ ],
21226
+ additionalProperties: false
21227
+ },
21228
+ {
21229
+ type: "object",
21230
+ properties: {
21231
+ kind: {
21232
+ type: "string",
21233
+ const: "subSuperscript"
21234
+ },
21235
+ base: { $ref: "#/$defs/MathNodeSpecs" },
21236
+ sub: { $ref: "#/$defs/MathNodeSpecs" },
21237
+ sup: { $ref: "#/$defs/MathNodeSpecs" }
21238
+ },
21239
+ required: [
21240
+ "kind",
21241
+ "base",
21242
+ "sub",
21243
+ "sup"
21244
+ ],
21245
+ additionalProperties: false
21246
+ },
21247
+ {
21248
+ type: "object",
21249
+ properties: {
21250
+ kind: {
21251
+ type: "string",
21252
+ const: "radical"
21253
+ },
21254
+ degree: { $ref: "#/$defs/NullOrMathNodeSpecs" },
21255
+ body: { $ref: "#/$defs/MathNodeSpecs" }
21256
+ },
21257
+ required: ["kind", "body"],
21258
+ additionalProperties: false
21259
+ },
21260
+ {
21261
+ type: "object",
21262
+ properties: {
21263
+ kind: {
21264
+ type: "string",
21265
+ const: "nary"
21266
+ },
21267
+ operator: { type: "string" },
21268
+ limitLocation: {
21269
+ type: "string",
21270
+ enum: ["underOver", "subSup"]
21271
+ },
21272
+ sub: { $ref: "#/$defs/NullOrMathNodeSpecs" },
21273
+ sup: { $ref: "#/$defs/NullOrMathNodeSpecs" },
21274
+ body: { $ref: "#/$defs/MathNodeSpecs" }
21275
+ },
21276
+ required: ["kind", "body"],
21277
+ additionalProperties: false
21278
+ },
21279
+ {
21280
+ type: "object",
21281
+ properties: {
21282
+ kind: {
21283
+ type: "string",
21284
+ const: "delimiter"
21285
+ },
21286
+ open: { type: "string" },
21287
+ close: { type: "string" },
21288
+ separator: { type: "string" },
21289
+ items: {
21290
+ type: "array",
21291
+ items: { $ref: "#/$defs/MathNodeSpecs" }
21292
+ }
21293
+ },
21294
+ required: ["kind", "items"],
21295
+ additionalProperties: false
21296
+ },
21297
+ {
21298
+ type: "object",
21299
+ properties: {
21300
+ kind: {
21301
+ type: "string",
21302
+ const: "matrix"
21303
+ },
21304
+ rows: {
21305
+ type: "array",
21306
+ items: {
21307
+ type: "array",
21308
+ items: { $ref: "#/$defs/MathNodeSpecs" }
21309
+ }
21310
+ }
21311
+ },
21312
+ required: ["kind", "rows"],
21313
+ additionalProperties: false
21314
+ },
21315
+ {
21316
+ type: "object",
21317
+ properties: {
21318
+ kind: {
21319
+ type: "string",
21320
+ const: "accent"
21321
+ },
21322
+ accent: { type: "string" },
21323
+ body: { $ref: "#/$defs/MathNodeSpecs" }
21324
+ },
21325
+ required: ["kind", "body"],
21326
+ additionalProperties: false
21327
+ },
21328
+ {
21329
+ type: "object",
21330
+ properties: {
21331
+ kind: {
21332
+ type: "string",
21333
+ const: "function"
21334
+ },
21335
+ name: { $ref: "#/$defs/MathNodeSpecs" },
21336
+ body: { $ref: "#/$defs/MathNodeSpecs" }
21337
+ },
21338
+ required: [
21339
+ "kind",
21340
+ "name",
21341
+ "body"
21342
+ ],
21343
+ additionalProperties: false
21344
+ },
21345
+ {
21346
+ type: "object",
21347
+ properties: {
21348
+ kind: {
21349
+ type: "string",
21350
+ enum: ["lowerLimit", "upperLimit"]
21351
+ },
21352
+ base: { $ref: "#/$defs/MathNodeSpecs" },
21353
+ limit: { $ref: "#/$defs/MathNodeSpecs" }
21354
+ },
21355
+ required: [
21356
+ "kind",
21357
+ "base",
21358
+ "limit"
21359
+ ],
21360
+ additionalProperties: false
21361
+ }
21362
+ ] }
21363
+ },
21364
+ NullOrMathNodeSpecs: { anyOf: [{ type: "null" }, { $ref: "#/$defs/MathNodeSpecs" }] },
20889
21365
  OffsetEmu: {
20890
21366
  type: "number",
20891
21367
  description: "Offset distance in EMU. Defaults to 38100 (3pt)."
@@ -20899,8 +21375,8 @@ const generatedTools = {
20899
21375
  enum: [
20900
21376
  "circle",
20901
21377
  "shape",
20902
- "rect",
20903
- "linear"
21378
+ "linear",
21379
+ "rect"
20904
21380
  ],
20905
21381
  description: "Non-linear gradient path. `circle` paints concentric circles,\n`rect` paints nested rectangles, `shape` follows the shape's\noutline. Absent / `'linear'` → linear gradient using `angleDeg`.\nMirrors ECMA-376 §20.1.8.33 `<a:path path=\"…\"/>`."
20906
21382
  },
@@ -22164,8 +22640,8 @@ const generatedTools = {
22164
22640
  enum: [
22165
22641
  "circle",
22166
22642
  "shape",
22167
- "rect",
22168
- "linear"
22643
+ "linear",
22644
+ "rect"
22169
22645
  ],
22170
22646
  description: "Non-linear gradient path. `circle` paints concentric circles,\n`rect` paints nested rectangles, `shape` follows the shape's\noutline. Absent / `'linear'` → linear gradient using `angleDeg`.\nMirrors ECMA-376 §20.1.8.33 `<a:path path=\"…\"/>`."
22171
22647
  },
@@ -23483,4 +23959,4 @@ async function runTool(host, name, input) {
23483
23959
  //#endregion
23484
23960
  export { generatedTools as a, shapeSummary as i, runTool as n, schemaErrors as r, agent_tools_exports as t };
23485
23961
 
23486
- //# sourceMappingURL=agent-tools-BrFS9zmU.js.map
23962
+ //# sourceMappingURL=agent-tools-H2QRduWT.js.map