@openpresentation/opf 0.13.0 → 0.14.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 +28 -23
- package/dist/{catalogs-ywCamd8C.d.ts → catalogs-D-yyQWCQ.d.ts} +86 -208
- package/dist/catalogs.d.ts +2 -2
- package/dist/catalogs.js +1 -1
- package/dist/{chart-data-Cdr6rRVV.d.ts → chart-data-B_3z9VTb.d.ts} +16 -5
- package/dist/chunk-4LDGKLUC.js +192 -0
- package/dist/{chunk-II5EYKZU.js → chunk-4VJDTF55.js} +2 -92
- package/dist/chunk-5ZU6JAPP.js +83 -0
- package/dist/{chunk-MPM7NRG7.js → chunk-6OXY2CP3.js} +1716 -744
- package/dist/{chunk-IS2CPNVJ.js → chunk-BFLVSVA7.js} +26 -26
- package/dist/chunk-CSQHPVGL.js +94 -0
- package/dist/{chunk-GJKJL4YY.js → chunk-D3TY4TT6.js} +34 -412
- package/dist/chunk-JDJBDYSR.js +4167 -0
- package/dist/{chunk-7QBCWNWL.js → chunk-LS2FMPI5.js} +1086 -1092
- package/dist/{chunk-ATGDDJPX.js → chunk-Q2TCMN56.js} +3 -3
- package/dist/chunk-UPQQD7MA.js +1840 -0
- package/dist/{chunk-RAYB46AB.js → chunk-XIZUK2XM.js} +32 -30
- package/dist/{chunk-E34DJ5LL.js → chunk-XOZ4KMSR.js} +2427 -10820
- package/dist/chunk-Z65B2B77.js +601 -0
- package/dist/{composition-D7we69Tr.d.ts → composition-_WEwBe2a.d.ts} +738 -27
- package/dist/composition.d.ts +2 -2
- package/dist/composition.js +2 -2
- package/dist/convert.d.ts +9 -7
- package/dist/convert.js +33 -19
- package/dist/data.d.ts +4 -4
- package/dist/data.js +3 -3
- package/dist/diff.d.ts +4 -4
- package/dist/diff.js +6 -604
- package/dist/docs.js +54 -42
- package/dist/examples.d.ts +1 -1
- package/dist/examples.js +1366 -2908
- package/dist/finding-C_por275.d.ts +212 -0
- package/dist/format.d.ts +4 -4
- package/dist/format.js +2 -83
- package/dist/index.d.ts +318 -284
- package/dist/index.js +530 -943
- package/dist/markdown.d.ts +28 -27
- package/dist/markdown.js +8 -1940
- package/dist/pagination-BZpXLvFL.d.ts +119 -0
- package/dist/pagination.d.ts +5 -61
- package/dist/pagination.js +5 -5
- package/dist/patch.d.ts +12 -23
- package/dist/patch.js +5 -5
- package/dist/{presentation-mG-IYErQ.d.ts → presentation-C5eHkevA.d.ts} +350 -506
- package/dist/repo-readme.js +1 -1
- package/dist/{schemas-BbPonsTz.d.ts → schemas-DDpqAgyS.d.ts} +31 -17
- package/dist/schemas.d.ts +1 -1
- package/dist/schemas.js +1 -1
- package/dist/spec/README.md +10 -5
- package/dist/spec/catalogs/audiences/index.json +2 -50
- package/dist/spec/catalogs/chart-types/100pct-stacked-area.json +21 -0
- package/dist/spec/catalogs/chart-types/100pct-stacked-bar.json +22 -0
- package/dist/spec/catalogs/chart-types/100pct-stacked-column.json +22 -0
- package/dist/spec/catalogs/chart-types/area.json +2 -60
- package/dist/spec/catalogs/chart-types/bar.json +2 -48
- package/dist/spec/catalogs/chart-types/box-and-whisker.json +2 -132
- package/dist/spec/catalogs/chart-types/column.json +2 -52
- package/dist/spec/catalogs/chart-types/combo.json +37 -0
- package/dist/spec/catalogs/chart-types/doughnut.json +2 -40
- package/dist/spec/catalogs/chart-types/filled-radar.json +2 -52
- package/dist/spec/catalogs/chart-types/funnel.json +2 -46
- package/dist/spec/catalogs/chart-types/histogram.json +2 -149
- package/dist/spec/catalogs/chart-types/index.json +50 -520
- package/dist/spec/catalogs/chart-types/line-with-markers.json +2 -60
- package/dist/spec/catalogs/chart-types/line.json +2 -60
- package/dist/spec/catalogs/chart-types/pareto.json +2 -50
- package/dist/spec/catalogs/chart-types/pie.json +2 -40
- package/dist/spec/catalogs/chart-types/radar-with-markers.json +2 -52
- package/dist/spec/catalogs/chart-types/radar.json +2 -52
- package/dist/spec/catalogs/chart-types/scatter.json +2 -73
- package/dist/spec/catalogs/chart-types/stacked-area.json +21 -0
- package/dist/spec/catalogs/chart-types/stacked-bar.json +22 -0
- package/dist/spec/catalogs/chart-types/stacked-column.json +22 -0
- package/dist/spec/catalogs/chart-types/stacked-line-with-markers.json +22 -0
- package/dist/spec/catalogs/chart-types/stacked-line.json +21 -0
- package/dist/spec/catalogs/chart-types/treemap.json +2 -48
- package/dist/spec/catalogs/chart-types/waterfall.json +2 -52
- package/dist/spec/catalogs/chart-types/world.json +2 -64
- package/dist/spec/catalogs/font-schemes/angsana-new.json +2 -2
- package/dist/spec/catalogs/font-schemes/aparajita.json +3 -3
- package/dist/spec/catalogs/font-schemes/aptos.json +1 -1
- package/dist/spec/catalogs/font-schemes/arabic-typesetting.json +2 -2
- package/dist/spec/catalogs/font-schemes/arial.json +1 -1
- package/dist/spec/catalogs/font-schemes/batang.json +2 -2
- package/dist/spec/catalogs/font-schemes/bookman.json +1 -1
- package/dist/spec/catalogs/font-schemes/calibri.json +1 -1
- package/dist/spec/catalogs/font-schemes/century-schoolbook.json +1 -1
- package/dist/spec/catalogs/font-schemes/consolas.json +2 -4
- package/dist/spec/catalogs/font-schemes/constantia.json +1 -1
- package/dist/spec/catalogs/font-schemes/courier-new.json +2 -4
- package/dist/spec/catalogs/font-schemes/daunpenh.json +2 -2
- package/dist/spec/catalogs/font-schemes/david.json +2 -2
- package/dist/spec/catalogs/font-schemes/dilleniaupc.json +2 -2
- package/dist/spec/catalogs/font-schemes/fangsong.json +2 -2
- package/dist/spec/catalogs/font-schemes/garamond.json +1 -1
- package/dist/spec/catalogs/font-schemes/gautami.json +2 -2
- package/dist/spec/catalogs/font-schemes/georgia.json +1 -1
- package/dist/spec/catalogs/font-schemes/gisha.json +3 -3
- package/dist/spec/catalogs/font-schemes/grandview.json +1 -1
- package/dist/spec/catalogs/font-schemes/gungsuh.json +2 -2
- package/dist/spec/catalogs/font-schemes/impact.json +1 -1
- package/dist/spec/catalogs/font-schemes/index.json +1 -1
- package/dist/spec/catalogs/font-schemes/kalinga.json +2 -2
- package/dist/spec/catalogs/font-schemes/kartika.json +2 -2
- package/dist/spec/catalogs/font-schemes/khmer-ui.json +2 -2
- package/dist/spec/catalogs/font-schemes/latha.json +2 -2
- package/dist/spec/catalogs/font-schemes/lucida-sans.json +1 -1
- package/dist/spec/catalogs/font-schemes/malgun-gothic.json +2 -2
- package/dist/spec/catalogs/font-schemes/mangal.json +4 -5
- package/dist/spec/catalogs/font-schemes/meiryo.json +2 -2
- package/dist/spec/catalogs/font-schemes/microsoft-jhenghei.json +2 -2
- package/dist/spec/catalogs/font-schemes/microsoft-yahei.json +5 -5
- package/dist/spec/catalogs/font-schemes/mingliu.json +2 -2
- package/dist/spec/catalogs/font-schemes/miriam.json +2 -2
- package/dist/spec/catalogs/font-schemes/montserrat.json +1 -1
- package/dist/spec/catalogs/font-schemes/ms-mincho.json +2 -2
- package/dist/spec/catalogs/font-schemes/nirmala-ui.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-naksh-arabic.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-nastaliq-urdu.json +3 -3
- package/dist/spec/catalogs/font-schemes/noto-sans-arabic.json +4 -4
- package/dist/spec/catalogs/font-schemes/noto-sans-armenian.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-bengali.json +3 -3
- package/dist/spec/catalogs/font-schemes/noto-sans-devangari.json +3 -3
- package/dist/spec/catalogs/font-schemes/noto-sans-ethiopic.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-georgian.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-gujarati.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-gurmukhi.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-hebrew.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-jp.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-kannada.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-khmer.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-kr.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-malayalam.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-mongolian.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-oriya.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-sc.json +5 -5
- package/dist/spec/catalogs/font-schemes/noto-sans-tamil.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-tc.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-telugu.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-thai.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans.json +5 -5
- package/dist/spec/catalogs/font-schemes/nyala.json +2 -2
- package/dist/spec/catalogs/font-schemes/open-sans.json +1 -1
- package/dist/spec/catalogs/font-schemes/pmingliu.json +2 -2
- package/dist/spec/catalogs/font-schemes/poppins.json +1 -1
- package/dist/spec/catalogs/font-schemes/pt-serif.json +1 -1
- package/dist/spec/catalogs/font-schemes/raavi.json +2 -2
- package/dist/spec/catalogs/font-schemes/raleway.json +1 -1
- package/dist/spec/catalogs/font-schemes/roboto.json +1 -1
- package/dist/spec/catalogs/font-schemes/rockwell.json +1 -1
- package/dist/spec/catalogs/font-schemes/sakkal-majalla.json +4 -4
- package/dist/spec/catalogs/font-schemes/seaford.json +1 -1
- package/dist/spec/catalogs/font-schemes/segoe-ui-light.json +1 -1
- package/dist/spec/catalogs/font-schemes/segoe-ui.json +1 -1
- package/dist/spec/catalogs/font-schemes/shonar-bangla.json +3 -3
- package/dist/spec/catalogs/font-schemes/shruti.json +2 -2
- package/dist/spec/catalogs/font-schemes/simsun.json +2 -2
- package/dist/spec/catalogs/font-schemes/skeena.json +1 -1
- package/dist/spec/catalogs/font-schemes/sylfaen.json +3 -3
- package/dist/spec/catalogs/font-schemes/tahoma.json +1 -1
- package/dist/spec/catalogs/font-schemes/tenorite.json +1 -1
- package/dist/spec/catalogs/font-schemes/times-new-roman.json +1 -1
- package/dist/spec/catalogs/font-schemes/traditional-arabic.json +4 -4
- package/dist/spec/catalogs/font-schemes/trebuchet-ms.json +1 -1
- package/dist/spec/catalogs/font-schemes/tunga.json +2 -2
- package/dist/spec/catalogs/font-schemes/verdana.json +1 -1
- package/dist/spec/catalogs/font-schemes/vrinda.json +2 -2
- package/dist/spec/catalogs/font-schemes/yu-gothic.json +2 -2
- package/dist/spec/catalogs/layouts/action-plan.json +9 -15
- package/dist/spec/catalogs/layouts/agenda.json +8 -15
- package/dist/spec/catalogs/layouts/appendix-index.json +7 -15
- package/dist/spec/catalogs/layouts/architecture-stack.json +9 -15
- package/dist/spec/catalogs/layouts/assumptions-dependencies.json +9 -15
- package/dist/spec/catalogs/layouts/before-after.json +9 -15
- package/dist/spec/catalogs/layouts/benchmark-target-table.json +9 -15
- package/dist/spec/catalogs/layouts/blank.json +11 -1
- package/dist/spec/catalogs/layouts/bullet-list.json +9 -15
- package/dist/spec/catalogs/layouts/business-model-canvas.json +9 -15
- package/dist/spec/catalogs/layouts/capability-map.json +14 -16
- package/dist/spec/catalogs/layouts/case-study.json +9 -15
- package/dist/spec/catalogs/layouts/chapter-recap.json +8 -15
- package/dist/spec/catalogs/layouts/chart-1x.json +15 -0
- package/dist/spec/catalogs/layouts/chart-2x.json +15 -0
- package/dist/spec/catalogs/layouts/chart-3x.json +15 -0
- package/dist/spec/catalogs/layouts/circular-lifecycle.json +9 -15
- package/dist/spec/catalogs/layouts/code-1x.json +10 -0
- package/dist/spec/catalogs/layouts/comparison.json +9 -15
- package/dist/spec/catalogs/layouts/competitive-landscape.json +14 -16
- package/dist/spec/catalogs/layouts/customer-journey.json +14 -16
- package/dist/spec/catalogs/layouts/customer-logos.json +9 -15
- package/dist/spec/catalogs/layouts/dashboard.json +9 -15
- package/dist/spec/catalogs/layouts/data-visualization.json +9 -15
- package/dist/spec/catalogs/layouts/decision-tree.json +14 -16
- package/dist/spec/catalogs/layouts/detailed-data-table.json +9 -15
- package/dist/spec/catalogs/layouts/ecosystem-map.json +14 -16
- package/dist/spec/catalogs/layouts/executive-decision.json +9 -15
- package/dist/spec/catalogs/layouts/executive-summary.json +9 -15
- package/dist/spec/catalogs/layouts/extract/canonical.json +8 -8
- package/dist/spec/catalogs/layouts/faq.json +9 -15
- package/dist/spec/catalogs/layouts/feature-comparison-matrix.json +9 -15
- package/dist/spec/catalogs/layouts/forecast-scenario.json +9 -15
- package/dist/spec/catalogs/layouts/funnel-pyramid.json +9 -15
- package/dist/spec/catalogs/layouts/gantt-project-plan.json +9 -15
- package/dist/spec/catalogs/layouts/geographic-map.json +13 -15
- package/dist/spec/catalogs/layouts/heatmap-cohort.json +9 -15
- package/dist/spec/catalogs/layouts/hub-and-spoke.json +9 -15
- package/dist/spec/catalogs/layouts/icon-grid.json +14 -16
- package/dist/spec/catalogs/layouts/image-1x.json +11 -1
- package/dist/spec/catalogs/layouts/image-2x.json +12 -2
- package/dist/spec/catalogs/layouts/image-3x.json +13 -3
- package/dist/spec/catalogs/layouts/image-bleed.json +12 -2
- package/dist/spec/catalogs/layouts/image-focus.json +14 -16
- package/dist/spec/catalogs/layouts/index.json +1 -1
- package/dist/spec/catalogs/layouts/key-takeaway.json +8 -15
- package/dist/spec/catalogs/layouts/kpi-scorecard.json +9 -15
- package/dist/spec/catalogs/layouts/list-1x.json +17 -1
- package/dist/spec/catalogs/layouts/list-2x.json +16 -0
- package/dist/spec/catalogs/layouts/list-3x.json +16 -0
- package/dist/spec/catalogs/layouts/list-4x.json +16 -0
- package/dist/spec/catalogs/layouts/list-5x.json +16 -0
- package/dist/spec/catalogs/layouts/list-6x.json +16 -0
- package/dist/spec/catalogs/layouts/logic-tree.json +9 -15
- package/dist/spec/catalogs/layouts/market-size.json +9 -15
- package/dist/spec/catalogs/layouts/matrix-quadrant.json +9 -15
- package/dist/spec/catalogs/layouts/media-1x.json +11 -1
- package/dist/spec/catalogs/layouts/network-dependency-map.json +13 -15
- package/dist/spec/catalogs/layouts/number-1x.json +16 -1
- package/dist/spec/catalogs/layouts/number-2x.json +15 -0
- package/dist/spec/catalogs/layouts/number-3x.json +15 -0
- package/dist/spec/catalogs/layouts/number-4x.json +15 -0
- package/dist/spec/catalogs/layouts/number-5x.json +15 -0
- package/dist/spec/catalogs/layouts/number-6x.json +15 -0
- package/dist/spec/catalogs/layouts/one-column-explainer.json +9 -15
- package/dist/spec/catalogs/layouts/org-chart.json +9 -15
- package/dist/spec/catalogs/layouts/persona-grid.json +14 -16
- package/dist/spec/catalogs/layouts/photo-grid.json +17 -19
- package/dist/spec/catalogs/layouts/pricing-table.json +9 -15
- package/dist/spec/catalogs/layouts/process-flow.json +9 -15
- package/dist/spec/catalogs/layouts/product-feature.json +14 -16
- package/dist/spec/catalogs/layouts/pros-cons.json +9 -15
- package/dist/spec/catalogs/layouts/qa-discussion.json +7 -15
- package/dist/spec/catalogs/layouts/quote-1x.json +11 -1
- package/dist/spec/catalogs/layouts/quote-highlight.json +9 -15
- package/dist/spec/catalogs/layouts/raci-matrix.json +9 -15
- package/dist/spec/catalogs/layouts/risk-heatmap.json +9 -15
- package/dist/spec/catalogs/layouts/roadmap.json +9 -15
- package/dist/spec/catalogs/layouts/screenshot-walkthrough.json +14 -16
- package/dist/spec/catalogs/layouts/section-divider.json +8 -15
- package/dist/spec/catalogs/layouts/single-message-statement.json +8 -15
- package/dist/spec/catalogs/layouts/stats-metrics.json +9 -15
- package/dist/spec/catalogs/layouts/status-rag.json +9 -15
- package/dist/spec/catalogs/layouts/swimlane-process.json +14 -16
- package/dist/spec/catalogs/layouts/swot-analysis.json +9 -15
- package/dist/spec/catalogs/layouts/table-1x.json +10 -0
- package/dist/spec/catalogs/layouts/team-bio.json +14 -16
- package/dist/spec/catalogs/layouts/testimonial-grid.json +9 -15
- package/dist/spec/catalogs/layouts/text-1x.json +11 -1
- package/dist/spec/catalogs/layouts/text-2x.json +10 -0
- package/dist/spec/catalogs/layouts/text-3x.json +10 -0
- package/dist/spec/catalogs/layouts/thank-you-cta.json +8 -15
- package/dist/spec/catalogs/layouts/three-column.json +9 -15
- package/dist/spec/catalogs/layouts/timeline-1x.json +11 -1
- package/dist/spec/catalogs/layouts/timeline.json +9 -15
- package/dist/spec/catalogs/layouts/title-slide.json +8 -15
- package/dist/spec/catalogs/layouts/title-subtitle.json +11 -1
- package/dist/spec/catalogs/layouts/title.json +11 -1
- package/dist/spec/catalogs/layouts/two-column.json +9 -15
- package/dist/spec/catalogs/layouts/venn-overlap.json +9 -15
- package/dist/spec/catalogs/layouts/waterfall-bridge.json +9 -15
- package/dist/spec/catalogs/layouts/wheel-radial.json +9 -15
- package/dist/spec/catalogs/manifest.json +8 -8
- package/dist/spec/catalogs/narratives/board-meeting.json +45 -45
- package/dist/spec/catalogs/narratives/business-narrative.json +19 -19
- package/dist/spec/catalogs/narratives/business-review.json +27 -27
- package/dist/spec/catalogs/narratives/capacity-planning.json +19 -19
- package/dist/spec/catalogs/narratives/challenge-resolution.json +17 -17
- package/dist/spec/catalogs/narratives/change-story.json +13 -13
- package/dist/spec/catalogs/narratives/classic-story.json +17 -17
- package/dist/spec/catalogs/narratives/company-intro.json +21 -21
- package/dist/spec/catalogs/narratives/conference-talk.json +4 -4
- package/dist/spec/catalogs/narratives/data-story.json +13 -14
- package/dist/spec/catalogs/narratives/early-startup-pitch.json +27 -27
- package/dist/spec/catalogs/narratives/educate.json +21 -21
- package/dist/spec/catalogs/narratives/employee-review.json +19 -19
- package/dist/spec/catalogs/narratives/failure-analysis.json +23 -23
- package/dist/spec/catalogs/narratives/focus.json +27 -27
- package/dist/spec/catalogs/narratives/golden-circle.json +4 -4
- package/dist/spec/catalogs/narratives/heros-journey.json +13 -13
- package/dist/spec/catalogs/narratives/index.json +145 -145
- package/dist/spec/catalogs/narratives/innovation.json +21 -21
- package/dist/spec/catalogs/narratives/justice.json +25 -25
- package/dist/spec/catalogs/narratives/marketing-strategy.json +25 -25
- package/dist/spec/catalogs/narratives/performance-improvement-plan.json +19 -19
- package/dist/spec/catalogs/narratives/performance-review.json +25 -25
- package/dist/spec/catalogs/narratives/persuade.json +17 -17
- package/dist/spec/catalogs/narratives/persuasive-sales.json +19 -19
- package/dist/spec/catalogs/narratives/pitch-deck.json +6 -6
- package/dist/spec/catalogs/narratives/problem-solution.json +5 -5
- package/dist/spec/catalogs/narratives/product-launch.json +23 -23
- package/dist/spec/catalogs/narratives/project-proposal.json +23 -23
- package/dist/spec/catalogs/narratives/pyramid-principle.json +9 -9
- package/dist/spec/catalogs/narratives/qbr.json +8 -8
- package/dist/spec/catalogs/narratives/rags-to-riches.json +17 -17
- package/dist/spec/catalogs/narratives/reveal.json +19 -19
- package/dist/spec/catalogs/narratives/scqa.json +4 -4
- package/dist/spec/catalogs/narratives/situation-complication-resolution.json +11 -11
- package/dist/spec/catalogs/narratives/sparkline.json +11 -11
- package/dist/spec/catalogs/narratives/star-method.json +11 -11
- package/dist/spec/catalogs/narratives/status-update.json +15 -15
- package/dist/spec/catalogs/narratives/strategic-advisory.json +17 -17
- package/dist/spec/catalogs/narratives/strategic-narrative.json +4 -4
- package/dist/spec/catalogs/narratives/survey-analysis.json +23 -23
- package/dist/spec/catalogs/narratives/survival-story.json +23 -23
- package/dist/spec/catalogs/narratives/transformation-arc.json +4 -4
- package/dist/spec/catalogs/narratives/trend-analysis.json +17 -17
- package/dist/spec/catalogs/narratives/underdog-victory.json +19 -19
- package/dist/spec/catalogs/narratives/venture-pitch.json +27 -27
- package/dist/spec/catalogs/narratives/vision-roadmap.json +13 -13
- package/dist/spec/catalogs/narratives/weekly-progress.json +23 -23
- package/dist/spec/catalogs/narratives/what-so-what-now-what.json +9 -9
- package/dist/spec/openapi.yaml +2 -5
- package/dist/spec/reference/engine-defaults.json +2 -2
- package/dist/spec/schemas/audience.schema.json +1 -1
- package/dist/spec/schemas/catalog-index.schema.json +2 -2
- package/dist/spec/schemas/chart-type.schema.json +19 -290
- package/dist/spec/schemas/color-scheme.schema.json +20 -12
- package/dist/spec/schemas/finding.schema.json +191 -0
- package/dist/spec/schemas/font-scheme.schema.json +19 -46
- package/dist/spec/schemas/layout.schema.json +100 -159
- package/dist/spec/schemas/narrative.schema.json +17 -25
- package/dist/spec/schemas/opf.schema.json +286 -340
- package/dist/spec/schemas/social-platform.schema.json +1 -26
- package/dist/spec/schemas/theme.schema.json +4 -1
- package/dist/spec-files.d.ts +1 -1
- package/dist/spec-files.js +1 -1
- package/dist/symbol-font-encodings.js +18448 -1
- package/dist/types.d.ts +4 -4
- package/dist/validation-types-zh03LeZy.d.ts +276 -0
- package/dist/validator.d.ts +60 -4
- package/dist/validator.js +4 -4
- package/dist/yaml.d.ts +87 -0
- package/dist/yaml.js +321 -0
- package/package.json +5 -9
- package/dist/audit.d.ts +0 -35
- package/dist/audit.js +0 -7
- package/dist/chunk-7N4VMAT4.js +0 -1694
- package/dist/chunk-FYLJVF7X.js +0 -18448
- package/dist/chunk-INU7ZNSB.js +0 -670
- package/dist/chunk-IYCJUKWD.js +0 -951
- package/dist/lint-B7azdiuE.d.ts +0 -197
- package/dist/lint.d.ts +0 -7
- package/dist/lint.js +0 -6
- package/dist/spec/catalogs/audiences/customers.json +0 -27
- package/dist/spec/catalogs/audiences/executives.json +0 -27
- package/dist/spec/catalogs/audiences/investors.json +0 -27
- package/dist/spec/catalogs/audiences/marketing-team.json +0 -27
- package/dist/spec/catalogs/audiences/regulators.json +0 -27
- package/dist/spec/catalogs/audiences/sales-team.json +0 -27
- package/dist/spec/catalogs/chart-types/100pct-bullet-bar-2x.json +0 -91
- package/dist/spec/catalogs/chart-types/100pct-bullet-bar-3x.json +0 -103
- package/dist/spec/catalogs/chart-types/100pct-bullet-bar.json +0 -79
- package/dist/spec/catalogs/chart-types/100pct-bullet-column-2x.json +0 -91
- package/dist/spec/catalogs/chart-types/100pct-bullet-column-3x.json +0 -103
- package/dist/spec/catalogs/chart-types/100pct-bullet-column.json +0 -79
- package/dist/spec/catalogs/chart-types/100pct-progress-bar.json +0 -105
- package/dist/spec/catalogs/chart-types/100pct-stacked-area-2x.json +0 -106
- package/dist/spec/catalogs/chart-types/100pct-stacked-area-3x.json +0 -123
- package/dist/spec/catalogs/chart-types/100pct-stacked-bar-2x.json +0 -89
- package/dist/spec/catalogs/chart-types/100pct-stacked-bar-3x.json +0 -100
- package/dist/spec/catalogs/chart-types/100pct-stacked-column-2x.json +0 -95
- package/dist/spec/catalogs/chart-types/100pct-stacked-column-3x.json +0 -108
- package/dist/spec/catalogs/chart-types/australia.json +0 -76
- package/dist/spec/catalogs/chart-types/box-and-whisker-2x.json +0 -136
- package/dist/spec/catalogs/chart-types/box-and-whisker-3x.json +0 -168
- package/dist/spec/catalogs/chart-types/bullet-bar-2x.json +0 -89
- package/dist/spec/catalogs/chart-types/bullet-bar-3x.json +0 -101
- package/dist/spec/catalogs/chart-types/bullet-bar.json +0 -77
- package/dist/spec/catalogs/chart-types/bullet-column-2x.json +0 -89
- package/dist/spec/catalogs/chart-types/bullet-column-3x.json +0 -101
- package/dist/spec/catalogs/chart-types/bullet-column.json +0 -77
- package/dist/spec/catalogs/chart-types/canada.json +0 -86
- package/dist/spec/catalogs/chart-types/clustered-bar-2x.json +0 -89
- package/dist/spec/catalogs/chart-types/clustered-column.json +0 -95
- package/dist/spec/catalogs/chart-types/dot-plot-2x.json +0 -99
- package/dist/spec/catalogs/chart-types/dot-plot-3x.json +0 -124
- package/dist/spec/catalogs/chart-types/dot-plot-4x.json +0 -149
- package/dist/spec/catalogs/chart-types/dot-plot-5x.json +0 -174
- package/dist/spec/catalogs/chart-types/dot-plot-6x.json +0 -199
- package/dist/spec/catalogs/chart-types/dot-plot.json +0 -74
- package/dist/spec/catalogs/chart-types/dumbbell.json +0 -120
- package/dist/spec/catalogs/chart-types/line-2x.json +0 -105
- package/dist/spec/catalogs/chart-types/line-3x.json +0 -127
- package/dist/spec/catalogs/chart-types/line-with-high-low-and-markers.json +0 -144
- package/dist/spec/catalogs/chart-types/line-with-high-low.json +0 -144
- package/dist/spec/catalogs/chart-types/line-with-markers-2x.json +0 -106
- package/dist/spec/catalogs/chart-types/line-with-markers-3x.json +0 -128
- package/dist/spec/catalogs/chart-types/sparkline-2x.json +0 -138
- package/dist/spec/catalogs/chart-types/sparkline-3x.json +0 -174
- package/dist/spec/catalogs/chart-types/sparkline-4x.json +0 -210
- package/dist/spec/catalogs/chart-types/sparkline-5x.json +0 -246
- package/dist/spec/catalogs/chart-types/sparkline-6x.json +0 -282
- package/dist/spec/catalogs/chart-types/sparkline.json +0 -102
- package/dist/spec/catalogs/chart-types/stacked-area-2x.json +0 -106
- package/dist/spec/catalogs/chart-types/stacked-area-3x.json +0 -123
- package/dist/spec/catalogs/chart-types/stacked-bar-2x.json +0 -89
- package/dist/spec/catalogs/chart-types/stacked-bar-3x.json +0 -100
- package/dist/spec/catalogs/chart-types/stacked-column-2x.json +0 -95
- package/dist/spec/catalogs/chart-types/stacked-column-3x.json +0 -108
- package/dist/spec/catalogs/chart-types/stacked-line-2x.json +0 -106
- package/dist/spec/catalogs/chart-types/stacked-line-3x.json +0 -123
- package/dist/spec/catalogs/chart-types/stacked-line-with-markers-2x.json +0 -107
- package/dist/spec/catalogs/chart-types/stacked-line-with-markers-3x.json +0 -124
- package/dist/spec/catalogs/chart-types/treemap-2x.json +0 -101
- package/dist/spec/catalogs/chart-types/treemap-3x.json +0 -122
- package/dist/spec/catalogs/chart-types/united-kingdom.json +0 -68
- package/dist/spec/catalogs/chart-types/united-states.json +0 -82
- package/dist/validator-CIylxoIm.d.ts +0 -172
|
@@ -239,14 +239,14 @@ type HexColor = string;
|
|
|
239
239
|
*/
|
|
240
240
|
type Background = (ThemeBackground | SolidBackground | GradientBackground | ImageBackground | PatternBackground);
|
|
241
241
|
/**
|
|
242
|
-
* Named dimension preset; chooses both aspect ratio and physical size. 'widescreen' is an alias for 16:9 in PowerPoint widescreen size; 'standard' is an alias for 4:3 in PowerPoint standard size.
|
|
242
|
+
* Named dimension preset; chooses both aspect ratio and physical size. 'widescreen' is an alias for 16:9 in PowerPoint widescreen size; 'standard' is an alias for 4:3 in PowerPoint standard size. The social-feed ratios keep the widescreen short edge of 7.5 in: 1:1 is 7.5 x 7.5 in, 4:5 is 7.5 x 9.375 in and 9:16 is 7.5 x 13.333 in (portrait).
|
|
243
243
|
*
|
|
244
244
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
245
245
|
* via the `definition` "DimensionPreset".
|
|
246
246
|
*/
|
|
247
|
-
type DimensionPreset = ("16:9" | "4:3" | "16:10" | "letter" | "a4" | "widescreen" | "standard");
|
|
247
|
+
type DimensionPreset = ("16:9" | "4:3" | "16:10" | "1:1" | "4:5" | "9:16" | "letter" | "a4" | "widescreen" | "standard");
|
|
248
248
|
/**
|
|
249
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
249
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
250
250
|
*
|
|
251
251
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
252
252
|
* via the `definition` "Asset".
|
|
@@ -272,11 +272,30 @@ type Asset = (string | {
|
|
|
272
272
|
* Optional MIME media type when it cannot be inferred from src.
|
|
273
273
|
*/
|
|
274
274
|
mediaType?: string;
|
|
275
|
+
});
|
|
276
|
+
/**
|
|
277
|
+
* Decorative watermark: an image ('src') or a text stamp ('text'), exactly one of the two, with its opacity. An image is drawn once per slide, contained and centered in a fixed frame (the middle 40% of the slide width and height, from 30% to 70% on each axis). A text watermark is one line of text in the heading font and the theme text color at the given opacity, centered on the slide and rotated 30 degrees counterclockwise (rising to the right), sized to span at most 70% of the slide width and at most 30% of the shorter slide edge in height; it is drawn behind the slide content and above the background and slide image. There is no option to move, scale, rotate or tile either form. PPTX export writes one native picture (image) or one native text box (text) per slide with the opacity as alpha, and import restores the watermark. A string or Asset (no opacity) is the image watermark at opacity 0.08. A watermark object needs opacity and exactly one of src and text; use a plain string or Asset for an image at the default opacity. Use design.watermark = false to disable an inherited watermark.
|
|
278
|
+
*
|
|
279
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
280
|
+
* via the `definition` "Watermark".
|
|
281
|
+
*/
|
|
282
|
+
type Watermark = ({
|
|
275
283
|
/**
|
|
276
|
-
*
|
|
284
|
+
* Source for the watermark image: an 'asset:<id>' reference, HTTPS URL, data URI, relative path or local path, as for Asset.src. Exactly one of src and text is set.
|
|
277
285
|
*/
|
|
278
|
-
|
|
279
|
-
|
|
286
|
+
src?: string;
|
|
287
|
+
/**
|
|
288
|
+
* Text for a text watermark, such as DRAFT or CONFIDENTIAL; line breaks are drawn as spaces. Exactly one of src and text is set.
|
|
289
|
+
*/
|
|
290
|
+
text?: string;
|
|
291
|
+
/**
|
|
292
|
+
* Watermark opacity from 0 (fully transparent) to 1 (fully opaque).
|
|
293
|
+
*/
|
|
294
|
+
opacity: number;
|
|
295
|
+
} & Watermark1);
|
|
296
|
+
type Watermark1 = {
|
|
297
|
+
[k: string]: unknown;
|
|
298
|
+
};
|
|
280
299
|
/**
|
|
281
300
|
* A single named variable: a hex string (shorthand for a color variable) or an object whose 'type' is color, text, number, date, image, url or list. 'value' is the current value and is optional: a variable with no value is unfilled, which a template allows and a normal deck does not. 'example' only illustrates the slot (fill forms, template previews) and never reaches output.
|
|
282
301
|
*
|
|
@@ -320,11 +339,19 @@ type TextRun = (string | {
|
|
|
320
339
|
*/
|
|
321
340
|
fontSize?: number;
|
|
322
341
|
/**
|
|
323
|
-
* Run font family override.
|
|
342
|
+
* Run font family override. It wins over the code font a run with 'code' takes.
|
|
324
343
|
*/
|
|
325
344
|
fontFamily?: string;
|
|
326
345
|
/**
|
|
327
|
-
*
|
|
346
|
+
* Whether the run is an inline code span: it is drawn in the design's code font (design.fontScheme.code, else the resolved font scheme's code family, else Roboto Mono), unless the run names its own fontFamily. Only the font changes; there is no background, because a PPTX run cannot have one. Markdown backticks read and write code runs.
|
|
347
|
+
*/
|
|
348
|
+
code?: boolean;
|
|
349
|
+
/**
|
|
350
|
+
* BCP-47 language tag of the run, such as 'fr-FR' or 'ja-JP', when it differs from the deck language. It sets the proofing language (PPTX a:rPr lang) and the language the run's script fonts and glyph variants follow (for example the Japanese or the Simplified Chinese face for Han characters); without it the run follows the deck language.
|
|
351
|
+
*/
|
|
352
|
+
lang?: string;
|
|
353
|
+
/**
|
|
354
|
+
* URL to link the run text to: an http(s) URL, a 'mailto:' address or a 'tel:' number, without whitespace. The preview draws it as a link and PPTX export writes a native hyperlink for all three; any other scheme is not valid.
|
|
328
355
|
*/
|
|
329
356
|
link?: string;
|
|
330
357
|
/**
|
|
@@ -336,11 +363,11 @@ type TextRun = (string | {
|
|
|
336
363
|
*/
|
|
337
364
|
subscript?: boolean;
|
|
338
365
|
/**
|
|
339
|
-
* One or more ids from the top-level references list that this run cites. Engines draw a superscript marker ('1', or '1,2' for several ids) directly after the run and list '<n> <reference text>' in the slide's footnote area; markers are numbered per deck in order of first use, and the same id keeps its number. An id missing from references is a validation error (cite-unknown-reference). Supported in text, bullets and list item runs.
|
|
366
|
+
* One or more ids from the top-level references list that this run cites. Engines draw a superscript marker ('1', or '1,2' for several ids) directly after the run and list '<n> <reference text>' in the slide's footnote area; markers are numbered per deck in order of first use, and the same id keeps its number. An id missing from references is a validation error (cite-unknown-reference). Supported in text, bullets and list item runs, in the slide title, subtitle and tag, and in the quote text.
|
|
340
367
|
*/
|
|
341
368
|
cite?: (string | [string, ...(string)[]]);
|
|
342
369
|
/**
|
|
343
|
-
* An inline note for this run, without a references entry. Engines draw a superscript marker after the run and list the note in the slide's footnote area; every footnote takes a new number in the deck's marker sequence. Supported in text, bullets and list item runs.
|
|
370
|
+
* An inline note for this run, without a references entry. Engines draw a superscript marker after the run and list the note in the slide's footnote area; every footnote takes a new number in the deck's marker sequence. Supported in text, bullets and list item runs, in the slide title, subtitle and tag, and in the quote text.
|
|
344
371
|
*/
|
|
345
372
|
footnote?: (string | [TextRun, ...(TextRun)[]]);
|
|
346
373
|
[k: string]: unknown;
|
|
@@ -467,7 +494,7 @@ type ContentPayload = {
|
|
|
467
494
|
*/
|
|
468
495
|
numbering?: (NumberingStyle | Numbering | [(NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)]);
|
|
469
496
|
/**
|
|
470
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
497
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
471
498
|
*/
|
|
472
499
|
image?: (string | {
|
|
473
500
|
/**
|
|
@@ -490,13 +517,9 @@ type ContentPayload = {
|
|
|
490
517
|
* Optional MIME media type when it cannot be inferred from src.
|
|
491
518
|
*/
|
|
492
519
|
mediaType?: string;
|
|
493
|
-
/**
|
|
494
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
495
|
-
*/
|
|
496
|
-
format?: string;
|
|
497
520
|
});
|
|
498
521
|
/**
|
|
499
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
522
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
500
523
|
*/
|
|
501
524
|
video?: (string | {
|
|
502
525
|
/**
|
|
@@ -519,10 +542,6 @@ type ContentPayload = {
|
|
|
519
542
|
* Optional MIME media type when it cannot be inferred from src.
|
|
520
543
|
*/
|
|
521
544
|
mediaType?: string;
|
|
522
|
-
/**
|
|
523
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
524
|
-
*/
|
|
525
|
-
format?: string;
|
|
526
545
|
});
|
|
527
546
|
chart?: Chart1;
|
|
528
547
|
table?: Table1;
|
|
@@ -531,11 +550,11 @@ type ContentPayload = {
|
|
|
531
550
|
*/
|
|
532
551
|
code?: (string | Code);
|
|
533
552
|
/**
|
|
534
|
-
* Metric payload. A string or number is shorthand for { "value": value }; object form carries optional label, description, unit, delta, and
|
|
553
|
+
* Metric payload. A string or number is shorthand for { "value": value }; object form carries optional label, description, unit, delta, trend, and sentiment metadata. Numeric values remain numbers; renderers format them for display.
|
|
535
554
|
*/
|
|
536
555
|
metric?: (string | number | Metric);
|
|
537
556
|
/**
|
|
538
|
-
* Quote payload. A string is shorthand for { "text": value }; object form carries optional attribution and source metadata.
|
|
557
|
+
* Quote payload. A string is shorthand for { "text": value }; object form carries optional attribution, role, photo and source metadata.
|
|
539
558
|
*/
|
|
540
559
|
quote?: (string | Quote);
|
|
541
560
|
/**
|
|
@@ -586,7 +605,9 @@ type ContentPayload = {
|
|
|
586
605
|
* Catalog source location. Accepts:
|
|
587
606
|
* - A bare URL pointing at a catalog directory (e.g. 'https://acme.com/decks/narratives'); record ids resolve to '<base>/<id>.json'.
|
|
588
607
|
* - A URL pointing at an index file (e.g. 'https://acme.com/decks/narratives/index.json'); records are resolved relative to the index file's directory and the index entries describe what's available. Index files follow https://openpresentation.org/schema/opf-catalog-index/v1; the default catalog's index is https://www.pptx.gallery/<kind>/index.json.
|
|
589
|
-
* - A package reference of the form 'pkg:<package>[/<subpath>]'
|
|
608
|
+
* - A package reference of the form 'pkg:<package>[/<subpath>]'. 'pkg:@openpresentation/opf/...' resolves from the bundled snapshot; any other package reference needs the host to supply its records in 'catalogSources'.
|
|
609
|
+
*
|
|
610
|
+
* Engines never fetch or install anything for a source: the host supplies the records of every source other than the bundled default, as a 'catalogSources' map from the source string to its records.
|
|
590
611
|
*
|
|
591
612
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
592
613
|
* via the `definition` "CatalogSource".
|
|
@@ -605,37 +626,38 @@ interface Presentation {
|
|
|
605
626
|
*/
|
|
606
627
|
$schema?: "https://openpresentation.org/schema/opf/v1";
|
|
607
628
|
/**
|
|
608
|
-
* 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.
|
|
629
|
+
* 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'.
|
|
609
630
|
*/
|
|
610
631
|
name?: string;
|
|
611
632
|
/**
|
|
612
|
-
* Free-form prose describing what this presentation is about. Used by agents and humans as a deck-level summary; complements purpose (the goal) and narrative (the structured storyline). Round-trips to OOXML 'docProps/core.xml' as '<dc:description>' (PowerPoint surfaces this as the 'Comments' field in File → Properties).
|
|
633
|
+
* Free-form prose describing what this presentation is about. Used by agents and humans as a deck-level summary; complements purpose (the goal) and narrative (the structured storyline). Round-trips to OOXML 'docProps/core.xml' as '<dc:description>' (PowerPoint surfaces this as the 'Comments' field in File → Properties). Also the built-in variable 'deck.description'.
|
|
613
634
|
*/
|
|
614
635
|
description?: string;
|
|
615
636
|
/**
|
|
616
|
-
* Optional base filename for exports (without extension).
|
|
637
|
+
* Optional base filename for exports (without extension). The opf CLI (render, export) and the editor strip a trailing .pptx, .pdf, .png, or .svg (case-insensitive) and append the target format's extension. When omitted, they slugify name; with no usable name the CLI uses the input file name and the editor uses 'presentation'. See /docs/opf for full validation rules.
|
|
617
638
|
*/
|
|
618
639
|
filename?: string;
|
|
619
640
|
/**
|
|
620
|
-
* Organization associated with the presentation, usually the presenting company. Array form supports hosts, partners, clients, and sponsors. The primary organization (
|
|
641
|
+
* Organization associated with the presentation, usually the presenting company. Array form supports hosts, partners, clients, and sponsors. The primary organization (Organization.role 'primary', else the first item) supplies the default deck logo, the 'organization' and 'socials' header/footer fields and the 'organization.<field>' built-in variables; the others are available by id as 'organization.<id>.<field>' and are not drawn automatically.
|
|
621
642
|
*/
|
|
622
643
|
organization?: (Organization | [Organization, ...(Organization)[]]);
|
|
623
644
|
/**
|
|
624
|
-
* Person presenting the deck. Array form supports panels and multi-speaker decks.
|
|
645
|
+
* Person presenting the deck. Array form supports panels and multi-speaker decks. The first speaker is the primary speaker: the built-in variables 'speaker.<field>' and the 'speaker' header/footer field read it, 'speakers' lists every name, and 'speaker.<id>.<field>' addresses one by id. A speaker is drawn nowhere else.
|
|
625
646
|
*/
|
|
626
647
|
speaker?: (Speaker | [Speaker, ...(Speaker)[]]);
|
|
627
648
|
/**
|
|
628
|
-
* Optional credit for the person who authored or contributed to the deck, distinct from speaker. Array form supports multiple contributors. Round-trips to OOXML 'docProps/core.xml' as '<dc:creator>' (semicolon-joined when multiple) and seeds '<cp:lastModifiedBy>' on first write; subsequent edits in PowerPoint overwrite '<cp:lastModifiedBy>' with the editing user.
|
|
649
|
+
* Optional credit for the person who authored or contributed to the deck, distinct from speaker. Array form supports multiple contributors. Round-trips to OOXML 'docProps/core.xml' as '<dc:creator>' (semicolon-joined when multiple) and seeds '<cp:lastModifiedBy>' on first write; subsequent edits in PowerPoint overwrite '<cp:lastModifiedBy>' with the editing user. Also the built-in variable 'deck.author' (an array joined with ', ').
|
|
629
650
|
*/
|
|
630
651
|
author?: (string | [string, ...(string)[]]);
|
|
631
652
|
/**
|
|
632
|
-
* Intended audiences for the presentation. Accepts
|
|
653
|
+
* Intended audiences for the presentation. Accepts any of:
|
|
633
654
|
* - A single string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executive'), an HTTPS URL, or a 'pkg:' reference.
|
|
634
|
-
* -
|
|
655
|
+
* - A single inline Audience object, like purpose and tone, for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.
|
|
656
|
+
* - An array of string shorthands and/or inline Audience objects, for more than one audience.
|
|
635
657
|
*
|
|
636
658
|
* Resolution order for catalog ids and references: inline catalogs.audiences.records[] → catalogs.audiences.source → default catalog at https://www.pptx.gallery/audiences.
|
|
637
659
|
*/
|
|
638
|
-
audience?: (string | [(string | Audience), ...((string | Audience))[]]);
|
|
660
|
+
audience?: (string | Audience | [(string | Audience), ...((string | Audience))[]]);
|
|
639
661
|
/**
|
|
640
662
|
* Primary goal of the presentation. Accepts either:
|
|
641
663
|
* - A string shorthand: free-form goal ('Raise a Series B round of $30M'), a purposes catalog id ('decide', 'align'), an HTTPS URL, or a 'pkg:' reference.
|
|
@@ -665,7 +687,7 @@ interface Presentation {
|
|
|
665
687
|
*/
|
|
666
688
|
takeaway?: (string | [string, ...(string)[]]);
|
|
667
689
|
/**
|
|
668
|
-
* Target presentation duration, as an integer number of minutes.
|
|
690
|
+
* Target presentation duration, as an integer number of minutes. The opf-render presenter view counts the elapsed time against it, and core validate warns when it lies outside the resolved narrative's 'duration' range. Agents can also use it to set pace and depth. Nothing else reads it: the preview and the PPTX export draw no duration.
|
|
669
691
|
*/
|
|
670
692
|
duration?: number;
|
|
671
693
|
/**
|
|
@@ -679,17 +701,15 @@ interface Presentation {
|
|
|
679
701
|
*/
|
|
680
702
|
template?: boolean;
|
|
681
703
|
/**
|
|
682
|
-
*
|
|
704
|
+
* The deck's narrative plan, by reference: the 'id' of a 'narratives' catalog record, an HTTPS URL pointing at a record file, or a 'pkg:' reference to a locally-installed package. The deck holds only this pointer; the plan (the arc, its beats and what each beat must do) lives in the catalog record, which validates against https://openpresentation.org/schema/opf-narrative/v1. A custom narrative is a record in catalogs.narratives.records, referenced here by its id.
|
|
683
705
|
*
|
|
684
|
-
*
|
|
685
|
-
* - String shorthand for the common case: 'narrative = "classic-story"'. Accepts a bare id (lowercase kebab-case), an HTTPS URL pointing at a record file, or a 'pkg:' reference to a locally-installed package.
|
|
686
|
-
* - Object form for inline overrides or fully custom narratives: 'narrative = { id: "classic-story", beats: [...] }'. The object shape mirrors https://openpresentation.org/schema/opf-narrative/v1 (sans '$schema'), so a library record and an inline narrative are interchangeable.
|
|
706
|
+
* Slides link themselves to beats with slides[].beat. Core validate warns about a slides[].beat id the resolved narrative does not define and about a root 'duration' outside its 'duration' range, and reports a beat that no slide references. The preview and the PPTX export draw nothing from the narrative; opf-pptx stores the reference for round-trip.
|
|
687
707
|
*
|
|
688
708
|
* Resolution order: inline catalogs.narratives.records[] → catalogs.narratives.source → default catalog at https://www.pptx.gallery/narratives. Unknown ids produce a validation warning, not an error.
|
|
689
709
|
*
|
|
690
|
-
* Deck-level concerns that
|
|
710
|
+
* Deck-level concerns that are not part of the storyline (audience, tone, takeaway, duration) live as siblings on the presentation root.
|
|
691
711
|
*/
|
|
692
|
-
narrative?:
|
|
712
|
+
narrative?: string;
|
|
693
713
|
/**
|
|
694
714
|
* Ordered array of slides that make up the presentation.
|
|
695
715
|
*
|
|
@@ -697,7 +717,7 @@ interface Presentation {
|
|
|
697
717
|
*/
|
|
698
718
|
slides: [Slide, ...(Slide)[]];
|
|
699
719
|
/**
|
|
700
|
-
* 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
|
|
720
|
+
* 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.
|
|
701
721
|
*/
|
|
702
722
|
references?: Reference[];
|
|
703
723
|
datasets?: Datasets;
|
|
@@ -711,26 +731,26 @@ interface Presentation {
|
|
|
711
731
|
};
|
|
712
732
|
}
|
|
713
733
|
/**
|
|
714
|
-
* An organization associated with the presentation
|
|
734
|
+
* An organization associated with the presentation, typically the presenting company, but also hosts, partners, clients, or sponsors. The primary organization (role 'primary', else the first one) supplies the default deck logo (unless design.logo overrides it), the 'organization' header/footer field (its name) and the 'socials' field (its socials). Every field is also a built-in variable ('{{organization.name}}', 'var:organization.logo', 'organization.<id>.<field>'). Nothing else about an organization is drawn automatically. See docs/templates-and-variables.md.
|
|
715
735
|
*
|
|
716
736
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
717
737
|
* via the `definition` "Organization".
|
|
718
738
|
*/
|
|
719
739
|
interface Organization {
|
|
720
740
|
/**
|
|
721
|
-
* Stable identifier for the organization, used to reference it from Speaker.organizationId. Must be unique
|
|
741
|
+
* Stable identifier for the organization, used to reference it from Speaker.organizationId and to address it in built-in variables as 'organization.<id>.<field>'. Must be unique among organizations (a duplicate is a validation error).
|
|
722
742
|
*/
|
|
723
743
|
id: string;
|
|
724
744
|
/**
|
|
725
|
-
* Display name
|
|
745
|
+
* Display name. Drawn by the 'organization' header/footer field for the primary organization; the built-in variable 'organization.name' (or 'organization.<id>.name') carries it into any string.
|
|
726
746
|
*/
|
|
727
747
|
name: string;
|
|
728
748
|
/**
|
|
729
|
-
* Optional legal entity name when it differs from the display name.
|
|
749
|
+
* Optional legal entity name when it differs from the display name. Never drawn automatically; available as the built-in variable 'organization.legalName'.
|
|
730
750
|
*/
|
|
731
751
|
legalName?: string;
|
|
732
752
|
/**
|
|
733
|
-
* Source for the organization's logo image. Accepts an HTTPS URL, data URI, relative path (resolved against the OPF file location), local path, or 'asset:<id>' reference. Common formats are SVG (preferred for vector logos), PNG (with transparency), or JPG. The primary organization's logo (role 'primary', else the first organization) is the fallback source wherever the deck logo is drawn: a slide's design.logo, then design.logo, then this value. It is therefore drawn on cover and section slides and by header/footer zones with logo: true, exactly as design.logo would be (see design.logo and docs/design-resolution.md).
|
|
753
|
+
* Source for the organization's logo image. Accepts an HTTPS URL, data URI, relative path (resolved against the OPF file location), local path, or 'asset:<id>' reference. Common formats are SVG (preferred for vector logos), PNG (with transparency), or JPG. The primary organization's logo (role 'primary', else the first organization) is the fallback source wherever the deck logo is drawn: a slide's design.logo, then design.logo, then this value. It is therefore drawn on cover and section slides and by header/footer zones with logo: true, exactly as design.logo would be (see design.logo and docs/design-resolution.md). It is also the built-in image variable 'organization.logo' (or 'organization.<id>.logo'), placed with 'var:organization.logo' in an image field.
|
|
734
754
|
*/
|
|
735
755
|
logo?: (string | {
|
|
736
756
|
/**
|
|
@@ -753,29 +773,25 @@ interface Organization {
|
|
|
753
773
|
* Optional MIME media type when it cannot be inferred from src.
|
|
754
774
|
*/
|
|
755
775
|
mediaType?: string;
|
|
756
|
-
/**
|
|
757
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
758
|
-
*/
|
|
759
|
-
format?: string;
|
|
760
776
|
});
|
|
761
777
|
/**
|
|
762
|
-
* Bare internet domain for the organization.
|
|
778
|
+
* Bare internet domain for the organization. Never drawn automatically and not used to look up assets; available as the built-in variable 'organization.domain'.
|
|
763
779
|
*/
|
|
764
780
|
domain?: string;
|
|
765
781
|
/**
|
|
766
|
-
* General contact email for the organization.
|
|
782
|
+
* General contact email for the organization. Never drawn automatically; available as the built-in variable 'organization.email'.
|
|
767
783
|
*/
|
|
768
784
|
email?: string;
|
|
769
785
|
/**
|
|
770
|
-
* Main contact phone number for the organization. E.164 format is recommended.
|
|
786
|
+
* Main contact phone number for the organization. E.164 format is recommended. Never drawn automatically; available as the built-in variable 'organization.phone'.
|
|
771
787
|
*/
|
|
772
788
|
phone?: string;
|
|
773
789
|
/**
|
|
774
|
-
* Short tagline
|
|
790
|
+
* Short tagline. Never drawn automatically (cover slides do not show it); available as the built-in variable 'organization.tagline', for example in a footer 'text' of '{{organization.tagline}}'.
|
|
775
791
|
*/
|
|
776
792
|
tagline?: string;
|
|
777
793
|
/**
|
|
778
|
-
* Role of the organization relative to the presentation.
|
|
794
|
+
* Role of the organization relative to the presentation. Only 'primary' has behavior: it selects the primary organization (deck logo, 'organization' and 'socials' header/footer fields, and the 'organization.<field>' built-ins). When no organization has role 'primary', the first one is primary. 'partner', 'client', 'sponsor' and 'host' are descriptive labels that change nothing.
|
|
779
795
|
*/
|
|
780
796
|
role?: ("primary" | "partner" | "client" | "sponsor" | "host");
|
|
781
797
|
socials?: Socials;
|
|
@@ -791,26 +807,26 @@ interface Socials {
|
|
|
791
807
|
[k: string]: string;
|
|
792
808
|
}
|
|
793
809
|
/**
|
|
794
|
-
* A person presenting the deck.
|
|
810
|
+
* A person presenting the deck. A speaker is drawn only through built-in variables ('{{speaker.name}}' inside any string, 'var:speaker.photo' as a whole image field) and the 'speaker' header/footer field (the first speaker's name and title). No layout, cover or bio slide places a speaker on its own. See docs/templates-and-variables.md.
|
|
795
811
|
*
|
|
796
812
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
797
813
|
* via the `definition` "Speaker".
|
|
798
814
|
*/
|
|
799
815
|
interface Speaker {
|
|
800
816
|
/**
|
|
801
|
-
* Stable identifier for the speaker
|
|
817
|
+
* Stable identifier for the speaker. Must be unique among speakers (a duplicate is a validation error). Addresses this speaker in built-in variables as 'speaker.<id>.<field>', such as '{{speaker.alice.title}}'.
|
|
802
818
|
*/
|
|
803
819
|
id: string;
|
|
804
820
|
/**
|
|
805
|
-
* Display name.
|
|
821
|
+
* Display name. Built-in variable 'speaker.name' (first speaker) or 'speaker.<id>.name'; the first speaker's name is also drawn by the 'speaker' header/footer field and every name is listed by 'speakers'.
|
|
806
822
|
*/
|
|
807
823
|
name: string;
|
|
808
824
|
/**
|
|
809
|
-
* Role or title.
|
|
825
|
+
* Role or title. Built-in variable 'speaker.title'; the 'speaker' header/footer field draws it after the name ('Alice Chen, VP of Engineering').
|
|
810
826
|
*/
|
|
811
827
|
title?: string;
|
|
812
828
|
/**
|
|
813
|
-
* Source for the speaker's headshot image. Accepts an HTTPS URL, data URI, relative path (resolved against the OPF file location), local path, or 'asset:<id>' reference. Common formats are JPG or PNG; SVG is not appropriate for photographic content.
|
|
829
|
+
* Source for the speaker's headshot image. Accepts an HTTPS URL, data URI, relative path (resolved against the OPF file location), local path, or 'asset:<id>' reference. Common formats are JPG or PNG; SVG is not appropriate for photographic content. Never drawn automatically: it is the built-in image variable 'speaker.photo' (or 'speaker.<id>.photo'), placed with 'var:speaker.photo' in a slide's image field. It also round-trips through PPTX provenance.
|
|
814
830
|
*/
|
|
815
831
|
photo?: (string | {
|
|
816
832
|
/**
|
|
@@ -833,32 +849,28 @@ interface Speaker {
|
|
|
833
849
|
* Optional MIME media type when it cannot be inferred from src.
|
|
834
850
|
*/
|
|
835
851
|
mediaType?: string;
|
|
836
|
-
/**
|
|
837
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
838
|
-
*/
|
|
839
|
-
format?: string;
|
|
840
852
|
});
|
|
841
853
|
/**
|
|
842
|
-
* Contact email
|
|
854
|
+
* Contact email. Never drawn automatically; available as the built-in variable 'speaker.email'.
|
|
843
855
|
*/
|
|
844
856
|
email?: string;
|
|
845
857
|
/**
|
|
846
|
-
* Contact phone number for the speaker. E.164 format is recommended.
|
|
858
|
+
* Contact phone number for the speaker. E.164 format is recommended. Never drawn automatically; available as the built-in variable 'speaker.phone'.
|
|
847
859
|
*/
|
|
848
860
|
phone?: string;
|
|
849
861
|
/**
|
|
850
|
-
* Short biographical paragraph for bio or 'about the speaker'
|
|
862
|
+
* Short biographical paragraph. Never drawn automatically; available as the built-in variable 'speaker.bio', for a bio or 'about the speaker' slide you write.
|
|
851
863
|
*/
|
|
852
864
|
bio?: string;
|
|
853
865
|
/**
|
|
854
|
-
* Reference to an Organization.id in organization
|
|
866
|
+
* 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.
|
|
855
867
|
*/
|
|
856
868
|
organizationId?: string;
|
|
857
869
|
socials?: Socials1;
|
|
858
870
|
[k: string]: unknown;
|
|
859
871
|
}
|
|
860
872
|
/**
|
|
861
|
-
* Optional social media handles or URLs for the speaker. Authoring metadata: no header/footer field
|
|
873
|
+
* Optional social media handles or URLs for the speaker. Authoring metadata only: nothing draws speaker socials and there is no built-in variable for them (the 'socials' header/footer field draws the primary organization's socials).
|
|
862
874
|
*/
|
|
863
875
|
interface Socials1 {
|
|
864
876
|
/**
|
|
@@ -909,7 +921,7 @@ interface Design {
|
|
|
909
921
|
*/
|
|
910
922
|
logo?: (Asset | LogoSet);
|
|
911
923
|
/**
|
|
912
|
-
* Optional decorative watermark applied across slides. Use false to suppress an inherited watermark in slide-level design; a string is
|
|
924
|
+
* Optional decorative watermark applied across slides: an image or a text stamp, in the fixed frame and at the opacity described on Watermark. Use false to suppress an inherited watermark in slide-level design; a string or Asset is the image at opacity 0.08.
|
|
913
925
|
*/
|
|
914
926
|
watermark?: (false | Asset | Watermark);
|
|
915
927
|
/**
|
|
@@ -921,19 +933,19 @@ interface Design {
|
|
|
921
933
|
*/
|
|
922
934
|
footer?: (false | HeaderFooter);
|
|
923
935
|
/**
|
|
924
|
-
* Default horizontal alignment for title placeholders in resolved layouts.
|
|
936
|
+
* Default horizontal alignment for title placeholders in resolved layouts. Effective value: the slide's design, then the deck's design, then the layout record's design.titleAlignment, then the engine default.
|
|
925
937
|
*/
|
|
926
938
|
titleAlignment?: ("left" | "center" | "right");
|
|
927
939
|
/**
|
|
928
|
-
* Default horizontal alignment for body/content regions in resolved layouts.
|
|
940
|
+
* Default horizontal alignment for body/content regions in resolved layouts. Effective value: the slide's design, then the deck's design, then the layout record's design.contentAlignment, then the engine default. A cover's tag and subtitle follow titleAlignment unless the slide's own design sets contentAlignment.
|
|
929
941
|
*/
|
|
930
942
|
contentAlignment?: ("left" | "center" | "right");
|
|
931
943
|
/**
|
|
932
|
-
* Whether body/content regions are rendered inside a visible card or surface.
|
|
944
|
+
* Whether body/content regions are rendered inside a visible card or surface. Effective value: the slide's design, then the deck's design, then the layout record's design.contentBox, then the engine default.
|
|
933
945
|
*/
|
|
934
946
|
contentBox?: boolean;
|
|
935
947
|
/**
|
|
936
|
-
* Optional slide-level image, separate from content images. It applies to a slide that sets its own design.slideImage, and to slides whose layout
|
|
948
|
+
* Optional slide-level image, separate from content images. It applies to a slide that sets its own design.slideImage, and to slides whose layout record sets design.slideImage or whose root image is the same source as a deck-level value. A root image with the same source becomes the slide image instead of a content item. Blur, shadows, soft edges, background removal and device artwork are not part of the treatment vocabulary; see docs/image-treatments.md.
|
|
937
949
|
*/
|
|
938
950
|
slideImage?: (Asset | {
|
|
939
951
|
/**
|
|
@@ -979,7 +991,7 @@ interface Design {
|
|
|
979
991
|
/**
|
|
980
992
|
* Line color: a hex color, a color-scheme slot or role name, or a 'var:<id>' variable reference.
|
|
981
993
|
*/
|
|
982
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "text" | "textSecondary") | string);
|
|
994
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
983
995
|
/**
|
|
984
996
|
* Line width in reference pixels at a 720-pixel short edge, centered on the frame outline like a native picture line. 0 removes the line.
|
|
985
997
|
*/
|
|
@@ -996,11 +1008,11 @@ interface Design {
|
|
|
996
1008
|
/**
|
|
997
1009
|
* Color at luminance 0.
|
|
998
1010
|
*/
|
|
999
|
-
dark: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "text" | "textSecondary") | string);
|
|
1011
|
+
dark: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1000
1012
|
/**
|
|
1001
1013
|
* Color at luminance 1.
|
|
1002
1014
|
*/
|
|
1003
|
-
light: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "text" | "textSecondary") | string);
|
|
1015
|
+
light: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1004
1016
|
});
|
|
1005
1017
|
/**
|
|
1006
1018
|
* Solid scrim drawn over the image in the frame's shape, beneath headings and content, for example to keep overlaid text readable. Exported as a native shape above the picture.
|
|
@@ -1009,7 +1021,7 @@ interface Design {
|
|
|
1009
1021
|
/**
|
|
1010
1022
|
* Overlay fill color.
|
|
1011
1023
|
*/
|
|
1012
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "text" | "textSecondary") | string);
|
|
1024
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1013
1025
|
/**
|
|
1014
1026
|
* Overlay fill opacity.
|
|
1015
1027
|
*/
|
|
@@ -1025,19 +1037,19 @@ interface Design {
|
|
|
1025
1037
|
};
|
|
1026
1038
|
});
|
|
1027
1039
|
/**
|
|
1028
|
-
* Axis along which parallel body content is arranged. Sets the root arrangement mode of blocks and root payloads when no composition.mode is set on the slide or on its layout record: 'vertical' is column, 'horizontal' is row. Precedence: composition.mode (the slide's own, else the layout record's geometry contract), then
|
|
1040
|
+
* Axis along which parallel body content is arranged. Sets the root arrangement mode of blocks and root payloads when no composition.mode is set on the slide or on its layout record: 'vertical' is column, 'horizontal' is row. Precedence: composition.mode (the slide's own, else the layout record's geometry contract), then the effective value (slide design, then deck design, then the layout record's design.contentDirection), then automatic selection. A layout that carries a composition.mode keeps its grid or direction whatever this value says. Promoted regions (left, top:left, ...) keep their explicit geometry and nested groups keep their own composition.
|
|
1029
1041
|
*/
|
|
1030
1042
|
contentDirection?: ("horizontal" | "vertical");
|
|
1031
1043
|
/**
|
|
1032
|
-
* Where the primary chart sits relative to supporting content. Effective value: slide design, then deck design, then the layout record's
|
|
1044
|
+
* Where the primary chart sits relative to supporting content. Effective value: slide design, then deck design, then the layout record's design.chartPrimary. When the slide has no promoted regions and no composition.mode of its own, and its root nodes mix at least one chart with other content, the first chart becomes a primary track and the other nodes form one synthetic sub-grid: 'left'/'right' is a two-track row and 'top'/'bottom' a two-track column, weighted 3:2 in favor of the chart; explicit root columns and weights are ignored while it applies. 'none' (the default) keeps the ordinary automatic grid with equal weight.
|
|
1033
1045
|
*/
|
|
1034
1046
|
chartPrimary?: ("none" | "top" | "bottom" | "left" | "right");
|
|
1035
1047
|
/**
|
|
1036
|
-
* How
|
|
1048
|
+
* How images fill their allocated region: crop covers the region, fit shows the whole image. Effective value: the slide's design, then the deck's design, then the layout record's design.imageFill, then the engine default.
|
|
1037
1049
|
*/
|
|
1038
1050
|
imageFill?: ("crop" | "fit");
|
|
1039
1051
|
/**
|
|
1040
|
-
* Marker style for items and bullets lists. 'character' (the default) draws the glyph marker. 'image' draws the deck's icon logo (a slide's design.logo, then design.logo, then the primary organization's logo; light variants on dark backgrounds) as a picture bullet: a square of the marker's font size whose bottom sits on the marker baseline, so list geometry does not change. Without a logo the glyph is drawn and the engine reports unresolved-content at this field.
|
|
1052
|
+
* Marker style for items and bullets lists. Effective value: the slide's design, then the deck's design, then the layout record's design.listBullet, then 'character'. 'character' (the default) draws the glyph marker. 'image' draws the deck's icon logo (a slide's design.logo, then design.logo, then the primary organization's logo; light variants on dark backgrounds) as a picture bullet: a square of the marker's font size whose bottom sits on the marker baseline, so list geometry does not change. Without a logo the glyph is drawn and the engine reports unresolved-content at this field.
|
|
1041
1053
|
*/
|
|
1042
1054
|
listBullet?: ("character" | "image");
|
|
1043
1055
|
[k: string]: unknown;
|
|
@@ -1090,11 +1102,11 @@ interface Theme {
|
|
|
1090
1102
|
[k: string]: unknown;
|
|
1091
1103
|
}
|
|
1092
1104
|
/**
|
|
1093
|
-
* Color palette used by the design system. The slot fields (accent1-accent6, dark1, dark2, light1, light2, hyperlink, followedHyperlink) mirror color-scheme.schema.json (https://openpresentation.org/schema/opf-color-scheme/v1) so library records and inline OPF overrides are interchangeable on those fields.
|
|
1105
|
+
* Color palette used by the design system. Every slot and role is a hex color ('#RGB', '#RRGGBB' or '#RRGGBBAA'); a color-scheme name or a 'var:<id>' reference is not valid here, because those resolve through the scheme. The slot fields (accent1-accent6, dark1, dark2, light1, light2, hyperlink, followedHyperlink) mirror color-scheme.schema.json (https://openpresentation.org/schema/opf-color-scheme/v1) so library records and inline OPF overrides are interchangeable on those fields.
|
|
1094
1106
|
*
|
|
1095
1107
|
* Two parallel models are supported and may be mixed:
|
|
1096
1108
|
* - OOXML slots - the 12-slot PowerPoint theme model that round-trips directly to OOXML. Use these for full control over the palette as PowerPoint sees it.
|
|
1097
|
-
* - Abstract roles (primary, secondary, accent, background, surface, text, textSecondary
|
|
1109
|
+
* - Abstract roles (primary, secondary, accent, background, surface, text, textSecondary) - OPF-specific semantic aliases the engine maps onto the OOXML slots. Convenient for inline overrides without thinking in slot numbers; not part of the catalog record schema.
|
|
1098
1110
|
*
|
|
1099
1111
|
* In design.colorScheme, 'id' resolves a colorSchemes catalog record as the base; slot and role overrides on the same object take precedence over the resolved scheme. The string shorthand on design.colorScheme is equivalent to setting only 'id'.
|
|
1100
1112
|
*
|
|
@@ -1149,7 +1161,7 @@ interface ColorScheme {
|
|
|
1149
1161
|
*/
|
|
1150
1162
|
light2?: string;
|
|
1151
1163
|
/**
|
|
1152
|
-
* Hyperlink color (hex). OOXML hlink.
|
|
1164
|
+
* Hyperlink color (hex). OOXML hlink. Link runs with no color of their own are drawn underlined in it, in the preview and in PowerPoint, unless it has under 4.5:1 contrast against the slide background, then in the slide text color.
|
|
1153
1165
|
*/
|
|
1154
1166
|
hyperlink?: string;
|
|
1155
1167
|
/**
|
|
@@ -1169,27 +1181,21 @@ interface ColorScheme {
|
|
|
1169
1181
|
*/
|
|
1170
1182
|
accent?: string;
|
|
1171
1183
|
/**
|
|
1172
|
-
* Abstract role: default slide background color (hex)
|
|
1184
|
+
* Abstract role: default slide background color (hex), used when the design names no single-color background (and for gradient and picture backgrounds). Overrides light1 as that default.
|
|
1173
1185
|
*/
|
|
1174
1186
|
background?: string;
|
|
1175
1187
|
/**
|
|
1176
|
-
* Abstract role: color for elevated surfaces such as cards and panels (hex).
|
|
1188
|
+
* Abstract role: color for elevated surfaces such as cards and panels (hex). Overrides the default of light2 (dark2 on a dark slide).
|
|
1177
1189
|
*/
|
|
1178
1190
|
surface?: string;
|
|
1179
1191
|
/**
|
|
1180
|
-
* Abstract role: primary body text color (hex).
|
|
1192
|
+
* Abstract role: primary body text color (hex). Overrides dark1 on a light slide only; a dark slide always uses light1.
|
|
1181
1193
|
*/
|
|
1182
1194
|
text?: string;
|
|
1183
1195
|
/**
|
|
1184
|
-
* Abstract role: secondary or muted text color used for captions and supporting copy (hex).
|
|
1196
|
+
* Abstract role: secondary or muted text color used for captions and supporting copy (hex). Overrides the default of dark2 (light2 on a dark slide).
|
|
1185
1197
|
*/
|
|
1186
1198
|
textSecondary?: string;
|
|
1187
|
-
/**
|
|
1188
|
-
* Map of custom named colors for advanced or theme-specific use.
|
|
1189
|
-
*/
|
|
1190
|
-
custom?: {
|
|
1191
|
-
[k: string]: string;
|
|
1192
|
-
};
|
|
1193
1199
|
[k: string]: unknown;
|
|
1194
1200
|
}
|
|
1195
1201
|
/**
|
|
@@ -1197,7 +1203,7 @@ interface ColorScheme {
|
|
|
1197
1203
|
*
|
|
1198
1204
|
* Two parallel models are supported and may be mixed:
|
|
1199
1205
|
* - OOXML pairs (major, minor) - heading and body family names that round-trip directly to PowerPoint majorFont/minorFont entries.
|
|
1200
|
-
* - Abstract roles (heading, body, accent, code) - OPF-specific
|
|
1206
|
+
* - 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.
|
|
1201
1207
|
*
|
|
1202
1208
|
* In design.fontScheme, 'id' resolves a fontSchemes catalog record as the base; pair and role overrides on the same object take precedence over the resolved scheme. The string shorthand on design.fontScheme is equivalent to setting only 'id'.
|
|
1203
1209
|
*
|
|
@@ -1250,105 +1256,29 @@ interface FontScheme {
|
|
|
1250
1256
|
*/
|
|
1251
1257
|
type?: ("sans-serif" | "serif" | "monospace");
|
|
1252
1258
|
/**
|
|
1253
|
-
* Target application this font pairing is intended for.
|
|
1254
|
-
*/
|
|
1255
|
-
app?: ("PowerPoint" | "Google Slides");
|
|
1256
|
-
/**
|
|
1257
|
-
* OOXML font-language family this scheme is intended for: 'latin' for Latin-script content, 'ea' for East Asian scripts, 'cs' for Complex Scripts. As the design font scheme, an 'ea' or 'cs' scheme also fills that script slot with its own major/minor families when its languages list is empty or names the presentation language.
|
|
1258
|
-
*/
|
|
1259
|
-
languageFamily?: ("latin" | "ea" | "cs");
|
|
1260
|
-
heading?: Font;
|
|
1261
|
-
body?: Font1;
|
|
1262
|
-
accent?: Font2;
|
|
1263
|
-
code?: Font3;
|
|
1264
|
-
[k: string]: unknown;
|
|
1265
|
-
}
|
|
1266
|
-
/**
|
|
1267
|
-
* Abstract role: font used for slide titles and headings. Maps onto the OOXML major slot when serializing.
|
|
1268
|
-
*/
|
|
1269
|
-
interface Font {
|
|
1270
|
-
/**
|
|
1271
|
-
* Font family name.
|
|
1272
|
-
*/
|
|
1273
|
-
family: string;
|
|
1274
|
-
/**
|
|
1275
|
-
* Numeric font weight (e.g., 400 for regular, 700 for bold).
|
|
1276
|
-
*/
|
|
1277
|
-
weight?: number;
|
|
1278
|
-
/**
|
|
1279
|
-
* Font style.
|
|
1280
|
-
*/
|
|
1281
|
-
style?: ("normal" | "italic");
|
|
1282
|
-
/**
|
|
1283
|
-
* Letter spacing (tracking) in ems.
|
|
1284
|
-
*/
|
|
1285
|
-
letterSpacing?: number;
|
|
1286
|
-
[k: string]: unknown;
|
|
1287
|
-
}
|
|
1288
|
-
/**
|
|
1289
|
-
* Abstract role: font used for body copy. Maps onto the OOXML minor slot when serializing.
|
|
1290
|
-
*/
|
|
1291
|
-
interface Font1 {
|
|
1292
|
-
/**
|
|
1293
|
-
* Font family name.
|
|
1294
|
-
*/
|
|
1295
|
-
family: string;
|
|
1296
|
-
/**
|
|
1297
|
-
* Numeric font weight (e.g., 400 for regular, 700 for bold).
|
|
1298
|
-
*/
|
|
1299
|
-
weight?: number;
|
|
1300
|
-
/**
|
|
1301
|
-
* Font style.
|
|
1302
|
-
*/
|
|
1303
|
-
style?: ("normal" | "italic");
|
|
1304
|
-
/**
|
|
1305
|
-
* Letter spacing (tracking) in ems.
|
|
1259
|
+
* Target application this font pairing is intended for. Metadata for pickers and catalog filters: no engine changes its output by it.
|
|
1306
1260
|
*/
|
|
1307
|
-
|
|
1308
|
-
[k: string]: unknown;
|
|
1309
|
-
}
|
|
1310
|
-
/**
|
|
1311
|
-
* Abstract role: font used for accent text. When set, the slide tag (eyebrow) and the quote body use this family instead of the body and heading families; nothing else changes. resolveFontFamilies() returns it as accent only when the scheme defines it. No direct OOXML slot: PPTX export writes it on those runs, and the theme fonts stay major/minor.
|
|
1312
|
-
*/
|
|
1313
|
-
interface Font2 {
|
|
1261
|
+
app?: ("powerpoint" | "google-slides");
|
|
1314
1262
|
/**
|
|
1315
|
-
* Font family
|
|
1263
|
+
* Font-language family this scheme is intended for: 'latin' for Latin-script content, 'ea' (or 'eastAsian', the same value) for East Asian scripts, 'cs' (or 'complexScript', the same value) for Complex Scripts. The long names match the 'eastAsian' and 'complexScript' slot keys; the short names match the OOXML a:ea and a:cs elements; core reads both spellings as one value. As the design font scheme, an 'ea'/'eastAsian' or 'cs'/'complexScript' scheme also fills that script slot with its own major/minor families when its languages list is empty or names the presentation language.
|
|
1316
1264
|
*/
|
|
1317
|
-
|
|
1265
|
+
languageFamily?: ("latin" | "ea" | "cs" | "eastAsian" | "complexScript");
|
|
1318
1266
|
/**
|
|
1319
|
-
*
|
|
1267
|
+
* Abstract role: font family name used for slide titles and headings. Maps onto the OOXML major slot when serializing.
|
|
1320
1268
|
*/
|
|
1321
|
-
|
|
1269
|
+
heading?: string;
|
|
1322
1270
|
/**
|
|
1323
|
-
*
|
|
1271
|
+
* Abstract role: font family name used for body copy. Maps onto the OOXML minor slot when serializing.
|
|
1324
1272
|
*/
|
|
1325
|
-
|
|
1273
|
+
body?: string;
|
|
1326
1274
|
/**
|
|
1327
|
-
*
|
|
1275
|
+
* Abstract role: font family name used for accent text. When set, the slide tag (eyebrow) and the quote body use this family instead of the body and heading families; nothing else changes. resolveFontFamilies() returns it as accent only when the scheme defines it. No direct OOXML slot: PPTX export writes it on those runs, and the theme fonts stay major/minor.
|
|
1328
1276
|
*/
|
|
1329
|
-
|
|
1330
|
-
[k: string]: unknown;
|
|
1331
|
-
}
|
|
1332
|
-
/**
|
|
1333
|
-
* Abstract role: monospaced font used for code blocks and inline code. No direct OOXML slot. Resolution: this override, then the resolved catalog record's 'code' (for example Consolas for the consolas scheme), then the engine fallback Roboto Mono. Heading and body families are never used as the code fallback.
|
|
1334
|
-
*/
|
|
1335
|
-
interface Font3 {
|
|
1336
|
-
/**
|
|
1337
|
-
* Font family name.
|
|
1338
|
-
*/
|
|
1339
|
-
family: string;
|
|
1340
|
-
/**
|
|
1341
|
-
* Numeric font weight (e.g., 400 for regular, 700 for bold).
|
|
1342
|
-
*/
|
|
1343
|
-
weight?: number;
|
|
1344
|
-
/**
|
|
1345
|
-
* Font style.
|
|
1346
|
-
*/
|
|
1347
|
-
style?: ("normal" | "italic");
|
|
1277
|
+
accent?: string;
|
|
1348
1278
|
/**
|
|
1349
|
-
*
|
|
1279
|
+
* Abstract role: monospaced font family name used for code blocks and for inline code runs (TextRun.code). No direct OOXML slot. Resolution: this override, then the resolved catalog record's 'code' (for example Consolas for the consolas scheme), then the engine fallback Roboto Mono. Heading and body families are never used as the code fallback.
|
|
1350
1280
|
*/
|
|
1351
|
-
|
|
1281
|
+
code?: string;
|
|
1352
1282
|
[k: string]: unknown;
|
|
1353
1283
|
}
|
|
1354
1284
|
/**
|
|
@@ -1379,7 +1309,7 @@ interface SolidBackground {
|
|
|
1379
1309
|
/**
|
|
1380
1310
|
* Fixed solid fill color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef, resolved against the effective color scheme and the deck variables). Use { type: 'theme', slot: ... } for PowerPoint's four theme-controlled background choices.
|
|
1381
1311
|
*/
|
|
1382
|
-
color: string;
|
|
1312
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1383
1313
|
/**
|
|
1384
1314
|
* Background opacity from 0 (fully transparent) to 1 (fully opaque).
|
|
1385
1315
|
*/
|
|
@@ -1406,21 +1336,47 @@ interface GradientBackground {
|
|
|
1406
1336
|
*/
|
|
1407
1337
|
angle?: number;
|
|
1408
1338
|
/**
|
|
1409
|
-
* Ordered list of color stops along the gradient.
|
|
1339
|
+
* Ordered list of color stops along the gradient. A gradient needs at least two stops.
|
|
1340
|
+
*
|
|
1341
|
+
* @minItems 2
|
|
1410
1342
|
*
|
|
1411
1343
|
* Items: Color stop along the gradient.
|
|
1412
1344
|
*/
|
|
1413
|
-
stops?:
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1345
|
+
stops?: [
|
|
1346
|
+
{
|
|
1347
|
+
/**
|
|
1348
|
+
* Stop color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).
|
|
1349
|
+
*/
|
|
1350
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1351
|
+
/**
|
|
1352
|
+
* Stop position along the gradient, from 0 (start) to 1 (end).
|
|
1353
|
+
*/
|
|
1354
|
+
position: number;
|
|
1355
|
+
[k: string]: unknown;
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
/**
|
|
1359
|
+
* Stop color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).
|
|
1360
|
+
*/
|
|
1361
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1362
|
+
/**
|
|
1363
|
+
* Stop position along the gradient, from 0 (start) to 1 (end).
|
|
1364
|
+
*/
|
|
1365
|
+
position: number;
|
|
1366
|
+
[k: string]: unknown;
|
|
1367
|
+
},
|
|
1368
|
+
...({
|
|
1369
|
+
/**
|
|
1370
|
+
* Stop color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).
|
|
1371
|
+
*/
|
|
1372
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1373
|
+
/**
|
|
1374
|
+
* Stop position along the gradient, from 0 (start) to 1 (end).
|
|
1375
|
+
*/
|
|
1376
|
+
position: number;
|
|
1377
|
+
[k: string]: unknown;
|
|
1378
|
+
})[]
|
|
1379
|
+
];
|
|
1424
1380
|
[k: string]: unknown;
|
|
1425
1381
|
};
|
|
1426
1382
|
/**
|
|
@@ -1482,11 +1438,11 @@ interface PatternBackground {
|
|
|
1482
1438
|
/**
|
|
1483
1439
|
* Foreground color for the pattern: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).
|
|
1484
1440
|
*/
|
|
1485
|
-
foregroundColor?: string;
|
|
1441
|
+
foregroundColor?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1486
1442
|
/**
|
|
1487
1443
|
* Background color behind the pattern: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).
|
|
1488
1444
|
*/
|
|
1489
|
-
backgroundColor?: string;
|
|
1445
|
+
backgroundColor?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1490
1446
|
[k: string]: unknown;
|
|
1491
1447
|
};
|
|
1492
1448
|
/**
|
|
@@ -1521,7 +1477,7 @@ interface Dimensions {
|
|
|
1521
1477
|
*/
|
|
1522
1478
|
interface LogoSet {
|
|
1523
1479
|
/**
|
|
1524
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
1480
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
1525
1481
|
*/
|
|
1526
1482
|
default?: (string | {
|
|
1527
1483
|
/**
|
|
@@ -1544,13 +1500,9 @@ interface LogoSet {
|
|
|
1544
1500
|
* Optional MIME media type when it cannot be inferred from src.
|
|
1545
1501
|
*/
|
|
1546
1502
|
mediaType?: string;
|
|
1547
|
-
/**
|
|
1548
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1549
|
-
*/
|
|
1550
|
-
format?: string;
|
|
1551
1503
|
});
|
|
1552
1504
|
/**
|
|
1553
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
1505
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
1554
1506
|
*/
|
|
1555
1507
|
light?: (string | {
|
|
1556
1508
|
/**
|
|
@@ -1573,13 +1525,9 @@ interface LogoSet {
|
|
|
1573
1525
|
* Optional MIME media type when it cannot be inferred from src.
|
|
1574
1526
|
*/
|
|
1575
1527
|
mediaType?: string;
|
|
1576
|
-
/**
|
|
1577
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1578
|
-
*/
|
|
1579
|
-
format?: string;
|
|
1580
1528
|
});
|
|
1581
1529
|
/**
|
|
1582
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
1530
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
1583
1531
|
*/
|
|
1584
1532
|
dark?: (string | {
|
|
1585
1533
|
/**
|
|
@@ -1602,13 +1550,9 @@ interface LogoSet {
|
|
|
1602
1550
|
* Optional MIME media type when it cannot be inferred from src.
|
|
1603
1551
|
*/
|
|
1604
1552
|
mediaType?: string;
|
|
1605
|
-
/**
|
|
1606
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1607
|
-
*/
|
|
1608
|
-
format?: string;
|
|
1609
1553
|
});
|
|
1610
1554
|
/**
|
|
1611
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
1555
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
1612
1556
|
*/
|
|
1613
1557
|
stacked?: (string | {
|
|
1614
1558
|
/**
|
|
@@ -1631,13 +1575,9 @@ interface LogoSet {
|
|
|
1631
1575
|
* Optional MIME media type when it cannot be inferred from src.
|
|
1632
1576
|
*/
|
|
1633
1577
|
mediaType?: string;
|
|
1634
|
-
/**
|
|
1635
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1636
|
-
*/
|
|
1637
|
-
format?: string;
|
|
1638
1578
|
});
|
|
1639
1579
|
/**
|
|
1640
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
1580
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
1641
1581
|
*/
|
|
1642
1582
|
stackedLight?: (string | {
|
|
1643
1583
|
/**
|
|
@@ -1660,13 +1600,9 @@ interface LogoSet {
|
|
|
1660
1600
|
* Optional MIME media type when it cannot be inferred from src.
|
|
1661
1601
|
*/
|
|
1662
1602
|
mediaType?: string;
|
|
1663
|
-
/**
|
|
1664
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1665
|
-
*/
|
|
1666
|
-
format?: string;
|
|
1667
1603
|
});
|
|
1668
1604
|
/**
|
|
1669
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
1605
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
1670
1606
|
*/
|
|
1671
1607
|
stackedDark?: (string | {
|
|
1672
1608
|
/**
|
|
@@ -1689,13 +1625,9 @@ interface LogoSet {
|
|
|
1689
1625
|
* Optional MIME media type when it cannot be inferred from src.
|
|
1690
1626
|
*/
|
|
1691
1627
|
mediaType?: string;
|
|
1692
|
-
/**
|
|
1693
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1694
|
-
*/
|
|
1695
|
-
format?: string;
|
|
1696
1628
|
});
|
|
1697
1629
|
/**
|
|
1698
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
1630
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
1699
1631
|
*/
|
|
1700
1632
|
icon?: (string | {
|
|
1701
1633
|
/**
|
|
@@ -1718,13 +1650,9 @@ interface LogoSet {
|
|
|
1718
1650
|
* Optional MIME media type when it cannot be inferred from src.
|
|
1719
1651
|
*/
|
|
1720
1652
|
mediaType?: string;
|
|
1721
|
-
/**
|
|
1722
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1723
|
-
*/
|
|
1724
|
-
format?: string;
|
|
1725
1653
|
});
|
|
1726
1654
|
/**
|
|
1727
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
1655
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
1728
1656
|
*/
|
|
1729
1657
|
iconLight?: (string | {
|
|
1730
1658
|
/**
|
|
@@ -1747,13 +1675,9 @@ interface LogoSet {
|
|
|
1747
1675
|
* Optional MIME media type when it cannot be inferred from src.
|
|
1748
1676
|
*/
|
|
1749
1677
|
mediaType?: string;
|
|
1750
|
-
/**
|
|
1751
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1752
|
-
*/
|
|
1753
|
-
format?: string;
|
|
1754
1678
|
});
|
|
1755
1679
|
/**
|
|
1756
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
1680
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
1757
1681
|
*/
|
|
1758
1682
|
iconDark?: (string | {
|
|
1759
1683
|
/**
|
|
@@ -1776,13 +1700,9 @@ interface LogoSet {
|
|
|
1776
1700
|
* Optional MIME media type when it cannot be inferred from src.
|
|
1777
1701
|
*/
|
|
1778
1702
|
mediaType?: string;
|
|
1779
|
-
/**
|
|
1780
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1781
|
-
*/
|
|
1782
|
-
format?: string;
|
|
1783
1703
|
});
|
|
1784
1704
|
/**
|
|
1785
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
1705
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
1786
1706
|
*/
|
|
1787
1707
|
wordmark?: (string | {
|
|
1788
1708
|
/**
|
|
@@ -1805,13 +1725,9 @@ interface LogoSet {
|
|
|
1805
1725
|
* Optional MIME media type when it cannot be inferred from src.
|
|
1806
1726
|
*/
|
|
1807
1727
|
mediaType?: string;
|
|
1808
|
-
/**
|
|
1809
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1810
|
-
*/
|
|
1811
|
-
format?: string;
|
|
1812
1728
|
});
|
|
1813
1729
|
/**
|
|
1814
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
1730
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
1815
1731
|
*/
|
|
1816
1732
|
wordmarkLight?: (string | {
|
|
1817
1733
|
/**
|
|
@@ -1834,13 +1750,9 @@ interface LogoSet {
|
|
|
1834
1750
|
* Optional MIME media type when it cannot be inferred from src.
|
|
1835
1751
|
*/
|
|
1836
1752
|
mediaType?: string;
|
|
1837
|
-
/**
|
|
1838
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1839
|
-
*/
|
|
1840
|
-
format?: string;
|
|
1841
1753
|
});
|
|
1842
1754
|
/**
|
|
1843
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
1755
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
1844
1756
|
*/
|
|
1845
1757
|
wordmarkDark?: (string | {
|
|
1846
1758
|
/**
|
|
@@ -1863,28 +1775,8 @@ interface LogoSet {
|
|
|
1863
1775
|
* Optional MIME media type when it cannot be inferred from src.
|
|
1864
1776
|
*/
|
|
1865
1777
|
mediaType?: string;
|
|
1866
|
-
/**
|
|
1867
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1868
|
-
*/
|
|
1869
|
-
format?: string;
|
|
1870
1778
|
});
|
|
1871
1779
|
}
|
|
1872
|
-
/**
|
|
1873
|
-
* Decorative watermark image and rendering options. Use design.watermark = false to disable an inherited watermark.
|
|
1874
|
-
*
|
|
1875
|
-
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
1876
|
-
* via the `definition` "Watermark".
|
|
1877
|
-
*/
|
|
1878
|
-
interface Watermark {
|
|
1879
|
-
/**
|
|
1880
|
-
* Source for the watermark image.
|
|
1881
|
-
*/
|
|
1882
|
-
src?: string;
|
|
1883
|
-
/**
|
|
1884
|
-
* Watermark opacity from 0 (fully transparent) to 1 (fully opaque).
|
|
1885
|
-
*/
|
|
1886
|
-
opacity: number;
|
|
1887
|
-
}
|
|
1888
1780
|
/**
|
|
1889
1781
|
* Repeated header or footer content split into left, center, and right zones. Header/footer content is slide furniture, separate from the main slide content payloads.
|
|
1890
1782
|
*
|
|
@@ -1910,7 +1802,7 @@ interface HeaderFooterItem {
|
|
|
1910
1802
|
*/
|
|
1911
1803
|
text?: string;
|
|
1912
1804
|
/**
|
|
1913
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
1805
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
1914
1806
|
*/
|
|
1915
1807
|
image?: (string | {
|
|
1916
1808
|
/**
|
|
@@ -1933,10 +1825,6 @@ interface HeaderFooterItem {
|
|
|
1933
1825
|
* Optional MIME media type when it cannot be inferred from src.
|
|
1934
1826
|
*/
|
|
1935
1827
|
mediaType?: string;
|
|
1936
|
-
/**
|
|
1937
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1938
|
-
*/
|
|
1939
|
-
format?: string;
|
|
1940
1828
|
});
|
|
1941
1829
|
/**
|
|
1942
1830
|
* Whether to render the current slide number in this zone. PPTX export writes a native slide-number field when its value fits within one accepted text line; a value split across lines exports as static text with a diagnostic.
|
|
@@ -1955,9 +1843,13 @@ interface HeaderFooterItem {
|
|
|
1955
1843
|
*/
|
|
1956
1844
|
dateFormat?: string;
|
|
1957
1845
|
/**
|
|
1958
|
-
* Whether to render the primary organization name from organization.
|
|
1846
|
+
* Whether to render the primary organization's name from organization (role 'primary', else the first organization).
|
|
1959
1847
|
*/
|
|
1960
1848
|
organization?: boolean;
|
|
1849
|
+
/**
|
|
1850
|
+
* Whether to render the primary (first) speaker's name and title from speaker, joined as 'Ada Lovelace, CTO' (just the name when the speaker has no title). It is generated text: without a named speaker the engine reports unresolved-content at this field. PPTX export writes it as static text and import restores the flag from the file's furniture provenance.
|
|
1851
|
+
*/
|
|
1852
|
+
speaker?: boolean;
|
|
1961
1853
|
/**
|
|
1962
1854
|
* Whether to render the current slide section label.
|
|
1963
1855
|
*/
|
|
@@ -1981,7 +1873,7 @@ interface HeaderFooterItem1 {
|
|
|
1981
1873
|
*/
|
|
1982
1874
|
text?: string;
|
|
1983
1875
|
/**
|
|
1984
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
1876
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
1985
1877
|
*/
|
|
1986
1878
|
image?: (string | {
|
|
1987
1879
|
/**
|
|
@@ -2004,10 +1896,6 @@ interface HeaderFooterItem1 {
|
|
|
2004
1896
|
* Optional MIME media type when it cannot be inferred from src.
|
|
2005
1897
|
*/
|
|
2006
1898
|
mediaType?: string;
|
|
2007
|
-
/**
|
|
2008
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
2009
|
-
*/
|
|
2010
|
-
format?: string;
|
|
2011
1899
|
});
|
|
2012
1900
|
/**
|
|
2013
1901
|
* Whether to render the current slide number in this zone. PPTX export writes a native slide-number field when its value fits within one accepted text line; a value split across lines exports as static text with a diagnostic.
|
|
@@ -2026,9 +1914,13 @@ interface HeaderFooterItem1 {
|
|
|
2026
1914
|
*/
|
|
2027
1915
|
dateFormat?: string;
|
|
2028
1916
|
/**
|
|
2029
|
-
* Whether to render the primary organization name from organization.
|
|
1917
|
+
* Whether to render the primary organization's name from organization (role 'primary', else the first organization).
|
|
2030
1918
|
*/
|
|
2031
1919
|
organization?: boolean;
|
|
1920
|
+
/**
|
|
1921
|
+
* Whether to render the primary (first) speaker's name and title from speaker, joined as 'Ada Lovelace, CTO' (just the name when the speaker has no title). It is generated text: without a named speaker the engine reports unresolved-content at this field. PPTX export writes it as static text and import restores the flag from the file's furniture provenance.
|
|
1922
|
+
*/
|
|
1923
|
+
speaker?: boolean;
|
|
2032
1924
|
/**
|
|
2033
1925
|
* Whether to render the current slide section label.
|
|
2034
1926
|
*/
|
|
@@ -2052,7 +1944,7 @@ interface HeaderFooterItem2 {
|
|
|
2052
1944
|
*/
|
|
2053
1945
|
text?: string;
|
|
2054
1946
|
/**
|
|
2055
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
1947
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
2056
1948
|
*/
|
|
2057
1949
|
image?: (string | {
|
|
2058
1950
|
/**
|
|
@@ -2075,10 +1967,6 @@ interface HeaderFooterItem2 {
|
|
|
2075
1967
|
* Optional MIME media type when it cannot be inferred from src.
|
|
2076
1968
|
*/
|
|
2077
1969
|
mediaType?: string;
|
|
2078
|
-
/**
|
|
2079
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
2080
|
-
*/
|
|
2081
|
-
format?: string;
|
|
2082
1970
|
});
|
|
2083
1971
|
/**
|
|
2084
1972
|
* Whether to render the current slide number in this zone. PPTX export writes a native slide-number field when its value fits within one accepted text line; a value split across lines exports as static text with a diagnostic.
|
|
@@ -2097,9 +1985,13 @@ interface HeaderFooterItem2 {
|
|
|
2097
1985
|
*/
|
|
2098
1986
|
dateFormat?: string;
|
|
2099
1987
|
/**
|
|
2100
|
-
* Whether to render the primary organization name from organization.
|
|
1988
|
+
* Whether to render the primary organization's name from organization (role 'primary', else the first organization).
|
|
2101
1989
|
*/
|
|
2102
1990
|
organization?: boolean;
|
|
1991
|
+
/**
|
|
1992
|
+
* Whether to render the primary (first) speaker's name and title from speaker, joined as 'Ada Lovelace, CTO' (just the name when the speaker has no title). It is generated text: without a named speaker the engine reports unresolved-content at this field. PPTX export writes it as static text and import restores the flag from the file's furniture provenance.
|
|
1993
|
+
*/
|
|
1994
|
+
speaker?: boolean;
|
|
2103
1995
|
/**
|
|
2104
1996
|
* Whether to render the current slide section label.
|
|
2105
1997
|
*/
|
|
@@ -2111,7 +2003,7 @@ interface HeaderFooterItem2 {
|
|
|
2111
2003
|
[k: string]: unknown;
|
|
2112
2004
|
}
|
|
2113
2005
|
/**
|
|
2114
|
-
* Optional named variables: deck colors referenced as 'var:<id>' (the original use), and typed content variables (text, number, date, image, url, list) referenced inline as '{{<id>}}' or whole as 'var:<id>'. Variables are what makes a deck a fillable template when combined with 'template': true. Color variables complement the color scheme: scheme slots and roles stay the primary vocabulary; variables cover deck-specific named colors that have no scheme slot.
|
|
2006
|
+
* Optional named variables: deck colors referenced as 'var:<id>' (the original use), and typed content variables (text, number, date, image, url, list) referenced inline as '{{<id>}}' or whole as 'var:<id>'. Variables are what makes a deck a fillable template when combined with 'template': true. Color variables complement the color scheme: scheme slots and roles stay the primary vocabulary; variables cover deck-specific named colors that have no scheme slot. Built-in variables ('{{speaker.name}}', 'var:organization.logo', 'deck.name', ...) need no declaration; see Variables.
|
|
2115
2007
|
*/
|
|
2116
2008
|
interface Variables {
|
|
2117
2009
|
[k: string]: Variable;
|
|
@@ -2264,7 +2156,7 @@ interface ImageVariable {
|
|
|
2264
2156
|
*/
|
|
2265
2157
|
type: "image";
|
|
2266
2158
|
/**
|
|
2267
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
2159
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
2268
2160
|
*/
|
|
2269
2161
|
value?: (string | {
|
|
2270
2162
|
/**
|
|
@@ -2287,10 +2179,6 @@ interface ImageVariable {
|
|
|
2287
2179
|
* Optional MIME media type when it cannot be inferred from src.
|
|
2288
2180
|
*/
|
|
2289
2181
|
mediaType?: string;
|
|
2290
|
-
/**
|
|
2291
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
2292
|
-
*/
|
|
2293
|
-
format?: string;
|
|
2294
2182
|
});
|
|
2295
2183
|
/**
|
|
2296
2184
|
* Whether the variable must be filled. Defaults to true: a variable with no 'value' is unfilled, and an unfilled required variable is an error in a normal deck and expected in a template. Set false for an optional slot: an unfilled optional variable resolves to empty text (inline tokens) or the field that references it is omitted.
|
|
@@ -2305,7 +2193,7 @@ interface ImageVariable {
|
|
|
2305
2193
|
*/
|
|
2306
2194
|
description?: string;
|
|
2307
2195
|
/**
|
|
2308
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
2196
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
2309
2197
|
*/
|
|
2310
2198
|
example?: (string | {
|
|
2311
2199
|
/**
|
|
@@ -2328,10 +2216,6 @@ interface ImageVariable {
|
|
|
2328
2216
|
* Optional MIME media type when it cannot be inferred from src.
|
|
2329
2217
|
*/
|
|
2330
2218
|
mediaType?: string;
|
|
2331
|
-
/**
|
|
2332
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
2333
|
-
*/
|
|
2334
|
-
format?: string;
|
|
2335
2219
|
});
|
|
2336
2220
|
}
|
|
2337
2221
|
/**
|
|
@@ -2398,118 +2282,6 @@ interface ListVariable {
|
|
|
2398
2282
|
*/
|
|
2399
2283
|
example?: string[];
|
|
2400
2284
|
}
|
|
2401
|
-
/**
|
|
2402
|
-
* Structured storyline used by AI to shape generated content. Mirrors the OPF Narrative Template record at https://openpresentation.org/schema/opf-narrative/v1 (sans '$schema'), so a library record and an inline narrative are interchangeable.
|
|
2403
|
-
*
|
|
2404
|
-
* Narrative declares the deck's intended story arc; slides may opt into beats via Slide.beat. The narrative does not constrain slide structure — validators warn on drift (orphan slides, unused beats) but never error. Slides are the source of truth; narrative is intent that travels with the deck.
|
|
2405
|
-
*
|
|
2406
|
-
* When 'id' matches a record in the resolved 'narratives' catalog, the inline fields override matching fields on the catalog record (beats merge by beat 'id'). When 'id' doesn't match, this object defines a fully custom inline narrative.
|
|
2407
|
-
*
|
|
2408
|
-
* Deck-level concerns that aren't part of the storyline (audience, tone, takeaway, duration) live as siblings on the presentation root rather than inside this object.
|
|
2409
|
-
*
|
|
2410
|
-
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
2411
|
-
* via the `definition` "Narrative".
|
|
2412
|
-
*/
|
|
2413
|
-
interface Narrative {
|
|
2414
|
-
/**
|
|
2415
|
-
* Stable slug identifying this narrative. When it matches a record in the resolved 'narratives' catalog, the catalog record's beats and metadata seed this narrative; inline fields override per-key. When it doesn't match, this is a fully custom inline narrative. Lowercase kebab-case.
|
|
2416
|
-
*/
|
|
2417
|
-
id?: string;
|
|
2418
|
-
/**
|
|
2419
|
-
* Human-readable narrative name.
|
|
2420
|
-
*/
|
|
2421
|
-
name?: string;
|
|
2422
|
-
/**
|
|
2423
|
-
* One-sentence description of when and why to use this narrative.
|
|
2424
|
-
*/
|
|
2425
|
-
summary?: string;
|
|
2426
|
-
/**
|
|
2427
|
-
* Longer prose describing the narrative arc and ideal use cases. Used by AI-driven generation to seed deck-level direction.
|
|
2428
|
-
*/
|
|
2429
|
-
description?: string;
|
|
2430
|
-
/**
|
|
2431
|
-
* Audiences this narrative works well for. Free-form strings or 'audiences' catalog ids.
|
|
2432
|
-
*/
|
|
2433
|
-
audienceFit?: string[];
|
|
2434
|
-
/**
|
|
2435
|
-
* Typical talk-length window this narrative suits. Compared by validators against duration.
|
|
2436
|
-
*/
|
|
2437
|
-
durationRange?: {
|
|
2438
|
-
minMinutes?: number;
|
|
2439
|
-
maxMinutes?: number;
|
|
2440
|
-
[k: string]: unknown;
|
|
2441
|
-
};
|
|
2442
|
-
/**
|
|
2443
|
-
* Free-form labels for filtering and search.
|
|
2444
|
-
*/
|
|
2445
|
-
tags?: string[];
|
|
2446
|
-
/**
|
|
2447
|
-
* Visual previews of the narrative, used by picker UIs and inline rendering. All sub-fields are optional.
|
|
2448
|
-
*/
|
|
2449
|
-
preview?: {
|
|
2450
|
-
/**
|
|
2451
|
-
* Main preview image (PNG/JPG).
|
|
2452
|
-
*/
|
|
2453
|
-
src?: string;
|
|
2454
|
-
/**
|
|
2455
|
-
* Smaller thumbnail preview for dense grid views.
|
|
2456
|
-
*/
|
|
2457
|
-
thumbnailSrc?: string;
|
|
2458
|
-
/**
|
|
2459
|
-
* SVG / vector preview for crisp scaling at any size.
|
|
2460
|
-
*/
|
|
2461
|
-
vectorSrc?: string;
|
|
2462
|
-
[k: string]: unknown;
|
|
2463
|
-
};
|
|
2464
|
-
/**
|
|
2465
|
-
* Ordered list of beats that make up the narrative arc. When 'id' matches a catalog record, beats here override or extend matching catalog beats by their own 'id'. Beat IDs must be unique within the narrative.
|
|
2466
|
-
*/
|
|
2467
|
-
beats?: NarrativeBeat[];
|
|
2468
|
-
[k: string]: unknown;
|
|
2469
|
-
}
|
|
2470
|
-
/**
|
|
2471
|
-
* A single narrative beat — a labeled segment of the story arc with a specific dramatic purpose (e.g. 'hook', 'problem', 'evidence', 'ask'). Slides reference beats via Slide.beat. Beats may also carry slide-blueprint hints (slideType, layoutHint, thoughtCues, instructions) that guide the assigned slide.
|
|
2472
|
-
*
|
|
2473
|
-
* Mirrors the Beat definition in narrative.schema.json (https://openpresentation.org/schema/opf-narrative/v1) so library entries and inline OPF beats are interchangeable.
|
|
2474
|
-
*
|
|
2475
|
-
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
2476
|
-
* via the `definition` "NarrativeBeat".
|
|
2477
|
-
*/
|
|
2478
|
-
interface NarrativeBeat {
|
|
2479
|
-
/**
|
|
2480
|
-
* Stable slug used by Slide.beat to reference this beat. Lowercase kebab-case.
|
|
2481
|
-
*/
|
|
2482
|
-
id: string;
|
|
2483
|
-
/**
|
|
2484
|
-
* Human-readable beat name.
|
|
2485
|
-
*/
|
|
2486
|
-
name: string;
|
|
2487
|
-
/**
|
|
2488
|
-
* Curator-written prose that explains what this beat should accomplish.
|
|
2489
|
-
*/
|
|
2490
|
-
description?: string;
|
|
2491
|
-
/**
|
|
2492
|
-
* Short author-facing instruction for the beat — typically one phrase. Complements 'description' with a concise directive.
|
|
2493
|
-
*/
|
|
2494
|
-
instructions?: string;
|
|
2495
|
-
/**
|
|
2496
|
-
* Optional explicit slide count for this beat. Defaults to 1 when omitted; values >1 are reserved for beats that intentionally span multiple slides. Prefer decomposing a heavy beat into multiple beats over setting a high slideCount. The validator emits a warning if the deck's actual count differs significantly.
|
|
2497
|
-
*/
|
|
2498
|
-
slideCount?: number;
|
|
2499
|
-
/**
|
|
2500
|
-
* Default content kind for the beat's slide. Mirrors ContentPayload.type and helps engines choose a sensible layout when only the beat is specified.
|
|
2501
|
-
*/
|
|
2502
|
-
slideType?: ("text" | "list" | "image" | "chart" | "table" | "video" | "code" | "metric" | "quote" | "timeline");
|
|
2503
|
-
/**
|
|
2504
|
-
* Suggested layout id for the beat's opening slide. Resolves the same way as Slide.layout — against catalogs.layouts and the default catalog at https://www.pptx.gallery/layouts.
|
|
2505
|
-
*/
|
|
2506
|
-
layoutHint?: string;
|
|
2507
|
-
/**
|
|
2508
|
-
* Optional speaker or thinking cues attached to the beat. Surfaced in presenter notes.
|
|
2509
|
-
*/
|
|
2510
|
-
thoughtCues?: string[];
|
|
2511
|
-
[k: string]: unknown;
|
|
2512
|
-
}
|
|
2513
2285
|
/**
|
|
2514
2286
|
* A single slide. Content can be authored as a full-slide root payload, or inside promoted named region keys such as 'left', 'center+right', and 'top:left'.
|
|
2515
2287
|
*
|
|
@@ -2526,27 +2298,27 @@ interface Slide {
|
|
|
2526
2298
|
*/
|
|
2527
2299
|
type?: ("text" | "list" | "image" | "chart" | "table" | "video" | "code" | "metric" | "quote" | "timeline");
|
|
2528
2300
|
/**
|
|
2529
|
-
* Optional reference to one or more narrative
|
|
2301
|
+
* Optional reference to one or more beats of the deck's narrative (each value is the id of a beat in the narrative record that the root 'narrative' resolves to). A single string declares the slide's primary beat; an array declares that one slide covers multiple beats. Declares the slide's role in the story arc; does not constrain ordering or structure. Core validate warns about a beat id the resolved narrative does not define, and reports a beat that no slide references. Slides without a beat are valid; multiple slides may share a beat.
|
|
2530
2302
|
*/
|
|
2531
2303
|
beat?: (string | string[]);
|
|
2532
2304
|
/**
|
|
2533
|
-
* Optional
|
|
2305
|
+
* Optional. Resolves to the 'id' of a 'layouts' catalog record. When omitted, or when it names an id that no inline record, host catalog or default catalog defines, the slide is composed with no layout record: engines arrange title, subtitle, tag and content automatically, a slide with no body payload is a cover (vertically centered), and design hints apply. A layout never changes what a slide contains. An unresolved id is an `unresolved-layout` diagnostic and a `catalog-reference` warning, never an error. Engines must not substitute a different layout for an omitted one. Accepts a bare id (lowercase kebab-case, e.g. 'title-subtitle'), an HTTPS URL pointing at a record file, or a 'pkg:' reference.
|
|
2534
2306
|
*
|
|
2535
2307
|
* Resolution order: inline catalogs.layouts.records[] → catalogs.layouts.source → default catalog at https://www.pptx.gallery/layouts.
|
|
2536
2308
|
*/
|
|
2537
2309
|
layout?: string;
|
|
2538
2310
|
/**
|
|
2539
|
-
* Slide-level title content. When the resolved layout exposes a 'title' placeholder, the engine renders this value there.
|
|
2311
|
+
* Slide-level title content. When the resolved layout exposes a 'title' placeholder, the engine renders this value there. Use a string for plain text or TextRun[] for inline rich text (a colored word, bold, a link, a citation or footnote marker); the heading keeps its size and fitting rules either way, and run colors resolve like body text.
|
|
2540
2312
|
*/
|
|
2541
|
-
title?: string;
|
|
2313
|
+
title?: (string | TextRun[]);
|
|
2542
2314
|
/**
|
|
2543
|
-
* Slide-level subtitle or supporting line. When the resolved layout exposes a 'subtitle' placeholder, the engine renders this value there.
|
|
2315
|
+
* Slide-level subtitle or supporting line. When the resolved layout exposes a 'subtitle' placeholder, the engine renders this value there. Use a string for plain text or TextRun[] for inline rich text (a colored word, bold, a link, a citation or footnote marker); the heading keeps its size and fitting rules either way, and run colors resolve like body text.
|
|
2544
2316
|
*/
|
|
2545
|
-
subtitle?: string;
|
|
2317
|
+
subtitle?: (string | TextRun[]);
|
|
2546
2318
|
/**
|
|
2547
|
-
* Small slide-level label or badge. When the resolved layout exposes a 'tag' placeholder, the engine renders this value there.
|
|
2319
|
+
* Small slide-level label or badge. When the resolved layout exposes a 'tag' placeholder, the engine renders this value there. Use a string for plain text or TextRun[] for inline rich text (a colored word, bold, a link, a citation or footnote marker); the heading keeps its size and fitting rules either way, and run colors resolve like body text.
|
|
2548
2320
|
*/
|
|
2549
|
-
tag?: string;
|
|
2321
|
+
tag?: (string | TextRun[]);
|
|
2550
2322
|
/**
|
|
2551
2323
|
* Full-slide text payload. Use a string for plain text or TextRun[] for inline rich text. TextRun items may be plain strings or formatted run objects.
|
|
2552
2324
|
*/
|
|
@@ -2564,7 +2336,7 @@ interface Slide {
|
|
|
2564
2336
|
*/
|
|
2565
2337
|
numbering?: (NumberingStyle | Numbering | [(NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)]);
|
|
2566
2338
|
/**
|
|
2567
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
2339
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
2568
2340
|
*/
|
|
2569
2341
|
image?: (string | {
|
|
2570
2342
|
/**
|
|
@@ -2587,13 +2359,9 @@ interface Slide {
|
|
|
2587
2359
|
* Optional MIME media type when it cannot be inferred from src.
|
|
2588
2360
|
*/
|
|
2589
2361
|
mediaType?: string;
|
|
2590
|
-
/**
|
|
2591
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
2592
|
-
*/
|
|
2593
|
-
format?: string;
|
|
2594
2362
|
});
|
|
2595
2363
|
/**
|
|
2596
|
-
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title
|
|
2364
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
2597
2365
|
*/
|
|
2598
2366
|
video?: (string | {
|
|
2599
2367
|
/**
|
|
@@ -2616,10 +2384,6 @@ interface Slide {
|
|
|
2616
2384
|
* Optional MIME media type when it cannot be inferred from src.
|
|
2617
2385
|
*/
|
|
2618
2386
|
mediaType?: string;
|
|
2619
|
-
/**
|
|
2620
|
-
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
2621
|
-
*/
|
|
2622
|
-
format?: string;
|
|
2623
2387
|
});
|
|
2624
2388
|
chart?: Chart;
|
|
2625
2389
|
table?: Table;
|
|
@@ -2628,7 +2392,7 @@ interface Slide {
|
|
|
2628
2392
|
*/
|
|
2629
2393
|
code?: (string | Code);
|
|
2630
2394
|
/**
|
|
2631
|
-
* Full-slide metric payload. A string or number is shorthand for { "value": value }; object form carries optional label, description, unit, delta, and
|
|
2395
|
+
* Full-slide metric payload. A string or number is shorthand for { "value": value }; object form carries optional label, description, unit, delta, trend, and sentiment metadata. Numeric values remain numbers; renderers format them for display. Presence of this field infers type 'metric'.
|
|
2632
2396
|
*/
|
|
2633
2397
|
metric?: (string | number | Metric);
|
|
2634
2398
|
/**
|
|
@@ -2675,6 +2439,9 @@ interface Slide {
|
|
|
2675
2439
|
* Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for equivalent blocks.
|
|
2676
2440
|
*/
|
|
2677
2441
|
blocks?: ContentPayload[];
|
|
2442
|
+
/**
|
|
2443
|
+
* Slide-level design applied on top of the deck-wide design.
|
|
2444
|
+
*/
|
|
2678
2445
|
design?: Design1;
|
|
2679
2446
|
left?: ContentPayload;
|
|
2680
2447
|
center?: ContentPayload;
|
|
@@ -2733,7 +2500,7 @@ interface Slide {
|
|
|
2733
2500
|
*/
|
|
2734
2501
|
section?: string;
|
|
2735
2502
|
/**
|
|
2736
|
-
* Whether the slide is hidden from the presented sequence.
|
|
2503
|
+
* Whether the slide is hidden from the presented sequence. The player skips it, the PPTX export writes it as a hidden slide, and per-slide image and PDF output skips it unless the caller asks to include hidden slides (opf CLI: --include-hidden; the deck-level renderSvg: the opt-in skipHidden). A slide named explicitly (opf render --slides, renderSvg slideIndex) is still rendered.
|
|
2737
2504
|
*/
|
|
2738
2505
|
hidden?: boolean;
|
|
2739
2506
|
composition?: Composition1;
|
|
@@ -2769,14 +2536,26 @@ interface Numbering {
|
|
|
2769
2536
|
*/
|
|
2770
2537
|
interface Chart {
|
|
2771
2538
|
/**
|
|
2772
|
-
* Chart type id. Resolves to the id of a chartTypes catalog record; renderers map that record through mappings.openxml and any renderer-specific mapping they understand. The bundled catalog covers the chart types Aspose.Slides officially supports
|
|
2539
|
+
* Chart type id. Resolves to the id of a chartTypes catalog record; renderers map that record through mappings.openxml and any renderer-specific mapping they understand. The bundled catalog covers the chart types Aspose.Slides officially supports, plus 'combo' (clustered columns with line series, see 'line' and 'secondaryAxis').
|
|
2773
2540
|
*/
|
|
2774
2541
|
type: string;
|
|
2775
2542
|
/**
|
|
2776
|
-
* 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.
|
|
2543
|
+
* 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.source.
|
|
2777
2544
|
*/
|
|
2778
|
-
data: (ChartData |
|
|
2545
|
+
data: (ChartData | DatasetRef);
|
|
2779
2546
|
mapping?: ChartMapping;
|
|
2547
|
+
/**
|
|
2548
|
+
* Combo charts only (type 'combo'): the plotted series, by column name, that are drawn as lines with markers; every other plotted series is drawn as clustered columns. Absent: the last plotted series is the line. A combo chart keeps at least one column series, so a list that names every series draws the first one as columns. Column series are drawn, exported and listed in the legend first, then the line series on the primary axis, then those on the secondary axis, each in plotted order. A name that is not a column is a 'chart-mapping-unknown-column' error; a column that is not plotted is a 'chart-mapping-adapted' warning. On any other chart type it is ignored with a 'chart-option-adapted' warning.
|
|
2549
|
+
*
|
|
2550
|
+
* @minItems 1
|
|
2551
|
+
*/
|
|
2552
|
+
line?: [string, ...(string)[]];
|
|
2553
|
+
/**
|
|
2554
|
+
* Combo charts only: line series, by column name, plotted against a secondary value axis at the right of the plot. That axis has its own scale, and its tick labels use the number format of the first secondary series' column (DataColumn.format), for example '0%' for a margin. Absent: every series shares the primary value axis at the left. A name that is not a line series (see 'line') stays on the primary axis with a 'chart-mapping-adapted' warning; an unknown column is a 'chart-mapping-unknown-column' error. On any other chart type it is ignored with a 'chart-option-adapted' warning.
|
|
2555
|
+
*
|
|
2556
|
+
* @minItems 1
|
|
2557
|
+
*/
|
|
2558
|
+
secondaryAxis?: [string, ...(string)[]];
|
|
2780
2559
|
axisTitles?: ChartAxisTitles;
|
|
2781
2560
|
/**
|
|
2782
2561
|
* Optional legend position. 'none' hides the legend. Absent keeps today's behaviour exactly (a legend at the right of multi-series charts and of pie and doughnut charts, none for single-series charts). A named position shows the legend there even for a single-series chart. Of the Office 2016 constructs only box-and-whisker takes a legend; histogram, pareto, waterfall, funnel, treemap and map drop the option with a 'chart-option-adapted' diagnostic.
|
|
@@ -2786,6 +2565,11 @@ interface Chart {
|
|
|
2786
2565
|
* Optional data labels. true shows value labels at each type's default position, false (or absent) shows none, which is today's behaviour. Use the object form for the label content, position and separator.
|
|
2787
2566
|
*/
|
|
2788
2567
|
dataLabels?: (boolean | ChartDataLabels);
|
|
2568
|
+
/**
|
|
2569
|
+
* Text alternative for the chart: what the data shows (the point and the key numbers), not 'a chart' or 'bar chart'. The preview exposes it as the chart's accessible name (role img with aria-label) and the PowerPoint export writes it as the chart frame's alternative text (descr); import reads it back. An empty string marks the chart decorative, with the same meaning as an empty Asset alt, but it is a reviewed choice that opf/chart-text-alternative still reports as info (a chart almost always carries a message). When absent, validate accepts text beside the chart instead.
|
|
2570
|
+
*/
|
|
2571
|
+
alt?: string;
|
|
2572
|
+
highlight?: ChartHighlight;
|
|
2789
2573
|
}
|
|
2790
2574
|
/**
|
|
2791
2575
|
* Inline tabular data driving a chart. 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.
|
|
@@ -2855,30 +2639,6 @@ interface DataSourceRef {
|
|
|
2855
2639
|
*/
|
|
2856
2640
|
description?: string;
|
|
2857
2641
|
}
|
|
2858
|
-
/**
|
|
2859
|
-
* Chart data sourced from an asset reference, URL, data URI, relative path, or local path such as CSV, TSV, JSON, or XLSX. The source is interpreted as a table; optional columns select or order fields from that table.
|
|
2860
|
-
*
|
|
2861
|
-
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
2862
|
-
* via the `definition` "ChartDataSource".
|
|
2863
|
-
*/
|
|
2864
|
-
interface ChartDataSource {
|
|
2865
|
-
/**
|
|
2866
|
-
* Data source. Use 'asset:<id>' to reference the top-level assets registry, or provide an HTTPS URL, data URI, relative path, or local filesystem path.
|
|
2867
|
-
*/
|
|
2868
|
-
src: string;
|
|
2869
|
-
/**
|
|
2870
|
-
* Optional sheet name or table name for spreadsheet-like assets.
|
|
2871
|
-
*/
|
|
2872
|
-
sheet?: string;
|
|
2873
|
-
/**
|
|
2874
|
-
* Optional A1-style range or engine-defined range selector for spreadsheet-like assets.
|
|
2875
|
-
*/
|
|
2876
|
-
range?: string;
|
|
2877
|
-
/**
|
|
2878
|
-
* Optional ordered columns or fields to read from the source. When omitted, renderers may use the source's own header row or schema.
|
|
2879
|
-
*/
|
|
2880
|
-
columns?: string[];
|
|
2881
|
-
}
|
|
2882
2642
|
/**
|
|
2883
2643
|
* Chart data taken from a top-level dataset. Engines inline it before plotting; 'chart.mapping' names columns after the 'fields' selection.
|
|
2884
2644
|
*
|
|
@@ -2912,7 +2672,7 @@ interface ChartMapping {
|
|
|
2912
2672
|
series?: [string, ...(string)[]];
|
|
2913
2673
|
}
|
|
2914
2674
|
/**
|
|
2915
|
-
* 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 title on a type without that axis (pie, doughnut, radar, treemap, map) is dropped with a 'chart-option-adapted' diagnostic by renderers and exporters.
|
|
2675
|
+
* 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, map) is dropped with a 'chart-option-adapted' diagnostic by renderers and exporters.
|
|
2916
2676
|
*/
|
|
2917
2677
|
interface ChartAxisTitles {
|
|
2918
2678
|
/**
|
|
@@ -2920,9 +2680,13 @@ interface ChartAxisTitles {
|
|
|
2920
2680
|
*/
|
|
2921
2681
|
category?: string;
|
|
2922
2682
|
/**
|
|
2923
|
-
* Title of the value (Y) axis.
|
|
2683
|
+
* Title of the value (Y) axis. On a combo chart, the primary (left) value axis.
|
|
2924
2684
|
*/
|
|
2925
2685
|
value?: string;
|
|
2686
|
+
/**
|
|
2687
|
+
* Combo charts only: title of the secondary value axis at the right of the plot, drawn rotated like the primary value axis title. Dropped with a 'chart-option-adapted' diagnostic on any other chart type and on a combo chart without 'secondaryAxis'.
|
|
2688
|
+
*/
|
|
2689
|
+
secondary?: string;
|
|
2926
2690
|
}
|
|
2927
2691
|
/**
|
|
2928
2692
|
* Data label settings. A label shows the selected content parts in the fixed order category, value, percent, joined by the separator.
|
|
@@ -2938,7 +2702,7 @@ interface ChartDataLabels {
|
|
|
2938
2702
|
*/
|
|
2939
2703
|
content?: [("value" | "percent" | "category"), ...(("value" | "percent" | "category"))[]];
|
|
2940
2704
|
/**
|
|
2941
|
-
* Where a label sits relative to its mark. 'auto' (the default) is the type's default: outside-end for clustered columns and bars, pie slices and the histogram, pareto and waterfall constructs; center for stacked columns and bars; above for line and scatter points. Clustered columns and bars and the histogram, pareto and waterfall constructs take center, inside-end, inside-base and outside-end; stacked columns and bars take center, inside-end and inside-base; pie takes center, inside-end and outside-end; line and scatter points take above, below, left, right and center. Area, doughnut and radar charts and the funnel and treemap constructs take only 'auto' (the box-and-whisker and map constructs have no data labels). An unsupported position falls back to 'auto' with a 'chart-option-adapted' diagnostic.
|
|
2705
|
+
* Where a label sits relative to its mark. 'auto' (the default) is the type's default: outside-end for clustered columns and bars, pie slices and the histogram, pareto and waterfall constructs; center for stacked columns and bars; above for line and scatter points. Clustered columns and bars and the histogram, pareto and waterfall constructs take center, inside-end, inside-base and outside-end; stacked columns and bars take center, inside-end and inside-base; pie takes center, inside-end and outside-end; line and scatter points take above, below, left, right and center. Area, doughnut and radar charts and the funnel and treemap constructs take only 'auto' (the box-and-whisker and map constructs have no data labels). A combo chart places the labels of its column series like clustered columns and those of its line series like line points; a position only one part takes applies to that part, and the other part keeps its default (outside-end, above). An unsupported position falls back to 'auto' with a 'chart-option-adapted' diagnostic.
|
|
2942
2706
|
*/
|
|
2943
2707
|
position?: ("auto" | "center" | "inside-end" | "inside-base" | "outside-end" | "above" | "below" | "left" | "right");
|
|
2944
2708
|
/**
|
|
@@ -2946,6 +2710,23 @@ interface ChartDataLabels {
|
|
|
2946
2710
|
*/
|
|
2947
2711
|
separator?: string;
|
|
2948
2712
|
}
|
|
2713
|
+
/**
|
|
2714
|
+
* Optional emphasis: the series and/or categories that carry the message. The engines draw the highlighted marks in the deck's primary (accent) color and every other mark in a muted neutral derived from the theme (a light grey on a light chart panel, a dim grey on a dark one); there is no color field. A mark is highlighted when its series OR its category is named. Absent keeps today's colors exactly. Supported on column, bar and line charts (series and categories; on a line a category highlight marks that category's points), pie and doughnut charts (categories, one per slice), and area, scatter and radar charts (series); the histogram, pareto, waterfall, funnel, treemap, box-and-whisker, map and combo constructs drop the option with a 'chart-option-adapted' diagnostic, as does a part the type cannot highlight. A name that matches no column or row label is a 'chart-highlight-unknown-name' error.
|
|
2715
|
+
*/
|
|
2716
|
+
interface ChartHighlight {
|
|
2717
|
+
/**
|
|
2718
|
+
* Series (value columns) to highlight: all marks of each named series. A name that is not a column is a 'chart-highlight-unknown-name' error; a column that is not plotted as a series (the category or X column, or one mapping.series leaves out) highlights nothing and is a 'chart-highlight-adapted' warning.
|
|
2719
|
+
*
|
|
2720
|
+
* @minItems 1
|
|
2721
|
+
*/
|
|
2722
|
+
series?: [string, ...(string)[]];
|
|
2723
|
+
/**
|
|
2724
|
+
* Categories (row labels) to highlight: the marks of each named category (a column or bar of every series, a line's points, a pie or doughnut slice). A label no row has is a 'chart-highlight-unknown-name' error.
|
|
2725
|
+
*
|
|
2726
|
+
* @minItems 1
|
|
2727
|
+
*/
|
|
2728
|
+
categories?: [string, ...(string)[]];
|
|
2729
|
+
}
|
|
2949
2730
|
/**
|
|
2950
2731
|
* Full-slide table payload. Presence of this field infers type 'table'.
|
|
2951
2732
|
*/
|
|
@@ -2999,11 +2780,11 @@ interface TableCellStyle {
|
|
|
2999
2780
|
/**
|
|
3000
2781
|
* Cell background: a hex color, a color-scheme slot or role name, or a 'var:<id>' variable reference. Eight-digit hex colors include alpha; #00000000 is transparent.
|
|
3001
2782
|
*/
|
|
3002
|
-
fill?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "text" | "textSecondary") | string);
|
|
2783
|
+
fill?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
3003
2784
|
/**
|
|
3004
2785
|
* Default text color, overridden by individual rich run colors. Accepts a hex color, a color-scheme slot or role name, or a 'var:<id>' variable reference.
|
|
3005
2786
|
*/
|
|
3006
|
-
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "text" | "textSecondary") | string);
|
|
2787
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
3007
2788
|
/**
|
|
3008
2789
|
* Horizontal text alignment inside the cell.
|
|
3009
2790
|
*/
|
|
@@ -3045,7 +2826,7 @@ interface TableCellBorder {
|
|
|
3045
2826
|
/**
|
|
3046
2827
|
* Border color: a hex color, a color-scheme slot or role name, or a 'var:<id>' variable reference. Eight-digit hex colors include alpha; #00000000 is transparent.
|
|
3047
2828
|
*/
|
|
3048
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "text" | "textSecondary") | string);
|
|
2829
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
3049
2830
|
/**
|
|
3050
2831
|
* Border width in reference pixels; 0 removes this edge.
|
|
3051
2832
|
*/
|
|
@@ -3056,7 +2837,7 @@ interface TableCellBorder {
|
|
|
3056
2837
|
dash?: ("solid" | "dash" | "dot");
|
|
3057
2838
|
}
|
|
3058
2839
|
/**
|
|
3059
|
-
* Code content with optional rendering metadata. Use 'source' for the code text, 'language' for syntax highlighting,
|
|
2840
|
+
* Code content with optional rendering metadata. Use 'source' for the code text, 'language' for syntax highlighting, 'filename' when the rendered block should show a file label, and 'highlight' to emphasize lines. A string value in a code field is shorthand for { "source": value }.
|
|
3060
2841
|
*
|
|
3061
2842
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
3062
2843
|
* via the `definition` "Code".
|
|
@@ -3074,9 +2855,15 @@ interface Code {
|
|
|
3074
2855
|
* Optional file label shown with the code block.
|
|
3075
2856
|
*/
|
|
3076
2857
|
filename?: string;
|
|
2858
|
+
/**
|
|
2859
|
+
* Source lines to emphasize, 1-based: each entry is a line number or an inclusive [start, end] range, so [3, [5, 7]] marks lines 3 and 5 to 7. Lines are counted by line break in 'source', so a line that wraps stays one line. Engines draw a theme-derived band behind the marked lines and dim the other lines slightly, keeping every line at least 4.5:1 against its background; PPTX export draws one native rectangle behind the line text boxes and import restores the list. A line number past the last line, or a range written end before start, gets a validation warning (code-highlight-out-of-range, code-highlight-range-reversed) and is ignored. When a code block is paginated across slides each page keeps the lines that fall on it, renumbered from 1.
|
|
2860
|
+
*
|
|
2861
|
+
* @minItems 1
|
|
2862
|
+
*/
|
|
2863
|
+
highlight?: [(number | [number, number]), ...((number | [number, number]))[]];
|
|
3077
2864
|
}
|
|
3078
2865
|
/**
|
|
3079
|
-
* 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, and '
|
|
2866
|
+
* 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.
|
|
3080
2867
|
*
|
|
3081
2868
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
3082
2869
|
* via the `definition` "Metric".
|
|
@@ -3103,27 +2890,60 @@ interface Metric {
|
|
|
3103
2890
|
*/
|
|
3104
2891
|
delta?: (string | number);
|
|
3105
2892
|
/**
|
|
3106
|
-
* Metric trend direction.
|
|
2893
|
+
* Metric trend direction. The preview and the PowerPoint export draw an arrow beside the trend word that always points the way the trend does (up, down or flat) and colour the arrow, the trend word and the delta text by `sentiment`.
|
|
3107
2894
|
*/
|
|
3108
2895
|
trend?: ("up" | "down" | "flat");
|
|
2896
|
+
/**
|
|
2897
|
+
* Whether the change is good news. Positive draws the trend arrow and the trend and delta text in green, negative in red and neutral in the neutral text colour, each kept at 4.5:1 contrast or more against the slide background. When absent the colour follows the trend: up is positive, down is negative and flat is neutral. Set it when the direction is not the verdict, for example positive on a falling churn, cost or latency trend. The arrow always keeps the direction of `trend`. Only the trend arrow and the trend and delta text take the colour, so sentiment has no visible effect on a metric without a trend.
|
|
2898
|
+
*/
|
|
2899
|
+
sentiment?: ("positive" | "negative" | "neutral");
|
|
3109
2900
|
}
|
|
3110
2901
|
/**
|
|
3111
|
-
* Quote content with optional attribution metadata. Use 'text' for the quoted text, 'attribution' for the credited person or organization, and 'source' for a citation or URL. A string value in a quote field is shorthand for { "text": value }.
|
|
2902
|
+
* Quote content with optional attribution metadata. Use 'text' for the quoted text, 'attribution' for the credited person or organization, 'role' for that person's title and organization, 'photo' for their headshot and 'source' for a citation or URL. A string value in a quote field is shorthand for { "text": value }.
|
|
3112
2903
|
*
|
|
3113
2904
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
3114
2905
|
* via the `definition` "Quote".
|
|
3115
2906
|
*/
|
|
3116
2907
|
interface Quote {
|
|
3117
2908
|
/**
|
|
3118
|
-
* Quoted text.
|
|
2909
|
+
* Quoted text: a string, or TextRun[] for inline rich text (a colored phrase, bold, a link, or a citation or footnote marker). The engine draws the surrounding quotation marks.
|
|
3119
2910
|
*/
|
|
3120
|
-
text: string;
|
|
2911
|
+
text: (string | TextRun[]);
|
|
3121
2912
|
/**
|
|
3122
|
-
* Person or organization credited for the quote.
|
|
2913
|
+
* Person or organization credited for the quote. Drawn after the quote text, in the muted text color.
|
|
3123
2914
|
*/
|
|
3124
2915
|
attribution?: string;
|
|
3125
2916
|
/**
|
|
3126
|
-
*
|
|
2917
|
+
* Title and organization of the attributed person. Drawn on its own line under the attribution; without an attribution it stands alone. It does not replace the attribution, so the person's name belongs in 'attribution'.
|
|
2918
|
+
*/
|
|
2919
|
+
role?: string;
|
|
2920
|
+
/**
|
|
2921
|
+
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
2922
|
+
*/
|
|
2923
|
+
photo?: (string | {
|
|
2924
|
+
/**
|
|
2925
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
2926
|
+
*/
|
|
2927
|
+
src: string;
|
|
2928
|
+
/**
|
|
2929
|
+
* Alternative text for images and other visual assets.
|
|
2930
|
+
*/
|
|
2931
|
+
alt?: string;
|
|
2932
|
+
/**
|
|
2933
|
+
* Human-readable asset title for editors and asset pickers.
|
|
2934
|
+
*/
|
|
2935
|
+
title?: string;
|
|
2936
|
+
/**
|
|
2937
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
2938
|
+
*/
|
|
2939
|
+
description?: string;
|
|
2940
|
+
/**
|
|
2941
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
2942
|
+
*/
|
|
2943
|
+
mediaType?: string;
|
|
2944
|
+
});
|
|
2945
|
+
/**
|
|
2946
|
+
* Optional quote source, citation, or URL. Follows the attribution and role after ' - '.
|
|
3127
2947
|
*/
|
|
3128
2948
|
source?: string;
|
|
3129
2949
|
}
|
|
@@ -3146,20 +2966,36 @@ interface TimelineEvent {
|
|
|
3146
2966
|
* Optional event detail.
|
|
3147
2967
|
*/
|
|
3148
2968
|
description?: string;
|
|
2969
|
+
/**
|
|
2970
|
+
* Progress of the event, drawn from the deck's own colors by both the SVG renderer and the PPTX exporter. Absent means no status and the event is drawn as a plain filled marker with normal text, which is also how 'done' looks. 'done' is a filled marker in the primary color with normal text. 'current' marks 'we are here': the filled marker is surrounded by a ring and the event label (`what`) is bold. 'planned' is an outlined, hollow marker (primary-color outline over the slide background) with muted secondary text. Text colors keep a 4.5:1 contrast against the slide background. In PPTX the markers are native ellipses (the ring is a second ellipse), and PPTX import restores the status the export recorded. Status describes progress only; schedule health such as at risk or blocked belongs in the event text.
|
|
2971
|
+
*/
|
|
2972
|
+
status?: ("done" | "current" | "planned");
|
|
3149
2973
|
}
|
|
3150
2974
|
/**
|
|
3151
2975
|
* Chart payload. Presence of this field infers type 'chart'.
|
|
3152
2976
|
*/
|
|
3153
2977
|
interface Chart1 {
|
|
3154
2978
|
/**
|
|
3155
|
-
* Chart type id. Resolves to the id of a chartTypes catalog record; renderers map that record through mappings.openxml and any renderer-specific mapping they understand. The bundled catalog covers the chart types Aspose.Slides officially supports
|
|
2979
|
+
* Chart type id. Resolves to the id of a chartTypes catalog record; renderers map that record through mappings.openxml and any renderer-specific mapping they understand. The bundled catalog covers the chart types Aspose.Slides officially supports, plus 'combo' (clustered columns with line series, see 'line' and 'secondaryAxis').
|
|
3156
2980
|
*/
|
|
3157
2981
|
type: string;
|
|
3158
2982
|
/**
|
|
3159
|
-
* 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.
|
|
2983
|
+
* 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.source.
|
|
3160
2984
|
*/
|
|
3161
|
-
data: (ChartData |
|
|
2985
|
+
data: (ChartData | DatasetRef);
|
|
3162
2986
|
mapping?: ChartMapping;
|
|
2987
|
+
/**
|
|
2988
|
+
* Combo charts only (type 'combo'): the plotted series, by column name, that are drawn as lines with markers; every other plotted series is drawn as clustered columns. Absent: the last plotted series is the line. A combo chart keeps at least one column series, so a list that names every series draws the first one as columns. Column series are drawn, exported and listed in the legend first, then the line series on the primary axis, then those on the secondary axis, each in plotted order. A name that is not a column is a 'chart-mapping-unknown-column' error; a column that is not plotted is a 'chart-mapping-adapted' warning. On any other chart type it is ignored with a 'chart-option-adapted' warning.
|
|
2989
|
+
*
|
|
2990
|
+
* @minItems 1
|
|
2991
|
+
*/
|
|
2992
|
+
line?: [string, ...(string)[]];
|
|
2993
|
+
/**
|
|
2994
|
+
* Combo charts only: line series, by column name, plotted against a secondary value axis at the right of the plot. That axis has its own scale, and its tick labels use the number format of the first secondary series' column (DataColumn.format), for example '0%' for a margin. Absent: every series shares the primary value axis at the left. A name that is not a line series (see 'line') stays on the primary axis with a 'chart-mapping-adapted' warning; an unknown column is a 'chart-mapping-unknown-column' error. On any other chart type it is ignored with a 'chart-option-adapted' warning.
|
|
2995
|
+
*
|
|
2996
|
+
* @minItems 1
|
|
2997
|
+
*/
|
|
2998
|
+
secondaryAxis?: [string, ...(string)[]];
|
|
3163
2999
|
axisTitles?: ChartAxisTitles;
|
|
3164
3000
|
/**
|
|
3165
3001
|
* Optional legend position. 'none' hides the legend. Absent keeps today's behaviour exactly (a legend at the right of multi-series charts and of pie and doughnut charts, none for single-series charts). A named position shows the legend there even for a single-series chart. Of the Office 2016 constructs only box-and-whisker takes a legend; histogram, pareto, waterfall, funnel, treemap and map drop the option with a 'chart-option-adapted' diagnostic.
|
|
@@ -3169,6 +3005,11 @@ interface Chart1 {
|
|
|
3169
3005
|
* Optional data labels. true shows value labels at each type's default position, false (or absent) shows none, which is today's behaviour. Use the object form for the label content, position and separator.
|
|
3170
3006
|
*/
|
|
3171
3007
|
dataLabels?: (boolean | ChartDataLabels);
|
|
3008
|
+
/**
|
|
3009
|
+
* Text alternative for the chart: what the data shows (the point and the key numbers), not 'a chart' or 'bar chart'. The preview exposes it as the chart's accessible name (role img with aria-label) and the PowerPoint export writes it as the chart frame's alternative text (descr); import reads it back. An empty string marks the chart decorative, with the same meaning as an empty Asset alt, but it is a reviewed choice that opf/chart-text-alternative still reports as info (a chart almost always carries a message). When absent, validate accepts text beside the chart instead.
|
|
3010
|
+
*/
|
|
3011
|
+
alt?: string;
|
|
3012
|
+
highlight?: ChartHighlight;
|
|
3172
3013
|
}
|
|
3173
3014
|
/**
|
|
3174
3015
|
* Table payload. Presence of this field infers type 'table'.
|
|
@@ -3225,7 +3066,10 @@ interface Composition {
|
|
|
3225
3066
|
overflow?: ("warn" | "error");
|
|
3226
3067
|
}
|
|
3227
3068
|
/**
|
|
3228
|
-
*
|
|
3069
|
+
* Visual design system applied to the presentation; individual slides may override fields via Slide.design.
|
|
3070
|
+
*
|
|
3071
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
3072
|
+
* via the `definition` "Design".
|
|
3229
3073
|
*/
|
|
3230
3074
|
interface Design1 {
|
|
3231
3075
|
/**
|
|
@@ -3267,7 +3111,7 @@ interface Design1 {
|
|
|
3267
3111
|
*/
|
|
3268
3112
|
logo?: (Asset | LogoSet);
|
|
3269
3113
|
/**
|
|
3270
|
-
* Optional decorative watermark applied across slides. Use false to suppress an inherited watermark in slide-level design; a string is
|
|
3114
|
+
* Optional decorative watermark applied across slides: an image or a text stamp, in the fixed frame and at the opacity described on Watermark. Use false to suppress an inherited watermark in slide-level design; a string or Asset is the image at opacity 0.08.
|
|
3271
3115
|
*/
|
|
3272
3116
|
watermark?: (false | Asset | Watermark);
|
|
3273
3117
|
/**
|
|
@@ -3279,19 +3123,19 @@ interface Design1 {
|
|
|
3279
3123
|
*/
|
|
3280
3124
|
footer?: (false | HeaderFooter);
|
|
3281
3125
|
/**
|
|
3282
|
-
* Default horizontal alignment for title placeholders in resolved layouts.
|
|
3126
|
+
* Default horizontal alignment for title placeholders in resolved layouts. Effective value: the slide's design, then the deck's design, then the layout record's design.titleAlignment, then the engine default.
|
|
3283
3127
|
*/
|
|
3284
3128
|
titleAlignment?: ("left" | "center" | "right");
|
|
3285
3129
|
/**
|
|
3286
|
-
* Default horizontal alignment for body/content regions in resolved layouts.
|
|
3130
|
+
* Default horizontal alignment for body/content regions in resolved layouts. Effective value: the slide's design, then the deck's design, then the layout record's design.contentAlignment, then the engine default. A cover's tag and subtitle follow titleAlignment unless the slide's own design sets contentAlignment.
|
|
3287
3131
|
*/
|
|
3288
3132
|
contentAlignment?: ("left" | "center" | "right");
|
|
3289
3133
|
/**
|
|
3290
|
-
* Whether body/content regions are rendered inside a visible card or surface.
|
|
3134
|
+
* Whether body/content regions are rendered inside a visible card or surface. Effective value: the slide's design, then the deck's design, then the layout record's design.contentBox, then the engine default.
|
|
3291
3135
|
*/
|
|
3292
3136
|
contentBox?: boolean;
|
|
3293
3137
|
/**
|
|
3294
|
-
* Optional slide-level image, separate from content images. It applies to a slide that sets its own design.slideImage, and to slides whose layout
|
|
3138
|
+
* Optional slide-level image, separate from content images. It applies to a slide that sets its own design.slideImage, and to slides whose layout record sets design.slideImage or whose root image is the same source as a deck-level value. A root image with the same source becomes the slide image instead of a content item. Blur, shadows, soft edges, background removal and device artwork are not part of the treatment vocabulary; see docs/image-treatments.md.
|
|
3295
3139
|
*/
|
|
3296
3140
|
slideImage?: (Asset | {
|
|
3297
3141
|
/**
|
|
@@ -3337,7 +3181,7 @@ interface Design1 {
|
|
|
3337
3181
|
/**
|
|
3338
3182
|
* Line color: a hex color, a color-scheme slot or role name, or a 'var:<id>' variable reference.
|
|
3339
3183
|
*/
|
|
3340
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "text" | "textSecondary") | string);
|
|
3184
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
3341
3185
|
/**
|
|
3342
3186
|
* Line width in reference pixels at a 720-pixel short edge, centered on the frame outline like a native picture line. 0 removes the line.
|
|
3343
3187
|
*/
|
|
@@ -3354,11 +3198,11 @@ interface Design1 {
|
|
|
3354
3198
|
/**
|
|
3355
3199
|
* Color at luminance 0.
|
|
3356
3200
|
*/
|
|
3357
|
-
dark: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "text" | "textSecondary") | string);
|
|
3201
|
+
dark: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
3358
3202
|
/**
|
|
3359
3203
|
* Color at luminance 1.
|
|
3360
3204
|
*/
|
|
3361
|
-
light: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "text" | "textSecondary") | string);
|
|
3205
|
+
light: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
3362
3206
|
});
|
|
3363
3207
|
/**
|
|
3364
3208
|
* Solid scrim drawn over the image in the frame's shape, beneath headings and content, for example to keep overlaid text readable. Exported as a native shape above the picture.
|
|
@@ -3367,7 +3211,7 @@ interface Design1 {
|
|
|
3367
3211
|
/**
|
|
3368
3212
|
* Overlay fill color.
|
|
3369
3213
|
*/
|
|
3370
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "text" | "textSecondary") | string);
|
|
3214
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
3371
3215
|
/**
|
|
3372
3216
|
* Overlay fill opacity.
|
|
3373
3217
|
*/
|
|
@@ -3383,19 +3227,19 @@ interface Design1 {
|
|
|
3383
3227
|
};
|
|
3384
3228
|
});
|
|
3385
3229
|
/**
|
|
3386
|
-
* Axis along which parallel body content is arranged. Sets the root arrangement mode of blocks and root payloads when no composition.mode is set on the slide or on its layout record: 'vertical' is column, 'horizontal' is row. Precedence: composition.mode (the slide's own, else the layout record's geometry contract), then
|
|
3230
|
+
* Axis along which parallel body content is arranged. Sets the root arrangement mode of blocks and root payloads when no composition.mode is set on the slide or on its layout record: 'vertical' is column, 'horizontal' is row. Precedence: composition.mode (the slide's own, else the layout record's geometry contract), then the effective value (slide design, then deck design, then the layout record's design.contentDirection), then automatic selection. A layout that carries a composition.mode keeps its grid or direction whatever this value says. Promoted regions (left, top:left, ...) keep their explicit geometry and nested groups keep their own composition.
|
|
3387
3231
|
*/
|
|
3388
3232
|
contentDirection?: ("horizontal" | "vertical");
|
|
3389
3233
|
/**
|
|
3390
|
-
* Where the primary chart sits relative to supporting content. Effective value: slide design, then deck design, then the layout record's
|
|
3234
|
+
* Where the primary chart sits relative to supporting content. Effective value: slide design, then deck design, then the layout record's design.chartPrimary. When the slide has no promoted regions and no composition.mode of its own, and its root nodes mix at least one chart with other content, the first chart becomes a primary track and the other nodes form one synthetic sub-grid: 'left'/'right' is a two-track row and 'top'/'bottom' a two-track column, weighted 3:2 in favor of the chart; explicit root columns and weights are ignored while it applies. 'none' (the default) keeps the ordinary automatic grid with equal weight.
|
|
3391
3235
|
*/
|
|
3392
3236
|
chartPrimary?: ("none" | "top" | "bottom" | "left" | "right");
|
|
3393
3237
|
/**
|
|
3394
|
-
* How
|
|
3238
|
+
* How images fill their allocated region: crop covers the region, fit shows the whole image. Effective value: the slide's design, then the deck's design, then the layout record's design.imageFill, then the engine default.
|
|
3395
3239
|
*/
|
|
3396
3240
|
imageFill?: ("crop" | "fit");
|
|
3397
3241
|
/**
|
|
3398
|
-
* Marker style for items and bullets lists. 'character' (the default) draws the glyph marker. 'image' draws the deck's icon logo (a slide's design.logo, then design.logo, then the primary organization's logo; light variants on dark backgrounds) as a picture bullet: a square of the marker's font size whose bottom sits on the marker baseline, so list geometry does not change. Without a logo the glyph is drawn and the engine reports unresolved-content at this field.
|
|
3242
|
+
* Marker style for items and bullets lists. Effective value: the slide's design, then the deck's design, then the layout record's design.listBullet, then 'character'. 'character' (the default) draws the glyph marker. 'image' draws the deck's icon logo (a slide's design.logo, then design.logo, then the primary organization's logo; light variants on dark backgrounds) as a picture bullet: a square of the marker's font size whose bottom sits on the marker baseline, so list geometry does not change. Without a logo the glyph is drawn and the engine reports unresolved-content at this field.
|
|
3399
3243
|
*/
|
|
3400
3244
|
listBullet?: ("character" | "image");
|
|
3401
3245
|
[k: string]: unknown;
|
|
@@ -3460,7 +3304,7 @@ interface Reference {
|
|
|
3460
3304
|
url?: string;
|
|
3461
3305
|
}
|
|
3462
3306
|
/**
|
|
3463
|
-
* 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
|
|
3307
|
+
* 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.
|
|
3464
3308
|
*/
|
|
3465
3309
|
interface Datasets {
|
|
3466
3310
|
[k: string]: Dataset;
|
|
@@ -3547,11 +3391,11 @@ interface Catalogs {
|
|
|
3547
3391
|
[k: string]: unknown;
|
|
3548
3392
|
}
|
|
3549
3393
|
/**
|
|
3550
|
-
* Catalog of narrative templates. Records validate against https://openpresentation.org/schema/opf-narrative/v1. Default source: https://www.pptx.gallery/narratives.
|
|
3394
|
+
* Catalog of narrative templates. Records validate against https://openpresentation.org/schema/opf-narrative/v1. A custom narrative goes in 'catalogs.narratives.records' and is referenced by its id from the root 'narrative'. Default source: https://www.pptx.gallery/narratives.
|
|
3551
3395
|
*/
|
|
3552
3396
|
interface CatalogEntry {
|
|
3553
3397
|
/**
|
|
3554
|
-
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot.
|
|
3398
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot. Engines never fetch a source. The host loads the records itself and passes them to the renderer and exporter as a 'catalogSources' map from the source string to its records; a source with no entry in that map contributes no records, except the default catalog's own URL and the '@openpresentation/opf' package, which resolve from the bundled snapshot.
|
|
3555
3399
|
*/
|
|
3556
3400
|
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
3557
3401
|
/**
|
|
@@ -3567,7 +3411,7 @@ interface CatalogEntry {
|
|
|
3567
3411
|
*/
|
|
3568
3412
|
interface CatalogEntry1 {
|
|
3569
3413
|
/**
|
|
3570
|
-
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot.
|
|
3414
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot. Engines never fetch a source. The host loads the records itself and passes them to the renderer and exporter as a 'catalogSources' map from the source string to its records; a source with no entry in that map contributes no records, except the default catalog's own URL and the '@openpresentation/opf' package, which resolve from the bundled snapshot.
|
|
3571
3415
|
*/
|
|
3572
3416
|
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
3573
3417
|
/**
|
|
@@ -3583,7 +3427,7 @@ interface CatalogEntry1 {
|
|
|
3583
3427
|
*/
|
|
3584
3428
|
interface CatalogEntry2 {
|
|
3585
3429
|
/**
|
|
3586
|
-
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot.
|
|
3430
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot. Engines never fetch a source. The host loads the records itself and passes them to the renderer and exporter as a 'catalogSources' map from the source string to its records; a source with no entry in that map contributes no records, except the default catalog's own URL and the '@openpresentation/opf' package, which resolve from the bundled snapshot.
|
|
3587
3431
|
*/
|
|
3588
3432
|
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
3589
3433
|
/**
|
|
@@ -3599,7 +3443,7 @@ interface CatalogEntry2 {
|
|
|
3599
3443
|
*/
|
|
3600
3444
|
interface CatalogEntry3 {
|
|
3601
3445
|
/**
|
|
3602
|
-
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot.
|
|
3446
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot. Engines never fetch a source. The host loads the records itself and passes them to the renderer and exporter as a 'catalogSources' map from the source string to its records; a source with no entry in that map contributes no records, except the default catalog's own URL and the '@openpresentation/opf' package, which resolve from the bundled snapshot.
|
|
3603
3447
|
*/
|
|
3604
3448
|
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
3605
3449
|
/**
|
|
@@ -3615,7 +3459,7 @@ interface CatalogEntry3 {
|
|
|
3615
3459
|
*/
|
|
3616
3460
|
interface CatalogEntry4 {
|
|
3617
3461
|
/**
|
|
3618
|
-
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot.
|
|
3462
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot. Engines never fetch a source. The host loads the records itself and passes them to the renderer and exporter as a 'catalogSources' map from the source string to its records; a source with no entry in that map contributes no records, except the default catalog's own URL and the '@openpresentation/opf' package, which resolve from the bundled snapshot.
|
|
3619
3463
|
*/
|
|
3620
3464
|
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
3621
3465
|
/**
|
|
@@ -3631,7 +3475,7 @@ interface CatalogEntry4 {
|
|
|
3631
3475
|
*/
|
|
3632
3476
|
interface CatalogEntry5 {
|
|
3633
3477
|
/**
|
|
3634
|
-
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot.
|
|
3478
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot. Engines never fetch a source. The host loads the records itself and passes them to the renderer and exporter as a 'catalogSources' map from the source string to its records; a source with no entry in that map contributes no records, except the default catalog's own URL and the '@openpresentation/opf' package, which resolve from the bundled snapshot.
|
|
3635
3479
|
*/
|
|
3636
3480
|
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
3637
3481
|
/**
|
|
@@ -3647,7 +3491,7 @@ interface CatalogEntry5 {
|
|
|
3647
3491
|
*/
|
|
3648
3492
|
interface CatalogEntry6 {
|
|
3649
3493
|
/**
|
|
3650
|
-
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot.
|
|
3494
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot. Engines never fetch a source. The host loads the records itself and passes them to the renderer and exporter as a 'catalogSources' map from the source string to its records; a source with no entry in that map contributes no records, except the default catalog's own URL and the '@openpresentation/opf' package, which resolve from the bundled snapshot.
|
|
3651
3495
|
*/
|
|
3652
3496
|
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
3653
3497
|
/**
|
|
@@ -3663,7 +3507,7 @@ interface CatalogEntry6 {
|
|
|
3663
3507
|
*/
|
|
3664
3508
|
interface CatalogEntry7 {
|
|
3665
3509
|
/**
|
|
3666
|
-
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot.
|
|
3510
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot. Engines never fetch a source. The host loads the records itself and passes them to the renderer and exporter as a 'catalogSources' map from the source string to its records; a source with no entry in that map contributes no records, except the default catalog's own URL and the '@openpresentation/opf' package, which resolve from the bundled snapshot.
|
|
3667
3511
|
*/
|
|
3668
3512
|
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
3669
3513
|
/**
|
|
@@ -3679,7 +3523,7 @@ interface CatalogEntry7 {
|
|
|
3679
3523
|
*/
|
|
3680
3524
|
interface CatalogEntry8 {
|
|
3681
3525
|
/**
|
|
3682
|
-
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot.
|
|
3526
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot. Engines never fetch a source. The host loads the records itself and passes them to the renderer and exporter as a 'catalogSources' map from the source string to its records; a source with no entry in that map contributes no records, except the default catalog's own URL and the '@openpresentation/opf' package, which resolve from the bundled snapshot.
|
|
3683
3527
|
*/
|
|
3684
3528
|
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
3685
3529
|
/**
|
|
@@ -3695,7 +3539,7 @@ interface CatalogEntry8 {
|
|
|
3695
3539
|
*/
|
|
3696
3540
|
interface CatalogEntry9 {
|
|
3697
3541
|
/**
|
|
3698
|
-
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot.
|
|
3542
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot. Engines never fetch a source. The host loads the records itself and passes them to the renderer and exporter as a 'catalogSources' map from the source string to its records; a source with no entry in that map contributes no records, except the default catalog's own URL and the '@openpresentation/opf' package, which resolve from the bundled snapshot.
|
|
3699
3543
|
*/
|
|
3700
3544
|
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
3701
3545
|
/**
|
|
@@ -3711,7 +3555,7 @@ interface CatalogEntry9 {
|
|
|
3711
3555
|
*/
|
|
3712
3556
|
interface CatalogEntry10 {
|
|
3713
3557
|
/**
|
|
3714
|
-
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot.
|
|
3558
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot. Engines never fetch a source. The host loads the records itself and passes them to the renderer and exporter as a 'catalogSources' map from the source string to its records; a source with no entry in that map contributes no records, except the default catalog's own URL and the '@openpresentation/opf' package, which resolve from the bundled snapshot.
|
|
3715
3559
|
*/
|
|
3716
3560
|
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
3717
3561
|
/**
|