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.
- package/dist/{PptxHandler-EB2WFF7F.mjs → PptxHandler-5V74C7YX.mjs} +2 -2
- package/dist/PptxHandler-JB5M4AMY.mjs +5 -0
- package/dist/PptxHandler-TKVOVKAA.cjs +14 -0
- package/dist/{PresentationBuilder-TS4MR6KG.cjs → PresentationBuilder-GT6TO6XV.cjs} +6 -6
- package/dist/{PresentationBuilder-T2B5PPZA.mjs → PresentationBuilder-YHK53TGI.mjs} +2 -2
- package/dist/{PresentationBuilder-VMUWJF2X.mjs → PresentationBuilder-ZJMNMZIO.mjs} +3 -3
- package/dist/automation/index.cjs +15 -9
- package/dist/automation/index.mjs +15 -9
- package/dist/{chunk-XFLXQUTC.mjs → chunk-4K3V66WE.mjs} +4 -4
- package/dist/{chunk-UOEYAYAH.mjs → chunk-5BVSDSJZ.mjs} +1 -1
- package/dist/{chunk-LWNNHK2S.mjs → chunk-6XAAJTA3.mjs} +15 -9
- package/dist/{chunk-JXNUXGX3.cjs → chunk-CEUG6BAS.cjs} +1271 -1268
- package/dist/{chunk-ZTX5YCSW.cjs → chunk-EXSPNK6W.cjs} +3 -3
- package/dist/{chunk-6XLWR7R6.mjs → chunk-I6XNVY5K.mjs} +19 -24
- package/dist/{chunk-U54ZCZKG.mjs → chunk-IW4ZVLRG.mjs} +1 -1
- package/dist/{chunk-7YOCVZRH.mjs → chunk-JAJ4HFKO.mjs} +7 -4
- package/dist/{chunk-SN5R5YNF.mjs → chunk-RZ2FENDK.mjs} +6 -3
- package/dist/{chunk-WF4USSCT.cjs → chunk-SEGPDD5W.cjs} +15 -9
- package/dist/{chunk-RDMUNMGT.mjs → chunk-X6O3L76X.mjs} +1 -1
- package/dist/collab/index.cjs +99 -0
- package/dist/collab/index.d.ts +1 -0
- package/dist/collab/index.d.ts.map +1 -1
- package/dist/collab/index.mjs +90 -1
- package/dist/collab/share.d.ts +66 -0
- package/dist/collab/share.d.ts.map +1 -0
- package/dist/color/index.cjs +31 -0
- package/dist/color/index.d.ts +1 -0
- package/dist/color/index.d.ts.map +1 -1
- package/dist/color/index.mjs +31 -1
- package/dist/color/straight-alpha-stops.d.ts +23 -0
- package/dist/color/straight-alpha-stops.d.ts.map +1 -0
- package/dist/diagram/index.cjs +15 -9
- package/dist/diagram/index.mjs +15 -9
- package/dist/docx/embedded.cjs +15 -9
- package/dist/docx/embedded.mjs +15 -9
- package/dist/docx/index.cjs +15 -9
- package/dist/docx/index.mjs +15 -9
- package/dist/docx/layout/index.cjs +15 -9
- package/dist/docx/layout/index.mjs +15 -9
- package/dist/docx/load/index.cjs +15 -9
- package/dist/docx/load/index.mjs +15 -9
- package/dist/docx/ui/index.cjs +15 -9
- package/dist/docx/ui/index.mjs +15 -9
- package/dist/embedding/cloud-files.d.ts +97 -0
- package/dist/embedding/cloud-files.d.ts.map +1 -0
- package/dist/embedding/index.cjs +7 -0
- package/dist/embedding/index.d.ts +1 -0
- package/dist/embedding/index.d.ts.map +1 -1
- package/dist/embedding/index.mjs +7 -1
- package/dist/embedding/onedrive/browse.d.ts +15 -0
- package/dist/embedding/onedrive/browse.d.ts.map +1 -0
- package/dist/embedding/onedrive/client.d.ts.map +1 -1
- package/dist/embedding/onedrive/index.cjs +364 -95
- package/dist/embedding/onedrive/index.d.ts +4 -1
- package/dist/embedding/onedrive/index.d.ts.map +1 -1
- package/dist/embedding/onedrive/index.mjs +363 -96
- package/dist/embedding/onedrive/provider.d.ts +27 -0
- package/dist/embedding/onedrive/provider.d.ts.map +1 -0
- package/dist/embedding/onedrive/requests.d.ts +6 -2
- package/dist/embedding/onedrive/requests.d.ts.map +1 -1
- package/dist/embedding/onedrive/transport.d.ts +2 -0
- package/dist/embedding/onedrive/transport.d.ts.map +1 -1
- package/dist/embedding/onedrive/types.d.ts +26 -2
- package/dist/embedding/onedrive/types.d.ts.map +1 -1
- package/dist/embedding/onedrive/upload.d.ts.map +1 -1
- package/dist/embedding/storage.d.ts +2 -2
- package/dist/embedding/storage.d.ts.map +1 -1
- package/dist/geometry/index.cjs +15 -9
- package/dist/geometry/index.mjs +15 -9
- package/dist/geometry/preset-shape-definitions-table.d.ts.map +1 -1
- package/dist/index.cjs +86 -18
- package/dist/index.mjs +85 -17
- package/dist/opc/diff-packages.d.ts +16 -0
- package/dist/opc/diff-packages.d.ts.map +1 -0
- package/dist/opc/index.cjs +27 -3
- package/dist/opc/index.d.ts +1 -0
- package/dist/opc/index.d.ts.map +1 -1
- package/dist/opc/index.mjs +26 -3
- package/dist/pptx/automation/index.cjs +32 -11
- package/dist/pptx/automation/index.d.ts +1 -1
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/chunks/index-B4ofjG6_.d.ts.map +1 -1
- package/dist/pptx/chunks/{index-uDL5LUSK.d.ts → index-CYukxWbl.d.ts} +7 -5
- package/dist/pptx/chunks/{index-uDL5LUSK.d.ts.map → index-CYukxWbl.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +32 -11
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.cjs +22 -9
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +15 -15
- package/dist/pptx/editor/render/find-replace.d.ts +1 -1
- package/dist/pptx/editor/render/find-replace.mjs +2 -2
- package/dist/pptx/editor/render/slide-operations.cjs +9 -9
- package/dist/pptx/editor/render/slide-operations.mjs +3 -3
- package/dist/pptx/index.cjs +35 -25
- package/dist/pptx/index.d.ts +1 -1
- package/dist/pptx/index.mjs +5 -5
- package/dist/teams/index.cjs +30 -12
- package/dist/teams/index.mjs +29 -11
- package/dist/visio/ui/contract.d.ts +9 -2
- package/dist/visio/ui/contract.d.ts.map +1 -1
- package/dist/visio/ui/index.cjs +1 -0
- package/dist/visio/ui/index.mjs +1 -0
- package/dist/xlsx/collab/index.cjs +15 -9
- package/dist/xlsx/collab/index.mjs +15 -9
- package/dist/xlsx/index.cjs +15 -9
- package/dist/xlsx/index.mjs +15 -9
- package/dist/xlsx/load/index.cjs +15 -9
- package/dist/xlsx/load/index.mjs +15 -9
- package/dist/xlsx/ui/index.cjs +240 -9
- package/dist/xlsx/ui/index.mjs +240 -9
- package/dist/xlsx/ui/locales/de/cloud.d.ts +2 -0
- package/dist/xlsx/ui/locales/de/cloud.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/de/collab.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/de/index.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/de/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/en/cloud.d.ts +2 -0
- package/dist/xlsx/ui/locales/en/cloud.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/en/collab.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/en/index.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/en/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/es/cloud.d.ts +2 -0
- package/dist/xlsx/ui/locales/es/cloud.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/es/collab.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/es/index.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/es/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/fr/cloud.d.ts +2 -0
- package/dist/xlsx/ui/locales/fr/cloud.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/fr/collab.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/fr/index.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/fr/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/zh-CN/cloud.d.ts +2 -0
- package/dist/xlsx/ui/locales/zh-CN/cloud.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/zh-CN/collab.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/zh-CN/index.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/zh-CN/shell.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/PptxHandler-GOCSIX7N.cjs +0 -14
- package/dist/PptxHandler-IAKU53YW.mjs +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PptxHandler } from './chunk-
|
|
2
|
-
import './chunk-
|
|
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,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
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
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
|
|
13
|
+
get: function () { return chunkCEUG6BAS_cjs.PresentationBuilder; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "STANDARD_LAYOUTS", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkCEUG6BAS_cjs.STANDARD_LAYOUTS; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "buildBlankPresentationArchive", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkCEUG6BAS_cjs.buildBlankPresentationArchive; }
|
|
22
22
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-
|
|
2
|
-
import './chunk-
|
|
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-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
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
|
|
15154
|
-
gd16("dy2", "*/ shd2
|
|
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", "+-
|
|
15160
|
-
gd16("y2", "+-
|
|
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: "
|
|
15178
|
-
{ kind: "lnTo", x: "
|
|
15179
|
-
{ kind: "lnTo", x: "
|
|
15180
|
-
{ kind: "lnTo", x: "
|
|
15181
|
-
{ kind: "lnTo", x: "
|
|
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
|
|
15129
|
-
gd16("dy2", "*/ shd2
|
|
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", "+-
|
|
15135
|
-
gd16("y2", "+-
|
|
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: "
|
|
15153
|
-
{ kind: "lnTo", x: "
|
|
15154
|
-
{ kind: "lnTo", x: "
|
|
15155
|
-
{ kind: "lnTo", x: "
|
|
15156
|
-
{ kind: "lnTo", x: "
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
});
|
|
@@ -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
|
|
12860
|
-
gd16("dy2", "*/ shd2
|
|
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", "+-
|
|
12866
|
-
gd16("y2", "+-
|
|
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: "
|
|
12884
|
-
{ kind: "lnTo", x: "
|
|
12885
|
-
{ kind: "lnTo", x: "
|
|
12886
|
-
{ kind: "lnTo", x: "
|
|
12887
|
-
{ kind: "lnTo", x: "
|
|
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
|
}
|