ooxml-core 1.38.1 → 1.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/dist/{PptxHandler-EB2WFF7F.mjs → PptxHandler-5V74C7YX.mjs} +2 -2
  2. package/dist/PptxHandler-JB5M4AMY.mjs +5 -0
  3. package/dist/PptxHandler-TKVOVKAA.cjs +14 -0
  4. package/dist/{PresentationBuilder-TS4MR6KG.cjs → PresentationBuilder-GT6TO6XV.cjs} +6 -6
  5. package/dist/{PresentationBuilder-T2B5PPZA.mjs → PresentationBuilder-YHK53TGI.mjs} +2 -2
  6. package/dist/{PresentationBuilder-VMUWJF2X.mjs → PresentationBuilder-ZJMNMZIO.mjs} +3 -3
  7. package/dist/automation/index.cjs +15 -9
  8. package/dist/automation/index.mjs +15 -9
  9. package/dist/{chunk-XFLXQUTC.mjs → chunk-4K3V66WE.mjs} +4 -4
  10. package/dist/{chunk-UOEYAYAH.mjs → chunk-5BVSDSJZ.mjs} +1 -1
  11. package/dist/{chunk-LWNNHK2S.mjs → chunk-6XAAJTA3.mjs} +15 -9
  12. package/dist/{chunk-JXNUXGX3.cjs → chunk-CEUG6BAS.cjs} +1271 -1268
  13. package/dist/{chunk-ZTX5YCSW.cjs → chunk-EXSPNK6W.cjs} +3 -3
  14. package/dist/{chunk-6XLWR7R6.mjs → chunk-I6XNVY5K.mjs} +19 -24
  15. package/dist/{chunk-U54ZCZKG.mjs → chunk-IW4ZVLRG.mjs} +1 -1
  16. package/dist/{chunk-7YOCVZRH.mjs → chunk-JAJ4HFKO.mjs} +7 -4
  17. package/dist/{chunk-SN5R5YNF.mjs → chunk-RZ2FENDK.mjs} +6 -3
  18. package/dist/{chunk-WF4USSCT.cjs → chunk-SEGPDD5W.cjs} +15 -9
  19. package/dist/{chunk-RDMUNMGT.mjs → chunk-X6O3L76X.mjs} +1 -1
  20. package/dist/collab/index.cjs +99 -0
  21. package/dist/collab/index.d.ts +1 -0
  22. package/dist/collab/index.d.ts.map +1 -1
  23. package/dist/collab/index.mjs +90 -1
  24. package/dist/collab/share.d.ts +66 -0
  25. package/dist/collab/share.d.ts.map +1 -0
  26. package/dist/color/index.cjs +31 -0
  27. package/dist/color/index.d.ts +1 -0
  28. package/dist/color/index.d.ts.map +1 -1
  29. package/dist/color/index.mjs +31 -1
  30. package/dist/color/straight-alpha-stops.d.ts +23 -0
  31. package/dist/color/straight-alpha-stops.d.ts.map +1 -0
  32. package/dist/diagram/index.cjs +15 -9
  33. package/dist/diagram/index.mjs +15 -9
  34. package/dist/docx/embedded.cjs +15 -9
  35. package/dist/docx/embedded.mjs +15 -9
  36. package/dist/docx/index.cjs +15 -9
  37. package/dist/docx/index.mjs +15 -9
  38. package/dist/docx/layout/index.cjs +15 -9
  39. package/dist/docx/layout/index.mjs +15 -9
  40. package/dist/docx/load/index.cjs +15 -9
  41. package/dist/docx/load/index.mjs +15 -9
  42. package/dist/docx/ui/index.cjs +15 -9
  43. package/dist/docx/ui/index.mjs +15 -9
  44. package/dist/embedding/cloud-files.d.ts +97 -0
  45. package/dist/embedding/cloud-files.d.ts.map +1 -0
  46. package/dist/embedding/index.cjs +7 -0
  47. package/dist/embedding/index.d.ts +1 -0
  48. package/dist/embedding/index.d.ts.map +1 -1
  49. package/dist/embedding/index.mjs +7 -1
  50. package/dist/embedding/onedrive/browse.d.ts +15 -0
  51. package/dist/embedding/onedrive/browse.d.ts.map +1 -0
  52. package/dist/embedding/onedrive/client.d.ts.map +1 -1
  53. package/dist/embedding/onedrive/index.cjs +364 -95
  54. package/dist/embedding/onedrive/index.d.ts +4 -1
  55. package/dist/embedding/onedrive/index.d.ts.map +1 -1
  56. package/dist/embedding/onedrive/index.mjs +363 -96
  57. package/dist/embedding/onedrive/provider.d.ts +27 -0
  58. package/dist/embedding/onedrive/provider.d.ts.map +1 -0
  59. package/dist/embedding/onedrive/requests.d.ts +6 -2
  60. package/dist/embedding/onedrive/requests.d.ts.map +1 -1
  61. package/dist/embedding/onedrive/transport.d.ts +2 -0
  62. package/dist/embedding/onedrive/transport.d.ts.map +1 -1
  63. package/dist/embedding/onedrive/types.d.ts +26 -2
  64. package/dist/embedding/onedrive/types.d.ts.map +1 -1
  65. package/dist/embedding/onedrive/upload.d.ts.map +1 -1
  66. package/dist/embedding/storage.d.ts +2 -2
  67. package/dist/embedding/storage.d.ts.map +1 -1
  68. package/dist/geometry/index.cjs +15 -9
  69. package/dist/geometry/index.mjs +15 -9
  70. package/dist/geometry/preset-shape-definitions-table.d.ts.map +1 -1
  71. package/dist/index.cjs +86 -18
  72. package/dist/index.mjs +85 -17
  73. package/dist/opc/diff-packages.d.ts +16 -0
  74. package/dist/opc/diff-packages.d.ts.map +1 -0
  75. package/dist/opc/index.cjs +27 -3
  76. package/dist/opc/index.d.ts +1 -0
  77. package/dist/opc/index.d.ts.map +1 -1
  78. package/dist/opc/index.mjs +26 -3
  79. package/dist/pptx/automation/index.cjs +32 -11
  80. package/dist/pptx/automation/index.d.ts +1 -1
  81. package/dist/pptx/automation/index.mjs +5 -5
  82. package/dist/pptx/chunks/index-B4ofjG6_.d.ts.map +1 -1
  83. package/dist/pptx/chunks/{index-uDL5LUSK.d.ts → index-CYukxWbl.d.ts} +7 -5
  84. package/dist/pptx/chunks/{index-uDL5LUSK.d.ts.map → index-CYukxWbl.d.ts.map} +1 -1
  85. package/dist/pptx/cli/index.cjs +32 -11
  86. package/dist/pptx/cli/index.mjs +4 -4
  87. package/dist/pptx/converter/index.cjs +22 -9
  88. package/dist/pptx/converter/index.mjs +2 -2
  89. package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
  90. package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
  91. package/dist/pptx/editor/render/find-replace.cjs +15 -15
  92. package/dist/pptx/editor/render/find-replace.d.ts +1 -1
  93. package/dist/pptx/editor/render/find-replace.mjs +2 -2
  94. package/dist/pptx/editor/render/slide-operations.cjs +9 -9
  95. package/dist/pptx/editor/render/slide-operations.mjs +3 -3
  96. package/dist/pptx/index.cjs +35 -25
  97. package/dist/pptx/index.d.ts +1 -1
  98. package/dist/pptx/index.mjs +5 -5
  99. package/dist/teams/index.cjs +30 -12
  100. package/dist/teams/index.mjs +29 -11
  101. package/dist/visio/ui/contract.d.ts +9 -2
  102. package/dist/visio/ui/contract.d.ts.map +1 -1
  103. package/dist/visio/ui/index.cjs +1 -0
  104. package/dist/visio/ui/index.mjs +1 -0
  105. package/dist/xlsx/collab/index.cjs +15 -9
  106. package/dist/xlsx/collab/index.mjs +15 -9
  107. package/dist/xlsx/index.cjs +15 -9
  108. package/dist/xlsx/index.mjs +15 -9
  109. package/dist/xlsx/load/index.cjs +15 -9
  110. package/dist/xlsx/load/index.mjs +15 -9
  111. package/dist/xlsx/ui/index.cjs +240 -9
  112. package/dist/xlsx/ui/index.mjs +240 -9
  113. package/dist/xlsx/ui/locales/de/cloud.d.ts +2 -0
  114. package/dist/xlsx/ui/locales/de/cloud.d.ts.map +1 -0
  115. package/dist/xlsx/ui/locales/de/collab.d.ts.map +1 -1
  116. package/dist/xlsx/ui/locales/de/index.d.ts.map +1 -1
  117. package/dist/xlsx/ui/locales/de/shell.d.ts.map +1 -1
  118. package/dist/xlsx/ui/locales/en/cloud.d.ts +2 -0
  119. package/dist/xlsx/ui/locales/en/cloud.d.ts.map +1 -0
  120. package/dist/xlsx/ui/locales/en/collab.d.ts.map +1 -1
  121. package/dist/xlsx/ui/locales/en/index.d.ts.map +1 -1
  122. package/dist/xlsx/ui/locales/en/shell.d.ts.map +1 -1
  123. package/dist/xlsx/ui/locales/es/cloud.d.ts +2 -0
  124. package/dist/xlsx/ui/locales/es/cloud.d.ts.map +1 -0
  125. package/dist/xlsx/ui/locales/es/collab.d.ts.map +1 -1
  126. package/dist/xlsx/ui/locales/es/index.d.ts.map +1 -1
  127. package/dist/xlsx/ui/locales/es/shell.d.ts.map +1 -1
  128. package/dist/xlsx/ui/locales/fr/cloud.d.ts +2 -0
  129. package/dist/xlsx/ui/locales/fr/cloud.d.ts.map +1 -0
  130. package/dist/xlsx/ui/locales/fr/collab.d.ts.map +1 -1
  131. package/dist/xlsx/ui/locales/fr/index.d.ts.map +1 -1
  132. package/dist/xlsx/ui/locales/fr/shell.d.ts.map +1 -1
  133. package/dist/xlsx/ui/locales/zh-CN/cloud.d.ts +2 -0
  134. package/dist/xlsx/ui/locales/zh-CN/cloud.d.ts.map +1 -0
  135. package/dist/xlsx/ui/locales/zh-CN/collab.d.ts.map +1 -1
  136. package/dist/xlsx/ui/locales/zh-CN/index.d.ts.map +1 -1
  137. package/dist/xlsx/ui/locales/zh-CN/shell.d.ts.map +1 -1
  138. package/package.json +2 -2
  139. package/dist/PptxHandler-GOCSIX7N.cjs +0 -14
  140. package/dist/PptxHandler-IAKU53YW.mjs +0 -5
