@shbernal/ts-pptx 3.5.0 → 3.6.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 (65) hide show
  1. package/dist/{autopage-BYlTzX-l.js → autopage-DkjYZUFD.js} +3 -3
  2. package/dist/{autopage-BYlTzX-l.js.map → autopage-DkjYZUFD.js.map} +1 -1
  3. package/dist/browser.d.ts +5 -5
  4. package/dist/browser.js +4 -4
  5. package/dist/browser.js.map +1 -1
  6. package/dist/{diagnostics-BDuR8UkG.d.ts → diagnostics-Du_s75MT.d.ts} +20 -5
  7. package/dist/diagnostics-Du_s75MT.d.ts.map +1 -0
  8. package/dist/{errors-CgnueTYL.d.ts → errors-PflMPWBn.d.ts} +2 -2
  9. package/dist/{errors-CgnueTYL.d.ts.map → errors-PflMPWBn.d.ts.map} +1 -1
  10. package/dist/{fit-TjpNbMru.js → fit-BKs0zxMI.js} +3 -3
  11. package/dist/{fit-TjpNbMru.js.map → fit-BKs0zxMI.js.map} +1 -1
  12. package/dist/{html-dom-yUSdCExA.js → html-dom-B0I0QSbU.js} +4 -4
  13. package/dist/{html-dom-yUSdCExA.js.map → html-dom-B0I0QSbU.js.map} +1 -1
  14. package/dist/html.d.ts +3 -3
  15. package/dist/html.js +1 -1
  16. package/dist/index.d.ts +5 -5
  17. package/dist/index.js +3 -3
  18. package/dist/inspect.d.ts +1 -1
  19. package/dist/inspect.js +4 -5
  20. package/dist/inspect.js.map +1 -1
  21. package/dist/math.d.ts +1 -1
  22. package/dist/measure.d.ts +2 -2
  23. package/dist/measure.js +1 -1
  24. package/dist/{namespaces-CcKuzeuE.js → namespaces-BVnNu7sg.js} +74 -3
  25. package/dist/namespaces-BVnNu7sg.js.map +1 -0
  26. package/dist/node.d.ts +5 -5
  27. package/dist/node.js +3 -3
  28. package/dist/{notes-DNqAggXx.js → notes-RLCwdlTE.js} +289 -313
  29. package/dist/{notes-DNqAggXx.js.map → notes-RLCwdlTE.js.map} +1 -1
  30. package/dist/{pres-Dybf7ZUl.d.ts → pres-C5__xkDh.d.ts} +2 -2
  31. package/dist/{pres-Dybf7ZUl.d.ts.map → pres-C5__xkDh.d.ts.map} +1 -1
  32. package/dist/{presentation-VfJ_FT7E.js → presentation-Cp7vzlAw.js} +414 -515
  33. package/dist/presentation-Cp7vzlAw.js.map +1 -0
  34. package/dist/{presentation-types-CpkTx9Xa.d.ts → presentation-types-DP_8jog7.d.ts} +351 -274
  35. package/dist/presentation-types-DP_8jog7.d.ts.map +1 -0
  36. package/dist/read.d.ts +31 -48
  37. package/dist/read.d.ts.map +1 -1
  38. package/dist/read.js +3 -3
  39. package/dist/script.d.ts +2 -2
  40. package/dist/script.d.ts.map +1 -1
  41. package/dist/script.js +18 -47
  42. package/dist/script.js.map +1 -1
  43. package/dist/{shapes-Kt51vry6.js → shapes-BemroU-z.js} +625 -265
  44. package/dist/shapes-BemroU-z.js.map +1 -0
  45. package/dist/{slide-B_aInw3N.d.ts → slide-js0QpRV-.d.ts} +1278 -1254
  46. package/dist/slide-js0QpRV-.d.ts.map +1 -0
  47. package/dist/{text-D04NUMvA.js → text-CyetbF6p.js} +2039 -1417
  48. package/dist/text-CyetbF6p.js.map +1 -0
  49. package/dist/units-1kRzYShk.js +231 -0
  50. package/dist/units-1kRzYShk.js.map +1 -0
  51. package/dist/units-internal-Dg95w_YD.js +753 -0
  52. package/dist/units-internal-Dg95w_YD.js.map +1 -0
  53. package/dist/zip.d.ts +1 -1
  54. package/package.json +2 -1
  55. package/dist/diagnostics-BDuR8UkG.d.ts.map +0 -1
  56. package/dist/diagnostics-CPVADSL1.js +0 -90
  57. package/dist/diagnostics-CPVADSL1.js.map +0 -1
  58. package/dist/namespaces-CcKuzeuE.js.map +0 -1
  59. package/dist/presentation-VfJ_FT7E.js.map +0 -1
  60. package/dist/presentation-types-CpkTx9Xa.d.ts.map +0 -1
  61. package/dist/shapes-Kt51vry6.js.map +0 -1
  62. package/dist/slide-B_aInw3N.d.ts.map +0 -1
  63. package/dist/text-D04NUMvA.js.map +0 -1
  64. package/dist/units-internal-DNvK2I6o.js +0 -896
  65. package/dist/units-internal-DNvK2I6o.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { i as warnOnce, r as warn } from "./diagnostics-CPVADSL1.js";
