@office-kit/pptx-editor 0.2.0 → 0.2.2

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.
@@ -2175,41 +2175,12 @@ const generatedTools = {
2175
2175
  properties: {
2176
2176
  min: { type: "number" },
2177
2177
  max: { type: "number" },
2178
- majorUnit: {
2179
- type: "number",
2180
- description: "Major tick spacing (`<c:majorUnit val=\"N\"/>`)."
2181
- },
2182
- minorUnit: {
2183
- type: "number",
2184
- description: "Minor tick spacing (`<c:minorUnit val=\"N\"/>`)."
2185
- },
2186
- numberFormat: {
2187
- type: "string",
2188
- description: "Number-format code from `<c:numFmt formatCode=\"…\"/>`. Common\nvalues: `\"0%\"`, `\"0.0%\"`, `\"#,##0\"`, `\"$#,##0\"`, `\"yyyy-mm-dd\"`.\nRenderers project a subset of spreadsheet number formats to label text."
2189
- },
2190
- logBase: {
2191
- type: "number",
2192
- description: "Logarithmic base for the axis from `<c:scaling><c:logBase val=\"N\"/>`.\nTypical values are `2`, `10`, `Math.E`. When set, the renderer\nprojects values through `Math.log(v) / Math.log(logBase)` before\nmapping to plot coordinates. Linear when omitted."
2193
- },
2194
- displayUnits: {
2195
- type: "string",
2196
- enum: [
2197
- "hundreds",
2198
- "thousands",
2199
- "tenThousands",
2200
- "hundredThousands",
2201
- "millions",
2202
- "tenMillions",
2203
- "hundredMillions",
2204
- "billions",
2205
- "trillions"
2206
- ],
2207
- description: "Authored display-units scale from `<c:dispUnits><c:builtInUnit val=\"…\"/>`.\nToken values map to divisors:\n\n - `'hundreds'` (100), `'thousands'` (1e3), `'tenThousands'` (1e4),\n `'hundredThousands'` (1e5), `'millions'` (1e6),\n `'tenMillions'` (1e7), `'hundredMillions'` (1e8),\n `'billions'` (1e9), `'trillions'` (1e12)\n\nRenderers divide axis labels by the divisor and may append a unit\nsuffix (\"K\", \"M\", \"B\") for readability."
2208
- },
2209
- displayUnitsLabel: {
2210
- type: "boolean",
2211
- description: "Show the display-units caption next to the axis (\"Thousands\",\n\"Millions\", …) — an empty `<c:dispUnitsLbl/>` under `<c:dispUnits>`.\nOnly meaningful together with `displayUnits`."
2212
- }
2178
+ majorUnit: { $ref: "#/$defs/MajorUnit" },
2179
+ minorUnit: { $ref: "#/$defs/MinorUnit" },
2180
+ numberFormat: { $ref: "#/$defs/NumberFormat" },
2181
+ logBase: { $ref: "#/$defs/LogBase" },
2182
+ displayUnits: { $ref: "#/$defs/DisplayUnits" },
2183
+ displayUnitsLabel: { $ref: "#/$defs/DisplayUnitsLabel" }
2213
2184
  },
2214
2185
  additionalProperties: false
2215
2186
  },
@@ -2464,7 +2435,15 @@ const generatedTools = {
2464
2435
  crossBetween: {
2465
2436
  type: "string",
2466
2437
  enum: ["between", "midCat"]
2467
- }
2438
+ },
2439
+ min: { type: "number" },
2440
+ max: { type: "number" },
2441
+ majorUnit: { $ref: "#/$defs/MajorUnit" },
2442
+ minorUnit: { $ref: "#/$defs/MinorUnit" },
2443
+ numberFormat: { $ref: "#/$defs/NumberFormat" },
2444
+ logBase: { $ref: "#/$defs/LogBase" },
2445
+ displayUnits: { $ref: "#/$defs/DisplayUnits" },
2446
+ displayUnitsLabel: { $ref: "#/$defs/DisplayUnitsLabel" }
2468
2447
  },