@@ -1,5 +1,5 @@
1
- export { PptxHandler } from './chunk-SN5R5YNF.mjs';
2
- import './chunk-6XLWR7R6.mjs';
1
+ export { PptxHandler } from './chunk-RZ2FENDK.mjs';
2
+ import './chunk-I6XNVY5K.mjs';
3
3
  import './chunk-EYCM7RVL.mjs';
4
4
  import './chunk-2N7RZQLC.mjs';
5
5
  import './chunk-VDUNZTJC.mjs';
@@ -0,0 +1,5 @@
1
+ export { PptxHandler } from './chunk-JAJ4HFKO.mjs';
2
+ import './chunk-5BVSDSJZ.mjs';
3
+ import './chunk-6XAAJTA3.mjs';
4
+ import './chunk-GXHKNSZX.mjs';
5
+ import './chunk-CA7KCNL3.mjs';
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var chunkCEUG6BAS_cjs = require('./chunk-CEUG6BAS.cjs');
4
+ require('./chunk-EXSPNK6W.cjs');
5
+ require('./chunk-SEGPDD5W.cjs');
6
+ require('./chunk-XZPZHXV4.cjs');
7
+ require('./chunk-5W2QL4SB.cjs');
8
+
9
+
10
+
11
+ Object.defineProperty(exports, "PptxHandler", {
12
+ enumerable: true,
13
+ get: function () { return chunkCEUG6BAS_cjs.PptxHandler; }
14
+ });
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkJXNUXGX3_cjs = require('./chunk-JXNUXGX3.cjs');
4
- require('./chunk-ZTX5YCSW.cjs');
5
- require('./chunk-WF4USSCT.cjs');
3
+ var chunkCEUG6BAS_cjs = require('./chunk-CEUG6BAS.cjs');
4
+ require('./chunk-EXSPNK6W.cjs');
5
+ require('./chunk-SEGPDD5W.cjs');
6
6
  require('./chunk-XZPZHXV4.cjs');