1
+ import { S as warnOnce, a as FIXED_PCT_PER_PERCENT, i as EMU_PER_POINT, s as PERCENT_SCALE, t as ANGLE_UNITS_PER_DEGREE, v as ptToHundredths, x as warn } from "./units-1kRzYShk.js";
2
2
  import { n as InvalidOptionError, o as UnsupportedFeatureError } from "./errors-Bvln0H-7.js";
3
- import { B as XML_DECL, J as SchemeColor, L as REGEX_HEX_COLOR, O as DEF_TEXT_GLOW, R as SLDNUMFLDID, S as DEF_FONT_COLOR, a as inch2Emu, c as opacityToAlpha, ct as FIXED_PCT_PER_PERCENT, d as transparencyToAlpha, it as ANGLE_UNITS_PER_DEGREE, k as DEF_TEXT_SHADOW, l as ptsToEmuLenient, o as lineWidthToEmu, r as convertRotationDegrees, st as EMU_PER_POINT, ut as PERCENT_SCALE, xt as ptToHundredths } from "./units-internal-DNvK2I6o.js";
4
- import { l as OFFICE_REL, n as PML_ROOT_NS, u as PACKAGE_REL_NS } from "./namespaces-CcKuzeuE.js";
3
+ import { F as SLDNUMFLDID, G as SchemeColor, L as XML_DECL, O as DEF_TEXT_GLOW, P as REGEX_HEX_COLOR, S as DEF_FONT_COLOR, a as inch2Emu, c as opacityToAlpha, d as transparencyToAlpha, k as DEF_TEXT_SHADOW, l as ptsToEmuLenient, o as lineWidthToEmu, r as convertRotationDegrees } from "./units-internal-Dg95w_YD.js";
4
+ import { O as DEFAULT_COLOR_MAP, l as OFFICE_REL, n as PML_ROOT_NS, u as PACKAGE_REL_NS } from "./namespaces-BVnNu7sg.js";
5
5
  //#region src/gen/utils.ts
6
6
  /**
7
7
  * ts-pptx: shared generator helpers.
@@ -1273,207 +1273,16 @@ function genXmlNotesParagraphs(slide) {
1273
1273
  }))])).join("");
1274
1274
  }
1275
1275
  /**
1276
- * Generate XML for Notes Master (notesMaster1.xml)
1277
- * @returns {string} XML
1276
+ * The `p:spTree` wrapper a notes master and a notes slide both open with: the group's own
1277
+ * non-visual properties and an identity `a:xfrm`, followed by that part's placeholders.
1278
+ *
1279
+ * The two parts differ only in which placeholders they carry — the master has six (header, date,
1280
+ * thumbnail, body, footer, slide number), a notes slide has three — so everything around the
1281
+ * `children` argument was written out twice, `chOff`/`chExt` and all.
1282
+ * @param children - the placeholder shapes, already serialized, in document order
1278
1283
  */
