@allyhub/sdk 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/free.d.ts +2 -2
- package/dist/index.d.ts +2 -9
- package/dist/index.js +1 -1
- package/dist/module.d.ts +2 -3
- package/dist/module.js +1 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/audio/package.json +1 -1
- package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.d.ts +31 -0
- package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.js +3 -0
- package/dist/node_modules/@allyhub-next/chart/dist/chart.d.ts +195 -0
- package/dist/node_modules/@allyhub-next/chart/dist/chart.js +2 -0
- package/dist/node_modules/@allyhub-next/chart/dist/index.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/chart/dist/index.js +2 -0
- package/dist/node_modules/@allyhub-next/chart/package.json +14 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/reference.d.ts +0 -86
- package/dist/node_modules/@allyhub-next/formats/dist/data/reference.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/script.d.ts +22 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/script.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +4908 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +1497 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/index.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/formats/dist/index.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/items.d.ts +22 -1
- package/dist/node_modules/@allyhub-next/formats/dist/items.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/note-shape.d.ts +39 -0
- package/dist/node_modules/@allyhub-next/formats/dist/note-shape.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +2146 -0
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/strict.d.ts +28 -0
- package/dist/node_modules/@allyhub-next/formats/dist/strict.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/formats/package.json +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/app.d.ts +37 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/app.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/auth.d.ts +0 -17
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/auth.js +1 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cli.d.ts +0 -4
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cli.js +1 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/editor.d.ts +17 -24
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/editor.js +1 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/index.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +165 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/registry.d.ts +1 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/runtimes.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/runtimes.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/tools.d.ts +43 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/package.json +1 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/errors.d.ts +5 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/index.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/lock.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/lock.js +2 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/node-program.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/node-program.js +2 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/packages.d.ts +65 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/packages.js +4 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/runtimes.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/runtimes.js +4 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/unpack.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/unpack.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/package.json +5 -1
- package/dist/node_modules/@allyhub-next/runtimes/pins/docx/package-lock.json +67 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/docx/package.json +9 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/gltf-tools/package-lock.json +753 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/gltf-tools/package.json +14 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/manifold-3d/package-lock.json +950 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/manifold-3d/package.json +8 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package-lock.json +227 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package.json +8 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package-lock.json +105 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package.json +8 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package-lock.json +128 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package.json +9 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/schemas/runtimes.schema.json +5 -24
- package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/moire.d.ts +7 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/phone.d.ts +3 -1
- package/dist/node_modules/@allyhub-next/scenery/dist/phone.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub-next/sheet/LICENSE +241 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/address.d.ts +32 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/address.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/capabilities.d.ts +23 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/capabilities.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/charts.d.ts +204 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/charts.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/code.d.ts +19 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/code.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/hint.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/hint.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/index.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/index.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/rectangles.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/rectangles.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/rules.d.ts +170 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/rules.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/styles.d.ts +117 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/styles.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.d.ts +323 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/arrange.d.ts +68 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/arrange.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.d.ts +21 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.d.ts +19 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.d.ts +152 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.d.ts +15 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.d.ts +69 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/distributions.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/distributions.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.d.ts +15 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/special.d.ts +29 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/special.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.d.ts +50 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/chart.d.ts +58 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/check.d.ts +15 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/check.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/csv.d.ts +62 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/csv.js +12 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/diff.d.ts +64 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/edit.d.ts +154 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/edit.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/export.d.ts +11 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/export.js +6 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/file.d.ts +19 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/file.js +3 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/files.d.ts +24 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/files.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/fill.d.ts +30 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/fill.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/filter.d.ts +29 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/filter.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/format.d.ts +9 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/format.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/ast.d.ts +113 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/ast.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/move.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/move.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/parse.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/parse.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/print.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/print.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/rewrite.d.ts +65 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/rewrite.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/walk.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/walk.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/generated.d.ts +46 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/generated.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/html.d.ts +34 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/html.js +20 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/import.d.ts +11 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/import.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/index.d.ts +38 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/index.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/inspect.d.ts +25 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/inspect.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/patch.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/patch.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/profile.d.ts +30 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/profile.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/rules.d.ts +56 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/rules.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/scenario.d.ts +42 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/scenario.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/series.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/series.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/sort.d.ts +24 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/sort.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/structure.d.ts +38 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/validate.d.ts +26 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/validate.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/values.d.ts +67 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/values.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +315 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/write.d.ts +5 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/write.js +21 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +42 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/colors.d.ts +19 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/colors.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.d.ts +21 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.js +4 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.d.ts +5 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.js +17 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +44 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/index.d.ts +5 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/index.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/numfmt.d.ts +8 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/numfmt.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +117 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.d.ts +23 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/theme.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/theme.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.d.ts +17 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/xml.d.ts +28 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/xml.js +3 -0
- package/dist/node_modules/@allyhub-next/sheet/package.json +21 -0
- package/dist/node_modules/@allyhub-next/slides-core/LICENSE +241 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/animation.d.ts +129 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/animation.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +649 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +4 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.d.ts +18 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +165 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.d.ts +11 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/check.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/check.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +146 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.d.ts +109 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.js +4 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +21 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/measure.d.ts +34 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/measure.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +275 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.d.ts +58 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/path.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/path.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/placeholders.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/placeholders.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +181 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.d.ts +43 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.js +3 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +63 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/strict.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/theme.d.ts +72 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/theme.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/units.d.ts +35 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/units.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/package.json +14 -0
- package/dist/node_modules/@allyhub-next/video-core/LICENSE +241 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/export.d.ts +6 -5
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/export.js +1 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/fact.d.ts +180 -5
- package/dist/node_modules/@allyhub-next/video-core/dist/fact.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/formats.d.ts +6 -41
- package/dist/node_modules/@allyhub-next/video-core/dist/formats.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/index.d.ts +0 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/index.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/measure.d.ts +93 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/measure.js +5 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/piece.d.ts +8 -9
- package/dist/node_modules/@allyhub-next/video-core/dist/piece.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/problem.d.ts +10 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +2 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/render-types.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/schema.d.ts +0 -2
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/script-edit.d.ts +4 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/script.d.ts +8 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/script.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/timeline.d.ts +34 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/package.json +1 -1
- package/dist/parts.d.ts +2 -2
- package/dist/phone.js +1 -1
- package/dist/piece.d.ts +7 -32
- package/dist/piece.js +1 -1
- package/dist/props.d.ts +53 -10
- package/dist/sheets.d.ts +2 -0
- package/dist/sheets.js +2 -0
- package/dist/slides.d.ts +8 -0
- package/dist/slides.js +2 -0
- package/docs/README.md +3 -3
- package/docs/batches.md +2 -2
- package/docs/defaults.md +107 -3
- package/docs/docs.md +1 -1
- package/docs/project.md +6 -6
- package/docs/scenery.md +1 -1
- package/docs/sheets.md +377 -84
- package/docs/slides.md +182 -80
- package/docs/speech.md +1 -1
- package/package.json +17 -18
- package/node_modules/@allyhub-next/formats/dist/data/reference.js +0 -2
- package/node_modules/@allyhub-next/formats/dist/data/script.js +0 -2
- package/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +0 -214
- package/node_modules/@allyhub-next/formats/dist/data/sheet.js +0 -2
- package/node_modules/@allyhub-next/formats/dist/index.js +0 -2
- package/node_modules/@allyhub-next/formats/dist/items.js +0 -2
- package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +0 -301
- package/node_modules/@allyhub-next/formats/dist/schemas.js +0 -2
- package/node_modules/@allyhub-next/protocol/dist/app.d.ts +0 -101
- package/node_modules/@allyhub-next/protocol/dist/app.js +0 -2
- package/node_modules/@allyhub-next/protocol/dist/index.js +0 -2
- package/node_modules/@allyhub-next/protocol/dist/runtimes.js +0 -2
- package/node_modules/@allyhub-next/protocol/dist/tools.js +0 -2
- package/node_modules/@allyhub-next/runtimes/dist/index.js +0 -2
- package/node_modules/@allyhub-next/runtimes/dist/lock.js +0 -2
- package/node_modules/@allyhub-next/runtimes/dist/runtimes.js +0 -3
- package/node_modules/@allyhub-next/runtimes/dist/unpack.js +0 -2
- package/node_modules/@allyhub-next/scenery/dist/phone.js +0 -2
- package/node_modules/@allyhub-next/video-core/dist/fact.js +0 -2
- package/node_modules/@allyhub-next/video-core/dist/formats.js +0 -2
- package/node_modules/@allyhub-next/video-core/dist/index.js +0 -2
- package/node_modules/@allyhub-next/video-core/dist/measure.js +0 -5
- package/node_modules/@allyhub-next/video-core/dist/piece.js +0 -2
- package/node_modules/@allyhub-next/video-core/dist/problem.js +0 -2
- package/node_modules/@allyhub-next/video-core/dist/script.js +0 -2
- package/node_modules/@allyhub-next/video-core/dist/slides.d.ts +0 -37
- package/node_modules/@allyhub-next/video-core/dist/slides.js +0 -2
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/LICENSE +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/at-cut.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/at-cut.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/decode.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/decode.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/envelope.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/envelope.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/index.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/index.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/levels.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/levels.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/master.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/master.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/music.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/music.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/decode.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/decode.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/ebur128.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/ebur128.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/ffmpeg.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/ffmpeg.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/index.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/index.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/loudness.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/loudness.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/master.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/master.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/measure.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/measure.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/mix.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/mix.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/plan.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/plan.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recorded.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recorded.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/bandwidth.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/bandwidth.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/chain.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/chain.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/dynamics.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/dynamics.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/fft.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/fft.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/filters.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/filters.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/fit.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/fit.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/index.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/index.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/loudness.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/loudness.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/measure.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/measure.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/mic.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/mic.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/noise.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/noise.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/presets.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/presets.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/room.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/room.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/setup.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/setup.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/vec.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/vec.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/render.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/render.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/sfx.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/sfx.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/shape.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/shape.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/voice.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/voice.js +0 -0
- /package/{node_modules/@allyhub-next/formats → dist/node_modules/@allyhub-next/chart}/LICENSE +0 -0
- /package/{node_modules/@allyhub-next/protocol → dist/node_modules/@allyhub-next/formats}/LICENSE +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/comments.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/comments.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/config.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/config.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/edits.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/edits.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/elements.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/elements.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/faces.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/faces.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/file.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/file.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/gen.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/gen.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/messages.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/messages.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/words.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/words.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/layout.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/layout.js +0 -0
- /package/{node_modules/@allyhub-next/runtimes → dist/node_modules/@allyhub-next/protocol}/LICENSE +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cloud.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cloud.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/files.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/files.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/jsonrpc.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/jsonrpc.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/registry.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/routes.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/routes.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/teams.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/teams.js +0 -0
- /package/{node_modules/@allyhub-next/scenery → dist/node_modules/@allyhub-next/runtimes}/LICENSE +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/bundled.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/bundled.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/download.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/download.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/errors.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/home.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/home.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/manifest.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/manifest.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/manifest.json +0 -0
- /package/{node_modules/@allyhub-next/video-core → dist/node_modules/@allyhub-next/scenery}/LICENSE +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/NOTICE +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/aim.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/aim.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/bake.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/bake.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/camera.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/camera.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/curve.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/curve.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/define.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/define.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/fit.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/fit.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/glass.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/glass.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/handheld.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/handheld.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/hull.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/hull.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/index.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/index.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/lens.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/lens.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/moire.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/motion.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/motion.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/move.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/move.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/noise.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/noise.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/report.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/report.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/screen-focus.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/screen-focus.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/screen.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/screen.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/solve.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/solve.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/timing.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/timing.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/vec.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/vec.js +0 -0
- /package/{node_modules/@allyhub-next/video-core/dist/render-types.js → dist/node_modules/@allyhub-next/slides-core/dist/model.js} +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/anchors.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/anchors.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/audio-types.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/audio-types.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/backdrop.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/backdrop.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/captions.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/captions.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/console.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/console.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/contrast.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/contrast.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/cut-report.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/cut-report.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/edit.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/edit.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/edits.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/edits.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/footage-motion.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/footage-motion.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/gen.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/gen.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/look.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/look.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/marks.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/marks.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/matrix.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/matrix.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/media.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/media.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/messages.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/messages.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/motion.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/motion.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/music.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/music.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/placement.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/placement.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/render-types.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/schema.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/script-edit.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/seams.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/seams.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/sound-under.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/sound-under.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/speech.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/speech.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/timeline.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/timing.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/timing.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/transcript.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/transcript.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/transition.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/transition.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/voice.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/voice.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/words.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/words.js +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export*from"./units.js";export*from"./enums.js";export*from"./strict.js";export*from"./animation.js";export*from"@allyhub-next/chart";export*from"./chart-api.js";export{chartOfFile}from"./chart-file.js";export*from"./office.js";export*from"./path.js";export*from"./placeholders.js";export*from"./theme.js";export*from"./model.js";export*from"./api.js";export*from"./resolve.js";export*from"./file.js";export*from"./script.js";export*from"./stage.js";export*from"./check.js";export*from"./capabilities.js";export*from"./measure.js";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type DeckLayout, type DeckShapeLayout, type Fact, type FactPlace } from "@allyhub-next/video-core";
|
|
2
|
+
export interface DeckFactOptions {
|
|
3
|
+
/** near-alignment: lines this many points apart or fewer, and more than `aligned`, are reported. */
|
|
4
|
+
within: number;
|
|
5
|
+
/** near-alignment: lines this close, in points, are in line. */
|
|
6
|
+
aligned: number;
|
|
7
|
+
/** placement-drift: frames further apart than this, in points, are different places. */
|
|
8
|
+
drift: number;
|
|
9
|
+
/** read-size: a room's screen width and its farthest seat, metres; without it, no room is measured. */
|
|
10
|
+
room?: {
|
|
11
|
+
screen: number;
|
|
12
|
+
distance: number;
|
|
13
|
+
};
|
|
14
|
+
/** read-size: the phone a slide is fitted on, in points, upright. */
|
|
15
|
+
phone: [number, number];
|
|
16
|
+
/** Pixels a box may reach past a line before it is past it (antialiasing). */
|
|
17
|
+
slack: number;
|
|
18
|
+
/** deck-fonts: the fonts every PowerPoint, Keynote and Google Slides has. */
|
|
19
|
+
standard?: readonly string[];
|
|
20
|
+
/** Only shapes of these levels are measured; every level unless given. */
|
|
21
|
+
levels?: readonly DeckShapeLayout["level"][];
|
|
22
|
+
/** Shapes by name left out of every fact, `*` for any letters; none unless given. */
|
|
23
|
+
except?: readonly string[];
|
|
24
|
+
}
|
|
25
|
+
export declare const DECK_FACT_DEFAULTS: DeckFactOptions;
|
|
26
|
+
/**
|
|
27
|
+
* The facts of a deck as drawn, each placed at its slide (`part`, its
|
|
28
|
+
* still's `t`), a deck's own (type-in-use, placement-drift) at none.
|
|
29
|
+
*/
|
|
30
|
+
export declare function deckFacts(layout: DeckLayout, frame: {
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
}, place: FactPlace, given?: Partial<DeckFactOptions>): Fact[];
|
|
34
|
+
//# sourceMappingURL=measure.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{READ_DEFAULTS as G,fact as u,phoneScale as J}from"@allyhub-next/video-core";import{STANDARD_FONTS as K}from"./theme.js";export const DECK_FACT_DEFAULTS={within:8,aligned:.5,drift:1,phone:G.phone,slack:1};const z=e=>e[0]+e[2],k=e=>e[1]+e[3],E=e=>Math.max(0,e[2])*Math.max(0,e[3]),M=(e,o=2)=>{const p=10**o;return Math.round(e*p)/p};function O(e,o,p){const y=[],n=(m,l)=>{l>p&&y.push({side:m,px:Math.round(l)})};return n("left",o[0]-e[0]),n("top",o[1]-e[1]),n("right",z(e)-z(o)),n("bottom",k(e)-k(o)),y}const R=(e,o)=>{const p=Math.max(e[0],o[0]),y=Math.max(e[1],o[1]);return[p,y,Math.min(z(e),z(o))-p,Math.min(k(e),k(o))-y]},Q=(e,o,p)=>e[0]>=o[0]-p&&e[1]>=o[1]-p&&z(e)<=z(o)+p&&k(e)<=k(o)+p,D={left:e=>e[0],right:z,"centre-x":e=>e[0]+e[2]/2,top:e=>e[1],bottom:k,"centre-y":e=>e[1]+e[3]/2},P=e=>e.opaque||!e.text?.glyphs?e.box:e.text.glyphs,V=new Set(Object.keys(D)),W=new Set(["left","right","top","bottom"]);function C(e){if(e.opaque)return V;if(!e.text?.glyphs)return W;const o=e.text.align??"l";return new Set([o==="ctr"?"centre-x":o==="r"?"right":"left"])}const X=(e,o)=>o.some(p=>new RegExp(`^${p.split("*").map(y=>y.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&")).join(".*")}$`,"su").test(e)),Y=e=>e.box[2]>0||e.box[3]>0;export function deckFacts(e,o,p,y={}){const n={...DECK_FACT_DEFAULTS,...y},m=t=>M(t/e.pxPerPt),l=[],F=[0,0,o.width,o.height],L=new Map,N=new Map,H=new Map;for(const t of e.slides){const i={...p,part:t.slide,t:t.t},w=N.get(t.slide)??{at:i,total:t.steps??1,measured:0,shapes:new Map};N.set(t.slide,w),w.measured++;for(const c of t.shapes){if(c.level!=="slide")continue;const s=w.shapes.get(c.name)??{hidden:0,by:[]};c.hidden===!0&&s.hidden++,w.shapes.set(c.name,s)}const x=t.shapes.filter(c=>Y(c)&&c.hidden!==!0&&(n.levels===void 0||n.levels.includes(c.level))&&!X(c.name,n.except??[]));let A=0,q=0,I=0;for(const[c,s]of x.entries()){s.chart&&l.push(u("chart-data",i,{shape:s.name,...s.chart}));const f=(s.rows??[]).flatMap((a,d)=>a.drawn>a.set+n.slack?[{row:d,set:m(a.set),drawn:m(a.drawn)}]:[]);f.length>0&&l.push(u("table-grown",i,{shape:s.name,set:m(s.frame[3]),drawn:m(s.box[3]),rows:f}));const h=s.text;if(h?.glyphs){I++,A+=h.words,q+=h.lines.length;const a=O(h.glyphs,s.box,n.slack);a.length>0&&l.push(u("text-overflow",i,{shape:s.name,text:h.text,box:s.box,glyphs:h.glyphs,edges:a,lines:h.lines.length,past:h.lines.filter(r=>O(r,s.box,n.slack).length>0).length,...h.scale===void 0?{}:{scale:h.scale}}));for(const r of h.type){const g=`${String(r.size)}/${String(r.weight)}`,b=L.get(g)??{size:r.size,weight:r.weight,slides:new Set,shapes:new Set};b.slides.add(t.slide),b.shapes.add(`${t.slide}/${s.name}`),L.set(g,b)}const d=h.type.reduce((r,g)=>r===void 0||g.size<r.size?g:r,void 0);if(d){const r=n.room,g=d.xHeight===void 0?"em":"x",b=r&&(d.xHeight??d.size)*(r.screen*1e3/(o.width/e.pxPerPt));l.push(u("read-size",i,{shape:s.name,text:h.text,size:d.size,...d.xHeight===void 0?{}:{xHeight:d.xHeight},...r&&b!==void 0?{screen:{by:g,mm:M(b,1),arcmin:M(Math.atan(b/1e3/r.distance)*180*60/Math.PI,1)}}:{},phone:M(d.size*e.pxPerPt*J([o.width,o.height],n.phone),1),options:{...r?{room:{...r}}:{},phone:[...n.phone]}}))}}const $=O(s.box,F,n.slack);if($.length>0){const a=E(s.box);l.push(u("shape-off-slide",i,{shape:s.name,box:s.box,edges:$,share:a>0?M(1-E(R(s.box,F))/a):1}))}if(s.picture){const[a,d]=s.picture.shown;if(a>0&&d>0){const r=Math.max(s.box[2]/a,s.box[3]/d),g=b=>b/e.pxPerPt/72;l.push(u("picture-resolution",i,{shape:s.name,source:s.picture.source,shown:s.picture.shown,box:s.box,scale:M(r),ppi:Math.round(Math.min(a/g(s.box[2]),d/g(s.box[3]))),stretch:M(s.box[2]/a/(s.box[3]/d)-1)}))}}const S=x.slice(c+1).find(a=>a.opaque&&Q(s.box,a.box,n.slack)),v=w.shapes.get(s.name);if(v?v.by.push(S?.name):S&&l.push(u("shape-hidden",i,{shape:s.name,by:S.name})),s.level==="slide"){const a=`${t.layout}\0${s.name}`,d=H.get(a)??new Map,r=[m(s.frame[0]),m(s.frame[1]),m(s.frame[2]),m(s.frame[3])],g=[...d.values()].find(b=>b.frame.every((U,B)=>Math.abs(U-(r[B]??0))<=n.drift));g?g.slides.includes(t.slide)||g.slides.push(t.slide):d.set(r.join(","),{frame:r,slides:[t.slide]}),H.set(a,d)}}for(let c=0;c<x.length;c++)for(let s=c+1;s<x.length;s++){const f=x[c],h=x[s];if(!f||!h)continue;const $=f.level==="slide"||h.level==="slide",S=R(P(f),P(h));if($&&f.level==="slide"&&h.level==="slide"&&S[2]>n.slack&&S[3]>n.slack){const v=E(S);l.push(u("shape-overlap",i,{a:f.name,b:h.name,area:Math.round(v),share:M(v/Math.max(1,Math.min(E(P(f)),E(P(h)))))}))}if($)for(const[v,a]of Object.entries(D)){if(!C(f).has(v)||!C(h).has(v))continue;const d=Math.abs(m(a(P(f)))-m(a(P(h))));d>n.aligned&&d<=n.within&&l.push(u("near-alignment",i,{a:f.name,b:h.name,line:v,gap:M(d),options:{within:n.within,aligned:n.aligned}}))}}for(const c of x)if(!(c.level!=="slide"||!c.opaque))for(const s of["centre-x","centre-y"]){const f=Math.abs(m(D[s](c.box))-m(D[s](F)));f>n.aligned&&f<=n.within&&l.push(u("near-alignment",i,{a:c.name,b:"slide",line:s,gap:M(f),options:{within:n.within,aligned:n.aligned}}))}l.push(u("words-on-slide",i,{words:A,lines:q,texts:I}))}for(const[t,i]of H){if(i.size<2)continue;const[w="",x=""]=t.split("\0");l.push(u("placement-drift",p,{layout:w,shape:x,places:[...i.values()],options:{drift:n.drift}}))}if(e.fonts&&e.fonts.length>0){const t=new Set(y.standard??K);l.push(u("deck-fonts",p,{fonts:e.fonts.map(i=>({...i,standard:t.has(i.name)})),options:{standard:[...t]}}))}const T=[...L.values()].map(t=>({size:t.size,weight:t.weight,slides:t.slides.size,shapes:t.shapes.size})).sort((t,i)=>t.size-i.size||t.weight-i.weight),_=T[0];_&&l.push(u("type-in-use",p,{type:T,smallest:_.size}));for(const t of N.values())for(const[i,w]of t.shapes){const[x]=w.by;x!==void 0&&w.by.every(A=>A!==void 0)&&l.push(u("shape-hidden",t.at,{shape:i,by:x})),t.measured>=t.total&&w.hidden===t.measured&&l.push(u("shape-hidden",t.at,{shape:i,never:!0}))}const j=new Set;return l.filter(t=>{const i=JSON.stringify([t.kind,t.part,t.data]);return j.has(i)?!1:(j.add(i),!0)})}
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import type { AnimationFile, LineDash, TransitionFile, LineEnd, ShapeGeometry, TextAlign, ThemeColor } from "@allyhub-next/formats";
|
|
2
|
+
import type { ChartDef, Color } from "@allyhub-next/chart";
|
|
3
|
+
import type { Anchor, AutoSize, PlaceholderType } from "./enums.js";
|
|
4
|
+
import type { ThemeInput } from "./theme.js";
|
|
5
|
+
import type { Length } from "./units.js";
|
|
6
|
+
export interface Frame {
|
|
7
|
+
left: Length;
|
|
8
|
+
top: Length;
|
|
9
|
+
width: Length;
|
|
10
|
+
height: Length;
|
|
11
|
+
}
|
|
12
|
+
export type { Color };
|
|
13
|
+
/** Character properties (`a:rPr`, `a:defRPr`): what python-pptx's `Font` holds. */
|
|
14
|
+
export interface FontDef {
|
|
15
|
+
/** A typeface, or the theme's (`+mj-lt`, `+mn-lt`). */
|
|
16
|
+
name?: string;
|
|
17
|
+
size?: Length;
|
|
18
|
+
bold?: boolean;
|
|
19
|
+
italic?: boolean;
|
|
20
|
+
underline?: boolean;
|
|
21
|
+
color?: ThemeColor;
|
|
22
|
+
/** A colour that is not the theme's, `#RRGGBB`. */
|
|
23
|
+
rgb?: string;
|
|
24
|
+
/** Space added between letters (negative tightens), EMU (`a:rPr` spc). */
|
|
25
|
+
spacing?: Length;
|
|
26
|
+
}
|
|
27
|
+
export interface RunDef {
|
|
28
|
+
/** Its text; `\v` is a line break in the paragraph (`a:br`). */
|
|
29
|
+
text: string;
|
|
30
|
+
font?: FontDef;
|
|
31
|
+
/** The script's `` `code` ``: its font is the theme's code font. */
|
|
32
|
+
code?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/** Line spacing (`a:lnSpc`): a multiple of the line (`a:spcPct`) or a fixed height (`a:spcPts`). */
|
|
35
|
+
export type LineSpacing = {
|
|
36
|
+
lines: number;
|
|
37
|
+
} | {
|
|
38
|
+
fixed: Length;
|
|
39
|
+
};
|
|
40
|
+
/** A paragraph's properties (`a:pPr`), and a list style's level (`a:lvlNpPr`). */
|
|
41
|
+
export interface ParagraphFormatDef {
|
|
42
|
+
alignment?: TextAlign;
|
|
43
|
+
line_spacing?: LineSpacing;
|
|
44
|
+
space_before?: Length;
|
|
45
|
+
space_after?: Length;
|
|
46
|
+
/** Its bullet character (`a:buChar`); null: none (`a:buNone`). */
|
|
47
|
+
bullet?: string | null;
|
|
48
|
+
/** The bullet's typeface (`a:buFont`). */
|
|
49
|
+
bullet_font?: string;
|
|
50
|
+
/** Where its lines start (`@marL`), and its first line from there (`@indent`, negative for a hanging bullet). */
|
|
51
|
+
margin_left?: Length;
|
|
52
|
+
indent?: Length;
|
|
53
|
+
/** Its runs' default character properties (`a:defRPr`). */
|
|
54
|
+
font?: FontDef;
|
|
55
|
+
}
|
|
56
|
+
export interface ParagraphDef extends ParagraphFormatDef {
|
|
57
|
+
runs: RunDef[];
|
|
58
|
+
/** Its indent level, 0 to 8 (`@lvl`). */
|
|
59
|
+
level: number;
|
|
60
|
+
}
|
|
61
|
+
/** The nine levels of a list style (`a:lstStyle`, a master's `p:titleStyle`…), level 0 first. */
|
|
62
|
+
export type LevelsDef = ParagraphFormatDef[];
|
|
63
|
+
/** A text frame (`p:txBody`): its body properties, its list style and its paragraphs. */
|
|
64
|
+
export interface TextFrameDef {
|
|
65
|
+
paragraphs: ParagraphDef[];
|
|
66
|
+
/** Its list style, nine levels: a placeholder's for the text a slide gives it. */
|
|
67
|
+
levels: LevelsDef;
|
|
68
|
+
vertical_anchor?: Anchor;
|
|
69
|
+
auto_size?: AutoSize;
|
|
70
|
+
word_wrap?: boolean;
|
|
71
|
+
margin_left?: Length;
|
|
72
|
+
margin_top?: Length;
|
|
73
|
+
margin_right?: Length;
|
|
74
|
+
margin_bottom?: Length;
|
|
75
|
+
}
|
|
76
|
+
export type ShapeKind = "placeholder" | "textbox" | "picture" | "movie" | "autoshape" | "table" | "chart" | "component";
|
|
77
|
+
/** A table cell's edge (`a:lnL`, `a:lnR`, `a:lnT`, `a:lnB`). */
|
|
78
|
+
export interface CellBorder {
|
|
79
|
+
color: Color;
|
|
80
|
+
width: Length;
|
|
81
|
+
}
|
|
82
|
+
/** A table's cell (`a:tc`). */
|
|
83
|
+
export interface TableCellDef {
|
|
84
|
+
text: TextFrameDef;
|
|
85
|
+
fill?: Color | null;
|
|
86
|
+
borders?: Partial<Record<"left" | "right" | "top" | "bottom", CellBorder>>;
|
|
87
|
+
/** Columns and rows it takes, merged (`@gridSpan`, `@rowSpan`). */
|
|
88
|
+
span_width?: number;
|
|
89
|
+
span_height?: number;
|
|
90
|
+
/** Another cell's, merged over it (`@hMerge`, `@vMerge`). */
|
|
91
|
+
spanned?: boolean;
|
|
92
|
+
}
|
|
93
|
+
/** A table (`a:tbl`). What PowerPoint's style would paint is the deck's own: a table here has no style, so its look is its cells'. */
|
|
94
|
+
export interface TableDef {
|
|
95
|
+
columns: Length[];
|
|
96
|
+
rows: {
|
|
97
|
+
height: Length;
|
|
98
|
+
cells: TableCellDef[];
|
|
99
|
+
}[];
|
|
100
|
+
/** What its first row and so on are, for those who read it by them (`a:tblPr`); they paint nothing. */
|
|
101
|
+
first_row?: boolean;
|
|
102
|
+
first_col?: boolean;
|
|
103
|
+
last_row?: boolean;
|
|
104
|
+
last_col?: boolean;
|
|
105
|
+
horz_banding?: boolean;
|
|
106
|
+
vert_banding?: boolean;
|
|
107
|
+
}
|
|
108
|
+
/** A step of a freeform's outline, in its path's units. */
|
|
109
|
+
export type PathStep = {
|
|
110
|
+
op: "move";
|
|
111
|
+
x: number;
|
|
112
|
+
y: number;
|
|
113
|
+
} | {
|
|
114
|
+
op: "line";
|
|
115
|
+
x: number;
|
|
116
|
+
y: number;
|
|
117
|
+
} | {
|
|
118
|
+
op: "curve";
|
|
119
|
+
x1: number;
|
|
120
|
+
y1: number;
|
|
121
|
+
x2: number;
|
|
122
|
+
y2: number;
|
|
123
|
+
x: number;
|
|
124
|
+
y: number;
|
|
125
|
+
} | {
|
|
126
|
+
op: "close";
|
|
127
|
+
};
|
|
128
|
+
/** A freeform's outline: steps in a box of `w` × `h` units, stretched to the shape's frame (`a:path`). */
|
|
129
|
+
export interface FreeformPath {
|
|
130
|
+
w: number;
|
|
131
|
+
h: number;
|
|
132
|
+
steps: PathStep[];
|
|
133
|
+
}
|
|
134
|
+
/** A shape as a master, a layout or a generator's code makes it. */
|
|
135
|
+
export interface ShapeDef {
|
|
136
|
+
name: string;
|
|
137
|
+
kind: ShapeKind;
|
|
138
|
+
/** Its frame; a layout's placeholder without one takes its master's (`a:xfrm` left out). */
|
|
139
|
+
frame?: Frame;
|
|
140
|
+
/** A connector's ends: it runs from its frame's top left to its bottom right, unless flipped. */
|
|
141
|
+
flip?: {
|
|
142
|
+
h?: boolean;
|
|
143
|
+
v?: boolean;
|
|
144
|
+
};
|
|
145
|
+
/** Degrees clockwise about its centre, 0 up to 360 (`a:xfrm` rot). */
|
|
146
|
+
rotation?: number;
|
|
147
|
+
placeholder?: {
|
|
148
|
+
type: PlaceholderType;
|
|
149
|
+
idx: number;
|
|
150
|
+
};
|
|
151
|
+
text?: TextFrameDef;
|
|
152
|
+
fill?: Color | null;
|
|
153
|
+
line?: Color | null;
|
|
154
|
+
line_width?: Length;
|
|
155
|
+
line_dash?: LineDash;
|
|
156
|
+
/** What the end of its line where it starts has (`a:headEnd`), and where it ends (`a:tailEnd`). */
|
|
157
|
+
line_begin?: LineEnd;
|
|
158
|
+
line_end?: LineEnd;
|
|
159
|
+
geometry?: ShapeGeometry;
|
|
160
|
+
/** A freeform's outline (`a:custGeom`), in place of a geometry. */
|
|
161
|
+
path?: FreeformPath;
|
|
162
|
+
/** A table (`p:graphicFrame`). */
|
|
163
|
+
table?: TableDef;
|
|
164
|
+
/** A chart (`p:graphicFrame`). */
|
|
165
|
+
chart?: ChartDef;
|
|
166
|
+
/** The group it is in (`p:grpSp`), by a name the group's shapes share; a group is a file's, and drawn as its shapes. */
|
|
167
|
+
group?: string;
|
|
168
|
+
/** Its geometry's adjustments (`a:avLst`), as python-pptx's: a rounded rectangle's corner, a share of its shorter side. */
|
|
169
|
+
adjustments?: number[];
|
|
170
|
+
/** A picture or a movie: a path, and the folder of the module that named it (a project path). */
|
|
171
|
+
media?: {
|
|
172
|
+
path: string;
|
|
173
|
+
base: string;
|
|
174
|
+
poster?: number;
|
|
175
|
+
};
|
|
176
|
+
component?: {
|
|
177
|
+
name: string;
|
|
178
|
+
props: Record<string, unknown>;
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
export interface LayoutDef {
|
|
182
|
+
name: string;
|
|
183
|
+
master: string;
|
|
184
|
+
background?: Color | undefined;
|
|
185
|
+
/** False: its master's shapes are not drawn on its slides (`@showMasterSp`, PowerPoint's Hide Background Graphics). */
|
|
186
|
+
display_master_shapes?: boolean;
|
|
187
|
+
/** Its placeholders and its own shapes, back to front. */
|
|
188
|
+
shapes: ShapeDef[];
|
|
189
|
+
}
|
|
190
|
+
/** A master's text styles (`p:txStyles`): its titles', its other placeholders', and other text's. */
|
|
191
|
+
export interface TextStylesDef {
|
|
192
|
+
title: LevelsDef;
|
|
193
|
+
body: LevelsDef;
|
|
194
|
+
other: LevelsDef;
|
|
195
|
+
}
|
|
196
|
+
export interface MasterDef {
|
|
197
|
+
name: string;
|
|
198
|
+
background: Color;
|
|
199
|
+
text_styles: TextStylesDef;
|
|
200
|
+
/** Its placeholders (the default frame and style of each type) and the shapes every slide shows, back to front. */
|
|
201
|
+
shapes: ShapeDef[];
|
|
202
|
+
layouts: LayoutDef[];
|
|
203
|
+
}
|
|
204
|
+
/** A prop a component exposes to a person, as data (the SDK's text(), number()…). */
|
|
205
|
+
export interface PropSpec {
|
|
206
|
+
type: string;
|
|
207
|
+
optional?: boolean;
|
|
208
|
+
of?: PropSpec;
|
|
209
|
+
fields?: Readonly<Record<string, PropSpec>>;
|
|
210
|
+
kind?: string;
|
|
211
|
+
}
|
|
212
|
+
/** A component: a shape drawn by code (layers of the layer contract) in its frame. */
|
|
213
|
+
export interface ComponentDef {
|
|
214
|
+
name: string;
|
|
215
|
+
props: Readonly<Record<string, PropSpec>>;
|
|
216
|
+
/** The layers it draws, laid out in its frame's pixels (the video's layer contract). */
|
|
217
|
+
layers: (props: Record<string, unknown>, ctx: ComponentContext) => unknown[];
|
|
218
|
+
}
|
|
219
|
+
/** What a component's layers function is given. */
|
|
220
|
+
export interface ComponentContext {
|
|
221
|
+
/** Its frame's pixels as the stage draws it. */
|
|
222
|
+
width: number;
|
|
223
|
+
height: number;
|
|
224
|
+
/** The slide it is on. */
|
|
225
|
+
slide: string;
|
|
226
|
+
}
|
|
227
|
+
/** A slide a generator makes. */
|
|
228
|
+
export interface GeneratedSlideDef {
|
|
229
|
+
/** Its id in the block: the slide is `<block>/<id>`. */
|
|
230
|
+
id: string;
|
|
231
|
+
layout: string;
|
|
232
|
+
/** Its layout's placeholders it moved or styled, by idx, and the shapes it adds. */
|
|
233
|
+
shapes: ShapeDef[];
|
|
234
|
+
/** Text set on a layout's placeholder, by its idx. */
|
|
235
|
+
text: Record<number, ParagraphDef[]>;
|
|
236
|
+
/** Its Animation Pane, in order. */
|
|
237
|
+
animations?: AnimationFile[];
|
|
238
|
+
/** How it comes on from the slide before. */
|
|
239
|
+
transition?: TransitionFile;
|
|
240
|
+
notes?: string;
|
|
241
|
+
}
|
|
242
|
+
export interface GeneratorContext {
|
|
243
|
+
/** A data file (CSV rows, YAML, JSON) from the deck's folder. */
|
|
244
|
+
data: (path: string) => unknown;
|
|
245
|
+
}
|
|
246
|
+
export interface GeneratorDef {
|
|
247
|
+
name: string;
|
|
248
|
+
make: (ctx: GeneratorContext) => GeneratedSlideDef[];
|
|
249
|
+
}
|
|
250
|
+
/** A deck's definition: what slides.ts makes. */
|
|
251
|
+
export interface DeckDef {
|
|
252
|
+
slide_width: Length;
|
|
253
|
+
slide_height: Length;
|
|
254
|
+
theme?: ThemeInput;
|
|
255
|
+
masters: MasterDef[];
|
|
256
|
+
components: Record<string, ComponentDef>;
|
|
257
|
+
generators: Record<string, GeneratorDef>;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* A deck as its stage drew it, in one language: what its PowerPoint file
|
|
261
|
+
* is written from. Its masters and layouts as code made them, its slides
|
|
262
|
+
* resolved (`ResolvedSlide`, resolve.ts), its theme as resolved.
|
|
263
|
+
*/
|
|
264
|
+
export interface DrawnDeck<Slide = unknown, DeckTheme = unknown> {
|
|
265
|
+
width: Length;
|
|
266
|
+
height: Length;
|
|
267
|
+
theme: DeckTheme;
|
|
268
|
+
masters: MasterDef[];
|
|
269
|
+
slides: Slide[];
|
|
270
|
+
/** The share autofit shrank a text to, by `<slide>/<shape>`. */
|
|
271
|
+
fitted: Record<string, number>;
|
|
272
|
+
/** The deck's language, its combo's. */
|
|
273
|
+
lang?: string;
|
|
274
|
+
}
|
|
275
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Anchor, AutoSize, PlaceholderType } from "./enums.js";
|
|
2
|
+
import type { Color, FontDef, ParagraphFormatDef, TextStylesDef } from "./model.js";
|
|
3
|
+
import { type Length } from "./units.js";
|
|
4
|
+
/** A master's text styles, as Office's master has them (`p:txStyles`). */
|
|
5
|
+
export declare const OFFICE_TEXT_STYLES: TextStylesDef;
|
|
6
|
+
/** What text has when nothing above it says: PowerPoint's own, under any master. */
|
|
7
|
+
export declare const TEXT_FALLBACK: Required<Pick<ParagraphFormatDef, "alignment" | "line_spacing" | "space_before" | "space_after" | "indent">> & {
|
|
8
|
+
font: Required<Pick<FontDef, "name" | "size" | "color">>;
|
|
9
|
+
};
|
|
10
|
+
/** A text frame's insets when none are set (`a:bodyPr` lIns, tIns…), python-pptx's too. */
|
|
11
|
+
export declare const TEXT_INSETS: {
|
|
12
|
+
readonly left: number;
|
|
13
|
+
readonly top: number;
|
|
14
|
+
readonly right: number;
|
|
15
|
+
readonly bottom: number;
|
|
16
|
+
};
|
|
17
|
+
/** Which of a master's text styles a placeholder's text takes. */
|
|
18
|
+
export declare const styleKindOf: (type: PlaceholderType | undefined) => keyof TextStylesDef;
|
|
19
|
+
/** A placeholder's text frame by its type, where no level sets it, as Office's master has it. */
|
|
20
|
+
export declare function placeholderFrame(type: PlaceholderType): {
|
|
21
|
+
vertical_anchor: Anchor;
|
|
22
|
+
auto_size: AutoSize;
|
|
23
|
+
word_wrap: boolean;
|
|
24
|
+
};
|
|
25
|
+
/** The idx a placeholder of a type has when it is not the only one (PowerPoint's: title 0, a layout's footers 10, 11, 12). */
|
|
26
|
+
export declare const FOOTER_IDX: Partial<Record<PlaceholderType, number>>;
|
|
27
|
+
/** A text box as python-pptx's `add_textbox` makes it: no wrapping, the shape fitted to its text. */
|
|
28
|
+
export declare const TEXTBOX_FRAME: {
|
|
29
|
+
readonly word_wrap: false;
|
|
30
|
+
readonly auto_size: "shape";
|
|
31
|
+
};
|
|
32
|
+
/** A text box a person draws in the editor, as PowerPoint's Text Box tool: it wraps, and grows to its text. */
|
|
33
|
+
export declare const DRAWN_TEXTBOX_FRAME: {
|
|
34
|
+
readonly word_wrap: true;
|
|
35
|
+
readonly auto_size: "shape";
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* An autoshape as python-pptx's `add_shape` makes it (its `p:style`): filled
|
|
39
|
+
* and outlined in accent 1 (the theme's first line, 0.5 pt), its text in
|
|
40
|
+
* light 1 and in its middle. Its one empty paragraph is centred: text set
|
|
41
|
+
* with `text` replaces it and is not (python-pptx's, and PowerPoint draws
|
|
42
|
+
* it so); a shape slides.yaml makes centres each of its paragraphs, as
|
|
43
|
+
* PowerPoint's Shapes do.
|
|
44
|
+
*/
|
|
45
|
+
export declare const AUTOSHAPE_STYLE: {
|
|
46
|
+
fill: Color;
|
|
47
|
+
line: Color;
|
|
48
|
+
line_width: Length;
|
|
49
|
+
font_color: Color;
|
|
50
|
+
vertical_anchor: Anchor;
|
|
51
|
+
alignment: "ctr";
|
|
52
|
+
};
|
|
53
|
+
/** A connector as python-pptx's `add_connector` makes it (its `p:style`): the theme's second line (1 pt) in accent 1. */
|
|
54
|
+
export declare const CONNECTOR_STYLE: {
|
|
55
|
+
readonly line: "accent1";
|
|
56
|
+
readonly line_width: number;
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=office.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{Emu as n,Inches as o,Pt as e}from"./units.js";const c=9,r=t=>Array.from({length:c},(l,i)=>t(i));export const OFFICE_TEXT_STYLES={title:r(()=>({alignment:"l",line_spacing:{lines:.9},space_before:0,bullet:null,font:{name:"+mj-lt",size:e(44),color:"dk1"}})),body:r(t=>({alignment:"l",line_spacing:{lines:.9},space_before:t===0?e(10):e(5),bullet:"•",bullet_font:"Arial",margin_left:n(228600+t*457200),indent:n(-228600),font:{name:"+mn-lt",size:e([28,24,20][t]??18),color:"dk1"}})),other:r(t=>({alignment:"l",margin_left:n(t*457200),font:{name:"+mn-lt",size:e(18),color:"dk1"}}))},TEXT_FALLBACK={alignment:"l",line_spacing:{lines:1},space_before:0,space_after:0,indent:0,font:{name:"+mn-lt",size:e(18),color:"dk1"}},TEXT_INSETS={left:o(.1),top:o(.05),right:o(.1),bottom:o(.05)},styleKindOf=t=>t===void 0?"other":t==="title"||t==="ctrTitle"?"title":"body";export function placeholderFrame(t){const l=t==="dt"||t==="ftr"||t==="sldNum";return{vertical_anchor:t==="title"||t==="ctrTitle"||l?"ctr":"t",auto_size:l?"none":"text",word_wrap:!0}}export const FOOTER_IDX={dt:10,ftr:11,sldNum:12},TEXTBOX_FRAME={word_wrap:!1,auto_size:"shape"},DRAWN_TEXTBOX_FRAME={word_wrap:!0,auto_size:"shape"},AUTOSHAPE_STYLE={fill:"accent1",line:"accent1",line_width:n(6350),font_color:"lt1",vertical_anchor:"ctr",alignment:"ctr"},CONNECTOR_STYLE={line:"accent1",line_width:n(12700)};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PathStep } from "./model.js";
|
|
2
|
+
/** A path's steps; undefined when it says anything but those four. */
|
|
3
|
+
export declare function pathSteps(d: string): PathStep[] | undefined;
|
|
4
|
+
/** Steps as slides.yaml writes them. */
|
|
5
|
+
export declare const pathText: (steps: readonly PathStep[]) => string;
|
|
6
|
+
//# sourceMappingURL=path.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
const d={M:2,L:2,C:6,Z:0};export function pathSteps(i){const e=[],r=i.trim().match(/[A-Za-z]|-?[\d.]+(?:e-?\d+)?/gu)??[];let n=0;for(;n<r.length;){const t=r[n]??"",o=d[t];if(o===void 0)return;const p=r.slice(n+1,n+1+o).map(Number);if(p.length<o||p.some(m=>!Number.isFinite(m)))return;n+=1+o;const[u=0,c=0,f=0,l=0,s=0,x=0]=p;t==="Z"?e.push({op:"close"}):t==="M"?e.push({op:"move",x:u,y:c}):t==="L"?e.push({op:"line",x:u,y:c}):e.push({op:"curve",x1:u,y1:c,x2:f,y2:l,x:s,y:x})}return e[0]?.op==="move"?e:void 0}export const pathText=i=>i.map(e=>e.op==="close"?"Z":e.op==="curve"?`C${[e.x1,e.y1,e.x2,e.y2,e.x,e.y].map(String).join(" ")}`:`${e.op==="move"?"M":"L"}${String(e.x)} ${String(e.y)}`).join(" ");
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PlaceholderType } from "./enums.js";
|
|
2
|
+
import type { MasterDef, ShapeDef } from "./model.js";
|
|
3
|
+
/** The master placeholder type a layout's placeholder of a type takes what it does not set from. */
|
|
4
|
+
export declare const BASE_TYPE: Record<PlaceholderType, PlaceholderType>;
|
|
5
|
+
/** A master's placeholder of a type. */
|
|
6
|
+
export declare function masterPlaceholder(master: Pick<MasterDef, "shapes">, type: PlaceholderType): ShapeDef | undefined;
|
|
7
|
+
//# sourceMappingURL=placeholders.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export const BASE_TYPE={title:"title",ctrTitle:"title",subTitle:"body",body:"body",pic:"body",media:"body",obj:"body",dt:"dt",ftr:"ftr",sldNum:"sldNum"};export function masterPlaceholder(e,d){const o=BASE_TYPE[d];return e.shapes.find(t=>t.kind==="placeholder"&&t.placeholder?.type===o)}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import type { ShapeFile, SlidesFile, TextAlign } from "@allyhub-next/formats";
|
|
2
|
+
import type { ChartDef } from "@allyhub-next/chart";
|
|
3
|
+
import type { Anchor, AutoSize, PlaceholderType } from "./enums.js";
|
|
4
|
+
import type { Color, DeckDef, FontDef, Frame, LevelsDef, LineSpacing, MasterDef, ParagraphDef, ShapeDef, ShapeKind, TableCellDef, TableDef, TextFrameDef } from "./model.js";
|
|
5
|
+
import { type ResolvedAnimation, type ResolvedTransition } from "./animation.js";
|
|
6
|
+
import { type Theme } from "./theme.js";
|
|
7
|
+
import { type Length } from "./units.js";
|
|
8
|
+
/** Where a value came from: a level of the deck, and its place in slides.yaml when it is the slide's. */
|
|
9
|
+
export interface ValueSource {
|
|
10
|
+
from: "master" | "layout" | "code" | "slide";
|
|
11
|
+
/** slides.yaml's path of the value (`slides.2.shapes.Title.frame`), when it is set there. */
|
|
12
|
+
path?: string;
|
|
13
|
+
}
|
|
14
|
+
/** A level of a text frame's style, every value inherited and resolved: what a paragraph at that level takes. */
|
|
15
|
+
export interface LevelStyle {
|
|
16
|
+
font: Required<Pick<FontDef, "name" | "size">> & Omit<FontDef, "name" | "size">;
|
|
17
|
+
alignment: TextAlign;
|
|
18
|
+
line_spacing: LineSpacing;
|
|
19
|
+
space_before: Length;
|
|
20
|
+
space_after: Length;
|
|
21
|
+
bullet?: {
|
|
22
|
+
char: string;
|
|
23
|
+
font?: string;
|
|
24
|
+
};
|
|
25
|
+
margin_left: Length;
|
|
26
|
+
indent: Length;
|
|
27
|
+
}
|
|
28
|
+
/** A text frame's style, every value inherited and resolved. */
|
|
29
|
+
export interface TextStyle {
|
|
30
|
+
vertical_anchor: Anchor;
|
|
31
|
+
auto_size: AutoSize;
|
|
32
|
+
word_wrap: boolean;
|
|
33
|
+
margins: {
|
|
34
|
+
left: Length;
|
|
35
|
+
top: Length;
|
|
36
|
+
right: Length;
|
|
37
|
+
bottom: Length;
|
|
38
|
+
};
|
|
39
|
+
/** Nine levels, level 0 first. */
|
|
40
|
+
levels: LevelStyle[];
|
|
41
|
+
}
|
|
42
|
+
export interface ResolvedText {
|
|
43
|
+
paragraphs: ParagraphDef[];
|
|
44
|
+
style: TextStyle;
|
|
45
|
+
/** What a shape's own text frame sets (a text box's, an autoshape's; a placeholder's are its levels'): what its file writes, the rest inherited. */
|
|
46
|
+
own?: Omit<TextFrameDef, "paragraphs">;
|
|
47
|
+
/** A placeholder nothing was put in: drawn only while editing. */
|
|
48
|
+
empty: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface ResolvedShape {
|
|
51
|
+
name: string;
|
|
52
|
+
kind: ShapeKind;
|
|
53
|
+
frame: Frame;
|
|
54
|
+
/** A connector's direction: from its frame's top left to its bottom right unless flipped. */
|
|
55
|
+
flip?: {
|
|
56
|
+
h?: boolean;
|
|
57
|
+
v?: boolean;
|
|
58
|
+
};
|
|
59
|
+
/** Degrees clockwise about its centre. */
|
|
60
|
+
rotation?: number;
|
|
61
|
+
/** The level it belongs to: the master's and the layout's own shapes are on every slide of them, not the slide's to change. */
|
|
62
|
+
level: "master" | "layout" | "slide";
|
|
63
|
+
placeholder?: {
|
|
64
|
+
type: PlaceholderType;
|
|
65
|
+
idx: number;
|
|
66
|
+
};
|
|
67
|
+
text?: ResolvedText;
|
|
68
|
+
fill?: Color | null;
|
|
69
|
+
line?: Color | null;
|
|
70
|
+
line_width?: Length;
|
|
71
|
+
line_dash?: NonNullable<ShapeDef["line_dash"]>;
|
|
72
|
+
line_begin?: NonNullable<ShapeDef["line_begin"]>;
|
|
73
|
+
line_end?: NonNullable<ShapeDef["line_end"]>;
|
|
74
|
+
path?: NonNullable<ShapeDef["path"]>;
|
|
75
|
+
table?: ResolvedTable;
|
|
76
|
+
chart?: ChartDef;
|
|
77
|
+
group?: string;
|
|
78
|
+
geometry?: ShapeDef["geometry"];
|
|
79
|
+
adjustments?: number[];
|
|
80
|
+
/** A picture or a movie: its project path, its poster, its crop. */
|
|
81
|
+
media?: {
|
|
82
|
+
path: string;
|
|
83
|
+
poster?: number;
|
|
84
|
+
crop?: {
|
|
85
|
+
left: number;
|
|
86
|
+
top: number;
|
|
87
|
+
right: number;
|
|
88
|
+
bottom: number;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
component?: {
|
|
92
|
+
name: string;
|
|
93
|
+
props: Record<string, unknown>;
|
|
94
|
+
};
|
|
95
|
+
/** What slides.yaml set on its text (`text`), over what it inherits: a placeholder's own. */
|
|
96
|
+
fileText?: NonNullable<ShapeFile["text"]>;
|
|
97
|
+
sources: {
|
|
98
|
+
frame: ValueSource;
|
|
99
|
+
text?: ValueSource;
|
|
100
|
+
fill?: ValueSource;
|
|
101
|
+
line?: ValueSource;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
export interface ResolvedSlide {
|
|
105
|
+
/** Its id; a generated slide's is `<block>/<id>`. */
|
|
106
|
+
id: string;
|
|
107
|
+
layout: string;
|
|
108
|
+
master: string;
|
|
109
|
+
hidden: boolean;
|
|
110
|
+
background: Color;
|
|
111
|
+
/** Back to front. */
|
|
112
|
+
shapes: ResolvedShape[];
|
|
113
|
+
/** Its Animation Pane, in order. */
|
|
114
|
+
animations: ResolvedAnimation[];
|
|
115
|
+
/** How it comes on from the slide before. */
|
|
116
|
+
transition?: ResolvedTransition;
|
|
117
|
+
notes?: string;
|
|
118
|
+
/** Its place in slides.yaml's `slides`, and its block's generator for a generated slide. */
|
|
119
|
+
file: {
|
|
120
|
+
index: number;
|
|
121
|
+
generate?: string;
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
export interface ResolvedDeck {
|
|
125
|
+
width: Length;
|
|
126
|
+
height: Length;
|
|
127
|
+
theme: Theme;
|
|
128
|
+
slides: ResolvedSlide[];
|
|
129
|
+
}
|
|
130
|
+
/** Something about the deck that keeps it from being drawn as written. */
|
|
131
|
+
export interface DeckProblem {
|
|
132
|
+
message: string;
|
|
133
|
+
slide?: string;
|
|
134
|
+
shape?: string;
|
|
135
|
+
/** slides.yaml's path, when the problem is there. */
|
|
136
|
+
path?: string;
|
|
137
|
+
}
|
|
138
|
+
/** Words of the script: a text, a list of them (paragraphs, nested a level deeper), or none. */
|
|
139
|
+
export type Words = string | readonly Words[] | undefined;
|
|
140
|
+
/** A table's cell as drawn: its text resolved, the rest as made. */
|
|
141
|
+
export type ResolvedCell = Omit<TableCellDef, "text"> & {
|
|
142
|
+
text: ResolvedText;
|
|
143
|
+
/** What slides.yaml's row sets of its text. */
|
|
144
|
+
fileText?: NonNullable<ShapeFile["text"]>;
|
|
145
|
+
};
|
|
146
|
+
/** A table as drawn. */
|
|
147
|
+
export type ResolvedTable = Omit<TableDef, "rows"> & {
|
|
148
|
+
rows: {
|
|
149
|
+
height: Length;
|
|
150
|
+
cells: ResolvedCell[];
|
|
151
|
+
}[];
|
|
152
|
+
};
|
|
153
|
+
export interface ResolveInput {
|
|
154
|
+
def: DeckDef;
|
|
155
|
+
file: SlidesFile;
|
|
156
|
+
/** The script's words of a key, `<prefix>.<slide>.<shape>` or `.notes`. */
|
|
157
|
+
words: (key: string) => Words;
|
|
158
|
+
prefix: string;
|
|
159
|
+
/** The deck's folder, a project path: slides.yaml's paths are from it. */
|
|
160
|
+
base: string;
|
|
161
|
+
/** The theme under the deck's own: the project's look as a theme. */
|
|
162
|
+
theme?: Theme;
|
|
163
|
+
/** A generator's data reader. */
|
|
164
|
+
data?: (path: string) => unknown;
|
|
165
|
+
}
|
|
166
|
+
/** A project path from a folder and a path relative to it. */
|
|
167
|
+
export declare function joinPath(base: string, rel: string): string;
|
|
168
|
+
/** Levels with list styles over them, the last one's values winning. */
|
|
169
|
+
export declare function levelsOver(base: readonly LevelStyle[], ...over: (LevelsDef | undefined)[]): LevelStyle[];
|
|
170
|
+
/** What the text of a shape that is not a placeholder starts from under a master: PowerPoint's own, then the master's other style. */
|
|
171
|
+
export declare const plainLevels: (master: MasterDef) => LevelStyle[];
|
|
172
|
+
/** A colour slides.yaml names: the theme's, or `#RRGGBB`. */
|
|
173
|
+
export declare const colorOfFile: (c: string) => Color;
|
|
174
|
+
/** Paragraphs from the script's words: a line each; a list's items each a paragraph, a nested list a level deeper; `**bold**`, `*italic*`, `` `code` `` (in the font `code` names) and spans (WORDS_SPAN) as runs. */
|
|
175
|
+
export declare function paragraphsOfWords(words: Words, level?: number, code?: string): ParagraphDef[];
|
|
176
|
+
/** The deck's slides, resolved, and what kept any of it from being drawn as written. */
|
|
177
|
+
export declare function resolveDeck(input: ResolveInput): {
|
|
178
|
+
deck: ResolvedDeck;
|
|
179
|
+
problems: DeckProblem[];
|
|
180
|
+
};
|
|
181
|
+
//# sourceMappingURL=resolve.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{readMarks as le,markRuns as de}from"@allyhub-next/video-core";import{chartOfFile as se}from"./chart-file.js";import{AUTOSHAPE_STYLE as j,CONNECTOR_STYLE as V,DRAWN_TEXTBOX_FRAME as Z,TEXT_FALLBACK as q,TEXT_INSETS as N,placeholderFrame as fe,styleKindOf as pe}from"./office.js";import{resolveAnimation as ue,resolveTransition as J}from"./animation.js";import{pathSteps as ce}from"./path.js";import{masterPlaceholder as he}from"./placeholders.js";import{DECK_FONTS as me,OFFICE_THEME as ge,themeOver as _e}from"./theme.js";import{Pt as A}from"./units.js";export function joinPath(t,o){if(o.startsWith("/"))return o.slice(1);const m=t===""?[]:t.split("/");for(const l of o.split("/"))l===""||l==="."||(l===".."?m.pop():m.push(l));return m.join("/")}const Q={left:0,top:0,width:0,height:0},P=()=>Array.from({length:9},()=>({...q,font:{...q.font},margin_left:0}));export function levelsOver(t,...o){return t.map((m,l)=>{let s={...m,font:{...m.font}};for(const $ of o){const r=$?.[l];r&&(s={...s,...r.alignment===void 0?{}:{alignment:r.alignment},...r.line_spacing===void 0?{}:{line_spacing:r.line_spacing},...r.space_before===void 0?{}:{space_before:r.space_before},...r.space_after===void 0?{}:{space_after:r.space_after},...r.margin_left===void 0?{}:{margin_left:r.margin_left},...r.indent===void 0?{}:{indent:r.indent},font:{...s.font,...r.font}},r.font?.color!==void 0&&delete s.font.rgb,r.font?.rgb!==void 0&&delete s.font.color,r.bullet===null?delete s.bullet:r.bullet!==void 0?s.bullet={char:r.bullet,...r.bullet_font===void 0?{}:{font:r.bullet_font}}:r.bullet_font!==void 0&&s.bullet&&(s.bullet={...s.bullet,font:r.bullet_font}))}return s})}function K(t,...o){const m=o.filter(s=>s!==void 0),l=s=>{for(let $=m.length-1;$>=0;$--){const r=m[$]?.[s];if(r!==void 0)return r}};return{vertical_anchor:l("vertical_anchor")??t.vertical_anchor,auto_size:l("auto_size")??t.auto_size,word_wrap:l("word_wrap")??t.word_wrap,margins:{left:l("margin_left")??N.left,top:l("margin_top")??N.top,right:l("margin_right")??N.right,bottom:l("margin_bottom")??N.bottom}}}const I={vertical_anchor:"t",auto_size:"none",word_wrap:!0};export const plainLevels=t=>levelsOver(P(),t.text_styles.other);function B(t,o){return{...K(I,o),levels:levelsOver(P(),t.text_styles.other,o.levels)}}function ye(t,o,...m){return{...K(fe(o),...m),levels:levelsOver(P(),t.text_styles[pe(o)],...m.map(l=>l?.levels))}}const $e=Array.from({length:9},()=>({font:{color:j.font_color}})),ee={vertical_anchor:j.vertical_anchor};function ne(t,o){return{...K(I,o),levels:levelsOver(P(),t.text_styles.other,$e,o.levels)}}const L=t=>{const o={...t};return delete o.paragraphs,o},R=t=>({paragraphs:[],levels:[],...t}),W=t=>t==="none"?null:colorOfFile(t),xe=/<span((?:\s+(?:color|font)="[^"\n]*")+)\s*>(.*?)<\/span>/gu,be=/(color|font)="([^"\n]*)"/gu,D=57344,we=256,te="",ke=/[\ue000-\ue100]|[^\ue000-\ue100]+/gu;export const colorOfFile=t=>t.startsWith("#")?{rgb:t.toUpperCase()}:t;function ie(t,o,m=[]){return{...t,rows:t.rows.map((l,s)=>({height:l.height,cells:l.cells.map($=>{const r=m[s];return{...$,text:{paragraphs:$.text.paragraphs,style:H({...B(o,$.text),auto_size:"shape"},r),own:L($.text),empty:!1},...r?{fileText:r}:{}}})}))}}function H(t,o){return o?{...t,levels:t.levels.map(m=>{const l={...m.font,...o.size===void 0?{}:{size:A(o.size)},...o.bold===void 0?{}:{bold:o.bold},...o.italic===void 0?{}:{italic:o.italic},...o.font===void 0?{}:{name:o.font}};if(o.color!==void 0){const s=colorOfFile(o.color);typeof s=="string"?(l.color=s,delete l.rgb):(l.rgb=s.rgb,delete l.color)}return{...m,font:l,...o.align===void 0?{}:{alignment:o.align}}})}:t}function Se(t){const o={};for(const[,m,l=""]of t.matchAll(be))if(m==="font")o.name=l.trim();else{const s=colorOfFile(l);typeof s=="string"?o.color=s:o.rgb=s.rgb}return o}export function paragraphsOfWords(t,o=0,m=me.code){return t===void 0?[]:typeof t=="string"?t.split(/\r?\n/u).map(l=>{const s=[],$=l.replace(xe,(v,T,z)=>(s.push(Se(T)),`${String.fromCharCode(D+s.length-1)}${z}${te}`)),r=le($);let O;const E=de(r.text,r.marks).flatMap(v=>{const T=v.kinds.includes("code"),z={...v.kinds.includes("strong")?{bold:!0}:{},...v.kinds.includes("em")?{italic:!0}:{},...T?{name:m}:{}};return[...v.text.matchAll(ke)].flatMap(U=>{const M=U[0],F=M.charCodeAt(0);if(M===te)return O=void 0,[];if(F>=D&&F<D+we)return O=s[F-D],[];const C={...O,...z};return[{text:M,...Object.keys(C).length>0?{font:C}:{},...T?{code:!0}:{}}]})});return{runs:E.length>0?E:[{text:""}],level:o}}):t.flatMap(l=>paragraphsOfWords(l,Array.isArray(l)?Math.min(o+1,8):o,m))}const oe=t=>({left:A(t.x),top:A(t.y),width:A(t.w),height:A(t.h)}),re=t=>t===void 0?void 0:{left:t.left??0,top:t.top??0,right:t.right??0,bottom:t.bottom??0};export function resolveDeck(t){const{def:o,file:m,words:l,prefix:s,base:$}=t,r=[],O=_e(t.theme??ge,o.theme),E=new Map;for(const e of o.masters)for(const n of e.layouts)E.set(n.name,{layout:n,master:e});const v=[],T=(e,n,f)=>({name:e.name,kind:e.kind,frame:{...e.frame??Q},...e.flip?{flip:{...e.flip}}:{},...e.rotation===void 0?{}:{rotation:e.rotation},level:n,...e.text?{text:{paragraphs:e.text.paragraphs,style:e.kind==="autoshape"?ne(f,e.text):B(f,e.text),own:L(e.text),empty:!1}}:{},...e.fill===void 0?{}:{fill:e.fill},...e.line===void 0?{}:{line:e.line},...e.line_width===void 0?{}:{line_width:e.line_width},...e.line_dash===void 0?{}:{line_dash:e.line_dash},...e.line_begin===void 0?{}:{line_begin:e.line_begin},...e.line_end===void 0?{}:{line_end:e.line_end},...e.path?{path:e.path}:{},...e.table?{table:ie(e.table,f)}:{},...e.chart?{chart:e.chart}:{},...e.group===void 0?{}:{group:e.group},...e.geometry?{geometry:e.geometry}:{},...e.adjustments?{adjustments:[...e.adjustments]}:{},...e.media?{media:{path:joinPath(e.media.base,e.media.path),...e.media.poster===void 0?{}:{poster:e.media.poster}}}:{},...e.component?{component:{...e.component}}:{},sources:{frame:{from:n}}}),z=(e,n)=>{const f=e.placeholder?.type??"body",c=he(n,f),x=e.frame??c?.frame??Q;return{name:e.name,kind:"placeholder",frame:{...x},level:"slide",...e.placeholder?{placeholder:{...e.placeholder}}:{},text:{paragraphs:[],style:ye(n,f,c?.text,e.text),empty:!0},...e.fill===void 0?{}:{fill:e.fill},...e.line===void 0?{}:{line:e.line},sources:{frame:{from:e.frame||!c?"layout":"master"},text:{from:"layout"}}}},U=(e,n,f)=>{const c=o.components[e];if(!c){r.push({...f,message:`There is no component ${e} in slides.ts (it has ${Object.keys(o.components).join(", ")||"none"}).`});return}for(const x of Object.keys(n??{}))Object.hasOwn(c.props,x)||r.push({...f,message:`Component ${e} has no prop ${x} a person sets (it has ${Object.keys(c.props).join(", ")||"none"}).`});return{name:e,props:{...n??{}}}},M=(e,n,f,c,x)=>{const b={slide:c,shape:e,path:f};if(!n.frame){r.push({...b,message:`Shape ${e} is the slide's own: it needs a frame { x, y, w, h } in points.`});return}const S=oe(n.frame),a={frame:{from:"slide",path:`${f}.frame`}},_={name:e,frame:S,level:"slide",...n.fill===void 0?{}:{fill:colorOfFile(n.fill)},...n.line===void 0?{}:{line:W(n.line)},...n.line_dash===void 0?{}:{line_dash:n.line_dash},...n.line_begin===void 0?{}:{line_begin:n.line_begin},...n.line_end===void 0?{}:{line_end:n.line_end},...n.group===void 0?{}:{group:n.group}};if(n.textbox)return{..._,kind:"textbox",text:{paragraphs:paragraphsOfWords(l(`${s}.${c}.${e}`),0,O.fonts.code),style:H(B(x,R(Z)),n.text),own:L(R(Z)),empty:!1},...n.text?{fileText:{...n.text}}:{},sources:{...a,text:{from:"slide",path:`${f}.text`}}};if(n.picture!==void 0){const d=re(n.crop);return{..._,kind:"picture",media:{path:joinPath($,n.picture),...d?{crop:d}:{}},sources:a}}if(n.movie!==void 0)return{..._,kind:"movie",media:{path:joinPath($,n.movie),...n.poster===void 0?{}:{poster:n.poster}},sources:a};if(n.chart){const d=l(`${s}.${c}.${e}`),h=se(n.chart,{title:typeof d=="string"?d:void 0,base:$,rows:i=>t.data?.(i),problem:i=>{r.push({...b,message:`Chart ${e}: ${i}`})}});return h?{..._,kind:"chart",chart:h,sources:a}:void 0}if(n.table){const d=n.table,h=S.width/d.columns.reduce((g,w)=>g+w,0),i=S.height/d.rows.reduce((g,w)=>g+w.height,0),p=l(`${s}.${c}.${e}`),y=Array.isArray(p)?p:[];return y.length>d.rows.length&&r.push({...b,message:`Table ${e} has ${String(d.rows.length)} rows and its words ${String(y.length)}.`}),{..._,kind:"table",table:ie({columns:d.columns.map(g=>Math.round(g*h)),rows:d.rows.map((g,w)=>{const k=y[w],X=Array.isArray(k)?k:k===void 0?[]:[k];return{height:Math.round(g.height*i),cells:d.columns.map((ve,ae)=>({text:{levels:[],paragraphs:paragraphsOfWords(X[ae],0,O.fonts.code)},...g.fill===void 0?{}:{fill:colorOfFile(g.fill)},...g.line===void 0?{}:{borders:{bottom:{color:colorOfFile(g.line),width:A(1)}}}}))}})},x,d.rows.map(g=>g.text)),sources:a}}const u=n.path&&ce(n.path.d);if(n.path&&!u){r.push({...b,message:`Shape ${e}'s path starts with M and says only M, L, C and Z, absolute.`});return}if(n.geometry!==void 0||n.path&&u)return{..._,kind:"autoshape",...n.path&&u?{path:{w:n.path.w,h:n.path.h,steps:u}}:n.geometry===void 0?{}:{geometry:n.geometry},...n.geometry==="line"?{line:n.line===void 0?V.line:W(n.line),line_width:n.line_width===void 0?V.line_width:A(n.line_width)}:{fill:n.fill===void 0?j.fill:colorOfFile(n.fill),line:n.line===void 0?j.line:W(n.line),line_width:n.line_width===void 0?j.line_width:A(n.line_width)},...n.text&&n.geometry!=="line"?{fileText:{...n.text}}:{},...n.geometry==="line"?{}:{text:{paragraphs:paragraphsOfWords(l(`${s}.${c}.${e}`)).map(d=>n.text?.align===void 0?{alignment:j.alignment,...d}:d),style:H(ne(x,R(ee)),n.text),own:L(R(ee)),empty:!1}},sources:{...a,fill:{from:"slide",path:`${f}.fill`}}};if(n.component!==void 0){const d=U(n.component,n.props,b);return d?{..._,kind:"component",component:d,sources:a}:void 0}},F=(e,n,f)=>{if(n.frame&&(e.frame=oe(n.frame),e.sources.frame={from:"slide",path:`${f}.frame`}),n.text&&e.text&&(e.text.style=H(e.text.style,n.text),e.fileText={...n.text},e.sources.text={from:"slide",path:`${f}.text`}),n.line!==void 0&&(e.line=W(n.line),e.sources.line={from:"slide",path:`${f}.line`}),n.line_width!==void 0&&(e.line_width=A(n.line_width)),n.line_dash!==void 0&&(e.line_dash=n.line_dash),n.line_begin!==void 0&&(e.line_begin=n.line_begin),n.line_end!==void 0&&(e.line_end=n.line_end),n.fill!==void 0&&(e.fill=colorOfFile(n.fill),e.sources.fill={from:"slide",path:`${f}.fill`}),(n.picture!==void 0||n.movie!==void 0)&&(e.placeholder?.type==="pic"||e.placeholder?.type==="media"||e.placeholder?.type==="obj")){const c=re(n.crop);e.kind=n.picture!==void 0?"picture":"movie",e.media={path:joinPath($,n.picture??n.movie??""),...c?{crop:c}:{},...n.poster===void 0?{}:{poster:n.poster}},delete e.text}},C=(e,n,f,c,x)=>{const b=E.get(n);if(!b){r.push({slide:e,path:`slides.${String(f)}.layout`,message:`Slide ${e} is on the layout "${n}", which slides.ts does not have (it has ${[...E.keys()].join(", ")||"none"}).`});return}const{layout:S,master:a}=b,_=[...(S.display_master_shapes===!1?[]:a.shapes).filter(d=>d.kind!=="placeholder").map(d=>T(d,"master",a)),...S.shapes.filter(d=>d.kind!=="placeholder").map(d=>T(d,"layout",a))],u=S.shapes.filter(d=>d.kind==="placeholder").map((d,h)=>({shape:z(d,a),order:h}));return{slide:{id:e,layout:S.name,master:a.name,hidden:c,background:S.background??a.background,shapes:_,animations:[],file:{index:f,...x===void 0?{}:{generate:x}}},placed:u,master:a}},G=(e,n,f,c,x,b,S,a,_)=>{const u=new Set(f.map(h=>h.shape.name));let d=f.length;for(const[h,i]of Object.entries(c??{})){const p=b(h);if(p===void 0)continue;const y=`${x}.shapes.${h}`,g=i.textbox!==void 0||i.geometry!==void 0||i.path!==void 0||i.table!==void 0||i.chart!==void 0||i.component!==void 0||(i.picture!==void 0||i.movie!==void 0)&&!u.has(p),w=f.find(X=>X.shape.name===p);if(w&&!g){F(w.shape,i,y),i.z!==void 0&&(w.z=i.z);continue}if(w){r.push({slide:e.id,shape:p,path:y,message:`Slide ${e.id} has a ${w.shape.kind} ${p} already: a shape of its own needs another name.`});continue}if(!g){r.push({slide:e.id,shape:p,path:y,message:`Slide ${e.id} has no shape ${p} to change (its layout's placeholders and its own shapes are ${[...u].join(", ")||"none"}).`});continue}const k=M(p,i,y,e.id,n);k&&(f.push({shape:k,order:d++,...i.z===void 0?{}:{z:i.z}}),u.add(p))}f.sort((h,i)=>(h.z??0)-(i.z??0)||h.order-i.order);for(const h of f){const i=h.shape.text;if(h.shape.kind==="placeholder"&&i){const p=S(h.shape);i.paragraphs=paragraphsOfWords(p,0,O.fonts.code),i.empty=i.paragraphs.length===0||i.paragraphs.every(y=>y.runs.every(g=>g.text===""))}}e.shapes.push(...f.map(h=>h.shape)),a!==void 0&&a.trim()!==""&&(e.notes=a);for(const[h,i]of(_??[]).entries()){const p=b(i.shape);if(p===void 0)continue;const y={slide:e.id,shape:p,path:`${x}.animations.${String(h)}`},g=e.shapes.find(k=>k.name===p&&k.level==="slide");if(!g){r.push({...y,message:`Slide ${e.id} has no shape ${p} to animate (it has ${e.shapes.filter(k=>k.level==="slide").map(k=>k.name).join(", ")}).`});continue}if(i.paragraph!==void 0&&i.paragraph>=(g.text?.paragraphs.length??0)){r.push({...y,message:`Shape ${p} has no paragraph ${String(i.paragraph)} to animate (it has ${String(g.text?.paragraphs.length??0)}).`});continue}const w=ue({...i,shape:p});w?e.animations.push(w):r.push({...y,message:`The animation of ${p} needs a path that starts with M and says only M, L and C, absolute.`})}},Y=new Set;return m.slides.forEach((e,n)=>{const f=`slides.${String(n)}`;if(e.layout!==void 0){const a=C(e.id,e.layout,n,e.hidden===!0);if(!a)return;const _=l(`${s}.${e.id}.notes`);e.transition&&(a.slide.transition=J(e.transition)),G(a.slide,a.master,a.placed,e.shapes,f,u=>u,u=>l(`${s}.${e.id}.${u.name}`),typeof _=="string"?_:void 0,e.animations),v.push(a.slide),Y.add(e.id);return}const c=e.generate??"",x=o.generators[c];if(!x){r.push({slide:e.id,path:`${f}.generate`,message:`There is no generator ${c} in slides.ts (it has ${Object.keys(o.generators).join(", ")||"none"}).`});return}let b;try{b=x.make({data:t.data??(()=>{throw new Error("No data here.")})})}catch(a){r.push({slide:e.id,path:`${f}.generate`,message:`Generator ${c} failed: ${a instanceof Error?a.message:String(a)}`});return}const S=new Set(Array.isArray(e.hidden)?e.hidden:[]);for(const a of b){const _=`${e.id}/${a.id}`,u=C(_,a.layout,n,S.has(a.id),c);if(!u)continue;for(const i of a.shapes){const p=i.placeholder?u.placed.find(y=>y.shape.placeholder?.idx===i.placeholder?.idx):void 0;if(p)i.frame&&(p.shape.frame={...i.frame}),p.shape.sources.frame={from:"code"};else{const y=T(i,"layout",u.master);u.placed.push({shape:{...y,level:"slide",sources:{frame:{from:"code"}}},order:u.placed.length})}}const d=`${a.id}/`,h=a.transition??(a===b[0]?e.transition:void 0);h&&(u.slide.transition=J(h)),G(u.slide,u.master,u.placed,e.shapes,f,i=>i.startsWith(d)?i.slice(d.length):void 0,i=>{const p=i.placeholder===void 0?void 0:a.text[i.placeholder.idx];return p===void 0?void 0:p.map(y=>y.runs.map(g=>g.text).join(""))},a.notes,[...(a.animations??[]).map(i=>({...i,shape:`${d}${i.shape}`})),...e.animations??[]]);for(const i of u.slide.shapes){const p=i.placeholder===void 0?void 0:a.text[i.placeholder.idx];p&&i.text&&(i.text.paragraphs=p,i.text.empty=!1)}v.push(u.slide),Y.add(_)}for(const a of Object.keys(e.shapes??{})){const[_]=a.split("/");_!==void 0&&!b.some(u=>u.id===_)&&r.push({slide:e.id,path:`${f}.shapes.${a}`,message:`Generator ${c} makes no slide ${_}: ${a} changes nothing.`})}}),{deck:{width:o.slide_width,height:o.slide_height,theme:O,slides:v},problems:r}}
|