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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PptxHandler } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { PptxHandler } from './chunk-VK2G4BGX.mjs';
|
|
2
|
+
import './chunk-MX2GFMZS.mjs';
|
|
3
3
|
import './chunk-U7YXYOA7.mjs';
|
|
4
4
|
import './chunk-2N7RZQLC.mjs';
|
|
5
5
|
import './chunk-VDUNZTJC.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-VK2G4BGX.mjs';
|
|
2
|
+
import './chunk-MX2GFMZS.mjs';
|
|
3
3
|
import './chunk-U7YXYOA7.mjs';
|
|
4
4
|
import './chunk-2N7RZQLC.mjs';
|
|
5
5
|
import './chunk-VDUNZTJC.mjs';
|
|
@@ -101912,14 +101912,6 @@ function applyConnectorEdit(roots, root, edit2, check4) {
|
|
|
101912
101912
|
|
|
101913
101913
|
// text/font-metrics/design-advances.generated.ts
|
|
101914
101914
|
var DESIGN_ADVANCES = {
|
|
101915
|
-
aptos: {
|
|
101916
|
-
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",
|
|
101917
|
-
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"
|
|
101918
|
-
},
|
|
101919
|
-
"aptos display": {
|
|
101920
|
-
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",
|
|
101921
|
-
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"
|
|
101922
|
-
},
|
|
101923
101915
|
arial: {
|
|
101924
101916
|
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",
|
|
101925
101917
|
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"
|
|
@@ -101942,6 +101934,38 @@ var DESIGN_ADVANCES = {
|
|
|
101942
101934
|
}
|
|
101943
101935
|
};
|
|
101944
101936
|
|
|
101937
|
+
// text/font-metrics/design-advances-powerpoint.generated.ts
|
|
101938
|
+
var POWERPOINT_DESIGN_ADVANCES = {
|
|
101939
|
+
aptos: {
|
|
101940
|
+
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",
|
|
101941
|
+
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"
|
|
101942
|
+
},
|
|
101943
|
+
"aptos display": {
|
|
101944
|
+
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",
|
|
101945
|
+
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"
|
|
101946
|
+
},
|
|
101947
|
+
"aptos mono": {
|
|
101948
|
+
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",
|
|
101949
|
+
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"
|
|
101950
|
+
},
|
|
101951
|
+
"comic sans ms": {
|
|
101952
|
+
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",
|
|
101953
|
+
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"
|
|
101954
|
+
},
|
|
101955
|
+
consolas: {
|
|
101956
|
+
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",
|
|
101957
|
+
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"
|
|
101958
|
+
},
|
|
101959
|
+
garamond: {
|
|
101960
|
+
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",
|
|
101961
|
+
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"
|
|
101962
|
+
},
|
|
101963
|
+
impact: {
|
|
101964
|
+
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",
|
|
101965
|
+
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"
|
|
101966
|
+
}
|
|
101967
|
+
};
|
|
101968
|
+
|
|
101945
101969
|
// text/font-metrics/advance-width.ts
|
|
101946
101970
|
var FIRST = 32;
|
|
101947
101971
|
var decoded = /* @__PURE__ */ new Map();
|
|
@@ -101950,7 +101974,7 @@ function advances(family, bold) {
|
|
|
101950
101974
|
const key2 = `${name4}|${bold ? "b" : "r"}`;
|
|
101951
101975
|
const known = decoded.get(key2);
|
|
101952
101976
|
if (known) return known;
|
|
101953
|
-
const table4 = Object.hasOwn(DESIGN_ADVANCES, name4) ? DESIGN_ADVANCES[name4] : void 0;
|
|
101977
|
+
const table4 = Object.hasOwn(DESIGN_ADVANCES, name4) ? DESIGN_ADVANCES[name4] : Object.hasOwn(POWERPOINT_DESIGN_ADVANCES, name4) ? POWERPOINT_DESIGN_ADVANCES[name4] : void 0;
|
|
101954
101978
|
if (!table4) return void 0;
|
|
101955
101979
|
const values2 = (bold ? table4.bold : table4.regular).split(" ").map(Number);
|
|
101956
101980
|
decoded.set(key2, values2);
|
|
@@ -101887,14 +101887,6 @@ function applyConnectorEdit(roots, root, edit2, check4) {
|
|
|
101887
101887
|
|
|
101888
101888
|
// text/font-metrics/design-advances.generated.ts
|
|
101889
101889
|
var DESIGN_ADVANCES = {
|
|
101890
|
-
aptos: {
|
|
101891
|
-
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",
|
|
101892
|
-
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"
|
|
101893
|
-
},
|
|
101894
|
-
"aptos display": {
|
|
101895
|
-
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",
|
|
101896
|
-
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"
|
|
101897
|
-
},
|
|
101898
101890
|
arial: {
|
|
101899
101891
|
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",
|
|
101900
101892
|
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"
|
|
@@ -101917,6 +101909,38 @@ var DESIGN_ADVANCES = {
|
|
|
101917
101909
|
}
|
|
101918
101910
|
};
|
|
101919
101911
|
|
|
101912
|
+
// text/font-metrics/design-advances-powerpoint.generated.ts
|
|
101913
|
+
var POWERPOINT_DESIGN_ADVANCES = {
|
|
101914
|
+
aptos: {
|
|
101915
|
+
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",
|
|
101916
|
+
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"
|
|
101917
|
+
},
|
|
101918
|
+
"aptos display": {
|
|
101919
|
+
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",
|
|
101920
|
+
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"
|
|
101921
|
+
},
|
|
101922
|
+
"aptos mono": {
|
|
101923
|
+
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",
|
|
101924
|
+
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"
|
|
101925
|
+
},
|
|
101926
|
+
"comic sans ms": {
|
|
101927
|
+
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",
|
|
101928
|
+
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"
|
|
101929
|
+
},
|
|
101930
|
+
consolas: {
|
|
101931
|
+
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",
|
|
101932
|
+
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"
|
|
101933
|
+
},
|
|
101934
|
+
garamond: {
|
|
101935
|
+
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",
|
|
101936
|
+
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"
|
|
101937
|
+
},
|
|
101938
|
+
impact: {
|
|
101939
|
+
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",
|
|
101940
|
+
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"
|
|
101941
|
+
}
|
|
101942
|
+
};
|
|
101943
|
+
|
|
101920
101944
|
// text/font-metrics/advance-width.ts
|
|
101921
101945
|
var FIRST = 32;
|
|
101922
101946
|
var decoded = /* @__PURE__ */ new Map();
|
|
@@ -101925,7 +101949,7 @@ function advances(family, bold) {
|
|
|
101925
101949
|
const key2 = `${name4}|${bold ? "b" : "r"}`;
|
|
101926
101950
|
const known = decoded.get(key2);
|
|
101927
101951
|
if (known) return known;
|
|
101928
|
-
const table4 = Object.hasOwn(DESIGN_ADVANCES, name4) ? DESIGN_ADVANCES[name4] : void 0;
|
|
101952
|
+
const table4 = Object.hasOwn(DESIGN_ADVANCES, name4) ? DESIGN_ADVANCES[name4] : Object.hasOwn(POWERPOINT_DESIGN_ADVANCES, name4) ? POWERPOINT_DESIGN_ADVANCES[name4] : void 0;
|
|
101929
101953
|
if (!table4) return void 0;
|
|
101930
101954
|
const values2 = (bold ? table4.bold : table4.regular).split(" ").map(Number);
|
|
101931
101955
|
decoded.set(key2, values2);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hasTextProperties, isImageLikeElement, blobUrlToDataUrl, getSubstituteFontFamily, stripXmlOrderSuffix } from './chunk-
|
|
1
|
+
import { hasTextProperties, isImageLikeElement, blobUrlToDataUrl, getSubstituteFontFamily, stripXmlOrderSuffix } from './chunk-MX2GFMZS.mjs';
|
|
2
2
|
|
|
3
3
|
// pptx/converter/media-context.ts
|
|
4
4
|
var MIME_TO_EXT = {
|
|
@@ -34922,7 +34922,7 @@ function findTextBearingElementById(elements3, elementId) {
|
|
|
34922
34922
|
}
|
|
34923
34923
|
async function loadNestedDeck(pptxBytes) {
|
|
34924
34924
|
try {
|
|
34925
|
-
const { PptxHandler } = await import('./PptxHandler-
|
|
34925
|
+
const { PptxHandler } = await import('./PptxHandler-PVQW47CY.mjs');
|
|
34926
34926
|
const handler = new PptxHandler();
|
|
34927
34927
|
const data = await handler.load(pptxBytes.buffer.slice(0));
|
|
34928
34928
|
return { handler, slides: data.slides };
|
|
@@ -66612,8 +66612,13 @@ function normaliseFamily(family) {
|
|
|
66612
66612
|
|
|
66613
66613
|
// text/webfonts/look-alikes.ts
|
|
66614
66614
|
var LOOK_ALIKES = {
|
|
66615
|
-
aptos: { family: "Gantari", boldWeight: 650 },
|
|
66616
|
-
"aptos display": { family: "Gantari", boldWeight: 650 }
|
|
66615
|
+
aptos: { family: "Gantari", regularWeight: 400, boldWeight: 650 },
|
|
66616
|
+
"aptos display": { family: "Gantari", regularWeight: 400, boldWeight: 650 },
|
|
66617
|
+
"aptos mono": { family: "Sometype Mono", regularWeight: 500, boldWeight: 700 },
|
|
66618
|
+
consolas: { family: "Overpass Mono", regularWeight: 500, boldWeight: 700 },
|
|
66619
|
+
"comic sans ms": { family: "Comic Relief", regularWeight: 400, boldWeight: 700 },
|
|
66620
|
+
garamond: { family: "EB Garamond", regularWeight: 400, boldWeight: 600 },
|
|
66621
|
+
impact: { family: "Anton", regularWeight: 400, boldWeight: 400 }
|
|
66617
66622
|
};
|
|
66618
66623
|
function findLookAlikeGoogleFontsFamily(family) {
|
|
66619
66624
|
if (findGoogleFontsFamily(family) !== null) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NS, RELATIONSHIP_TYPES, SMART_ART_DEFINITION_PARTS, VML_SHAPE_TAGS, isAlternateContentChoiceXmlSupported, parseVmlElement, unwrapAlternateContent, xmlChild, xmlAttr, parseDrawingMediaReference, cropShapeForPresetGeometry, isHeaderFooterPlaceholder, xmlPath, inheritedPlaceholderFieldType, parseParagraphLevel, xmlHasChild, parseParagraphExtraAttributes, parseParagraphMargins, parseAlignmentAttr, parseParagraphRtl, parseTabStops, resolveParagraphAlignment, xmlText, parseBodyPrBooleanAttrs, selectAlternateContentBranch, parseBulletSizePercent, extractColorChoiceXml, formatAutoNumberMarker, readText3DValues, readScene3DValues, parseParagraphSpacingPx, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, nextRelationshipId, remapElementShapeIds, normalizeCustomShowIds, mapCustomShowActions, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, parseRelationships, resolvePartPath, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, LN_CHILD_ORDER, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, stageChartPartWithWorkbook, CHART_WORKBOOK_CONTENT_TYPE, BLIP_FILL_ORDER, SP_PR_ORDER, ensureXmlChild, hasShapeProperties, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, ooxmlGradientAngleToCssDegrees, serializeTabStop, newChartWorkbookLayout, DEFAULT_CHART_SHEET_NAME, writeChartSpace, chartIssuesLostOnWrite, parseChartSpace, joinChartGroups, createChartExSpace, setChartExDataLabelsVisible, writeChartExSpace, readCommentMentions, rebaseCommentMentions, applyCommentMentions, colorsEqual, generateFontGuid, NEUTRAL_CHART_TYPE_TARGETS, planNeutralChartType, newChartSpace, setChartSeriesSecondaryAxis, editChartSpace, chartModelLabelPositions, setChartExLayout, setChartExSeriesFill, setChartExWaterfall, setChartExBinning, setChartExParentLabelLayout, setChartExBoxWhisker, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, drawingFillXml, removeChartSeries, chartSeriesEntries, moveChartSeries, addChartSeries, setChartSeriesColor, setChartTitleRuns, setChartTitle, setChartTitleVisible, setChartLegend, setChartAxis, setChartGroupOptions, setChartTrendline, setChartErrorBars, setChartSeriesAxis, setChartSeriesOptions, setChartNumericCategories, setChartCategoryLevels, setChartTypedCategories, setChartSeriesXValues, setChartSeriesBubbleSizes, renameChartSeries, setChartSeriesValues, setChartCategories, setChartDataLabels, setChartDataLabelsRange, parseChartFormatTargetKey, setChartTargetText, setChartLegendEntries, setChartAxisTitleText, setChartLayout, setChartDisplayUnitsLabel, setChartProtection, setChartChrome, setChartStyle, setChartView3D, setChartDataTable, setChartSurface, setChartGroupDecorations, clearChartAreaPaint, applyChartAppearance, chartGroupElement, chartPercentUnionValue, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, chartDrawingColorFromHex, chartTrendlineType, chartSeriesEntryAt, numberSource, setChartMarker, editChartShapeProperties, setChartDataLabelFormatting, chartFormatTargetKey, chartTargetDraftShapes, fillAppearancePatch, setChartPointOptions, applyChartManualLayout, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, applyDiagramRelationshipIds, buildSaveTimeCustomGeometryXml, applyCustomGeometryGuideOverrides, avLstForPreset, filterValidShapeAdjustmentEntries, applyDrawingMediaReference, DIAGRAM_XML_PROLOG, DIAGRAM_DATA_XMLNS, escapeDiagramXml, writeBodyPrBooleanAttrs, applyTextBodySp3d, writeShapeEffects, SHAPE_STYLE_ORDER, CAMERA_PRESETS, LIGHT_RIGS, LIGHT_DIRECTIONS, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, reorderObjectKeysByLocalName, getSignaturePathsToStrip, mergeSmartArtPointXml, mergeSmartArtConnectionXml, withDiagramPictureSources, diagramPictureRelationships, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseDiagramDataModel, DEFAULT_GENERATED_DIAGRAM_SCHEME, previewDiagramLayout, parseXml, first, parseDiagramColors, resolveDrawingColor, children, parseDrawingRichTextBody, writeGeneratedDiagramDrawing, descendants, GENERATED_DIAGRAM_CACHE_NS, generatedDrawingDigest, buildXml, parseChartUserShapesDrawing, xmlChildren, chartSpaceWorkbookWrites, writeChartSpaceOverSource, applyChartGradientToSpPr, setAutoTitleDeleted, realignOrCollapseRuns, insertAt, replaceFirstText, saveChartWorkbookUpdates, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, resolveThemeFillStyle, resolveThemeLineStyle, resolveThemeEffectStyle, relAttr, ensureXmlChildren, TC_PR_BORDERS_ORDER, appendChartWorkbookSheet, rebaseChartData, writeChartColorChoice, parseChartExSpace, chartExDataChanged, relationshipsPartFor, chartExSpaceWorkbookWrites, writeChartWorkbookUpdates, appendChartExWorkbookData, writeChartExSpaceOverSource, elements, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, setChartExTitle, setChartExLegend, editChartExStyle, editChartExAxis, renameChartExSeries, setChartExSeriesValues, setChartExCategories, parseDrawingEffects, editChartExLabels, removeChartExSeries, addChartExSeries, buildEffectDagTreeFromXml, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, picturePercentage, ARTISTIC_PRIMARY_ATTRIBUTE, fetchUrlToBytes, parseChartWideTextStyle, hasLocalName, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, blobUrlToDataUrl, readPictureEffect, isAlternateContentChoiceSupported, SvgExporter, detectStrictConformance, normalizeStrictXml, normalizeStShapeType, applyCustomShows, applySections, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, backgroundStyleRefIsCurrent, backgroundRefNode, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, xmlAttrBool, detectOleObjectType, inferOleExtensionFromTarget, deriveSlideTitles, parseSlideDrawingGuides, slideBackgroundStyleRefFromNode, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, encodeXmlAttributeValue, encodeXmlTextValue, stripXmlOrderMarkers, setChartPointLabel, editChartExPointLabel, MIN_ELEMENT_SIZE, createDrawingObjectId, DEFAULT_TEXT_FONT_SIZE, EncryptedFileError, decodePptxJsonText, parsePptxJson, pptxDataFromJsonDocument, applyImportedPptxData, DEFAULT_CHART_GRADIENT_ANGLE, supportsChartGradientFill, assertChartModelLabelPosition, svgToCustomGeometryPaths, escAttr, ensureContentTypeOverride, buildRelationshipsXml, MIN_TABLE_DIMENSION, MAX_TABLE_DIMENSION, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, effectChild, mergeEffectNode, mergeAttributeEffectNode, parseDrawingLineDash, estimateMediaDurationMs, parseVmlElements, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, IncorrectPasswordError, applyThemeToData, detectFileFormat, parseOle2, decryptPptx, encryptPptx, customGeometryPathsToSvg, base64Encode, patchPictureEffects, cssDegreesToOoxmlGradientAngle, escText, parseLineSpacingMultiplier, parseLineSpacingExactPt, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, PML_XMLNS, solidFill, esc, OOXML_PERCENT_UNITS, backgroundStylePreset, isDarkColorMap, backgroundStyleColorMap, reResolveElementsForColorMapChange, findThemeEffectScheme, wrapFormatSchemeXml, effectIsPurelyStyleMatrix, emu, formatSchemeKey, gradFill, loadThemeVariants, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, parseKinsoku, deobfuscateFont, detectFontFormat, parseDataTable, parseChartAxes, parseBubbleChartOptions, extractGuidFromPartName, parseChartLayouts, parseCxChartSeries, parseChartFormulaRange, expandRangeAddresses, parseChartDataPointPictureBlipRel, readDisplayNaAsBlank, extractCxSeriesColor, parseCxDataLabels, parseCxRegionMapOptions, parseCxAxes, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, CHART_STYLE_PARTS, CHART_COLOR_STYLE_NS, readChartStyle, resolveChartStyleDefinition, drawingColorXml, EMU_PER_POINT, chartTrendlineKind, parseChartManualLayout, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, decodeBase64, parseSmartArtPresLayoutVars, parseSmartArtConnection, connectionLabel, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, captureDiagramPictures, parseDiagramDrawing, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, collectTransitionText, parseSmartArtQuickStyleLabels, parseDiagramQuickStyle, parseDiagramLayoutSummary, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, getElementOrientationMatrix, isTextOrientationMatrix, TEXT_ORIENTATION_IDENTITY, multiplyTextOrientationMatrices } from './chunk-NJD62JHC.mjs';
|
|
1
|
+
import { NS, RELATIONSHIP_TYPES, SMART_ART_DEFINITION_PARTS, VML_SHAPE_TAGS, isAlternateContentChoiceXmlSupported, parseVmlElement, unwrapAlternateContent, xmlChild, xmlAttr, parseDrawingMediaReference, cropShapeForPresetGeometry, isHeaderFooterPlaceholder, xmlPath, inheritedPlaceholderFieldType, parseParagraphLevel, xmlHasChild, parseParagraphExtraAttributes, parseParagraphMargins, parseAlignmentAttr, parseParagraphRtl, parseTabStops, resolveParagraphAlignment, xmlText, parseBodyPrBooleanAttrs, selectAlternateContentBranch, parseBulletSizePercent, extractColorChoiceXml, formatAutoNumberMarker, readText3DValues, readScene3DValues, parseParagraphSpacingPx, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, nextRelationshipId, remapElementShapeIds, normalizeCustomShowIds, mapCustomShowActions, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, parseRelationships, resolvePartPath, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, LN_CHILD_ORDER, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, stageChartPartWithWorkbook, CHART_WORKBOOK_CONTENT_TYPE, BLIP_FILL_ORDER, SP_PR_ORDER, ensureXmlChild, hasShapeProperties, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, ooxmlGradientAngleToCssDegrees, serializeTabStop, newChartWorkbookLayout, DEFAULT_CHART_SHEET_NAME, writeChartSpace, chartIssuesLostOnWrite, parseChartSpace, joinChartGroups, createChartExSpace, setChartExDataLabelsVisible, writeChartExSpace, readCommentMentions, rebaseCommentMentions, applyCommentMentions, colorsEqual, generateFontGuid, NEUTRAL_CHART_TYPE_TARGETS, planNeutralChartType, newChartSpace, setChartSeriesSecondaryAxis, editChartSpace, chartModelLabelPositions, setChartExLayout, setChartExSeriesFill, setChartExWaterfall, setChartExBinning, setChartExParentLabelLayout, setChartExBoxWhisker, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, drawingFillXml, removeChartSeries, chartSeriesEntries, moveChartSeries, addChartSeries, setChartSeriesColor, setChartTitleRuns, setChartTitle, setChartTitleVisible, setChartLegend, setChartAxis, setChartGroupOptions, setChartTrendline, setChartErrorBars, setChartSeriesAxis, setChartSeriesOptions, setChartNumericCategories, setChartCategoryLevels, setChartTypedCategories, setChartSeriesXValues, setChartSeriesBubbleSizes, renameChartSeries, setChartSeriesValues, setChartCategories, setChartDataLabels, setChartDataLabelsRange, parseChartFormatTargetKey, setChartTargetText, setChartLegendEntries, setChartAxisTitleText, setChartLayout, setChartDisplayUnitsLabel, setChartProtection, setChartChrome, setChartStyle, setChartView3D, setChartDataTable, setChartSurface, setChartGroupDecorations, clearChartAreaPaint, applyChartAppearance, chartGroupElement, chartPercentUnionValue, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, chartDrawingColorFromHex, chartTrendlineType, chartSeriesEntryAt, numberSource, setChartMarker, editChartShapeProperties, setChartDataLabelFormatting, chartFormatTargetKey, chartTargetDraftShapes, fillAppearancePatch, setChartPointOptions, applyChartManualLayout, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, applyDiagramRelationshipIds, buildSaveTimeCustomGeometryXml, applyCustomGeometryGuideOverrides, avLstForPreset, filterValidShapeAdjustmentEntries, applyDrawingMediaReference, DIAGRAM_XML_PROLOG, DIAGRAM_DATA_XMLNS, escapeDiagramXml, writeBodyPrBooleanAttrs, applyTextBodySp3d, writeShapeEffects, SHAPE_STYLE_ORDER, CAMERA_PRESETS, LIGHT_RIGS, LIGHT_DIRECTIONS, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, reorderObjectKeysByLocalName, getSignaturePathsToStrip, mergeSmartArtPointXml, mergeSmartArtConnectionXml, withDiagramPictureSources, diagramPictureRelationships, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseDiagramDataModel, DEFAULT_GENERATED_DIAGRAM_SCHEME, previewDiagramLayout, parseXml, first, parseDiagramColors, resolveDrawingColor, children, parseDrawingRichTextBody, writeGeneratedDiagramDrawing, descendants, GENERATED_DIAGRAM_CACHE_NS, generatedDrawingDigest, buildXml, parseChartUserShapesDrawing, xmlChildren, chartSpaceWorkbookWrites, writeChartSpaceOverSource, applyChartGradientToSpPr, setAutoTitleDeleted, realignOrCollapseRuns, insertAt, replaceFirstText, saveChartWorkbookUpdates, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, resolveThemeFillStyle, resolveThemeLineStyle, resolveThemeEffectStyle, relAttr, ensureXmlChildren, TC_PR_BORDERS_ORDER, appendChartWorkbookSheet, rebaseChartData, writeChartColorChoice, parseChartExSpace, chartExDataChanged, relationshipsPartFor, chartExSpaceWorkbookWrites, writeChartWorkbookUpdates, appendChartExWorkbookData, writeChartExSpaceOverSource, elements, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, setChartExTitle, setChartExLegend, editChartExStyle, editChartExAxis, renameChartExSeries, setChartExSeriesValues, setChartExCategories, parseDrawingEffects, editChartExLabels, removeChartExSeries, addChartExSeries, buildEffectDagTreeFromXml, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, picturePercentage, ARTISTIC_PRIMARY_ATTRIBUTE, fetchUrlToBytes, parseChartWideTextStyle, hasLocalName, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, blobUrlToDataUrl, readPictureEffect, isAlternateContentChoiceSupported, SvgExporter, detectStrictConformance, normalizeStrictXml, normalizeStShapeType, applyCustomShows, applySections, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, backgroundStyleRefIsCurrent, backgroundRefNode, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, xmlAttrBool, detectOleObjectType, inferOleExtensionFromTarget, deriveSlideTitles, parseSlideDrawingGuides, slideBackgroundStyleRefFromNode, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, encodeXmlAttributeValue, encodeXmlTextValue, stripXmlOrderMarkers, setChartPointLabel, editChartExPointLabel, MIN_ELEMENT_SIZE, createDrawingObjectId, DEFAULT_TEXT_FONT_SIZE, EncryptedFileError, decodePptxJsonText, parsePptxJson, pptxDataFromJsonDocument, applyImportedPptxData, DEFAULT_CHART_GRADIENT_ANGLE, supportsChartGradientFill, assertChartModelLabelPosition, svgToCustomGeometryPaths, escAttr, ensureContentTypeOverride, buildRelationshipsXml, MIN_TABLE_DIMENSION, MAX_TABLE_DIMENSION, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, effectChild, mergeEffectNode, mergeAttributeEffectNode, parseDrawingLineDash, estimateMediaDurationMs, parseVmlElements, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, IncorrectPasswordError, applyThemeToData, detectFileFormat, parseOle2, decryptPptx, encryptPptx, customGeometryPathsToSvg, base64Encode, patchPictureEffects, cssDegreesToOoxmlGradientAngle, escText, parseLineSpacingMultiplier, parseLineSpacingExactPt, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, PML_XMLNS, solidFill, esc, OOXML_PERCENT_UNITS, backgroundStylePreset, isDarkColorMap, backgroundStyleColorMap, reResolveElementsForColorMapChange, findThemeEffectScheme, wrapFormatSchemeXml, effectIsPurelyStyleMatrix, emu, formatSchemeKey, gradFill, loadThemeVariants, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, parseKinsoku, deobfuscateFont, detectFontFormat, parseDataTable, parseChartAxes, parseBubbleChartOptions, extractGuidFromPartName, parseChartLayouts, parseCxChartSeries, parseChartFormulaRange, expandRangeAddresses, parseChartDataPointPictureBlipRel, readDisplayNaAsBlank, extractCxSeriesColor, parseCxDataLabels, parseCxRegionMapOptions, parseCxAxes, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, CHART_STYLE_PARTS, CHART_COLOR_STYLE_NS, readChartStyle, resolveChartStyleDefinition, drawingColorXml, EMU_PER_POINT, chartTrendlineKind, parseChartManualLayout, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, decodeBase64, parseSmartArtPresLayoutVars, parseSmartArtConnection, connectionLabel, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, captureDiagramPictures, parseDiagramDrawing, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, collectTransitionText, parseSmartArtQuickStyleLabels, parseDiagramQuickStyle, parseDiagramLayoutSummary, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, getElementOrientationMatrix, isTextOrientationMatrix, TEXT_ORIENTATION_IDENTITY, multiplyTextOrientationMatrices } from './chunk-MX2GFMZS.mjs';
|
|
2
2
|
import { openPptxZip, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, MAX_ZIP_ENTRY_COUNT, DEFAULT_MAX_UNCOMPRESSED_BYTES, guardZip, ZipBombError } from './chunk-U7YXYOA7.mjs';
|
|
3
3
|
import { resolveSmartArtLayoutCategory } from './chunk-2N7RZQLC.mjs';
|
|
4
4
|
import { cloneXmlObject, applySmartArtLayoutDefinition, cloneSlide, parseSmartArtLayoutDefinition } from './chunk-VDUNZTJC.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { findText, replaceText, replaceTextInSlide, mergePresentation } from './chunk-
|
|
2
|
-
import { PresentationBuilder, PptxHandler, SlideBuilder, validateSeriesIndex, removeEmptyDataPoint, ensureDataPoint, ensureChartData, assertChartGradientSupported, toChartGradientFill, countExistingLayouts, addLayoutToSlideMaster, addLayoutContentType, createLayout, STANDARD_LAYOUTS, generateLayoutXml, layoutRelsXml, createTextElement, createShapeElement, createImageElement, createTableElement, createChartElement, createConnectorElement, createMediaElement, createGroupElement, clonePartGraph, buildBlankPresentationArchive, FILL_CHOICE_ELEMENTS, relativePartTarget, PptxXmlBuilder } from './chunk-
|
|
3
|
-
import { SP_PR_ORDER, EMU_PER_PIXEL, EMU_PER_INCH, parseXml, first, relationshipsPartFor, parseRelationships, resolvePartPath, elements, buildXml, buildRelationshipsXml, bytesToBase64, base64ToBytes, LN_CHILD_ORDER, BLIP_FILL_ORDER, EFFECT_LST_ORDER, SHAPE_STYLE_ORDER, TC_PR_BORDERS_ORDER, hasTextProperties, nextRelationshipId, escAttr, NS } from './chunk-
|
|
1
|
+
import { findText, replaceText, replaceTextInSlide, mergePresentation } from './chunk-VLKUMQGT.mjs';
|
|
2
|
+
import { PresentationBuilder, PptxHandler, SlideBuilder, validateSeriesIndex, removeEmptyDataPoint, ensureDataPoint, ensureChartData, assertChartGradientSupported, toChartGradientFill, countExistingLayouts, addLayoutToSlideMaster, addLayoutContentType, createLayout, STANDARD_LAYOUTS, generateLayoutXml, layoutRelsXml, createTextElement, createShapeElement, createImageElement, createTableElement, createChartElement, createConnectorElement, createMediaElement, createGroupElement, clonePartGraph, buildBlankPresentationArchive, FILL_CHOICE_ELEMENTS, relativePartTarget, PptxXmlBuilder } from './chunk-VK2G4BGX.mjs';
|
|
3
|
+
import { SP_PR_ORDER, EMU_PER_PIXEL, EMU_PER_INCH, parseXml, first, relationshipsPartFor, parseRelationships, resolvePartPath, elements, buildXml, buildRelationshipsXml, bytesToBase64, base64ToBytes, LN_CHILD_ORDER, BLIP_FILL_ORDER, EFFECT_LST_ORDER, SHAPE_STYLE_ORDER, TC_PR_BORDERS_ORDER, hasTextProperties, nextRelationshipId, escAttr, NS } from './chunk-MX2GFMZS.mjs';
|
|
4
4
|
import { openPptxZip, openZip } from './chunk-U7YXYOA7.mjs';
|
|
5
5
|
import { cloneSlide, cloneElement } from './chunk-VDUNZTJC.mjs';
|
|
6
6
|
|
|
@@ -14696,7 +14696,7 @@ async function setPresentationRunText(bytes, slideIndex, elementId, runIndex, te
|
|
|
14696
14696
|
async function createPresentationFromOutline(slides, options = {}) {
|
|
14697
14697
|
if (!(slides instanceof Array) || !slides.length || slides.length > 200)
|
|
14698
14698
|
throw new Error("A presentation outline has 1 to 200 slides");
|
|
14699
|
-
const { PresentationBuilder: PresentationBuilder2 } = await import('./PresentationBuilder-
|
|
14699
|
+
const { PresentationBuilder: PresentationBuilder2 } = await import('./PresentationBuilder-ZOOVSBPR.mjs');
|
|
14700
14700
|
const { handler, data, createSlide } = await PresentationBuilder2.create({
|
|
14701
14701
|
...options.title ? { title: options.title } : {}
|
|
14702
14702
|
});
|
package/dist/index.cjs
CHANGED
|
@@ -23772,14 +23772,6 @@ function changeTextCaseRanges(text3, mode, boundaries = []) {
|
|
|
23772
23772
|
|
|
23773
23773
|
// text/font-metrics/design-advances.generated.ts
|
|
23774
23774
|
var DESIGN_ADVANCES = {
|
|
23775
|
-
aptos: {
|
|
23776
|
-
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",
|
|
23777
|
-
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"
|
|
23778
|
-
},
|
|
23779
|
-
"aptos display": {
|
|
23780
|
-
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",
|
|
23781
|
-
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"
|
|
23782
|
-
},
|
|
23783
23775
|
arial: {
|
|
23784
23776
|
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",
|
|
23785
23777
|
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"
|
|
@@ -23802,6 +23794,38 @@ var DESIGN_ADVANCES = {
|
|
|
23802
23794
|
}
|
|
23803
23795
|
};
|
|
23804
23796
|
|
|
23797
|
+
// text/font-metrics/design-advances-powerpoint.generated.ts
|
|
23798
|
+
var POWERPOINT_DESIGN_ADVANCES = {
|
|
23799
|
+
aptos: {
|
|
23800
|
+
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",
|
|
23801
|
+
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"
|
|
23802
|
+
},
|
|
23803
|
+
"aptos display": {
|
|
23804
|
+
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",
|
|
23805
|
+
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"
|
|
23806
|
+
},
|
|
23807
|
+
"aptos mono": {
|
|
23808
|
+
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",
|
|
23809
|
+
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"
|
|
23810
|
+
},
|
|
23811
|
+
"comic sans ms": {
|
|
23812
|
+
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",
|
|
23813
|
+
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"
|
|
23814
|
+
},
|
|
23815
|
+
consolas: {
|
|
23816
|
+
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",
|
|
23817
|
+
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"
|
|
23818
|
+
},
|
|
23819
|
+
garamond: {
|
|
23820
|
+
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",
|
|
23821
|
+
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"
|
|
23822
|
+
},
|
|
23823
|
+
impact: {
|
|
23824
|
+
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",
|
|
23825
|
+
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"
|
|
23826
|
+
}
|
|
23827
|
+
};
|
|
23828
|
+
|
|
23805
23829
|
// text/font-metrics/advance-width.ts
|
|
23806
23830
|
var FIRST = 32;
|
|
23807
23831
|
var decoded = /* @__PURE__ */ new Map();
|
|
@@ -23810,7 +23834,7 @@ function advances(family, bold) {
|
|
|
23810
23834
|
const key = `${name2}|${bold ? "b" : "r"}`;
|
|
23811
23835
|
const known = decoded.get(key);
|
|
23812
23836
|
if (known) return known;
|
|
23813
|
-
const table = Object.hasOwn(DESIGN_ADVANCES, name2) ? DESIGN_ADVANCES[name2] : void 0;
|
|
23837
|
+
const table = Object.hasOwn(DESIGN_ADVANCES, name2) ? DESIGN_ADVANCES[name2] : Object.hasOwn(POWERPOINT_DESIGN_ADVANCES, name2) ? POWERPOINT_DESIGN_ADVANCES[name2] : void 0;
|
|
23814
23838
|
if (!table) return void 0;
|
|
23815
23839
|
const values = (bold ? table.bold : table.regular).split(" ").map(Number);
|
|
23816
23840
|
decoded.set(key, values);
|
|
@@ -26888,8 +26912,13 @@ function getGoogleFontsVariants(family) {
|
|
|
26888
26912
|
|
|
26889
26913
|
// text/webfonts/look-alikes.ts
|
|
26890
26914
|
var LOOK_ALIKES = {
|
|
26891
|
-
aptos: { family: "Gantari", boldWeight: 650 },
|
|
26892
|
-
"aptos display": { family: "Gantari", boldWeight: 650 }
|
|
26915
|
+
aptos: { family: "Gantari", regularWeight: 400, boldWeight: 650 },
|
|
26916
|
+
"aptos display": { family: "Gantari", regularWeight: 400, boldWeight: 650 },
|
|
26917
|
+
"aptos mono": { family: "Sometype Mono", regularWeight: 500, boldWeight: 700 },
|
|
26918
|
+
consolas: { family: "Overpass Mono", regularWeight: 500, boldWeight: 700 },
|
|
26919
|
+
"comic sans ms": { family: "Comic Relief", regularWeight: 400, boldWeight: 700 },
|
|
26920
|
+
garamond: { family: "EB Garamond", regularWeight: 400, boldWeight: 600 },
|
|
26921
|
+
impact: { family: "Anton", regularWeight: 400, boldWeight: 400 }
|
|
26893
26922
|
};
|
|
26894
26923
|
function findLookAlikeGoogleFontsFamily(family) {
|
|
26895
26924
|
if (findGoogleFontsFamily(family) !== null) {
|
|
@@ -26898,8 +26927,10 @@ function findLookAlikeGoogleFontsFamily(family) {
|
|
|
26898
26927
|
const lookAlike = LOOK_ALIKES[family.trim().toLowerCase()];
|
|
26899
26928
|
return lookAlike ? findGoogleFontsFamily(lookAlike.family) : null;
|
|
26900
26929
|
}
|
|
26901
|
-
function
|
|
26902
|
-
|
|
26930
|
+
function findLookAlikeWeights(family) {
|
|
26931
|
+
if (findLookAlikeGoogleFontsFamily(family) === null) return void 0;
|
|
26932
|
+
const lookAlike = LOOK_ALIKES[family.trim().toLowerCase()];
|
|
26933
|
+
return lookAlike ? { regular: lookAlike.regularWeight, bold: lookAlike.boldWeight } : void 0;
|
|
26903
26934
|
}
|
|
26904
26935
|
|
|
26905
26936
|
// text/webfonts/metric-clones.ts
|
|
@@ -27081,13 +27112,11 @@ function selectGoogleWebfontFamilies(referenced, embedded, isLocallyInstalled) {
|
|
|
27081
27112
|
}
|
|
27082
27113
|
return selected;
|
|
27083
27114
|
}
|
|
27084
|
-
function buildGoogleFontsFragment(family, weights,
|
|
27085
|
-
const sorted = [.../* @__PURE__ */ new Set([400,
|
|
27086
|
-
|
|
27087
|
-
|
|
27088
|
-
|
|
27089
|
-
}
|
|
27090
|
-
if (sorted.length === 2) return `${family}:${GOOGLE_WEBFONT_AXIS}`;
|
|
27115
|
+
function buildGoogleFontsFragment(family, weights, standardFaces = true) {
|
|
27116
|
+
const sorted = [.../* @__PURE__ */ new Set([...standardFaces ? [400, 700] : [], ...weights ?? []])].sort(
|
|
27117
|
+
(a2, b) => a2 - b
|
|
27118
|
+
);
|
|
27119
|
+
if (standardFaces && sorted.length === 2) return `${family}:${GOOGLE_WEBFONT_AXIS}`;
|
|
27091
27120
|
const tuples = [0, 1].flatMap((ital) => sorted.map((weight) => `${ital},${weight}`));
|
|
27092
27121
|
return `${family}:ital,wght@${tuples.join(";")}`;
|
|
27093
27122
|
}
|
|
@@ -27101,27 +27130,31 @@ function servedGoogleFontsFamily(family, options2) {
|
|
|
27101
27130
|
}
|
|
27102
27131
|
function matchGoogleWebfontFragments(families, onResolved, options2) {
|
|
27103
27132
|
const weightsByFamily = /* @__PURE__ */ new Map();
|
|
27104
|
-
const
|
|
27133
|
+
const standardFamilies = /* @__PURE__ */ new Set();
|
|
27105
27134
|
for (const family of families) {
|
|
27106
27135
|
const face = resolveGoogleFontsFace(family);
|
|
27107
27136
|
const canonical = face?.family ?? servedGoogleFontsFamily(family, options2);
|
|
27108
27137
|
if (canonical === null) continue;
|
|
27109
27138
|
onResolved?.(family);
|
|
27110
|
-
const lookAlikeBold = !face && options2?.lookAlikes ? findLookAlikeBoldWeight(family) : void 0;
|
|
27111
|
-
const bold = lookAlikeBold ?? 700;
|
|
27112
|
-
boldByFamily.set(canonical, Math.max(boldByFamily.get(canonical) ?? 0, bold));
|
|
27113
27139
|
let weights = weightsByFamily.get(canonical);
|
|
27114
27140
|
if (!weights) {
|
|
27115
27141
|
weights = /* @__PURE__ */ new Set();
|
|
27116
27142
|
weightsByFamily.set(canonical, weights);
|
|
27117
27143
|
}
|
|
27144
|
+
const lookAlike = !face && options2?.lookAlikes ? findLookAlikeWeights(family) : void 0;
|
|
27145
|
+
if (lookAlike && findLookAlikeGoogleFontsFamily(family) === canonical) {
|
|
27146
|
+
weights.add(lookAlike.regular);
|
|
27147
|
+
weights.add(lookAlike.bold);
|
|
27148
|
+
} else {
|
|
27149
|
+
standardFamilies.add(canonical);
|
|
27150
|
+
}
|
|
27118
27151
|
if (face?.weight !== void 0) {
|
|
27119
27152
|
weights.add(face.weight);
|
|
27120
27153
|
weights.add(Math.max(700, face.weight));
|
|
27121
27154
|
}
|
|
27122
27155
|
}
|
|
27123
27156
|
return [...weightsByFamily].sort(([a2], [b]) => a2 < b ? -1 : a2 > b ? 1 : 0).map(
|
|
27124
|
-
([family, weights]) => buildGoogleFontsFragment(family, weights,
|
|
27157
|
+
([family, weights]) => buildGoogleFontsFragment(family, weights, standardFamilies.has(family))
|
|
27125
27158
|
);
|
|
27126
27159
|
}
|
|
27127
27160
|
|