1279
- function makeXmlNotesMaster() {
1280
- const xfrmOffExt = (x, y, cx, cy) => el("a:xfrm", null, [raw(voidEl("a:off", {
1281
- x,
1282
- y
1283
- })), raw(voidEl("a:ext", {
1284
- cx,
1285
- cy
1286
- }))]);
1287
- const prstGeomRect = el("a:prstGeom", { prst: "rect" }, raw(voidEl("a:avLst")));
1288
- const spLocks = (attrs) => el("p:cNvSpPr", null, raw(voidEl("a:spLocks", attrs)));
1289
- const nvPr = (phAttrs) => el("p:nvPr", null, raw(voidEl("p:ph", phAttrs)));
1290
- const bodyPr = (attrs) => voidEl("a:bodyPr", attrs);
1291
- const lstStyleLvl1 = (algn) => el("a:lstStyle", null, raw(el("a:lvl1pPr", { algn }, raw(voidEl("a:defRPr", { sz: 1200 })))));
1292
- const emptyPara = el("a:p", null, raw(voidEl("a:endParaRPr", { lang: "en-US" })));
1293
- const header = el("p:sp", null, [
1294
- raw(el("p:nvSpPr", null, [
1295
- raw(voidEl("p:cNvPr", {
1296
- id: 2,
1297
- name: "Header Placeholder 1"
1298
- })),
1299
- raw(spLocks({ noGrp: 1 })),
1300
- raw(nvPr({
1301
- type: "hdr",
1302
- sz: "quarter"
1303
- }))
1304
- ])),
1305
- raw(el("p:spPr", null, [raw(xfrmOffExt(0, 0, 2971800, 458788)), raw(prstGeomRect)])),
1306
- raw(el("p:txBody", null, [
1307
- raw(bodyPr({
1308
- vert: "horz",
1309
- lIns: 91440,
1310
- tIns: 45720,
1311
- rIns: 91440,
1312
- bIns: 45720,
1313
- rtlCol: 0
1314
- })),
1315
- raw(lstStyleLvl1("l")),
1316
- raw(emptyPara)
1317
- ]))
1318
- ]);
1319
- const date = el("p:sp", null, [
1320
- raw(el("p:nvSpPr", null, [
1321
- raw(voidEl("p:cNvPr", {
1322
- id: 3,
1323
- name: "Date Placeholder 2"
1324
- })),
1325
- raw(spLocks({ noGrp: 1 })),
1326
- raw(nvPr({
1327
- type: "dt",
1328
- idx: 1
1329
- }))
1330
- ])),
1331
- raw(el("p:spPr", null, [raw(xfrmOffExt(3884613, 0, 2971800, 458788)), raw(prstGeomRect)])),
1332
- raw(el("p:txBody", null, [
1333
- raw(bodyPr({
1334
- vert: "horz",
1335
- lIns: 91440,
1336
- tIns: 45720,
1337
- rIns: 91440,
1338
- bIns: 45720,
1339
- rtlCol: 0
1340
- })),
1341
- raw(lstStyleLvl1("r")),
1342
- raw(el("a:p", null, [raw(el("a:fld", {
1343
- id: "{5282F153-3F37-0F45-9E97-73ACFA13230C}",
1344
- type: "datetimeFigureOut"
1345
- }, [raw(voidEl("a:rPr", { lang: "en-US" })), raw(el("a:t", null, "7/23/19"))])), raw(voidEl("a:endParaRPr", { lang: "en-US" }))]))
1346
- ]))
1347
- ]);
1348
- const slideImg = el("p:sp", null, [
1349
- raw(el("p:nvSpPr", null, [
1350
- raw(voidEl("p:cNvPr", {
1351
- id: 4,
1352
- name: "Slide Image Placeholder 3"
1353
- })),
1354
- raw(spLocks({
1355
- noGrp: 1,
1356
- noRot: 1,
1357
- noChangeAspect: 1
1358
- })),
1359
- raw(nvPr({
1360
- type: "sldImg",
1361
- idx: 2
1362
- }))
1363
- ])),
1364
- raw(el("p:spPr", null, [
1365
- raw(xfrmOffExt(685800, 1143e3, 5486400, 3086100)),
1366
- raw(prstGeomRect),
1367
- raw(voidEl("a:noFill")),
1368
- raw(el("a:ln", { w: 12700 }, raw(el("a:solidFill", null, raw(voidEl("a:prstClr", { val: "black" }))))))
1369
- ])),
1370
- raw(el("p:txBody", null, [
1371
- raw(bodyPr({
1372
- vert: "horz",
1373
- lIns: 91440,
1374
- tIns: 45720,
1375
- rIns: 91440,
1376
- bIns: 45720,
1377
- rtlCol: 0,
1378
- anchor: "ctr"
1379
- })),
1380
- raw(voidEl("a:lstStyle")),
1381
- raw(emptyPara)
1382
- ]))
1383
- ]);
1384
- const notesPlaceholder = el("p:sp", null, [
1385
- raw(el("p:nvSpPr", null, [
1386
- raw(voidEl("p:cNvPr", {
1387
- id: 5,
1388
- name: "Notes Placeholder 4"
1389
- })),
1390
- raw(spLocks({ noGrp: 1 })),
1391
- raw(nvPr({
1392
- type: "body",
1393
- sz: "quarter",
1394
- idx: 3
1395
- }))
1396
- ])),
1397
- raw(el("p:spPr", null, [raw(xfrmOffExt(685800, 4400550, 5486400, 3600450)), raw(prstGeomRect)])),
1398
- raw(el("p:txBody", null, [
1399
- raw(bodyPr({
1400
- vert: "horz",
1401
- lIns: 91440,
1402
- tIns: 45720,
1403
- rIns: 91440,
1404
- bIns: 45720,
1405
- rtlCol: 0
1406
- })),
1407
- raw(voidEl("a:lstStyle")),
1408
- raw([
1409
- "Click to edit Master text styles",
1410
- "Second level",
1411
- "Third level",
1412
- "Fourth level",
1413
- "Fifth level"
1414
- ].map((text, lvl) => el("a:p", null, [raw(voidEl("a:pPr", { lvl })), raw(el("a:r", null, [raw(voidEl("a:rPr", { lang: "en-US" })), raw(el("a:t", null, text))]))])).join(""))
1415
- ]))
1416
- ]);
1417
- const footer = el("p:sp", null, [
1418
- raw(el("p:nvSpPr", null, [
1419
- raw(voidEl("p:cNvPr", {
1420
- id: 6,
1421
- name: "Footer Placeholder 5"
1422
- })),
1423
- raw(spLocks({ noGrp: 1 })),
1424
- raw(nvPr({
1425
- type: "ftr",
1426
- sz: "quarter",
1427
- idx: 4
1428
- }))
1429
- ])),
1430
- raw(el("p:spPr", null, [raw(xfrmOffExt(0, 8685213, 2971800, 458787)), raw(prstGeomRect)])),
1431
- raw(el("p:txBody", null, [
1432
- raw(bodyPr({
1433
- vert: "horz",
1434
- lIns: 91440,
1435
- tIns: 45720,
1436
- rIns: 91440,
1437
- bIns: 45720,
1438
- rtlCol: 0,
1439
- anchor: "b"
1440
- })),
1441
- raw(lstStyleLvl1("l")),
1442
- raw(emptyPara)
1443
- ]))
1444
- ]);
1445
- const slideNum = el("p:sp", null, [
1446
- raw(el("p:nvSpPr", null, [
1447
- raw(voidEl("p:cNvPr", {
1448
- id: 7,
1449
- name: "Slide Number Placeholder 6"
1450
- })),
1451
- raw(spLocks({ noGrp: 1 })),
1452
- raw(nvPr({
1453
- type: "sldNum",
1454
- sz: "quarter",
1455
- idx: 5
1456
- }))
1457
- ])),
1458
- raw(el("p:spPr", null, [raw(xfrmOffExt(3884613, 8685213, 2971800, 458787)), raw(prstGeomRect)])),
1459
- raw(el("p:txBody", null, [
1460
- raw(bodyPr({
1461
- vert: "horz",
1462
- lIns: 91440,
1463
- tIns: 45720,
1464
- rIns: 91440,
1465
- bIns: 45720,
1466
- rtlCol: 0,
1467
- anchor: "b"
1468
- })),
1469
- raw(lstStyleLvl1("r")),
1470
- raw(el("a:p", null, [raw(el("a:fld", {
1471
- id: "{CE5E9CC1-C706-0F49-92D6-E571CC5EEA8F}",
1472
- type: "slidenum"
1473
- }, [raw(voidEl("a:rPr", { lang: "en-US" })), raw(el("a:t", null, "‹#›"))])), raw(voidEl("a:endParaRPr", { lang: "en-US" }))]))
1474
- ]))
1475
- ]);
1476
- const spTree = el("p:spTree", null, [
1284
+ function notesSpTree(children) {
1285
+ return el("p:spTree", null, [
1477
1286
  raw(el("p:nvGrpSpPr", null, [
1478
1287
  raw(voidEl("p:cNvPr", {
1479
1288
  id: 1,
@@ -1500,36 +1309,235 @@ function makeXmlNotesMaster() {
1500
1309
  cy: 0
1501
1310
  }))
1502
1311
  ])))),
1503
- raw(header),
1504
- raw(date),
1505
- raw(slideImg),
1506
- raw(notesPlaceholder),
1507
- raw(footer),
1508
- raw(slideNum)
1312
+ ...children.map((child) => raw(child))
1509
1313
  ]);
1510
- const extLst = el("p:extLst", null, raw(el("p:ext", { uri: "{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}" }, raw(voidEl("p14:creationId", {
1314
+ }
1315
+ /**
1316
+ * PowerPoint's creation-id extension, on the `p:cSld` of both notes parts.
1317
+ *
1318
+ * The value is a fixed literal, and that is the point of naming it: it looks like data — a
1319
+ * per-deck identifier PowerPoint would vary — so left inline in two places, someone eventually
1320
+ * changes one of them. It is deliberately constant, which is what keeps the two notes parts
1321
+ * byte-identical across builds.
1322
+ */
1323
+ const NOTES_CREATION_ID = 1024086991;
1324
+ /** The `p:extLst` carrying {@link NOTES_CREATION_ID}, identical on the notes master and notes slide. */
1325
+ function notesExtLst() {
1326
+ return el("p:extLst", null, raw(el("p:ext", { uri: "{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}" }, raw(voidEl("p14:creationId", {
1511
1327
  "xmlns:p14": "http://schemas.microsoft.com/office/powerpoint/2010/main",
1512
- val: 1024086991
1328
+ val: NOTES_CREATION_ID
1513
1329
  })))));
1330
+ }
1331
+ /**
1332
+ * Generate XML for Notes Master (notesMaster1.xml)
1333
+ * @returns {string} XML
1334
+ */
1335
+ function makeXmlNotesMaster() {
1336
+ const xfrmOffExt = (x, y, cx, cy) => el("a:xfrm", null, [raw(voidEl("a:off", {
1337
+ x,
1338
+ y
1339
+ })), raw(voidEl("a:ext", {
1340
+ cx,
1341
+ cy
1342
+ }))]);
1343
+ const prstGeomRect = el("a:prstGeom", { prst: "rect" }, raw(voidEl("a:avLst")));
1344
+ const spLocks = (attrs) => el("p:cNvSpPr", null, raw(voidEl("a:spLocks", attrs)));
1345
+ const nvPr = (phAttrs) => el("p:nvPr", null, raw(voidEl("p:ph", phAttrs)));
1346
+ const bodyPr = (attrs) => voidEl("a:bodyPr", attrs);
1347
+ const lstStyleLvl1 = (algn) => el("a:lstStyle", null, raw(el("a:lvl1pPr", { algn }, raw(voidEl("a:defRPr", { sz: 1200 })))));
1348
+ const emptyPara = el("a:p", null, raw(voidEl("a:endParaRPr", { lang: "en-US" })));
1349
+ const spTree = notesSpTree([
1350
+ el("p:sp", null, [
1351
+ raw(el("p:nvSpPr", null, [
1352
+ raw(voidEl("p:cNvPr", {
1353
+ id: 2,
1354
+ name: "Header Placeholder 1"
1355
+ })),
1356
+ raw(spLocks({ noGrp: 1 })),
1357
+ raw(nvPr({
1358
+ type: "hdr",
1359
+ sz: "quarter"
1360
+ }))
1361
+ ])),
1362
+ raw(el("p:spPr", null, [raw(xfrmOffExt(0, 0, 2971800, 458788)), raw(prstGeomRect)])),
1363
+ raw(el("p:txBody", null, [
1364
+ raw(bodyPr({
1365
+ vert: "horz",
1366
+ lIns: 91440,
1367
+ tIns: 45720,
1368
+ rIns: 91440,
1369
+ bIns: 45720,
1370
+ rtlCol: 0
1371
+ })),
1372
+ raw(lstStyleLvl1("l")),
1373
+ raw(emptyPara)
1374
+ ]))
1375
+ ]),
1376
+ el("p:sp", null, [
1377
+ raw(el("p:nvSpPr", null, [
1378
+ raw(voidEl("p:cNvPr", {
1379
+ id: 3,
1380
+ name: "Date Placeholder 2"
1381
+ })),
1382
+ raw(spLocks({ noGrp: 1 })),
1383
+ raw(nvPr({
1384
+ type: "dt",
1385
+ idx: 1
1386
+ }))
1387
+ ])),
1388
+ raw(el("p:spPr", null, [raw(xfrmOffExt(3884613, 0, 2971800, 458788)), raw(prstGeomRect)])),
1389
+ raw(el("p:txBody", null, [
1390
+ raw(bodyPr({
1391
+ vert: "horz",
1392
+ lIns: 91440,
1393
+ tIns: 45720,
1394
+ rIns: 91440,
1395
+ bIns: 45720,
1396
+ rtlCol: 0
1397
+ })),
1398
+ raw(lstStyleLvl1("r")),
1399
+ raw(el("a:p", null, [raw(el("a:fld", {
1400
+ id: "{5282F153-3F37-0F45-9E97-73ACFA13230C}",
1401
+ type: "datetimeFigureOut"
1402
+ }, [raw(voidEl("a:rPr", { lang: "en-US" })), raw(el("a:t", null, "7/23/19"))])), raw(voidEl("a:endParaRPr", { lang: "en-US" }))]))
1403
+ ]))
1404
+ ]),
1405
+ el("p:sp", null, [
1406
+ raw(el("p:nvSpPr", null, [
1407
+ raw(voidEl("p:cNvPr", {
1408
+ id: 4,
1409
+ name: "Slide Image Placeholder 3"
1410
+ })),
1411
+ raw(spLocks({
1412
+ noGrp: 1,
1413
+ noRot: 1,
1414
+ noChangeAspect: 1
1415
+ })),
1416
+ raw(nvPr({
1417
+ type: "sldImg",
1418
+ idx: 2
1419
+ }))
1420
+ ])),
1421
+ raw(el("p:spPr", null, [
1422
+ raw(xfrmOffExt(685800, 1143e3, 5486400, 3086100)),
1423
+ raw(prstGeomRect),
1424
+ raw(voidEl("a:noFill")),
1425
+ raw(el("a:ln", { w: 12700 }, raw(el("a:solidFill", null, raw(voidEl("a:prstClr", { val: "black" }))))))
1426
+ ])),
1427
+ raw(el("p:txBody", null, [
1428
+ raw(bodyPr({
1429
+ vert: "horz",
1430
+ lIns: 91440,
1431
+ tIns: 45720,
1432
+ rIns: 91440,
1433
+ bIns: 45720,
1434
+ rtlCol: 0,
1435
+ anchor: "ctr"
1436
+ })),
1437
+ raw(voidEl("a:lstStyle")),
1438
+ raw(emptyPara)
1439
+ ]))
1440
+ ]),
1441
+ el("p:sp", null, [
1442
+ raw(el("p:nvSpPr", null, [
1443
+ raw(voidEl("p:cNvPr", {
1444
+ id: 5,
1445
+ name: "Notes Placeholder 4"
1446
+ })),
1447
+ raw(spLocks({ noGrp: 1 })),
1448
+ raw(nvPr({
1449
+ type: "body",
1450
+ sz: "quarter",
1451
+ idx: 3
1452
+ }))
1453
+ ])),
1454
+ raw(el("p:spPr", null, [raw(xfrmOffExt(685800, 4400550, 5486400, 3600450)), raw(prstGeomRect)])),
1455
+ raw(el("p:txBody", null, [
1456
+ raw(bodyPr({
1457
+ vert: "horz",
1458
+ lIns: 91440,
1459
+ tIns: 45720,
1460
+ rIns: 91440,
1461
+ bIns: 45720,
1462
+ rtlCol: 0
1463
+ })),
1464
+ raw(voidEl("a:lstStyle")),
1465
+ raw([
1466
+ "Click to edit Master text styles",
1467
+ "Second level",
1468
+ "Third level",
1469
+ "Fourth level",
1470
+ "Fifth level"
1471
+ ].map((text, lvl) => el("a:p", null, [raw(voidEl("a:pPr", { lvl })), raw(el("a:r", null, [raw(voidEl("a:rPr", { lang: "en-US" })), raw(el("a:t", null, text))]))])).join(""))
1472
+ ]))
1473
+ ]),
1474
+ el("p:sp", null, [
1475
+ raw(el("p:nvSpPr", null, [
1476
+ raw(voidEl("p:cNvPr", {
1477
+ id: 6,
1478
+ name: "Footer Placeholder 5"
1479
+ })),
1480
+ raw(spLocks({ noGrp: 1 })),
1481
+ raw(nvPr({
1482
+ type: "ftr",
1483
+ sz: "quarter",
1484
+ idx: 4
1485
+ }))
1486
+ ])),
1487
+ raw(el("p:spPr", null, [raw(xfrmOffExt(0, 8685213, 2971800, 458787)), raw(prstGeomRect)])),
1488
+ raw(el("p:txBody", null, [
1489
+ raw(bodyPr({
1490
+ vert: "horz",
1491
+ lIns: 91440,
1492
+ tIns: 45720,
1493
+ rIns: 91440,
1494
+ bIns: 45720,
1495
+ rtlCol: 0,
1496
+ anchor: "b"
1497
+ })),
1498
+ raw(lstStyleLvl1("l")),
1499
+ raw(emptyPara)
1500
+ ]))
1501
+ ]),
1502
+ el("p:sp", null, [
1503
+ raw(el("p:nvSpPr", null, [
1504
+ raw(voidEl("p:cNvPr", {
1505
+ id: 7,
1506
+ name: "Slide Number Placeholder 6"
1507
+ })),
1508
+ raw(spLocks({ noGrp: 1 })),
1509
+ raw(nvPr({
1510
+ type: "sldNum",
1511
+ sz: "quarter",
1512
+ idx: 5
1513
+ }))
1514
+ ])),
1515
+ raw(el("p:spPr", null, [raw(xfrmOffExt(3884613, 8685213, 2971800, 458787)), raw(prstGeomRect)])),
1516
+ raw(el("p:txBody", null, [
1517
+ raw(bodyPr({
1518
+ vert: "horz",
1519
+ lIns: 91440,
1520
+ tIns: 45720,
1521
+ rIns: 91440,
1522
+ bIns: 45720,
1523
+ rtlCol: 0,
1524
+ anchor: "b"
1525
+ })),
1526
+ raw(lstStyleLvl1("r")),
1527
+ raw(el("a:p", null, [raw(el("a:fld", {
1528
+ id: "{CE5E9CC1-C706-0F49-92D6-E571CC5EEA8F}",
1529
+ type: "slidenum"
1530
+ }, [raw(voidEl("a:rPr", { lang: "en-US" })), raw(el("a:t", null, "‹#›"))])), raw(voidEl("a:endParaRPr", { lang: "en-US" }))]))
1531
+ ]))
1532
+ ])
1533
+ ]);
1534
+ const extLst = notesExtLst();
1514
1535
  const cSld = el("p:cSld", null, [
1515
1536
  raw(el("p:bg", null, raw(el("p:bgRef", { idx: 1001 }, raw(voidEl("a:schemeClr", { val: "bg1" })))))),
1516
1537
  raw(spTree),
1517
1538
  raw(extLst)
1518
1539
  ]);
1519
- const clrMap = voidEl("p:clrMap", {
1520
- bg1: "lt1",
1521
- tx1: "dk1",
1522
- bg2: "lt2",
1523
- tx2: "dk2",
1524
- accent1: "accent1",
1525
- accent2: "accent2",
1526
- accent3: "accent3",
1527
- accent4: "accent4",
1528
- accent5: "accent5",
1529
- accent6: "accent6",
1530
- hlink: "hlink",
1531
- folHlink: "folHlink"
1532
- });
1540
+ const clrMap = voidEl("p:clrMap", DEFAULT_COLOR_MAP);
1533
1541
  const notesStyleLevel = (n, marL) => el(`a:lvl${n}pPr`, {
1534
1542
  marL,
1535
1543
  algn: "l",
@@ -1588,95 +1596,63 @@ function makeXmlNotesSlide(slide) {
1588
1596
  * @return {string} XML
1589
1597
  */
1590
1598
  function makeXmlNotesSlideSkeleton(bodyParagraphsXml, slideNum) {
1591
- const slideImgPh = el("p:sp", null, [raw(el("p:nvSpPr", null, [
1592
- raw(voidEl("p:cNvPr", {
1593
- id: 2,
1594
- name: "Slide Image Placeholder 1"
1595
- })),
1596
- raw(el("p:cNvSpPr", null, raw(voidEl("a:spLocks", {
1597
- noGrp: 1,
1598
- noRot: 1,
1599
- noChangeAspect: 1
1600
- })))),
1601
- raw(el("p:nvPr", null, raw(voidEl("p:ph", { type: "sldImg" }))))
1602
- ])), raw(voidEl("p:spPr"))]);
1603
- const notesPh = el("p:sp", null, [
1604
- raw(el("p:nvSpPr", null, [
1605
- raw(voidEl("p:cNvPr", {
1606
- id: 3,
1607
- name: "Notes Placeholder 2"
1608
- })),
1609
- raw(el("p:cNvSpPr", null, raw(voidEl("a:spLocks", { noGrp: 1 })))),
1610
- raw(el("p:nvPr", null, raw(voidEl("p:ph", {
1611
- type: "body",
1612
- idx: 1
1613
- }))))
1614
- ])),
1615
- raw(voidEl("p:spPr")),
1616
- raw(el("p:txBody", null, [
1617
- raw(voidEl("a:bodyPr")),
1618
- raw(voidEl("a:lstStyle")),
1619
- raw(bodyParagraphsXml)
1620
- ]))
1621
- ]);
1622
- const slideNumPh = el("p:sp", null, [
1623
- raw(el("p:nvSpPr", null, [
1599
+ const spTree = notesSpTree([
1600
+ el("p:sp", null, [raw(el("p:nvSpPr", null, [
1624
1601
  raw(voidEl("p:cNvPr", {
1625
- id: 4,
1626
- name: "Slide Number Placeholder 3"
1627
- })),
1628
- raw(el("p:cNvSpPr", null, raw(voidEl("a:spLocks", { noGrp: 1 })))),
1629
- raw(el("p:nvPr", null, raw(voidEl("p:ph", {
1630
- type: "sldNum",
1631
- sz: "quarter",
1632
- idx: 10
1633
- }))))
1634
- ])),
1635
- raw(voidEl("p:spPr")),
1636
- raw(el("p:txBody", null, [
1637
- raw(voidEl("a:bodyPr")),
1638
- raw(voidEl("a:lstStyle")),
1639
- raw(el("a:p", null, [raw(el("a:fld", {
1640
- id: SLDNUMFLDID,
1641
- type: "slidenum"
1642
- }, [raw(voidEl("a:rPr", { lang: "en-US" })), raw(el("a:t", null, slideNum))])), raw(voidEl("a:endParaRPr", { lang: "en-US" }))]))
1643
- ]))
1644
- ]);
1645
- const spTree = el("p:spTree", null, [
1646
- raw(el("p:nvGrpSpPr", null, [
1647
- raw(voidEl("p:cNvPr", {
1648
- id: 1,
1649
- name: ""
1650
- })),
1651
- raw(voidEl("p:cNvGrpSpPr")),
1652
- raw(voidEl("p:nvPr"))
1653
- ])),
1654
- raw(el("p:grpSpPr", null, raw(el("a:xfrm", null, [
1655
- raw(voidEl("a:off", {
1656
- x: 0,
1657
- y: 0
1658
- })),
1659
- raw(voidEl("a:ext", {
1660
- cx: 0,
1661
- cy: 0
1662
- })),
1663
- raw(voidEl("a:chOff", {
1664
- x: 0,
1665
- y: 0
1602
+ id: 2,
1603
+ name: "Slide Image Placeholder 1"
1666
1604
  })),
1667
- raw(voidEl("a:chExt", {
1668
- cx: 0,
1669
- cy: 0
1670
- }))
1671
- ])))),
1672
- raw(slideImgPh),
1673
- raw(notesPh),
1674
- raw(slideNumPh)
1605
+ raw(el("p:cNvSpPr", null, raw(voidEl("a:spLocks", {
1606
+ noGrp: 1,
1607
+ noRot: 1,
1608
+ noChangeAspect: 1
1609
+ })))),
1610
+ raw(el("p:nvPr", null, raw(voidEl("p:ph", { type: "sldImg" }))))
1611
+ ])), raw(voidEl("p:spPr"))]),
1612
+ el("p:sp", null, [
1613
+ raw(el("p:nvSpPr", null, [
1614
+ raw(voidEl("p:cNvPr", {
1615
+ id: 3,
1616
+ name: "Notes Placeholder 2"
1617
+ })),
1618
+ raw(el("p:cNvSpPr", null, raw(voidEl("a:spLocks", { noGrp: 1 })))),
1619
+ raw(el("p:nvPr", null, raw(voidEl("p:ph", {
1620
+ type: "body",
1621
+ idx: 1
1622
+ }))))
1623
+ ])),
1624
+ raw(voidEl("p:spPr")),
1625
+ raw(el("p:txBody", null, [
1626
+ raw(voidEl("a:bodyPr")),
1627
+ raw(voidEl("a:lstStyle")),
1628
+ raw(bodyParagraphsXml)
1629
+ ]))
1630
+ ]),
1631
+ el("p:sp", null, [
1632
+ raw(el("p:nvSpPr", null, [
1633
+ raw(voidEl("p:cNvPr", {
1634
+ id: 4,
1635
+ name: "Slide Number Placeholder 3"
1636
+ })),
1637
+ raw(el("p:cNvSpPr", null, raw(voidEl("a:spLocks", { noGrp: 1 })))),
1638
+ raw(el("p:nvPr", null, raw(voidEl("p:ph", {
1639
+ type: "sldNum",
1640
+ sz: "quarter",
1641
+ idx: 10
1642
+ }))))
1643
+ ])),
1644
+ raw(voidEl("p:spPr")),
1645
+ raw(el("p:txBody", null, [
1646
+ raw(voidEl("a:bodyPr")),
1647
+ raw(voidEl("a:lstStyle")),
1648
+ raw(el("a:p", null, [raw(el("a:fld", {
1649
+ id: SLDNUMFLDID,
1650
+ type: "slidenum"
1651
+ }, [raw(voidEl("a:rPr", { lang: "en-US" })), raw(el("a:t", null, slideNum))])), raw(voidEl("a:endParaRPr", { lang: "en-US" }))]))
1652
+ ]))
1653
+ ])
1675
1654
  ]);
1676
- const extLst = el("p:extLst", null, raw(el("p:ext", { uri: "{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}" }, raw(voidEl("p14:creationId", {
1677
- "xmlns:p14": "http://schemas.microsoft.com/office/powerpoint/2010/main",
1678
- val: 1024086991
1679
- })))));
1655
+ const extLst = notesExtLst();
1680
1656
  const cSld = el("p:cSld", null, [raw(spTree), raw(extLst)]);
1681
1657
  return XML_DECL + "\r\n" + el("p:notes", { ...PML_ROOT_NS }, [raw(cSld), raw(el("p:clrMapOvr", null, raw(voidEl("a:masterClrMapping"))))]);
1682
1658
  }
@@ -1722,6 +1698,6 @@ function makeXmlNotesMasterRel() {
1722
1698
  });
1723
1699
  }
1724
1700
  //#endregion
1725
- export { getDuplicateObjectNames as A, createShadowEffectLst as C, voidEl as D, raw as E, validateObjectName as F, getUuid as M, isHyperlinkRel as N, encodeXmlAttrValue as O, mediaSlideKey as P, correctShadowOptions as S, el as T, flattenEmbeddedFaces as _, makeXmlNotesSlideRel as a, genXmlGradientFill as b, genXmlNormAutofit as c, renderTextParagraphsXml as d, clampFontSizeSz as f, FONT_REL_TYPE as g, FONT_DATA_EXTENSION as h, makeXmlNotesSlide as i, getNewRelId as j, encodeXmlEntities as k, genXmlParagraphProperties as l, FONT_DATA_CONTENT_TYPE as m, makeXmlNotesMaster as n, makeXmlNotesSlideSkeleton as o, EMBEDDED_FONT_SLOTS as p, makeXmlNotesMasterRel as r, externalHyperlinkRel as s, buildNotesSlideRels as t, groupRunsIntoLines as u, serializeEmbeddedFontLst as v, createColorElement as w, genXmlPatternFill as x, genXmlColorSelection as y };
1701
+ export { getNewRelId as A, createShadowEffectLst as C, voidEl as D, raw as E, isHyperlinkRel as M, mediaSlideKey as N, encodeXmlAttrValue as O, validateObjectName as P, correctShadowOptions as S, el as T, flattenEmbeddedFaces as _, makeXmlNotesSlideRel as a, genXmlGradientFill as b, genXmlNormAutofit as c, renderTextParagraphsXml as d, clampFontSizeSz as f, FONT_REL_TYPE as g, FONT_DATA_EXTENSION as h, makeXmlNotesSlide as i, getUuid as j, getDuplicateObjectNames as k, genXmlParagraphProperties as l, FONT_DATA_CONTENT_TYPE as m, makeXmlNotesMaster as n, makeXmlNotesSlideSkeleton as o, EMBEDDED_FONT_SLOTS as p, makeXmlNotesMasterRel as r, externalHyperlinkRel as s, buildNotesSlideRels as t, groupRunsIntoLines as u, serializeEmbeddedFontLst as v, createColorElement as w, genXmlPatternFill as x, genXmlColorSelection as y };
1726
1702
 
1727
- //# sourceMappingURL=notes-DNqAggXx.js.map
1703
+ //# sourceMappingURL=notes-RLCwdlTE.js.map