@openpresentation/opf 0.35.1 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +19 -19
- package/dist/{catalog-refs-BgotJhR5.d.ts → catalog-refs-BeRgtpZS.d.ts} +4 -4
- package/dist/{catalog-schemas-BX-VEc5Q.d.ts → catalog-schemas-CwY-3cCP.d.ts} +1 -1
- package/dist/{chunk-BN36KMXG.js → chunk-3A3PNYNP.js} +77 -15
- package/dist/{chunk-EGXHUIQ5.js → chunk-44IS6ZU2.js} +114 -9
- package/dist/{chunk-ZRTVPUYJ.js → chunk-4FA4ZABY.js} +6 -6
- package/dist/{chunk-OBNSVMNO.js → chunk-56BYOGIF.js} +1 -1
- package/dist/{chunk-MS2LPR7F.js → chunk-6WN6PRCI.js} +1 -1
- package/dist/{chunk-ZHLAMHSS.js → chunk-BHRCWV6B.js} +4 -4
- package/dist/{chunk-PWE6UY3Y.js → chunk-C5ACMFKB.js} +1440 -835
- package/dist/{chunk-PF3TVOMG.js → chunk-CYGQY6HH.js} +6 -6
- package/dist/{chunk-MIHW2IGO.js → chunk-EOMENOKY.js} +26 -7
- package/dist/{chunk-TRGSEXUR.js → chunk-HS2JQ3AO.js} +118 -19
- package/dist/chunk-IW4TXMJY.js +646 -0
- package/dist/{chunk-LLY5BZGF.js → chunk-JTNCBTEH.js} +4 -4
- package/dist/{chunk-3KPTVK77.js → chunk-KANQVJGK.js} +1244 -119
- package/dist/{chunk-VDZXNNZF.js → chunk-M4IPCFDV.js} +1 -1
- package/dist/{chunk-WPUV2223.js → chunk-ORVMHVOS.js} +86 -2
- package/dist/{chunk-B7XWF5RV.js → chunk-QFT4R2IL.js} +5304 -2991
- package/dist/chunk-QQBOI5XI.js +86 -0
- package/dist/{chunk-P6KRAHVG.js → chunk-TIVBO56G.js} +4 -4
- package/dist/{chunk-ZEVLLXSY.js → chunk-VD7WLE3C.js} +2 -2
- package/dist/{chunk-PXJZS4ZF.js → chunk-XJU2X5JM.js} +5 -4
- package/dist/chunk-YESKKKVE.js +1 -0
- package/dist/{chunk-XHWJI4O7.js → chunk-YZ4WMB5C.js} +26 -21
- package/dist/{composition-BmJfljJl.d.ts → composition-DiKC371V.d.ts} +844 -143
- package/dist/composition.d.ts +3 -3
- package/dist/composition.js +1 -1
- package/dist/{conversion-BIooTbt5.d.ts → conversion-DF_HgknQ.d.ts} +8 -6
- package/dist/conversion-XIWN7FMW.js +25 -0
- package/dist/convert.d.ts +5 -5
- package/dist/convert.js +63 -23
- package/dist/data.d.ts +41 -3
- package/dist/data.js +2 -2
- package/dist/{deck-report-BYkbL7uT.d.ts → deck-report-BwgsIRAf.d.ts} +3 -3
- package/dist/deck.d.ts +6 -6
- package/dist/deck.js +11 -11
- package/dist/diff.js +4 -4
- package/dist/docs.js +57 -33
- package/dist/examples.js +5349 -2989
- package/dist/font-policy.js +1 -1
- package/dist/format.js +2 -2
- package/dist/ids.d.ts +17 -4
- package/dist/ids.js +4 -4
- package/dist/index.d.ts +140 -23
- package/dist/index.js +22 -22
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.js +8 -8
- package/dist/metric-data-B4Q8RFRR.d.ts +382 -0
- package/dist/node-engine.d.ts +6 -6
- package/dist/node-engine.js +21 -21
- package/dist/{pagination-C0FPjO29.d.ts → pagination-C9qnH_n-.d.ts} +5 -5
- package/dist/pagination.d.ts +4 -4
- package/dist/pagination.js +4 -4
- package/dist/patch.js +3 -3
- package/dist/precompiled.js +2 -2
- package/dist/{presentation-Dx-kZC8Y.d.ts → presentation-DmOhusrX.d.ts} +541 -110
- package/dist/repo-readme.js +1 -1
- package/dist/schema-engine-ajv.js +1 -1
- package/dist/schema-engine-precompiled.js +2 -2
- package/dist/schema.d.ts +2 -2
- package/dist/schema.js +3 -3
- package/dist/schemas.d.ts +46 -2
- package/dist/schemas.js +1 -1
- package/dist/shape-engine-eager.js +2 -2
- package/dist/shape-engine-lazy.js +1 -1
- package/dist/{shape-engine-module-N74FCHGY.js → shape-engine-module-YU2XGIQN.js} +2 -2
- package/dist/shape-geometry.js +1 -1
- package/dist/source.js +10 -10
- package/dist/spec/reference/engine-defaults.json +1 -1
- package/dist/spec/reference/engine-vocabularies.json +1 -0
- package/dist/spec/schemas/font-scheme.schema.json +5 -6
- package/dist/spec/schemas/layout.schema.json +5 -4
- package/dist/spec/schemas/narrative.schema.json +1 -0
- package/dist/spec/schemas/opf.schema.json +661 -98
- package/dist/types.d.ts +11 -12
- package/dist/{validation-types-DKIe1RQW.d.ts → validation-types-CV-ngACL.d.ts} +49 -6
- package/dist/validator.d.ts +5 -5
- package/dist/validator.js +3 -3
- package/dist/yaml.d.ts +2 -2
- package/dist/yaml.js +7 -7
- package/package.json +5 -5
- package/dist/chart-data-B_k-WTex.d.ts +0 -194
- package/dist/chunk-6VGLE7C5.js +0 -3983
- package/dist/chunk-SEC4IOOS.js +0 -1
- package/dist/chunk-WCPDN7AY.js +0 -642
- package/dist/conversion-SB5CGD6Q.js +0 -25
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
"const": "https://openpresentation.org/schema/opf/v1",
|
|
14
14
|
"description": "Optional OPF schema version. When omitted, validators and engines should assume the latest supported OPF schema."
|
|
15
15
|
},
|
|
16
|
+
"id": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"minLength": 1,
|
|
19
|
+
"description": "Optional identity of the document: an opaque, non-empty string that says 'this is the same deck' across saves, exports, imports and publishes. Core never makes one (it has no clock and no randomness); 'opf create' and hosts do, and a UUID is recommended. Any string is valid, so a host keeps the deck id it already has (such as 'dk_5e8f1a7b3c909d426b1e7c3a'). Kept on save, export, import and publish; a duplicate, a fork or a deck filled from a template is a new deck and gets a new id. PowerPoint round trip: written to the OPF_DOCUMENT_V1 tag and restored on import, and an export with provenance off drops it. The id is a claim, not a credential: a file can carry any id, so a host must check who owns an id before it selects a stored deck.",
|
|
20
|
+
"examples": ["0192f4c8-6b1e-7c3a-9d42-5e8f1a7b3c90", "dk_5e8f1a7b3c909d426b1e7c3a"]
|
|
21
|
+
},
|
|
16
22
|
"name": {
|
|
17
23
|
"type": "string",
|
|
18
24
|
"description": "Display name of the presentation for GUI/TUI lists, library/search indexing, OS-level metadata, and default export filenames. This is deck identity, not slide content. Use slides[].title and slides[].subtitle for text that should appear on presented slides. Also the built-in variable 'deck.name'.",
|
|
@@ -196,11 +202,15 @@
|
|
|
196
202
|
"type": "array",
|
|
197
203
|
"items": { "$ref": "#/$defs/Reference" },
|
|
198
204
|
"description": "Sources that text runs cite with 'cite'. Ids are unique. A cited reference is listed in the footnote area of every slide that cites it, with a marker number assigned per deck in order of first use; a reference no run cites is the warning opf/unused-reference. referencesSlide() turns the cited references into an ordinary list slide.",
|
|
199
|
-
"examples": [[{ "id": "gartner-2026", "text": "Gartner, Market Guide for Presentation Tooling, 2026", "
|
|
205
|
+
"examples": [[{ "id": "gartner-2026", "text": "Gartner, Market Guide for Presentation Tooling, 2026", "link": "https://www.gartner.com" }]]
|
|
200
206
|
},
|
|
201
207
|
"datasets": {
|
|
202
208
|
"$ref": "#/$defs/Datasets",
|
|
203
|
-
"description": "Optional shared data tables, keyed by id. A chart ('chart.data': { \"dataset\": \"<id>\" }) or a table ('table': { \"dataset\": \"<id>\" }) references one instead of holding its own copy; engines inline the reference before composing, rendering or exporting. A dataset nothing references is the warning opf/unused-dataset. See docs/chart-table-data.md."
|
|
209
|
+
"description": "Optional shared data tables, keyed by id. A chart ('chart.data': { \"dataset\": \"<id>\" }) or a table ('table': { \"dataset\": \"<id>\" }) references one instead of holding its own copy; engines inline the reference before composing, rendering or exporting. A dataset nothing references is the warning opf/unused-dataset. A dataset says where it came from with 'datasource', 'query', 'retrieved', 'version', 'sha256' and 'generator' (see 'datasources'). See docs/chart-table-data.md."
|
|
210
|
+
},
|
|
211
|
+
"datasources": {
|
|
212
|
+
"$ref": "#/$defs/DataSources",
|
|
213
|
+
"description": "Optional data sources, keyed by id: the places data comes from (a warehouse, a workbook, an API), described once. A dataset or inline chart data names one with 'datasource': \"<id>\" and records what it took, when and by whom beside its own columns and rows. A data source never holds credentials. Engines never read, fetch or refresh a data source; they keep the entries through editing, export and re-import. An unknown id is the error opf/datasource-unknown. See docs/data-sources.md."
|
|
204
214
|
},
|
|
205
215
|
"assets": {
|
|
206
216
|
"$ref": "#/$defs/Assets",
|
|
@@ -608,7 +618,7 @@
|
|
|
608
618
|
"id": {
|
|
609
619
|
"type": "string",
|
|
610
620
|
"pattern": "^[a-zA-Z0-9_-]+$",
|
|
611
|
-
"description": "Stable identifier for the organization, used to reference it from Speaker.
|
|
621
|
+
"description": "Stable identifier for the organization, used to reference it from Speaker.organization and to address it in built-in variables as 'organization.<id>.<field>'. Must be unique among organizations (a duplicate is a validation error).",
|
|
612
622
|
"examples": ["acme", "acme-corp", "devconf-2026"]
|
|
613
623
|
},
|
|
614
624
|
"name": {
|
|
@@ -717,7 +727,7 @@
|
|
|
717
727
|
"Alice leads engineering at Acme, where she's spent the last six years scaling distributed systems from prototype to billions of requests per day. Previously, she was a staff engineer at Google."
|
|
718
728
|
]
|
|
719
729
|
},
|
|
720
|
-
"
|
|
730
|
+
"organization": {
|
|
721
731
|
"type": "string",
|
|
722
732
|
"description": "Reference to an Organization.id in organization; it must name an existing organization (a validation error otherwise). Attribution metadata for hosts: no engine draws it or changes which organization is primary because of it.",
|
|
723
733
|
"examples": ["acme", "beta", "devconf-2026"]
|
|
@@ -1006,7 +1016,7 @@
|
|
|
1006
1016
|
"FontScheme": {
|
|
1007
1017
|
"type": "object",
|
|
1008
1018
|
"additionalProperties": false,
|
|
1009
|
-
"description": "Typography selections used by the design system. The pair fields (major, minor) and refinement fields (type, app,
|
|
1019
|
+
"description": "Typography selections used by the design system. The pair fields (major, minor) and refinement fields (type, app, scriptGroup) mirror font-scheme.schema.json (https://openpresentation.org/schema/opf-font-scheme/v1) so library records and inline OPF overrides are interchangeable on those fields.\n\nTwo parallel models are supported and may be mixed:\n- OOXML pairs (major, minor) - heading and body family names that round-trip directly to PowerPoint majorFont/minorFont entries.\n- Abstract roles (heading, body, accent, code) - OPF-specific font family names the engine maps onto the OOXML pair when serializing. Convenient for inline overrides and for adding accent/code roles that don't have a direct OOXML slot. Catalog records may also carry 'code' (for example the consolas and courier-new records); heading, body and accent are not part of the catalog record schema. A role is a family name only: weight, style and tracking come from the text styles, and PowerPoint has no numeric weight.\n\nIn design.fontScheme, 'id' resolves a fontSchemes record as the base; pair and role overrides on the same object take precedence over the resolved scheme. The string form of design.fontScheme is equivalent to setting only 'id'.",
|
|
1010
1020
|
"properties": {
|
|
1011
1021
|
"id": {
|
|
1012
1022
|
"$ref": "#/$defs/CatalogReference",
|
|
@@ -1027,7 +1037,7 @@
|
|
|
1027
1037
|
"type": "object",
|
|
1028
1038
|
"additionalProperties": false,
|
|
1029
1039
|
"minProperties": 1,
|
|
1030
|
-
"description": "East Asian script fonts. Maps to the OOXML a:ea element of majorFont (major) and minorFont (minor), and to run-level a:ea. When set, they fill the eastAsian slot for every language; when omitted, the slot comes from this scheme's own major/minor when
|
|
1040
|
+
"description": "East Asian script fonts. Maps to the OOXML a:ea element of majorFont (major) and minorFont (minor), and to run-level a:ea. When set, they fill the eastAsian slot for every language; when omitted, the slot comes from this scheme's own major/minor when scriptGroup is 'eastAsian' and the scheme's languages list is empty or names the presentation language, then from the presentation language's font scheme for East Asian languages, and otherwise from the latin (major/minor) families. A missing 'major' or 'minor' falls back to the other.",
|
|
1031
1041
|
"properties": {
|
|
1032
1042
|
"major": {
|
|
1033
1043
|
"type": "string",
|
|
@@ -1045,7 +1055,7 @@
|
|
|
1045
1055
|
"type": "object",
|
|
1046
1056
|
"additionalProperties": false,
|
|
1047
1057
|
"minProperties": 1,
|
|
1048
|
-
"description": "Complex-script fonts (for example Arabic, Hebrew, Indic and Thai). Maps to the OOXML a:cs element of majorFont (major) and minorFont (minor), and to run-level a:cs. When set, they fill the complexScript slot for every language; when omitted, the slot comes from this scheme's own major/minor when
|
|
1058
|
+
"description": "Complex-script fonts (for example Arabic, Hebrew, Indic and Thai). Maps to the OOXML a:cs element of majorFont (major) and minorFont (minor), and to run-level a:cs. When set, they fill the complexScript slot for every language; when omitted, the slot comes from this scheme's own major/minor when scriptGroup is 'complexScript' and the scheme's languages list is empty or names the presentation language, then from the presentation language's font scheme for complex-script languages, and otherwise from the latin (major/minor) families. A missing 'major' or 'minor' falls back to the other.",
|
|
1049
1059
|
"properties": {
|
|
1050
1060
|
"major": {
|
|
1051
1061
|
"type": "string",
|
|
@@ -1069,10 +1079,10 @@
|
|
|
1069
1079
|
"enum": ["powerpoint", "google-slides"],
|
|
1070
1080
|
"description": "Target application this font pairing is intended for. Metadata for pickers and catalog filters: no engine changes its output by it."
|
|
1071
1081
|
},
|
|
1072
|
-
"
|
|
1082
|
+
"scriptGroup": {
|
|
1073
1083
|
"type": "string",
|
|
1074
|
-
"enum": ["latin", "
|
|
1075
|
-
"description": "
|
|
1084
|
+
"enum": ["latin", "eastAsian", "complexScript"],
|
|
1085
|
+
"description": "The script group this scheme is intended for: 'latin' for Latin-script content and every script outside the other two groups (Cyrillic and Greek too), 'eastAsian' for East Asian scripts, 'complexScript' for Complex Scripts (Arabic, Hebrew, Indic, Thai). The names match the 'eastAsian' and 'complexScript' slot keys. As the design font scheme, an 'eastAsian' or 'complexScript' scheme also fills that script slot with its own major/minor families when its languages list is empty or names the presentation language."
|
|
1076
1086
|
},
|
|
1077
1087
|
"heading": {
|
|
1078
1088
|
"type": "string",
|
|
@@ -1387,6 +1397,46 @@
|
|
|
1387
1397
|
}
|
|
1388
1398
|
],
|
|
1389
1399
|
"description": "Illustrative text shown in fill forms and used when a template is previewed with examples. Never written to output."
|
|
1400
|
+
},
|
|
1401
|
+
"maxLength": {
|
|
1402
|
+
"type": "integer",
|
|
1403
|
+
"minimum": 1,
|
|
1404
|
+
"description": "The most characters the value may have, counted as a reader sees them (an accented letter or an emoji counts once, however it is encoded). Checked on the declared value and on a value given to a fill; a longer value is the warning opf/variable-overflow. Fill forms and models read it before writing."
|
|
1405
|
+
},
|
|
1406
|
+
"maxLines": {
|
|
1407
|
+
"type": "integer",
|
|
1408
|
+
"minimum": 1,
|
|
1409
|
+
"description": "The most lines the value may take where it is drawn. Checked by composition at each place the variable is drawn (a title, a subtitle, a text block or a list entry), because the line count depends on the width of the box; a value that takes more lines is the warning opf/variable-overflow at that place, naming the slide. Inside longer text, the lines are those the variable's own characters occupy."
|
|
1410
|
+
},
|
|
1411
|
+
"translations": {
|
|
1412
|
+
"type": "object",
|
|
1413
|
+
"propertyNames": {
|
|
1414
|
+
"$ref": "#/$defs/LanguageTag"
|
|
1415
|
+
},
|
|
1416
|
+
"additionalProperties": {
|
|
1417
|
+
"type": "object",
|
|
1418
|
+
"additionalProperties": false,
|
|
1419
|
+
"required": [
|
|
1420
|
+
"value"
|
|
1421
|
+
],
|
|
1422
|
+
"properties": {
|
|
1423
|
+
"value": {
|
|
1424
|
+
"oneOf": [
|
|
1425
|
+
{
|
|
1426
|
+
"type": "string"
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"type": "array",
|
|
1430
|
+
"items": {
|
|
1431
|
+
"$ref": "#/$defs/TextRun"
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
]
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
},
|
|
1438
|
+
"minProperties": 1,
|
|
1439
|
+
"description": "The text in other languages, keyed by language tag, each entry a 'value' in the same form as the variable's own (a string or TextRun[]). Where the variable is drawn, the slide's declared language (else the deck's) selects an entry: the exact tag, then the tag with its last subtag removed, and so on ('de-AT', then 'de'), compared without regard to case; no match draws 'value'. A language read from the text does not select one. A fill that gives the variable a new value without translations removes them."
|
|
1390
1440
|
}
|
|
1391
1441
|
},
|
|
1392
1442
|
"description": "Text content. Plain string or rich TextRun[]. Insert it inline as '{{<id>}}' inside any string (rich text is flattened to plain text there), or reference it whole as 'var:<id>' in a field that accepts string or TextRun[] (the rich runs are kept)."
|
|
@@ -1481,13 +1531,34 @@
|
|
|
1481
1531
|
},
|
|
1482
1532
|
"format": {
|
|
1483
1533
|
"type": "string",
|
|
1484
|
-
"description": "Date display pattern, the same LDML-style tokens as header/footer dateFormat: yyyy, yy, MMMM, MMM, MM, M, dd, d, EEEE, EEE and quoted literals. English
|
|
1534
|
+
"description": "Date display pattern, the same LDML-style tokens as header/footer dateFormat: yyyy, yy, MMMM, MMM, MM, M, dd, d, EEEE, EEE and quoted literals. The month and weekday names are those of the language where the date is drawn (the slide's declared language, else the deck's; English when none is declared or the table has no data for it); a month after a day token is in its form after a day, else its stand-alone form. Default: the language's long date pattern ('d. MMMM yyyy' in German), 'MMMM d, yyyy' for US English and a deck with no language.",
|
|
1485
1535
|
"examples": [
|
|
1486
1536
|
"MMMM d, yyyy",
|
|
1487
1537
|
"dd MMM yyyy",
|
|
1488
1538
|
"M/d/yyyy",
|
|
1489
1539
|
"EEEE, MMMM d"
|
|
1490
1540
|
]
|
|
1541
|
+
},
|
|
1542
|
+
"translations": {
|
|
1543
|
+
"type": "object",
|
|
1544
|
+
"propertyNames": {
|
|
1545
|
+
"$ref": "#/$defs/LanguageTag"
|
|
1546
|
+
},
|
|
1547
|
+
"additionalProperties": {
|
|
1548
|
+
"type": "object",
|
|
1549
|
+
"additionalProperties": false,
|
|
1550
|
+
"required": [
|
|
1551
|
+
"format"
|
|
1552
|
+
],
|
|
1553
|
+
"properties": {
|
|
1554
|
+
"format": {
|
|
1555
|
+
"type": "string",
|
|
1556
|
+
"description": "The date display pattern in this language, in the tokens of the variable's own 'format'."
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
},
|
|
1560
|
+
"minProperties": 1,
|
|
1561
|
+
"description": "How the date is written in other languages, keyed by language tag, each entry a 'format': the date is the same in every language, its pattern is not. Where the variable is drawn, the slide's declared language (else the deck's) selects an entry: the exact tag, then the tag with its last subtag removed, and so on ('de-AT', then 'de'), compared without regard to case; no match uses the variable's own 'format'. A language read from the text does not select one. A fill that gives the variable a new value without translations removes them."
|
|
1491
1562
|
}
|
|
1492
1563
|
},
|
|
1493
1564
|
"description": "A calendar date as an ISO YYYY-MM-DD string. No time zone and no clock are involved. '{{<id>}}' inserts it formatted with 'format'."
|
|
@@ -1524,6 +1595,26 @@
|
|
|
1524
1595
|
"example": {
|
|
1525
1596
|
"$ref": "#/$defs/Asset",
|
|
1526
1597
|
"description": "Illustrative image source shown in fill forms and used when a template is previewed with examples. Never written to output."
|
|
1598
|
+
},
|
|
1599
|
+
"translations": {
|
|
1600
|
+
"type": "object",
|
|
1601
|
+
"propertyNames": {
|
|
1602
|
+
"$ref": "#/$defs/LanguageTag"
|
|
1603
|
+
},
|
|
1604
|
+
"additionalProperties": {
|
|
1605
|
+
"type": "object",
|
|
1606
|
+
"additionalProperties": false,
|
|
1607
|
+
"required": [
|
|
1608
|
+
"value"
|
|
1609
|
+
],
|
|
1610
|
+
"properties": {
|
|
1611
|
+
"value": {
|
|
1612
|
+
"$ref": "#/$defs/Asset"
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
},
|
|
1616
|
+
"minProperties": 1,
|
|
1617
|
+
"description": "An image source per language (a localized screenshot), keyed by language tag, each entry a 'value'. Where the variable is drawn, the slide's declared language (else the deck's) selects an entry: the exact tag, then the tag with its last subtag removed, and so on ('de-AT', then 'de'), compared without regard to case; no match draws 'value'. A language read from the text does not select one. A fill that gives the variable a new value without translations removes them."
|
|
1527
1618
|
}
|
|
1528
1619
|
},
|
|
1529
1620
|
"description": "An image source: any Asset (an 'asset:<id>' reference, HTTPS URL, data URI, relative or local path, or an object with src, alt and metadata). Reference it whole as 'var:<id>' in an image, asset or src field; '{{<id>}}' inserts the source string."
|
|
@@ -1562,6 +1653,27 @@
|
|
|
1562
1653
|
"type": "string",
|
|
1563
1654
|
"pattern": "^(?:https?://|mailto:|tel:)\\S+$",
|
|
1564
1655
|
"description": "Illustrative link shown in fill forms and used when a template is previewed with examples. Never written to output."
|
|
1656
|
+
},
|
|
1657
|
+
"translations": {
|
|
1658
|
+
"type": "object",
|
|
1659
|
+
"propertyNames": {
|
|
1660
|
+
"$ref": "#/$defs/LanguageTag"
|
|
1661
|
+
},
|
|
1662
|
+
"additionalProperties": {
|
|
1663
|
+
"type": "object",
|
|
1664
|
+
"additionalProperties": false,
|
|
1665
|
+
"required": [
|
|
1666
|
+
"value"
|
|
1667
|
+
],
|
|
1668
|
+
"properties": {
|
|
1669
|
+
"value": {
|
|
1670
|
+
"type": "string",
|
|
1671
|
+
"pattern": "^(?:https?://|mailto:|tel:)\\S+$"
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
},
|
|
1675
|
+
"minProperties": 1,
|
|
1676
|
+
"description": "A link target per language (a localized landing page), keyed by language tag, each entry a 'value'. Where the variable is drawn, the slide's declared language (else the deck's) selects an entry: the exact tag, then the tag with its last subtag removed, and so on ('de-AT', then 'de'), compared without regard to case; no match draws 'value'. A language read from the text does not select one. A fill that gives the variable a new value without translations removes them."
|
|
1565
1677
|
}
|
|
1566
1678
|
},
|
|
1567
1679
|
"description": "A link target (http, https, mailto or tel). Use it as '{{<id>}}' inside a link string or reference it whole as 'var:<id>' in a link field."
|
|
@@ -1604,6 +1716,34 @@
|
|
|
1604
1716
|
"type": "string"
|
|
1605
1717
|
},
|
|
1606
1718
|
"description": "Illustrative entries shown in fill forms and used when a template is previewed with examples. Never written to output."
|
|
1719
|
+
},
|
|
1720
|
+
"maxItems": {
|
|
1721
|
+
"type": "integer",
|
|
1722
|
+
"minimum": 1,
|
|
1723
|
+
"description": "The most entries the list may have. Checked on the declared value and on a value given to a fill; a longer list is the warning opf/variable-overflow. Fill forms and models read it before writing."
|
|
1724
|
+
},
|
|
1725
|
+
"translations": {
|
|
1726
|
+
"type": "object",
|
|
1727
|
+
"propertyNames": {
|
|
1728
|
+
"$ref": "#/$defs/LanguageTag"
|
|
1729
|
+
},
|
|
1730
|
+
"additionalProperties": {
|
|
1731
|
+
"type": "object",
|
|
1732
|
+
"additionalProperties": false,
|
|
1733
|
+
"required": [
|
|
1734
|
+
"value"
|
|
1735
|
+
],
|
|
1736
|
+
"properties": {
|
|
1737
|
+
"value": {
|
|
1738
|
+
"type": "array",
|
|
1739
|
+
"items": {
|
|
1740
|
+
"type": "string"
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
},
|
|
1745
|
+
"minProperties": 1,
|
|
1746
|
+
"description": "The entries in other languages, keyed by language tag, each entry a 'value' list. Where the variable is drawn, the slide's declared language (else the deck's) selects an entry: the exact tag, then the tag with its last subtag removed, and so on ('de-AT', then 'de'), compared without regard to case; no match draws 'value'. A language read from the text does not select one. A fill that gives the variable a new value without translations removes them."
|
|
1607
1747
|
}
|
|
1608
1748
|
},
|
|
1609
1749
|
"description": "A list of strings, for bullets and list items. A whole-string array element 'var:<id>' splices every entry into the array in place; a whole field 'var:<id>' becomes the array; '{{<id>}}' joins the entries with ', ' (or the separator after a pipe: '{{<id>|; }}')."
|
|
@@ -1623,6 +1763,49 @@
|
|
|
1623
1763
|
"description": "An image source in a string shorthand: an 'asset:<id>' reference, an HTTPS URL, a data URI, or a relative path starting with './' or '../' (resolved against the OPF file location).",
|
|
1624
1764
|
"examples": ["asset:cover-photo", "https://cdn.acme.com/backgrounds/cover.jpg", "./images/harbour.jpg"]
|
|
1625
1765
|
},
|
|
1766
|
+
"EmbedUrl": {
|
|
1767
|
+
"type": "string",
|
|
1768
|
+
"pattern": "^https://[^\\s/?#]+[^\\s]*$",
|
|
1769
|
+
"maxLength": 2048,
|
|
1770
|
+
"description": "An https URL. Any other scheme (http, data, javascript, a relative path) is a schema error.",
|
|
1771
|
+
"examples": ["https://app.example.com/dashboards/revenue"]
|
|
1772
|
+
},
|
|
1773
|
+
"EmbedPayload": {
|
|
1774
|
+
"description": "A live web page, shown in a web presenter when its host allows and as a linked picture everywhere else (PDF, PNG, PowerPoint, print, thumbnails). A string is shorthand for { \"src\": value }. Engines never load 'src': whether and from which sites a page is shown live is the host's decision (the presenter's 'embeds' option), not the deck's, so a deck holds no sandbox policy.",
|
|
1775
|
+
"oneOf": [
|
|
1776
|
+
{ "$ref": "#/$defs/EmbedUrl" },
|
|
1777
|
+
{
|
|
1778
|
+
"type": "object",
|
|
1779
|
+
"additionalProperties": false,
|
|
1780
|
+
"required": ["src"],
|
|
1781
|
+
"properties": {
|
|
1782
|
+
"src": {
|
|
1783
|
+
"$ref": "#/$defs/EmbedUrl",
|
|
1784
|
+
"description": "The page's https address. Never loaded by an engine; a click on the static form opens it in a new tab."
|
|
1785
|
+
},
|
|
1786
|
+
"title": {
|
|
1787
|
+
"type": "string",
|
|
1788
|
+
"minLength": 1,
|
|
1789
|
+
"description": "What the page is: its accessible name, and the heading of the card drawn when there is no 'preview'. Absent: the site name (the host of 'src' without 'www.')."
|
|
1790
|
+
},
|
|
1791
|
+
"aspectRatio": {
|
|
1792
|
+
"type": "number",
|
|
1793
|
+
"exclusiveMinimum": 0,
|
|
1794
|
+
"maximum": 10,
|
|
1795
|
+
"description": "Width to height of the frame, as an image block's aspectRatio (1.6 is 16:10). The frame is the largest box of that ratio inside the block's region. Absent: 16:9 (1.7777777777777777)."
|
|
1796
|
+
},
|
|
1797
|
+
"preview": {
|
|
1798
|
+
"$ref": "#/$defs/ImageSource",
|
|
1799
|
+
"description": "A picture of the page, drawn wherever the page is not shown live: PDF, PNG, PowerPoint, print and thumbnails. It is drawn whole (contain) on the scheme's surface color. Absent: a card with the title, the site name and a link icon."
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
],
|
|
1804
|
+
"examples": [
|
|
1805
|
+
"https://app.example.com/dashboards/revenue",
|
|
1806
|
+
{ "src": "https://app.example.com/dashboards/revenue", "title": "Revenue dashboard", "aspectRatio": 1.6, "preview": "asset:revenue-dashboard" }
|
|
1807
|
+
]
|
|
1808
|
+
},
|
|
1626
1809
|
"ColorVariant": {
|
|
1627
1810
|
"type": "object",
|
|
1628
1811
|
"additionalProperties": false,
|
|
@@ -1707,10 +1890,10 @@
|
|
|
1707
1890
|
"description": "Fixed gradient slide background fill.",
|
|
1708
1891
|
"required": ["type", "gradient"],
|
|
1709
1892
|
"properties": {
|
|
1710
|
-
"
|
|
1893
|
+
"appearance": {
|
|
1711
1894
|
"type": "string",
|
|
1712
1895
|
"enum": ["dark", "light"],
|
|
1713
|
-
"description": "Whether the background is dark or light, which picks the color map (dark1 or light1) so text, lines and neutrals read on it. Without
|
|
1896
|
+
"description": "Whether the background is dark or light, which picks the color map (dark1 or light1) so text, lines and neutrals read on it. Without an appearance a picture or gradient takes the deck's variant, else counts as light."
|
|
1714
1897
|
},
|
|
1715
1898
|
"type": {
|
|
1716
1899
|
"type": "string",
|
|
@@ -1766,10 +1949,10 @@
|
|
|
1766
1949
|
"description": "Picture background: the image fills the whole canvas behind everything and never moves content (to push content aside, use an image block with placement). The string shorthand 'asset:x' (or any image source) is { type: 'image', src: 'asset:x' }, a cover image. Paint order: the color scheme's default slide background, the picture, then the overlay, then furniture and content.",
|
|
1767
1950
|
"required": ["type", "src"],
|
|
1768
1951
|
"properties": {
|
|
1769
|
-
"
|
|
1952
|
+
"appearance": {
|
|
1770
1953
|
"type": "string",
|
|
1771
1954
|
"enum": ["dark", "light"],
|
|
1772
|
-
"description": "Whether the background is dark or light, which picks the color map (dark1 or light1) so text, lines and neutrals read on it. Without
|
|
1955
|
+
"description": "Whether the background is dark or light, which picks the color map (dark1 or light1) so text, lines and neutrals read on it. Without an appearance a picture takes the appearance its recolor, opacity and overlay imply (a duotone in dark colors or a dark overlay makes it dark), else the deck's variant, else counts as light."
|
|
1773
1956
|
},
|
|
1774
1957
|
"type": {
|
|
1775
1958
|
"type": "string",
|
|
@@ -1827,7 +2010,7 @@
|
|
|
1827
2010
|
{ "type": "image", "src": "asset:cover-photo" },
|
|
1828
2011
|
{ "type": "image", "src": "./images/harbour.jpg", "alt": "Container ships at dawn", "focus": { "x": 0.5, "y": 0.7 }, "overlay": { "color": "dark1", "opacity": 0.4 } },
|
|
1829
2012
|
{ "type": "image", "src": "asset:texture", "overlay": false },
|
|
1830
|
-
{ "type": "image", "src": "asset:city-night", "
|
|
2013
|
+
{ "type": "image", "src": "asset:city-night", "appearance": "dark", "textPlacement": "top-start" }
|
|
1831
2014
|
]
|
|
1832
2015
|
},
|
|
1833
2016
|
"ImageFocus": {
|
|
@@ -2569,7 +2752,7 @@
|
|
|
2569
2752
|
"dateFormat": {
|
|
2570
2753
|
"type": "string",
|
|
2571
2754
|
"minLength": 1,
|
|
2572
|
-
"description": "Date pattern for date. Tokens: yyyy (2026), yy (26), MMMM (April), MMM (Apr), MM (04), M (4), dd (09), d (9), EEEE (Thursday), EEE (Thu). Text in single quotes and other non-letter characters are literal. Month and weekday names are
|
|
2755
|
+
"description": "Date pattern for date. Tokens: yyyy (2026), yy (26), MMMM (April), MMM (Apr), MM (04), M (4), dd (09), d (9), EEEE (Thursday), EEE (Thu). Text in single quotes and other non-letter characters are literal. Month and weekday names are those of the language of the slide the date is on (its declared language, else the deck's), from OPF's own table and independent of the host's locale; English when no language is declared. Defaults to \"M/d/yyyy\" for a current date. PPTX export writes a native current-date field only when its complete value fits within one accepted text line and the pattern matches a PowerPoint en-US date field ('M/d/yyyy'; 'EEEE, MMMM d, yyyy'; 'd MMMM yyyy'; 'MMMM d, yyyy'; 'd-MMM-yy'; 'MMMM yy'; 'MMM-yy'). Other patterns and wrapped fields export as static text with a diagnostic. Full provenance can recover generated-date intent from unchanged supported wrapped dates on OPF reimport; the existing PPTX text remains static.",
|
|
2573
2756
|
"examples": ["MMM d, yyyy", "yyyy-MM-dd", "MMM yyyy", "MMMM d, yyyy"]
|
|
2574
2757
|
},
|
|
2575
2758
|
"socials": {
|
|
@@ -2726,9 +2909,9 @@
|
|
|
2726
2909
|
},
|
|
2727
2910
|
"link": {
|
|
2728
2911
|
"type": "string",
|
|
2729
|
-
"pattern": "^(https?://|mailto:|tel:)\\S+$",
|
|
2730
|
-
"description": "
|
|
2731
|
-
"examples": ["https://acme.com/pricing"]
|
|
2912
|
+
"pattern": "^(https?://|mailto:|tel:|slide:)\\S+$",
|
|
2913
|
+
"description": "Link followed when the shape is clicked in a slide show (a:hlinkClick): an http(s) URL, a 'mailto:' address, a 'tel:' number or 'slide:<id>', a jump to the slide of this deck with that id (ppaction://hlinksldjump). An unknown slide id is a validation error (opf/slide-link-unknown).",
|
|
2914
|
+
"examples": ["https://acme.com/pricing", "slide:pricing"]
|
|
2732
2915
|
},
|
|
2733
2916
|
"extensions": {
|
|
2734
2917
|
"type": "object",
|
|
@@ -2900,8 +3083,8 @@
|
|
|
2900
3083
|
"additionalProperties": false,
|
|
2901
3084
|
"dependentSchemas": {
|
|
2902
3085
|
"caption": {
|
|
2903
|
-
"anyOf": [{ "required": ["image"] }, { "required": ["chart"] }, { "required": ["table"] }, { "required": ["video"] }, { "required": ["diagram"] }],
|
|
2904
|
-
"description": "A slide's caption belongs to its root image, chart, table, video or diagram."
|
|
3086
|
+
"anyOf": [{ "required": ["image"] }, { "required": ["chart"] }, { "required": ["table"] }, { "required": ["video"] }, { "required": ["embed"] }, { "required": ["diagram"] }],
|
|
3087
|
+
"description": "A slide's caption belongs to its root image, chart, table, video, embed or diagram."
|
|
2905
3088
|
}
|
|
2906
3089
|
},
|
|
2907
3090
|
"properties": {
|
|
@@ -2917,7 +3100,7 @@
|
|
|
2917
3100
|
},
|
|
2918
3101
|
"type": {
|
|
2919
3102
|
"type": "string",
|
|
2920
|
-
"enum": ["text", "list", "image", "chart", "table", "video", "code", "metric", "quote", "timeline", "diagram"],
|
|
3103
|
+
"enum": ["text", "list", "image", "chart", "table", "video", "embed", "code", "metric", "quote", "timeline", "diagram"],
|
|
2921
3104
|
"description": "Optional full-slide content kind. When omitted, engines infer the kind from root payload fields."
|
|
2922
3105
|
},
|
|
2923
3106
|
"beat": {
|
|
@@ -3001,6 +3184,10 @@
|
|
|
3001
3184
|
"$ref": "#/$defs/Asset",
|
|
3002
3185
|
"description": "Full-slide video source. Presence of this field infers type 'video'. 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)."
|
|
3003
3186
|
},
|
|
3187
|
+
"embed": {
|
|
3188
|
+
"$ref": "#/$defs/EmbedPayload",
|
|
3189
|
+
"description": "Full-slide embed: a live web page. Presence of this field infers type 'embed'. A web presenter whose host allows the page shows it live; every other output (PDF, PNG, PowerPoint, print, thumbnails) shows a picture of it linked to its address. Engines never load 'src'. See EmbedPayload."
|
|
3190
|
+
},
|
|
3004
3191
|
"chart": {
|
|
3005
3192
|
"$ref": "#/$defs/Chart",
|
|
3006
3193
|
"description": "Full-slide chart payload. Presence of this field infers type 'chart'."
|
|
@@ -3044,7 +3231,7 @@
|
|
|
3044
3231
|
},
|
|
3045
3232
|
"caption": {
|
|
3046
3233
|
"$ref": "#/$defs/Caption",
|
|
3047
|
-
"description": "Caption for the slide's root image, chart, table, video or diagram payload. Valid only when the slide root holds exactly one of those payloads."
|
|
3234
|
+
"description": "Caption for the slide's root image, chart, table, video, embed or diagram payload. Valid only when the slide root holds exactly one of those payloads."
|
|
3048
3235
|
},
|
|
3049
3236
|
"blocks": {
|
|
3050
3237
|
"type": "array",
|
|
@@ -3216,13 +3403,18 @@
|
|
|
3216
3403
|
"video"
|
|
3217
3404
|
]
|
|
3218
3405
|
},
|
|
3406
|
+
{
|
|
3407
|
+
"required": [
|
|
3408
|
+
"embed"
|
|
3409
|
+
]
|
|
3410
|
+
},
|
|
3219
3411
|
{
|
|
3220
3412
|
"required": [
|
|
3221
3413
|
"diagram"
|
|
3222
3414
|
]
|
|
3223
3415
|
}
|
|
3224
3416
|
],
|
|
3225
|
-
"description": "A caption belongs to an image, chart, table, video or diagram."
|
|
3417
|
+
"description": "A caption belongs to an image, chart, table, video, embed or diagram."
|
|
3226
3418
|
}
|
|
3227
3419
|
},
|
|
3228
3420
|
"properties": {
|
|
@@ -3243,7 +3435,7 @@
|
|
|
3243
3435
|
},
|
|
3244
3436
|
"type": {
|
|
3245
3437
|
"type": "string",
|
|
3246
|
-
"enum": ["text", "list", "image", "chart", "table", "video", "code", "metric", "quote", "timeline", "diagram", "shape", "group"],
|
|
3438
|
+
"enum": ["text", "list", "image", "chart", "table", "video", "embed", "code", "metric", "quote", "timeline", "diagram", "shape", "group"],
|
|
3247
3439
|
"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."
|
|
3248
3440
|
},
|
|
3249
3441
|
"text": {
|
|
@@ -3388,9 +3580,9 @@
|
|
|
3388
3580
|
},
|
|
3389
3581
|
"link": {
|
|
3390
3582
|
"type": "string",
|
|
3391
|
-
"pattern": "^(https?://|mailto:|tel:)\\S+$",
|
|
3392
|
-
"description": "Shape blocks only.
|
|
3393
|
-
"examples": ["https://acme.com/pricing"]
|
|
3583
|
+
"pattern": "^(https?://|mailto:|tel:|slide:)\\S+$",
|
|
3584
|
+
"description": "Shape blocks only. Link followed when the shape is clicked in a slide show (a:hlinkClick): an http(s) URL, a 'mailto:' address, a 'tel:' number or 'slide:<id>', a jump to the slide of this deck with that id (ppaction://hlinksldjump). An unknown slide id is a validation error (opf/slide-link-unknown).",
|
|
3585
|
+
"examples": ["https://acme.com/pricing", "slide:pricing"]
|
|
3394
3586
|
},
|
|
3395
3587
|
"shadow": {
|
|
3396
3588
|
"$ref": "#/$defs/Shadow",
|
|
@@ -3471,6 +3663,10 @@
|
|
|
3471
3663
|
"./media/demo.mp4"
|
|
3472
3664
|
]
|
|
3473
3665
|
},
|
|
3666
|
+
"embed": {
|
|
3667
|
+
"$ref": "#/$defs/EmbedPayload",
|
|
3668
|
+
"description": "Embed payload: a live web page. Presence of this field infers type 'embed'. Takes a caption and none of the image options (fit, focus, aspectRatio, recolor, ...): the frame's proportions are EmbedPayload.aspectRatio. See EmbedPayload."
|
|
3669
|
+
},
|
|
3474
3670
|
"chart": {
|
|
3475
3671
|
"$ref": "#/$defs/Chart",
|
|
3476
3672
|
"description": "Chart payload. Presence of this field infers type 'chart'."
|
|
@@ -3562,7 +3758,7 @@
|
|
|
3562
3758
|
},
|
|
3563
3759
|
"caption": {
|
|
3564
3760
|
"$ref": "#/$defs/Caption",
|
|
3565
|
-
"description": "Caption for an image, chart, table, video or diagram payload, composed inside the block's region (below the media by default). Invalid on other payload kinds and on groups."
|
|
3761
|
+
"description": "Caption for an image, chart, table, video, embed or diagram payload, composed inside the block's region (below the media by default). Invalid on other payload kinds and on groups."
|
|
3566
3762
|
},
|
|
3567
3763
|
"blocks": {
|
|
3568
3764
|
"type": "array",
|
|
@@ -3574,7 +3770,7 @@
|
|
|
3574
3770
|
},
|
|
3575
3771
|
"composition": {
|
|
3576
3772
|
"$ref": "#/$defs/Composition",
|
|
3577
|
-
"description": "Arrangement within this group. Only
|
|
3773
|
+
"description": "Arrangement within this group. Only minFontSizePx, maxFontSizePx and overflow inherit from the parent; strict overflow cannot be weakened."
|
|
3578
3774
|
},
|
|
3579
3775
|
"emphasis": {
|
|
3580
3776
|
"type": "boolean",
|
|
@@ -3652,6 +3848,19 @@
|
|
|
3652
3848
|
"required": ["video"]
|
|
3653
3849
|
}
|
|
3654
3850
|
},
|
|
3851
|
+
{
|
|
3852
|
+
"if": {
|
|
3853
|
+
"required": ["type"],
|
|
3854
|
+
"properties": {
|
|
3855
|
+
"type": {
|
|
3856
|
+
"const": "embed"
|
|
3857
|
+
}
|
|
3858
|
+
}
|
|
3859
|
+
},
|
|
3860
|
+
"then": {
|
|
3861
|
+
"required": ["embed"]
|
|
3862
|
+
}
|
|
3863
|
+
},
|
|
3655
3864
|
{
|
|
3656
3865
|
"if": {
|
|
3657
3866
|
"required": ["type"],
|
|
@@ -3785,6 +3994,9 @@
|
|
|
3785
3994
|
{
|
|
3786
3995
|
"required": ["video"]
|
|
3787
3996
|
},
|
|
3997
|
+
{
|
|
3998
|
+
"required": ["embed"]
|
|
3999
|
+
},
|
|
3788
4000
|
{
|
|
3789
4001
|
"required": ["chart"]
|
|
3790
4002
|
},
|
|
@@ -3909,7 +4121,7 @@
|
|
|
3909
4121
|
},
|
|
3910
4122
|
"Metric": {
|
|
3911
4123
|
"type": "object",
|
|
3912
|
-
"description": "Metric content with optional display metadata. Use 'value' for the primary value, 'label' for the metric name, 'description' for supporting context, 'unit' for a suffix/currency marker, 'delta' for change, 'trend' for direction, and 'sentiment' for whether the change is good news. A string or number value in a metric field is shorthand for { \"value\": value }; numeric values remain numbers and are formatted by renderers.",
|
|
4124
|
+
"description": "Metric content with optional display metadata. Use 'value' for the primary value, 'label' for the metric name, 'description' for supporting context, 'unit' for a suffix/currency marker, 'delta' for change, 'trend' for direction, and 'sentiment' for whether the change is good news, 'format' for how a number value is written, 'better' for which direction of change is good news, 'data' to compute the value and the change from a dataset of this deck, and 'gauge' to draw the value on an arc against its range. A string or number value in a metric field is shorthand for { \"value\": value }; numeric values remain numbers and are formatted by renderers. Only the object form carries 'data'.",
|
|
3913
4125
|
"additionalProperties": false,
|
|
3914
4126
|
"required": ["value"],
|
|
3915
4127
|
"properties": {
|
|
@@ -3957,6 +4169,23 @@
|
|
|
3957
4169
|
"icon": {
|
|
3958
4170
|
"$ref": "#/$defs/IconReference",
|
|
3959
4171
|
"description": "An icon drawn on a chip above the metric: \"<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."
|
|
4172
|
+
},
|
|
4173
|
+
"format": {
|
|
4174
|
+
"$ref": "#/$defs/NumberFormat",
|
|
4175
|
+
"description": "How a number 'value' is written, the same pattern language as a number variable, a dataset column and a table cell ('0.0%', '$#,##0.0M'). A string 'value' is drawn as written. Absent: a metric linked to data uses its column's format, and any other metric today's number rules (grouping by the slide's language). It applies to the value only; the change keeps its own format. 'unit' is still printed after the value ('metric-unit-repeated' warning when the format already prints it)."
|
|
4176
|
+
},
|
|
4177
|
+
"data": {
|
|
4178
|
+
"$ref": "#/$defs/MetricData",
|
|
4179
|
+
"description": "Computes the value and, optionally, the change from a dataset of this deck. While it resolves, engines draw the computed numbers; 'value' and 'delta' are then the last computed numbers, kept for readers that do not compute, and 'trend' (the sign of the computed change) and 'sentiment' (from 'better') follow unless they are written. When the link does not resolve, the written value and delta are drawn."
|
|
4180
|
+
},
|
|
4181
|
+
"better": {
|
|
4182
|
+
"type": "string",
|
|
4183
|
+
"enum": ["up", "down"],
|
|
4184
|
+
"description": "Which direction of change is good news. Without 'sentiment', an up trend is positive and a down trend negative when 'better' is \"up\" (the default), and the reverse when it is \"down\"; a flat trend is neutral. An explicit 'sentiment' still wins. It also colors a typed 'trend'."
|
|
4185
|
+
},
|
|
4186
|
+
"gauge": {
|
|
4187
|
+
"$ref": "#/$defs/MetricGauge",
|
|
4188
|
+
"description": "Draws the metric as a gauge: its value on a half-circle arc from 'min' (left) to 'max' (right), over optional bands, with an optional target tick, and the metric's text under the arc (the value inside the arc's bowl when it fits there). Only a number value draws a gauge; any other value draws the metric without it ('metric-gauge-value' warning). A value outside the range keeps printing its real number while its arc stops at the end ('metric-gauge-range' warning). In a region too small for an arc 96 reference pixels wide the metric is drawn without its gauge. PowerPoint export draws native block arcs."
|
|
3960
4189
|
}
|
|
3961
4190
|
}
|
|
3962
4191
|
},
|
|
@@ -4024,6 +4253,12 @@
|
|
|
4024
4253
|
"required": ["what"],
|
|
4025
4254
|
"additionalProperties": false,
|
|
4026
4255
|
"properties": {
|
|
4256
|
+
"id": {
|
|
4257
|
+
"type": "string",
|
|
4258
|
+
"minLength": 1,
|
|
4259
|
+
"description": "Optional stable identifier for this timeline event, unique among every slide, payload, overlay, item, bullet, event and table-row id in the document (one namespace). An opaque string: readers never parse it. Use it when another system must address the timeline event across edits (a comment anchor, an `@id` patch token, a merge). Edit, move and reorder keep it; a copy inside the document gets a new one. A document without ids is valid and is addressed by index.",
|
|
4260
|
+
"examples": ["ev-launch", "e-4"]
|
|
4261
|
+
},
|
|
4027
4262
|
"when": {
|
|
4028
4263
|
"type": "string",
|
|
4029
4264
|
"description": "Event time, date, or sequence label. Use ISO-like values when possible, but human labels are allowed for quarters, eras, and relative milestones.",
|
|
@@ -4067,6 +4302,12 @@
|
|
|
4067
4302
|
"required": ["text"],
|
|
4068
4303
|
"additionalProperties": false,
|
|
4069
4304
|
"properties": {
|
|
4305
|
+
"id": {
|
|
4306
|
+
"type": "string",
|
|
4307
|
+
"minLength": 1,
|
|
4308
|
+
"description": "Optional stable identifier for this list item, unique among every slide, payload, overlay, item, bullet, event and table-row id in the document (one namespace). An opaque string: readers never parse it. Use it when another system must address the list item across edits (a comment anchor, an `@id` patch token, a merge). Edit, move and reorder keep it; a copy inside the document gets a new one. A document without ids is valid and is addressed by index.",
|
|
4309
|
+
"examples": ["it-7f3k", "pilot"]
|
|
4310
|
+
},
|
|
4070
4311
|
"text": {
|
|
4071
4312
|
"oneOf": [
|
|
4072
4313
|
{ "type": "string" },
|
|
@@ -4142,6 +4383,12 @@
|
|
|
4142
4383
|
"required": ["text"],
|
|
4143
4384
|
"additionalProperties": false,
|
|
4144
4385
|
"properties": {
|
|
4386
|
+
"id": {
|
|
4387
|
+
"type": "string",
|
|
4388
|
+
"minLength": 1,
|
|
4389
|
+
"description": "Optional stable identifier for this bullet, unique among every slide, payload, overlay, item, bullet, event and table-row id in the document (one namespace). An opaque string: readers never parse it. Use it when another system must address the bullet across edits (a comment anchor, an `@id` patch token, a merge). Edit, move and reorder keep it; a copy inside the document gets a new one. A document without ids is valid and is addressed by index.",
|
|
4390
|
+
"examples": ["b-2m9q", "point-1"]
|
|
4391
|
+
},
|
|
4145
4392
|
"text": {
|
|
4146
4393
|
"oneOf": [
|
|
4147
4394
|
{ "type": "string" },
|
|
@@ -4272,7 +4519,7 @@
|
|
|
4272
4519
|
"fontSize": {
|
|
4273
4520
|
"type": "number",
|
|
4274
4521
|
"exclusiveMinimum": 0,
|
|
4275
|
-
"description": "Run font size in points, the unit presenters know from PowerPoint. One point is 4/3 reference pixels at a 720-pixel short edge, so 12 points corresponds to 16 reference pixels (composition.
|
|
4522
|
+
"description": "Run font size in points, the unit presenters know from PowerPoint. One point is 4/3 reference pixels at a 720-pixel short edge, so 12 points corresponds to 16 reference pixels (composition.minFontSizePx: 16). Other fields state their own units, including inches, reference pixels, fractional geometry and chart data-axis values."
|
|
4276
4523
|
},
|
|
4277
4524
|
"fontFamily": {
|
|
4278
4525
|
"type": "string",
|
|
@@ -4291,9 +4538,9 @@
|
|
|
4291
4538
|
},
|
|
4292
4539
|
"link": {
|
|
4293
4540
|
"type": "string",
|
|
4294
|
-
"pattern": "^(https?://|mailto:|tel:)\\S+$",
|
|
4295
|
-
"description": "
|
|
4296
|
-
"examples": ["https://acme.com", "https://acme.com/case-studies/beta", "mailto:hello@acme.com", "tel:+15551234567"]
|
|
4541
|
+
"pattern": "^(https?://|mailto:|tel:|slide:)\\S+$",
|
|
4542
|
+
"description": "Link to put on the run text: an http(s) URL, a 'mailto:' address or a 'tel:' number, or 'slide:<id>', a jump to the slide of this deck with that id (the same kind:id spelling as 'asset:' and 'var:'; the slide needs an 'id', which assignIds can add). The text must not contain whitespace. The preview draws it as a link, PDF export writes a link annotation (a go-to-page link for 'slide:'), and PPTX export writes a native hyperlink (a slide jump for 'slide:'); any other scheme is not valid. A link to an unknown slide id is a validation error (opf/slide-link-unknown).",
|
|
4543
|
+
"examples": ["https://acme.com", "https://acme.com/case-studies/beta", "mailto:hello@acme.com", "tel:+15551234567", "slide:pricing"]
|
|
4297
4544
|
},
|
|
4298
4545
|
"superscript": {
|
|
4299
4546
|
"type": "boolean",
|
|
@@ -4324,7 +4571,7 @@
|
|
|
4324
4571
|
]
|
|
4325
4572
|
},
|
|
4326
4573
|
"Caption": {
|
|
4327
|
-
"description": "A caption for an image, chart, table, video or diagram payload. A string or TextRun[] is the caption text placed below the media; object form adds the position and alignment.",
|
|
4574
|
+
"description": "A caption for an image, chart, table, video, embed or diagram payload. A string or TextRun[] is the caption text placed below the media; object form adds the position and alignment.",
|
|
4328
4575
|
"oneOf": [
|
|
4329
4576
|
{ "type": "string" },
|
|
4330
4577
|
{ "type": "array", "items": { "$ref": "#/$defs/TextRun" } },
|
|
@@ -4377,9 +4624,10 @@
|
|
|
4377
4624
|
],
|
|
4378
4625
|
"description": "The reference as it is listed: a string or TextRun[] for inline rich text."
|
|
4379
4626
|
},
|
|
4380
|
-
"
|
|
4627
|
+
"link": {
|
|
4381
4628
|
"type": "string",
|
|
4382
|
-
"
|
|
4629
|
+
"pattern": "^(https?://|mailto:|tel:)\\S+$",
|
|
4630
|
+
"description": "Optional link for the reference: an http(s) URL, a 'mailto:' address or a 'tel:' number. A references slide links its entry to it.",
|
|
4383
4631
|
"examples": ["https://acme.com/reports/2026"]
|
|
4384
4632
|
}
|
|
4385
4633
|
}
|
|
@@ -4406,20 +4654,64 @@
|
|
|
4406
4654
|
],
|
|
4407
4655
|
"examples": ["none", { "width": 2 }, { "color": "accent2", "width": 2, "dash": "dash" }]
|
|
4408
4656
|
},
|
|
4657
|
+
"ReferenceLineStroke": {
|
|
4658
|
+
"description": "The stroke of a chart reference line: its color, width and dash, or 'none' for no line. The dash takes the preset names a shape outline's Stroke.dash takes (a:prstDash); a custom dash array is not available on a chart line. Every part is optional and falls back to the chart's default.",
|
|
4659
|
+
"anyOf": [
|
|
4660
|
+
{ "const": "none", "description": "No line." },
|
|
4661
|
+
{
|
|
4662
|
+
"type": "object",
|
|
4663
|
+
"additionalProperties": false,
|
|
4664
|
+
"properties": {
|
|
4665
|
+
"color": { "$ref": "#/$defs/ColorRef", "description": "Line color: any ColorRef (eight-digit hex keeps its alpha)." },
|
|
4666
|
+
"width": { "type": "number", "minimum": 0, "maximum": 64, "description": "Line width in reference pixels at a 720-pixel short edge. 0 draws no line, the same as 'none'." },
|
|
4667
|
+
"dash": { "type": "string", "enum": ["solid", "dot", "dash", "longDash", "dashDot", "longDashDot", "longDashDotDot", "sysDot", "sysDash", "sysDashDot", "sysDashDotDot"], "description": "DrawingML preset dash (a:prstDash), by the names Stroke.dash uses. Default dash." }
|
|
4668
|
+
}
|
|
4669
|
+
}
|
|
4670
|
+
],
|
|
4671
|
+
"examples": ["none", { "width": 2 }, { "color": "accent2", "width": 2, "dash": "longDashDot" }]
|
|
4672
|
+
},
|
|
4673
|
+
"ReferenceLineStroke": {
|
|
4674
|
+
"description": "The stroke of a chart reference line: its color, width and dash, or 'none' for no line. The dash takes the preset names a shape outline's Stroke.dash takes (a:prstDash); a custom dash array is not available on a chart line. Every part is optional and falls back to the chart's default.",
|
|
4675
|
+
"anyOf": [
|
|
4676
|
+
{ "const": "none", "description": "No line." },
|
|
4677
|
+
{
|
|
4678
|
+
"type": "object",
|
|
4679
|
+
"additionalProperties": false,
|
|
4680
|
+
"properties": {
|
|
4681
|
+
"color": { "$ref": "#/$defs/ColorRef", "description": "Line color: any ColorRef (eight-digit hex keeps its alpha)." },
|
|
4682
|
+
"width": { "type": "number", "minimum": 0, "maximum": 64, "description": "Line width in reference pixels at a 720-pixel short edge. 0 draws no line, the same as 'none'." },
|
|
4683
|
+
"dash": { "type": "string", "enum": ["solid", "dot", "dash", "longDash", "dashDot", "longDashDot", "longDashDotDot", "sysDot", "sysDash", "sysDashDot", "sysDashDotDot"], "description": "DrawingML preset dash (a:prstDash), by the names Stroke.dash uses. Default dash." }
|
|
4684
|
+
}
|
|
4685
|
+
}
|
|
4686
|
+
],
|
|
4687
|
+
"examples": ["none", { "width": 2 }, { "color": "accent2", "width": 2, "dash": "longDashDot" }]
|
|
4688
|
+
},
|
|
4409
4689
|
"ChartReferenceLine": {
|
|
4410
4690
|
"type": "object",
|
|
4411
4691
|
"additionalProperties": false,
|
|
4412
4692
|
"required": ["value"],
|
|
4413
|
-
"description": "One explicit reference on the chart's numeric value axis. Labels and titles never select its value, units or placement. A reference at a category
|
|
4693
|
+
"description": "One explicit reference on the chart's numeric value axis. Labels and titles never select its value, units or placement. A reference at a category is not expressible yet; 'axis' is reserved for it. Ranges of the value axis are the chart's 'bands'.",
|
|
4414
4694
|
"properties": {
|
|
4415
4695
|
"value": { "$ref": "#/$defs/FiniteNumber", "description": "Finite value in the associated data-axis units. With format 0%, 0.25 means 25%; 25 means 2500%. Every reference expands automatic bounds when needed." },
|
|
4416
4696
|
"axis": { "type": "string", "enum": ["value", "secondary"], "default": "value", "description": "Secondary requires a combo chart with an actual secondary line series." },
|
|
4417
4697
|
"label": { "type": "string", "minLength": 1, "pattern": "\\S", "description": "Optional nonblank plain text, shown verbatim. Omission draws no label." },
|
|
4418
4698
|
"labelPosition": { "type": "string", "enum": ["start", "end"], "default": "end", "description": "Logical endpoint. Horizontal start/end mirror in RTL; on bars they mean top/bottom. Requires label." },
|
|
4419
|
-
"stroke": { "$ref": "#/$defs/
|
|
4699
|
+
"stroke": { "$ref": "#/$defs/ReferenceLineStroke", "description": "The line's color, width and dash, or 'none' to draw only the label. Defaults: the chart-text neutral, 4/3 reference pixels (1 point) and 'dash'. The value expands the axis bounds whether or not the line is drawn." }
|
|
4420
4700
|
},
|
|
4421
4701
|
"dependentRequired": { "labelPosition": ["label"] }
|
|
4422
4702
|
},
|
|
4703
|
+
"ChartBand": {
|
|
4704
|
+
"type": "object",
|
|
4705
|
+
"additionalProperties": false,
|
|
4706
|
+
"required": ["to"],
|
|
4707
|
+
"description": "One range of a chart's value axis, shaded behind the data (see Chart.bands).",
|
|
4708
|
+
"properties": {
|
|
4709
|
+
"to": { "$ref": "#/$defs/FiniteNumber", "description": "The band's upper end, in the value axis's units (with format 0%, 0.8 is 80%). Bands expand automatic axis bounds to the last 'to', as reference lines do." },
|
|
4710
|
+
"label": { "type": "string", "minLength": 1, "pattern": "\\S", "description": "The band's name, such as 'Poor' or 'On target': its legend entry and its text alternative. Absent: the band has no legend entry." },
|
|
4711
|
+
"color": { "$ref": "#/$defs/SchemeColorName", "description": "A scheme color instead of the neutral, for ranges that mean good or bad. Drawn as a light tint of that color (25% of it over the chart's surface). Absent: the next neutral." }
|
|
4712
|
+
},
|
|
4713
|
+
"examples": [{ "to": 0.6, "label": "Poor" }, { "to": 10, "label": "Within target", "color": "accent3" }]
|
|
4714
|
+
},
|
|
4423
4715
|
"Chart": {
|
|
4424
4716
|
"type": "object",
|
|
4425
4717
|
"description": "Chart content. The chart object keeps chart-specific fields together so slides and regions do not expose loose chart fields. OPF charts are `{ type, data }` where `data` is `{ columns, rows }`: the first column holds the category labels and every further column is one series. There are no `categories`, `series`, `labels` or `datasets` keys (the Chart.js and ECharts shape); write them as columns and rows. Example: `{ \"type\": \"column\", \"data\": { \"columns\": [\"Quarter\", \"Decks\"], \"rows\": [[\"Q1\", 3], [\"Q2\", 8], [\"Q3\", 21]] } }`.",
|
|
@@ -4428,8 +4720,8 @@
|
|
|
4428
4720
|
"properties": {
|
|
4429
4721
|
"type": {
|
|
4430
4722
|
"type": "string",
|
|
4431
|
-
"enum": ["100pct-stacked-area", "100pct-stacked-bar", "100pct-stacked-column", "area", "bar", "box-and-whisker", "column", "combo", "doughnut", "filled-radar", "funnel", "histogram", "line", "line-with-markers", "pareto", "pie", "radar", "radar-with-markers", "scatter", "stacked-area", "stacked-bar", "stacked-column", "stacked-line", "stacked-line-with-markers", "treemap", "waterfall", "world"],
|
|
4432
|
-
"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.",
|
|
4723
|
+
"enum": ["100pct-stacked-area", "100pct-stacked-bar", "100pct-stacked-column", "area", "bar", "box-and-whisker", "bullet", "column", "combo", "doughnut", "filled-radar", "funnel", "histogram", "line", "line-with-markers", "pareto", "pie", "radar", "radar-with-markers", "scatter", "stacked-area", "stacked-bar", "stacked-column", "stacked-line", "stacked-line-with-markers", "treemap", "waterfall", "world"],
|
|
4724
|
+
"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') and 'bullet' (one thin horizontal bar per category against its target tick, over the chart's bands; see 'mapping.target' and 'bands'). Each engine maps a type to its own chart model; labels and picker groups are catalog display metadata.",
|
|
4433
4725
|
"examples": ["column", "bar", "line", "pie", "doughnut", "area", "scatter", "radar", "waterfall", "funnel", "treemap", "stacked-column", "combo"]
|
|
4434
4726
|
},
|
|
4435
4727
|
"data": {
|
|
@@ -4437,13 +4729,13 @@
|
|
|
4437
4729
|
{ "$ref": "#/$defs/ChartData" },
|
|
4438
4730
|
{ "$ref": "#/$defs/DatasetRef" }
|
|
4439
4731
|
],
|
|
4440
|
-
"description": "Chart data. Inline data uses a tabular columns/rows shape; renderers convert rows to chart series internally. A DatasetRef ({ \"dataset\": \"<id>\" }) plots a top-level dataset instead. Data from a spreadsheet or file is imported into inline columns and rows, and its origin is recorded in data.
|
|
4732
|
+
"description": "Chart data. Inline data uses a tabular columns/rows shape; renderers convert rows to chart series internally. A DatasetRef ({ \"dataset\": \"<id>\" }) plots a top-level dataset instead. Data from a spreadsheet or file is imported into inline columns and rows, and its origin is recorded in the data's own 'datasource', 'query', 'retrieved', 'version', 'sha256' and 'generator' keys."
|
|
4441
4733
|
},
|
|
4442
4734
|
"mapping": {
|
|
4443
4735
|
"$ref": "#/$defs/ChartMapping",
|
|
4444
4736
|
"description": "Optional series mapping by column name: which column is the category, which is the X column of a scatter chart, and which columns are plotted, in order. Absent keeps the positional rule (first column the category, then the X column for scatter, every other column a series)."
|
|
4445
4737
|
},
|
|
4446
|
-
"
|
|
4738
|
+
"lineSeries": {
|
|
4447
4739
|
"type": "array",
|
|
4448
4740
|
"items": { "type": "string" },
|
|
4449
4741
|
"minItems": 1,
|
|
@@ -4464,6 +4756,14 @@
|
|
|
4464
4756
|
"items": { "$ref": "#/$defs/ChartReferenceLine" },
|
|
4465
4757
|
"description": "Explicit numeric references on the chart's value axis, supported on the chart types with one value axis for every series: column, bar, line, line-with-markers, area and combo. A non-empty list on any other type (the stacked and 100% stacked types among them) is the error opf/chart-reference-unsupported-type, located at referenceLines, so a reference is never dropped silently. Absent or [] means none. Authored order, duplicates and values equal to data are preserved. Vertical charts with two or more categories span first-to-last category centers; bars/single-category charts span the full plot. Titles/subtitles never create references or period bands."
|
|
4466
4758
|
},
|
|
4759
|
+
"bands": {
|
|
4760
|
+
"type": "array",
|
|
4761
|
+
"items": { "$ref": "#/$defs/ChartBand" },
|
|
4762
|
+
"minItems": 1,
|
|
4763
|
+
"maxItems": 6,
|
|
4764
|
+
"description": "Ranges of the value axis shaded behind the data, in increasing order: each band runs from the previous band's 'to' (the first from the axis minimum) to its own 'to'. Colors come from the scheme's neutrals, darkest first, unless a band names its own. Bar, column, line and area charts (and their stacked forms) and the bullet chart draw them; other chart types ignore them with a 'chart-bands-unsupported' warning. In PowerPoint a chart with bands has fixed value-axis bounds, so a value typed beyond them in Edit Data does not rescale the chart.",
|
|
4765
|
+
"examples": [[{ "to": 0.6, "label": "Poor" }, { "to": 0.85, "label": "Fair" }, { "to": 1, "label": "Good" }], [{ "to": 10, "label": "Within target", "color": "accent3" }, { "to": 20, "label": "Over target" }]]
|
|
4766
|
+
},
|
|
4467
4767
|
"axisTitles": {
|
|
4468
4768
|
"$ref": "#/$defs/ChartAxisTitles",
|
|
4469
4769
|
"description": "Optional axis titles. Absent keeps today's untitled axes. Supported on the chart types that have a category/value (or X/Y) axis pair (column, bar, line, area, scatter, and the histogram, pareto, waterfall and box-and-whisker constructs; the funnel construct takes a category title only; a combo chart also takes 'secondary' when it plots a series on the secondary axis); a title on a type without that axis (pie, doughnut, radar, treemap, world) is dropped with a 'chart-option-adapted' diagnostic by renderers and exporters."
|
|
@@ -4617,13 +4917,8 @@
|
|
|
4617
4917
|
},
|
|
4618
4918
|
"rows": {
|
|
4619
4919
|
"type": "array",
|
|
4620
|
-
"items": {
|
|
4621
|
-
|
|
4622
|
-
"items": {
|
|
4623
|
-
"$ref": "#/$defs/TableCell"
|
|
4624
|
-
}
|
|
4625
|
-
},
|
|
4626
|
-
"description": "Two-dimensional table row data; each row aligns by index with columns when columns are supplied.",
|
|
4920
|
+
"items": { "$ref": "#/$defs/TableRow" },
|
|
4921
|
+
"description": "Two-dimensional table row data; each row aligns by index with columns when columns are supplied. A row is an array of cells, or an object { \"id\", \"cells\" } when it needs an id; both forms may mix in one table. `tableRows` in the core package returns every row in one form.",
|
|
4627
4922
|
"examples": [
|
|
4628
4923
|
[
|
|
4629
4924
|
[
|
|
@@ -4667,9 +4962,49 @@
|
|
|
4667
4962
|
}
|
|
4668
4963
|
},
|
|
4669
4964
|
"examples": [{ "rows": ["Southeast", "Southwest"] }]
|
|
4965
|
+
},
|
|
4966
|
+
"colorScale": {
|
|
4967
|
+
"$ref": "#/$defs/TableColorScale",
|
|
4968
|
+
"description": "Shades the number cells of the named columns by value, between scheme colors. Engines compute each cell's fill; the text color follows it for contrast."
|
|
4670
4969
|
}
|
|
4671
4970
|
}
|
|
4672
4971
|
},
|
|
4972
|
+
"TableColorScale": {
|
|
4973
|
+
"type": "object",
|
|
4974
|
+
"additionalProperties": false,
|
|
4975
|
+
"required": ["columns"],
|
|
4976
|
+
"description": "A color scale over the number cells of one or more columns. One scale is shared by all named columns, so equal numbers get equal colors. Only cells whose value is a finite number are shaded; a cell with its own style.fill keeps it. Two colors make a sequential scale: the lowest value is the first color, the highest the second. Three colors make a diverging scale: 'center' is drawn in the middle color, lower values towards the first and higher values towards the last. A diverging scale with no pinned 'min' or 'max' is symmetric around 'center', so equal distances from the center get equal strength. Colors are mixed in OKLab. A table that is paged is shaded over its whole range, so a value has the same color on every page.",
|
|
4977
|
+
"properties": {
|
|
4978
|
+
"columns": {
|
|
4979
|
+
"type": "array",
|
|
4980
|
+
"items": { "type": "string" },
|
|
4981
|
+
"minItems": 1,
|
|
4982
|
+
"uniqueItems": true,
|
|
4983
|
+
"description": "The columns to shade, by header text (an inline table) or by dataset column name after 'fields' (a dataset-backed table). A name no column has is a 'table-color-scale-unknown-column' error."
|
|
4984
|
+
},
|
|
4985
|
+
"colors": {
|
|
4986
|
+
"type": "array",
|
|
4987
|
+
"items": { "$ref": "#/$defs/SchemeColorName" },
|
|
4988
|
+
"minItems": 2,
|
|
4989
|
+
"maxItems": 3,
|
|
4990
|
+
"description": "The colors of the scale, low to high, as scheme color names. Two colors make a sequential scale (the lowest value in the first, the highest in the second); three make a diverging scale (the middle color is drawn at 'center', the first below it and the last above it). Absent: ['surface', 'primary']."
|
|
4991
|
+
},
|
|
4992
|
+
"center": { "type": "number", "description": "The value drawn in the middle color. Only with three 'colors' (a 'center' with two colors, or with no 'colors', is a schema error). Absent: 0 when the values span both signs, else the middle of the range. With no 'min' and no 'max' the scale is symmetric around it." },
|
|
4993
|
+
"min": { "type": "number", "description": "The value drawn in the first color; lower values draw in it too. Absent: the lowest number in the named columns (a diverging scale with neither 'min' nor 'max' is symmetric around 'center': it runs from center minus d to center plus d, d the largest distance of any value from the center). A given 'min' or 'max' pins that end exactly, and each side of a diverging scale is then on its own span." },
|
|
4994
|
+
"max": { "type": "number", "description": "The value drawn in the last color; higher values draw in it too. Absent: the highest number in the named columns (see 'min' for a diverging scale)." }
|
|
4995
|
+
},
|
|
4996
|
+
"if": { "required": ["center"] },
|
|
4997
|
+
"then": { "required": ["colors"], "properties": { "colors": { "minItems": 3 } } },
|
|
4998
|
+
"examples": [
|
|
4999
|
+
{ "columns": ["Q1", "Q2", "Q3", "Q4"] },
|
|
5000
|
+
{ "columns": ["YoY %"], "colors": ["accent2", "surface", "accent1"], "center": 0 }
|
|
5001
|
+
]
|
|
5002
|
+
},
|
|
5003
|
+
"SchemeColorName": {
|
|
5004
|
+
"type": "string",
|
|
5005
|
+
"enum": ["accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "dark1", "dark2", "light1", "light2", "primary", "secondary", "accent", "background", "surface", "surfaceAlt", "text", "textSecondary"],
|
|
5006
|
+
"description": "A color of the effective color scheme, by slot or role, resolved as ColorRef resolves the same names (the hyperlink slots are left out). No hex and no variable: what names it follows the deck's colors."
|
|
5007
|
+
},
|
|
4673
5008
|
"ChartData": {
|
|
4674
5009
|
"type": "object",
|
|
4675
5010
|
"description": "Inline tabular data driving a chart, written as `{ \"columns\": [\"Quarter\", \"Decks\"], \"rows\": [[\"Q1\", 3], [\"Q2\", 8]] }`: one column of labels plus one column per series, not separate `categories` and `series` lists. The first column usually supplies category/x-axis labels; subsequent columns are plotted measures unless 'chart.mapping' or a chart type maps them differently. Value cells are numbers; a string is read only in strict decimal syntax ('12', '-3.5', '1e6'), and anything else ('12%', '$5', '(5)', '1,234') is a gap and a 'chart-value-not-numeric' warning.",
|
|
@@ -4681,12 +5016,12 @@
|
|
|
4681
5016
|
"items": {
|
|
4682
5017
|
"oneOf": [
|
|
4683
5018
|
{ "type": "string" },
|
|
4684
|
-
{ "$ref": "#/$defs/
|
|
5019
|
+
{ "$ref": "#/$defs/DatasetColumn" }
|
|
4685
5020
|
]
|
|
4686
5021
|
},
|
|
4687
5022
|
"minItems": 1,
|
|
4688
|
-
"description": "Ordered column labels for the chart data table. A label is a string or a
|
|
4689
|
-
"examples": [["Quarter", "Revenue"], ["Quarter", "Revenue", "Costs"], ["Quarter", { "name": "Revenue", "format": "$#,##0.0" }, { "name": "Margin", "format": "0%" }]]
|
|
5023
|
+
"description": "Ordered column labels for the chart data table. A label is a string or a DatasetColumn ({ \"name\", \"format\", \"type\", \"role\", \"unit\" }) whose number format the data labels, value axis and exported workbook use, and which may declare what its cells hold and what the column is for.",
|
|
5024
|
+
"examples": [["Quarter", "Revenue"], ["Quarter", "Revenue", "Costs"], ["Quarter", { "name": "Revenue", "format": "$#,##0.0" }, { "name": "Margin", "format": "0%" }], [{ "name": "Month", "type": "date", "role": "dimension" }, { "name": "Revenue", "type": "number", "role": "measure", "unit": "USD" }]]
|
|
4690
5025
|
},
|
|
4691
5026
|
"rows": {
|
|
4692
5027
|
"type": "array",
|
|
@@ -4698,10 +5033,12 @@
|
|
|
4698
5033
|
"description": "Tabular chart rows. Each row aligns by index with columns.",
|
|
4699
5034
|
"examples": [[["Q1", 12], ["Q2", 18], ["Q3", 24], ["Q4", 31]]]
|
|
4700
5035
|
},
|
|
4701
|
-
"
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
}
|
|
5036
|
+
"datasource": { "$ref": "#/$defs/DataSourceChoice" },
|
|
5037
|
+
"query": { "$ref": "#/$defs/DataQuery" },
|
|
5038
|
+
"retrieved": { "$ref": "#/$defs/DataRetrieved" },
|
|
5039
|
+
"version": { "$ref": "#/$defs/DataVersion" },
|
|
5040
|
+
"sha256": { "$ref": "#/$defs/DataSha256" },
|
|
5041
|
+
"generator": { "$ref": "#/$defs/DataGenerator" }
|
|
4705
5042
|
}
|
|
4706
5043
|
},
|
|
4707
5044
|
"DataColumn": {
|
|
@@ -4722,46 +5059,142 @@
|
|
|
4722
5059
|
},
|
|
4723
5060
|
"examples": [{ "name": "Revenue", "format": "$#,##0.0" }, { "name": "Margin", "format": "0%" }]
|
|
4724
5061
|
},
|
|
4725
|
-
"
|
|
5062
|
+
"DatasetColumn": {
|
|
4726
5063
|
"type": "object",
|
|
4727
5064
|
"additionalProperties": false,
|
|
4728
|
-
"required": ["
|
|
4729
|
-
"description": "
|
|
5065
|
+
"required": ["name"],
|
|
5066
|
+
"description": "A named data column: a dataset column or an inline chart data column. Adds to DataColumn what its cells hold (type), what it is for (role) and a unit label. The string form is { \"name\": value } with nothing declared. A table column header keeps DataColumn.",
|
|
4730
5067
|
"properties": {
|
|
4731
|
-
"
|
|
5068
|
+
"name": {
|
|
4732
5069
|
"type": "string",
|
|
4733
|
-
"description": "
|
|
4734
|
-
"examples": ["
|
|
5070
|
+
"description": "Column label, used as the series name, the table header and the name 'fields', 'chart.mapping' and data links address.",
|
|
5071
|
+
"examples": ["Revenue", "Month"]
|
|
4735
5072
|
},
|
|
4736
|
-
"
|
|
4737
|
-
"
|
|
4738
|
-
"description": "
|
|
4739
|
-
"examples": ["Sheet1"]
|
|
5073
|
+
"format": {
|
|
5074
|
+
"$ref": "#/$defs/NumberFormat",
|
|
5075
|
+
"description": "Number format of the column's number values (data labels, value axis, table cells, exported workbook). Absent: the General form."
|
|
4740
5076
|
},
|
|
4741
|
-
"
|
|
5077
|
+
"type": {
|
|
4742
5078
|
"type": "string",
|
|
4743
|
-
"
|
|
4744
|
-
"
|
|
5079
|
+
"enum": ["text", "number", "date", "boolean"],
|
|
5080
|
+
"description": "What the column's cells hold. text: strings. number: finite numbers (a string such as \"12\" is not one). date: time labels (a year, a period, a month, a week or a date, as the time-order rule reads them, and an ISO 8601 date-time). boolean: true or false. null is a gap in any type. A cell of another kind is a 'data-cell-type' warning. A date category column is drawn as time (the title fallback of the time-order rule is skipped); a text or boolean one never is. Absent: undeclared, read from the cells as before."
|
|
4745
5081
|
},
|
|
4746
|
-
"
|
|
4747
|
-
"type": "
|
|
4748
|
-
"
|
|
4749
|
-
"description": "
|
|
4750
|
-
"examples": [["Quarter", "Revenue"]]
|
|
5082
|
+
"role": {
|
|
5083
|
+
"type": "string",
|
|
5084
|
+
"enum": ["dimension", "measure"],
|
|
5085
|
+
"description": "What the column is for. dimension: it labels or groups rows (a region, a product, a month). measure: its values are measured and can be aggregated (revenue, count, rate). Time is type 'date' with role 'dimension'. Absent: undeclared. Engines do not draw differently for a role; tools that pick a chart or aggregate a column read it."
|
|
4751
5086
|
},
|
|
4752
|
-
"
|
|
5087
|
+
"unit": {
|
|
5088
|
+
"type": "string",
|
|
5089
|
+
"minLength": 1,
|
|
5090
|
+
"description": "The unit of the column's values, as a label for tools: 'USD', 'ms', 'people'. Engines never print it; 'format' alone decides how a number is drawn.",
|
|
5091
|
+
"examples": ["USD", "ms", "people"]
|
|
5092
|
+
}
|
|
5093
|
+
},
|
|
5094
|
+
"examples": [{ "name": "Month", "type": "date", "role": "dimension" }, { "name": "Revenue", "format": "$#,##0", "type": "number", "role": "measure", "unit": "USD" }]
|
|
5095
|
+
},
|
|
5096
|
+
"DataSourceId": {
|
|
5097
|
+
"type": "string",
|
|
5098
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]*$",
|
|
5099
|
+
"description": "Id of an entry in the top-level datasources map (the datasets id pattern). A string 'datasource' is only ever such an id; a file or a URL is written as an inline data source object, { \"src\": \"./revenue.csv\" }.",
|
|
5100
|
+
"examples": ["warehouse", "finance-workbook"]
|
|
5101
|
+
},
|
|
5102
|
+
"DataSource": {
|
|
5103
|
+
"type": "object",
|
|
5104
|
+
"additionalProperties": false,
|
|
5105
|
+
"description": "A place data comes from: what it is and on what terms, not what was taken from it or when (that is the dataset's). Engines never read, fetch or refresh it; they keep it through editing, export and re-import. It never holds credentials: no password, token or key in 'src' or anywhere else (opf/datasource-credentials warns about a user and password in 'src' and a key or token in its query string); a host keeps secrets in its own store and names the connection in 'connector' or 'extensions'.",
|
|
5106
|
+
"properties": {
|
|
5107
|
+
"title": {
|
|
4753
5108
|
"type": "string",
|
|
4754
|
-
"
|
|
4755
|
-
"
|
|
4756
|
-
"examples": ["2026-10-05", "2026-10-05T09:30:00Z"]
|
|
5109
|
+
"description": "Human name of the data source, shown by editors.",
|
|
5110
|
+
"examples": ["Finance warehouse"]
|
|
4757
5111
|
},
|
|
4758
5112
|
"description": {
|
|
4759
5113
|
"type": "string",
|
|
4760
|
-
"description": "Free-form note about the source.",
|
|
5114
|
+
"description": "Free-form note about the data source.",
|
|
4761
5115
|
"examples": ["Finance export, unaudited"]
|
|
5116
|
+
},
|
|
5117
|
+
"connector": {
|
|
5118
|
+
"type": "string",
|
|
5119
|
+
"description": "The kind of data source, in the host's or the author's words: a name a tool recognizes, such as 'csv', 'xlsx', 'postgres', 'bigquery' or 'rest'. Engines do not interpret it. It also says what language a dataset's 'query' is written in.",
|
|
5120
|
+
"examples": ["xlsx", "postgres", "rest"]
|
|
5121
|
+
},
|
|
5122
|
+
"src": {
|
|
5123
|
+
"type": "string",
|
|
5124
|
+
"description": "Where the data is: an 'asset:<id>' reference, a URL, or a relative or local path. A URL carries no credentials.",
|
|
5125
|
+
"examples": ["./data/revenue.csv", "asset:revenue", "https://cdn.acme.com/data/revenue.csv"]
|
|
5126
|
+
},
|
|
5127
|
+
"license": {
|
|
5128
|
+
"type": "string",
|
|
5129
|
+
"description": "The terms the data is under: an SPDX license identifier or a short statement. It travels with the data.",
|
|
5130
|
+
"examples": ["CC-BY-4.0", "Internal use only"]
|
|
5131
|
+
},
|
|
5132
|
+
"refreshEvery": {
|
|
5133
|
+
"type": "string",
|
|
5134
|
+
"pattern": "^P(?=\\d|T\\d)(?:\\d+Y)?(?:\\d+M)?(?:\\d+W)?(?:\\d+D)?(?:T(?=\\d)(?:\\d+H)?(?:\\d+M)?(?:\\d+(?:\\.\\d+)?S)?)?$",
|
|
5135
|
+
"description": "How often the data is meant to be taken again, as an ISO 8601 duration. No engine acts on it. A validator given a date warns when a dataset's 'retrieved' is older than this (opf/dataset-stale).",
|
|
5136
|
+
"examples": ["P1D", "P1W", "P3M", "PT6H"]
|
|
5137
|
+
},
|
|
5138
|
+
"extensions": {
|
|
5139
|
+
"type": "object",
|
|
5140
|
+
"description": "Custom data passthrough, for example the connection settings a host owns; ignored by the engine but preserved across read/write round-trips. Never credentials."
|
|
5141
|
+
}
|
|
5142
|
+
},
|
|
5143
|
+
"examples": [{ "title": "Finance warehouse", "connector": "postgres", "src": "postgres://warehouse.acme.com/finance", "license": "Internal use only", "refreshEvery": "P1D" }]
|
|
5144
|
+
},
|
|
5145
|
+
"DataSources": {
|
|
5146
|
+
"type": "object",
|
|
5147
|
+
"description": "Data sources keyed by id (the datasets id pattern). A dataset or inline chart data names one with 'datasource': \"<id>\".",
|
|
5148
|
+
"propertyNames": { "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]*$" },
|
|
5149
|
+
"additionalProperties": { "$ref": "#/$defs/DataSource" },
|
|
5150
|
+
"examples": [
|
|
5151
|
+
{
|
|
5152
|
+
"warehouse": { "title": "Finance warehouse", "connector": "postgres", "src": "postgres://warehouse.acme.com/finance", "refreshEvery": "P1D" },
|
|
5153
|
+
"forecast": { "title": "FY26 forecast workbook", "connector": "xlsx", "src": "https://example.com/revenue.xlsx", "license": "CC-BY-4.0" }
|
|
4762
5154
|
}
|
|
5155
|
+
]
|
|
5156
|
+
},
|
|
5157
|
+
"DataSourceChoice": {
|
|
5158
|
+
"description": "Where the data came from: the id of an entry in the top-level datasources map (a string, always an id), or a data source written inline, { \"src\": \"./revenue.csv\" }. An unknown id is a 'datasource-unknown' error. Engines never read, fetch or refresh it.",
|
|
5159
|
+
"oneOf": [
|
|
5160
|
+
{ "$ref": "#/$defs/DataSourceId" },
|
|
5161
|
+
{ "$ref": "#/$defs/DataSource" }
|
|
5162
|
+
],
|
|
5163
|
+
"examples": ["warehouse", { "src": "./data/revenue.csv" }]
|
|
5164
|
+
},
|
|
5165
|
+
"DataQuery": {
|
|
5166
|
+
"type": "string",
|
|
5167
|
+
"minLength": 1,
|
|
5168
|
+
"description": "What was taken from the data source, in the data source's own language: a spreadsheet range with its sheet ('FY26!A1:C13'; a sheet name with a space is quoted as spreadsheets do, \"'Q3 plan'!A1:B9\"), a SQL statement, a path into a document. Engines never run or parse it.",
|
|
5169
|
+
"examples": ["FY26!A1:C13", "'Q3 plan'!A1:B9", "SELECT region, SUM(amount) FROM revenue GROUP BY 1"]
|
|
5170
|
+
},
|
|
5171
|
+
"DataRetrieved": {
|
|
5172
|
+
"anyOf": [{ "type": "string", "format": "date" }, { "type": "string", "format": "date-time" }],
|
|
5173
|
+
"description": "When the data was taken from its source: an ISO 8601 date or date-time. Never read from a clock by an engine.",
|
|
5174
|
+
"examples": ["2026-10-05", "2026-10-05T09:30:00Z"]
|
|
5175
|
+
},
|
|
5176
|
+
"DataVersion": {
|
|
5177
|
+
"type": "string",
|
|
5178
|
+
"minLength": 1,
|
|
5179
|
+
"description": "A free string the source system gives the snapshot that was taken: a revision, an etag, a commit.",
|
|
5180
|
+
"examples": ["r42", "2026-Q3"]
|
|
5181
|
+
},
|
|
5182
|
+
"DataSha256": {
|
|
5183
|
+
"type": "string",
|
|
5184
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
5185
|
+
"description": "The SHA-256 of the source file's bytes as retrieved, as 64 lowercase hexadecimal digits. It answers 'has the file changed since'. Engines never compute or check it.",
|
|
5186
|
+
"examples": ["9f2c41b1d1b6e0a8a56e7c3d2f4b8a90c1e3d5f7a9b0c2d4e6f8a0b1c3d5e07a"]
|
|
5187
|
+
},
|
|
5188
|
+
"DataGenerator": {
|
|
5189
|
+
"type": "object",
|
|
5190
|
+
"additionalProperties": false,
|
|
5191
|
+
"required": ["type", "name"],
|
|
5192
|
+
"description": "Who produced the data: a person or a model, and which. A reviewer of a generated deck can see that a table came from a model, and from which one.",
|
|
5193
|
+
"properties": {
|
|
5194
|
+
"type": { "type": "string", "enum": ["human", "model"], "description": "'human' for a person, 'model' for a language model or another generating program." },
|
|
5195
|
+
"name": { "type": "string", "minLength": 1, "description": "The person, model or tool, as its owner names it.", "examples": ["metricgen 2.1", "Avery Chen"] }
|
|
4763
5196
|
},
|
|
4764
|
-
"examples": [{ "
|
|
5197
|
+
"examples": [{ "type": "model", "name": "metricgen 2.1" }]
|
|
4765
5198
|
},
|
|
4766
5199
|
"DatasetId": {
|
|
4767
5200
|
"type": "string",
|
|
@@ -4788,7 +5221,8 @@
|
|
|
4788
5221
|
"title": "Revenue by quarter",
|
|
4789
5222
|
"columns": ["Quarter", { "name": "Revenue", "format": "$#,##0.0" }, "Costs"],
|
|
4790
5223
|
"rows": [["Q1", 12, 8], ["Q2", 18, 11], ["Q3", 24, 15]],
|
|
4791
|
-
"
|
|
5224
|
+
"datasource": { "src": "./data/revenue.csv" },
|
|
5225
|
+
"retrieved": "2026-10-05"
|
|
4792
5226
|
}
|
|
4793
5227
|
}
|
|
4794
5228
|
]
|
|
@@ -4797,7 +5231,7 @@
|
|
|
4797
5231
|
"type": "object",
|
|
4798
5232
|
"additionalProperties": false,
|
|
4799
5233
|
"required": ["columns", "rows"],
|
|
4800
|
-
"description": "One shared data table: named columns (strings or
|
|
5234
|
+
"description": "One shared data table: named columns (strings or DatasetColumn objects with a number format, a type, a role and a unit) and rows of scalar cells. Column names are unique ('data-column-duplicate' error). Rich text and styling belong in an inline table.",
|
|
4801
5235
|
"properties": {
|
|
4802
5236
|
"title": {
|
|
4803
5237
|
"type": "string",
|
|
@@ -4814,12 +5248,12 @@
|
|
|
4814
5248
|
"items": {
|
|
4815
5249
|
"oneOf": [
|
|
4816
5250
|
{ "type": "string" },
|
|
4817
|
-
{ "$ref": "#/$defs/
|
|
5251
|
+
{ "$ref": "#/$defs/DatasetColumn" }
|
|
4818
5252
|
]
|
|
4819
5253
|
},
|
|
4820
5254
|
"minItems": 1,
|
|
4821
|
-
"description": "Ordered, uniquely named columns.",
|
|
4822
|
-
"examples": [["Quarter", { "name": "Revenue", "format": "$#,##0.0" }, "Costs"]]
|
|
5255
|
+
"description": "Ordered, uniquely named columns. A column may declare what its cells hold (type), what it is for (role) and a unit label; a string column declares nothing.",
|
|
5256
|
+
"examples": [["Quarter", { "name": "Revenue", "format": "$#,##0.0" }, "Costs"], [{ "name": "Month", "type": "date", "role": "dimension" }, { "name": "Revenue", "format": "$#,##0", "type": "number", "role": "measure", "unit": "USD" }]]
|
|
4823
5257
|
},
|
|
4824
5258
|
"rows": {
|
|
4825
5259
|
"type": "array",
|
|
@@ -4830,10 +5264,12 @@
|
|
|
4830
5264
|
"description": "Rows of scalar cells (string, number, boolean, null); each row aligns by index with columns.",
|
|
4831
5265
|
"examples": [[["Q1", 12, 8], ["Q2", 18, 11]]]
|
|
4832
5266
|
},
|
|
4833
|
-
"
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
}
|
|
5267
|
+
"datasource": { "$ref": "#/$defs/DataSourceChoice" },
|
|
5268
|
+
"query": { "$ref": "#/$defs/DataQuery" },
|
|
5269
|
+
"retrieved": { "$ref": "#/$defs/DataRetrieved" },
|
|
5270
|
+
"version": { "$ref": "#/$defs/DataVersion" },
|
|
5271
|
+
"sha256": { "$ref": "#/$defs/DataSha256" },
|
|
5272
|
+
"generator": { "$ref": "#/$defs/DataGenerator" }
|
|
4837
5273
|
}
|
|
4838
5274
|
},
|
|
4839
5275
|
"DatasetRef": {
|
|
@@ -4853,6 +5289,101 @@
|
|
|
4853
5289
|
},
|
|
4854
5290
|
"examples": [{ "dataset": "revenue" }, { "dataset": "revenue", "fields": ["Quarter", "Revenue"] }]
|
|
4855
5291
|
},
|
|
5292
|
+
"DataCondition": {
|
|
5293
|
+
"type": "object",
|
|
5294
|
+
"additionalProperties": false,
|
|
5295
|
+
"required": ["field", "op", "value"],
|
|
5296
|
+
"description": "One condition on a row: the row's cell in 'field' compared with 'value'. Nothing is parsed or evaluated. '=' and '!=' compare the same JSON value (null equals only null, 1 does not equal \"1\"); '<', '<=', '>' and '>=' compare two numbers as numbers, or two strings by the time order of a 'date' column (\"2026-03\" before \"2026-11\", \"Q1 2026\" before \"Q3 2026\") and else by code point, and any other pair does not meet the condition; 'in' is equal to one of the listed values.",
|
|
5297
|
+
"properties": {
|
|
5298
|
+
"field": { "type": "string", "description": "A column name of the linked dataset. An unknown name is a 'dataset-field-unknown' error.", "examples": ["Region"] },
|
|
5299
|
+
"op": { "type": "string", "enum": ["=", "!=", "<", "<=", ">", ">=", "in"], "description": "How the row's cell is compared with 'value'." },
|
|
5300
|
+
"value": {
|
|
5301
|
+
"description": "The value to compare with. For 'in', a list of values.",
|
|
5302
|
+
"oneOf": [
|
|
5303
|
+
{ "$ref": "#/$defs/ChartDataCell" },
|
|
5304
|
+
{ "type": "array", "items": { "$ref": "#/$defs/ChartDataCell" }, "minItems": 1 }
|
|
5305
|
+
]
|
|
5306
|
+
}
|
|
5307
|
+
},
|
|
5308
|
+
"examples": [{ "field": "Region", "op": "=", "value": "EMEA" }, { "field": "Month", "op": "in", "value": ["2026-10", "2026-11"] }]
|
|
5309
|
+
},
|
|
5310
|
+
"DataFilter": {
|
|
5311
|
+
"type": "array",
|
|
5312
|
+
"items": { "$ref": "#/$defs/DataCondition" },
|
|
5313
|
+
"minItems": 1,
|
|
5314
|
+
"description": "Conditions a row must all meet (AND). No OR and no expressions: a host that needs more writes a column that holds it.",
|
|
5315
|
+
"examples": [[{ "field": "Region", "op": "=", "value": "EMEA" }]]
|
|
5316
|
+
},
|
|
5317
|
+
"DataLink": {
|
|
5318
|
+
"type": "object",
|
|
5319
|
+
"additionalProperties": false,
|
|
5320
|
+
"required": ["dataset", "field", "aggregate"],
|
|
5321
|
+
"description": "A number computed from a dataset of this deck: 'aggregate' over the cells of 'field' in the rows that meet 'filter'. Engines compute it from the embedded rows and never fetch. The shape every content that can be linked to data shares; MetricData is this shape plus a change.",
|
|
5322
|
+
"properties": {
|
|
5323
|
+
"dataset": { "$ref": "#/$defs/DatasetId", "description": "Id of the dataset. An unknown id is a 'dataset-unknown' error." },
|
|
5324
|
+
"field": { "type": "string", "description": "The column whose cells are aggregated. An unknown name is a 'dataset-field-unknown' error.", "examples": ["ARR"] },
|
|
5325
|
+
"aggregate": { "type": "string", "enum": ["sum", "mean", "min", "max", "count", "first", "last"], "description": "How the cells are combined: 'count' is the number of rows kept (cells included whatever they hold); 'sum' and 'mean' read numbers (in a column with no declared type also strings in strict decimal syntax); 'min' and 'max' read numbers, or time labels in a 'date' column; 'first' and 'last' are the first or last cell that is not null, in dataset order. A column typed 'text' or 'boolean' refuses 'sum', 'mean', 'min' and 'max' ('metric-data-aggregate' warning)." },
|
|
5326
|
+
"filter": { "$ref": "#/$defs/DataFilter", "description": "Only the rows that meet every condition are used. Absent: every row." }
|
|
5327
|
+
}
|
|
5328
|
+
},
|
|
5329
|
+
"MetricGauge": {
|
|
5330
|
+
"type": "object",
|
|
5331
|
+
"additionalProperties": false,
|
|
5332
|
+
"required": ["max"],
|
|
5333
|
+
"description": "A metric's gauge (see Metric.gauge): the range its value is drawn against, with optional bands and a target.",
|
|
5334
|
+
"properties": {
|
|
5335
|
+
"min": { "$ref": "#/$defs/FiniteNumber", "default": 0, "description": "The value at the arc's start (its left end)." },
|
|
5336
|
+
"max": { "$ref": "#/$defs/FiniteNumber", "description": "The value at the arc's end (its right end). Must be greater than 'min' ('metric-gauge-range' warning otherwise, and no gauge is drawn)." },
|
|
5337
|
+
"bands": {
|
|
5338
|
+
"type": "array",
|
|
5339
|
+
"items": { "$ref": "#/$defs/ChartBand" },
|
|
5340
|
+
"minItems": 1,
|
|
5341
|
+
"maxItems": 6,
|
|
5342
|
+
"description": "Ranges of the gauge shaded along its arc, as a chart's bands: each from the previous 'to' (the first from 'min') to its own 'to'. A band without a color is a neutral; a band with one is a light tint of it, and the value arc takes the band's full color while the value falls in it."
|
|
5343
|
+
},
|
|
5344
|
+
"target": { "$ref": "#/$defs/FiniteNumber", "description": "A value marked by a tick across the arc. A target outside 'min' to 'max' is not drawn ('metric-gauge-range' warning)." }
|
|
5345
|
+
},
|
|
5346
|
+
"examples": [
|
|
5347
|
+
{ "max": 1 },
|
|
5348
|
+
{ "min": -100, "max": 100, "bands": [{ "to": 0, "label": "Detractors lead", "color": "accent2" }, { "to": 30 }, { "to": 100, "label": "Strong", "color": "accent3" }], "target": 40 }
|
|
5349
|
+
]
|
|
5350
|
+
},
|
|
5351
|
+
"MetricData": {
|
|
5352
|
+
"type": "object",
|
|
5353
|
+
"additionalProperties": false,
|
|
5354
|
+
"required": ["dataset", "field", "aggregate"],
|
|
5355
|
+
"description": "A DataLink for a metric, with an optional change. The DataLink properties, repeated because both definitions are closed, plus 'delta'.",
|
|
5356
|
+
"properties": {
|
|
5357
|
+
"dataset": { "$ref": "#/$defs/DatasetId", "description": "Id of the dataset. An unknown id is a 'dataset-unknown' error." },
|
|
5358
|
+
"field": { "type": "string", "description": "The column whose cells are aggregated. An unknown name is a 'dataset-field-unknown' error.", "examples": ["ARR"] },
|
|
5359
|
+
"aggregate": { "type": "string", "enum": ["sum", "mean", "min", "max", "count", "first", "last"], "description": "How the cells are combined; see DataLink." },
|
|
5360
|
+
"filter": { "$ref": "#/$defs/DataFilter", "description": "Only the rows that meet every condition are used. Absent: every row." },
|
|
5361
|
+
"delta": { "$ref": "#/$defs/MetricDelta", "description": "How the metric's change is computed. Absent: no change is computed, and a typed 'delta' on the metric is drawn as written." }
|
|
5362
|
+
},
|
|
5363
|
+
"examples": [
|
|
5364
|
+
{ "dataset": "arr", "field": "ARR", "aggregate": "last", "filter": [{ "field": "Region", "op": "=", "value": "EMEA" }], "delta": { "compare": "previous" } }
|
|
5365
|
+
]
|
|
5366
|
+
},
|
|
5367
|
+
"MetricDelta": {
|
|
5368
|
+
"type": "object",
|
|
5369
|
+
"additionalProperties": false,
|
|
5370
|
+
"description": "How a metric's change is computed: against the previous row ('compare': \"previous\", the same aggregate without the last kept row), against a baseline ('compare': { filter }, the same aggregate over the rows that meet this filter instead of the metric's own), against a fixed number ('compare': { value }), or read from a column that already holds it ('field'). Exactly one of 'compare' and 'field'. 'previous' compares row sets, not periods: with several rows per period, filter to one series first or have the host write the change in a column and use 'field'.",
|
|
5371
|
+
"oneOf": [{ "required": ["compare"] }, { "required": ["field"] }],
|
|
5372
|
+
"properties": {
|
|
5373
|
+
"compare": {
|
|
5374
|
+
"description": "What the value is compared with.",
|
|
5375
|
+
"oneOf": [
|
|
5376
|
+
{ "const": "previous" },
|
|
5377
|
+
{ "type": "object", "additionalProperties": false, "required": ["filter"], "properties": { "filter": { "$ref": "#/$defs/DataFilter", "description": "The rows the baseline is computed over. It replaces the metric's own filter instead of adding to it, so it names everything it means." } } },
|
|
5378
|
+
{ "type": "object", "additionalProperties": false, "required": ["value"], "properties": { "value": { "$ref": "#/$defs/FiniteNumber", "description": "A fixed number to compare with: a plan, a budget, last year's figure typed in." } } }
|
|
5379
|
+
],
|
|
5380
|
+
"examples": ["previous", { "filter": [{ "field": "Month", "op": "=", "value": "2026-09" }] }, { "value": 4 }]
|
|
5381
|
+
},
|
|
5382
|
+
"field": { "type": "string", "description": "A column that holds the change. The change is the metric's aggregate over the same rows of this column. An unknown name is a 'dataset-field-unknown' error." },
|
|
5383
|
+
"as": { "type": "string", "enum": ["difference", "percent"], "default": "difference", "description": "With 'compare': the change as a difference (value minus base) or as a ratio ((value minus base) over the absolute base; 0.12 is 12%). With 'field': what the column holds, which only picks the default format." },
|
|
5384
|
+
"format": { "$ref": "#/$defs/NumberFormat", "description": "How the change is drawn, usually with sign sections ('+0.0;-0.0;0', '+0%;-0%;0%'). Absent: the value column's format with sign sections built from it ('+#,##0.##;-#,##0.##;0' without one), and '+0%;-0%;0%' for a percent." }
|
|
5385
|
+
}
|
|
5386
|
+
},
|
|
4856
5387
|
"ChartMapping": {
|
|
4857
5388
|
"type": "object",
|
|
4858
5389
|
"additionalProperties": false,
|
|
@@ -4872,8 +5403,13 @@
|
|
|
4872
5403
|
"type": "array",
|
|
4873
5404
|
"items": { "type": "string" },
|
|
4874
5405
|
"minItems": 1,
|
|
4875
|
-
"description": "The plotted columns, in order. Default: every column that is not the category or the X column.",
|
|
5406
|
+
"description": "The plotted columns, in order. Default: every column that is not the category or the X column (or, on a bullet chart, the target column).",
|
|
4876
5407
|
"examples": [["Revenue", "Costs"]]
|
|
5408
|
+
},
|
|
5409
|
+
"target": {
|
|
5410
|
+
"type": "string",
|
|
5411
|
+
"description": "Bullet charts: the column that holds each category's target, drawn as a tick across the bar. An unknown name is a 'chart-mapping-unknown-column' error. On other chart types it is ignored with a 'chart-mapping-adapted' warning.",
|
|
5412
|
+
"examples": ["Target"]
|
|
4877
5413
|
}
|
|
4878
5414
|
},
|
|
4879
5415
|
"examples": [{ "category": "Quarter", "series": ["Costs", "Revenue"] }, { "category": "Region", "x": "Spend", "series": ["Revenue"] }]
|
|
@@ -4887,6 +5423,33 @@
|
|
|
4887
5423
|
],
|
|
4888
5424
|
"description": "A cell in inline chart data."
|
|
4889
5425
|
},
|
|
5426
|
+
"TableRow": {
|
|
5427
|
+
"description": "One body row of an inline table: an array of cells, or an object that adds an optional id. Position (the cell's index in 'cells' or in the array) is its column either way.",
|
|
5428
|
+
"oneOf": [
|
|
5429
|
+
{
|
|
5430
|
+
"type": "array",
|
|
5431
|
+
"items": { "$ref": "#/$defs/TableCell" }
|
|
5432
|
+
},
|
|
5433
|
+
{
|
|
5434
|
+
"type": "object",
|
|
5435
|
+
"additionalProperties": false,
|
|
5436
|
+
"required": ["cells"],
|
|
5437
|
+
"properties": {
|
|
5438
|
+
"id": {
|
|
5439
|
+
"type": "string",
|
|
5440
|
+
"minLength": 1,
|
|
5441
|
+
"description": "Optional stable identifier for this table row, unique among every slide, payload, overlay, item, bullet, event and table-row id in the document (one namespace). An opaque string: readers never parse it. Use it when another system must address the table row across edits (a comment anchor, an `@id` patch token, a merge). Edit, move and reorder keep it; a copy inside the document gets a new one. A document without ids is valid and is addressed by index.",
|
|
5442
|
+
"examples": ["r-emea", "total"]
|
|
5443
|
+
},
|
|
5444
|
+
"cells": {
|
|
5445
|
+
"type": "array",
|
|
5446
|
+
"items": { "$ref": "#/$defs/TableCell" },
|
|
5447
|
+
"description": "The row's cells, aligned by index with 'columns' exactly like the array form."
|
|
5448
|
+
}
|
|
5449
|
+
}
|
|
5450
|
+
}
|
|
5451
|
+
]
|
|
5452
|
+
},
|
|
4890
5453
|
"TableCell": {
|
|
4891
5454
|
"oneOf": [
|
|
4892
5455
|
{
|
|
@@ -4977,7 +5540,7 @@
|
|
|
4977
5540
|
],
|
|
4978
5541
|
"description": "Horizontal text alignment inside the cell. Logical: 'start' is the edge a paragraph starts on (the left for left-to-right text, the right for right-to-left text) and 'end' is the opposite edge."
|
|
4979
5542
|
},
|
|
4980
|
-
"
|
|
5543
|
+
"anchor": {
|
|
4981
5544
|
"type": "string",
|
|
4982
5545
|
"enum": [
|
|
4983
5546
|
"top",
|
|
@@ -5198,7 +5761,7 @@
|
|
|
5198
5761
|
"Composition": {
|
|
5199
5762
|
"type": "object",
|
|
5200
5763
|
"additionalProperties": false,
|
|
5201
|
-
"description": "Automatic slide and content-group arrangement. Nested content groups arrange their children independently, inheriting only
|
|
5764
|
+
"description": "Automatic slide and content-group arrangement. Nested content groups arrange their children independently, inheriting only minFontSizePx, maxFontSizePx and overflow. Blocks placed in cells (ContentPayload.region on a slide without a layout) retain their positions. A layout defines its grid as one ordered list of regions; its composition supports gap, padding, minFontSizePx, maxFontSizePx and overflow rather than mode, columns or weights.",
|
|
5202
5765
|
"properties": {
|
|
5203
5766
|
"mode": {
|
|
5204
5767
|
"type": "string",
|
|
@@ -5239,17 +5802,17 @@
|
|
|
5239
5802
|
},
|
|
5240
5803
|
"description": "Relative track sizes: columns for row/grid/auto, rows for column. Omitted tracks have weight 1; extra weights are ignored."
|
|
5241
5804
|
},
|
|
5242
|
-
"
|
|
5805
|
+
"minFontSizePx": {
|
|
5243
5806
|
"type": "number",
|
|
5244
5807
|
"minimum": 8,
|
|
5245
5808
|
"maximum": 32,
|
|
5246
5809
|
"description": "Minimum readable text size in reference pixels at a 720-pixel canvas short edge. Default 16. Overflow is diagnosed when text cannot fit at this size."
|
|
5247
5810
|
},
|
|
5248
|
-
"
|
|
5811
|
+
"maxFontSizePx": {
|
|
5249
5812
|
"type": "number",
|
|
5250
5813
|
"minimum": 8,
|
|
5251
5814
|
"maximum": 200,
|
|
5252
|
-
"description": "Largest body text size in reference pixels at a 720-pixel canvas short edge: paragraphs, lists, quotes, metrics and timelines are never set larger, their growth included (headings, tables, code and charts keep their sizes). Never lowers text under
|
|
5815
|
+
"description": "Largest body text size in reference pixels at a 720-pixel canvas short edge: paragraphs, lists, quotes, metrics and timelines are never set larger, their growth included (headings, tables, code and charts keep their sizes). Never lowers text under minFontSizePx. paginate writes it on the pages after the first, so the pages of one slide share its type sizes."
|
|
5253
5816
|
},
|
|
5254
5817
|
"overflow": {
|
|
5255
5818
|
"type": "string",
|