2469
2448
  additionalProperties: false
2470
2449
  },
@@ -2701,6 +2680,25 @@ const generatedTools = {
2701
2680
  ],
2702
2681
  description: "`<c:dispBlanksAs val=\"…\"/>` — how line / area renderers should\ntreat `null` values in series:\n\n - `'gap'` — leave a gap (the default)\n - `'zero'` — substitute zero\n - `'span'` — connect the surrounding points across the gap"
2703
2682
  },
2683
+ DisplayUnits: {
2684
+ type: "string",
2685
+ enum: [
2686
+ "hundreds",
2687
+ "thousands",
2688
+ "tenThousands",
2689
+ "hundredThousands",
2690
+ "millions",
2691
+ "tenMillions",
2692
+ "hundredMillions",
2693
+ "billions",
2694
+ "trillions"
2695
+ ],
2696
+ description: "Authored display-units scale from `<c:dispUnits><c:builtInUnit val=\"…\"/>`.\nToken values map to divisors:\n\n - `'hundreds'` (100), `'thousands'` (1e3), `'tenThousands'` (1e4),\n `'hundredThousands'` (1e5), `'millions'` (1e6),\n `'tenMillions'` (1e7), `'hundredMillions'` (1e8),\n `'billions'` (1e9), `'trillions'` (1e12)\n\nRenderers divide axis labels by the divisor and may append a unit\nsuffix (\"K\", \"M\", \"B\") for readability."
2697
+ },
2698
+ DisplayUnitsLabel: {
2699
+ type: "boolean",
2700
+ description: "Show the display-units caption next to the axis (\"Thousands\",\n\"Millions\", …) — an empty `<c:dispUnitsLbl/>` under `<c:dispUnits>`.\nOnly meaningful together with `displayUnits`."
2701
+ },
2704
2702
  DropLines: {
2705
2703
  type: "boolean",
2706
2704
  description: "Drop lines (`<c:dropLines>`) — vertical guide lines from each data\npoint down to the value axis. Common on line / area charts."
@@ -2796,6 +2794,14 @@ const generatedTools = {
2796
2794
  type: "number",
2797
2795
  description: "Optional line stroke width in EMU (`<c:ser><c:spPr><a:ln w=\"…\"/>`).\nOnly meaningful for line / area / scatter series. Default falls\nback to the renderer's own pick."
2798
2796
  },
2797
+ LogBase: {
2798
+ type: "number",
2799
+ description: "Logarithmic base for the axis from `<c:scaling><c:logBase val=\"N\"/>`.\nTypical values are `2`, `10`, `Math.E`. When set, the renderer\nprojects values through `Math.log(v) / Math.log(logBase)` before\nmapping to plot coordinates. Linear when omitted."
2800
+ },
2801
+ MajorUnit: {
2802
+ type: "number",
2803
+ description: "Major tick spacing (`<c:majorUnit val=\"N\"/>`)."
2804
+ },
2799
2805
  MarkerColor: {
2800
2806
  type: "string",
2801
2807
  description: "Optional marker fill + outline color (`<c:marker><c:spPr>`), as an sRGB\nhex. Defaults to `color`. The builder always writes it for line /\nscatter / radar series, because the reference desktop app paints a marker without\n`<c:spPr>` in the theme's automatic color instead of the series color."
@@ -2826,10 +2832,18 @@ const generatedTools = {
2826
2832
  }],
2827
2833
  description: "Optional marker style for line / scatter series (`<c:ser><c:marker>`).\n`none` hides the markers; the others render the matching glyph at\neach data point. Defaults to `auto`, which renderers map to a small\nfilled circle."
2828
2834
  },