7
7
  require('./chunk-5W2QL4SB.cjs');
8
8
 
@@ -10,13 +10,13 @@ require('./chunk-5W2QL4SB.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "PresentationBuilder", {
12
12
  enumerable: true,
13
- get: function () { return chunkJXNUXGX3_cjs.PresentationBuilder; }
13
+ get: function () { return chunkCEUG6BAS_cjs.PresentationBuilder; }
14
14
  });
15
15
  Object.defineProperty(exports, "STANDARD_LAYOUTS", {
16
16
  enumerable: true,
17
- get: function () { return chunkJXNUXGX3_cjs.STANDARD_LAYOUTS; }
17
+ get: function () { return chunkCEUG6BAS_cjs.STANDARD_LAYOUTS; }
18
18
  });
19
19
  Object.defineProperty(exports, "buildBlankPresentationArchive", {
20
20
  enumerable: true,
21
- get: function () { return chunkJXNUXGX3_cjs.buildBlankPresentationArchive; }
21
+ get: function () { return chunkCEUG6BAS_cjs.buildBlankPresentationArchive; }
22
22
  });
@@ -1,5 +1,5 @@
1
- export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-SN5R5YNF.mjs';
2
- import './chunk-6XLWR7R6.mjs';
1
+ export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-RZ2FENDK.mjs';
2
+ import './chunk-I6XNVY5K.mjs';
3
3
  import './chunk-EYCM7RVL.mjs';
