@openpresentation/opf 0.11.4 → 0.12.1
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 +16 -0
- package/dist/audit.d.ts +156 -0
- package/dist/audit.js +7 -0
- package/dist/{catalogs-CUClB3nl.d.ts → catalogs-BnI7JKcn.d.ts} +3 -3
- package/dist/catalogs.d.ts +2 -2
- package/dist/catalogs.js +2 -1
- package/dist/{chunk-KJKASEPE.js → chunk-4LAM3N6S.js} +753 -42
- package/dist/chunk-6LZK2IZB.js +1690 -0
- package/dist/{chunk-NSVVQ52O.js → chunk-AUM5MXBR.js} +8 -6
- package/dist/{chunk-AEUSVEUY.js → chunk-E34DJ5LL.js} +50 -14
- package/dist/chunk-FYLJVF7X.js +18448 -0
- package/dist/{chunk-HJL64ETN.js → chunk-GJKJL4YY.js} +14 -0
- package/dist/{chunk-3H2U7FDR.js → chunk-HOBSL7AJ.js} +1867 -247
- package/dist/chunk-JKVKYVWL.js +1332 -0
- package/dist/{chunk-3OJN7QAW.js → chunk-MWPMJE6P.js} +18 -4
- package/dist/chunk-RUC7L5DJ.js +261 -0
- package/dist/chunk-S5W34SIJ.js +1 -0
- package/dist/chunk-V2537ENL.js +198 -0
- package/dist/{chunk-RXNFDGPC.js → chunk-WXSPETQ6.js} +311 -40
- package/dist/{composition-Dl-d9FRj.d.ts → composition-DWbCiMwF.d.ts} +559 -10
- package/dist/composition.d.ts +1 -1
- package/dist/composition.js +2 -1
- package/dist/convert.d.ts +261 -0
- package/dist/convert.js +1107 -0
- package/dist/diff.d.ts +145 -0
- package/dist/diff.js +604 -0
- package/dist/docs.js +72 -18
- package/dist/examples.d.ts +1 -1
- package/dist/examples.js +112 -112
- package/dist/font-policy.d.ts +15 -0
- package/dist/font-policy.js +1 -1
- package/dist/format.d.ts +20 -0
- package/dist/format.js +83 -0
- package/dist/index.d.ts +173 -24
- package/dist/index.js +926 -262
- package/dist/lint.d.ts +4 -4
- package/dist/lint.js +6 -5
- package/dist/markdown.d.ts +74 -0
- package/dist/markdown.js +1941 -0
- package/dist/pagination.d.ts +1 -1
- package/dist/pagination.js +6 -5
- package/dist/patch.d.ts +99 -0
- package/dist/patch.js +6 -0
- package/dist/{presentation-j5PVrqfV.d.ts → presentation-DcF-MZcz.d.ts} +452 -17
- package/dist/repo-readme.js +1 -1
- package/dist/{schemas-X_NniU4A.d.ts → schemas-BSjlG8-R.d.ts} +28 -0
- package/dist/schemas.d.ts +1 -1
- package/dist/schemas.js +1 -1
- package/dist/spec/catalogs/audiences/customers.json +5 -1
- package/dist/spec/catalogs/audiences/executives.json +5 -1
- package/dist/spec/catalogs/audiences/index.json +20 -8
- package/dist/spec/catalogs/audiences/investors.json +5 -1
- package/dist/spec/catalogs/audiences/marketing-team.json +5 -1
- package/dist/spec/catalogs/audiences/regulators.json +5 -1
- package/dist/spec/catalogs/audiences/sales-team.json +5 -1
- package/dist/spec/catalogs/manifest.json +2 -2
- package/dist/spec/reference/engine-defaults.json +1 -1
- package/dist/spec/reference/font-policy.json +311 -40
- package/dist/spec/reference/font-policy.schema.json +40 -0
- package/dist/spec/reference/symbol-font-encodings.json +18354 -0
- package/dist/spec/reference/symbol-font-encodings.schema.json +156 -0
- package/dist/spec/schemas/audience.schema.json +7 -7
- package/dist/spec/schemas/narrative.schema.json +1 -1
- package/dist/spec/schemas/opf.schema.json +597 -28
- package/dist/spec-files.d.ts +1 -1
- package/dist/spec-files.js +1 -1
- package/dist/symbol-font-encodings.d.ts +128 -0
- package/dist/symbol-font-encodings.js +1 -0
- package/dist/types.d.ts +4 -4
- package/dist/validator-DfG9yxba.d.ts +172 -0
- package/dist/validator.d.ts +4 -36
- package/dist/validator.js +5 -4
- package/package.json +32 -3
- package/dist/chunk-FDCWQHWO.js +0 -1366
|
@@ -166,6 +166,18 @@
|
|
|
166
166
|
"required": [
|
|
167
167
|
"measured"
|
|
168
168
|
],
|
|
169
|
+
"dependentRequired": {
|
|
170
|
+
"sizeAdjust": [
|
|
171
|
+
"sizeAdjustBasis"
|
|
172
|
+
],
|
|
173
|
+
"lineAscent": [
|
|
174
|
+
"sizeAdjust",
|
|
175
|
+
"lineAscentBasis"
|
|
176
|
+
],
|
|
177
|
+
"lineAscentMixed": [
|
|
178
|
+
"lineAscent"
|
|
179
|
+
]
|
|
180
|
+
},
|
|
169
181
|
"properties": {
|
|
170
182
|
"family": {
|
|
171
183
|
"$ref": "#/$defs/family"
|
|
@@ -192,6 +204,34 @@
|
|
|
192
204
|
"pattern": "^[A-Za-z0-9 ]{4}$"
|
|
193
205
|
}
|
|
194
206
|
},
|
|
207
|
+
"sizeAdjust": {
|
|
208
|
+
"description": "Preview-only font-size multiplier (RR-38). A renderer scales the replacement's font size by this factor when it measures and draws it, so its advances (and, roughly, its glyph size) match the real font's. It applies only when the face drawn is this row's `family`, and never reaches a PPTX or the geometry core composes. Measured as the sum of the real font's shaped advances over the sum of the replacement's, on the script corpus, regular style; `sizeAdjustBasis` records how. Absent means 1.",
|
|
209
|
+
"type": "number",
|
|
210
|
+
"minimum": 0.25,
|
|
211
|
+
"maximum": 2
|
|
212
|
+
},
|
|
213
|
+
"lineAscent": {
|
|
214
|
+
"description": "Preview-only baseline offset (RR-38). Em of the font size from the top of a line box to the baseline in PowerPoint (100 percent line spacing, zero insets, top anchor) when every run of the line is drawn in the real font. A renderer that places baselines one em below the line top (core's convention) moves the replacement's runs up by 1 - lineAscent em. Applies with sizeAdjust, to the face drawn as the row's replacement only.",
|
|
215
|
+
"type": "number",
|
|
216
|
+
"minimum": 0.3,
|
|
217
|
+
"maximum": 1.2
|
|
218
|
+
},
|
|
219
|
+
"lineAscentMixed": {
|
|
220
|
+
"description": "Like lineAscent, for a line that also holds runs in other fonts (a Latin run in a right-to-left line). Absent means lineAscent.",
|
|
221
|
+
"type": "number",
|
|
222
|
+
"minimum": 0.3,
|
|
223
|
+
"maximum": 1.2
|
|
224
|
+
},
|
|
225
|
+
"lineAscentBasis": {
|
|
226
|
+
"description": "How lineAscent was measured (probe, font versions, sizes, the hhea ascent for comparison). Required with lineAscent.",
|
|
227
|
+
"type": "string",
|
|
228
|
+
"minLength": 1
|
|
229
|
+
},
|
|
230
|
+
"sizeAdjustBasis": {
|
|
231
|
+
"description": "How `sizeAdjust` was measured: the corpus, the reference font version, the advance ratio it is rounded from and the ink-height ratio for comparison. Required with `sizeAdjust`.",
|
|
232
|
+
"type": "string",
|
|
233
|
+
"minLength": 1
|
|
234
|
+
},
|
|
195
235
|
"measured": {
|
|
196
236
|
"oneOf": [
|
|
197
237
|
{
|