2835
+ MinorUnit: {
2836
+ type: "number",
2837
+ description: "Minor tick spacing (`<c:minorUnit val=\"N\"/>`)."
2838
+ },
2829
2839
  Name: {
2830
2840
  type: "string",
2831
2841
  description: "Series label rendered in the legend."
2832
2842
  },
2843
+ NumberFormat: {
2844
+ type: "string",
2845
+ description: "Number-format code from `<c:numFmt formatCode=\"…\"/>`. Common\nvalues: `\"0%\"`, `\"0.0%\"`, `\"#,##0\"`, `\"$#,##0\"`, `\"yyyy-mm-dd\"`.\nRenderers project a subset of spreadsheet number formats to label text."
2846
+ },
2833
2847
  OverlapPct: {
2834
2848
  type: "number",
2835
2849
  description: "Overlap of adjacent bars within a category in `<c:overlap val=\"N\"/>`\npercent (-100..100). Negative pulls bars apart, positive overlaps.\nDefaults to 0 (clustered) / 100 (stacked)."
@@ -7685,41 +7699,12 @@ const generatedTools = {
7685
7699
  properties: {
7686
7700
  min: { type: "number" },
7687
7701
  max: { type: "number" },
7688
- majorUnit: {
7689
- type: "number",
7690
- description: "Major tick spacing (`<c:majorUnit val=\"N\"/>`)."
7691
- },
7692
- minorUnit: {
7693
- type: "number",
7694
- description: "Minor tick spacing (`<c:minorUnit val=\"N\"/>`)."
7695
- },
7696
- numberFormat: {
7697
- type: "string",
7698
- description: "Number-format code from `<c:numFmt formatCode=\"…\"/>`. Common\nvalues: `\"0%\"`, `\"0.0%\"`, `\"#,##0\"`, `\"$#,##0\"`, `\"yyyy-mm-dd\"`.\nRenderers project a subset of spreadsheet number formats to label text."
7699
- },
7700
- logBase: {
7701
- type: "number",
7702
- description: "Logarithmic base for the axis from `<c:scaling><c:logBase val=\"N\"/>`.\nTypical values are `2`, `10`, `Math.E`. When set, the renderer\nprojects values through `Math.log(v) / Math.log(logBase)` before\nmapping to plot coordinates. Linear when omitted."
7703
- },
7704
- displayUnits: {
7705
- type: "string",
7706
- enum: [
7707
- "hundreds",
7708
- "thousands",
7709
- "tenThousands",
7710
- "hundredThousands",
7711
- "millions",
7712
- "tenMillions",
7713
- "hundredMillions",
7714
- "billions",
7715
- "trillions"
7716
- ],
7717
- description: "Authored display-units scale from `<c:dispUnits><c:builtInUnit val=\"…\"/>`.\nToken values map to divisors:\n\n - `'hundreds'` (100), `'thousands'` (1e3), `'tenThousands'` (1e4),\n `'hundredThousands'` (1e5), `'millions'` (1e6),\n `'tenMillions'` (1e7), `'hundredMillions'` (1e8),\n `'billions'` (1e9), `'trillions'` (1e12)\n\nRenderers divide axis labels by the divisor and may append a unit\nsuffix (\"K\", \"M\", \"B\") for readability."
7718
- },
7719
- displayUnitsLabel: {
7720
- type: "boolean",
7721
- description: "Show the display-units caption next to the axis (\"Thousands\",\n\"Millions\", …) — an empty `<c:dispUnitsLbl/>` under `<c:dispUnits>`.\nOnly meaningful together with `displayUnits`."
7722
- }
7702
+ majorUnit: { $ref: "#/$defs/MajorUnit" },
7703
+ minorUnit: { $ref: "#/$defs/MinorUnit" },
7704
+ numberFormat: { $ref: "#/$defs/NumberFormat" },
7705
+ logBase: { $ref: "#/$defs/LogBase" },
7706
+ displayUnits: { $ref: "#/$defs/DisplayUnits" },
7707
+ displayUnitsLabel: { $ref: "#/$defs/DisplayUnitsLabel" }
7723
7708
  },
7724
7709
  additionalProperties: false
7725
7710
  },
@@ -7978,7 +7963,15 @@ const generatedTools = {
7978
7963
  crossBetween: {
7979
7964
  type: "string",
7980
7965
  enum: ["between", "midCat"]
7981
- }
7966
+ },
7967
+ min: { type: "number" },
7968
+ max: { type: "number" },
7969
+ majorUnit: { $ref: "#/$defs/MajorUnit" },
7970
+ minorUnit: { $ref: "#/$defs/MinorUnit" },
7971
+ numberFormat: { $ref: "#/$defs/NumberFormat" },
7972
+ logBase: { $ref: "#/$defs/LogBase" },
7973
+ displayUnits: { $ref: "#/$defs/DisplayUnits" },
7974
+ displayUnitsLabel: { $ref: "#/$defs/DisplayUnitsLabel" }
7982
7975
  },
