@openpresentation/opf 0.32.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/browser.js +20 -20
- package/dist/{catalog-refs-kAefsZWT.d.ts → catalog-refs-B_0_vZg0.d.ts} +5 -0
- package/dist/{catalog-schemas-LdqOPebq.d.ts → catalog-schemas-CQTM-G8p.d.ts} +10 -4
- package/dist/{chunk-CLRYHWQN.js → chunk-ABWEUXLV.js} +72 -6
- package/dist/{chunk-XFHXQCXL.js → chunk-BI4ERFAA.js} +52 -1
- package/dist/{chunk-56J345KE.js → chunk-DAS75LGR.js} +3 -3
- package/dist/{chunk-F7DN33UL.js → chunk-E7WQHMCL.js} +6 -6
- package/dist/chunk-IJXKVM4W.js +221 -0
- package/dist/{chunk-AQEAZDL2.js → chunk-INIMUBSE.js} +2 -1
- package/dist/{chunk-NEJ32O7X.js → chunk-KVHNDHVS.js} +1 -1
- package/dist/{chunk-NVAJASOD.js → chunk-OPVJLL7H.js} +6867 -1862
- package/dist/{chunk-GM7WFPGG.js → chunk-PRXZD2II.js} +6 -1
- package/dist/{chunk-BBVW5ZC2.js → chunk-QD6DPS7X.js} +2 -2
- package/dist/{chunk-LEF4X4KI.js → chunk-QF5RSRXU.js} +1797 -170
- package/dist/{chunk-HKUV7NEN.js → chunk-R6C6BQOG.js} +1 -1
- package/dist/{chunk-IT7FQKED.js → chunk-S5QRGMUQ.js} +6 -6
- package/dist/{chunk-OXLA4HXQ.js → chunk-UK3J6FSU.js} +346 -53
- package/dist/{chunk-XQO2CT6Q.js → chunk-VKEYV3ZK.js} +1 -1
- package/dist/{chunk-7U3TJBXE.js → chunk-VMBLNCX2.js} +31 -13
- package/dist/{chunk-YFJIIIOL.js → chunk-VSBZC2PR.js} +2 -2
- package/dist/{chunk-UJSAR6GF.js → chunk-W4DYDRV2.js} +21 -0
- package/dist/{chunk-J63CIRIV.js → chunk-XANW7MB7.js} +4 -4
- package/dist/{chunk-PB7ME64J.js → chunk-XIOC6N5P.js} +1 -1
- package/dist/{chunk-2E6CDYL2.js → chunk-Y557TYML.js} +5 -5
- package/dist/{chunk-SW676APJ.js → chunk-YS333HLA.js} +2 -2
- package/dist/chunk-YYT6N7AI.js +642 -0
- package/dist/chunk-ZXOIGUHX.js +1 -0
- package/dist/{composition-DRqNGHJV.d.ts → composition-zMiIgzip.d.ts} +2353 -272
- package/dist/composition.d.ts +3 -2
- package/dist/composition.js +2 -2
- package/dist/conversion-POHRAMSN.js +24 -0
- package/dist/{conversion-Cadul8Mu.d.ts → conversion-mNth9XKm.d.ts} +20 -9
- package/dist/convert.d.ts +3 -2
- package/dist/convert.js +9 -9
- package/dist/data.d.ts +1 -1
- package/dist/data.js +3 -3
- package/dist/{deck-report-BA3IPJAV.d.ts → deck-report-BSlRiR0_.d.ts} +3 -3
- package/dist/deck.d.ts +6 -5
- package/dist/deck.js +12 -12
- package/dist/diagram-engine-eager.js +1 -1
- package/dist/diagram-engine-lazy.js +1 -1
- package/dist/diff.js +5 -5
- package/dist/docs.js +48 -24
- package/dist/examples.js +7507 -142
- package/dist/font-policy.js +1 -1
- package/dist/format.js +3 -3
- package/dist/ids.js +5 -5
- package/dist/index.d.ts +13 -12
- package/dist/index.js +24 -24
- package/dist/markdown.d.ts +2 -1
- package/dist/markdown.js +9 -9
- package/dist/node-engine.d.ts +7 -6
- package/dist/node-engine.js +24 -24
- package/dist/{pagination-DwEkdJ6s.d.ts → pagination-CYzNMazO.d.ts} +20 -3
- package/dist/pagination.d.ts +4 -3
- package/dist/pagination.js +5 -5
- package/dist/patch.js +4 -4
- package/dist/precompiled.js +3 -3
- package/dist/{presentation-DnD7mfmf.d.ts → presentation-CXhfpB_z.d.ts} +876 -39
- package/dist/repo-readme.js +2 -2
- package/dist/schema-engine-ajv.js +2 -2
- package/dist/schema-engine-precompiled.js +3 -3
- package/dist/schema.d.ts +2 -2
- package/dist/schema.js +4 -4
- package/dist/schemas.d.ts +40 -4
- package/dist/schemas.js +2 -2
- package/dist/shape-catalog.d.ts +98 -0
- package/dist/shape-catalog.js +302 -0
- package/dist/shape-engine-eager.js +9 -0
- package/dist/shape-engine-lazy.js +12 -0
- package/dist/shape-engine-module-BK7JNEUV.js +3 -0
- package/dist/shape-geometry.d.ts +126 -0
- package/dist/shape-geometry.js +2 -0
- package/dist/source.js +11 -11
- package/dist/spec/README.md +1 -1
- package/dist/spec/reference/preset-geometry.json +10699 -0
- package/dist/spec/reference/preset-geometry.schema.json +126 -0
- package/dist/spec/schemas/catalog-index.schema.json +1 -0
- package/dist/spec/schemas/chart-type.schema.json +4 -4
- package/dist/spec/schemas/icon-set.schema.json +75 -0
- package/dist/spec/schemas/layout.schema.json +14 -1
- package/dist/spec/schemas/opf.schema.json +1144 -196
- package/dist/spec-files.d.ts +1 -1
- package/dist/spec-files.js +2 -2
- package/dist/symbol-font-encodings.js +1 -1
- package/dist/types.d.ts +10 -6
- package/dist/{validation-types-vVah_PEv.d.ts → validation-types-COwTel3H.d.ts} +2 -2
- package/dist/validator.d.ts +5 -4
- package/dist/validator.js +4 -4
- package/dist/yaml.d.ts +2 -1
- package/dist/yaml.js +8 -8
- package/package.json +24 -8
- package/dist/chunk-DGS47ONG.js +0 -1
- package/dist/conversion-J3YPDS7C.js +0 -24
|
@@ -337,6 +337,10 @@ var presentation = {
|
|
|
337
337
|
"$ref": "#/$defs/Assets",
|
|
338
338
|
"description": "Optional reusable asset registry for images, data files, videos, documents, fonts, and other resources referenced elsewhere in the deck via 'asset:<id>' strings."
|
|
339
339
|
},
|
|
340
|
+
"icons": {
|
|
341
|
+
"$ref": "#/$defs/Icons",
|
|
342
|
+
"description": "Optional deck-local icons (LH-14), keyed by name: an author's or an LLM's own SVG, written once and named by any `icon` of the deck. See docs/icons.md."
|
|
343
|
+
},
|
|
340
344
|
"catalogs": {
|
|
341
345
|
"$ref": "#/$defs/Catalogs",
|
|
342
346
|
"description": "The catalog records this document embeds, grouped by the catalog they came from: 'default' (the catalog bare ids come from), 'custom' (records the document defines itself) and any number of named catalogs ('acme', referenced as 'acme:<id>'). A saved document embeds every record it references, so it renders the same with no catalog registered. See Catalogs."
|
|
@@ -1719,14 +1723,79 @@ var presentation = {
|
|
|
1719
1723
|
{
|
|
1720
1724
|
"type": "string",
|
|
1721
1725
|
"pattern": "^var:[a-z][a-z0-9-]*$"
|
|
1726
|
+
},
|
|
1727
|
+
{
|
|
1728
|
+
"$ref": "#/$defs/ColorTransform"
|
|
1722
1729
|
}
|
|
1723
1730
|
],
|
|
1724
|
-
"description":
|
|
1731
|
+
"description": `A color value or reference, enforced on shape fills and strokes, image strokes, styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors. Four forms:
|
|
1732
|
+
- Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
1733
|
+
- Color-scheme name, resolved through the effective color scheme after design resolution: an OOXML slot ('accent1'-'accent6', 'dark1', 'dark2', 'light1', 'light2', 'hyperlink', 'followedHyperlink') or an abstract role ('primary', 'secondary', 'accent', 'background', 'surface', 'surfaceAlt', 'text', 'textSecondary'). Roles resolve through the same role-to-slot mapping engines already apply to color schemes. 'surfaceAlt' has no slot: it is the alternate surface of banded table rows, derived from 'surface' and 'text' (the surface mixed a tenth of the way towards the text color, further when needed, so it always differs visibly from 'surface' and keeps 4.5:1 text contrast; core surfaceAltColor).
|
|
1734
|
+
- Variable reference: 'var:<id>' into the top-level variables map.
|
|
1735
|
+
- Lighter or darker (SH-02): { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
1736
|
+
|
|
1737
|
+
Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.`,
|
|
1725
1738
|
"examples": [
|
|
1726
1739
|
"#0F4C81",
|
|
1727
1740
|
"accent2",
|
|
1728
1741
|
"text",
|
|
1729
|
-
"var:risk"
|
|
1742
|
+
"var:risk",
|
|
1743
|
+
{
|
|
1744
|
+
"color": "accent1",
|
|
1745
|
+
"lighten": 0.4
|
|
1746
|
+
},
|
|
1747
|
+
{
|
|
1748
|
+
"color": "text",
|
|
1749
|
+
"darken": 0.25
|
|
1750
|
+
}
|
|
1751
|
+
]
|
|
1752
|
+
},
|
|
1753
|
+
"ColorTransform": {
|
|
1754
|
+
"type": "object",
|
|
1755
|
+
"additionalProperties": false,
|
|
1756
|
+
"required": [
|
|
1757
|
+
"color"
|
|
1758
|
+
],
|
|
1759
|
+
"description": "A ColorRef made lighter or darker (SH-02), as PowerPoint's theme color tints and shades: 'lighten' moves the color's HSL luminance that share of the way to white (lumMod 1 - lighten, lumOff lighten), 'darken' that share of the way to black (lumMod 1 - darken). Exactly one of the two. PPTX export writes a:lumMod and a:lumOff on the base color, a scheme color where the base names one, so re-theming the deck keeps the tint.",
|
|
1760
|
+
"properties": {
|
|
1761
|
+
"color": {
|
|
1762
|
+
"$ref": "#/$defs/ColorRef",
|
|
1763
|
+
"description": "The base color: any ColorRef."
|
|
1764
|
+
},
|
|
1765
|
+
"lighten": {
|
|
1766
|
+
"type": "number",
|
|
1767
|
+
"minimum": 0,
|
|
1768
|
+
"maximum": 1,
|
|
1769
|
+
"description": `Share of the way to white, 0 to 1. 0.4 is PowerPoint's "Lighter 40%".`
|
|
1770
|
+
},
|
|
1771
|
+
"darken": {
|
|
1772
|
+
"type": "number",
|
|
1773
|
+
"minimum": 0,
|
|
1774
|
+
"maximum": 1,
|
|
1775
|
+
"description": `Share of the way to black, 0 to 1. 0.25 is PowerPoint's "Darker 25%".`
|
|
1776
|
+
}
|
|
1777
|
+
},
|
|
1778
|
+
"oneOf": [
|
|
1779
|
+
{
|
|
1780
|
+
"required": [
|
|
1781
|
+
"lighten"
|
|
1782
|
+
]
|
|
1783
|
+
},
|
|
1784
|
+
{
|
|
1785
|
+
"required": [
|
|
1786
|
+
"darken"
|
|
1787
|
+
]
|
|
1788
|
+
}
|
|
1789
|
+
],
|
|
1790
|
+
"examples": [
|
|
1791
|
+
{
|
|
1792
|
+
"color": "accent1",
|
|
1793
|
+
"lighten": 0.4
|
|
1794
|
+
},
|
|
1795
|
+
{
|
|
1796
|
+
"color": "#0F4C81",
|
|
1797
|
+
"darken": 0.25
|
|
1798
|
+
}
|
|
1730
1799
|
]
|
|
1731
1800
|
},
|
|
1732
1801
|
"Variables": {
|
|
@@ -2418,6 +2487,23 @@ var presentation = {
|
|
|
2418
2487
|
"description": "No overlay and no automatic scrim: the picture shows as it is behind the text."
|
|
2419
2488
|
}
|
|
2420
2489
|
]
|
|
2490
|
+
},
|
|
2491
|
+
"textPlacement": {
|
|
2492
|
+
"type": "string",
|
|
2493
|
+
"enum": [
|
|
2494
|
+
"top-start",
|
|
2495
|
+
"top-center",
|
|
2496
|
+
"middle-start",
|
|
2497
|
+
"middle-center",
|
|
2498
|
+
"bottom-start",
|
|
2499
|
+
"bottom-center",
|
|
2500
|
+
"panel"
|
|
2501
|
+
],
|
|
2502
|
+
"description": "Where a cover's or section's heading group goes on this picture: the top, middle or bottom of its area, start-aligned or centered, or 'panel' (a start-side column on the background color; needs no overlay key). Absent: core picks the calmest place when the host measured the picture (SlideComposition.pictureText).",
|
|
2503
|
+
"examples": [
|
|
2504
|
+
"top-start",
|
|
2505
|
+
"panel"
|
|
2506
|
+
]
|
|
2421
2507
|
}
|
|
2422
2508
|
},
|
|
2423
2509
|
"examples": [
|
|
@@ -2442,6 +2528,12 @@ var presentation = {
|
|
|
2442
2528
|
"type": "image",
|
|
2443
2529
|
"src": "asset:texture",
|
|
2444
2530
|
"overlay": false
|
|
2531
|
+
},
|
|
2532
|
+
{
|
|
2533
|
+
"type": "image",
|
|
2534
|
+
"src": "asset:city-night",
|
|
2535
|
+
"tone": "dark",
|
|
2536
|
+
"textPlacement": "top-start"
|
|
2445
2537
|
}
|
|
2446
2538
|
]
|
|
2447
2539
|
},
|
|
@@ -2564,184 +2656,914 @@ var presentation = {
|
|
|
2564
2656
|
}
|
|
2565
2657
|
]
|
|
2566
2658
|
},
|
|
2567
|
-
"
|
|
2568
|
-
"
|
|
2569
|
-
"additionalProperties": false,
|
|
2570
|
-
"required": [
|
|
2571
|
-
"color",
|
|
2572
|
-
"width"
|
|
2573
|
-
],
|
|
2574
|
-
"description": "Solid line along the image frame's shape, centered on the outline with a miter join, like a native picture line. A thick dark border on a rounded portrait frame gives a device bezel.",
|
|
2575
|
-
"properties": {
|
|
2576
|
-
"color": {
|
|
2577
|
-
"$ref": "#/$defs/ColorRef",
|
|
2578
|
-
"description": "Line color: a hex color, a color-scheme slot or role name, or a 'var:<id>' variable reference."
|
|
2579
|
-
},
|
|
2580
|
-
"width": {
|
|
2581
|
-
"type": "number",
|
|
2582
|
-
"minimum": 0,
|
|
2583
|
-
"maximum": 64,
|
|
2584
|
-
"description": "Line width in reference pixels at a 720-pixel short edge. 0 removes the line."
|
|
2585
|
-
}
|
|
2586
|
-
}
|
|
2587
|
-
},
|
|
2588
|
-
"ImageRecolor": {
|
|
2589
|
-
"oneOf": [
|
|
2659
|
+
"Stroke": {
|
|
2660
|
+
"anyOf": [
|
|
2590
2661
|
{
|
|
2591
2662
|
"type": "string",
|
|
2592
|
-
"const": "
|
|
2593
|
-
"description": "
|
|
2663
|
+
"const": "none",
|
|
2664
|
+
"description": "No line (a:ln with a:noFill), also on a shape whose style would draw one."
|
|
2594
2665
|
},
|
|
2595
2666
|
{
|
|
2596
2667
|
"type": "object",
|
|
2597
2668
|
"additionalProperties": false,
|
|
2598
|
-
"required": [
|
|
2599
|
-
"dark",
|
|
2600
|
-
"light"
|
|
2601
|
-
],
|
|
2602
2669
|
"properties": {
|
|
2603
|
-
"
|
|
2670
|
+
"color": {
|
|
2604
2671
|
"$ref": "#/$defs/ColorRef",
|
|
2605
|
-
"description": "
|
|
2672
|
+
"description": "Line color: any ColorRef (eight-digit hex keeps its alpha). Default the shape style's line color, or the slide's neutral line on a picture."
|
|
2606
2673
|
},
|
|
2607
|
-
"
|
|
2608
|
-
"$ref": "#/$defs/
|
|
2609
|
-
"description": "
|
|
2610
|
-
}
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2674
|
+
"gradient": {
|
|
2675
|
+
"$ref": "#/$defs/Gradient",
|
|
2676
|
+
"description": "A gradient line instead of a solid color (a:ln/a:gradFill)."
|
|
2677
|
+
},
|
|
2678
|
+
"width": {
|
|
2679
|
+
"type": "number",
|
|
2680
|
+
"minimum": 0,
|
|
2681
|
+
"maximum": 64,
|
|
2682
|
+
"description": "Line width in reference pixels at a 720-pixel short edge. 0 removes the line. Default 4/3 (1 point, PowerPoint's default line) on a shape, 2 on a picture."
|
|
2683
|
+
},
|
|
2684
|
+
"dash": {
|
|
2685
|
+
"anyOf": [
|
|
2686
|
+
{
|
|
2687
|
+
"type": "string",
|
|
2688
|
+
"enum": [
|
|
2689
|
+
"solid",
|
|
2690
|
+
"dot",
|
|
2691
|
+
"dash",
|
|
2692
|
+
"longDash",
|
|
2693
|
+
"dashDot",
|
|
2694
|
+
"longDashDot",
|
|
2695
|
+
"longDashDotDot",
|
|
2696
|
+
"sysDot",
|
|
2697
|
+
"sysDash",
|
|
2698
|
+
"sysDashDot",
|
|
2699
|
+
"sysDashDotDot"
|
|
2700
|
+
],
|
|
2701
|
+
"description": "DrawingML preset dash (a:prstDash). Default solid."
|
|
2702
|
+
},
|
|
2703
|
+
{
|
|
2704
|
+
"type": "array",
|
|
2705
|
+
"minItems": 2,
|
|
2706
|
+
"maxItems": 20,
|
|
2707
|
+
"items": {
|
|
2708
|
+
"type": "number",
|
|
2709
|
+
"exclusiveMinimum": 0,
|
|
2710
|
+
"maximum": 100
|
|
2711
|
+
},
|
|
2712
|
+
"description": "A custom dash (a:custDash): dash and gap lengths in stroke widths, alternating, for example [4, 2]. An odd count repeats."
|
|
2713
|
+
}
|
|
2714
|
+
],
|
|
2715
|
+
"description": "Dash pattern: a preset name or an array of dash and gap lengths in stroke widths."
|
|
2716
|
+
},
|
|
2717
|
+
"cap": {
|
|
2638
2718
|
"type": "string",
|
|
2639
|
-
"
|
|
2640
|
-
|
|
2641
|
-
"
|
|
2642
|
-
"
|
|
2643
|
-
|
|
2644
|
-
|
|
2719
|
+
"enum": [
|
|
2720
|
+
"flat",
|
|
2721
|
+
"round",
|
|
2722
|
+
"square"
|
|
2723
|
+
],
|
|
2724
|
+
"description": "Line cap (a:ln cap flat, rnd, sq). Default flat."
|
|
2645
2725
|
},
|
|
2646
|
-
"
|
|
2647
|
-
"
|
|
2648
|
-
"
|
|
2649
|
-
|
|
2650
|
-
"
|
|
2651
|
-
|
|
2726
|
+
"join": {
|
|
2727
|
+
"type": "string",
|
|
2728
|
+
"enum": [
|
|
2729
|
+
"miter",
|
|
2730
|
+
"round",
|
|
2731
|
+
"bevel"
|
|
2732
|
+
],
|
|
2733
|
+
"description": "Line join (a:miter, a:round, a:bevel). Default miter, PowerPoint's default line join."
|
|
2652
2734
|
},
|
|
2653
|
-
"
|
|
2654
|
-
"
|
|
2655
|
-
"
|
|
2656
|
-
"
|
|
2657
|
-
|
|
2658
|
-
|
|
2735
|
+
"miterLimit": {
|
|
2736
|
+
"type": "number",
|
|
2737
|
+
"minimum": 1,
|
|
2738
|
+
"maximum": 100,
|
|
2739
|
+
"description": "Miter join limit, as a multiple of the stroke width (a:miter lim). Default 8. Ignored by round and bevel joins."
|
|
2740
|
+
},
|
|
2741
|
+
"compound": {
|
|
2742
|
+
"type": "string",
|
|
2743
|
+
"enum": [
|
|
2744
|
+
"single",
|
|
2745
|
+
"double",
|
|
2746
|
+
"thickThin",
|
|
2747
|
+
"thinThick",
|
|
2748
|
+
"triple"
|
|
2749
|
+
],
|
|
2750
|
+
"description": "Compound line (a:ln cmpd sng, dbl, thickThin, thinThick, tri). Default single."
|
|
2751
|
+
},
|
|
2752
|
+
"align": {
|
|
2753
|
+
"type": "string",
|
|
2754
|
+
"enum": [
|
|
2755
|
+
"center",
|
|
2756
|
+
"inside"
|
|
2757
|
+
],
|
|
2758
|
+
"description": "Where the line sits on the outline (a:ln algn ctr or in). Default center. PowerPoint draws inside-aligned lines only on closed outlines."
|
|
2759
|
+
},
|
|
2760
|
+
"start": {
|
|
2761
|
+
"$ref": "#/$defs/Arrowhead",
|
|
2762
|
+
"description": "Arrowhead at the start of an open path (a:headEnd)."
|
|
2763
|
+
},
|
|
2764
|
+
"end": {
|
|
2765
|
+
"$ref": "#/$defs/Arrowhead",
|
|
2766
|
+
"description": "Arrowhead at the end of an open path (a:tailEnd)."
|
|
2767
|
+
},
|
|
2768
|
+
"sketch": {
|
|
2769
|
+
"type": "string",
|
|
2770
|
+
"enum": [
|
|
2771
|
+
"curved",
|
|
2772
|
+
"freehand",
|
|
2773
|
+
"scribble"
|
|
2774
|
+
],
|
|
2775
|
+
"description": "Hand-drawn look (PowerPoint's Sketched line, ask:lineSketchStyleProps): curved, freehand or scribble. OPF computes the sketched outline from a seed and both engines draw it: the preview strokes it and the PPTX stores it, which PowerPoint draws as stored, so the two match. A stroked path's fill follows the sketched outline too. PowerPoint versions before 2021 draw the plain line."
|
|
2659
2776
|
}
|
|
2660
2777
|
}
|
|
2778
|
+
}
|
|
2779
|
+
],
|
|
2780
|
+
"description": "A line along an outline (SH-02): a shape block's outline or a picture's frame (the picture key 'border' was renamed 'stroke' in 0.33, with no alias). DrawingML a:ln. 'none' removes the line.",
|
|
2781
|
+
"examples": [
|
|
2782
|
+
"none",
|
|
2783
|
+
{
|
|
2784
|
+
"color": "accent1",
|
|
2785
|
+
"width": 2
|
|
2661
2786
|
},
|
|
2662
|
-
|
|
2663
|
-
"
|
|
2664
|
-
"
|
|
2665
|
-
"
|
|
2666
|
-
"
|
|
2787
|
+
{
|
|
2788
|
+
"color": "text",
|
|
2789
|
+
"width": 1.5,
|
|
2790
|
+
"dash": "dash",
|
|
2791
|
+
"end": {
|
|
2792
|
+
"type": "triangle"
|
|
2793
|
+
}
|
|
2794
|
+
},
|
|
2795
|
+
{
|
|
2796
|
+
"color": "#0F172A",
|
|
2797
|
+
"width": 12,
|
|
2798
|
+
"join": "round"
|
|
2667
2799
|
}
|
|
2668
|
-
|
|
2800
|
+
]
|
|
2669
2801
|
},
|
|
2670
|
-
"
|
|
2802
|
+
"Arrowhead": {
|
|
2671
2803
|
"type": "object",
|
|
2672
|
-
"description": "An organization's logo in up to four shapes. Each shape is a path or Asset, or { onLight, onDark } for the two backgrounds. A missing shape falls back to full, and full to the first defined of wordmark, stacked and icon; within a shape a missing onLight or onDark uses the other. Shapes are placed with slide-scoped references such as 'var:organization.logo.icon'.",
|
|
2673
2804
|
"additionalProperties": false,
|
|
2674
|
-
"
|
|
2805
|
+
"description": "An arrowhead at one end of an open path or a line preset (DrawingML a:headEnd at the start, a:tailEnd at the end). Closed outlines have no ends, so arrowheads draw only on open paths such as arc, line or a custom path that is not closed.",
|
|
2675
2806
|
"properties": {
|
|
2676
|
-
"
|
|
2677
|
-
"
|
|
2678
|
-
"
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2807
|
+
"type": {
|
|
2808
|
+
"type": "string",
|
|
2809
|
+
"enum": [
|
|
2810
|
+
"none",
|
|
2811
|
+
"triangle",
|
|
2812
|
+
"stealth",
|
|
2813
|
+
"diamond",
|
|
2814
|
+
"oval",
|
|
2815
|
+
"arrow"
|
|
2816
|
+
],
|
|
2817
|
+
"description": "Arrowhead kind, DrawingML's ST_LineEndType. Default 'triangle' when the object is given."
|
|
2683
2818
|
},
|
|
2684
|
-
"
|
|
2685
|
-
"
|
|
2686
|
-
"
|
|
2819
|
+
"width": {
|
|
2820
|
+
"type": "string",
|
|
2821
|
+
"enum": [
|
|
2822
|
+
"small",
|
|
2823
|
+
"medium",
|
|
2824
|
+
"large"
|
|
2825
|
+
],
|
|
2826
|
+
"description": "Arrowhead width relative to the stroke width (2, 3 or 5 stroke widths). Default medium."
|
|
2687
2827
|
},
|
|
2688
|
-
"
|
|
2689
|
-
"
|
|
2690
|
-
"
|
|
2828
|
+
"length": {
|
|
2829
|
+
"type": "string",
|
|
2830
|
+
"enum": [
|
|
2831
|
+
"small",
|
|
2832
|
+
"medium",
|
|
2833
|
+
"large"
|
|
2834
|
+
],
|
|
2835
|
+
"description": "Arrowhead length relative to the stroke width (2, 3 or 5 stroke widths). Default medium."
|
|
2691
2836
|
}
|
|
2692
2837
|
},
|
|
2693
2838
|
"examples": [
|
|
2694
2839
|
{
|
|
2695
|
-
"
|
|
2696
|
-
"icon": "./assets/acme-mark.svg"
|
|
2697
|
-
},
|
|
2698
|
-
{
|
|
2699
|
-
"full": {
|
|
2700
|
-
"onLight": "./assets/acme-logo.svg",
|
|
2701
|
-
"onDark": "./assets/acme-logo-white.svg"
|
|
2702
|
-
}
|
|
2703
|
-
}
|
|
2704
|
-
]
|
|
2705
|
-
},
|
|
2706
|
-
"LogoSource": {
|
|
2707
|
-
"description": "One logo shape: a path or Asset for every background, or { onLight, onDark }. onLight is drawn on light backgrounds (usually dark artwork) and onDark on dark backgrounds (usually light artwork), by each slide's background; a missing one uses the other.",
|
|
2708
|
-
"oneOf": [
|
|
2709
|
-
{
|
|
2710
|
-
"$ref": "#/$defs/Asset"
|
|
2840
|
+
"type": "triangle"
|
|
2711
2841
|
},
|
|
2712
2842
|
{
|
|
2713
|
-
"type": "
|
|
2714
|
-
"
|
|
2715
|
-
"
|
|
2716
|
-
"properties": {
|
|
2717
|
-
"onLight": {
|
|
2718
|
-
"$ref": "#/$defs/Asset",
|
|
2719
|
-
"description": "The logo for light backgrounds, usually dark artwork."
|
|
2720
|
-
},
|
|
2721
|
-
"onDark": {
|
|
2722
|
-
"$ref": "#/$defs/Asset",
|
|
2723
|
-
"description": "The logo for dark backgrounds, usually light or white artwork."
|
|
2724
|
-
}
|
|
2725
|
-
}
|
|
2726
|
-
}
|
|
2727
|
-
],
|
|
2728
|
-
"examples": [
|
|
2729
|
-
"./assets/acme-mark.svg",
|
|
2730
|
-
{
|
|
2731
|
-
"onLight": "./assets/acme-logo.svg",
|
|
2732
|
-
"onDark": "./assets/acme-logo-white.svg"
|
|
2843
|
+
"type": "stealth",
|
|
2844
|
+
"width": "large",
|
|
2845
|
+
"length": "large"
|
|
2733
2846
|
}
|
|
2734
2847
|
]
|
|
2735
2848
|
},
|
|
2736
|
-
"
|
|
2849
|
+
"Gradient": {
|
|
2737
2850
|
"type": "object",
|
|
2738
|
-
"description": "Decorative watermark: an image ('src') or a text stamp ('text'), exactly one of the two, with its opacity. An image is drawn once per slide, contained and centered in a fixed frame (the middle 40% of the slide width and height, from 30% to 70% on each axis). A text watermark is one line of text in the heading font and the theme text color at the given opacity, centered on the slide and rotated 30 degrees counterclockwise (rising to the right), sized to span at most 70% of the slide width and at most 30% of the shorter slide edge in height; it is drawn behind the slide content and above the background. There is no option to move, scale, rotate or tile either form. PPTX export writes one native picture (image) or one native text box (text) per slide with the opacity as alpha, and import restores the watermark. A string or Asset (no opacity) is the image watermark at opacity 0.08. A watermark object needs opacity and exactly one of src and text; use a plain string or Asset for an image at the default opacity. Use design.watermark = false to disable an inherited watermark.",
|
|
2739
2851
|
"additionalProperties": false,
|
|
2740
2852
|
"required": [
|
|
2741
|
-
"
|
|
2853
|
+
"stops"
|
|
2742
2854
|
],
|
|
2743
|
-
"
|
|
2744
|
-
|
|
2855
|
+
"description": "A gradient fill (SH-02): the background gradient object extended with 'type'. DrawingML a:gradFill: a:lin for linear, a:path circle, rect or shape for the others. The gradient rotates with the shape.",
|
|
2856
|
+
"properties": {
|
|
2857
|
+
"type": {
|
|
2858
|
+
"type": "string",
|
|
2859
|
+
"enum": [
|
|
2860
|
+
"linear",
|
|
2861
|
+
"radial",
|
|
2862
|
+
"rectangle",
|
|
2863
|
+
"shape"
|
|
2864
|
+
],
|
|
2865
|
+
"description": "linear runs along 'angle'; radial spreads from the center as a circle, rectangle as a rectangle and shape along the shape's own outline (a:path circle, rect, shape). Default linear."
|
|
2866
|
+
},
|
|
2867
|
+
"angle": {
|
|
2868
|
+
"type": "number",
|
|
2869
|
+
"description": "Linear gradients only: angle in degrees (0 = left to right, 90 = top to bottom). Default 90."
|
|
2870
|
+
},
|
|
2871
|
+
"stops": {
|
|
2872
|
+
"type": "array",
|
|
2873
|
+
"minItems": 2,
|
|
2874
|
+
"description": "Ordered color stops; at least two. A radial, rectangle or shape gradient runs from the center (position 0) to the outline (position 1).",
|
|
2875
|
+
"items": {
|
|
2876
|
+
"type": "object",
|
|
2877
|
+
"additionalProperties": false,
|
|
2878
|
+
"required": [
|
|
2879
|
+
"color",
|
|
2880
|
+
"position"
|
|
2881
|
+
],
|
|
2882
|
+
"properties": {
|
|
2883
|
+
"color": {
|
|
2884
|
+
"$ref": "#/$defs/ColorRef",
|
|
2885
|
+
"description": "Stop color: any ColorRef (eight-digit hex keeps its alpha)."
|
|
2886
|
+
},
|
|
2887
|
+
"position": {
|
|
2888
|
+
"type": "number",
|
|
2889
|
+
"minimum": 0,
|
|
2890
|
+
"maximum": 1,
|
|
2891
|
+
"description": "Stop position, 0 to 1."
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2894
|
+
}
|
|
2895
|
+
}
|
|
2896
|
+
},
|
|
2897
|
+
"examples": [
|
|
2898
|
+
{
|
|
2899
|
+
"type": "linear",
|
|
2900
|
+
"angle": 90,
|
|
2901
|
+
"stops": [
|
|
2902
|
+
{
|
|
2903
|
+
"color": "accent1",
|
|
2904
|
+
"position": 0
|
|
2905
|
+
},
|
|
2906
|
+
{
|
|
2907
|
+
"color": {
|
|
2908
|
+
"color": "accent1",
|
|
2909
|
+
"darken": 0.5
|
|
2910
|
+
},
|
|
2911
|
+
"position": 1
|
|
2912
|
+
}
|
|
2913
|
+
]
|
|
2914
|
+
}
|
|
2915
|
+
]
|
|
2916
|
+
},
|
|
2917
|
+
"Pattern": {
|
|
2918
|
+
"type": "object",
|
|
2919
|
+
"additionalProperties": false,
|
|
2920
|
+
"required": [
|
|
2921
|
+
"preset"
|
|
2922
|
+
],
|
|
2923
|
+
"description": "A two-color pattern fill (the background pattern object), DrawingML a:pattFill.",
|
|
2924
|
+
"properties": {
|
|
2925
|
+
"preset": {
|
|
2926
|
+
"type": "string",
|
|
2927
|
+
"description": "DrawingML pattern preset (ECMA-376 ST_PresetPatternVal), for example pct5, ltHorz, wdUpDiag, smGrid or dotDmnd.",
|
|
2928
|
+
"examples": [
|
|
2929
|
+
"pct20",
|
|
2930
|
+
"ltUpDiag",
|
|
2931
|
+
"smGrid"
|
|
2932
|
+
]
|
|
2933
|
+
},
|
|
2934
|
+
"foregroundColor": {
|
|
2935
|
+
"$ref": "#/$defs/ColorRef",
|
|
2936
|
+
"description": "Pattern color. Default the shape style's fill color."
|
|
2937
|
+
},
|
|
2938
|
+
"backgroundColor": {
|
|
2939
|
+
"$ref": "#/$defs/ColorRef",
|
|
2940
|
+
"description": "Color behind the pattern. Default the slide background."
|
|
2941
|
+
}
|
|
2942
|
+
}
|
|
2943
|
+
},
|
|
2944
|
+
"ShapeFill": {
|
|
2945
|
+
"anyOf": [
|
|
2946
|
+
{
|
|
2947
|
+
"type": "string",
|
|
2948
|
+
"const": "none",
|
|
2949
|
+
"description": "No fill (a:noFill)."
|
|
2950
|
+
},
|
|
2951
|
+
{
|
|
2952
|
+
"$ref": "#/$defs/ColorRef",
|
|
2953
|
+
"description": "A solid fill (a:solidFill): any ColorRef; eight-digit hex keeps its alpha."
|
|
2954
|
+
},
|
|
2955
|
+
{
|
|
2956
|
+
"type": "object",
|
|
2957
|
+
"additionalProperties": false,
|
|
2958
|
+
"required": [
|
|
2959
|
+
"gradient"
|
|
2960
|
+
],
|
|
2961
|
+
"properties": {
|
|
2962
|
+
"gradient": {
|
|
2963
|
+
"$ref": "#/$defs/Gradient"
|
|
2964
|
+
}
|
|
2965
|
+
},
|
|
2966
|
+
"description": "A gradient fill (a:gradFill)."
|
|
2967
|
+
},
|
|
2968
|
+
{
|
|
2969
|
+
"type": "object",
|
|
2970
|
+
"additionalProperties": false,
|
|
2971
|
+
"required": [
|
|
2972
|
+
"pattern"
|
|
2973
|
+
],
|
|
2974
|
+
"properties": {
|
|
2975
|
+
"pattern": {
|
|
2976
|
+
"$ref": "#/$defs/Pattern"
|
|
2977
|
+
}
|
|
2978
|
+
},
|
|
2979
|
+
"description": "A pattern fill (a:pattFill)."
|
|
2980
|
+
}
|
|
2981
|
+
],
|
|
2982
|
+
"description": "A shape block's fill (SH-02): 'none', a ColorRef, { gradient } or { pattern }. Without a fill a shape takes its style's fill (the theme's accent1 for the default style). Fills rotate with the shape (rotWithShape).",
|
|
2983
|
+
"examples": [
|
|
2984
|
+
"accent2",
|
|
2985
|
+
"none",
|
|
2986
|
+
{
|
|
2987
|
+
"color": "accent1",
|
|
2988
|
+
"lighten": 0.6
|
|
2989
|
+
},
|
|
2990
|
+
{
|
|
2991
|
+
"gradient": {
|
|
2992
|
+
"type": "radial",
|
|
2993
|
+
"stops": [
|
|
2994
|
+
{
|
|
2995
|
+
"color": "light1",
|
|
2996
|
+
"position": 0
|
|
2997
|
+
},
|
|
2998
|
+
{
|
|
2999
|
+
"color": "accent1",
|
|
3000
|
+
"position": 1
|
|
3001
|
+
}
|
|
3002
|
+
]
|
|
3003
|
+
}
|
|
3004
|
+
},
|
|
3005
|
+
{
|
|
3006
|
+
"pattern": {
|
|
3007
|
+
"preset": "ltUpDiag",
|
|
3008
|
+
"foregroundColor": "accent1"
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
]
|
|
3012
|
+
},
|
|
3013
|
+
"ShapePreset": {
|
|
3014
|
+
"type": "string",
|
|
3015
|
+
"enum": [
|
|
3016
|
+
"line",
|
|
3017
|
+
"lineInv",
|
|
3018
|
+
"triangle",
|
|
3019
|
+
"rtTriangle",
|
|
3020
|
+
"rect",
|
|
3021
|
+
"diamond",
|
|
3022
|
+
"parallelogram",
|
|
3023
|
+
"trapezoid",
|
|
3024
|
+
"nonIsoscelesTrapezoid",
|
|
3025
|
+
"pentagon",
|
|
3026
|
+
"hexagon",
|
|
3027
|
+
"heptagon",
|
|
3028
|
+
"octagon",
|
|
3029
|
+
"decagon",
|
|
3030
|
+
"dodecagon",
|
|
3031
|
+
"star4",
|
|
3032
|
+
"star5",
|
|
3033
|
+
"star6",
|
|
3034
|
+
"star7",
|
|
3035
|
+
"star8",
|
|
3036
|
+
"star10",
|
|
3037
|
+
"star12",
|
|
3038
|
+
"star16",
|
|
3039
|
+
"star24",
|
|
3040
|
+
"star32",
|
|
3041
|
+
"roundRect",
|
|
3042
|
+
"round1Rect",
|
|
3043
|
+
"round2SameRect",
|
|
3044
|
+
"round2DiagRect",
|
|
3045
|
+
"snipRoundRect",
|
|
3046
|
+
"snip1Rect",
|
|
3047
|
+
"snip2SameRect",
|
|
3048
|
+
"snip2DiagRect",
|
|
3049
|
+
"plaque",
|
|
3050
|
+
"ellipse",
|
|
3051
|
+
"teardrop",
|
|
3052
|
+
"homePlate",
|
|
3053
|
+
"chevron",
|
|
3054
|
+
"pieWedge",
|
|
3055
|
+
"pie",
|
|
3056
|
+
"blockArc",
|
|
3057
|
+
"donut",
|
|
3058
|
+
"noSmoking",
|
|
3059
|
+
"rightArrow",
|
|
3060
|
+
"leftArrow",
|
|
3061
|
+
"upArrow",
|
|
3062
|
+
"downArrow",
|
|
3063
|
+
"stripedRightArrow",
|
|
3064
|
+
"notchedRightArrow",
|
|
3065
|
+
"bentUpArrow",
|
|
3066
|
+
"leftRightArrow",
|
|
3067
|
+
"upDownArrow",
|
|
3068
|
+
"leftUpArrow",
|
|
3069
|
+
"leftRightUpArrow",
|
|
3070
|
+
"quadArrow",
|
|
3071
|
+
"leftArrowCallout",
|
|
3072
|
+
"rightArrowCallout",
|
|
3073
|
+
"upArrowCallout",
|
|
3074
|
+
"downArrowCallout",
|
|
3075
|
+
"leftRightArrowCallout",
|
|
3076
|
+
"upDownArrowCallout",
|
|
3077
|
+
"quadArrowCallout",
|
|
3078
|
+
"bentArrow",
|
|
3079
|
+
"uturnArrow",
|
|
3080
|
+
"circularArrow",
|
|
3081
|
+
"leftCircularArrow",
|
|
3082
|
+
"leftRightCircularArrow",
|
|
3083
|
+
"curvedRightArrow",
|
|
3084
|
+
"curvedLeftArrow",
|
|
3085
|
+
"curvedUpArrow",
|
|
3086
|
+
"curvedDownArrow",
|
|
3087
|
+
"swooshArrow",
|
|
3088
|
+
"cube",
|
|
3089
|
+
"can",
|
|
3090
|
+
"lightningBolt",
|
|
3091
|
+
"heart",
|
|
3092
|
+
"sun",
|
|
3093
|
+
"moon",
|
|
3094
|
+
"smileyFace",
|
|
3095
|
+
"irregularSeal1",
|
|
3096
|
+
"irregularSeal2",
|
|
3097
|
+
"foldedCorner",
|
|
3098
|
+
"bevel",
|
|
3099
|
+
"frame",
|
|
3100
|
+
"halfFrame",
|
|
3101
|
+
"corner",
|
|
3102
|
+
"diagStripe",
|
|
3103
|
+
"chord",
|
|
3104
|
+
"arc",
|
|
3105
|
+
"leftBracket",
|
|
3106
|
+
"rightBracket",
|
|
3107
|
+
"leftBrace",
|
|
3108
|
+
"rightBrace",
|
|
3109
|
+
"bracketPair",
|
|
3110
|
+
"bracePair",
|
|
3111
|
+
"straightConnector1",
|
|
3112
|
+
"bentConnector2",
|
|
3113
|
+
"bentConnector3",
|
|
3114
|
+
"bentConnector4",
|
|
3115
|
+
"bentConnector5",
|
|
3116
|
+
"curvedConnector2",
|
|
3117
|
+
"curvedConnector3",
|
|
3118
|
+
"curvedConnector4",
|
|
3119
|
+
"curvedConnector5",
|
|
3120
|
+
"callout1",
|
|
3121
|
+
"callout2",
|
|
3122
|
+
"callout3",
|
|
3123
|
+
"accentCallout1",
|
|
3124
|
+
"accentCallout2",
|
|
3125
|
+
"accentCallout3",
|
|
3126
|
+
"borderCallout1",
|
|
3127
|
+
"borderCallout2",
|
|
3128
|
+
"borderCallout3",
|
|
3129
|
+
"accentBorderCallout1",
|
|
3130
|
+
"accentBorderCallout2",
|
|
3131
|
+
"accentBorderCallout3",
|
|
3132
|
+
"wedgeRectCallout",
|
|
3133
|
+
"wedgeRoundRectCallout",
|
|
3134
|
+
"wedgeEllipseCallout",
|
|
3135
|
+
"cloudCallout",
|
|
3136
|
+
"cloud",
|
|
3137
|
+
"ribbon",
|
|
3138
|
+
"ribbon2",
|
|
3139
|
+
"ellipseRibbon",
|
|
3140
|
+
"ellipseRibbon2",
|
|
3141
|
+
"leftRightRibbon",
|
|
3142
|
+
"verticalScroll",
|
|
3143
|
+
"horizontalScroll",
|
|
3144
|
+
"wave",
|
|
3145
|
+
"doubleWave",
|
|
3146
|
+
"plus",
|
|
3147
|
+
"flowChartProcess",
|
|
3148
|
+
"flowChartDecision",
|
|
3149
|
+
"flowChartInputOutput",
|
|
3150
|
+
"flowChartPredefinedProcess",
|
|
3151
|
+
"flowChartInternalStorage",
|
|
3152
|
+
"flowChartDocument",
|
|
3153
|
+
"flowChartMultidocument",
|
|
3154
|
+
"flowChartTerminator",
|
|
3155
|
+
"flowChartPreparation",
|
|
3156
|
+
"flowChartManualInput",
|
|
3157
|
+
"flowChartManualOperation",
|
|
3158
|
+
"flowChartConnector",
|
|
3159
|
+
"flowChartPunchedCard",
|
|
3160
|
+
"flowChartPunchedTape",
|
|
3161
|
+
"flowChartSummingJunction",
|
|
3162
|
+
"flowChartOr",
|
|
3163
|
+
"flowChartCollate",
|
|
3164
|
+
"flowChartSort",
|
|
3165
|
+
"flowChartExtract",
|
|
3166
|
+
"flowChartMerge",
|
|
3167
|
+
"flowChartOfflineStorage",
|
|
3168
|
+
"flowChartOnlineStorage",
|
|
3169
|
+
"flowChartMagneticTape",
|
|
3170
|
+
"flowChartMagneticDisk",
|
|
3171
|
+
"flowChartMagneticDrum",
|
|
3172
|
+
"flowChartDisplay",
|
|
3173
|
+
"flowChartDelay",
|
|
3174
|
+
"flowChartAlternateProcess",
|
|
3175
|
+
"flowChartOffpageConnector",
|
|
3176
|
+
"actionButtonBlank",
|
|
3177
|
+
"actionButtonHome",
|
|
3178
|
+
"actionButtonHelp",
|
|
3179
|
+
"actionButtonInformation",
|
|
3180
|
+
"actionButtonForwardNext",
|
|
3181
|
+
"actionButtonBackPrevious",
|
|
3182
|
+
"actionButtonEnd",
|
|
3183
|
+
"actionButtonBeginning",
|
|
3184
|
+
"actionButtonReturn",
|
|
3185
|
+
"actionButtonDocument",
|
|
3186
|
+
"actionButtonSound",
|
|
3187
|
+
"actionButtonMovie",
|
|
3188
|
+
"gear6",
|
|
3189
|
+
"gear9",
|
|
3190
|
+
"funnel",
|
|
3191
|
+
"mathPlus",
|
|
3192
|
+
"mathMinus",
|
|
3193
|
+
"mathMultiply",
|
|
3194
|
+
"mathDivide",
|
|
3195
|
+
"mathEqual",
|
|
3196
|
+
"mathNotEqual",
|
|
3197
|
+
"cornerTabs",
|
|
3198
|
+
"squareTabs",
|
|
3199
|
+
"plaqueTabs",
|
|
3200
|
+
"chartX",
|
|
3201
|
+
"chartStar",
|
|
3202
|
+
"chartPlus"
|
|
3203
|
+
],
|
|
3204
|
+
"description": "A DrawingML preset geometry (ECMA-376 ST_ShapeType, all 187), with PowerPoint's own names: rect, roundRect, ellipse, triangle, rightArrow, chevron, wedgeRectCallout, flowChartDecision and the rest. docs/shapes.md lists them with their default frames and adjust values.",
|
|
3205
|
+
"examples": [
|
|
3206
|
+
"rect",
|
|
3207
|
+
"roundRect",
|
|
3208
|
+
"ellipse",
|
|
3209
|
+
"chevron",
|
|
3210
|
+
"rightArrow",
|
|
3211
|
+
"wedgeRectCallout",
|
|
3212
|
+
"flowChartDecision"
|
|
3213
|
+
]
|
|
3214
|
+
},
|
|
3215
|
+
"ShapePath": {
|
|
3216
|
+
"anyOf": [
|
|
3217
|
+
{
|
|
3218
|
+
"type": "string",
|
|
3219
|
+
"minLength": 1,
|
|
3220
|
+
"description": 'SVG path data in a 0 to 1 box: x and y run from 0 (left, top) to 1 (right, bottom) of the block, for example "M0 0 L1 0 L0.5 1 Z".'
|
|
3221
|
+
},
|
|
3222
|
+
{
|
|
3223
|
+
"type": "object",
|
|
3224
|
+
"additionalProperties": false,
|
|
3225
|
+
"required": [
|
|
3226
|
+
"d",
|
|
3227
|
+
"viewBox"
|
|
3228
|
+
],
|
|
3229
|
+
"properties": {
|
|
3230
|
+
"d": {
|
|
3231
|
+
"type": "string",
|
|
3232
|
+
"minLength": 1,
|
|
3233
|
+
"description": "SVG path data in the viewBox."
|
|
3234
|
+
},
|
|
3235
|
+
"viewBox": {
|
|
3236
|
+
"type": "string",
|
|
3237
|
+
"pattern": "^\\s*-?[0-9.]+([ ,]+-?[0-9.]+){3}\\s*$",
|
|
3238
|
+
"description": "The path's own box, 'minX minY width height' as in SVG; it is stretched to the block."
|
|
3239
|
+
}
|
|
3240
|
+
},
|
|
3241
|
+
"description": "SVG path data with its own viewBox, for example an icon outline drawn on a 24 by 24 grid."
|
|
3242
|
+
}
|
|
3243
|
+
],
|
|
3244
|
+
"description": "Custom geometry (SH-02): SVG path data (M, L, H, V, C, S, Q, T, A and Z, absolute or relative) instead of a preset. PPTX export writes a:custGeom with the same path. A subpath that ends without Z is open: arrowheads draw at its ends (its fill closes it, as in PowerPoint).",
|
|
3245
|
+
"examples": [
|
|
3246
|
+
"M0 0 L1 0 L0.5 1 Z",
|
|
3247
|
+
{
|
|
3248
|
+
"d": "M12 2 L22 22 L2 22 Z",
|
|
3249
|
+
"viewBox": "0 0 24 24"
|
|
3250
|
+
}
|
|
3251
|
+
]
|
|
3252
|
+
},
|
|
3253
|
+
"ShapePadding": {
|
|
3254
|
+
"anyOf": [
|
|
3255
|
+
{
|
|
3256
|
+
"type": "number",
|
|
3257
|
+
"minimum": 0,
|
|
3258
|
+
"maximum": 200,
|
|
3259
|
+
"description": "The same inset on every side, in reference pixels at a 720-pixel short edge."
|
|
3260
|
+
},
|
|
3261
|
+
{
|
|
3262
|
+
"$ref": "#/$defs/TableCellPadding"
|
|
3263
|
+
}
|
|
3264
|
+
],
|
|
3265
|
+
"description": "Text insets inside the shape's text rectangle (a:bodyPr lIns, tIns, rIns, bIns), in reference pixels at a 720-pixel short edge: one number for every side or { top, right, bottom, left }. Default 9.6 left and right, 4.8 top and bottom, PowerPoint's 0.1 and 0.05 inch."
|
|
3266
|
+
},
|
|
3267
|
+
"Shadow": {
|
|
3268
|
+
"anyOf": [
|
|
3269
|
+
{
|
|
3270
|
+
"type": "string",
|
|
3271
|
+
"enum": [
|
|
3272
|
+
"soft",
|
|
3273
|
+
"hard",
|
|
3274
|
+
"perspective"
|
|
3275
|
+
],
|
|
3276
|
+
"description": "A preset outer shadow."
|
|
3277
|
+
},
|
|
3278
|
+
{
|
|
3279
|
+
"type": "object",
|
|
3280
|
+
"additionalProperties": false,
|
|
3281
|
+
"properties": {
|
|
3282
|
+
"color": {
|
|
3283
|
+
"$ref": "#/$defs/ColorRef",
|
|
3284
|
+
"description": "Shadow color. Default black."
|
|
3285
|
+
},
|
|
3286
|
+
"opacity": {
|
|
3287
|
+
"type": "number",
|
|
3288
|
+
"minimum": 0,
|
|
3289
|
+
"maximum": 1,
|
|
3290
|
+
"description": "Shadow opacity."
|
|
3291
|
+
},
|
|
3292
|
+
"blur": {
|
|
3293
|
+
"type": "number",
|
|
3294
|
+
"minimum": 0,
|
|
3295
|
+
"maximum": 200,
|
|
3296
|
+
"description": "Blur radius in reference pixels at a 720-pixel short edge."
|
|
3297
|
+
},
|
|
3298
|
+
"distance": {
|
|
3299
|
+
"type": "number",
|
|
3300
|
+
"minimum": 0,
|
|
3301
|
+
"maximum": 200,
|
|
3302
|
+
"description": "Offset from the shape in reference pixels at a 720-pixel short edge."
|
|
3303
|
+
},
|
|
3304
|
+
"angle": {
|
|
3305
|
+
"type": "number",
|
|
3306
|
+
"minimum": 0,
|
|
3307
|
+
"maximum": 360,
|
|
3308
|
+
"description": "Direction of the offset in degrees (0 = right, 90 = down)."
|
|
3309
|
+
},
|
|
3310
|
+
"size": {
|
|
3311
|
+
"type": "number",
|
|
3312
|
+
"minimum": 0.1,
|
|
3313
|
+
"maximum": 2,
|
|
3314
|
+
"description": "Shadow size relative to the shape (1 = the shape's own size)."
|
|
3315
|
+
}
|
|
3316
|
+
}
|
|
3317
|
+
}
|
|
3318
|
+
],
|
|
3319
|
+
"description": "Outer shadow (a:outerShdw): a preset name (soft, hard, perspective) or { color, opacity, blur, distance, angle, size }. SH-03 draws it in both engines."
|
|
3320
|
+
},
|
|
3321
|
+
"InnerShadow": {
|
|
3322
|
+
"type": "object",
|
|
3323
|
+
"additionalProperties": false,
|
|
3324
|
+
"description": "Inner shadow (a:innerShdw). SH-03 draws it in both engines.",
|
|
3325
|
+
"properties": {
|
|
3326
|
+
"color": {
|
|
3327
|
+
"$ref": "#/$defs/ColorRef",
|
|
3328
|
+
"description": "Shadow color. Default black."
|
|
3329
|
+
},
|
|
3330
|
+
"opacity": {
|
|
3331
|
+
"type": "number",
|
|
3332
|
+
"minimum": 0,
|
|
3333
|
+
"maximum": 1,
|
|
3334
|
+
"description": "Shadow opacity."
|
|
3335
|
+
},
|
|
3336
|
+
"blur": {
|
|
3337
|
+
"type": "number",
|
|
3338
|
+
"minimum": 0,
|
|
3339
|
+
"maximum": 200,
|
|
3340
|
+
"description": "Blur radius in reference pixels at a 720-pixel short edge."
|
|
3341
|
+
},
|
|
3342
|
+
"distance": {
|
|
3343
|
+
"type": "number",
|
|
3344
|
+
"minimum": 0,
|
|
3345
|
+
"maximum": 200,
|
|
3346
|
+
"description": "Offset in reference pixels at a 720-pixel short edge."
|
|
3347
|
+
},
|
|
3348
|
+
"angle": {
|
|
3349
|
+
"type": "number",
|
|
3350
|
+
"minimum": 0,
|
|
3351
|
+
"maximum": 360,
|
|
3352
|
+
"description": "Direction of the offset in degrees (0 = right, 90 = down)."
|
|
3353
|
+
}
|
|
3354
|
+
}
|
|
3355
|
+
},
|
|
3356
|
+
"Glow": {
|
|
3357
|
+
"type": "object",
|
|
3358
|
+
"additionalProperties": false,
|
|
3359
|
+
"description": "Glow around the outline (a:glow). SH-03 draws it in both engines.",
|
|
3360
|
+
"properties": {
|
|
3361
|
+
"color": {
|
|
3362
|
+
"$ref": "#/$defs/ColorRef",
|
|
3363
|
+
"description": "Glow color. Default accent."
|
|
3364
|
+
},
|
|
3365
|
+
"opacity": {
|
|
3366
|
+
"type": "number",
|
|
3367
|
+
"minimum": 0,
|
|
3368
|
+
"maximum": 1,
|
|
3369
|
+
"description": "Glow opacity."
|
|
3370
|
+
},
|
|
3371
|
+
"radius": {
|
|
3372
|
+
"type": "number",
|
|
3373
|
+
"minimum": 0,
|
|
3374
|
+
"maximum": 200,
|
|
3375
|
+
"description": "Glow size in reference pixels at a 720-pixel short edge."
|
|
3376
|
+
}
|
|
3377
|
+
}
|
|
3378
|
+
},
|
|
3379
|
+
"Reflection": {
|
|
3380
|
+
"type": "object",
|
|
3381
|
+
"additionalProperties": false,
|
|
3382
|
+
"description": "Reflection below the shape (a:reflection). SH-03 draws it in both engines.",
|
|
3383
|
+
"properties": {
|
|
3384
|
+
"opacity": {
|
|
3385
|
+
"type": "number",
|
|
3386
|
+
"minimum": 0,
|
|
3387
|
+
"maximum": 1,
|
|
3388
|
+
"description": "Opacity where the reflection starts."
|
|
3389
|
+
},
|
|
3390
|
+
"size": {
|
|
3391
|
+
"type": "number",
|
|
3392
|
+
"minimum": 0,
|
|
3393
|
+
"maximum": 1,
|
|
3394
|
+
"description": "Share of the shape's height reflected."
|
|
3395
|
+
},
|
|
3396
|
+
"distance": {
|
|
3397
|
+
"type": "number",
|
|
3398
|
+
"minimum": 0,
|
|
3399
|
+
"maximum": 200,
|
|
3400
|
+
"description": "Gap between the shape and its reflection in reference pixels at a 720-pixel short edge."
|
|
3401
|
+
},
|
|
3402
|
+
"blur": {
|
|
3403
|
+
"type": "number",
|
|
3404
|
+
"minimum": 0,
|
|
3405
|
+
"maximum": 200,
|
|
3406
|
+
"description": "Blur radius in reference pixels at a 720-pixel short edge."
|
|
3407
|
+
}
|
|
3408
|
+
}
|
|
3409
|
+
},
|
|
3410
|
+
"ImageRecolor": {
|
|
3411
|
+
"oneOf": [
|
|
3412
|
+
{
|
|
3413
|
+
"type": "string",
|
|
3414
|
+
"const": "grayscale",
|
|
3415
|
+
"description": "Replace each pixel with its luminance, exported as native a:grayscl."
|
|
3416
|
+
},
|
|
3417
|
+
{
|
|
3418
|
+
"type": "object",
|
|
3419
|
+
"additionalProperties": false,
|
|
3420
|
+
"required": [
|
|
3421
|
+
"dark",
|
|
3422
|
+
"light"
|
|
3423
|
+
],
|
|
3424
|
+
"properties": {
|
|
3425
|
+
"dark": {
|
|
3426
|
+
"$ref": "#/$defs/ColorRef",
|
|
3427
|
+
"description": "Color at luminance 0."
|
|
3428
|
+
},
|
|
3429
|
+
"light": {
|
|
3430
|
+
"$ref": "#/$defs/ColorRef",
|
|
3431
|
+
"description": "Color at luminance 1."
|
|
3432
|
+
}
|
|
3433
|
+
},
|
|
3434
|
+
"description": "Duotone: map each pixel's luminance linearly from dark to light, exported as native a:duotone."
|
|
3435
|
+
}
|
|
3436
|
+
],
|
|
3437
|
+
"description": "Color treatment for the image pixels. Luminance uses Rec. 601 weights (0.299, 0.587, 0.114) on sRGB values."
|
|
3438
|
+
},
|
|
3439
|
+
"PatternBackground": {
|
|
3440
|
+
"type": "object",
|
|
3441
|
+
"description": "Fixed pattern slide background fill.",
|
|
3442
|
+
"required": [
|
|
3443
|
+
"type",
|
|
3444
|
+
"pattern"
|
|
3445
|
+
],
|
|
3446
|
+
"properties": {
|
|
3447
|
+
"type": {
|
|
3448
|
+
"type": "string",
|
|
3449
|
+
"const": "pattern",
|
|
3450
|
+
"description": "Fixed pattern background fill."
|
|
3451
|
+
},
|
|
3452
|
+
"pattern": {
|
|
3453
|
+
"type": "object",
|
|
3454
|
+
"description": "Pattern fill definition.",
|
|
3455
|
+
"required": [
|
|
3456
|
+
"preset"
|
|
3457
|
+
],
|
|
3458
|
+
"properties": {
|
|
3459
|
+
"preset": {
|
|
3460
|
+
"type": "string",
|
|
3461
|
+
"description": "Pattern preset or engine-defined pattern id. DrawingML preset names (ECMA-376 ST_PresetPatternVal, for example pct5, ltHorz, wdUpDiag) are portable: PPTX export writes them as native pattern fills and import returns the same name. Engine-defined ids are renderer-specific; the legacy preview id diagStripe remains accepted and exports as wdUpDiag.",
|
|
3462
|
+
"examples": [
|
|
3463
|
+
"pct5",
|
|
3464
|
+
"ltHorz",
|
|
3465
|
+
"wdUpDiag"
|
|
3466
|
+
]
|
|
3467
|
+
},
|
|
3468
|
+
"foregroundColor": {
|
|
3469
|
+
"$ref": "#/$defs/ColorRef",
|
|
3470
|
+
"description": "Foreground color for the pattern: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).",
|
|
3471
|
+
"examples": [
|
|
3472
|
+
"#0F172A"
|
|
3473
|
+
]
|
|
3474
|
+
},
|
|
3475
|
+
"backgroundColor": {
|
|
3476
|
+
"$ref": "#/$defs/ColorRef",
|
|
3477
|
+
"description": "Background color behind the pattern: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).",
|
|
3478
|
+
"examples": [
|
|
3479
|
+
"#FFFFFF"
|
|
3480
|
+
]
|
|
3481
|
+
}
|
|
3482
|
+
}
|
|
3483
|
+
},
|
|
3484
|
+
"opacity": {
|
|
3485
|
+
"type": "number",
|
|
3486
|
+
"minimum": 0,
|
|
3487
|
+
"maximum": 1,
|
|
3488
|
+
"description": "Background opacity from 0 (fully transparent) to 1 (fully opaque)."
|
|
3489
|
+
}
|
|
3490
|
+
}
|
|
3491
|
+
},
|
|
3492
|
+
"OrganizationLogo": {
|
|
3493
|
+
"type": "object",
|
|
3494
|
+
"description": "An organization's logo in up to four shapes. Each shape is a path or Asset, or { onLight, onDark } for the two backgrounds. A missing shape falls back to full, and full to the first defined of wordmark, stacked and icon; within a shape a missing onLight or onDark uses the other. Shapes are placed with slide-scoped references such as 'var:organization.logo.icon'.",
|
|
3495
|
+
"additionalProperties": false,
|
|
3496
|
+
"minProperties": 1,
|
|
3497
|
+
"properties": {
|
|
3498
|
+
"full": {
|
|
3499
|
+
"$ref": "#/$defs/LogoSource",
|
|
3500
|
+
"description": "The full logo (lockup): mark and name side by side. Drawn on cover and section slides, and placed by 'var:organization.logo'."
|
|
3501
|
+
},
|
|
3502
|
+
"stacked": {
|
|
3503
|
+
"$ref": "#/$defs/LogoSource",
|
|
3504
|
+
"description": "The stacked lockup: mark above the name, for portrait or square slots. Placed by 'var:organization.logo.stacked'."
|
|
3505
|
+
},
|
|
3506
|
+
"icon": {
|
|
3507
|
+
"$ref": "#/$defs/LogoSource",
|
|
3508
|
+
"description": "The mark or symbol without the name, for tight spaces such as header and footer zones and picture bullets. Placed by 'var:organization.logo.icon'."
|
|
3509
|
+
},
|
|
3510
|
+
"wordmark": {
|
|
3511
|
+
"$ref": "#/$defs/LogoSource",
|
|
3512
|
+
"description": "The name set in the brand's lettering, without the mark. Placed by 'var:organization.logo.wordmark'."
|
|
3513
|
+
}
|
|
3514
|
+
},
|
|
3515
|
+
"examples": [
|
|
3516
|
+
{
|
|
3517
|
+
"full": "./assets/acme-logo.svg",
|
|
3518
|
+
"icon": "./assets/acme-mark.svg"
|
|
3519
|
+
},
|
|
3520
|
+
{
|
|
3521
|
+
"full": {
|
|
3522
|
+
"onLight": "./assets/acme-logo.svg",
|
|
3523
|
+
"onDark": "./assets/acme-logo-white.svg"
|
|
3524
|
+
}
|
|
3525
|
+
}
|
|
3526
|
+
]
|
|
3527
|
+
},
|
|
3528
|
+
"LogoSource": {
|
|
3529
|
+
"description": "One logo shape: a path or Asset for every background, or { onLight, onDark }. onLight is drawn on light backgrounds (usually dark artwork) and onDark on dark backgrounds (usually light artwork), by each slide's background; a missing one uses the other.",
|
|
3530
|
+
"oneOf": [
|
|
3531
|
+
{
|
|
3532
|
+
"$ref": "#/$defs/Asset"
|
|
3533
|
+
},
|
|
3534
|
+
{
|
|
3535
|
+
"type": "object",
|
|
3536
|
+
"additionalProperties": false,
|
|
3537
|
+
"minProperties": 1,
|
|
3538
|
+
"properties": {
|
|
3539
|
+
"onLight": {
|
|
3540
|
+
"$ref": "#/$defs/Asset",
|
|
3541
|
+
"description": "The logo for light backgrounds, usually dark artwork."
|
|
3542
|
+
},
|
|
3543
|
+
"onDark": {
|
|
3544
|
+
"$ref": "#/$defs/Asset",
|
|
3545
|
+
"description": "The logo for dark backgrounds, usually light or white artwork."
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3548
|
+
}
|
|
3549
|
+
],
|
|
3550
|
+
"examples": [
|
|
3551
|
+
"./assets/acme-mark.svg",
|
|
3552
|
+
{
|
|
3553
|
+
"onLight": "./assets/acme-logo.svg",
|
|
3554
|
+
"onDark": "./assets/acme-logo-white.svg"
|
|
3555
|
+
}
|
|
3556
|
+
]
|
|
3557
|
+
},
|
|
3558
|
+
"Watermark": {
|
|
3559
|
+
"type": "object",
|
|
3560
|
+
"description": "Decorative watermark: an image ('src') or a text stamp ('text'), exactly one of the two, with its opacity. An image is drawn once per slide, contained and centered in a fixed frame (the middle 40% of the slide width and height, from 30% to 70% on each axis). A text watermark is one line of text in the heading font and the theme text color at the given opacity, centered on the slide and rotated 30 degrees counterclockwise (rising to the right), sized to span at most 70% of the slide width and at most 30% of the shorter slide edge in height; it is drawn behind the slide content and above the background. There is no option to move, scale, rotate or tile either form. PPTX export writes one native picture (image) or one native text box (text) per slide with the opacity as alpha, and import restores the watermark. A string or Asset (no opacity) is the image watermark at opacity 0.08. A watermark object needs opacity and exactly one of src and text; use a plain string or Asset for an image at the default opacity. Use design.watermark = false to disable an inherited watermark.",
|
|
3561
|
+
"additionalProperties": false,
|
|
3562
|
+
"required": [
|
|
3563
|
+
"opacity"
|
|
3564
|
+
],
|
|
3565
|
+
"oneOf": [
|
|
3566
|
+
{
|
|
2745
3567
|
"required": [
|
|
2746
3568
|
"src"
|
|
2747
3569
|
]
|
|
@@ -2849,6 +3671,347 @@ var presentation = {
|
|
|
2849
3671
|
}
|
|
2850
3672
|
}
|
|
2851
3673
|
},
|
|
3674
|
+
"OverlayShape": {
|
|
3675
|
+
"type": "object",
|
|
3676
|
+
"additionalProperties": false,
|
|
3677
|
+
"description": "SH-04: an entry of slide 'shapes', drawn over the composed slide above the content and the furniture, later entries on top; it never moves content. An entry with 'connector' is a connector between two blocks or overlay shapes: it takes only 'id', 'connector', 'adjust', 'stroke', 'alt', 'decorative', 'hidden' and 'extensions'; core routes it as PowerPoint's own connector presets and PPTX export writes a native p:cxnSp glued to the shapes at its ends, so it follows them when they are moved in PowerPoint. Any other entry is an overlay shape: the shape block vocabulary (geometry, paint, effects, transform, text, accessibility) and exactly one placement, 'x', 'y', 'width' and 'height' (fractions of the slide) or 'at' (against a block, so it follows the block wherever composition puts it); PPTX export writes a native p:sp.",
|
|
3678
|
+
"properties": {
|
|
3679
|
+
"id": {
|
|
3680
|
+
"type": "string",
|
|
3681
|
+
"minLength": 1,
|
|
3682
|
+
"description": "Optional stable identifier, unique among slide, payload and overlay ids in the document. A connector names it in 'from' or 'to'.",
|
|
3683
|
+
"examples": [
|
|
3684
|
+
"badge-new",
|
|
3685
|
+
"callout-1"
|
|
3686
|
+
]
|
|
3687
|
+
},
|
|
3688
|
+
"x": {
|
|
3689
|
+
"type": "number",
|
|
3690
|
+
"minimum": 0,
|
|
3691
|
+
"maximum": 1,
|
|
3692
|
+
"description": "Left edge as a fraction of the slide width, from the left edge; in a right-to-left deck from the right edge, mirrored as OPF mirrors start and end. With 'y', 'width' and 'height'."
|
|
3693
|
+
},
|
|
3694
|
+
"y": {
|
|
3695
|
+
"type": "number",
|
|
3696
|
+
"minimum": 0,
|
|
3697
|
+
"maximum": 1,
|
|
3698
|
+
"description": "Top edge as a fraction of the slide height, from the top edge."
|
|
3699
|
+
},
|
|
3700
|
+
"width": {
|
|
3701
|
+
"type": "number",
|
|
3702
|
+
"minimum": 0,
|
|
3703
|
+
"maximum": 1,
|
|
3704
|
+
"description": "Width as a fraction of the slide width."
|
|
3705
|
+
},
|
|
3706
|
+
"height": {
|
|
3707
|
+
"type": "number",
|
|
3708
|
+
"minimum": 0,
|
|
3709
|
+
"maximum": 1,
|
|
3710
|
+
"description": "Height as a fraction of the slide height."
|
|
3711
|
+
},
|
|
3712
|
+
"at": {
|
|
3713
|
+
"$ref": "#/$defs/OverlayAnchor"
|
|
3714
|
+
},
|
|
3715
|
+
"layer": {
|
|
3716
|
+
"type": "string",
|
|
3717
|
+
"enum": [
|
|
3718
|
+
"front",
|
|
3719
|
+
"back"
|
|
3720
|
+
],
|
|
3721
|
+
"description": "Overlay shapes only. front (the default) draws the shape over the slide: above the content and the furniture. back draws it behind the slide: above the background and the watermark, below the content and the furniture (a panel or band behind a block). Array order stacks the shapes within each layer. Connectors are always in front."
|
|
3722
|
+
},
|
|
3723
|
+
"connector": {
|
|
3724
|
+
"$ref": "#/$defs/Connector",
|
|
3725
|
+
"description": "Makes the entry a connector: what it joins and how it runs."
|
|
3726
|
+
},
|
|
3727
|
+
"shape": {
|
|
3728
|
+
"$ref": "#/$defs/ShapePreset",
|
|
3729
|
+
"description": "The preset geometry, as on a shape block. Default rect."
|
|
3730
|
+
},
|
|
3731
|
+
"path": {
|
|
3732
|
+
"$ref": "#/$defs/ShapePath",
|
|
3733
|
+
"description": "Custom geometry instead of a preset (a:custGeom), as on a shape block."
|
|
3734
|
+
},
|
|
3735
|
+
"adjust": {
|
|
3736
|
+
"type": "object",
|
|
3737
|
+
"propertyNames": {
|
|
3738
|
+
"pattern": "^[a-z][A-Za-z0-9]*$"
|
|
3739
|
+
},
|
|
3740
|
+
"additionalProperties": {
|
|
3741
|
+
"type": "number"
|
|
3742
|
+
},
|
|
3743
|
+
"description": "The preset's adjust handles (a:avLst) in OPF units, as on a shape block. On a connector, the adjust values of its connector preset (adj1 of an elbow or a curve between sites on one axis, a fraction of the frame's width), which replace the automatic route's, so a route made in PowerPoint is kept exactly.",
|
|
3744
|
+
"examples": [
|
|
3745
|
+
{
|
|
3746
|
+
"adj": 0.25
|
|
3747
|
+
}
|
|
3748
|
+
]
|
|
3749
|
+
},
|
|
3750
|
+
"fill": {
|
|
3751
|
+
"$ref": "#/$defs/ShapeFill",
|
|
3752
|
+
"description": "'none', a ColorRef, { gradient } or { pattern }. Default the style's fill."
|
|
3753
|
+
},
|
|
3754
|
+
"opacity": {
|
|
3755
|
+
"type": "number",
|
|
3756
|
+
"minimum": 0,
|
|
3757
|
+
"maximum": 1,
|
|
3758
|
+
"description": "The fill's opacity (a:alpha). Default 1."
|
|
3759
|
+
},
|
|
3760
|
+
"stroke": {
|
|
3761
|
+
"$ref": "#/$defs/Stroke",
|
|
3762
|
+
"description": "A shape's line along its outline (default the style's line), or a connector's line: color, width, dash, compound, sketch and arrowheads ('start' at 'from', 'end' at 'to'; default a 2-pixel line in the slide's text color with no arrowheads)."
|
|
3763
|
+
},
|
|
3764
|
+
"style": {
|
|
3765
|
+
"type": "string",
|
|
3766
|
+
"enum": [
|
|
3767
|
+
"none",
|
|
3768
|
+
"subtle",
|
|
3769
|
+
"moderate",
|
|
3770
|
+
"intense"
|
|
3771
|
+
],
|
|
3772
|
+
"description": "The theme shape style, as on a shape block. Default moderate."
|
|
3773
|
+
},
|
|
3774
|
+
"shadow": {
|
|
3775
|
+
"$ref": "#/$defs/Shadow",
|
|
3776
|
+
"description": "Outer shadow."
|
|
3777
|
+
},
|
|
3778
|
+
"innerShadow": {
|
|
3779
|
+
"$ref": "#/$defs/InnerShadow",
|
|
3780
|
+
"description": "Inner shadow."
|
|
3781
|
+
},
|
|
3782
|
+
"glow": {
|
|
3783
|
+
"$ref": "#/$defs/Glow",
|
|
3784
|
+
"description": "Glow."
|
|
3785
|
+
},
|
|
3786
|
+
"softEdge": {
|
|
3787
|
+
"type": "number",
|
|
3788
|
+
"minimum": 0,
|
|
3789
|
+
"maximum": 200,
|
|
3790
|
+
"description": "Soft edges (a:softEdge), radius in reference pixels at a 720-pixel short edge."
|
|
3791
|
+
},
|
|
3792
|
+
"reflection": {
|
|
3793
|
+
"$ref": "#/$defs/Reflection",
|
|
3794
|
+
"description": "Reflection."
|
|
3795
|
+
},
|
|
3796
|
+
"blur": {
|
|
3797
|
+
"type": "number",
|
|
3798
|
+
"minimum": 0,
|
|
3799
|
+
"maximum": 200,
|
|
3800
|
+
"description": "Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge."
|
|
3801
|
+
},
|
|
3802
|
+
"rotate": {
|
|
3803
|
+
"type": "number",
|
|
3804
|
+
"minimum": -360,
|
|
3805
|
+
"maximum": 360,
|
|
3806
|
+
"description": "Rotation in degrees, clockwise, about the shape's center (a:xfrm rot). Its connection sites turn with it."
|
|
3807
|
+
},
|
|
3808
|
+
"flip": {
|
|
3809
|
+
"type": "string",
|
|
3810
|
+
"enum": [
|
|
3811
|
+
"horizontal",
|
|
3812
|
+
"vertical",
|
|
3813
|
+
"both"
|
|
3814
|
+
],
|
|
3815
|
+
"description": "Mirror the geometry (a:xfrm flipH, flipV). The text is not mirrored."
|
|
3816
|
+
},
|
|
3817
|
+
"text": {
|
|
3818
|
+
"$ref": "#/$defs/ContentPayload/properties/text",
|
|
3819
|
+
"description": "Text inside the shape's text rectangle (a string or TextRun[]), fitted by OPF's measured fonts from the body size down to the readability floor and never below it."
|
|
3820
|
+
},
|
|
3821
|
+
"anchor": {
|
|
3822
|
+
"type": "string",
|
|
3823
|
+
"enum": [
|
|
3824
|
+
"top",
|
|
3825
|
+
"middle",
|
|
3826
|
+
"bottom"
|
|
3827
|
+
],
|
|
3828
|
+
"description": "Vertical placement of the text in the text rectangle (a:bodyPr anchor). Default middle."
|
|
3829
|
+
},
|
|
3830
|
+
"padding": {
|
|
3831
|
+
"$ref": "#/$defs/ShapePadding",
|
|
3832
|
+
"description": "Text insets inside the text rectangle."
|
|
3833
|
+
},
|
|
3834
|
+
"textDirection": {
|
|
3835
|
+
"type": "string",
|
|
3836
|
+
"enum": [
|
|
3837
|
+
"horizontal",
|
|
3838
|
+
"vertical",
|
|
3839
|
+
"vertical270",
|
|
3840
|
+
"stacked"
|
|
3841
|
+
],
|
|
3842
|
+
"description": "Text direction (a:bodyPr vert). Default horizontal."
|
|
3843
|
+
},
|
|
3844
|
+
"alt": {
|
|
3845
|
+
"type": "string",
|
|
3846
|
+
"description": "Alternative text (p:cNvPr descr). Without it the shape's text is what is read."
|
|
3847
|
+
},
|
|
3848
|
+
"decorative": {
|
|
3849
|
+
"type": "boolean",
|
|
3850
|
+
"description": "Mark the shape decorative (a16:decorative): screen readers skip it."
|
|
3851
|
+
},
|
|
3852
|
+
"hidden": {
|
|
3853
|
+
"type": "boolean",
|
|
3854
|
+
"description": "Keep the shape in the file but do not draw it (p:cNvPr hidden). A link on a hidden shape is a validation finding (opf/shape-link-hidden)."
|
|
3855
|
+
},
|
|
3856
|
+
"link": {
|
|
3857
|
+
"type": "string",
|
|
3858
|
+
"pattern": "^(https?://|mailto:|tel:)\\S+$",
|
|
3859
|
+
"description": "URL opened when the shape is clicked in a slide show (a:hlinkClick): an http(s) URL, a 'mailto:' address or a 'tel:' number.",
|
|
3860
|
+
"examples": [
|
|
3861
|
+
"https://acme.com/pricing"
|
|
3862
|
+
]
|
|
3863
|
+
},
|
|
3864
|
+
"extensions": {
|
|
3865
|
+
"type": "object",
|
|
3866
|
+
"description": "Custom data passthrough for agent workflows; ignored by the engine but preserved across read/write round-trips."
|
|
3867
|
+
}
|
|
3868
|
+
},
|
|
3869
|
+
"examples": [
|
|
3870
|
+
{
|
|
3871
|
+
"shape": "wedgeRectCallout",
|
|
3872
|
+
"text": "New this quarter",
|
|
3873
|
+
"x": 0.62,
|
|
3874
|
+
"y": 0.12,
|
|
3875
|
+
"width": 0.25,
|
|
3876
|
+
"height": 0.12,
|
|
3877
|
+
"style": "subtle"
|
|
3878
|
+
},
|
|
3879
|
+
{
|
|
3880
|
+
"id": "badge",
|
|
3881
|
+
"shape": "ellipse",
|
|
3882
|
+
"text": "3",
|
|
3883
|
+
"at": {
|
|
3884
|
+
"block": "team-photo",
|
|
3885
|
+
"edge": "top",
|
|
3886
|
+
"offset": -12
|
|
3887
|
+
}
|
|
3888
|
+
},
|
|
3889
|
+
{
|
|
3890
|
+
"connector": {
|
|
3891
|
+
"from": "plan",
|
|
3892
|
+
"to": "build",
|
|
3893
|
+
"route": "elbow"
|
|
3894
|
+
},
|
|
3895
|
+
"stroke": {
|
|
3896
|
+
"width": 2,
|
|
3897
|
+
"end": {
|
|
3898
|
+
"type": "triangle"
|
|
3899
|
+
}
|
|
3900
|
+
}
|
|
3901
|
+
}
|
|
3902
|
+
]
|
|
3903
|
+
},
|
|
3904
|
+
"OverlayAnchor": {
|
|
3905
|
+
"type": "object",
|
|
3906
|
+
"additionalProperties": false,
|
|
3907
|
+
"required": [
|
|
3908
|
+
"block",
|
|
3909
|
+
"edge"
|
|
3910
|
+
],
|
|
3911
|
+
"description": "Places an overlay shape against a composed block's box, so the shape follows the block wherever composition puts it. 'edge' puts the shape outside that edge, centered along it ('start' and 'end' follow the deck's direction: left and right in a left-to-right deck, right and left in a right-to-left one); 'center' puts it on the block's center. A block id that is not on the slide is a finding (opf/shape-anchor-missing) and the shape is not drawn.",
|
|
3912
|
+
"properties": {
|
|
3913
|
+
"block": {
|
|
3914
|
+
"type": "string",
|
|
3915
|
+
"minLength": 1,
|
|
3916
|
+
"description": "The id of a block on this slide (a content payload or a group, at any depth)."
|
|
3917
|
+
},
|
|
3918
|
+
"edge": {
|
|
3919
|
+
"type": "string",
|
|
3920
|
+
"enum": [
|
|
3921
|
+
"top",
|
|
3922
|
+
"bottom",
|
|
3923
|
+
"start",
|
|
3924
|
+
"end",
|
|
3925
|
+
"center"
|
|
3926
|
+
],
|
|
3927
|
+
"description": "The edge of the block the shape sits outside of, or its center."
|
|
3928
|
+
},
|
|
3929
|
+
"offset": {
|
|
3930
|
+
"type": "number",
|
|
3931
|
+
"minimum": -720,
|
|
3932
|
+
"maximum": 720,
|
|
3933
|
+
"description": "The gap between the block's edge and the shape, in reference pixels at a 720-pixel short edge; a negative offset overlaps the block. Default 0. Ignored for 'center'."
|
|
3934
|
+
},
|
|
3935
|
+
"width": {
|
|
3936
|
+
"type": "number",
|
|
3937
|
+
"exclusiveMinimum": 0,
|
|
3938
|
+
"maximum": 1280,
|
|
3939
|
+
"description": "The shape's width: up to 1 a fraction of the block's width, above 1 reference pixels at a 720-pixel short edge. Default the preset's natural proportions with the shape's shorter side at 15% of the block's shorter side."
|
|
3940
|
+
},
|
|
3941
|
+
"height": {
|
|
3942
|
+
"type": "number",
|
|
3943
|
+
"exclusiveMinimum": 0,
|
|
3944
|
+
"maximum": 1280,
|
|
3945
|
+
"description": "The shape's height: up to 1 a fraction of the block's height, above 1 reference pixels at a 720-pixel short edge. Default as for width."
|
|
3946
|
+
}
|
|
3947
|
+
},
|
|
3948
|
+
"examples": [
|
|
3949
|
+
{
|
|
3950
|
+
"block": "team-photo",
|
|
3951
|
+
"edge": "top",
|
|
3952
|
+
"offset": 8
|
|
3953
|
+
},
|
|
3954
|
+
{
|
|
3955
|
+
"block": "revenue-chart",
|
|
3956
|
+
"edge": "end",
|
|
3957
|
+
"width": 160,
|
|
3958
|
+
"height": 64
|
|
3959
|
+
}
|
|
3960
|
+
]
|
|
3961
|
+
},
|
|
3962
|
+
"Connector": {
|
|
3963
|
+
"type": "object",
|
|
3964
|
+
"additionalProperties": false,
|
|
3965
|
+
"required": [
|
|
3966
|
+
"from",
|
|
3967
|
+
"to"
|
|
3968
|
+
],
|
|
3969
|
+
"description": "What a connector joins and how it runs. Each end attaches to a connection site of its shape: a preset's own sites (turned and flipped with the shape), or the four edge midpoints of a block that is not a shape (DrawingML's rect: 0 top, 1 left, 2 bottom, 3 right). Without 'fromSite' and 'toSite' core chooses the pair of sites that face each other with the shortest route.",
|
|
3970
|
+
"properties": {
|
|
3971
|
+
"from": {
|
|
3972
|
+
"type": "string",
|
|
3973
|
+
"minLength": 1,
|
|
3974
|
+
"description": "The id of the block or overlay shape on this slide the connector starts at. An id that is not on the slide is a finding (opf/connector-end-missing) and the connector is not drawn."
|
|
3975
|
+
},
|
|
3976
|
+
"to": {
|
|
3977
|
+
"type": "string",
|
|
3978
|
+
"minLength": 1,
|
|
3979
|
+
"description": "The id of the block or overlay shape on this slide the connector ends at."
|
|
3980
|
+
},
|
|
3981
|
+
"route": {
|
|
3982
|
+
"type": "string",
|
|
3983
|
+
"enum": [
|
|
3984
|
+
"straight",
|
|
3985
|
+
"elbow",
|
|
3986
|
+
"curved"
|
|
3987
|
+
],
|
|
3988
|
+
"description": "straight is one segment (straightConnector1); elbow runs horizontally and vertically (bentConnector3, bentConnector2 between perpendicular sites); curved is PowerPoint's curved connector (curvedConnector3, curvedConnector2 between perpendicular sites). Default straight."
|
|
3989
|
+
},
|
|
3990
|
+
"fromSite": {
|
|
3991
|
+
"type": "integer",
|
|
3992
|
+
"minimum": 0,
|
|
3993
|
+
"description": "The connection site index at 'from' (DrawingML's cxn idx), instead of the automatic choice. An index the shape does not have is a validation error."
|
|
3994
|
+
},
|
|
3995
|
+
"toSite": {
|
|
3996
|
+
"type": "integer",
|
|
3997
|
+
"minimum": 0,
|
|
3998
|
+
"description": "The connection site index at 'to', instead of the automatic choice."
|
|
3999
|
+
}
|
|
4000
|
+
},
|
|
4001
|
+
"examples": [
|
|
4002
|
+
{
|
|
4003
|
+
"from": "plan",
|
|
4004
|
+
"to": "build",
|
|
4005
|
+
"route": "elbow"
|
|
4006
|
+
},
|
|
4007
|
+
{
|
|
4008
|
+
"from": "a",
|
|
4009
|
+
"to": "b",
|
|
4010
|
+
"fromSite": 3,
|
|
4011
|
+
"toSite": 1
|
|
4012
|
+
}
|
|
4013
|
+
]
|
|
4014
|
+
},
|
|
2852
4015
|
"Slide": {
|
|
2853
4016
|
"type": "object",
|
|
2854
4017
|
"description": "A single slide. Content can be authored as a full-slide root payload, or inside promoted named region keys such as 'left', 'center+right', and 'top:left'.",
|
|
@@ -3096,6 +4259,38 @@ var presentation = {
|
|
|
3096
4259
|
},
|
|
3097
4260
|
"description": "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for equivalent blocks."
|
|
3098
4261
|
},
|
|
4262
|
+
"shapes": {
|
|
4263
|
+
"type": "array",
|
|
4264
|
+
"items": {
|
|
4265
|
+
"$ref": "#/$defs/OverlayShape"
|
|
4266
|
+
},
|
|
4267
|
+
"description": "SH-04: shapes and connectors drawn over the composed slide, above its content and furniture, in array order (later entries on top). They never move content. An entry with connector is a connector between two blocks or overlay shapes; any other entry is an overlay shape placed by x, y, width and height (fractions of the slide) or at (against a block). See docs/shapes.md.",
|
|
4268
|
+
"examples": [
|
|
4269
|
+
[
|
|
4270
|
+
{
|
|
4271
|
+
"id": "note",
|
|
4272
|
+
"shape": "wedgeRectCallout",
|
|
4273
|
+
"text": "Launch",
|
|
4274
|
+
"x": 0.7,
|
|
4275
|
+
"y": 0.1,
|
|
4276
|
+
"width": 0.2,
|
|
4277
|
+
"height": 0.1
|
|
4278
|
+
},
|
|
4279
|
+
{
|
|
4280
|
+
"connector": {
|
|
4281
|
+
"from": "plan",
|
|
4282
|
+
"to": "ship",
|
|
4283
|
+
"route": "elbow"
|
|
4284
|
+
},
|
|
4285
|
+
"stroke": {
|
|
4286
|
+
"end": {
|
|
4287
|
+
"type": "triangle"
|
|
4288
|
+
}
|
|
4289
|
+
}
|
|
4290
|
+
}
|
|
4291
|
+
]
|
|
4292
|
+
]
|
|
4293
|
+
},
|
|
3099
4294
|
"design": {
|
|
3100
4295
|
"$ref": "#/$defs/SlideDesign",
|
|
3101
4296
|
"description": "Slide-level design applied on top of the deck-wide design."
|
|
@@ -3315,9 +4510,10 @@ var presentation = {
|
|
|
3315
4510
|
"quote",
|
|
3316
4511
|
"timeline",
|
|
3317
4512
|
"diagram",
|
|
4513
|
+
"shape",
|
|
3318
4514
|
"group"
|
|
3319
4515
|
],
|
|
3320
|
-
"description": "Optional content kind. When omitted, engines infer the kind from the fields present."
|
|
4516
|
+
"description": "Optional content kind. When omitted, engines infer the kind from the fields present: a block with 'shape' and no 'image', or with 'path', is a shape block."
|
|
3321
4517
|
},
|
|
3322
4518
|
"text": {
|
|
3323
4519
|
"oneOf": [
|
|
@@ -3414,7 +4610,7 @@ var presentation = {
|
|
|
3414
4610
|
"maximum": 3
|
|
3415
4611
|
}
|
|
3416
4612
|
],
|
|
3417
|
-
"description": "Lay the payload's `items` or `bullets` out in columns (OPF 0.19). 'auto' tries 1, 2 then 3 equal columns at the starting text size and uses the first count at which the list fits, as long as a column stays at least a quarter of the slide wide; when none fits, the largest
|
|
4613
|
+
"description": "Lay the payload's `items` or `bullets` out in columns (OPF 0.19). 'auto' tries 1, 2 then 3 equal columns at the starting text size and uses the first count at which the list fits, as long as a column stays at least a quarter of the slide wide; when none fits, 'auto' takes the count (1, 2 or 3) whose fitted size is largest, preferring fewer columns on a tie, and sets the list in one column only when its lines stay within the prose measure (or it is a type-scale step larger). A list of 6 or fewer entries is never split by 'auto'; it shrinks in one column. 1, 2 or 3 fixes the count. Column breaks fall between items (a nested item stays with its parent) and keep the columns as even as possible; numbering continues and reading order runs column by column. A lone list in a layout region with listColumns: 'auto' behaves as 'auto'.",
|
|
3418
4614
|
"examples": [
|
|
3419
4615
|
"auto",
|
|
3420
4616
|
2
|
|
@@ -3451,30 +4647,147 @@ var presentation = {
|
|
|
3451
4647
|
"description": "Image payloads only. Width-to-height ratio of the frame: the frame becomes the largest centered box with this ratio inside the block's region, for example 2.39 for a cinematic letterbox or 0.5 for a phone-shaped frame. shape 'circle' always uses 1."
|
|
3452
4648
|
},
|
|
3453
4649
|
"shape": {
|
|
4650
|
+
"$ref": "#/$defs/ShapePreset",
|
|
4651
|
+
"description": "The preset geometry. Without 'image' it makes the block a shape block (SH-02): the preset drawn at the block's own fitted size with 'fill', 'stroke' and 'style', and 'text' inside its text rectangle. On an image block it is the frame's mask, exported as the picture's native preset geometry (a:prstGeom); 0.33 renamed rectangle, rounded and circle to rect, roundRect and ellipse, and every other preset is a mask too. 'ellipse' makes an image frame square. Default rect.",
|
|
4652
|
+
"examples": [
|
|
4653
|
+
"roundRect",
|
|
4654
|
+
"chevron",
|
|
4655
|
+
"ellipse",
|
|
4656
|
+
"wedgeRectCallout"
|
|
4657
|
+
]
|
|
4658
|
+
},
|
|
4659
|
+
"stroke": {
|
|
4660
|
+
"$ref": "#/$defs/Stroke",
|
|
4661
|
+
"description": "Shape and image blocks. The line along the outline: a shape's outline or the picture frame's shape (renamed from the picture key 'border' in 0.33, no alias). Without it a shape takes its style's line; a picture has none."
|
|
4662
|
+
},
|
|
4663
|
+
"path": {
|
|
4664
|
+
"$ref": "#/$defs/ShapePath",
|
|
4665
|
+
"description": "Shape blocks only. Custom geometry instead of a preset (a:custGeom): SVG path data in a 0 to 1 box, or { d, viewBox }. A block with 'path' is a shape block."
|
|
4666
|
+
},
|
|
4667
|
+
"fill": {
|
|
4668
|
+
"$ref": "#/$defs/ShapeFill",
|
|
4669
|
+
"description": "Shape blocks only. 'none', a ColorRef, { gradient } or { pattern }. Default the style's fill."
|
|
4670
|
+
},
|
|
4671
|
+
"style": {
|
|
3454
4672
|
"type": "string",
|
|
3455
4673
|
"enum": [
|
|
3456
|
-
"
|
|
3457
|
-
"
|
|
3458
|
-
"
|
|
3459
|
-
"
|
|
4674
|
+
"none",
|
|
4675
|
+
"subtle",
|
|
4676
|
+
"moderate",
|
|
4677
|
+
"intense"
|
|
4678
|
+
],
|
|
4679
|
+
"description": "Shape blocks only. The theme shape style, as PowerPoint's shape styles (p:style with a:lnRef, a:fillRef, a:effectRef and a:fontRef): subtle is a light tint of accent1 with an accent1 line and dark text, moderate (the default) a solid accent1 fill with a darker line and light text, intense accent1 25% darker with no line, light bold text and the soft shadow. none draws nothing the author did not set. An explicit fill, stroke or effect wins over the style's."
|
|
4680
|
+
},
|
|
4681
|
+
"rotate": {
|
|
4682
|
+
"type": "number",
|
|
4683
|
+
"minimum": -360,
|
|
4684
|
+
"maximum": 360,
|
|
4685
|
+
"description": "Shape blocks only. Rotation in degrees, clockwise, about the shape's center (a:xfrm rot). Composition keeps the unrotated box; the rotated outline may reach past it."
|
|
4686
|
+
},
|
|
4687
|
+
"flip": {
|
|
4688
|
+
"type": "string",
|
|
4689
|
+
"enum": [
|
|
4690
|
+
"horizontal",
|
|
4691
|
+
"vertical",
|
|
4692
|
+
"both"
|
|
4693
|
+
],
|
|
4694
|
+
"description": "Shape blocks only. Mirror the geometry (a:xfrm flipH, flipV). The text is not mirrored."
|
|
4695
|
+
},
|
|
4696
|
+
"anchor": {
|
|
4697
|
+
"type": "string",
|
|
4698
|
+
"enum": [
|
|
4699
|
+
"top",
|
|
4700
|
+
"middle",
|
|
4701
|
+
"bottom"
|
|
3460
4702
|
],
|
|
3461
|
-
"description": "
|
|
4703
|
+
"description": "Shape blocks only. Vertical placement of the text in the text rectangle (a:bodyPr anchor t, ctr, b). Default middle."
|
|
3462
4704
|
},
|
|
3463
|
-
"
|
|
4705
|
+
"padding": {
|
|
4706
|
+
"$ref": "#/$defs/ShapePadding",
|
|
4707
|
+
"description": "Shape blocks only. Text insets inside the text rectangle."
|
|
4708
|
+
},
|
|
4709
|
+
"textDirection": {
|
|
4710
|
+
"type": "string",
|
|
4711
|
+
"enum": [
|
|
4712
|
+
"horizontal",
|
|
4713
|
+
"vertical",
|
|
4714
|
+
"vertical270",
|
|
4715
|
+
"stacked"
|
|
4716
|
+
],
|
|
4717
|
+
"description": "Shape blocks only. Text direction (a:bodyPr vert horz, vert, vert270, wordArtVert): vertical turns the text 90 degrees clockwise, vertical270 270, stacked stacks the letters top to bottom. Default horizontal."
|
|
4718
|
+
},
|
|
4719
|
+
"alt": {
|
|
4720
|
+
"type": "string",
|
|
4721
|
+
"description": "Shape blocks only. Alternative text for screen readers (p:cNvPr descr). Without it a shape's text is what is read."
|
|
4722
|
+
},
|
|
4723
|
+
"decorative": {
|
|
4724
|
+
"type": "boolean",
|
|
4725
|
+
"description": "Shape blocks only. Mark the shape decorative (a16:decorative): screen readers skip it and the accessibility checker does not ask for alt text."
|
|
4726
|
+
},
|
|
4727
|
+
"hidden": {
|
|
4728
|
+
"type": "boolean",
|
|
4729
|
+
"description": "Shape blocks only. Keep the shape in the file but do not draw it (p:cNvPr hidden). Composition still gives it its room. A link on a hidden shape cannot be clicked and is a validation finding (opf/shape-link-hidden)."
|
|
4730
|
+
},
|
|
4731
|
+
"link": {
|
|
4732
|
+
"type": "string",
|
|
4733
|
+
"pattern": "^(https?://|mailto:|tel:)\\S+$",
|
|
4734
|
+
"description": "Shape blocks only. URL opened when the shape is clicked in a slide show (a:hlinkClick): an http(s) URL, a 'mailto:' address or a 'tel:' number.",
|
|
4735
|
+
"examples": [
|
|
4736
|
+
"https://acme.com/pricing"
|
|
4737
|
+
]
|
|
4738
|
+
},
|
|
4739
|
+
"shadow": {
|
|
4740
|
+
"$ref": "#/$defs/Shadow",
|
|
4741
|
+
"description": "Shape blocks only. Outer shadow."
|
|
4742
|
+
},
|
|
4743
|
+
"innerShadow": {
|
|
4744
|
+
"$ref": "#/$defs/InnerShadow",
|
|
4745
|
+
"description": "Shape blocks only. Inner shadow."
|
|
4746
|
+
},
|
|
4747
|
+
"glow": {
|
|
4748
|
+
"$ref": "#/$defs/Glow",
|
|
4749
|
+
"description": "Shape blocks only. Glow."
|
|
4750
|
+
},
|
|
4751
|
+
"softEdge": {
|
|
4752
|
+
"type": "number",
|
|
4753
|
+
"minimum": 0,
|
|
4754
|
+
"maximum": 200,
|
|
4755
|
+
"description": "Shape blocks only. Soft edges (a:softEdge): the radius over which the outline fades, in reference pixels at a 720-pixel short edge. SH-03 draws it in both engines."
|
|
4756
|
+
},
|
|
4757
|
+
"reflection": {
|
|
4758
|
+
"$ref": "#/$defs/Reflection",
|
|
4759
|
+
"description": "Shape blocks only. Reflection."
|
|
4760
|
+
},
|
|
4761
|
+
"blur": {
|
|
3464
4762
|
"type": "number",
|
|
3465
4763
|
"minimum": 0,
|
|
3466
|
-
"maximum":
|
|
3467
|
-
"description": "
|
|
4764
|
+
"maximum": 200,
|
|
4765
|
+
"description": "Shape blocks only. Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge. SH-03 draws it in both engines."
|
|
3468
4766
|
},
|
|
3469
|
-
"
|
|
3470
|
-
"
|
|
3471
|
-
"
|
|
4767
|
+
"adjust": {
|
|
4768
|
+
"type": "object",
|
|
4769
|
+
"propertyNames": {
|
|
4770
|
+
"pattern": "^[a-z][A-Za-z0-9]*$"
|
|
4771
|
+
},
|
|
4772
|
+
"additionalProperties": {
|
|
4773
|
+
"type": "number"
|
|
4774
|
+
},
|
|
4775
|
+
"description": "Shape and image blocks. The preset's adjust handles (a:avLst), named as DrawingML's guides (adj, adj1, adj2 ... and hexagon's vf): fractions of the shape's shorter side or of its size as the preset defines them, degrees for an angle, never DrawingML's 100000ths or 60000ths. roundRect's adj is the corner radius as a fraction of the shorter side (0.16667 by default, 0 to 0.5). An unknown name or a value out of the preset's range is a validation finding (opf/shape-adjust-unknown, opf/shape-adjust-range) and the preset's default is drawn.",
|
|
4776
|
+
"examples": [
|
|
4777
|
+
{
|
|
4778
|
+
"adj": 0.25
|
|
4779
|
+
},
|
|
4780
|
+
{
|
|
4781
|
+
"adj1": 0.5,
|
|
4782
|
+
"adj2": 0.35
|
|
4783
|
+
}
|
|
4784
|
+
]
|
|
3472
4785
|
},
|
|
3473
4786
|
"opacity": {
|
|
3474
4787
|
"type": "number",
|
|
3475
4788
|
"minimum": 0,
|
|
3476
4789
|
"maximum": 1,
|
|
3477
|
-
"description": "Image
|
|
4790
|
+
"description": "Image and shape blocks. On an image: the picture's opacity, exported as a native alphaModFix; the stroke and overlay keep their own. On a shape: the fill's opacity (a:alpha on the fill color, multiplied with an eight-digit hex alpha); the stroke and text keep theirs. Default 1."
|
|
3478
4791
|
},
|
|
3479
4792
|
"recolor": {
|
|
3480
4793
|
"$ref": "#/$defs/ImageRecolor",
|
|
@@ -3488,6 +4801,20 @@ var presentation = {
|
|
|
3488
4801
|
"$ref": "#/$defs/ImagePlacement",
|
|
3489
4802
|
"description": "Image payloads only, and only on a top-level block (slides.N.blocks.I), at most one per edge. Bleeds the image to one slide edge; the headings and the other blocks compose in the rest of the slide."
|
|
3490
4803
|
},
|
|
4804
|
+
"portrait": {
|
|
4805
|
+
"type": "string",
|
|
4806
|
+
"enum": [
|
|
4807
|
+
"avatar",
|
|
4808
|
+
"side",
|
|
4809
|
+
"top"
|
|
4810
|
+
],
|
|
4811
|
+
"description": "Image payloads only: how a person's picture is drawn in a team. A person is a group of a picture followed by a name (a list of one entry, whose description holds the role and a line, or a short text); a slide whose body is only people is a team. 'top' draws each picture across the top of its card at the card's width, 'side' beside the text at 40% of the card's width (on the logical start side), 'avatar' as the small picture over the name. Without it the engine chooses: 'top' for 2 to 4 people, 'side' for 5 or 6, the avatar for more or when a card is too narrow. The first person's value applies to the whole team, so the cards stay equal. A 'top' or 'side' picture covers its frame around `focus` (the upper third when none is given) in a rounded frame unless `shape` says otherwise; names, roles and lines keep their size, and a frame flatter than 4:3 falls back to the avatar. Ignored on a picture that is not a person's.",
|
|
4812
|
+
"examples": [
|
|
4813
|
+
"top",
|
|
4814
|
+
"side",
|
|
4815
|
+
"avatar"
|
|
4816
|
+
]
|
|
4817
|
+
},
|
|
3491
4818
|
"video": {
|
|
3492
4819
|
"$ref": "#/$defs/Asset",
|
|
3493
4820
|
"description": "Source for a video item. Engines do not play video: the preview draws a placeholder (a play badge with the asset's title or source as its caption), and PPTX export draws the same placeholder as native shapes linked to an http(s) source, with no embedded media. Native playback is out of scope (docs/programs/release-readiness).",
|
|
@@ -3640,6 +4967,10 @@ var presentation = {
|
|
|
3640
4967
|
true,
|
|
3641
4968
|
false
|
|
3642
4969
|
]
|
|
4970
|
+
},
|
|
4971
|
+
"icon": {
|
|
4972
|
+
"$ref": "#/$defs/IconReference",
|
|
4973
|
+
"description": 'Groups only (LH-14): an icon drawn on a chip at the top of the group, before its heading, as a card of features or topics draws one: "<set>:<name>" ("lucide:shield-check"), a name from the deck\'s icons, or an SVG source. A list entry and a metric take their own `icon`. Decoration only: when the slide has no room for it without setting text smaller, it is not drawn (finding opf/icon-dropped). See docs/icons.md.'
|
|
3643
4974
|
}
|
|
3644
4975
|
},
|
|
3645
4976
|
"allOf": [
|
|
@@ -3813,6 +5144,32 @@ var presentation = {
|
|
|
3813
5144
|
]
|
|
3814
5145
|
}
|
|
3815
5146
|
},
|
|
5147
|
+
{
|
|
5148
|
+
"if": {
|
|
5149
|
+
"required": [
|
|
5150
|
+
"type"
|
|
5151
|
+
],
|
|
5152
|
+
"properties": {
|
|
5153
|
+
"type": {
|
|
5154
|
+
"const": "shape"
|
|
5155
|
+
}
|
|
5156
|
+
}
|
|
5157
|
+
},
|
|
5158
|
+
"then": {
|
|
5159
|
+
"anyOf": [
|
|
5160
|
+
{
|
|
5161
|
+
"required": [
|
|
5162
|
+
"shape"
|
|
5163
|
+
]
|
|
5164
|
+
},
|
|
5165
|
+
{
|
|
5166
|
+
"required": [
|
|
5167
|
+
"path"
|
|
5168
|
+
]
|
|
5169
|
+
}
|
|
5170
|
+
]
|
|
5171
|
+
}
|
|
5172
|
+
},
|
|
3816
5173
|
{
|
|
3817
5174
|
"if": {
|
|
3818
5175
|
"required": [
|
|
@@ -3997,7 +5354,7 @@ var presentation = {
|
|
|
3997
5354
|
},
|
|
3998
5355
|
"photo": {
|
|
3999
5356
|
"$ref": "#/$defs/Asset",
|
|
4000
|
-
"description": "Headshot of the attributed person, drawn as a circle beside the attribution and role lines (on the logical start side: left in a left-to-right deck, right in a right-to-left deck). Give it alt text (validate's opf/missing-alt-text rule checks it). A raster photograph works best; an SVG exports as its PNG raster because the
|
|
5357
|
+
"description": "Headshot of the attributed person, drawn as a circle beside the attribution and role lines (on the logical start side: left in a left-to-right deck, right in a right-to-left deck), or as a tall portrait beside the quote (see `portrait`). Give it alt text (validate's opf/missing-alt-text rule checks it). A raster photograph works best; an SVG exports as its PNG raster because the mask is not confirmed on SVG pictures in PowerPoint. An unresolved source draws the ordinary image placeholder.",
|
|
4001
5358
|
"examples": [
|
|
4002
5359
|
"./assets/priya-raman.jpg",
|
|
4003
5360
|
{
|
|
@@ -4006,6 +5363,18 @@ var presentation = {
|
|
|
4006
5363
|
}
|
|
4007
5364
|
]
|
|
4008
5365
|
},
|
|
5366
|
+
"portrait": {
|
|
5367
|
+
"type": "string",
|
|
5368
|
+
"enum": [
|
|
5369
|
+
"avatar",
|
|
5370
|
+
"side"
|
|
5371
|
+
],
|
|
5372
|
+
"description": "How the `photo` is drawn. 'side' draws it as a tall picture at the start of the quote (about a quarter of its width, rounded, cropped around the upper third), the quote text beside it and centered against it; 'avatar' as the circle beside the attribution. Without it the engine draws 'side' when the quote is at least 640 px wide and every part of the quote keeps the size it has beside the avatar (the picture takes a narrower share where the text needs the room), and the avatar otherwise (several quotes side by side, a quote beside other blocks). Needs `photo`.",
|
|
5373
|
+
"examples": [
|
|
5374
|
+
"side",
|
|
5375
|
+
"avatar"
|
|
5376
|
+
]
|
|
5377
|
+
},
|
|
4009
5378
|
"source": {
|
|
4010
5379
|
"type": "string",
|
|
4011
5380
|
"description": "Optional quote source, citation, or URL. Follows the attribution and role after ' - '.",
|
|
@@ -4178,6 +5547,10 @@ var presentation = {
|
|
|
4178
5547
|
"neutral"
|
|
4179
5548
|
],
|
|
4180
5549
|
"description": "Whether the change is good news. Positive draws the trend arrow and the trend and delta text in green, negative in red and neutral in the neutral text colour, each kept at 4.5:1 contrast or more against the slide background. When absent the colour follows the trend: up is positive, down is negative and flat is neutral. Set it when the direction is not the verdict, for example positive on a falling churn, cost or latency trend. The arrow always keeps the direction of `trend`. Only the trend arrow and the trend and delta text take the colour, so sentiment has no visible effect on a metric without a trend."
|
|
5550
|
+
},
|
|
5551
|
+
"icon": {
|
|
5552
|
+
"$ref": "#/$defs/IconReference",
|
|
5553
|
+
"description": `An icon drawn on a chip above the metric (LH-14): "<set>:<name>" ("lucide:users"), a name from the deck's icons, or an SVG source. Decoration only: when the slide has no room for it without setting text smaller, it is not drawn (finding opf/icon-dropped). See docs/icons.md.`
|
|
4181
5554
|
}
|
|
4182
5555
|
}
|
|
4183
5556
|
},
|
|
@@ -4381,6 +5754,10 @@ var presentation = {
|
|
|
4381
5754
|
"minimum": 0,
|
|
4382
5755
|
"description": "Zero-based nesting level for the list item."
|
|
4383
5756
|
},
|
|
5757
|
+
"icon": {
|
|
5758
|
+
"$ref": "#/$defs/IconReference",
|
|
5759
|
+
"description": `An icon drawn on a chip at the start of the entry, in place of its bullet (LH-14): "<set>:<name>" ("lucide:truck"), a name from the deck's icons, or an SVG source. Drawn on first-level entries of an unnumbered list. Decoration only: when the slide has no room for the chips without setting text smaller, they are not drawn (finding opf/icon-dropped). See docs/icons.md.`
|
|
5760
|
+
},
|
|
4384
5761
|
"start": {
|
|
4385
5762
|
"type": "integer",
|
|
4386
5763
|
"minimum": 1,
|
|
@@ -4549,12 +5926,23 @@ var presentation = {
|
|
|
4549
5926
|
"description": "Whether the run is rendered with a strikethrough line."
|
|
4550
5927
|
},
|
|
4551
5928
|
"color": {
|
|
4552
|
-
"
|
|
4553
|
-
|
|
5929
|
+
"anyOf": [
|
|
5930
|
+
{
|
|
5931
|
+
"type": "string"
|
|
5932
|
+
},
|
|
5933
|
+
{
|
|
5934
|
+
"$ref": "#/$defs/ColorTransform"
|
|
5935
|
+
}
|
|
5936
|
+
],
|
|
5937
|
+
"description": `Run text color. Documented forms: a hex string ('#RGB', '#RRGGBB', '#RRGGBBAA'), a color-scheme slot or role name resolved through the effective color scheme ('accent2', 'text'), or a 'var:<id>' reference into the top-level variables map. Prefer names over hex so runs survive re-theming. Or the lighter or darker object form of a ColorRef ({ "color": "accent1", "darken": 0.25 }). Any other string stays schema-valid so imported decks keep validating: validators warn and renderers fall back to the theme text color.`,
|
|
4554
5938
|
"examples": [
|
|
4555
5939
|
"#0F172A",
|
|
4556
5940
|
"accent2",
|
|
4557
|
-
"var:risk"
|
|
5941
|
+
"var:risk",
|
|
5942
|
+
{
|
|
5943
|
+
"color": "accent1",
|
|
5944
|
+
"darken": 0.25
|
|
5945
|
+
}
|
|
4558
5946
|
]
|
|
4559
5947
|
},
|
|
4560
5948
|
"fontSize": {
|
|
@@ -4794,7 +6182,7 @@ var presentation = {
|
|
|
4794
6182
|
"waterfall",
|
|
4795
6183
|
"world"
|
|
4796
6184
|
],
|
|
4797
|
-
"description": "Chart type, an engine vocabulary validated directly (no catalog lookup): the chart types
|
|
6185
|
+
"description": "Chart type, an engine vocabulary validated directly (no catalog lookup): the chart types OPF supports natively in its preview and PPTX export, plus 'combo' (clustered columns with line series, see 'line' and 'secondaryAxis'). Each engine maps a type to its own chart model; labels and picker groups are catalog display metadata.",
|
|
4798
6186
|
"examples": [
|
|
4799
6187
|
"column",
|
|
4800
6188
|
"bar",
|
|
@@ -5995,9 +7383,40 @@ var presentation = {
|
|
|
5995
7383
|
"tones": {
|
|
5996
7384
|
"$ref": "#/$defs/CatalogRecords",
|
|
5997
7385
|
"description": "Tone records keyed by id, each with the fields of https://openpresentation.org/schema/opf-tone/v1. Referenced from tone."
|
|
7386
|
+
},
|
|
7387
|
+
"iconSets": {
|
|
7388
|
+
"$ref": "#/$defs/CatalogRecords",
|
|
7389
|
+
"description": 'Icon-set records keyed by set id (LH-14), each with the fields of https://openpresentation.org/schema/opf-icon-set/v1, holding only the icons the document uses (no licenseText or tags). Referenced from an icon as "<set>:<name>".'
|
|
5998
7390
|
}
|
|
5999
7391
|
}
|
|
6000
7392
|
},
|
|
7393
|
+
"IconReference": {
|
|
7394
|
+
"type": "string",
|
|
7395
|
+
"pattern": "^(?:[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*|[a-z][a-z0-9-]*|(?:asset:|https://|data:|\\./|\\.\\./)\\S+)$",
|
|
7396
|
+
"description": 'An icon (LH-14): "<set>:<name>" names an icon of a set ("lucide:truck", "tabler:rocket"; the gallery bundles Lucide and Tabler outline), a bare name names one of the deck\'s `icons`, and an SVG source ("asset:<id>", "./icon.svg", an HTTPS URL or a data:image/svg+xml URI) names an SVG file, as pictures accept. A one-color icon draws in the accent and exports as a native, theme-colored PowerPoint shape; a multicolor SVG draws as a picture with its own colors. Unknown names are opf/icon-unknown, unusable SVG opf/icon-invalid.',
|
|
7397
|
+
"examples": [
|
|
7398
|
+
"lucide:truck",
|
|
7399
|
+
"tabler:rocket",
|
|
7400
|
+
"brand-mark",
|
|
7401
|
+
"asset:partner-logo"
|
|
7402
|
+
]
|
|
7403
|
+
},
|
|
7404
|
+
"Icons": {
|
|
7405
|
+
"type": "object",
|
|
7406
|
+
"description": 'Deck-local icons (LH-14), keyed by name: SVG text ("<svg \u2026>") or an SVG source ("asset:<id>", "./icon.svg", an HTTPS URL or a data URI). An `icon` names one by its bare name. The SVG is read, never run: a script, an event handler, an external reference or a raster makes it opf/icon-invalid. One paint (or currentColor) makes it a recolorable glyph; several make it a picture with its own colors.',
|
|
7407
|
+
"propertyNames": {
|
|
7408
|
+
"pattern": "^[a-z][a-z0-9-]*$"
|
|
7409
|
+
},
|
|
7410
|
+
"additionalProperties": {
|
|
7411
|
+
"type": "string",
|
|
7412
|
+
"minLength": 1
|
|
7413
|
+
},
|
|
7414
|
+
"examples": [
|
|
7415
|
+
{
|
|
7416
|
+
"brand-mark": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 12l5 5L20 6" fill="none" stroke="currentColor" stroke-width="2"/></svg>'
|
|
7417
|
+
}
|
|
7418
|
+
]
|
|
7419
|
+
},
|
|
6001
7420
|
"CatalogSource": {
|
|
6002
7421
|
"type": "string",
|
|
6003
7422
|
"pattern": "^(?:https://[^\\s]+|pkg:[^\\s]+)$",
|
|
@@ -7261,10 +8680,11 @@ var layout = {
|
|
|
7261
8680
|
"quote",
|
|
7262
8681
|
"timeline",
|
|
7263
8682
|
"diagram",
|
|
8683
|
+
"shape",
|
|
7264
8684
|
"group"
|
|
7265
8685
|
]
|
|
7266
8686
|
},
|
|
7267
|
-
"description": "Content kinds the region takes: the body content kinds, and 'group' for a content group of any content. A group is also accepted where every one of its leaf kinds is. Omitted: every body content kind and 'group'.",
|
|
8687
|
+
"description": "Content kinds the region takes: the body content kinds, and 'group' for a content group of any content. A region that takes 'image' also takes a shape block (SH-02). A group is also accepted where every one of its leaf kinds is. Omitted: every body content kind and 'group'.",
|
|
7268
8688
|
"examples": [
|
|
7269
8689
|
[
|
|
7270
8690
|
"text",
|
|
@@ -7333,6 +8753,18 @@ var layout = {
|
|
|
7333
8753
|
],
|
|
7334
8754
|
"description": "The region lists the steps of a sequence (LH-07). 'steps': two or more text or list blocks are the steps, each under a numbered badge (an accent circle with its numeral; a one-entry numbered list gives the badge its number and draws as a heading over its description) on one connector line through the badge centers; a lone list's entries are the steps, each beside its badge on a connector down the badge column; a lone list of 3 to 6 entries of one or two words is a flow of chips joined by arrows. 'numbered' (an agenda, ordered by nature): every list of two or more entries of one level draws its entries beside badges, numbered or not; an unnumbered list is counted in arabic, continuing from the region's previous unnumbered list, as drawing only (the document keeps no numbering). Steps keep the text size they have without the badges: a slide whose blocks would get smaller draws them as before. Absent: the region's content draws as any other."
|
|
7335
8755
|
},
|
|
8756
|
+
"arrangement": {
|
|
8757
|
+
"type": "string",
|
|
8758
|
+
"enum": [
|
|
8759
|
+
"pyramid",
|
|
8760
|
+
"matrix",
|
|
8761
|
+
"cycle",
|
|
8762
|
+
"chevrons",
|
|
8763
|
+
"flow",
|
|
8764
|
+
"vertical-flow"
|
|
8765
|
+
],
|
|
8766
|
+
"description": "SH-09: the region draws its lone list of one level as a diagram (docs/smartart.md), in the first design that holds every entry at one size, the list's role size or larger (up to 1.5 times), never smaller: PowerPoint's own geometry (Basic Pyramid: 1 to 8 entries as stacked levels, the first at the apex; Basic Matrix: exactly four entries as the quadrants of a centered square over a diamond; SH-18, Basic Cycle: 1 to 8 entries as circles on a ring, the first at the top and the rest clockwise, with an arrow from each to the next, in a frame of the cycle's own proportion centered in the region), which the PPTX export writes as live SmartArt where PowerPoint lays it out as the preview draws it; else OPF's own design (a stepped pyramid with each entry beside its level, four quadrants filling the region, or rounded rectangles on a ring filling the region with an arrow from each to the next). A matrix of other than four entries draws a grid of cards. SH-17: 'chevrons' (Basic Chevron Process: 1 to 8 entries as a row of chevrons), 'flow' (Basic Process: a row of boxes with arrows between them) and 'vertical-flow' (Vertical Process: a column of boxes with arrows between them), in PowerPoint's geometry where it holds the entries, else OPF's own row or column filling the region. Nodes are filled in the primary color with a 1.5 pt outline in the background color (cards in the card neutral). A cycle's arrows are the primary lightened 40%. A list with nested entries, descriptions, icons or numbering, more than 8 levels or steps, or one no design holds, draws as a list; opf/arrangement-adapted (info) reports the cards and the lists. Absent: the region's content draws as any other."
|
|
8767
|
+
},
|
|
7336
8768
|
"anchor": {
|
|
7337
8769
|
"type": "string",
|
|
7338
8770
|
"enum": [
|
|
@@ -7501,7 +8933,7 @@ var chartType = {
|
|
|
7501
8933
|
"$id": "https://openpresentation.org/schema/opf-chart-type/v1",
|
|
7502
8934
|
"$comment": "The v1 in the $id is the pre-1.0 line, not a frozen contract: this schema may change in any 0.x minor release. The release that produced this copy is the version of the @openpresentation/opf package it came from (opf --version; opf schemas lists it next to each id). See docs/schema-versioning.md.",
|
|
7503
8935
|
"title": "Chart Type",
|
|
7504
|
-
"description":
|
|
8936
|
+
"description": "Schema for chart-type records: display metadata for chart pickers (name, group, expected series, complexity) and the Open XML mapping a picker can describe. One record per chart type that OPF supports natively in its preview and PPTX export, plus the column-and-line combination 'combo'. A document's chart.type is an engine vocabulary validated directly; engines never look a chart-type record up. pptx.gallery publishes these records and @openpresentation/gallery ships them as catalogDisplay.chartTypes.",
|
|
7505
8937
|
"type": "object",
|
|
7506
8938
|
"additionalProperties": false,
|
|
7507
8939
|
"patternProperties": {
|
|
@@ -7673,15 +9105,15 @@ var chartType = {
|
|
|
7673
9105
|
},
|
|
7674
9106
|
"renderers": {
|
|
7675
9107
|
"type": "object",
|
|
7676
|
-
"description":
|
|
9108
|
+
"description": "Optional renderer-specific mappings. Keys are renderer ids; values are intentionally opaque to OPF. The bundled catalog records carry none.",
|
|
7677
9109
|
"additionalProperties": {
|
|
7678
9110
|
"type": "object",
|
|
7679
9111
|
"additionalProperties": true
|
|
7680
9112
|
},
|
|
7681
9113
|
"examples": [
|
|
7682
9114
|
{
|
|
7683
|
-
"
|
|
7684
|
-
"chartType": "
|
|
9115
|
+
"example-renderer": {
|
|
9116
|
+
"chartType": "StackedColumn"
|
|
7685
9117
|
}
|
|
7686
9118
|
}
|
|
7687
9119
|
]
|
|
@@ -8792,6 +10224,198 @@ var fontScheme = {
|
|
|
8792
10224
|
}
|
|
8793
10225
|
}
|
|
8794
10226
|
};
|
|
10227
|
+
var iconSet = {
|
|
10228
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
10229
|
+
"$id": "https://openpresentation.org/schema/opf-icon-set/v1",
|
|
10230
|
+
"$comment": "The v1 in the $id is the pre-1.0 line, not a frozen contract: this schema may change in any 0.x minor release. The release that produced this copy is the version of the @openpresentation/opf package it came from (opf --version; opf schemas lists it next to each id). See docs/schema-versioning.md.",
|
|
10231
|
+
"title": "Icon Set",
|
|
10232
|
+
"description": "Schema for icon-set records (LH-14): one set of icons that share a viewBox and a style, each icon as SVG path data. An OPF `icon` names one as `<set>:<name>` (docs/icons.md). @openpresentation/gallery ships Lucide and Tabler outline, generated from their npm packages; a host registers them as `galleryIconSets` of `@openpresentation/gallery/icon-sets` and loads a set only when a deck uses it, and a document embeds only the icons it uses under `catalogs.<group>.iconSets.<id>` (a record without `$schema`, `id`, `licenseText` or `tags`).",
|
|
10233
|
+
"type": "object",
|
|
10234
|
+
"required": [
|
|
10235
|
+
"$schema",
|
|
10236
|
+
"id",
|
|
10237
|
+
"name",
|
|
10238
|
+
"license",
|
|
10239
|
+
"copyright",
|
|
10240
|
+
"viewBox",
|
|
10241
|
+
"style",
|
|
10242
|
+
"icons"
|
|
10243
|
+
],
|
|
10244
|
+
"additionalProperties": false,
|
|
10245
|
+
"patternProperties": {
|
|
10246
|
+
"^x-": {
|
|
10247
|
+
"description": "Publisher extension member, ignored by engines and stripped when a record is embedded."
|
|
10248
|
+
}
|
|
10249
|
+
},
|
|
10250
|
+
"properties": {
|
|
10251
|
+
"$schema": {
|
|
10252
|
+
"type": "string",
|
|
10253
|
+
"const": "https://openpresentation.org/schema/opf-icon-set/v1",
|
|
10254
|
+
"description": "Identifies this record as an icon set."
|
|
10255
|
+
},
|
|
10256
|
+
"id": {
|
|
10257
|
+
"type": "string",
|
|
10258
|
+
"pattern": "^[a-z][a-z0-9-]*$",
|
|
10259
|
+
"description": "The set's id, the part of an icon reference before the colon. `asset` is not a set id: `asset:<id>` is an asset reference.",
|
|
10260
|
+
"not": {
|
|
10261
|
+
"const": "asset"
|
|
10262
|
+
},
|
|
10263
|
+
"examples": [
|
|
10264
|
+
"lucide",
|
|
10265
|
+
"tabler"
|
|
10266
|
+
]
|
|
10267
|
+
},
|
|
10268
|
+
"name": {
|
|
10269
|
+
"type": "string",
|
|
10270
|
+
"description": "Human-readable set name shown in pickers.",
|
|
10271
|
+
"examples": [
|
|
10272
|
+
"Lucide",
|
|
10273
|
+
"Tabler outline"
|
|
10274
|
+
]
|
|
10275
|
+
},
|
|
10276
|
+
"summary": {
|
|
10277
|
+
"type": "string",
|
|
10278
|
+
"description": "One line on what the set looks like."
|
|
10279
|
+
},
|
|
10280
|
+
"version": {
|
|
10281
|
+
"type": "string",
|
|
10282
|
+
"description": "The version of the source the icons were taken from, such as the npm package version.",
|
|
10283
|
+
"examples": [
|
|
10284
|
+
"1.68.0"
|
|
10285
|
+
]
|
|
10286
|
+
},
|
|
10287
|
+
"package": {
|
|
10288
|
+
"type": "string",
|
|
10289
|
+
"description": "The npm package the icons were generated from.",
|
|
10290
|
+
"examples": [
|
|
10291
|
+
"lucide-static",
|
|
10292
|
+
"@tabler/icons"
|
|
10293
|
+
]
|
|
10294
|
+
},
|
|
10295
|
+
"homepage": {
|
|
10296
|
+
"type": "string",
|
|
10297
|
+
"format": "uri",
|
|
10298
|
+
"description": "Where the set is published."
|
|
10299
|
+
},
|
|
10300
|
+
"license": {
|
|
10301
|
+
"type": "string",
|
|
10302
|
+
"description": "The SPDX license id of the icons.",
|
|
10303
|
+
"examples": [
|
|
10304
|
+
"ISC",
|
|
10305
|
+
"MIT"
|
|
10306
|
+
]
|
|
10307
|
+
},
|
|
10308
|
+
"copyright": {
|
|
10309
|
+
"type": "string",
|
|
10310
|
+
"description": "The copyright notice the license asks every copy to keep."
|
|
10311
|
+
},
|
|
10312
|
+
"licenseText": {
|
|
10313
|
+
"type": "string",
|
|
10314
|
+
"description": "The full license text, as the source package ships it."
|
|
10315
|
+
},
|
|
10316
|
+
"viewBox": {
|
|
10317
|
+
"type": "array",
|
|
10318
|
+
"description": "The one viewBox every icon of the set is drawn in: min-x, min-y, width, height.",
|
|
10319
|
+
"prefixItems": [
|
|
10320
|
+
{
|
|
10321
|
+
"type": "number"
|
|
10322
|
+
},
|
|
10323
|
+
{
|
|
10324
|
+
"type": "number"
|
|
10325
|
+
},
|
|
10326
|
+
{
|
|
10327
|
+
"type": "number",
|
|
10328
|
+
"exclusiveMinimum": 0
|
|
10329
|
+
},
|
|
10330
|
+
{
|
|
10331
|
+
"type": "number",
|
|
10332
|
+
"exclusiveMinimum": 0
|
|
10333
|
+
}
|
|
10334
|
+
],
|
|
10335
|
+
"items": false,
|
|
10336
|
+
"minItems": 4,
|
|
10337
|
+
"examples": [
|
|
10338
|
+
[
|
|
10339
|
+
0,
|
|
10340
|
+
0,
|
|
10341
|
+
24,
|
|
10342
|
+
24
|
|
10343
|
+
]
|
|
10344
|
+
]
|
|
10345
|
+
},
|
|
10346
|
+
"style": {
|
|
10347
|
+
"type": "string",
|
|
10348
|
+
"enum": [
|
|
10349
|
+
"stroke",
|
|
10350
|
+
"fill"
|
|
10351
|
+
],
|
|
10352
|
+
"description": "How a string icon draws: `stroke` strokes its path at `strokeWidth` with no fill, `fill` fills it (nonzero rule)."
|
|
10353
|
+
},
|
|
10354
|
+
"strokeWidth": {
|
|
10355
|
+
"type": "number",
|
|
10356
|
+
"exclusiveMinimum": 0,
|
|
10357
|
+
"description": "The stroke width in viewBox units (stroke sets). Default 2."
|
|
10358
|
+
},
|
|
10359
|
+
"strokeLinecap": {
|
|
10360
|
+
"type": "string",
|
|
10361
|
+
"enum": [
|
|
10362
|
+
"butt",
|
|
10363
|
+
"round",
|
|
10364
|
+
"square"
|
|
10365
|
+
],
|
|
10366
|
+
"description": "The stroke's line caps. Default round."
|
|
10367
|
+
},
|
|
10368
|
+
"strokeLinejoin": {
|
|
10369
|
+
"type": "string",
|
|
10370
|
+
"enum": [
|
|
10371
|
+
"miter",
|
|
10372
|
+
"round",
|
|
10373
|
+
"bevel"
|
|
10374
|
+
],
|
|
10375
|
+
"description": "The stroke's line joins. Default round."
|
|
10376
|
+
},
|
|
10377
|
+
"icons": {
|
|
10378
|
+
"type": "object",
|
|
10379
|
+
"description": "The icons by name. A string is the icon's path data, drawn as `style` says; an object separates the parts a stroke set strokes (`stroke`) from those it fills (`fill`). Every icon is one color: the engines draw it in the accent.",
|
|
10380
|
+
"propertyNames": {
|
|
10381
|
+
"pattern": "^[a-z0-9][a-z0-9-]*$"
|
|
10382
|
+
},
|
|
10383
|
+
"additionalProperties": {
|
|
10384
|
+
"oneOf": [
|
|
10385
|
+
{
|
|
10386
|
+
"type": "string",
|
|
10387
|
+
"minLength": 1
|
|
10388
|
+
},
|
|
10389
|
+
{
|
|
10390
|
+
"type": "object",
|
|
10391
|
+
"additionalProperties": false,
|
|
10392
|
+
"minProperties": 1,
|
|
10393
|
+
"properties": {
|
|
10394
|
+
"stroke": {
|
|
10395
|
+
"type": "string",
|
|
10396
|
+
"minLength": 1
|
|
10397
|
+
},
|
|
10398
|
+
"fill": {
|
|
10399
|
+
"type": "string",
|
|
10400
|
+
"minLength": 1
|
|
10401
|
+
}
|
|
10402
|
+
}
|
|
10403
|
+
}
|
|
10404
|
+
]
|
|
10405
|
+
}
|
|
10406
|
+
},
|
|
10407
|
+
"tags": {
|
|
10408
|
+
"type": "object",
|
|
10409
|
+
"description": "Search keywords by icon name, from the source package: what an icon search (the MCP's search_icons, pptx.gallery) matches besides the name.",
|
|
10410
|
+
"additionalProperties": {
|
|
10411
|
+
"type": "array",
|
|
10412
|
+
"items": {
|
|
10413
|
+
"type": "string"
|
|
10414
|
+
}
|
|
10415
|
+
}
|
|
10416
|
+
}
|
|
10417
|
+
}
|
|
10418
|
+
};
|
|
8795
10419
|
var finding = {
|
|
8796
10420
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
8797
10421
|
"$id": "https://openpresentation.org/schema/opf-finding/v1",
|
|
@@ -9225,6 +10849,7 @@ var schemas = {
|
|
|
9225
10849
|
language,
|
|
9226
10850
|
colorScheme,
|
|
9227
10851
|
fontScheme,
|
|
10852
|
+
iconSet,
|
|
9228
10853
|
finding
|
|
9229
10854
|
};
|
|
9230
10855
|
var schemaNames = [
|
|
@@ -9240,6 +10865,7 @@ var schemaNames = [
|
|
|
9240
10865
|
"language",
|
|
9241
10866
|
"colorScheme",
|
|
9242
10867
|
"fontScheme",
|
|
10868
|
+
"iconSet",
|
|
9243
10869
|
"finding"
|
|
9244
10870
|
];
|
|
9245
10871
|
var schemaEntries = [
|
|
@@ -9255,7 +10881,8 @@ var schemaEntries = [
|
|
|
9255
10881
|
{ name: "language", file: "schemas/language.schema.json", schema: language },
|
|
9256
10882
|
{ name: "colorScheme", file: "schemas/color-scheme.schema.json", schema: colorScheme },
|
|
9257
10883
|
{ name: "fontScheme", file: "schemas/font-scheme.schema.json", schema: fontScheme },
|
|
10884
|
+
{ name: "iconSet", file: "schemas/icon-set.schema.json", schema: iconSet },
|
|
9258
10885
|
{ name: "finding", file: "schemas/finding.schema.json", schema: finding }
|
|
9259
10886
|
];
|
|
9260
10887
|
|
|
9261
|
-
export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone };
|
|
10888
|
+
export { audience, chartType, colorScheme, fontScheme, iconSet, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone };
|