ooxml-core 1.50.1 → 1.50.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.
- package/dist/{PptxHandler-IDMS4H7X.mjs → PptxHandler-PVQW47CY.mjs} +2 -2
- package/dist/{PresentationBuilder-GI4236KL.mjs → PresentationBuilder-ZOOVSBPR.mjs} +2 -2
- package/dist/automation/index.cjs +33 -9
- package/dist/automation/index.mjs +33 -9
- package/dist/{chunk-QRBVN63F.mjs → chunk-7UM5IFPR.mjs} +1 -1
- package/dist/{chunk-NJD62JHC.mjs → chunk-MX2GFMZS.mjs} +8 -3
- package/dist/{chunk-3IVY333X.mjs → chunk-VK2G4BGX.mjs} +1 -1
- package/dist/{chunk-E2XIU4A3.mjs → chunk-VLKUMQGT.mjs} +1 -1
- package/dist/{chunk-DCQILGAJ.mjs → chunk-ZCKEKP7N.mjs} +4 -4
- package/dist/index.cjs +58 -25
- package/dist/index.mjs +58 -25
- package/dist/pptx/automation/index.cjs +7 -2
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/cli/index.cjs +7 -2
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.cjs +7 -2
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/index.cjs +7 -2
- package/dist/pptx/index.mjs +5 -5
- package/dist/text/font-metrics/advance-width.d.ts.map +1 -1
- package/dist/text/font-metrics/design-advances-powerpoint.generated.d.ts +13 -0
- package/dist/text/font-metrics/design-advances-powerpoint.generated.d.ts.map +1 -0
- package/dist/text/font-metrics/design-advances.generated.d.ts +1 -3
- package/dist/text/font-metrics/design-advances.generated.d.ts.map +1 -1
- package/dist/text/index.cjs +58 -25
- package/dist/text/index.mjs +58 -25
- package/dist/text/webfonts/google-fonts-request.d.ts +3 -2
- package/dist/text/webfonts/google-fonts-request.d.ts.map +1 -1
- package/dist/text/webfonts/look-alikes.d.ts +7 -2
- package/dist/text/webfonts/look-alikes.d.ts.map +1 -1
- package/dist/visio/index.cjs +33 -9
- package/dist/visio/index.mjs +33 -9
- package/dist/visio/ui/index.cjs +33 -9
- package/dist/visio/ui/index.mjs +33 -9
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -23747,14 +23747,6 @@ function changeTextCaseRanges(text3, mode, boundaries = []) {
|
|
|
23747
23747
|
|
|
23748
23748
|
// text/font-metrics/design-advances.generated.ts
|
|
23749
23749
|
var DESIGN_ADVANCES = {
|
|
23750
|
-
aptos: {
|
|
23751
|
-
regular: "203.75 292.5 370 537.5 533.75 826.25 642.5 210 292.5 292.5 457.5 533.75 286.25 340 286.25 338.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 286.25 286.25 533.75 533.75 533.75 501.25 895 588.75 603.75 692.5 686.25 556.25 525 708.75 707.5 260 331.25 568.75 500 790 706.25 732.5 577.5 732.5 606.25 566.25 478.75 681.25 585 892.5 552.5 540 516.25 295 338.75 295 533.75 460 551.25 531.25 561.25 525 560 526.25 301.25 485 551.25 238.75 238.75 486.25 260 852.5 551.25 551.25 561.25 560 335 486.25 323.75 558.75 452.5 721.25 442.5 452.5 437.5 295 270 295 533.75",
|
|
23752
|
-
bold: "203.75 292.5 420 537.5 533.75 841.25 676.25 232.5 292.5 292.5 457.5 533.75 300 340 300 386.25 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 300 300 533.75 533.75 533.75 517.5 900 620 618.75 706.25 707.5 573.75 536.25 717.5 728.75 293.75 366.25 622.5 511.25 821.25 722.5 737.5 605 737.5 633.75 598.75 505 696.25 616.25 940 598.75 586.25 547.5 337.5 386.25 337.5 533.75 460 551.25 551.25 586.25 548.75 586.25 556.25 335 511.25 578.75 267.5 267.5 533.75 296.25 888.75 578.75 573.75 586.25 586.25 368.75 516.25 355 581.25 493.75 761.25 495 493.75 466.25 337.5 270 337.5 533.75"
|
|
23753
|
-
},
|
|
23754
|
-
"aptos display": {
|
|
23755
|
-
regular: "192.5 246.25 370 528.75 522.5 825 622.5 210 295 295 381.25 522.5 246.25 348.75 246.25 338.75 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 246.25 246.25 522.5 522.5 522.5 486.25 878.75 580 582.5 656.25 655 540 508.75 671.25 661.25 235 317.5 553.75 485 765 681.25 695 556.25 695 590 546.25 477.5 651.25 573.75 886.25 550 535 516.25 295 338.75 295 522.5 460 551.25 488.75 518.75 492.5 518.75 493.75 283.75 440 506.25 210 210 447.5 243.75 800 506.25 512.5 518.75 518.75 310 462.5 303.75 506.25 432.5 716.25 440 432.5 426.25 295 218.75 295 522.5",
|
|
23756
|
-
bold: "192.5 261.25 420 561.25 540 838.75 655 232.5 337.5 337.5 428.75 540 261.25 365 261.25 386.25 540 540 540 540 540 540 540 540 540 540 261.25 261.25 540 540 540 502.5 887.5 610 598.75 675 677.5 548.75 516.25 685 682.5 267.5 348.75 602.5 491.25 793.75 696.25 705 585 705 610 573.75 498.75 670 600 921.25 591.25 572.5 547.5 337.5 386.25 337.5 540 460 551.25 507.5 541.25 507.5 542.5 515 317.5 472.5 533.75 240 240 500 278.75 840 533.75 530 541.25 542.5 342.5 483.75 333.75 533.75 475 747.5 488.75 475 450 337.5 251.25 337.5 540"
|
|
23757
|
-
},
|
|
23758
23750
|
arial: {
|
|
23759
23751
|
regular: "277.83 277.83 354.98 556.15 556.15 889.16 666.99 190.92 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 277.83 277.83 583.98 583.98 583.98 556.15 1015.14 666.99 666.99 722.17 722.17 666.99 610.84 777.83 722.17 277.83 500 666.99 556.15 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 277.83 277.83 277.83 469.24 556.15 333.01 556.15 556.15 500 556.15 556.15 277.83 556.15 556.15 222.17 222.17 500 222.17 833.01 556.15 556.15 556.15 556.15 333.01 500 277.83 556.15 500 722.17 500 500 500 333.98 259.77 333.98 583.98",
|
|
23760
23752
|
bold: "277.83 333.01 474.12 556.15 556.15 889.16 722.17 237.79 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 333.01 333.01 583.98 583.98 583.98 610.84 975.1 722.17 722.17 722.17 722.17 666.99 610.84 777.83 722.17 277.83 556.15 722.17 610.84 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 333.01 277.83 333.01 583.98 556.15 333.01 556.15 610.84 556.15 610.84 556.15 333.01 610.84 610.84 277.83 277.83 556.15 277.83 889.16 610.84 610.84 610.84 610.84 389.16 556.15 333.01 610.84 556.15 777.83 556.15 556.15 500 389.16 279.79 389.16 583.98"
|
|
@@ -23777,6 +23769,38 @@ var DESIGN_ADVANCES = {
|
|
|
23777
23769
|
}
|
|
23778
23770
|
};
|
|
23779
23771
|
|
|
23772
|
+
// text/font-metrics/design-advances-powerpoint.generated.ts
|
|
23773
|
+
var POWERPOINT_DESIGN_ADVANCES = {
|
|
23774
|
+
aptos: {
|
|
23775
|
+
regular: "203.75 292.5 370 537.5 533.75 826.25 642.5 210 292.5 292.5 457.5 533.75 286.25 340 286.25 338.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 286.25 286.25 533.75 533.75 533.75 501.25 895 588.75 603.75 692.5 686.25 556.25 525 708.75 707.5 260 331.25 568.75 500 790 706.25 732.5 577.5 732.5 606.25 566.25 478.75 681.25 585 892.5 552.5 540 516.25 295 338.75 295 533.75 460 551.25 531.25 561.25 525 560 526.25 301.25 485 551.25 238.75 238.75 486.25 260 852.5 551.25 551.25 561.25 560 335 486.25 323.75 558.75 452.5 721.25 442.5 452.5 437.5 295 270 295 533.75",
|
|
23776
|
+
bold: "203.75 292.5 420 537.5 533.75 841.25 676.25 232.5 292.5 292.5 457.5 533.75 300 340 300 386.25 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 300 300 533.75 533.75 533.75 517.5 900 620 618.75 706.25 707.5 573.75 536.25 717.5 728.75 293.75 366.25 622.5 511.25 821.25 722.5 737.5 605 737.5 633.75 598.75 505 696.25 616.25 940 598.75 586.25 547.5 337.5 386.25 337.5 533.75 460 551.25 551.25 586.25 548.75 586.25 556.25 335 511.25 578.75 267.5 267.5 533.75 296.25 888.75 578.75 573.75 586.25 586.25 368.75 516.25 355 581.25 493.75 761.25 495 493.75 466.25 337.5 270 337.5 533.75"
|
|
23777
|
+
},
|
|
23778
|
+
"aptos display": {
|
|
23779
|
+
regular: "192.5 246.25 370 528.75 522.5 825 622.5 210 295 295 381.25 522.5 246.25 348.75 246.25 338.75 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 246.25 246.25 522.5 522.5 522.5 486.25 878.75 580 582.5 656.25 655 540 508.75 671.25 661.25 235 317.5 553.75 485 765 681.25 695 556.25 695 590 546.25 477.5 651.25 573.75 886.25 550 535 516.25 295 338.75 295 522.5 460 551.25 488.75 518.75 492.5 518.75 493.75 283.75 440 506.25 210 210 447.5 243.75 800 506.25 512.5 518.75 518.75 310 462.5 303.75 506.25 432.5 716.25 440 432.5 426.25 295 218.75 295 522.5",
|
|
23780
|
+
bold: "192.5 261.25 420 561.25 540 838.75 655 232.5 337.5 337.5 428.75 540 261.25 365 261.25 386.25 540 540 540 540 540 540 540 540 540 540 261.25 261.25 540 540 540 502.5 887.5 610 598.75 675 677.5 548.75 516.25 685 682.5 267.5 348.75 602.5 491.25 793.75 696.25 705 585 705 610 573.75 498.75 670 600 921.25 591.25 572.5 547.5 337.5 386.25 337.5 540 460 551.25 507.5 541.25 507.5 542.5 515 317.5 472.5 533.75 240 240 500 278.75 840 533.75 530 541.25 542.5 342.5 483.75 333.75 533.75 475 747.5 488.75 475 450 337.5 251.25 337.5 540"
|
|
23781
|
+
},
|
|
23782
|
+
"aptos mono": {
|
|
23783
|
+
regular: "600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600",
|
|
23784
|
+
bold: "600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600"
|
|
23785
|
+
},
|
|
23786
|
+
"comic sans ms": {
|
|
23787
|
+
regular: "298.75 237.5 423.75 842.5 693.75 820 653.75 388.75 366.25 366.25 530 480 276.25 416.25 248.75 511.25 610 450 610 610 610 610 610 610 610 610 298.75 298.75 381.25 510 381.25 523.75 931.25 731.25 630 602.5 721.25 625 607.5 680 767.5 546.25 665 611.25 551.25 882.5 797.5 798.75 520 876.25 628.75 693.75 680 736.25 650 1040 723.75 635 693.75 376.25 550 376.25 581.25 627.5 556.25 511.25 593.75 513.75 587.5 547.5 508.75 531.25 577.5 280 403.75 540 273.75 776.25 523.75 526.25 535 520 480 486.25 471.25 520 486.25 683.75 590 520 537.5 366.25 421.25 366.25 597.5",
|
|
23788
|
+
bold: "433.75 237.5 437.5 842.5 693.75 820 653.75 433.75 366.25 366.25 530 610 433.75 610 433.75 511.25 610 610 610 610 610 610 610 610 610 610 433.75 433.75 610 610 610 566.25 931.25 731.25 630 618.75 721.25 625 607.5 680 767.5 546.25 665 611.25 551.25 882.5 812.5 798.75 532.5 876.25 640 693.75 696.25 736.25 675 1040 723.75 635 693.75 376.25 550 376.25 610 627.5 556.25 556.25 593.75 513.75 587.5 558.75 508.75 531.25 577.5 280 403.75 540 273.75 776.25 523.75 526.25 535 520 480 486.25 471.25 520 486.25 683.75 590 552.5 537.5 366.25 421.25 366.25 610"
|
|
23789
|
+
},
|
|
23790
|
+
consolas: {
|
|
23791
|
+
regular: "550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550",
|
|
23792
|
+
bold: "550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550"
|
|
23793
|
+
},
|
|
23794
|
+
garamond: {
|
|
23795
|
+
regular: "250 218.75 406.25 666.25 447.5 822.5 728.75 177.5 291.25 291.25 427.5 666.25 218.75 312.5 218.75 500 468.75 468.75 468.75 468.75 468.75 468.75 468.75 468.75 468.75 468.75 218.75 218.75 666.25 666.25 666.25 365 916.25 677.5 615 635 771.25 656.25 562.5 771.25 760 353.75 333.75 740 572.5 833.75 771.25 781.25 562.5 771.25 625 478.75 615 708.75 677.5 885 697.5 656.25 656.25 271.25 500 271.25 500 500 333.75 406.25 510 416.25 500 416.25 322.5 447.5 510 228.75 228.75 468.75 228.75 771.25 510 510 510 490 333.75 365 291.25 490 468.75 666.25 458.75 416.25 427.5 478.75 500 478.75 666.25",
|
|
23796
|
+
bold: "250 260 552.5 666.25 468.75 833.75 802.5 281.25 353.75 353.75 490 666.25 260 333.75 260 552.5 468.75 396.25 468.75 468.75 468.75 468.75 468.75 468.75 468.75 468.75 260 260 666.25 666.25 666.25 416.25 927.5 656.25 677.5 677.5 781.25 708.75 615 728.75 865 396.25 375 677.5 635 916.25 843.75 791.25 615 791.25 697.5 510 687.5 760 666.25 896.25 687.5 656.25 666.25 365 552.5 365 583.75 500 333.75 478.75 552.5 468.75 552.5 468.75 302.5 541.25 552.5 281.25 260 531.25 260 843.75 552.5 521.25 552.5 552.5 343.75 416.25 312.5 552.5 458.75 708.75 500 468.75 468.75 396.25 541.25 396.25 666.25"
|
|
23797
|
+
},
|
|
23798
|
+
impact: {
|
|
23799
|
+
regular: "176.25 270 370 626.25 547.5 692.5 576.25 185 313.75 313.75 281.25 533.75 167.5 295 185 395 536.25 381.25 502.5 530 500 536.25 541.25 391.25 535 541.25 202.5 202.5 533.75 533.75 533.75 525 775 507.5 552.5 553.75 552.5 415 397.5 551.25 555 287.5 331.25 536.25 380 716.25 541.25 546.25 502.5 546.25 538.75 517.5 461.25 547.5 523.75 815 482.5 473.75 397.5 282.5 395 282.5 483.75 552.5 333.75 503.75 520 495 520 511.25 288.75 518.75 523.75 273.75 280 477.5 273.75 771.25 522.5 511.25 518.75 517.5 357.5 471.25 305 522.5 437.5 670 433.75 448.75 351.25 370 271.25 370 525",
|
|
23800
|
+
bold: "176.25 270 370 627.5 547.5 693.75 576.25 185 313.75 313.75 281.25 533.75 168.75 295 185 396.25 536.25 381.25 502.5 531.25 500 537.5 542.5 392.5 535 542.5 202.5 202.5 533.75 533.75 533.75 525 775 508.75 552.5 553.75 553.75 416.25 398.75 551.25 556.25 288.75 331.25 537.5 381.25 717.5 542.5 547.5 502.5 547.5 538.75 517.5 461.25 547.5 523.75 815 482.5 473.75 397.5 282.5 396.25 282.5 483.75 552.5 333.75 505 520 495 520 511.25 290 518.75 525 275 280 478.75 275 771.25 523.75 511.25 520 518.75 358.75 471.25 305 522.5 437.5 670 433.75 448.75 351.25 370 271.25 370 525"
|
|
23801
|
+
}
|
|
23802
|
+
};
|
|
23803
|
+
|
|
23780
23804
|
// text/font-metrics/advance-width.ts
|
|
23781
23805
|
var FIRST = 32;
|
|
23782
23806
|
var decoded = /* @__PURE__ */ new Map();
|
|
@@ -23785,7 +23809,7 @@ function advances(family, bold) {
|
|
|
23785
23809
|
const key = `${name2}|${bold ? "b" : "r"}`;
|
|
23786
23810
|
const known = decoded.get(key);
|
|
23787
23811
|
if (known) return known;
|
|
23788
|
-
const table = Object.hasOwn(DESIGN_ADVANCES, name2) ? DESIGN_ADVANCES[name2] : void 0;
|
|
23812
|
+
const table = Object.hasOwn(DESIGN_ADVANCES, name2) ? DESIGN_ADVANCES[name2] : Object.hasOwn(POWERPOINT_DESIGN_ADVANCES, name2) ? POWERPOINT_DESIGN_ADVANCES[name2] : void 0;
|
|
23789
23813
|
if (!table) return void 0;
|
|
23790
23814
|
const values = (bold ? table.bold : table.regular).split(" ").map(Number);
|
|
23791
23815
|
decoded.set(key, values);
|
|
@@ -26863,8 +26887,13 @@ function getGoogleFontsVariants(family) {
|
|
|
26863
26887
|
|
|
26864
26888
|
// text/webfonts/look-alikes.ts
|
|
26865
26889
|
var LOOK_ALIKES = {
|
|
26866
|
-
aptos: { family: "Gantari", boldWeight: 650 },
|
|
26867
|
-
"aptos display": { family: "Gantari", boldWeight: 650 }
|
|
26890
|
+
aptos: { family: "Gantari", regularWeight: 400, boldWeight: 650 },
|
|
26891
|
+
"aptos display": { family: "Gantari", regularWeight: 400, boldWeight: 650 },
|
|
26892
|
+
"aptos mono": { family: "Sometype Mono", regularWeight: 500, boldWeight: 700 },
|
|
26893
|
+
consolas: { family: "Overpass Mono", regularWeight: 500, boldWeight: 700 },
|
|
26894
|
+
"comic sans ms": { family: "Comic Relief", regularWeight: 400, boldWeight: 700 },
|
|
26895
|
+
garamond: { family: "EB Garamond", regularWeight: 400, boldWeight: 600 },
|
|
26896
|
+
impact: { family: "Anton", regularWeight: 400, boldWeight: 400 }
|
|
26868
26897
|
};
|
|
26869
26898
|
function findLookAlikeGoogleFontsFamily(family) {
|
|
26870
26899
|
if (findGoogleFontsFamily(family) !== null) {
|
|
@@ -26873,8 +26902,10 @@ function findLookAlikeGoogleFontsFamily(family) {
|
|
|
26873
26902
|
const lookAlike = LOOK_ALIKES[family.trim().toLowerCase()];
|
|
26874
26903
|
return lookAlike ? findGoogleFontsFamily(lookAlike.family) : null;
|
|
26875
26904
|
}
|
|
26876
|
-
function
|
|
26877
|
-
|
|
26905
|
+
function findLookAlikeWeights(family) {
|
|
26906
|
+
if (findLookAlikeGoogleFontsFamily(family) === null) return void 0;
|
|
26907
|
+
const lookAlike = LOOK_ALIKES[family.trim().toLowerCase()];
|
|
26908
|
+
return lookAlike ? { regular: lookAlike.regularWeight, bold: lookAlike.boldWeight } : void 0;
|
|
26878
26909
|
}
|
|
26879
26910
|
|
|
26880
26911
|
// text/webfonts/metric-clones.ts
|
|
@@ -27056,13 +27087,11 @@ function selectGoogleWebfontFamilies(referenced, embedded, isLocallyInstalled) {
|
|
|
27056
27087
|
}
|
|
27057
27088
|
return selected;
|
|
27058
27089
|
}
|
|
27059
|
-
function buildGoogleFontsFragment(family, weights,
|
|
27060
|
-
const sorted = [.../* @__PURE__ */ new Set([400,
|
|
27061
|
-
|
|
27062
|
-
|
|
27063
|
-
|
|
27064
|
-
}
|
|
27065
|
-
if (sorted.length === 2) return `${family}:${GOOGLE_WEBFONT_AXIS}`;
|
|
27090
|
+
function buildGoogleFontsFragment(family, weights, standardFaces = true) {
|
|
27091
|
+
const sorted = [.../* @__PURE__ */ new Set([...standardFaces ? [400, 700] : [], ...weights ?? []])].sort(
|
|
27092
|
+
(a2, b) => a2 - b
|
|
27093
|
+
);
|
|
27094
|
+
if (standardFaces && sorted.length === 2) return `${family}:${GOOGLE_WEBFONT_AXIS}`;
|
|
27066
27095
|
const tuples = [0, 1].flatMap((ital) => sorted.map((weight) => `${ital},${weight}`));
|
|
27067
27096
|
return `${family}:ital,wght@${tuples.join(";")}`;
|
|
27068
27097
|
}
|
|
@@ -27076,27 +27105,31 @@ function servedGoogleFontsFamily(family, options2) {
|
|
|
27076
27105
|
}
|
|
27077
27106
|
function matchGoogleWebfontFragments(families, onResolved, options2) {
|
|
27078
27107
|
const weightsByFamily = /* @__PURE__ */ new Map();
|
|
27079
|
-
const
|
|
27108
|
+
const standardFamilies = /* @__PURE__ */ new Set();
|
|
27080
27109
|
for (const family of families) {
|
|
27081
27110
|
const face = resolveGoogleFontsFace(family);
|
|
27082
27111
|
const canonical = face?.family ?? servedGoogleFontsFamily(family, options2);
|
|
27083
27112
|
if (canonical === null) continue;
|
|
27084
27113
|
onResolved?.(family);
|
|
27085
|
-
const lookAlikeBold = !face && options2?.lookAlikes ? findLookAlikeBoldWeight(family) : void 0;
|
|
27086
|
-
const bold = lookAlikeBold ?? 700;
|
|
27087
|
-
boldByFamily.set(canonical, Math.max(boldByFamily.get(canonical) ?? 0, bold));
|
|
27088
27114
|
let weights = weightsByFamily.get(canonical);
|
|
27089
27115
|
if (!weights) {
|
|
27090
27116
|
weights = /* @__PURE__ */ new Set();
|
|
27091
27117
|
weightsByFamily.set(canonical, weights);
|
|
27092
27118
|
}
|
|
27119
|
+
const lookAlike = !face && options2?.lookAlikes ? findLookAlikeWeights(family) : void 0;
|
|
27120
|
+
if (lookAlike && findLookAlikeGoogleFontsFamily(family) === canonical) {
|
|
27121
|
+
weights.add(lookAlike.regular);
|
|
27122
|
+
weights.add(lookAlike.bold);
|
|
27123
|
+
} else {
|
|
27124
|
+
standardFamilies.add(canonical);
|
|
27125
|
+
}
|
|
27093
27126
|
if (face?.weight !== void 0) {
|
|
27094
27127
|
weights.add(face.weight);
|
|
27095
27128
|
weights.add(Math.max(700, face.weight));
|
|
27096
27129
|
}
|
|
27097
27130
|
}
|
|
27098
27131
|
return [...weightsByFamily].sort(([a2], [b]) => a2 < b ? -1 : a2 > b ? 1 : 0).map(
|
|
27099
|
-
([family, weights]) => buildGoogleFontsFragment(family, weights,
|
|
27132
|
+
([family, weights]) => buildGoogleFontsFragment(family, weights, standardFamilies.has(family))
|
|
27100
27133
|
);
|
|
27101
27134
|
}
|
|
27102
27135
|
|
|
@@ -74185,8 +74185,13 @@ var init_look_alikes = __esm({
|
|
|
74185
74185
|
"text/webfonts/look-alikes.ts"() {
|
|
74186
74186
|
init_google_fonts_lookup();
|
|
74187
74187
|
LOOK_ALIKES = {
|
|
74188
|
-
aptos: { family: "Gantari", boldWeight: 650 },
|
|
74189
|
-
"aptos display": { family: "Gantari", boldWeight: 650 }
|
|
74188
|
+
aptos: { family: "Gantari", regularWeight: 400, boldWeight: 650 },
|
|
74189
|
+
"aptos display": { family: "Gantari", regularWeight: 400, boldWeight: 650 },
|
|
74190
|
+
"aptos mono": { family: "Sometype Mono", regularWeight: 500, boldWeight: 700 },
|
|
74191
|
+
consolas: { family: "Overpass Mono", regularWeight: 500, boldWeight: 700 },
|
|
74192
|
+
"comic sans ms": { family: "Comic Relief", regularWeight: 400, boldWeight: 700 },
|
|
74193
|
+
garamond: { family: "EB Garamond", regularWeight: 400, boldWeight: 600 },
|
|
74194
|
+
impact: { family: "Anton", regularWeight: 400, boldWeight: 400 }
|
|
74190
74195
|
};
|
|
74191
74196
|
}
|
|
74192
74197
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { duplicateSlide, emuToPixels, ThemePresets, getThemePreset, ChartBuilder, setChartDataPointStyle, setChartHelperLine, setChartColorMapOverride, listChartUserShapes, addChartUserShape, updateChartUserShape, removeChartUserShape, diffPresentations, findPlaceholders, applyTemplate, getSectionForSlide, moveSlidesToSection, reorderSections, removeSection, addSection, replaceWithCustomGeometry, replaceShapeGeometry, setElementLocked } from '../../chunk-
|
|
1
|
+
import { duplicateSlide, emuToPixels, ThemePresets, getThemePreset, ChartBuilder, setChartDataPointStyle, setChartHelperLine, setChartColorMapOverride, listChartUserShapes, addChartUserShape, updateChartUserShape, removeChartUserShape, diffPresentations, findPlaceholders, applyTemplate, getSectionForSlide, moveSlidesToSection, reorderSections, removeSection, addSection, replaceWithCustomGeometry, replaceShapeGeometry, setElementLocked } from '../../chunk-ZCKEKP7N.mjs';
|
|
2
2
|
import '../../chunk-6Q7TP72Y.mjs';
|
|
3
|
-
import { mergePresentation } from '../../chunk-
|
|
4
|
-
import { PptxMarkdownConverter } from '../../chunk-
|
|
5
|
-
import { rebuildTableStructureInRawXml, TABLE_STYLE_PART_SEQUENCE, normalizeTableStyleGuid, createTableStyleEntry, addTableStyleToMap, deleteTableStyleFromMap, setChartType, setChartTitle, setChartGrouping, setChartLegend, setChartDataLabels, setChartAxis, setChartCategories, addChartSeries, removeChartSeries, updateChartSeriesValues, setChartDataPointExplosion, setChartDataPointMarker, setChartDataPointLabel, setChartSeriesMarker, setChartSeriesTrendline, setChartSeriesErrorBars, findLayoutByName, findLayoutByType, PptxHandler } from '../../chunk-
|
|
6
|
-
import { hasTextProperties, resolveDisplayedChartTypeName, isTemplateElementId, makeStoreAwareId, reassignDescendantIds, groupElements, ungroupElements, decomposeSmartArt, demoteSmartArtNode, promoteSmartArtNode, reorderSmartArtNode, updateSmartArtNodeText, removeSmartArtNode, addSmartArtNode, SvgExporter, buildPptxJsonDocument, deserializePptxFromJson, applyImportedPptxData, validatePptx, repairPptx, resolveOleEditorKindFromPayload, getOleNestedDeckDetail, getOleDocumentParagraphs, getOleSheetGrid, applyOleSheetCellEdit, applyOleDocumentParagraphEdit, applyOleNestedDeckElementTextEdit, setOleObjectName, parseDataUrlToBytes, replaceOleFile, ELEMENT_FIELD_KIND, SLIDE_FIELD_KIND, EMU_PER_POINT, mapCustomShowActions } from '../../chunk-
|
|
3
|
+
import { mergePresentation } from '../../chunk-VLKUMQGT.mjs';
|
|
4
|
+
import { PptxMarkdownConverter } from '../../chunk-7UM5IFPR.mjs';
|
|
5
|
+
import { rebuildTableStructureInRawXml, TABLE_STYLE_PART_SEQUENCE, normalizeTableStyleGuid, createTableStyleEntry, addTableStyleToMap, deleteTableStyleFromMap, setChartType, setChartTitle, setChartGrouping, setChartLegend, setChartDataLabels, setChartAxis, setChartCategories, addChartSeries, removeChartSeries, updateChartSeriesValues, setChartDataPointExplosion, setChartDataPointMarker, setChartDataPointLabel, setChartSeriesMarker, setChartSeriesTrendline, setChartSeriesErrorBars, findLayoutByName, findLayoutByType, PptxHandler } from '../../chunk-VK2G4BGX.mjs';
|
|
6
|
+
import { hasTextProperties, resolveDisplayedChartTypeName, isTemplateElementId, makeStoreAwareId, reassignDescendantIds, groupElements, ungroupElements, decomposeSmartArt, demoteSmartArtNode, promoteSmartArtNode, reorderSmartArtNode, updateSmartArtNodeText, removeSmartArtNode, addSmartArtNode, SvgExporter, buildPptxJsonDocument, deserializePptxFromJson, applyImportedPptxData, validatePptx, repairPptx, resolveOleEditorKindFromPayload, getOleNestedDeckDetail, getOleDocumentParagraphs, getOleSheetGrid, applyOleSheetCellEdit, applyOleDocumentParagraphEdit, applyOleNestedDeckElementTextEdit, setOleObjectName, parseDataUrlToBytes, replaceOleFile, ELEMENT_FIELD_KIND, SLIDE_FIELD_KIND, EMU_PER_POINT, mapCustomShowActions } from '../../chunk-MX2GFMZS.mjs';
|
|
7
7
|
import '../../chunk-U7YXYOA7.mjs';
|
|
8
8
|
import '../../chunk-2N7RZQLC.mjs';
|
|
9
9
|
import { cloneElement } from '../../chunk-VDUNZTJC.mjs';
|
package/dist/pptx/cli/index.cjs
CHANGED
|
@@ -2370,8 +2370,13 @@ var init_look_alikes = __esm({
|
|
|
2370
2370
|
"text/webfonts/look-alikes.ts"() {
|
|
2371
2371
|
init_google_fonts_lookup();
|
|
2372
2372
|
LOOK_ALIKES = {
|
|
2373
|
-
aptos: { family: "Gantari", boldWeight: 650 },
|
|
2374
|
-
"aptos display": { family: "Gantari", boldWeight: 650 }
|
|
2373
|
+
aptos: { family: "Gantari", regularWeight: 400, boldWeight: 650 },
|
|
2374
|
+
"aptos display": { family: "Gantari", regularWeight: 400, boldWeight: 650 },
|
|
2375
|
+
"aptos mono": { family: "Sometype Mono", regularWeight: 500, boldWeight: 700 },
|
|
2376
|
+
consolas: { family: "Overpass Mono", regularWeight: 500, boldWeight: 700 },
|
|
2377
|
+
"comic sans ms": { family: "Comic Relief", regularWeight: 400, boldWeight: 700 },
|
|
2378
|
+
garamond: { family: "EB Garamond", regularWeight: 400, boldWeight: 600 },
|
|
2379
|
+
impact: { family: "Anton", regularWeight: 400, boldWeight: 400 }
|
|
2375
2380
|
};
|
|
2376
2381
|
}
|
|
2377
2382
|
});
|
package/dist/pptx/cli/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { replaceText, findText, mergePresentation } from '../../chunk-
|
|
3
|
-
import { PptxMarkdownConverter } from '../../chunk-
|
|
4
|
-
import { PptxHandler } from '../../chunk-
|
|
5
|
-
import { SvgExporter, isImageLikeElement, blobUrlToDataUrl } from '../../chunk-
|
|
2
|
+
import { replaceText, findText, mergePresentation } from '../../chunk-VLKUMQGT.mjs';
|
|
3
|
+
import { PptxMarkdownConverter } from '../../chunk-7UM5IFPR.mjs';
|
|
4
|
+
import { PptxHandler } from '../../chunk-VK2G4BGX.mjs';
|
|
5
|
+
import { SvgExporter, isImageLikeElement, blobUrlToDataUrl } from '../../chunk-MX2GFMZS.mjs';
|
|
6
6
|
import '../../chunk-U7YXYOA7.mjs';
|
|
7
7
|
import '../../chunk-2N7RZQLC.mjs';
|
|
8
8
|
import '../../chunk-VDUNZTJC.mjs';
|
|
@@ -2337,8 +2337,13 @@ var init_look_alikes = __esm({
|
|
|
2337
2337
|
"text/webfonts/look-alikes.ts"() {
|
|
2338
2338
|
init_google_fonts_lookup();
|
|
2339
2339
|
LOOK_ALIKES = {
|
|
2340
|
-
aptos: { family: "Gantari", boldWeight: 650 },
|
|
2341
|
-
"aptos display": { family: "Gantari", boldWeight: 650 }
|
|
2340
|
+
aptos: { family: "Gantari", regularWeight: 400, boldWeight: 650 },
|
|
2341
|
+
"aptos display": { family: "Gantari", regularWeight: 400, boldWeight: 650 },
|
|
2342
|
+
"aptos mono": { family: "Sometype Mono", regularWeight: 500, boldWeight: 700 },
|
|
2343
|
+
consolas: { family: "Overpass Mono", regularWeight: 500, boldWeight: 700 },
|
|
2344
|
+
"comic sans ms": { family: "Comic Relief", regularWeight: 400, boldWeight: 700 },
|
|
2345
|
+
garamond: { family: "EB Garamond", regularWeight: 400, boldWeight: 600 },
|
|
2346
|
+
impact: { family: "Anton", regularWeight: 400, boldWeight: 400 }
|
|
2342
2347
|
};
|
|
2343
2348
|
}
|
|
2344
2349
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../chunk-6Q7TP72Y.mjs';
|
|
2
|
-
export { DocumentConverter, MediaContext, PptxMarkdownConverter, SlideMetadataRenderer, SlideProcessor, dataUrlToMediaBytes, deriveOutputPath, generateMediaFilename, getDirectory, normalizePath } from '../../chunk-
|
|
3
|
-
export { PPTX_JSON_FILE_EXTENSION, PPTX_JSON_FORMAT, PPTX_JSON_MIME_TYPE, PPTX_JSON_VERSION, PRESENTATION_FIELD_KEYS, PRESENTATION_FIELD_NAMES, PptxJsonConverter, PptxJsonFormatError, SvgExporter, applyImportedPptxData, base64ToBytes, buildPptxJsonDocument, bytesToBase64, decodeJsonValue, decodePptxJsonText, deserializePptxFromJson, encodeJsonValue, isPptxJsonText, parsePptxJson, parsePptxJsonDocument, pptxDataFromJsonDocument, serializePptxToJson } from '../../chunk-
|
|
2
|
+
export { DocumentConverter, MediaContext, PptxMarkdownConverter, SlideMetadataRenderer, SlideProcessor, dataUrlToMediaBytes, deriveOutputPath, generateMediaFilename, getDirectory, normalizePath } from '../../chunk-7UM5IFPR.mjs';
|
|
3
|
+
export { PPTX_JSON_FILE_EXTENSION, PPTX_JSON_FORMAT, PPTX_JSON_MIME_TYPE, PPTX_JSON_VERSION, PRESENTATION_FIELD_KEYS, PRESENTATION_FIELD_NAMES, PptxJsonConverter, PptxJsonFormatError, SvgExporter, applyImportedPptxData, base64ToBytes, buildPptxJsonDocument, bytesToBase64, decodeJsonValue, decodePptxJsonText, deserializePptxFromJson, encodeJsonValue, isPptxJsonText, parsePptxJson, parsePptxJsonDocument, pptxDataFromJsonDocument, serializePptxToJson } from '../../chunk-MX2GFMZS.mjs';
|
|
4
4
|
import '../../chunk-U7YXYOA7.mjs';
|
|
5
5
|
import '../../chunk-VDUNZTJC.mjs';
|
|
6
6
|
import '../../chunk-7DJEJTN7.mjs';
|
package/dist/pptx/index.cjs
CHANGED
|
@@ -82862,8 +82862,13 @@ var init_look_alikes = __esm({
|
|
|
82862
82862
|
"text/webfonts/look-alikes.ts"() {
|
|
82863
82863
|
init_google_fonts_lookup();
|
|
82864
82864
|
LOOK_ALIKES = {
|
|
82865
|
-
aptos: { family: "Gantari", boldWeight: 650 },
|
|
82866
|
-
"aptos display": { family: "Gantari", boldWeight: 650 }
|
|
82865
|
+
aptos: { family: "Gantari", regularWeight: 400, boldWeight: 650 },
|
|
82866
|
+
"aptos display": { family: "Gantari", regularWeight: 400, boldWeight: 650 },
|
|
82867
|
+
"aptos mono": { family: "Sometype Mono", regularWeight: 500, boldWeight: 700 },
|
|
82868
|
+
consolas: { family: "Overpass Mono", regularWeight: 500, boldWeight: 700 },
|
|
82869
|
+
"comic sans ms": { family: "Comic Relief", regularWeight: 400, boldWeight: 700 },
|
|
82870
|
+
garamond: { family: "EB Garamond", regularWeight: 400, boldWeight: 600 },
|
|
82871
|
+
impact: { family: "Anton", regularWeight: 400, boldWeight: 400 }
|
|
82867
82872
|
};
|
|
82868
82873
|
}
|
|
82869
82874
|
});
|
package/dist/pptx/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { ChartBuilder, ConnectorBuilder, GroupBuilder, ImageBuilder, MediaBuilder, OPENXML_COVERAGE, OPENXML_SCHEMA_CONSTRUCT_IDS, OPENXML_STRICT_SCHEMA_CONSTRUCT_IDS, OPENXML_TRANSITIONAL_SCHEMA_CONSTRUCT_IDS, Presentation, SLIDE_PACKAGE_CLIPBOARD_MIME, ShapeBuilder, SlideSizes, THEME_PRESETS, TRANSITION_PATTERN_OPTIONS, TRANSITION_THRUBLK_TYPES, TRANSITION_VALID_DIRECTIONS, TableBuilder, TextBuilder, ThemePresets, addChartUserShape, addChartUserShapeGroupChild, addSection, applyTemplate, cm, cmToEmu, collectLayoutNames, collectMasterNames, createPresentationFromOutline, createSlideClipboardPackage, deleteLayout, deleteSlideMaster, deserializeSlidePackageClipboard, diffPresentations, diffSlides, duplicateElement, duplicateLayout, duplicateSlide, duplicateSlideMaster, emuToPixels, findOpenXmlCoverage, findPlaceholders, getChartUserShapeAtPath, getSectionForSlide, getThemePreset, importSlidePackage, inches, inchesToEmu, insertLayout, insertSlideMaster, inspectPresentationText, interpolateShapeGeometry, listChartUserShapes, listUnassessedOpenXmlCoverage, mailMerge, mergePptxSnapshots, mm, moveSlidesToSection, parseSvgPath, pixelsToEmu, pt, removeChartUserShape, removeChartUserShapeAtPath, removeSection, renameLayout, renameSlideMaster, reorderSections, replaceShapeGeometry, replaceWithCustomGeometry, resetCloneIdCounter, resetSectionIdCounter, serializeSlidePackageClipboard, serializeSvgPath, setChartColorMapOverride, setChartDataPointGradient, setChartDataPointStyle, setChartHelperLine, setChartSeriesGradient, setElementLocked, setPresentationRunText, summarizeOpenXmlCoverage, summarizeOpenXmlCoverageByVocabulary, uniqueDisplayName, uniquePrefixedName, updateChartUserShape, updateChartUserShapeAtPath } from '../chunk-
|
|
1
|
+
export { ChartBuilder, ConnectorBuilder, GroupBuilder, ImageBuilder, MediaBuilder, OPENXML_COVERAGE, OPENXML_SCHEMA_CONSTRUCT_IDS, OPENXML_STRICT_SCHEMA_CONSTRUCT_IDS, OPENXML_TRANSITIONAL_SCHEMA_CONSTRUCT_IDS, Presentation, SLIDE_PACKAGE_CLIPBOARD_MIME, ShapeBuilder, SlideSizes, THEME_PRESETS, TRANSITION_PATTERN_OPTIONS, TRANSITION_THRUBLK_TYPES, TRANSITION_VALID_DIRECTIONS, TableBuilder, TextBuilder, ThemePresets, addChartUserShape, addChartUserShapeGroupChild, addSection, applyTemplate, cm, cmToEmu, collectLayoutNames, collectMasterNames, createPresentationFromOutline, createSlideClipboardPackage, deleteLayout, deleteSlideMaster, deserializeSlidePackageClipboard, diffPresentations, diffSlides, duplicateElement, duplicateLayout, duplicateSlide, duplicateSlideMaster, emuToPixels, findOpenXmlCoverage, findPlaceholders, getChartUserShapeAtPath, getSectionForSlide, getThemePreset, importSlidePackage, inches, inchesToEmu, insertLayout, insertSlideMaster, inspectPresentationText, interpolateShapeGeometry, listChartUserShapes, listUnassessedOpenXmlCoverage, mailMerge, mergePptxSnapshots, mm, moveSlidesToSection, parseSvgPath, pixelsToEmu, pt, removeChartUserShape, removeChartUserShapeAtPath, removeSection, renameLayout, renameSlideMaster, reorderSections, replaceShapeGeometry, replaceWithCustomGeometry, resetCloneIdCounter, resetSectionIdCounter, serializeSlidePackageClipboard, serializeSvgPath, setChartColorMapOverride, setChartDataPointGradient, setChartDataPointStyle, setChartHelperLine, setChartSeriesGradient, setElementLocked, setPresentationRunText, summarizeOpenXmlCoverage, summarizeOpenXmlCoverageByVocabulary, uniqueDisplayName, uniquePrefixedName, updateChartUserShape, updateChartUserShapeAtPath } from '../chunk-ZCKEKP7N.mjs';
|
|
2
2
|
import '../chunk-6Q7TP72Y.mjs';
|
|
3
|
-
export { findText, mergePresentation, replaceText, replaceTextInSlide } from '../chunk-
|
|
4
|
-
export { DocumentConverter, MediaContext, PptxMarkdownConverter, SlideProcessor, dataUrlToMediaBytes, deriveOutputPath, generateMediaFilename, getDirectory, normalizePath } from '../chunk-
|
|
5
|
-
export { AFTER_ANIMATION_VALUES, ConnectorXmlFactory, DEFAULT_AFTER_ANIMATION_DIM_COLOR, DEFAULT_ANIMATION_DURATION_MS, DEFAULT_ANIMATION_TRIGGER, DEFAULT_POWERPOINT_TABLE_STYLE_ID, DEFAULT_PPTX_LOAD_LIMITS, ELEMENT_PARAGRAPH_GEOMETRY_KEYS, EncryptedPptError, MediaGraphicFrameXmlFactory, OOXML_TO_PRESET_EMPH, OOXML_TO_PRESET_ENTR, OOXML_TO_PRESET_EXIT, PRESET_TO_OOXML, PictureXmlFactory, PptxAnimationWriteService, PptxColorStyleCodec, PptxCommentAuthorsXmlFactory, PptxCommentXmlFactoryProvider, PptxCompatibilityService, PptxConnectorParser, PptxContentTypesBuilder, PptxDocumentPropertiesUpdater, PptxEditorAnimationService, PptxElementTransformUpdater, PptxElementXmlBuilder, PptxGraphicFrameParser, PptxHandler, PptxHandlerRuntime, PptxHandlerRuntimeFactory, PptxLoadDataBuilder, PptxLoadLimitError, PptxMediaDataParser, PptxNativeAnimationService, PptxPresentationSaveBuilder, PptxPresentationSlidesReconciler, PptxRuntimeDependencyFactory, PptxSaveConstantsFactory, PptxSaveState as PptxSaveSession, PptxSaveStateBuilder as PptxSaveSessionBuilder, PptxSaveState, PptxSaveStateBuilder, PptxShapeIdValidator, PptxShapeStyleExtractor, PptxSlideBackgroundBuilder, PptxSlideBuilder, PptxSlideCommentPartWriter, PptxSlideCommentsXmlFactory, PptxSlideElementsBuilder, PptxSlideLoaderService, PptxSlideMediaRelationshipBuilder, PptxSlideNotesBuilder, PptxSlideNotesPartUpdater, PptxSlideRelationshipRegistry, PptxSlideTransitionService, PptxTableDataParser, PptxTemplateBackgroundService, PptxXmlBuilder, PptxXmlFactoryProvider, PptxXmlLookupService, PresentationBuilder, SlideBuilder, TABLE_STYLE_PART_SEQUENCE, TextShapeXmlFactory, addChartCategory, addChartSeries, addTableStyleToMap, animationFor, applyAfterAnimationBehavior, applyAfterAnimationFromEditorList, applyConnectorShapeIds, applySoundToEffectCTn, applySpeedToDuration, applyTableCellTextAndStyle, breakAutoNumberRun, buildBlankPresentationArchive, buildSingleEffectNode, buildSlideReferenceRemap, capturedPresetIds, capturedPresetNativeAnimation, capturedSubtypes, chartFormatTargetSupports, chartSupportsSecondaryAxis, convertPptToPptx, createAutoNumberSequence, createChartElement, createConnectorElement, createDefaultPptxHandlerRuntime, createFreeformElement, createGroupElement, createImageElement, createLayout, createLayouts, createMediaElement, createPptxSaveConstants, createShapeElement, createTableCellXml, createTableElement, createTableGraphicFrameRawXml, createTableStyleEntry, createTextElement, deleteTableStyleFromMap, extractAfterAnimationFromSubTnLst, extractGraphicBuilds, extractTableCellTextRuns, findLayoutByName, findLayoutByType, generateLayoutXml, generateTableStyleGuid, getAfterAnimation, getAfterAnimationState, getCapturedPreset, getCapturedTree, getPptxLoadLimitViolation, hasAnimation, isChartSeriesOnSecondaryAxis, isEncryptedLegacyPpt, isLegacyPpt, isNativeAfterAnimationOnly, mergeNativeAfterAnimationIntoEditorAnimations, mergeNativeSoundIntoEditorAnimations, nextAutoNumber, normalizeTableStyleGuid, ooxmlToPresetName, parseAnimEffectFilter, parseCondition, parseConditionList, parseFilterToken, parseTimeTargetElement, readChartElementFormat, rebuildTableStructureInRawXml, reconcileAnimationTargets, remapEditorAnimationsToShapeIds, removeChartCategory, removeChartSeries, resetChartElementFormat, resetIdCounter, resolveConnectorShapeIds, resolveDirectionSubtype, resolveEffectTiming, resolveIterationCount, resolveOoxmlPresetMapping, resolveOpacitySet, resolveTableBackgroundEffectRef, resolveTableBackgroundFillRef, resolveTableStyleLineRef, resolveTableStyleLineRefColor, resolveVisibilitySetTiming, serializeCondition, serializeConditionList, serializeGraphicBuild, serializeTimeTargetElement, setAfterAnimation, setAfterAnimationColor, setChartAreaFormat, setChartAxis, setChartAxisGridlineStyle, setChartAxisLogScale, setChartAxisTitleStyle, setChartCategories, setChartDataLabels, setChartDataPointExplosion, setChartDataPointFill, setChartDataPointLabel, setChartDataPointMarker, setChartGroupOptions, setChartGrouping, setChartLegend, setChartSeriesChartType, setChartSeriesColor, setChartSeriesErrorBars, setChartSeriesMarker, setChartSeriesTrendline, setChartTitle, setChartType, shouldHoldEndState, timingCurveToAccelDecel, toChartGradientFill, updateCellTextInRawXml, updateCellTextStyleInRawXml, updateChartDataPoint, updateChartSeriesValues, updateMergeAttrsInRawXml, upsert, withChartAxisOptions, withChartDataLabelOptions, withChartElementFormat, withChartLegendOptions, withChartSeriesOnSecondaryAxis, withChartSeriesOptions } from '../chunk-
|
|
6
|
-
export { ALL_ANIMATION_PRESETS, ARABIC_ABJADI_LETTERS, ARABIC_HIJAI_LETTERS, BACKGROUND_STYLE_PRESETS, BLIP_FILL_ORDER, CLOUD_CALLOUT_TAIL_COUNT, CLOUD_LOBE_COUNT, COLOR_MAP_ALIAS_KEYS, CONNECTOR_ARROW_OPTIONS, CONNECTOR_GEOMETRY_OPTIONS, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_COLOR_MAP, DEFAULT_FILL_COLOR, DEFAULT_FONT_FAMILY, DEFAULT_SCHEME_COLOR_MAP, DEFAULT_STROKE_COLOR, DEFAULT_TEXT_COLOR, DEFAULT_TEXT_FONT_SIZE, DataIntegrityError, EFFECT_LST_ORDER, ELEMENT_FIELD_KIND, EMPHASIS_PRESETS, EMPTY_CONSTRAINT_INDEX, EMU_PER_INCH, EMU_PER_PIXEL, EMU_PER_POINT, EMU_PER_PX, ENTRANCE_PRESETS, EXIT_PRESETS, EncryptedFileError, FONT_SUBSTITUTION_MAP, FreeformPathBuilder, HEBREW_LETTERS, HINDI_CONSONANTS, HINDI_VOWELS, IncorrectPasswordError, MAX_SHAPE_ID, MAX_TABLE_DIMENSION, MIN_ELEMENT_SIZE, MIN_TABLE_DIMENSION, MOTION_PATH_PRESETS, OOXML_ANGLE_UNITS_PER_DEGREE, OOXML_PERCENT_UNITS, Ole2ParseError, P14_GUIDE_URI, P15_GUIDE_URI, PANOSE_FAMILY_MAP, PANOSE_MONOSPACE_PROPORTION, PANOSE_SANS_SERIF_STYLES, PANOSE_WEIGHT_MAP, POWERPOINT_PRESENCE_KEY, PPTX_JSON_FILE_EXTENSION, PPTX_JSON_FORMAT, PPTX_JSON_MIME_TYPE, PPTX_JSON_VERSION, PRESENTATION_CHILD_ORDER, PRESENTATION_FIELD_KEYS, PRESENTATION_FIELD_NAMES, PRESET_COLOR_MAP, PRESET_GEOMETRY_ALIASES, PRESET_SHAPE_CATEGORY_LABELS, PRESET_SHAPE_CLIP_PATHS, PRESET_SHAPE_DEFINITIONS, PRESET_SHAPE_GEOMETRY_TABLE, PptxJsonConverter, PptxJsonFormatError, RasterCanvas, SHAPE_TREE_ELEMENT_TAGS, SLIDE_FIELD_KIND, SMART_ART_DEFINITION_PARTS, SP_PR_ORDER, STROKE_DASH_OPTIONS, ST_SHAPE_TYPE_VALUES, SWITCHABLE_LAYOUT_TYPES, SYSTEM_COLOR_MAP, SvgExporter, TC_PR_BORDERS_ORDER, TEXT_AUTONUMBER_SCHEMES, TEXT_ORIENTATION_IDENTITY, THAI_CONSONANTS, THEME_COLOR_SCHEME_KEYS, THEME_EFFECT_SCHEMES, VML_SHAPE_TAGS, WHITESPACE_PRESERVING_TAGS, addSmartArtNode, addSmartArtNodeAbove, addSmartArtNodeAsChild, addSmartArtNodeBefore, algorithmParam, alphaLabel, applyActiveXControlsToSlide, applyBubbleChartOptions, applyChartLayouts, applyChartManualLayout, applyChartUpDownBars, applyCustomGeometryGuideOverrides, applyCustomLayoutOverrides, applyCustomShows, applyDiagramRelationshipIds, applyDrawingLineDash, applyDrawingMediaReference, applyImportedPptxData, applyKinsokuToXml, applyOleDocumentParagraphEdit, applyOleNestedDeckBytes, applyOleNestedDeckElementTextEdit, applyOleSheetCellEdit, applySections, applySmartArtQuickStyle3d, applySmartArtRoleColors, applyThemeOverrideToSlide, applyThemeToData, areNamespacesSupported, arrangeComposite, arrangeConn, arrangeCycle, arrangeHierarchy, arrangeLinear, arrangePyramid, arrangeSnake, arrangeSpacer, arrangeText, backgroundRefNode, backgroundRefNodeForPreset, backgroundStyleColorMap, backgroundStylePreset, backgroundStylePresetFor, backgroundStyleRefIsCurrent, bijectiveLabel, buildActiveXControlNode, buildCalloutLeaderLineSvgPath, buildClrMapOverrideXml, buildColorMapForBackgroundPair, buildConstraintIndex, buildCustomGeometryPathsFromNodes, buildFontFamilyString, buildForest, buildGuideListExtension, buildInkMlContent, buildLinkedTextBoxChains, buildOle2, buildPptxJsonDocument, buildSmartArtColorLists, buildSmartArtColorRoleMap, buildSrgbColorChoice, buildThemeColorMap, buildTree, catmullRomToBezier, chartDataAddCategory, chartDataAddSeries, chartDataApplySheetEdit, chartDataApplySheetEdits, chartDataChangeType, chartDataRemoveCategory, chartDataRemoveSeries, chartDataToSheet, chartDataUpdatePoint, chartFormatTargetKey, chartGridAddCategory, chartGridAddSeries, chartGridRemoveCategory, chartGridRemoveSeries, chartGridSetCategoryLabel, chartGridSetCellValue, chartModelLabelPositions, checkBlankSlide, checkComplexTables, checkDuplicateTitles, checkLowContrast, checkMissingAltText, checkMissingSlideTitle, checkPresentation, chevronPoints, chooseAlgType, circleNode, clampByRules, classifyPanose, colorsEqual, colour, combineShapes, computeContrastRatio, computeSmartArtElementsWithoutCache, containsConvertibleStrictNamespaceAttribute, convertMetafileToDataUrl, convertXmlToStrict, createArrayBufferCopy, createBuiltinVariables, createDrawingObjectId, createEditorId, createModifyVerifier, createSaltlessModifyVerifierForTesting, createTemplateConnectorRawXml, createTemplateShapeRawXml, createUniformTextSegments, cropShapeForPresetGeometry, cssDegreesToOoxmlGradientAngle, customGeometryPathsToSvgSubpaths, customShowActionId, decodeOle10Native, decodePngDimensions, decodePptxJsonText, decodeXmlEntities, decomposeSmartArt, decryptPptx, demoteSmartArtNode, deobfuscateFont, deriveSlideTitle, deriveSlideTitles, deserializePptxFromJson, detectDigitalSignatures, detectFileFormat, detectFontFormat, detectOleObjectType, detectOlePayloadEditorKind, detectStrictConformance, discoverArrangement, distributeSegmentsAcrossChain, douglasPeucker, elementActionToPptxAction, elementHasAction, encodeCompressedPng, encodeOle10Native, encodePng, encodeXmlAttributeValue, encodeXmlTextValue, encryptPptx, ensureArrayValue, ensureXmlChild, estimateMediaDurationMs, estimateTextBoxCapacity, evaluateCustomGeometryPathData, evaluateCustomGeometryPaths, evaluateGeometryPaths, evaluateGuides, evaluatePresetShape, extractColorChoiceXml, extractGuidFromPartName, extractModel3DTransform, extractStyleReferenceColorXml, fetchUrlToBytes, filterValidShapeAdjustmentEntries, findCnvPrNode, findConstraint, findCustomShow, findThemeEffectScheme, findThemeEffectSchemeByName, fitFontSize, flattenChartUserShapes, flattenNodes, formatAutoNumberMarker, formatCommentTimestamp, formatSchemeKey, formatScriptAutoNumber, fragmentShapes, gearPoints, generateFontGuid, getAdjustmentAwareClipPath, getAdjustmentAwareShapeClipPath, getAnimationPresetInfo, getCalloutLeaderLineGeometry, getCalloutTier, getCalloutViewBoxBounds, getCloudCalloutClipPath, getCloudClipPath, getCloudPathForRendering, getCommentMarkerPosition, getConnectorAdjustment, getConnectorPathGeometry, getCssBorderDashStyle, getCustomShowNames, getCustomShowPositionLabel, getElementLabel, getElementOrientationMatrix, getElementTextContent, getElementTransform, getImageMaskStyle, getLinkedTextBoxSegments, getNativeAnimationPresetMetadata, getOleDocumentParagraphs, getOleNestedDeckBytes, getOleNestedDeckDetail, getOleObjectTypeLabel, getOleSheetGrid, getPanoseWeight, getPresetConnectionSites, getPresetShapeClipPath, getPresetTextRect, getPresetsByCategory, getRoundRectRadiusPx, getSectionSlideRange, getShapeClipPath, getShapeClipPathFromPreset, getShapeType, getSignaturePathsToStrip, getSubstituteFontFamily, getSubstituteFonts, getSupportedNamespaces, getSvgStrokeDasharray, getTextCompensationTransform, getZoomElements, getZoomTargetSlideIndexes, groupElements, guidToKey, guideEmuToPx, guidePxToEmu, hasDirectSubstitution, hasNonTrivialOverride, hasReference, hasShapeProperties, hasTextProperties, hebrewAlphaLabel, inferOleExtensionFromTarget, inheritedPlaceholderFieldType, inkBounds, inkElementToStrokes, inkLengthToPx, inkPointMapper, inspectSignaturesFromBuffer, interpretSmartArtLayout, interpretedLayoutToElements, intersectPolygons, intersectShapes, intersectSvgPaths, isAlternateContentChoiceSupported, isAlternateContentChoiceXmlSupported, isCalloutShape, isConnectorElement, isDarkColorMap, isDefaultSmartArtLabelScene, isEditableTextElement, isHeaderFooterPlaceholder, isImageLikeElement, isInkElement, isNamespaceSupported, isOle2CompoundFile, isParetoChartData, isPptxJsonText, isShapeElement, isStShapeType, isStrictNamespaceUri, isSummaryZoomSlide, isSwitchableLayoutType, isTemplateElement, isTemplateElementId, isTextElement, isTextOrientationMatrix, isTransitionalNamespaceUri, isXmlNode, isZoomElement, isZoomElement2 as isZoomElementUtil, itemNode, loadThemeVariants, lookupPresetConnectionSites, lookupPresetShape, lookupPresetTextRectOverride, makeStoreAwareId, mapCustomShowActions, mergeShapes, mergeStyleParts, mergeThemeColorOverride, mimeTypeForOleFile, multiplyTextOrientationMatrices, navigateCustomShow, nodeFill, nodeOpacity, nodeStroke, nodeTextStyle, normalizeCustomShowIds, normalizeNamespaceUri, normalizePositiveFixedAngleDegrees, normalizeStShapeType, normalizeStrictXml, normalizeStrokeDashType, numericParam, obfuscateFont, oleBytesToDataUrl, oleObjectTypeToGlyph, ooxmlArcToSvg, ooxmlGradientAngleToCssDegrees, orderedXmlKey, parseActiveXControlsFromSlide, parseAdjustmentValues, parseBodyPrBooleanAttrs, parseBubbleChartOptions, parseChart3DSurfaces, parseChartAxes, parseChartDataLabelOptions, parseChartFormatTargetKey, parseChartLayouts, parseChartManualLayout, parseChartUpDownBars, parseCustomShows, parseCxChartSeries, parseDataTable, parseDataUrlToBytes, parseDiagramRelationshipIds, parseDrawingColor, parseDrawingColorChoice, parseDrawingColorOpacity, parseDrawingLineDash, parseDrawingMediaReference, parseEmbeddedXlsx, parseGuideDefinitions, parseHexColor, parseInkMlContent, parseKinsoku, parseLineStyle, parseMarker, parseModel3DScene, parseOle2, parsePanoseBytes, parsePanoseString, parsePptxJson, parsePptxJsonDocument, parsePresentationDrawingGuides, parsePresentationSmartTags, parseSeriesDataLabels, parseSeriesDataPoints, parseSeriesErrBars, parseSeriesExplosion, parseSeriesTrendlines, parseShapeId, parseShapeProps, parseSignatureXml, parseSignaturesFromBuffer, parseSlideDrawingGuides, parseSmartArtColorListHexes, parseSmartArtColorStyleLabels, parseSmartArtDefinitionHeaderList, parseSmartArtDefinitionMetadata, parseSmartArtPointCustomLayout, parseSmartArtQuickStyleLabels, parseSmartArtStyleLabelRefs, parseStructuredCustomGeometry, parseVmlElement, parseVmlElements, polygonNode, polygonsToSvgPath, positiveFixedAngleAttribute, pptxActionToElementAction, pptxDataFromJsonDocument, preservesSpreadsheetXmlWhitespace, preservesXmlWhitespace, presetGeometryForCropShape, promoteSmartArtNode, ratioConstraint, reResolveElementColors, reResolveElementFonts, reResolveElementsForColorMapChange, reResolveSlideColors, reResolveSlideFonts, readFileAsDataUrl, readOleDocParagraphs, readOleDocumentParagraphs, readOleNestedDeckDetail, readOleNestedDeckFirstSlideTextLines, readOleSheetGrid, readOleXlsGrid, reapplyAlternateContentToTree, reassignDescendantIds, rebaseCommentMentions, rectNode, reflowSmartArtLayout, reflowSmartArtPictures, regenerateSmartArtDrawingShapes, relativeLuminance, relayoutSmartArt, remapElementShapeIds, remapShapeIdReferences, removeSmartArtNode, renderOleDeckPreviewPng, renderOleDocumentPreviewPng, renderOleIconPng, renderOleSheetPreviewPng, reorderObjectKeys, reorderObjectKeysByLocalName, reorderSmartArtNode, reorderSmartArtNodeToIndex, repairPptx, repeatedLabel, replaceOleEmbedding, replaceOleFile, resetDecomposeCounter, resetSmartArtEditCounter, resolveConstraint, resolveConstraintDeclaredBy, resolveCoordinate, resolveCustomGeometryGuideContext, resolveCustomGeometryToken, resolveCustomShowSlideIndices, resolveDisplayedChartTypeName, resolveFlowDirection, resolveLayoutDisplayName, resolveModel3DMimeType, resolveModifyVerifierAlgorithmName, resolveOleEditorKindFromPayload, resolveRatioConstraint, resolveSmartArtEffectIntensity, resolveSmartArtNodeCoherent3DOff, resolveSmartArtNodeStyleRoles, resolveTableCellStyle, rgb, roleOf, romanNumeral, sampleFirstPixelColorFromBytes, selectAlternateContentBranch, selectArrangedNodes, serializeColorChoice, serializeColorChoiceWithRef, serializePptxToJson, serializeSmartArtDefinitionHeaderList, setOleObjectName, setSmartArtNodeStyle, shadowOffsetToDistanceAndDirection, shouldRenderFallbackLabel, shouldReturnToZoomSlide, slideBackgroundStyleRefFromNode, smartArtQuickStyleHas3d, stripParentDirSegments, stripXmlOrderSuffix, strokeFor, styleContext, styleShadow, styleStroke, subtractPolygons, subtractShapes, subtractSvgPaths, svgPathToPolygons, switchSmartArtLayout, syncPictureShapeTypeWithCropShape, themeColorSchemesEqual, toArabicAbjadNumeral, toChineseNumeral, toCjkDigitString, toDevanagariDigits, toEa1ChsNumeral, toEa1ChtNumeral, toFullWidthDigits, toHebrewNumeral, toStrictNamespaceUri, toThaiDigits, treeDepth, treeWidth, truncate, ungroupElements, unionPolygons, unionShapes, unionSvgPaths, unwrapAlternateContent, unwrapOleEmbedding, updateSmartArtNodeText, validatePptx, validateSmartArtColorStyleLabels, validateSmartArtDefinitionHeaderList, validateSmartArtDefinitionMetadata, verifyModifyPassword, verifyPassword, verifySignatureDigests, visitXmlObjects, withThemePlaceholderColor, writeBodyPrBooleanAttrs, writeOleDocParagraphEdit, writeOleDocumentParagraphEdit, writeOleNestedDeckElementText, writeOleSheetCellEdit, writeOleXlsNumericCellEdit, writeOleXlsStringCellEdit, xmlAttr, xmlAttrBool, xmlAttrNumber, xmlChild, xmlChildren, xmlPath, xmlText, zlibDeflate } from '../chunk-NJD62JHC.mjs';
|
|
3
|
+
export { findText, mergePresentation, replaceText, replaceTextInSlide } from '../chunk-VLKUMQGT.mjs';
|
|
4
|
+
export { DocumentConverter, MediaContext, PptxMarkdownConverter, SlideProcessor, dataUrlToMediaBytes, deriveOutputPath, generateMediaFilename, getDirectory, normalizePath } from '../chunk-7UM5IFPR.mjs';
|
|
5
|
+
export { AFTER_ANIMATION_VALUES, ConnectorXmlFactory, DEFAULT_AFTER_ANIMATION_DIM_COLOR, DEFAULT_ANIMATION_DURATION_MS, DEFAULT_ANIMATION_TRIGGER, DEFAULT_POWERPOINT_TABLE_STYLE_ID, DEFAULT_PPTX_LOAD_LIMITS, ELEMENT_PARAGRAPH_GEOMETRY_KEYS, EncryptedPptError, MediaGraphicFrameXmlFactory, OOXML_TO_PRESET_EMPH, OOXML_TO_PRESET_ENTR, OOXML_TO_PRESET_EXIT, PRESET_TO_OOXML, PictureXmlFactory, PptxAnimationWriteService, PptxColorStyleCodec, PptxCommentAuthorsXmlFactory, PptxCommentXmlFactoryProvider, PptxCompatibilityService, PptxConnectorParser, PptxContentTypesBuilder, PptxDocumentPropertiesUpdater, PptxEditorAnimationService, PptxElementTransformUpdater, PptxElementXmlBuilder, PptxGraphicFrameParser, PptxHandler, PptxHandlerRuntime, PptxHandlerRuntimeFactory, PptxLoadDataBuilder, PptxLoadLimitError, PptxMediaDataParser, PptxNativeAnimationService, PptxPresentationSaveBuilder, PptxPresentationSlidesReconciler, PptxRuntimeDependencyFactory, PptxSaveConstantsFactory, PptxSaveState as PptxSaveSession, PptxSaveStateBuilder as PptxSaveSessionBuilder, PptxSaveState, PptxSaveStateBuilder, PptxShapeIdValidator, PptxShapeStyleExtractor, PptxSlideBackgroundBuilder, PptxSlideBuilder, PptxSlideCommentPartWriter, PptxSlideCommentsXmlFactory, PptxSlideElementsBuilder, PptxSlideLoaderService, PptxSlideMediaRelationshipBuilder, PptxSlideNotesBuilder, PptxSlideNotesPartUpdater, PptxSlideRelationshipRegistry, PptxSlideTransitionService, PptxTableDataParser, PptxTemplateBackgroundService, PptxXmlBuilder, PptxXmlFactoryProvider, PptxXmlLookupService, PresentationBuilder, SlideBuilder, TABLE_STYLE_PART_SEQUENCE, TextShapeXmlFactory, addChartCategory, addChartSeries, addTableStyleToMap, animationFor, applyAfterAnimationBehavior, applyAfterAnimationFromEditorList, applyConnectorShapeIds, applySoundToEffectCTn, applySpeedToDuration, applyTableCellTextAndStyle, breakAutoNumberRun, buildBlankPresentationArchive, buildSingleEffectNode, buildSlideReferenceRemap, capturedPresetIds, capturedPresetNativeAnimation, capturedSubtypes, chartFormatTargetSupports, chartSupportsSecondaryAxis, convertPptToPptx, createAutoNumberSequence, createChartElement, createConnectorElement, createDefaultPptxHandlerRuntime, createFreeformElement, createGroupElement, createImageElement, createLayout, createLayouts, createMediaElement, createPptxSaveConstants, createShapeElement, createTableCellXml, createTableElement, createTableGraphicFrameRawXml, createTableStyleEntry, createTextElement, deleteTableStyleFromMap, extractAfterAnimationFromSubTnLst, extractGraphicBuilds, extractTableCellTextRuns, findLayoutByName, findLayoutByType, generateLayoutXml, generateTableStyleGuid, getAfterAnimation, getAfterAnimationState, getCapturedPreset, getCapturedTree, getPptxLoadLimitViolation, hasAnimation, isChartSeriesOnSecondaryAxis, isEncryptedLegacyPpt, isLegacyPpt, isNativeAfterAnimationOnly, mergeNativeAfterAnimationIntoEditorAnimations, mergeNativeSoundIntoEditorAnimations, nextAutoNumber, normalizeTableStyleGuid, ooxmlToPresetName, parseAnimEffectFilter, parseCondition, parseConditionList, parseFilterToken, parseTimeTargetElement, readChartElementFormat, rebuildTableStructureInRawXml, reconcileAnimationTargets, remapEditorAnimationsToShapeIds, removeChartCategory, removeChartSeries, resetChartElementFormat, resetIdCounter, resolveConnectorShapeIds, resolveDirectionSubtype, resolveEffectTiming, resolveIterationCount, resolveOoxmlPresetMapping, resolveOpacitySet, resolveTableBackgroundEffectRef, resolveTableBackgroundFillRef, resolveTableStyleLineRef, resolveTableStyleLineRefColor, resolveVisibilitySetTiming, serializeCondition, serializeConditionList, serializeGraphicBuild, serializeTimeTargetElement, setAfterAnimation, setAfterAnimationColor, setChartAreaFormat, setChartAxis, setChartAxisGridlineStyle, setChartAxisLogScale, setChartAxisTitleStyle, setChartCategories, setChartDataLabels, setChartDataPointExplosion, setChartDataPointFill, setChartDataPointLabel, setChartDataPointMarker, setChartGroupOptions, setChartGrouping, setChartLegend, setChartSeriesChartType, setChartSeriesColor, setChartSeriesErrorBars, setChartSeriesMarker, setChartSeriesTrendline, setChartTitle, setChartType, shouldHoldEndState, timingCurveToAccelDecel, toChartGradientFill, updateCellTextInRawXml, updateCellTextStyleInRawXml, updateChartDataPoint, updateChartSeriesValues, updateMergeAttrsInRawXml, upsert, withChartAxisOptions, withChartDataLabelOptions, withChartElementFormat, withChartLegendOptions, withChartSeriesOnSecondaryAxis, withChartSeriesOptions } from '../chunk-VK2G4BGX.mjs';
|
|
6
|
+
export { ALL_ANIMATION_PRESETS, ARABIC_ABJADI_LETTERS, ARABIC_HIJAI_LETTERS, BACKGROUND_STYLE_PRESETS, BLIP_FILL_ORDER, CLOUD_CALLOUT_TAIL_COUNT, CLOUD_LOBE_COUNT, COLOR_MAP_ALIAS_KEYS, CONNECTOR_ARROW_OPTIONS, CONNECTOR_GEOMETRY_OPTIONS, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_COLOR_MAP, DEFAULT_FILL_COLOR, DEFAULT_FONT_FAMILY, DEFAULT_SCHEME_COLOR_MAP, DEFAULT_STROKE_COLOR, DEFAULT_TEXT_COLOR, DEFAULT_TEXT_FONT_SIZE, DataIntegrityError, EFFECT_LST_ORDER, ELEMENT_FIELD_KIND, EMPHASIS_PRESETS, EMPTY_CONSTRAINT_INDEX, EMU_PER_INCH, EMU_PER_PIXEL, EMU_PER_POINT, EMU_PER_PX, ENTRANCE_PRESETS, EXIT_PRESETS, EncryptedFileError, FONT_SUBSTITUTION_MAP, FreeformPathBuilder, HEBREW_LETTERS, HINDI_CONSONANTS, HINDI_VOWELS, IncorrectPasswordError, MAX_SHAPE_ID, MAX_TABLE_DIMENSION, MIN_ELEMENT_SIZE, MIN_TABLE_DIMENSION, MOTION_PATH_PRESETS, OOXML_ANGLE_UNITS_PER_DEGREE, OOXML_PERCENT_UNITS, Ole2ParseError, P14_GUIDE_URI, P15_GUIDE_URI, PANOSE_FAMILY_MAP, PANOSE_MONOSPACE_PROPORTION, PANOSE_SANS_SERIF_STYLES, PANOSE_WEIGHT_MAP, POWERPOINT_PRESENCE_KEY, PPTX_JSON_FILE_EXTENSION, PPTX_JSON_FORMAT, PPTX_JSON_MIME_TYPE, PPTX_JSON_VERSION, PRESENTATION_CHILD_ORDER, PRESENTATION_FIELD_KEYS, PRESENTATION_FIELD_NAMES, PRESET_COLOR_MAP, PRESET_GEOMETRY_ALIASES, PRESET_SHAPE_CATEGORY_LABELS, PRESET_SHAPE_CLIP_PATHS, PRESET_SHAPE_DEFINITIONS, PRESET_SHAPE_GEOMETRY_TABLE, PptxJsonConverter, PptxJsonFormatError, RasterCanvas, SHAPE_TREE_ELEMENT_TAGS, SLIDE_FIELD_KIND, SMART_ART_DEFINITION_PARTS, SP_PR_ORDER, STROKE_DASH_OPTIONS, ST_SHAPE_TYPE_VALUES, SWITCHABLE_LAYOUT_TYPES, SYSTEM_COLOR_MAP, SvgExporter, TC_PR_BORDERS_ORDER, TEXT_AUTONUMBER_SCHEMES, TEXT_ORIENTATION_IDENTITY, THAI_CONSONANTS, THEME_COLOR_SCHEME_KEYS, THEME_EFFECT_SCHEMES, VML_SHAPE_TAGS, WHITESPACE_PRESERVING_TAGS, addSmartArtNode, addSmartArtNodeAbove, addSmartArtNodeAsChild, addSmartArtNodeBefore, algorithmParam, alphaLabel, applyActiveXControlsToSlide, applyBubbleChartOptions, applyChartLayouts, applyChartManualLayout, applyChartUpDownBars, applyCustomGeometryGuideOverrides, applyCustomLayoutOverrides, applyCustomShows, applyDiagramRelationshipIds, applyDrawingLineDash, applyDrawingMediaReference, applyImportedPptxData, applyKinsokuToXml, applyOleDocumentParagraphEdit, applyOleNestedDeckBytes, applyOleNestedDeckElementTextEdit, applyOleSheetCellEdit, applySections, applySmartArtQuickStyle3d, applySmartArtRoleColors, applyThemeOverrideToSlide, applyThemeToData, areNamespacesSupported, arrangeComposite, arrangeConn, arrangeCycle, arrangeHierarchy, arrangeLinear, arrangePyramid, arrangeSnake, arrangeSpacer, arrangeText, backgroundRefNode, backgroundRefNodeForPreset, backgroundStyleColorMap, backgroundStylePreset, backgroundStylePresetFor, backgroundStyleRefIsCurrent, bijectiveLabel, buildActiveXControlNode, buildCalloutLeaderLineSvgPath, buildClrMapOverrideXml, buildColorMapForBackgroundPair, buildConstraintIndex, buildCustomGeometryPathsFromNodes, buildFontFamilyString, buildForest, buildGuideListExtension, buildInkMlContent, buildLinkedTextBoxChains, buildOle2, buildPptxJsonDocument, buildSmartArtColorLists, buildSmartArtColorRoleMap, buildSrgbColorChoice, buildThemeColorMap, buildTree, catmullRomToBezier, chartDataAddCategory, chartDataAddSeries, chartDataApplySheetEdit, chartDataApplySheetEdits, chartDataChangeType, chartDataRemoveCategory, chartDataRemoveSeries, chartDataToSheet, chartDataUpdatePoint, chartFormatTargetKey, chartGridAddCategory, chartGridAddSeries, chartGridRemoveCategory, chartGridRemoveSeries, chartGridSetCategoryLabel, chartGridSetCellValue, chartModelLabelPositions, checkBlankSlide, checkComplexTables, checkDuplicateTitles, checkLowContrast, checkMissingAltText, checkMissingSlideTitle, checkPresentation, chevronPoints, chooseAlgType, circleNode, clampByRules, classifyPanose, colorsEqual, colour, combineShapes, computeContrastRatio, computeSmartArtElementsWithoutCache, containsConvertibleStrictNamespaceAttribute, convertMetafileToDataUrl, convertXmlToStrict, createArrayBufferCopy, createBuiltinVariables, createDrawingObjectId, createEditorId, createModifyVerifier, createSaltlessModifyVerifierForTesting, createTemplateConnectorRawXml, createTemplateShapeRawXml, createUniformTextSegments, cropShapeForPresetGeometry, cssDegreesToOoxmlGradientAngle, customGeometryPathsToSvgSubpaths, customShowActionId, decodeOle10Native, decodePngDimensions, decodePptxJsonText, decodeXmlEntities, decomposeSmartArt, decryptPptx, demoteSmartArtNode, deobfuscateFont, deriveSlideTitle, deriveSlideTitles, deserializePptxFromJson, detectDigitalSignatures, detectFileFormat, detectFontFormat, detectOleObjectType, detectOlePayloadEditorKind, detectStrictConformance, discoverArrangement, distributeSegmentsAcrossChain, douglasPeucker, elementActionToPptxAction, elementHasAction, encodeCompressedPng, encodeOle10Native, encodePng, encodeXmlAttributeValue, encodeXmlTextValue, encryptPptx, ensureArrayValue, ensureXmlChild, estimateMediaDurationMs, estimateTextBoxCapacity, evaluateCustomGeometryPathData, evaluateCustomGeometryPaths, evaluateGeometryPaths, evaluateGuides, evaluatePresetShape, extractColorChoiceXml, extractGuidFromPartName, extractModel3DTransform, extractStyleReferenceColorXml, fetchUrlToBytes, filterValidShapeAdjustmentEntries, findCnvPrNode, findConstraint, findCustomShow, findThemeEffectScheme, findThemeEffectSchemeByName, fitFontSize, flattenChartUserShapes, flattenNodes, formatAutoNumberMarker, formatCommentTimestamp, formatSchemeKey, formatScriptAutoNumber, fragmentShapes, gearPoints, generateFontGuid, getAdjustmentAwareClipPath, getAdjustmentAwareShapeClipPath, getAnimationPresetInfo, getCalloutLeaderLineGeometry, getCalloutTier, getCalloutViewBoxBounds, getCloudCalloutClipPath, getCloudClipPath, getCloudPathForRendering, getCommentMarkerPosition, getConnectorAdjustment, getConnectorPathGeometry, getCssBorderDashStyle, getCustomShowNames, getCustomShowPositionLabel, getElementLabel, getElementOrientationMatrix, getElementTextContent, getElementTransform, getImageMaskStyle, getLinkedTextBoxSegments, getNativeAnimationPresetMetadata, getOleDocumentParagraphs, getOleNestedDeckBytes, getOleNestedDeckDetail, getOleObjectTypeLabel, getOleSheetGrid, getPanoseWeight, getPresetConnectionSites, getPresetShapeClipPath, getPresetTextRect, getPresetsByCategory, getRoundRectRadiusPx, getSectionSlideRange, getShapeClipPath, getShapeClipPathFromPreset, getShapeType, getSignaturePathsToStrip, getSubstituteFontFamily, getSubstituteFonts, getSupportedNamespaces, getSvgStrokeDasharray, getTextCompensationTransform, getZoomElements, getZoomTargetSlideIndexes, groupElements, guidToKey, guideEmuToPx, guidePxToEmu, hasDirectSubstitution, hasNonTrivialOverride, hasReference, hasShapeProperties, hasTextProperties, hebrewAlphaLabel, inferOleExtensionFromTarget, inheritedPlaceholderFieldType, inkBounds, inkElementToStrokes, inkLengthToPx, inkPointMapper, inspectSignaturesFromBuffer, interpretSmartArtLayout, interpretedLayoutToElements, intersectPolygons, intersectShapes, intersectSvgPaths, isAlternateContentChoiceSupported, isAlternateContentChoiceXmlSupported, isCalloutShape, isConnectorElement, isDarkColorMap, isDefaultSmartArtLabelScene, isEditableTextElement, isHeaderFooterPlaceholder, isImageLikeElement, isInkElement, isNamespaceSupported, isOle2CompoundFile, isParetoChartData, isPptxJsonText, isShapeElement, isStShapeType, isStrictNamespaceUri, isSummaryZoomSlide, isSwitchableLayoutType, isTemplateElement, isTemplateElementId, isTextElement, isTextOrientationMatrix, isTransitionalNamespaceUri, isXmlNode, isZoomElement, isZoomElement2 as isZoomElementUtil, itemNode, loadThemeVariants, lookupPresetConnectionSites, lookupPresetShape, lookupPresetTextRectOverride, makeStoreAwareId, mapCustomShowActions, mergeShapes, mergeStyleParts, mergeThemeColorOverride, mimeTypeForOleFile, multiplyTextOrientationMatrices, navigateCustomShow, nodeFill, nodeOpacity, nodeStroke, nodeTextStyle, normalizeCustomShowIds, normalizeNamespaceUri, normalizePositiveFixedAngleDegrees, normalizeStShapeType, normalizeStrictXml, normalizeStrokeDashType, numericParam, obfuscateFont, oleBytesToDataUrl, oleObjectTypeToGlyph, ooxmlArcToSvg, ooxmlGradientAngleToCssDegrees, orderedXmlKey, parseActiveXControlsFromSlide, parseAdjustmentValues, parseBodyPrBooleanAttrs, parseBubbleChartOptions, parseChart3DSurfaces, parseChartAxes, parseChartDataLabelOptions, parseChartFormatTargetKey, parseChartLayouts, parseChartManualLayout, parseChartUpDownBars, parseCustomShows, parseCxChartSeries, parseDataTable, parseDataUrlToBytes, parseDiagramRelationshipIds, parseDrawingColor, parseDrawingColorChoice, parseDrawingColorOpacity, parseDrawingLineDash, parseDrawingMediaReference, parseEmbeddedXlsx, parseGuideDefinitions, parseHexColor, parseInkMlContent, parseKinsoku, parseLineStyle, parseMarker, parseModel3DScene, parseOle2, parsePanoseBytes, parsePanoseString, parsePptxJson, parsePptxJsonDocument, parsePresentationDrawingGuides, parsePresentationSmartTags, parseSeriesDataLabels, parseSeriesDataPoints, parseSeriesErrBars, parseSeriesExplosion, parseSeriesTrendlines, parseShapeId, parseShapeProps, parseSignatureXml, parseSignaturesFromBuffer, parseSlideDrawingGuides, parseSmartArtColorListHexes, parseSmartArtColorStyleLabels, parseSmartArtDefinitionHeaderList, parseSmartArtDefinitionMetadata, parseSmartArtPointCustomLayout, parseSmartArtQuickStyleLabels, parseSmartArtStyleLabelRefs, parseStructuredCustomGeometry, parseVmlElement, parseVmlElements, polygonNode, polygonsToSvgPath, positiveFixedAngleAttribute, pptxActionToElementAction, pptxDataFromJsonDocument, preservesSpreadsheetXmlWhitespace, preservesXmlWhitespace, presetGeometryForCropShape, promoteSmartArtNode, ratioConstraint, reResolveElementColors, reResolveElementFonts, reResolveElementsForColorMapChange, reResolveSlideColors, reResolveSlideFonts, readFileAsDataUrl, readOleDocParagraphs, readOleDocumentParagraphs, readOleNestedDeckDetail, readOleNestedDeckFirstSlideTextLines, readOleSheetGrid, readOleXlsGrid, reapplyAlternateContentToTree, reassignDescendantIds, rebaseCommentMentions, rectNode, reflowSmartArtLayout, reflowSmartArtPictures, regenerateSmartArtDrawingShapes, relativeLuminance, relayoutSmartArt, remapElementShapeIds, remapShapeIdReferences, removeSmartArtNode, renderOleDeckPreviewPng, renderOleDocumentPreviewPng, renderOleIconPng, renderOleSheetPreviewPng, reorderObjectKeys, reorderObjectKeysByLocalName, reorderSmartArtNode, reorderSmartArtNodeToIndex, repairPptx, repeatedLabel, replaceOleEmbedding, replaceOleFile, resetDecomposeCounter, resetSmartArtEditCounter, resolveConstraint, resolveConstraintDeclaredBy, resolveCoordinate, resolveCustomGeometryGuideContext, resolveCustomGeometryToken, resolveCustomShowSlideIndices, resolveDisplayedChartTypeName, resolveFlowDirection, resolveLayoutDisplayName, resolveModel3DMimeType, resolveModifyVerifierAlgorithmName, resolveOleEditorKindFromPayload, resolveRatioConstraint, resolveSmartArtEffectIntensity, resolveSmartArtNodeCoherent3DOff, resolveSmartArtNodeStyleRoles, resolveTableCellStyle, rgb, roleOf, romanNumeral, sampleFirstPixelColorFromBytes, selectAlternateContentBranch, selectArrangedNodes, serializeColorChoice, serializeColorChoiceWithRef, serializePptxToJson, serializeSmartArtDefinitionHeaderList, setOleObjectName, setSmartArtNodeStyle, shadowOffsetToDistanceAndDirection, shouldRenderFallbackLabel, shouldReturnToZoomSlide, slideBackgroundStyleRefFromNode, smartArtQuickStyleHas3d, stripParentDirSegments, stripXmlOrderSuffix, strokeFor, styleContext, styleShadow, styleStroke, subtractPolygons, subtractShapes, subtractSvgPaths, svgPathToPolygons, switchSmartArtLayout, syncPictureShapeTypeWithCropShape, themeColorSchemesEqual, toArabicAbjadNumeral, toChineseNumeral, toCjkDigitString, toDevanagariDigits, toEa1ChsNumeral, toEa1ChtNumeral, toFullWidthDigits, toHebrewNumeral, toStrictNamespaceUri, toThaiDigits, treeDepth, treeWidth, truncate, ungroupElements, unionPolygons, unionShapes, unionSvgPaths, unwrapAlternateContent, unwrapOleEmbedding, updateSmartArtNodeText, validatePptx, validateSmartArtColorStyleLabels, validateSmartArtDefinitionHeaderList, validateSmartArtDefinitionMetadata, verifyModifyPassword, verifyPassword, verifySignatureDigests, visitXmlObjects, withThemePlaceholderColor, writeBodyPrBooleanAttrs, writeOleDocParagraphEdit, writeOleDocumentParagraphEdit, writeOleNestedDeckElementText, writeOleSheetCellEdit, writeOleXlsNumericCellEdit, writeOleXlsStringCellEdit, xmlAttr, xmlAttrBool, xmlAttrNumber, xmlChild, xmlChildren, xmlPath, xmlText, zlibDeflate } from '../chunk-MX2GFMZS.mjs';
|
|
7
7
|
export { DEFAULT_MAX_UNCOMPRESSED_BYTES, DIGEST_ALGORITHM_TO_HASH, DIGEST_ALGORITHM_TO_WEB_CRYPTO, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, DIGITAL_SIGNATURE_REL_TYPE, ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV, ENTERPRISE_REQUIRE_REVOCATION_ENV, ENTERPRISE_REQUIRE_TIMESTAMP_ENV, ENTERPRISE_TRUST_ROOTS_FILE_ENV, ENTERPRISE_TRUST_ROOTS_PEM_ENV, MAX_ZIP_ENTRY_COUNT, OPC_RELATIONSHIP_TRANSFORM, PPTX_VIEWER_MANIFEST_NS, SUPPORTED_XML_CANON_TRANSFORMS, XMLDSIG_NS, XML_TRANSFORM_ENVELOPED_SIGNATURE, ZipBombError, computeDetailStatus, computeDigestBase64 as computeDigestBase64WebCrypto, computeVerificationStatus, escapeXmlAttr, escapeXmlText, extractAllTagText, extractFirstTagText, extractTagAttribute, isValidBase64, normalizePartPath, resolveReferenceUriToPart } from '../chunk-U7YXYOA7.mjs';
|
|
8
8
|
import '../chunk-2N7RZQLC.mjs';
|
|
9
9
|
export { applySmartArtConstraintRules, applySmartArtLayoutDefinition, cloneElement, cloneShapeStyle, cloneSlide, cloneTemplateElementsBySlideId, cloneTextStyle, cloneXmlObject, deepCloneData, parseSmartArtConstraintRules, parseSmartArtLayoutDefinition, validateSmartArtConstraintRules, validateSmartArtLayoutDefinition } from '../chunk-VDUNZTJC.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advance-width.d.ts","sourceRoot":"","sources":["../../../text/font-metrics/advance-width.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"advance-width.d.ts","sourceRoot":"","sources":["../../../text/font-metrics/advance-width.ts"],"names":[],"mappings":"AAwBA,sFAAsF;AACtF,eAAO,MAAM,iBAAiB,WAAY,MAAM,KAAG,OAAoC,CAAC;AAExF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,UAAQ,GAAG,MAAM,GAAG,SAAS,CAUhG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unhinted glyph advances per 1000 em for printable ASCII (code points 32 to 126, in order),
|
|
3
|
+
* regular and bold, measured through PowerPoint COM by
|
|
4
|
+
* `scripts/pptx/record-pptx-design-advances.ps1` (BoundWidth of "H" + glyph + "H" at 100 pt).
|
|
5
|
+
* For fonts Visio does not measure: Microsoft 365 cloud fonts and the fonts PowerPoint stands in
|
|
6
|
+
* for with a look-alike, so a stand-in can be given the deck font's own widths.
|
|
7
|
+
* GENERATED by `scripts/pptx/make-pptx-design-advances.mjs`: do not edit by hand.
|
|
8
|
+
*/
|
|
9
|
+
export declare const POWERPOINT_DESIGN_ADVANCES: Readonly<Record<string, {
|
|
10
|
+
readonly regular: string;
|
|
11
|
+
readonly bold: string;
|
|
12
|
+
}>>;
|
|
13
|
+
//# sourceMappingURL=design-advances-powerpoint.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design-advances-powerpoint.generated.d.ts","sourceRoot":"","sources":["../../../text/font-metrics/design-advances-powerpoint.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAChD,MAAM,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAqCnE,CAAC"}
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
* regular and bold, as Visio 16 measures them: `TEXTWIDTH` of a repeated character at 100 pt
|
|
4
4
|
* (`scripts/record-visio-glyph-advances.ps1`). They equal the font files' own advance widths
|
|
5
5
|
* (Calibri "P" is 1058/2048 em), so they suit any layout that does not hint or kern.
|
|
6
|
-
* GENERATED by `scripts/make-visio-advance-table.py`: do not edit by hand.
|
|
7
|
-
* `aptos display` entries are measured through PowerPoint COM by
|
|
8
|
-
* `scripts/pptx/record-pptx-design-advances.ps1` (Visio does not have those fonts).
|
|
6
|
+
* GENERATED by `scripts/make-visio-advance-table.py`: do not edit by hand.
|
|
9
7
|
*/
|
|
10
8
|
export declare const DESIGN_ADVANCES: Readonly<Record<string, {
|
|
11
9
|
readonly regular: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design-advances.generated.d.ts","sourceRoot":"","sources":["../../../text/font-metrics/design-advances.generated.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"design-advances.generated.d.ts","sourceRoot":"","sources":["../../../text/font-metrics/design-advances.generated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,EAAE,QAAQ,CACrC,MAAM,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CA2BnE,CAAC"}
|
package/dist/text/index.cjs
CHANGED
|
@@ -616,14 +616,6 @@ function mergeTextThreeWay(base, local, remote) {
|
|
|
616
616
|
|
|
617
617
|
// text/font-metrics/design-advances.generated.ts
|
|
618
618
|
var DESIGN_ADVANCES = {
|
|
619
|
-
aptos: {
|
|
620
|
-
regular: "203.75 292.5 370 537.5 533.75 826.25 642.5 210 292.5 292.5 457.5 533.75 286.25 340 286.25 338.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 286.25 286.25 533.75 533.75 533.75 501.25 895 588.75 603.75 692.5 686.25 556.25 525 708.75 707.5 260 331.25 568.75 500 790 706.25 732.5 577.5 732.5 606.25 566.25 478.75 681.25 585 892.5 552.5 540 516.25 295 338.75 295 533.75 460 551.25 531.25 561.25 525 560 526.25 301.25 485 551.25 238.75 238.75 486.25 260 852.5 551.25 551.25 561.25 560 335 486.25 323.75 558.75 452.5 721.25 442.5 452.5 437.5 295 270 295 533.75",
|
|
621
|
-
bold: "203.75 292.5 420 537.5 533.75 841.25 676.25 232.5 292.5 292.5 457.5 533.75 300 340 300 386.25 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 300 300 533.75 533.75 533.75 517.5 900 620 618.75 706.25 707.5 573.75 536.25 717.5 728.75 293.75 366.25 622.5 511.25 821.25 722.5 737.5 605 737.5 633.75 598.75 505 696.25 616.25 940 598.75 586.25 547.5 337.5 386.25 337.5 533.75 460 551.25 551.25 586.25 548.75 586.25 556.25 335 511.25 578.75 267.5 267.5 533.75 296.25 888.75 578.75 573.75 586.25 586.25 368.75 516.25 355 581.25 493.75 761.25 495 493.75 466.25 337.5 270 337.5 533.75"
|
|
622
|
-
},
|
|
623
|
-
"aptos display": {
|
|
624
|
-
regular: "192.5 246.25 370 528.75 522.5 825 622.5 210 295 295 381.25 522.5 246.25 348.75 246.25 338.75 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 246.25 246.25 522.5 522.5 522.5 486.25 878.75 580 582.5 656.25 655 540 508.75 671.25 661.25 235 317.5 553.75 485 765 681.25 695 556.25 695 590 546.25 477.5 651.25 573.75 886.25 550 535 516.25 295 338.75 295 522.5 460 551.25 488.75 518.75 492.5 518.75 493.75 283.75 440 506.25 210 210 447.5 243.75 800 506.25 512.5 518.75 518.75 310 462.5 303.75 506.25 432.5 716.25 440 432.5 426.25 295 218.75 295 522.5",
|
|
625
|
-
bold: "192.5 261.25 420 561.25 540 838.75 655 232.5 337.5 337.5 428.75 540 261.25 365 261.25 386.25 540 540 540 540 540 540 540 540 540 540 261.25 261.25 540 540 540 502.5 887.5 610 598.75 675 677.5 548.75 516.25 685 682.5 267.5 348.75 602.5 491.25 793.75 696.25 705 585 705 610 573.75 498.75 670 600 921.25 591.25 572.5 547.5 337.5 386.25 337.5 540 460 551.25 507.5 541.25 507.5 542.5 515 317.5 472.5 533.75 240 240 500 278.75 840 533.75 530 541.25 542.5 342.5 483.75 333.75 533.75 475 747.5 488.75 475 450 337.5 251.25 337.5 540"
|
|
626
|
-
},
|
|
627
619
|
arial: {
|
|
628
620
|
regular: "277.83 277.83 354.98 556.15 556.15 889.16 666.99 190.92 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 277.83 277.83 583.98 583.98 583.98 556.15 1015.14 666.99 666.99 722.17 722.17 666.99 610.84 777.83 722.17 277.83 500 666.99 556.15 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 277.83 277.83 277.83 469.24 556.15 333.01 556.15 556.15 500 556.15 556.15 277.83 556.15 556.15 222.17 222.17 500 222.17 833.01 556.15 556.15 556.15 556.15 333.01 500 277.83 556.15 500 722.17 500 500 500 333.98 259.77 333.98 583.98",
|
|
629
621
|
bold: "277.83 333.01 474.12 556.15 556.15 889.16 722.17 237.79 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 333.01 333.01 583.98 583.98 583.98 610.84 975.1 722.17 722.17 722.17 722.17 666.99 610.84 777.83 722.17 277.83 556.15 722.17 610.84 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 333.01 277.83 333.01 583.98 556.15 333.01 556.15 610.84 556.15 610.84 556.15 333.01 610.84 610.84 277.83 277.83 556.15 277.83 889.16 610.84 610.84 610.84 610.84 389.16 556.15 333.01 610.84 556.15 777.83 556.15 556.15 500 389.16 279.79 389.16 583.98"
|
|
@@ -646,6 +638,38 @@ var DESIGN_ADVANCES = {
|
|
|
646
638
|
}
|
|
647
639
|
};
|
|
648
640
|
|
|
641
|
+
// text/font-metrics/design-advances-powerpoint.generated.ts
|
|
642
|
+
var POWERPOINT_DESIGN_ADVANCES = {
|
|
643
|
+
aptos: {
|
|
644
|
+
regular: "203.75 292.5 370 537.5 533.75 826.25 642.5 210 292.5 292.5 457.5 533.75 286.25 340 286.25 338.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 286.25 286.25 533.75 533.75 533.75 501.25 895 588.75 603.75 692.5 686.25 556.25 525 708.75 707.5 260 331.25 568.75 500 790 706.25 732.5 577.5 732.5 606.25 566.25 478.75 681.25 585 892.5 552.5 540 516.25 295 338.75 295 533.75 460 551.25 531.25 561.25 525 560 526.25 301.25 485 551.25 238.75 238.75 486.25 260 852.5 551.25 551.25 561.25 560 335 486.25 323.75 558.75 452.5 721.25 442.5 452.5 437.5 295 270 295 533.75",
|
|
645
|
+
bold: "203.75 292.5 420 537.5 533.75 841.25 676.25 232.5 292.5 292.5 457.5 533.75 300 340 300 386.25 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 300 300 533.75 533.75 533.75 517.5 900 620 618.75 706.25 707.5 573.75 536.25 717.5 728.75 293.75 366.25 622.5 511.25 821.25 722.5 737.5 605 737.5 633.75 598.75 505 696.25 616.25 940 598.75 586.25 547.5 337.5 386.25 337.5 533.75 460 551.25 551.25 586.25 548.75 586.25 556.25 335 511.25 578.75 267.5 267.5 533.75 296.25 888.75 578.75 573.75 586.25 586.25 368.75 516.25 355 581.25 493.75 761.25 495 493.75 466.25 337.5 270 337.5 533.75"
|
|
646
|
+
},
|
|
647
|
+
"aptos display": {
|
|
648
|
+
regular: "192.5 246.25 370 528.75 522.5 825 622.5 210 295 295 381.25 522.5 246.25 348.75 246.25 338.75 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 246.25 246.25 522.5 522.5 522.5 486.25 878.75 580 582.5 656.25 655 540 508.75 671.25 661.25 235 317.5 553.75 485 765 681.25 695 556.25 695 590 546.25 477.5 651.25 573.75 886.25 550 535 516.25 295 338.75 295 522.5 460 551.25 488.75 518.75 492.5 518.75 493.75 283.75 440 506.25 210 210 447.5 243.75 800 506.25 512.5 518.75 518.75 310 462.5 303.75 506.25 432.5 716.25 440 432.5 426.25 295 218.75 295 522.5",
|
|
649
|
+
bold: "192.5 261.25 420 561.25 540 838.75 655 232.5 337.5 337.5 428.75 540 261.25 365 261.25 386.25 540 540 540 540 540 540 540 540 540 540 261.25 261.25 540 540 540 502.5 887.5 610 598.75 675 677.5 548.75 516.25 685 682.5 267.5 348.75 602.5 491.25 793.75 696.25 705 585 705 610 573.75 498.75 670 600 921.25 591.25 572.5 547.5 337.5 386.25 337.5 540 460 551.25 507.5 541.25 507.5 542.5 515 317.5 472.5 533.75 240 240 500 278.75 840 533.75 530 541.25 542.5 342.5 483.75 333.75 533.75 475 747.5 488.75 475 450 337.5 251.25 337.5 540"
|
|
650
|
+
},
|
|
651
|
+
"aptos mono": {
|
|
652
|
+
regular: "600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600",
|
|
653
|
+
bold: "600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600"
|
|
654
|
+
},
|
|
655
|
+
"comic sans ms": {
|
|
656
|
+
regular: "298.75 237.5 423.75 842.5 693.75 820 653.75 388.75 366.25 366.25 530 480 276.25 416.25 248.75 511.25 610 450 610 610 610 610 610 610 610 610 298.75 298.75 381.25 510 381.25 523.75 931.25 731.25 630 602.5 721.25 625 607.5 680 767.5 546.25 665 611.25 551.25 882.5 797.5 798.75 520 876.25 628.75 693.75 680 736.25 650 1040 723.75 635 693.75 376.25 550 376.25 581.25 627.5 556.25 511.25 593.75 513.75 587.5 547.5 508.75 531.25 577.5 280 403.75 540 273.75 776.25 523.75 526.25 535 520 480 486.25 471.25 520 486.25 683.75 590 520 537.5 366.25 421.25 366.25 597.5",
|
|
657
|
+
bold: "433.75 237.5 437.5 842.5 693.75 820 653.75 433.75 366.25 366.25 530 610 433.75 610 433.75 511.25 610 610 610 610 610 610 610 610 610 610 433.75 433.75 610 610 610 566.25 931.25 731.25 630 618.75 721.25 625 607.5 680 767.5 546.25 665 611.25 551.25 882.5 812.5 798.75 532.5 876.25 640 693.75 696.25 736.25 675 1040 723.75 635 693.75 376.25 550 376.25 610 627.5 556.25 556.25 593.75 513.75 587.5 558.75 508.75 531.25 577.5 280 403.75 540 273.75 776.25 523.75 526.25 535 520 480 486.25 471.25 520 486.25 683.75 590 552.5 537.5 366.25 421.25 366.25 610"
|
|
658
|
+
},
|
|
659
|
+
consolas: {
|
|
660
|
+
regular: "550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550",
|
|
661
|
+
bold: "550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550 550"
|
|
662
|
+
},
|
|
663
|
+
garamond: {
|
|
664
|
+
regular: "250 218.75 406.25 666.25 447.5 822.5 728.75 177.5 291.25 291.25 427.5 666.25 218.75 312.5 218.75 500 468.75 468.75 468.75 468.75 468.75 468.75 468.75 468.75 468.75 468.75 218.75 218.75 666.25 666.25 666.25 365 916.25 677.5 615 635 771.25 656.25 562.5 771.25 760 353.75 333.75 740 572.5 833.75 771.25 781.25 562.5 771.25 625 478.75 615 708.75 677.5 885 697.5 656.25 656.25 271.25 500 271.25 500 500 333.75 406.25 510 416.25 500 416.25 322.5 447.5 510 228.75 228.75 468.75 228.75 771.25 510 510 510 490 333.75 365 291.25 490 468.75 666.25 458.75 416.25 427.5 478.75 500 478.75 666.25",
|
|
665
|
+
bold: "250 260 552.5 666.25 468.75 833.75 802.5 281.25 353.75 353.75 490 666.25 260 333.75 260 552.5 468.75 396.25 468.75 468.75 468.75 468.75 468.75 468.75 468.75 468.75 260 260 666.25 666.25 666.25 416.25 927.5 656.25 677.5 677.5 781.25 708.75 615 728.75 865 396.25 375 677.5 635 916.25 843.75 791.25 615 791.25 697.5 510 687.5 760 666.25 896.25 687.5 656.25 666.25 365 552.5 365 583.75 500 333.75 478.75 552.5 468.75 552.5 468.75 302.5 541.25 552.5 281.25 260 531.25 260 843.75 552.5 521.25 552.5 552.5 343.75 416.25 312.5 552.5 458.75 708.75 500 468.75 468.75 396.25 541.25 396.25 666.25"
|
|
666
|
+
},
|
|
667
|
+
impact: {
|
|
668
|
+
regular: "176.25 270 370 626.25 547.5 692.5 576.25 185 313.75 313.75 281.25 533.75 167.5 295 185 395 536.25 381.25 502.5 530 500 536.25 541.25 391.25 535 541.25 202.5 202.5 533.75 533.75 533.75 525 775 507.5 552.5 553.75 552.5 415 397.5 551.25 555 287.5 331.25 536.25 380 716.25 541.25 546.25 502.5 546.25 538.75 517.5 461.25 547.5 523.75 815 482.5 473.75 397.5 282.5 395 282.5 483.75 552.5 333.75 503.75 520 495 520 511.25 288.75 518.75 523.75 273.75 280 477.5 273.75 771.25 522.5 511.25 518.75 517.5 357.5 471.25 305 522.5 437.5 670 433.75 448.75 351.25 370 271.25 370 525",
|
|
669
|
+
bold: "176.25 270 370 627.5 547.5 693.75 576.25 185 313.75 313.75 281.25 533.75 168.75 295 185 396.25 536.25 381.25 502.5 531.25 500 537.5 542.5 392.5 535 542.5 202.5 202.5 533.75 533.75 533.75 525 775 508.75 552.5 553.75 553.75 416.25 398.75 551.25 556.25 288.75 331.25 537.5 381.25 717.5 542.5 547.5 502.5 547.5 538.75 517.5 461.25 547.5 523.75 815 482.5 473.75 397.5 282.5 396.25 282.5 483.75 552.5 333.75 505 520 495 520 511.25 290 518.75 525 275 280 478.75 275 771.25 523.75 511.25 520 518.75 358.75 471.25 305 522.5 437.5 670 433.75 448.75 351.25 370 271.25 370 525"
|
|
670
|
+
}
|
|
671
|
+
};
|
|
672
|
+
|
|
649
673
|
// text/font-metrics/advance-width.ts
|
|
650
674
|
var FIRST = 32;
|
|
651
675
|
var decoded = /* @__PURE__ */ new Map();
|
|
@@ -654,7 +678,7 @@ function advances(family, bold) {
|
|
|
654
678
|
const key = `${name2}|${bold ? "b" : "r"}`;
|
|
655
679
|
const known = decoded.get(key);
|
|
656
680
|
if (known) return known;
|
|
657
|
-
const table = Object.hasOwn(DESIGN_ADVANCES, name2) ? DESIGN_ADVANCES[name2] : void 0;
|
|
681
|
+
const table = Object.hasOwn(DESIGN_ADVANCES, name2) ? DESIGN_ADVANCES[name2] : Object.hasOwn(POWERPOINT_DESIGN_ADVANCES, name2) ? POWERPOINT_DESIGN_ADVANCES[name2] : void 0;
|
|
658
682
|
if (!table) return void 0;
|
|
659
683
|
const values = (bold ? table.bold : table.regular).split(" ").map(Number);
|
|
660
684
|
decoded.set(key, values);
|
|
@@ -3776,8 +3800,13 @@ function getGoogleFontsVariants(family) {
|
|
|
3776
3800
|
|
|
3777
3801
|
// text/webfonts/look-alikes.ts
|
|
3778
3802
|
var LOOK_ALIKES = {
|
|
3779
|
-
aptos: { family: "Gantari", boldWeight: 650 },
|
|
3780
|
-
"aptos display": { family: "Gantari", boldWeight: 650 }
|
|
3803
|
+
aptos: { family: "Gantari", regularWeight: 400, boldWeight: 650 },
|
|
3804
|
+
"aptos display": { family: "Gantari", regularWeight: 400, boldWeight: 650 },
|
|
3805
|
+
"aptos mono": { family: "Sometype Mono", regularWeight: 500, boldWeight: 700 },
|
|
3806
|
+
consolas: { family: "Overpass Mono", regularWeight: 500, boldWeight: 700 },
|
|
3807
|
+
"comic sans ms": { family: "Comic Relief", regularWeight: 400, boldWeight: 700 },
|
|
3808
|
+
garamond: { family: "EB Garamond", regularWeight: 400, boldWeight: 600 },
|
|
3809
|
+
impact: { family: "Anton", regularWeight: 400, boldWeight: 400 }
|
|
3781
3810
|
};
|
|
3782
3811
|
function findLookAlikeGoogleFontsFamily(family) {
|
|
3783
3812
|
if (findGoogleFontsFamily(family) !== null) {
|
|
@@ -3786,8 +3815,10 @@ function findLookAlikeGoogleFontsFamily(family) {
|
|
|
3786
3815
|
const lookAlike = LOOK_ALIKES[family.trim().toLowerCase()];
|
|
3787
3816
|
return lookAlike ? findGoogleFontsFamily(lookAlike.family) : null;
|
|
3788
3817
|
}
|
|
3789
|
-
function
|
|
3790
|
-
|
|
3818
|
+
function findLookAlikeWeights(family) {
|
|
3819
|
+
if (findLookAlikeGoogleFontsFamily(family) === null) return void 0;
|
|
3820
|
+
const lookAlike = LOOK_ALIKES[family.trim().toLowerCase()];
|
|
3821
|
+
return lookAlike ? { regular: lookAlike.regularWeight, bold: lookAlike.boldWeight } : void 0;
|
|
3791
3822
|
}
|
|
3792
3823
|
|
|
3793
3824
|
// text/webfonts/metric-clones.ts
|
|
@@ -3969,13 +4000,11 @@ function selectGoogleWebfontFamilies(referenced, embedded, isLocallyInstalled) {
|
|
|
3969
4000
|
}
|
|
3970
4001
|
return selected;
|
|
3971
4002
|
}
|
|
3972
|
-
function buildGoogleFontsFragment(family, weights,
|
|
3973
|
-
const sorted = [.../* @__PURE__ */ new Set([400,
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
}
|
|
3978
|
-
if (sorted.length === 2) return `${family}:${GOOGLE_WEBFONT_AXIS}`;
|
|
4003
|
+
function buildGoogleFontsFragment(family, weights, standardFaces = true) {
|
|
4004
|
+
const sorted = [.../* @__PURE__ */ new Set([...standardFaces ? [400, 700] : [], ...weights ?? []])].sort(
|
|
4005
|
+
(a, b) => a - b
|
|
4006
|
+
);
|
|
4007
|
+
if (standardFaces && sorted.length === 2) return `${family}:${GOOGLE_WEBFONT_AXIS}`;
|
|
3979
4008
|
const tuples = [0, 1].flatMap((ital) => sorted.map((weight) => `${ital},${weight}`));
|
|
3980
4009
|
return `${family}:ital,wght@${tuples.join(";")}`;
|
|
3981
4010
|
}
|
|
@@ -3989,27 +4018,31 @@ function servedGoogleFontsFamily(family, options) {
|
|
|
3989
4018
|
}
|
|
3990
4019
|
function matchGoogleWebfontFragments(families, onResolved, options) {
|
|
3991
4020
|
const weightsByFamily = /* @__PURE__ */ new Map();
|
|
3992
|
-
const
|
|
4021
|
+
const standardFamilies = /* @__PURE__ */ new Set();
|
|
3993
4022
|
for (const family of families) {
|
|
3994
4023
|
const face = resolveGoogleFontsFace(family);
|
|
3995
4024
|
const canonical = face?.family ?? servedGoogleFontsFamily(family, options);
|
|
3996
4025
|
if (canonical === null) continue;
|
|
3997
4026
|
onResolved?.(family);
|
|
3998
|
-
const lookAlikeBold = !face && options?.lookAlikes ? findLookAlikeBoldWeight(family) : void 0;
|
|
3999
|
-
const bold = lookAlikeBold ?? 700;
|
|
4000
|
-
boldByFamily.set(canonical, Math.max(boldByFamily.get(canonical) ?? 0, bold));
|
|
4001
4027
|
let weights = weightsByFamily.get(canonical);
|
|
4002
4028
|
if (!weights) {
|
|
4003
4029
|
weights = /* @__PURE__ */ new Set();
|
|
4004
4030
|
weightsByFamily.set(canonical, weights);
|
|
4005
4031
|
}
|
|
4032
|
+
const lookAlike = !face && options?.lookAlikes ? findLookAlikeWeights(family) : void 0;
|
|
4033
|
+
if (lookAlike && findLookAlikeGoogleFontsFamily(family) === canonical) {
|
|
4034
|
+
weights.add(lookAlike.regular);
|
|
4035
|
+
weights.add(lookAlike.bold);
|
|
4036
|
+
} else {
|
|
4037
|
+
standardFamilies.add(canonical);
|
|
4038
|
+
}
|
|
4006
4039
|
if (face?.weight !== void 0) {
|
|
4007
4040
|
weights.add(face.weight);
|
|
4008
4041
|
weights.add(Math.max(700, face.weight));
|
|
4009
4042
|
}
|
|
4010
4043
|
}
|
|
4011
4044
|
return [...weightsByFamily].sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(
|
|
4012
|
-
([family, weights]) => buildGoogleFontsFragment(family, weights,
|
|
4045
|
+
([family, weights]) => buildGoogleFontsFragment(family, weights, standardFamilies.has(family))
|
|
4013
4046
|
);
|
|
4014
4047
|
}
|
|
4015
4048
|
|