7983
7976
  additionalProperties: false
7984
7977
  },
@@ -8215,6 +8208,25 @@ const generatedTools = {
8215
8208
  ],
8216
8209
  description: "`<c:dispBlanksAs val=\"…\"/>` — how line / area renderers should\ntreat `null` values in series:\n\n - `'gap'` — leave a gap (the default)\n - `'zero'` — substitute zero\n - `'span'` — connect the surrounding points across the gap"
8217
8210
  },
8211
+ DisplayUnits: {
8212
+ type: "string",
8213
+ enum: [
8214
+ "hundreds",
8215
+ "thousands",
8216
+ "tenThousands",
8217
+ "hundredThousands",
8218
+ "millions",
8219
+ "tenMillions",
8220
+ "hundredMillions",
8221
+ "billions",
8222
+ "trillions"
8223
+ ],
8224
+ description: "Authored display-units scale from `<c:dispUnits><c:builtInUnit val=\"…\"/>`.\nToken values map to divisors:\n\n - `'hundreds'` (100), `'thousands'` (1e3), `'tenThousands'` (1e4),\n `'hundredThousands'` (1e5), `'millions'` (1e6),\n `'tenMillions'` (1e7), `'hundredMillions'` (1e8),\n `'billions'` (1e9), `'trillions'` (1e12)\n\nRenderers divide axis labels by the divisor and may append a unit\nsuffix (\"K\", \"M\", \"B\") for readability."
8225
+ },
8226
+ DisplayUnitsLabel: {
8227
+ type: "boolean",
8228
+ description: "Show the display-units caption next to the axis (\"Thousands\",\n\"Millions\", …) — an empty `<c:dispUnitsLbl/>` under `<c:dispUnits>`.\nOnly meaningful together with `displayUnits`."
8229
+ },
8218
8230
  DropLines: {
8219
8231
  type: "boolean",
8220
8232
  description: "Drop lines (`<c:dropLines>`) — vertical guide lines from each data\npoint down to the value axis. Common on line / area charts."
@@ -8306,6 +8318,14 @@ const generatedTools = {
8306
8318
  type: "number",
8307
8319
  description: "Optional line stroke width in EMU (`<c:ser><c:spPr><a:ln w=\"…\"/>`).\nOnly meaningful for line / area / scatter series. Default falls\nback to the renderer's own pick."
8308
8320
  },
8321
+ LogBase: {
8322
+ type: "number",
8323
+ description: "Logarithmic base for the axis from `<c:scaling><c:logBase val=\"N\"/>`.\nTypical values are `2`, `10`, `Math.E`. When set, the renderer\nprojects values through `Math.log(v) / Math.log(logBase)` before\nmapping to plot coordinates. Linear when omitted."
8324
+ },
8325
+ MajorUnit: {
8326
+ type: "number",
8327
+ description: "Major tick spacing (`<c:majorUnit val=\"N\"/>`)."
8328
+ },
8309
8329
  MarkerColor: {
8310
8330
  type: "string",
8311
8331
  description: "Optional marker fill + outline color (`<c:marker><c:spPr>`), as an sRGB\nhex. Defaults to `color`. The builder always writes it for line /\nscatter / radar series, because the reference desktop app paints a marker without\n`<c:spPr>` in the theme's automatic color instead of the series color."
@@ -8336,10 +8356,18 @@ const generatedTools = {
8336
8356
  }],
8337
8357
  description: "Optional marker style for line / scatter series (`<c:ser><c:marker>`).\n`none` hides the markers; the others render the matching glyph at\neach data point. Defaults to `auto`, which renderers map to a small\nfilled circle."
8338
8358
  },
