@openpresentation/opf 0.32.1 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/browser.js +22 -21
- package/dist/catalog-refs-CoIrOdAw.d.ts +937 -0
- package/dist/{catalog-schemas-LdqOPebq.d.ts → catalog-schemas-FjLRPtjB.d.ts} +10 -4
- package/dist/{chart-data-oIZQlFGi.d.ts → chart-data-B_k-WTex.d.ts} +7 -4
- package/dist/{chunk-PB7ME64J.js → chunk-244OPLAV.js} +1 -1
- package/dist/{chunk-IT7FQKED.js → chunk-2HX4BGAS.js} +6 -6
- package/dist/{chunk-2E6CDYL2.js → chunk-36DLVJGW.js} +19 -16
- package/dist/{chunk-XQO2CT6Q.js → chunk-3THGTDL2.js} +2 -2
- package/dist/{chunk-CLRYHWQN.js → chunk-42JBXJKW.js} +187 -25
- package/dist/chunk-BLCDUM7B.js +7 -0
- package/dist/{chunk-NVAJASOD.js → chunk-CJVKOJ6B.js} +10195 -2036
- package/dist/{chunk-XFHXQCXL.js → chunk-DQ7QYOUV.js} +99 -13
- package/dist/{chunk-NEJ32O7X.js → chunk-F6BXO4AI.js} +1 -1
- package/dist/{chunk-OXLA4HXQ.js → chunk-FAXO3SUE.js} +1196 -313
- package/dist/{chunk-J63CIRIV.js → chunk-FIQMAIZV.js} +4 -4
- package/dist/{chunk-PJSPHHRK.js → chunk-FK5XG742.js} +3 -16
- package/dist/{chunk-HKUV7NEN.js → chunk-HHVQ2SDT.js} +1 -1
- package/dist/{chunk-SZFO3MAJ.js → chunk-HUGVYHZ2.js} +4 -4
- package/dist/{chunk-LEF4X4KI.js → chunk-LCT5ZV3Q.js} +2400 -222
- package/dist/chunk-NLJFNCZ4.js +1560 -0
- package/dist/{chunk-GM7WFPGG.js → chunk-PRXZD2II.js} +6 -1
- package/dist/{chunk-YFJIIIOL.js → chunk-QGJVOPLG.js} +3 -3
- package/dist/{chunk-F7DN33UL.js → chunk-QGTJF7HV.js} +16 -14
- package/dist/{chunk-ONVFUVQ5.js → chunk-RUV7CCE6.js} +136 -31
- package/dist/{chunk-SW676APJ.js → chunk-U7TYSPYM.js} +2 -2
- package/dist/chunk-UJZN2ZH6.js +1 -0
- package/dist/chunk-VDZXNNZF.js +221 -0
- package/dist/{chunk-UJSAR6GF.js → chunk-W4DYDRV2.js} +21 -0
- package/dist/chunk-WCPDN7AY.js +642 -0
- package/dist/{chunk-BBVW5ZC2.js → chunk-WMFT5R7I.js} +2 -2
- package/dist/{chunk-AQEAZDL2.js → chunk-XJUMFH33.js} +2 -1
- package/dist/{composition-Ds6WHyO7.d.ts → composition-CvtvgBDE.d.ts} +2783 -873
- package/dist/composition.d.ts +4 -3
- package/dist/composition.js +3 -2
- package/dist/{conversion-CdzrTxib.d.ts → conversion-B_5AKTYQ.d.ts} +39 -10
- package/dist/conversion-CMBGOTAC.js +25 -0
- package/dist/convert.d.ts +5 -4
- package/dist/convert.js +17 -13
- package/dist/data.d.ts +2 -2
- package/dist/data.js +4 -3
- package/dist/{deck-report-CKDNQ2t4.d.ts → deck-report-BVlQZ42f.d.ts} +3 -3
- package/dist/deck.d.ts +7 -6
- package/dist/deck.js +13 -12
- package/dist/diagram-engine-eager.js +6 -2
- package/dist/diagram-engine-lazy.js +14 -1
- package/dist/diagram-plantuml-XRZ6VAOL.js +3 -0
- package/dist/diff.js +6 -5
- package/dist/docs.js +88 -52
- package/dist/examples.js +28745 -18393
- package/dist/font-policy.js +2 -2
- package/dist/format.js +3 -3
- package/dist/ids.js +6 -5
- package/dist/index.d.ts +19 -16
- package/dist/index.js +37 -26
- package/dist/markdown.d.ts +3 -2
- package/dist/markdown.js +10 -9
- package/dist/node-engine.d.ts +44 -11
- package/dist/node-engine.js +47 -28
- package/dist/{pagination-DRZ_JNFY.d.ts → pagination-CZQQYk7L.d.ts} +22 -4
- package/dist/pagination.d.ts +5 -4
- package/dist/pagination.js +6 -5
- package/dist/patch.js +5 -4
- package/dist/precompiled.js +3 -3
- package/dist/{presentation-DnD7mfmf.d.ts → presentation-s9262acV.d.ts} +1172 -208
- package/dist/repo-readme.js +2 -2
- package/dist/schema-engine-ajv.js +2 -2
- package/dist/schema-engine-precompiled.js +3 -3
- package/dist/schema.d.ts +3 -3
- package/dist/schema.js +5 -4
- package/dist/schemas.d.ts +56 -4
- package/dist/schemas.js +2 -2
- package/dist/shape-catalog.d.ts +98 -0
- package/dist/shape-catalog.js +302 -0
- package/dist/shape-engine-eager.js +9 -0
- package/dist/shape-engine-lazy.js +12 -0
- package/dist/shape-engine-module-N74FCHGY.js +3 -0
- package/dist/shape-geometry.d.ts +126 -0
- package/dist/shape-geometry.js +2 -0
- package/dist/source.d.ts +10 -5
- package/dist/source.js +12 -11
- package/dist/spec/README.md +1 -1
- package/dist/spec/reference/engine-vocabularies.json +135 -0
- package/dist/spec/reference/font-policy.json +3 -16
- package/dist/spec/reference/preset-geometry.json +10699 -0
- package/dist/spec/reference/preset-geometry.schema.json +126 -0
- package/dist/spec/schemas/catalog-index.schema.json +1 -0
- package/dist/spec/schemas/chart-type.schema.json +4 -4
- package/dist/spec/schemas/icon-set.schema.json +75 -0
- package/dist/spec/schemas/layout.schema.json +82 -23
- package/dist/spec/schemas/opf.schema.json +1616 -296
- package/dist/spec/schemas/theme.schema.json +11 -5
- package/dist/spec-files.d.ts +1 -1
- package/dist/spec-files.js +2 -2
- package/dist/symbol-font-encodings.js +1 -1
- package/dist/types.d.ts +83 -71
- package/dist/{validation-types-DxyYPebs.d.ts → validation-types-CYbsUuZ9.d.ts} +8 -5
- package/dist/validator.d.ts +35 -7
- package/dist/validator.js +5 -4
- package/dist/yaml.d.ts +3 -2
- package/dist/yaml.js +9 -8
- package/package.json +22 -6
- package/dist/catalog-refs-kAefsZWT.d.ts +0 -129
- package/dist/chunk-DGS47ONG.js +0 -1
- package/dist/conversion-5FUDQPED.js +0 -24
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openpresentation.org/schema/opf-preset-geometry/v1",
|
|
4
|
+
"title": "OPF preset shape geometry",
|
|
5
|
+
"description": "Schema for spec/reference/preset-geometry.json (shapes SH-01): the 187 DrawingML preset shapes of ECMA-376 Part 1 (ST_ShapeType) in the standard's own names and units, generated by scripts/build-preset-geometry.mjs from the standard's presetShapeDefinitions.xml. Reference data for engines, not part of the OPF document contract.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["description", "version", "source", "errata", "shapes"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"$schema": { "type": "string" },
|
|
11
|
+
"description": { "type": "string", "minLength": 1 },
|
|
12
|
+
"version": { "type": "integer", "minimum": 1 },
|
|
13
|
+
"source": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"required": ["name", "distribution", "url", "commit", "license", "licenseUrl", "notice", "standard", "sha256"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"name": { "type": "string" },
|
|
19
|
+
"distribution": { "type": "string" },
|
|
20
|
+
"url": { "type": "string", "format": "uri" },
|
|
21
|
+
"commit": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
|
|
22
|
+
"license": { "const": "Apache-2.0" },
|
|
23
|
+
"licenseUrl": { "type": "string", "format": "uri" },
|
|
24
|
+
"notice": { "type": "string" },
|
|
25
|
+
"standard": { "type": "string" },
|
|
26
|
+
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" }
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"errata": {
|
|
30
|
+
"description": "Corrections of the standard's file to what PowerPoint draws, each with the value it replaces.",
|
|
31
|
+
"type": "array",
|
|
32
|
+
"items": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"required": ["shape", "field", "from", "to", "note"],
|
|
36
|
+
"properties": {
|
|
37
|
+
"shape": { "type": "string" },
|
|
38
|
+
"field": { "enum": ["avLst", "gdLst", "ahLst", "cxnLst", "rect", "pathLst"] },
|
|
39
|
+
"index": { "type": "integer", "minimum": 0 },
|
|
40
|
+
"from": {},
|
|
41
|
+
"to": {},
|
|
42
|
+
"note": { "type": "string" }
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"shapes": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"minProperties": 187,
|
|
49
|
+
"maxProperties": 187,
|
|
50
|
+
"propertyNames": { "pattern": "^[a-zA-Z0-9]+$" },
|
|
51
|
+
"additionalProperties": { "$ref": "#/$defs/shape" }
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"$defs": {
|
|
55
|
+
"value": {
|
|
56
|
+
"description": "A guide name (built-in or defined earlier) or an integer literal, as the standard writes it.",
|
|
57
|
+
"type": "string",
|
|
58
|
+
"pattern": "^(-?[0-9]+|[a-zA-Z0-9]+)$"
|
|
59
|
+
},
|
|
60
|
+
"guide": {
|
|
61
|
+
"description": "[name, formula]: the formula's operator and its operands, space separated.",
|
|
62
|
+
"type": "array",
|
|
63
|
+
"prefixItems": [{ "type": "string" }, { "type": "string", "pattern": "^(\\*/|\\+-|\\+/|\\?:|abs|at2|cat2|cos|max|min|mod|pin|sat2|sin|sqrt|tan|val) " }],
|
|
64
|
+
"minItems": 2,
|
|
65
|
+
"maxItems": 2
|
|
66
|
+
},
|
|
67
|
+
"point": { "type": "array", "items": { "$ref": "#/$defs/value" }, "minItems": 2, "maxItems": 2 },
|
|
68
|
+
"handle": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"additionalProperties": false,
|
|
71
|
+
"required": ["type", "pos"],
|
|
72
|
+
"properties": {
|
|
73
|
+
"type": { "enum": ["xy", "polar"] },
|
|
74
|
+
"gdRefX": { "type": "string" },
|
|
75
|
+
"minX": { "$ref": "#/$defs/value" },
|
|
76
|
+
"maxX": { "$ref": "#/$defs/value" },
|
|
77
|
+
"gdRefY": { "type": "string" },
|
|
78
|
+
"minY": { "$ref": "#/$defs/value" },
|
|
79
|
+
"maxY": { "$ref": "#/$defs/value" },
|
|
80
|
+
"gdRefR": { "type": "string" },
|
|
81
|
+
"minR": { "$ref": "#/$defs/value" },
|
|
82
|
+
"maxR": { "$ref": "#/$defs/value" },
|
|
83
|
+
"gdRefAng": { "type": "string" },
|
|
84
|
+
"minAng": { "$ref": "#/$defs/value" },
|
|
85
|
+
"maxAng": { "$ref": "#/$defs/value" },
|
|
86
|
+
"pos": { "$ref": "#/$defs/point" }
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"command": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"prefixItems": [{ "enum": ["moveTo", "lnTo", "arcTo", "quadBezTo", "cubicBezTo", "close"] }],
|
|
92
|
+
"items": { "$ref": "#/$defs/value" },
|
|
93
|
+
"minItems": 1,
|
|
94
|
+
"maxItems": 7
|
|
95
|
+
},
|
|
96
|
+
"path": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"required": ["commands"],
|
|
100
|
+
"properties": {
|
|
101
|
+
"w": { "type": "integer", "minimum": 0 },
|
|
102
|
+
"h": { "type": "integer", "minimum": 0 },
|
|
103
|
+
"fill": { "enum": ["norm", "none", "lighten", "lightenLess", "darken", "darkenLess"] },
|
|
104
|
+
"stroke": { "type": "boolean" },
|
|
105
|
+
"extrusionOk": { "type": "boolean" },
|
|
106
|
+
"commands": { "type": "array", "items": { "$ref": "#/$defs/command" }, "minItems": 1 }
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"shape": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"additionalProperties": false,
|
|
112
|
+
"required": ["pathLst"],
|
|
113
|
+
"properties": {
|
|
114
|
+
"avLst": { "type": "array", "items": { "$ref": "#/$defs/guide" } },
|
|
115
|
+
"gdLst": { "type": "array", "items": { "$ref": "#/$defs/guide" } },
|
|
116
|
+
"ahLst": { "type": "array", "items": { "$ref": "#/$defs/handle" } },
|
|
117
|
+
"cxnLst": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": { "type": "array", "items": { "$ref": "#/$defs/value" }, "minItems": 3, "maxItems": 3 }
|
|
120
|
+
},
|
|
121
|
+
"rect": { "type": "array", "items": { "$ref": "#/$defs/value" }, "minItems": 4, "maxItems": 4 },
|
|
122
|
+
"pathLst": { "type": "array", "items": { "$ref": "#/$defs/path" }, "minItems": 1 }
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$id": "https://openpresentation.org/schema/opf-chart-type/v1",
|
|
4
4
|
"$comment": "The v1 in the $id is the pre-1.0 line, not a frozen contract: this schema may change in any 0.x minor release. The release that produced this copy is the version of the @openpresentation/opf package it came from (opf --version; opf schemas lists it next to each id). See docs/schema-versioning.md.",
|
|
5
5
|
"title": "Chart Type",
|
|
6
|
-
"description": "Schema for chart-type records: display metadata for chart pickers (name, group, expected series, complexity) and the Open XML mapping a picker can describe. One record per chart type that
|
|
6
|
+
"description": "Schema for chart-type records: display metadata for chart pickers (name, group, expected series, complexity) and the Open XML mapping a picker can describe. One record per chart type that OPF supports natively in its preview and PPTX export, plus the column-and-line combination 'combo'. A document's chart.type is an engine vocabulary validated directly; engines never look a chart-type record up. pptx.gallery publishes these records and @openpresentation/gallery ships them as catalogDisplay.chartTypes.",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"additionalProperties": false,
|
|
9
9
|
"patternProperties": {
|
|
@@ -175,15 +175,15 @@
|
|
|
175
175
|
},
|
|
176
176
|
"renderers": {
|
|
177
177
|
"type": "object",
|
|
178
|
-
"description": "Optional renderer-specific mappings. Keys are renderer ids; values are intentionally opaque to OPF. The bundled catalog records
|
|
178
|
+
"description": "Optional renderer-specific mappings. Keys are renderer ids; values are intentionally opaque to OPF. The bundled catalog records carry none.",
|
|
179
179
|
"additionalProperties": {
|
|
180
180
|
"type": "object",
|
|
181
181
|
"additionalProperties": true
|
|
182
182
|
},
|
|
183
183
|
"examples": [
|
|
184
184
|
{
|
|
185
|
-
"
|
|
186
|
-
"chartType": "
|
|
185
|
+
"example-renderer": {
|
|
186
|
+
"chartType": "StackedColumn"
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
]
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openpresentation.org/schema/opf-icon-set/v1",
|
|
4
|
+
"$comment": "The v1 in the $id is the pre-1.0 line, not a frozen contract: this schema may change in any 0.x minor release. The release that produced this copy is the version of the @openpresentation/opf package it came from (opf --version; opf schemas lists it next to each id). See docs/schema-versioning.md.",
|
|
5
|
+
"title": "Icon Set",
|
|
6
|
+
"description": "Schema for icon-set records: one set of icons that share a viewBox and a style, each icon as SVG path data. An OPF `icon` names one as `<set>:<name>` (docs/icons.md). @openpresentation/gallery ships Lucide and Tabler outline, generated from their npm packages; a host registers them as `galleryIconSets()` of `@openpresentation/gallery/icon-sets` and loads only the icons a deck uses, and a document embeds only the icons it uses under `catalogs.<group>.iconSets.<id>` (a record without `$schema`, `id`, `licenseText` or `tags`).",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": ["$schema", "id", "name", "license", "copyright", "viewBox", "style", "icons"],
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"patternProperties": {
|
|
11
|
+
"^x-": { "description": "Publisher extension member, ignored by engines and stripped when a record is embedded." }
|
|
12
|
+
},
|
|
13
|
+
"properties": {
|
|
14
|
+
"$schema": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "https://openpresentation.org/schema/opf-icon-set/v1",
|
|
17
|
+
"description": "Identifies this record as an icon set."
|
|
18
|
+
},
|
|
19
|
+
"id": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"pattern": "^[a-z][a-z0-9-]*$",
|
|
22
|
+
"description": "The set's id, the part of an icon reference before the colon. `asset` is not a set id: `asset:<id>` is an asset reference.",
|
|
23
|
+
"not": { "const": "asset" },
|
|
24
|
+
"examples": ["lucide", "tabler"]
|
|
25
|
+
},
|
|
26
|
+
"name": { "type": "string", "description": "Human-readable set name shown in pickers.", "examples": ["Lucide", "Tabler outline"] },
|
|
27
|
+
"summary": { "type": "string", "description": "One line on what the set looks like." },
|
|
28
|
+
"version": { "type": "string", "description": "The version of the source the icons were taken from, such as the npm package version.", "examples": ["1.68.0"] },
|
|
29
|
+
"package": { "type": "string", "description": "The npm package the icons were generated from.", "examples": ["lucide-static", "@tabler/icons"] },
|
|
30
|
+
"homepage": { "type": "string", "format": "uri", "description": "Where the set is published." },
|
|
31
|
+
"license": { "type": "string", "description": "The SPDX license id of the icons.", "examples": ["ISC", "MIT"] },
|
|
32
|
+
"copyright": { "type": "string", "description": "The copyright notice the license asks every copy to keep." },
|
|
33
|
+
"licenseText": { "type": "string", "description": "The full license text, as the source package ships it." },
|
|
34
|
+
"viewBox": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"description": "The one viewBox every icon of the set is drawn in: min-x, min-y, width, height.",
|
|
37
|
+
"prefixItems": [{ "type": "number" }, { "type": "number" }, { "type": "number", "exclusiveMinimum": 0 }, { "type": "number", "exclusiveMinimum": 0 }],
|
|
38
|
+
"items": false,
|
|
39
|
+
"minItems": 4,
|
|
40
|
+
"examples": [[0, 0, 24, 24]]
|
|
41
|
+
},
|
|
42
|
+
"style": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"enum": ["stroke", "fill"],
|
|
45
|
+
"description": "How a string icon draws: `stroke` strokes its path at `strokeWidth` with no fill, `fill` fills it (nonzero rule)."
|
|
46
|
+
},
|
|
47
|
+
"strokeWidth": { "type": "number", "exclusiveMinimum": 0, "description": "The stroke width in viewBox units (stroke sets). Default 2." },
|
|
48
|
+
"strokeLinecap": { "type": "string", "enum": ["butt", "round", "square"], "description": "The stroke's line caps. Default round." },
|
|
49
|
+
"strokeLinejoin": { "type": "string", "enum": ["miter", "round", "bevel"], "description": "The stroke's line joins. Default round." },
|
|
50
|
+
"icons": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"description": "The icons by name. A string is the icon's path data, drawn as `style` says; an object separates the parts a stroke set strokes (`stroke`) from those it fills (`fill`). Every icon is one color: the engines draw it in the accent.",
|
|
53
|
+
"propertyNames": { "pattern": "^[a-z0-9][a-z0-9-]*$" },
|
|
54
|
+
"additionalProperties": {
|
|
55
|
+
"oneOf": [
|
|
56
|
+
{ "type": "string", "minLength": 1 },
|
|
57
|
+
{
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"minProperties": 1,
|
|
61
|
+
"properties": {
|
|
62
|
+
"stroke": { "type": "string", "minLength": 1 },
|
|
63
|
+
"fill": { "type": "string", "minLength": 1 }
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"tags": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"description": "Search keywords by icon name, from the source package: what an icon search (the MCP's search_icons, pptx.gallery) matches besides the name.",
|
|
72
|
+
"additionalProperties": { "type": "array", "items": { "type": "string" } }
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"summary": {
|
|
44
44
|
"type": "string",
|
|
45
|
-
"description": "One-sentence positioning of the layout
|
|
45
|
+
"description": "One-sentence positioning of the layout — when to reach for it.",
|
|
46
46
|
"examples": [
|
|
47
47
|
"Two to six ideas of equal weight, as cards.",
|
|
48
48
|
"A chart with the takeaway beside it."
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"row",
|
|
66
66
|
"column"
|
|
67
67
|
],
|
|
68
|
-
"description": "How the record's 'regions' are laid out: 'row' places them side by side
|
|
68
|
+
"description": "How the record's 'regions' are laid out: 'row' places them side by side from the start edge in reading order (left to right; right to left in a right-to-left deck); 'column' stacks them top to bottom. Default 'column'.",
|
|
69
69
|
"examples": [
|
|
70
70
|
"row",
|
|
71
71
|
"column"
|
|
@@ -254,11 +254,11 @@
|
|
|
254
254
|
"middle",
|
|
255
255
|
"bottom"
|
|
256
256
|
],
|
|
257
|
-
"description": "Vertical position of the heading group in its area when the area is sized (a number): 'middle' (default) centers it, 'bottom' sets it at the foot of the area, as a cover or section sets its display title low
|
|
257
|
+
"description": "Vertical position of the heading group in its area when the area is sized (a number): 'middle' (default) centers it, 'bottom' sets it at the foot of the area, as a cover or section sets its display title low, 'top' at the top. An 'auto' area is as tall as the group, so the anchor changes nothing there. A heading region never inherits the 'anchor' of the record or a split."
|
|
258
258
|
},
|
|
259
259
|
"rule": {
|
|
260
260
|
"type": "boolean",
|
|
261
|
-
"description": "'title' only: draw a short accent rule (80 by 5 px at a 720 px short edge) half a gap above the title, at the title's start edge, on a slide with a title and no tag; a tag is the group's eyebrow and takes the rule's place
|
|
261
|
+
"description": "'title' only: draw a short accent rule (80 by 5 px at a 720 px short edge) half a gap above the title, at the title's start edge, on a slide with a title and no tag; a tag is the group's eyebrow and takes the rule's place. Engines draw it in the tag's color, the primary or the text color where the primary is under 4.5:1 on the slide. Default false."
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
},
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
"subtitle"
|
|
317
317
|
]
|
|
318
318
|
},
|
|
319
|
-
"description": "The region's name, lowercase kebab-case, unique across the whole record. A block targets it with 'region': '<name>'. It may not be 'title' (those are heading regions), 'tag', 'auto' or one of the promoted-region words ('
|
|
319
|
+
"description": "The region's name, lowercase kebab-case, unique across the whole record. A block targets it with 'region': '<name>'. It may not be 'title' (those are heading regions), 'tag', 'auto' or one of the promoted-region words ('start', 'center', 'end', 'top', 'middle', 'bottom'), so a Markdown block's region= option stays unambiguous: the validate finding opf/layout-region.",
|
|
320
320
|
"examples": [
|
|
321
321
|
"main",
|
|
322
322
|
"aside",
|
|
@@ -344,10 +344,11 @@
|
|
|
344
344
|
"quote",
|
|
345
345
|
"timeline",
|
|
346
346
|
"diagram",
|
|
347
|
+
"shape",
|
|
347
348
|
"group"
|
|
348
349
|
]
|
|
349
350
|
},
|
|
350
|
-
"description": "Content kinds the region takes: the body content kinds, and 'group' for a content group of any content. A group is also accepted where every one of its leaf kinds is. Omitted: every body content kind and 'group'.",
|
|
351
|
+
"description": "Content kinds the region takes: the body content kinds, and 'group' for a content group of any content. A region that takes 'image' also takes a shape block. A group is also accepted where every one of its leaf kinds is. Omitted: every body content kind and 'group'.",
|
|
351
352
|
"examples": [
|
|
352
353
|
[
|
|
353
354
|
"text",
|
|
@@ -414,7 +415,30 @@
|
|
|
414
415
|
"steps",
|
|
415
416
|
"numbered"
|
|
416
417
|
],
|
|
417
|
-
"description": "The region lists the steps of a sequence
|
|
418
|
+
"description": "The region lists the steps of a sequence. 'steps': two or more text or list blocks are the steps, each under a numbered badge (an accent circle with its numeral; a one-entry numbered list gives the badge its number and draws as a heading over its description) on one connector line through the badge centers; a lone list's entries are the steps, each beside its badge on a connector down the badge column; a lone list of 3 to 6 entries of one or two words is a flow of chips joined by arrows. 'numbered' (an agenda, ordered by nature): every list of two or more entries of one level draws its entries beside badges, numbered or not; an unnumbered list is counted in arabic, continuing from the region's previous unnumbered list, as drawing only (the document keeps no numbering). Steps keep the text size they have without the badges: a slide whose blocks would get smaller draws them as before. Absent: the region's content draws as any other."
|
|
419
|
+
},
|
|
420
|
+
"arrangement": {
|
|
421
|
+
"type": "string",
|
|
422
|
+
"enum": [
|
|
423
|
+
"pyramid",
|
|
424
|
+
"matrix",
|
|
425
|
+
"cycle",
|
|
426
|
+
"chevrons",
|
|
427
|
+
"flow",
|
|
428
|
+
"vertical-flow",
|
|
429
|
+
"org-chart",
|
|
430
|
+
"hierarchy",
|
|
431
|
+
"venn"
|
|
432
|
+
],
|
|
433
|
+
"description": "The region draws its lone list of one level as a diagram (docs/smartart.md), in the first design that holds every entry at one size, the list's role size or larger (up to 1.5 times), never smaller: PowerPoint's own geometry (Basic Pyramid: 1 to 8 entries as stacked levels, the first at the apex; Basic Matrix: exactly four entries as the quadrants of a centered square over a diamond; Basic Cycle: 1 to 8 entries as circles on a ring, the first at the top and the rest clockwise, with an arrow from each to the next, in a frame of the cycle's own proportion centered in the region), which the PPTX export writes as live SmartArt where PowerPoint lays it out as the preview draws it; else OPF's own design (a stepped pyramid with each entry beside its level, four quadrants filling the region, or rounded rectangles on a ring filling the region with an arrow from each to the next). A matrix of other than four entries draws a grid of cards. 'chevrons' (Basic Chevron Process: 1 to 8 entries as a row of chevrons), 'flow' (Basic Process: a row of boxes with arrows between them) and 'vertical-flow' (Vertical Process: a column of boxes with arrows between them), in PowerPoint's geometry where it holds the entries, else OPF's own row or column filling the region. Nodes are filled in the primary color with a 1.5 pt outline in the background color (cards in the card neutral). A cycle's arrows are the primary lightened 40%. A list with nested entries, descriptions, icons or numbering, more than 8 levels or steps, or one no design holds, draws as a list; opf/arrangement-adapted (info) reports the cards and the lists. 'org-chart' and 'hierarchy' take a list whose entry levels form one tree (one root at the first level, each child one level below its parent); a skipped level or a second root keeps the authored list, reported by opf/arrangement-adapted. 'venn' draws 1 to 7 flat sets. These arrangements never draw the list smaller than its own size; whether PowerPoint can edit the result as native shapes and text is decided separately. Absent: the region's content draws as any other."
|
|
434
|
+
},
|
|
435
|
+
"pyramidDirection": {
|
|
436
|
+
"type": "string",
|
|
437
|
+
"enum": [
|
|
438
|
+
"up",
|
|
439
|
+
"down"
|
|
440
|
+
],
|
|
441
|
+
"description": "For arrangement 'pyramid': 'up' (default) puts the narrow tip first, at the top; 'down' puts the widest level first and the tip at the bottom. Entries retain their authored top-to-bottom order. Both the continuous and stepped designs use shared geometry; downward pyramids export as editable native shapes until live SmartArt is qualified."
|
|
418
442
|
},
|
|
419
443
|
"anchor": {
|
|
420
444
|
"type": "string",
|
|
@@ -436,6 +460,25 @@
|
|
|
436
460
|
},
|
|
437
461
|
"required": [
|
|
438
462
|
"name"
|
|
463
|
+
],
|
|
464
|
+
"allOf": [
|
|
465
|
+
{
|
|
466
|
+
"if": {
|
|
467
|
+
"required": [
|
|
468
|
+
"pyramidDirection"
|
|
469
|
+
]
|
|
470
|
+
},
|
|
471
|
+
"then": {
|
|
472
|
+
"required": [
|
|
473
|
+
"arrangement"
|
|
474
|
+
],
|
|
475
|
+
"properties": {
|
|
476
|
+
"arrangement": {
|
|
477
|
+
"const": "pyramid"
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
439
482
|
]
|
|
440
483
|
},
|
|
441
484
|
"DesignHints": {
|
|
@@ -446,20 +489,20 @@
|
|
|
446
489
|
"titleAlignment": {
|
|
447
490
|
"type": "string",
|
|
448
491
|
"enum": [
|
|
449
|
-
"
|
|
492
|
+
"start",
|
|
450
493
|
"center",
|
|
451
|
-
"
|
|
494
|
+
"end"
|
|
452
495
|
],
|
|
453
|
-
"description": "Horizontal alignment of the title heading area."
|
|
496
|
+
"description": "Horizontal alignment of the title heading area. Logical, as design.titleAlignment of a deck: 'start' is the edge a paragraph starts on."
|
|
454
497
|
},
|
|
455
498
|
"contentAlignment": {
|
|
456
499
|
"type": "string",
|
|
457
500
|
"enum": [
|
|
458
|
-
"
|
|
501
|
+
"start",
|
|
459
502
|
"center",
|
|
460
|
-
"
|
|
503
|
+
"end"
|
|
461
504
|
],
|
|
462
|
-
"description": "Horizontal alignment of the body regions."
|
|
505
|
+
"description": "Horizontal alignment of the body regions. Logical, as design.contentAlignment of a deck: 'start' is the edge a paragraph starts on."
|
|
463
506
|
},
|
|
464
507
|
"contentBox": {
|
|
465
508
|
"type": "boolean",
|
|
@@ -479,8 +522,8 @@
|
|
|
479
522
|
"none",
|
|
480
523
|
"top",
|
|
481
524
|
"bottom",
|
|
482
|
-
"
|
|
483
|
-
"
|
|
525
|
+
"start",
|
|
526
|
+
"end"
|
|
484
527
|
],
|
|
485
528
|
"description": "Where the primary chart sits relative to supporting content on automatic slides. Template layouts express this arrangement with their regions; chartPrimary does not override a template."
|
|
486
529
|
},
|
|
@@ -505,7 +548,10 @@
|
|
|
505
548
|
},
|
|
506
549
|
"listStyle": {
|
|
507
550
|
"type": "string",
|
|
508
|
-
"enum": [
|
|
551
|
+
"enum": [
|
|
552
|
+
"stack",
|
|
553
|
+
"rows"
|
|
554
|
+
],
|
|
509
555
|
"description": "As design.listStyle of a deck: 'stack' or 'rows' (ruled rows) for the lists of slides using this layout."
|
|
510
556
|
},
|
|
511
557
|
"mirror": {
|
|
@@ -514,19 +560,32 @@
|
|
|
514
560
|
},
|
|
515
561
|
"variant": {
|
|
516
562
|
"oneOf": [
|
|
517
|
-
{
|
|
518
|
-
|
|
519
|
-
|
|
563
|
+
{
|
|
564
|
+
"$ref": "https://openpresentation.org/schema/opf/v1#/$defs/ColorVariantSlot"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"$ref": "https://openpresentation.org/schema/opf/v1#/$defs/ColorVariant"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"$ref": "#/$defs/LayoutVariantRole"
|
|
571
|
+
}
|
|
520
572
|
],
|
|
521
|
-
"description": "The color variant slides on this layout draw on
|
|
522
|
-
"examples": [
|
|
573
|
+
"description": "The color variant slides on this layout draw on: a background slot ('accent1', 'dark1', ...) or the ColorVariant object, as design.variant, or a value relative to the deck's own variant (LayoutVariantRole: 'surface', 'brand'), so the layout keeps the deck's tone. Unlike the other keys it outranks the deck's design and the theme: the slide's own design.variant or design.background wins, then this, then the deck's variant or background, then the theme's. It hides a background of the deck or theme (the slide is the variant's bg1), and without an accent order of its own it keeps the deck's.",
|
|
574
|
+
"examples": [
|
|
575
|
+
"accent1",
|
|
576
|
+
"surface",
|
|
577
|
+
"brand"
|
|
578
|
+
]
|
|
523
579
|
}
|
|
524
580
|
}
|
|
525
581
|
},
|
|
526
582
|
"LayoutVariantRole": {
|
|
527
583
|
"type": "string",
|
|
528
|
-
"enum": [
|
|
529
|
-
|
|
584
|
+
"enum": [
|
|
585
|
+
"surface",
|
|
586
|
+
"brand"
|
|
587
|
+
],
|
|
588
|
+
"description": "A layout variant relative to the deck's own variant. 'surface' is the deck's secondary surface on its own side: light2 on a light deck and dark2 on a dark one (light1 or dark1 where the deck is already on light2 or dark2), so a statement stands off the deck without changing its tone. 'brand' is the scheme's brand dark, dark2 (dark1 where the deck is already on dark2), with light text: a closing slide's strong surface on a light or a dark deck."
|
|
530
589
|
},
|
|
531
590
|
"Composition": {
|
|
532
591
|
"type": "object",
|