4
4
  import './chunk-2N7RZQLC.mjs';
5
5
  import './chunk-VDUNZTJC.mjs';
@@ -1,5 +1,5 @@
1
- export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-7YOCVZRH.mjs';
2
- import './chunk-UOEYAYAH.mjs';
3
- import './chunk-LWNNHK2S.mjs';
1
+ export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-JAJ4HFKO.mjs';
2
+ import './chunk-5BVSDSJZ.mjs';
3
+ import './chunk-6XAAJTA3.mjs';
4
4
  import './chunk-GXHKNSZX.mjs';
5
5
  import './chunk-CA7KCNL3.mjs';
@@ -15148,16 +15148,22 @@ var pentagon = {
15148
15148
  gd16("vf", "val 110557"),
15149
15149
  gd16("swd2", "*/ wd2 hf 100000"),
15150
15150
  gd16("shd2", "*/ hd2 vf 100000"),
15151
+ // The vertices sit on an ellipse centred `svc` (below `vc` by `vf`), as
15152
+ // ECMA-376 writes it: the side pair `sin(18deg) * shd2` above it, the
15153
+ // bottom pair `sin(54deg) * shd2` below (on `b`). The old guides put the
15154
+ // side pair BELOW `vc` (at 67% of the height where PowerPoint 16 paints
15155
+ // 38%), which squashed every pentagon into a house shape.
15156
+ gd16("svc", "*/ vc vf 100000"),
15151
15157
  gd16("dx1", "*/ swd2 95106 100000"),
15152
15158
  gd16("dx2", "*/ swd2 58779 100000"),
15153
- gd16("dy1", "*/ shd2 80902 100000"),
15154
- gd16("dy2", "*/ shd2 30902 100000"),
15159
+ gd16("dy1", "*/ shd2 30902 100000"),
15160
+ gd16("dy2", "*/ shd2 80902 100000"),
15155
15161
  gd16("x1", "+- hc 0 dx1"),
15156
15162
  gd16("x2", "+- hc 0 dx2"),
15157
15163
  gd16("x3", "+- hc dx2 0"),
15158
15164
  gd16("x4", "+- hc dx1 0"),
15159
- gd16("y1", "+- vc 0 dy1"),
15160
- gd16("y2", "+- vc dy2 0"),
15165
+ gd16("y1", "+- svc 0 dy1"),
15166
+ gd16("y2", "+- svc dy2 0"),
15161
15167
  // The old `ir`/`ib` ("*/ y2 dx1 dy1") evaluates to ~150 at 200x100 (over
15162
15168
  // the box height of 100), so `ib = b - ir` went NEGATIVE - the pentagon's
15163
15169
  // text rect was flipped inside-out. COM-measured at 200x100pt instead:
@@ -15174,11 +15180,11 @@ var pentagon = {
15174
15180
  pathLst: [
15175
15181
  {
15176
15182
  commands: [
15177
- { kind: "moveTo", x: "hc", y: "t" },
15178
- { kind: "lnTo", x: "x4", y: "y2" },
15179
- { kind: "lnTo", x: "x3", y: "b" },
15180
- { kind: "lnTo", x: "x2", y: "b" },
15181
- { kind: "lnTo", x: "x1", y: "y2" },
15183
+ { kind: "moveTo", x: "x1", y: "y1" },
15184
+ { kind: "lnTo", x: "hc", y: "t" },
15185
+ { kind: "lnTo", x: "x4", y: "y1" },
15186
+ { kind: "lnTo", x: "x3", y: "y2" },
15187
+ { kind: "lnTo", x: "x2", y: "y2" },
15182
15188
  { kind: "close" }
15183
15189
  ]
15184
15190
  }
@@ -15123,16 +15123,22 @@ var pentagon = {
15123
15123
  gd16("vf", "val 110557"),
15124
15124
  gd16("swd2", "*/ wd2 hf 100000"),
15125
15125
  gd16("shd2", "*/ hd2 vf 100000"),
15126
+ // The vertices sit on an ellipse centred `svc` (below `vc` by `vf`), as
15127
+ // ECMA-376 writes it: the side pair `sin(18deg) * shd2` above it, the
15128
+ // bottom pair `sin(54deg) * shd2` below (on `b`). The old guides put the
15129
+ // side pair BELOW `vc` (at 67% of the height where PowerPoint 16 paints
15130
+ // 38%), which squashed every pentagon into a house shape.
15131
+ gd16("svc", "*/ vc vf 100000"),
15126
15132
  gd16("dx1", "*/ swd2 95106 100000"),
15127
15133
  gd16("dx2", "*/ swd2 58779 100000"),
15128
- gd16("dy1", "*/ shd2 80902 100000"),
15129
- gd16("dy2", "*/ shd2 30902 100000"),
15134
+ gd16("dy1", "*/ shd2 30902 100000"),
15135
+ gd16("dy2", "*/ shd2 80902 100000"),
15130
15136
  gd16("x1", "+- hc 0 dx1"),
15131
15137
  gd16("x2", "+- hc 0 dx2"),
15132
15138
  gd16("x3", "+- hc dx2 0"),
15133
15139
  gd16("x4", "+- hc dx1 0"),
15134
- gd16("y1", "+- vc 0 dy1"),
15135
- gd16("y2", "+- vc dy2 0"),
15140
+ gd16("y1", "+- svc 0 dy1"),
15141
+ gd16("y2", "+- svc dy2 0"),
15136
15142
  // The old `ir`/`ib` ("*/ y2 dx1 dy1") evaluates to ~150 at 200x100 (over
15137
15143
  // the box height of 100), so `ib = b - ir` went NEGATIVE - the pentagon's
15138
15144
  // text rect was flipped inside-out. COM-measured at 200x100pt instead:
@@ -15149,11 +15155,11 @@ var pentagon = {
15149
15155
  pathLst: [
15150
15156
  {
15151
15157
  commands: [
15152
- { kind: "moveTo", x: "hc", y: "t" },
15153
- { kind: "lnTo", x: "x4", y: "y2" },
15154
- { kind: "lnTo", x: "x3", y: "b" },
15155
- { kind: "lnTo", x: "x2", y: "b" },
15156
- { kind: "lnTo", x: "x1", y: "y2" },
15158
+ { kind: "moveTo", x: "x1", y: "y1" },
15159
+ { kind: "lnTo", x: "hc", y: "t" },
15160
+ { kind: "lnTo", x: "x4", y: "y1" },
15161
+ { kind: "lnTo", x: "x3", y: "y2" },
15162
+ { kind: "lnTo", x: "x2", y: "y2" },
15157
15163
  { kind: "close" }
15158
15164
  ]
15159
15165
  }
@@ -1,6 +1,6 @@
1
- import { findText, replaceText, replaceTextInSlide, mergePresentation } from './chunk-RDMUNMGT.mjs';
2
- import { PresentationBuilder, PptxHandler, SlideBuilder, validateSeriesIndex, removeEmptyDataPoint, ensureDataPoint, ensureChartData, assertChartGradientSupported, toChartGradientFill, chartFormatTargetKey, readChartElementFormat, hasGradientField, applyGradient, mirrorFlatFields, mirrorTextColor, withSeries, applyChartGroupOptionsInput, countExistingLayouts, addLayoutToSlideMaster, addLayoutContentType, createLayout, STANDARD_LAYOUTS, generateLayoutXml, layoutRelsXml, createTextElement, createShapeElement, createImageElement, createTableElement, createChartElement, createConnectorElement, createMediaElement, createGroupElement, clonePartGraph, buildBlankPresentationArchive, FILL_CHOICE_ELEMENTS, relativePartTarget, PptxXmlBuilder } from './chunk-SN5R5YNF.mjs';
3
- import { SP_PR_ORDER, EMU_PER_PIXEL, EMU_PER_INCH, parseXml, first, relationshipsPartFor, parseRelationships, resolvePartPath, elements, buildXml, buildRelationshipsXml, bytesToBase64, base64ToBytes, LN_CHILD_ORDER, BLIP_FILL_ORDER, EFFECT_LST_ORDER, SHAPE_STYLE_ORDER, TC_PR_BORDERS_ORDER, hasTextProperties, nextRelationshipId, escAttr, NS } from './chunk-6XLWR7R6.mjs';
1
+ import { findText, replaceText, replaceTextInSlide, mergePresentation } from './chunk-X6O3L76X.mjs';
2
+ import { PresentationBuilder, PptxHandler, SlideBuilder, validateSeriesIndex, removeEmptyDataPoint, ensureDataPoint, ensureChartData, assertChartGradientSupported, toChartGradientFill, chartFormatTargetKey, readChartElementFormat, hasGradientField, applyGradient, mirrorFlatFields, mirrorTextColor, withSeries, applyChartGroupOptionsInput, countExistingLayouts, addLayoutToSlideMaster, addLayoutContentType, createLayout, STANDARD_LAYOUTS, generateLayoutXml, layoutRelsXml, createTextElement, createShapeElement, createImageElement, createTableElement, createChartElement, createConnectorElement, createMediaElement, createGroupElement, clonePartGraph, buildBlankPresentationArchive, FILL_CHOICE_ELEMENTS, relativePartTarget, PptxXmlBuilder } from './chunk-RZ2FENDK.mjs';
3
+ import { SP_PR_ORDER, EMU_PER_PIXEL, EMU_PER_INCH, parseXml, first, relationshipsPartFor, parseRelationships, resolvePartPath, elements, buildXml, buildRelationshipsXml, bytesToBase64, base64ToBytes, LN_CHILD_ORDER, BLIP_FILL_ORDER, EFFECT_LST_ORDER, SHAPE_STYLE_ORDER, TC_PR_BORDERS_ORDER, hasTextProperties, nextRelationshipId, escAttr, NS } from './chunk-I6XNVY5K.mjs';
4
4
  import { openPptxZip, openZip } from './chunk-EYCM7RVL.mjs';
5
5
  import { cloneSlide, cloneElement } from './chunk-VDUNZTJC.mjs';
6
6
 
@@ -15098,7 +15098,7 @@ async function setPresentationRunText(bytes, slideIndex, elementId, runIndex, te
15098
15098
  async function createPresentationFromOutline(slides, options = {}) {
15099
15099
  if (!(slides instanceof Array) || !slides.length || slides.length > 200)
15100
15100
  throw new Error("A presentation outline has 1 to 200 slides");
15101
- const { PresentationBuilder: PresentationBuilder2 } = await import('./PresentationBuilder-T2B5PPZA.mjs');
15101
+ const { PresentationBuilder: PresentationBuilder2 } = await import('./PresentationBuilder-YHK53TGI.mjs');
15102
15102
  const { handler, data, createSlide } = await PresentationBuilder2.create({
15103
15103
  ...options.title ? { title: options.title } : {}
15104
15104
  });
@@ -1,4 +1,4 @@
1
- import { xmlText } from './chunk-LWNNHK2S.mjs';
1
+ import { xmlText } from './chunk-6XAAJTA3.mjs';
2
2
  import { EMU_PER_PX } from './chunk-CA7KCNL3.mjs';
3
3
 
4
4
  // pptx/core/core/runtime/table-structural-helpers.ts
@@ -12854,16 +12854,22 @@ var pentagon = {
12854
12854
  gd16("vf", "val 110557"),
12855
12855
  gd16("swd2", "*/ wd2 hf 100000"),
12856
12856
  gd16("shd2", "*/ hd2 vf 100000"),
12857
+ // The vertices sit on an ellipse centred `svc` (below `vc` by `vf`), as
12858
+ // ECMA-376 writes it: the side pair `sin(18deg) * shd2` above it, the
12859
+ // bottom pair `sin(54deg) * shd2` below (on `b`). The old guides put the
12860
+ // side pair BELOW `vc` (at 67% of the height where PowerPoint 16 paints
12861
+ // 38%), which squashed every pentagon into a house shape.
12862
+ gd16("svc", "*/ vc vf 100000"),
12857
12863
  gd16("dx1", "*/ swd2 95106 100000"),
12858
12864
  gd16("dx2", "*/ swd2 58779 100000"),
12859
- gd16("dy1", "*/ shd2 80902 100000"),
12860
- gd16("dy2", "*/ shd2 30902 100000"),
12865
+ gd16("dy1", "*/ shd2 30902 100000"),
12866
+ gd16("dy2", "*/ shd2 80902 100000"),
12861
12867
  gd16("x1", "+- hc 0 dx1"),
12862
12868
  gd16("x2", "+- hc 0 dx2"),
12863
12869
  gd16("x3", "+- hc dx2 0"),
12864
12870
  gd16("x4", "+- hc dx1 0"),
12865
- gd16("y1", "+- vc 0 dy1"),
12866
- gd16("y2", "+- vc dy2 0"),
12871
+ gd16("y1", "+- svc 0 dy1"),
12872
+ gd16("y2", "+- svc dy2 0"),
12867
12873
  // The old `ir`/`ib` ("*/ y2 dx1 dy1") evaluates to ~150 at 200x100 (over
12868
12874
  // the box height of 100), so `ib = b - ir` went NEGATIVE - the pentagon's
12869
12875
  // text rect was flipped inside-out. COM-measured at 200x100pt instead:
@@ -12880,11 +12886,11 @@ var pentagon = {
12880
12886
  pathLst: [
12881
12887
  {
12882
12888
  commands: [
12883
- { kind: "moveTo", x: "hc", y: "t" },
12884
- { kind: "lnTo", x: "x4", y: "y2" },
12885
- { kind: "lnTo", x: "x3", y: "b" },
12886
- { kind: "lnTo", x: "x2", y: "b" },
12887
- { kind: "lnTo", x: "x1", y: "y2" },
12889
+ { kind: "moveTo", x: "x1", y: "y1" },
12890
+ { kind: "lnTo", x: "hc", y: "t" },
12891
+ { kind: "lnTo", x: "x4", y: "y1" },
12892
+ { kind: "lnTo", x: "x3", y: "y2" },
12893
+ { kind: "lnTo", x: "x2", y: "y2" },
12888
12894
  { kind: "close" }
12889
12895
  ]
12890
12896
  }