8359
+ MinorUnit: {
8360
+ type: "number",
8361
+ description: "Minor tick spacing (`<c:minorUnit val=\"N\"/>`)."
8362
+ },
8339
8363
  Name: {
8340
8364
  type: "string",
8341
8365
  description: "Series label rendered in the legend."
8342
8366
  },
8367
+ NumberFormat: {
8368
+ type: "string",
8369
+ description: "Number-format code from `<c:numFmt formatCode=\"…\"/>`. Common\nvalues: `\"0%\"`, `\"0.0%\"`, `\"#,##0\"`, `\"$#,##0\"`, `\"yyyy-mm-dd\"`.\nRenderers project a subset of spreadsheet number formats to label text."
8370
+ },
8343
8371
  OverlapPct: {
8344
8372
  type: "number",
8345
8373
  description: "Overlap of adjacent bars within a category in `<c:overlap val=\"N\"/>`\npercent (-100..100). Negative pulls bars apart, positive overlaps.\nDefaults to 0 (clustered) / 100 (stacked)."
@@ -13029,7 +13057,7 @@ const generatedTools = {
13029
13057
  properties: {
13030
13058
  text: {
13031
13059
  type: "string",
13032
- description: "Run text, written verbatim — unlike `setShapeText`, newlines are not\nsplit into paragraphs (the reference desktop app shows a CR LF inside a run as a line\nbreak, which some exporters rely on)."
13060
+ description: "Run text. Unlike `setShapeText`, a newline (`\\n` or `\\r\\n`) does not\nstart a paragraph: it is written as a line break (`<a:br>`) between runs of\nthe same format, since a raw newline inside `<a:t>` reads as a paragraph\nbreak in some apps and as a line break in others."
13033
13061
  },
13034
13062
  format: { $ref: "#/$defs/TextFormat" }
13035
13063
  },
@@ -20622,7 +20650,7 @@ const generatedTools = {
20622
20650
  properties: {
20623
20651
  text: {
20624
20652
  type: "string",
20625
- description: "Run text, written verbatim — unlike `setShapeText`, newlines are not\nsplit into paragraphs (the reference desktop app shows a CR LF inside a run as a line\nbreak, which some exporters rely on)."
20653
+ description: "Run text. Unlike `setShapeText`, a newline (`\\n` or `\\r\\n`) does not\nstart a paragraph: it is written as a line break (`<a:br>`) between runs of\nthe same format, since a raw newline inside `<a:t>` reads as a paragraph\nbreak in some apps and as a line break in others."
20626
20654
  },
20627
20655
  format: { $ref: "#/$defs/TextFormat" }
20628
20656
  },
@@ -23455,4 +23483,4 @@ async function runTool(host, name, input) {
23455
23483
  //#endregion
23456
23484
  export { generatedTools as a, shapeSummary as i, runTool as n, schemaErrors as r, agent_tools_exports as t };
23457
23485
 
23458
- //# sourceMappingURL=agent-tools-EU7Eb-FV.js.map
23486
+ //# sourceMappingURL=agent-tools-BrFS9zmU.js.map