@allyhub/sdk 0.4.0 → 0.6.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/{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/{node_modules/@allyhub-next/slides-core → dist/node_modules/@allyhub-next/chart}/dist/chart.d.ts +26 -15
- 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/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +5087 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/slides.d.ts +306 -11
- 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 +2 -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 +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/items.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +2278 -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/dist/node_modules/@allyhub-next/formats/dist/zip.d.ts +17 -0
- package/dist/node_modules/@allyhub-next/formats/dist/zip.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/formats/package.json +1 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/editor.d.ts +20 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/notes.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/tools.d.ts +6 -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/lock.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/lock.js +2 -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/package.json +1 -1
- 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/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 +8 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/index.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/page.d.ts +83 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/page.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 +362 -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 +44 -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 +47 -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 +118 -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/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/api.d.ts +64 -7
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +4 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/chart-api.d.ts +24 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/chart-file.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/enums.d.ts +20 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/index.d.ts +2 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/model.d.ts +39 -6
- package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/office.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/preset.d.ts +5 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/preset.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/resolve.d.ts +8 -3
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.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/{node_modules → dist/node_modules}/@allyhub-next/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub-next/video-core/LICENSE +241 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/fact.d.ts +8 -2
- 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 +0 -28
- package/dist/node_modules/@allyhub-next/video-core/dist/formats.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/measure.d.ts +10 -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/problem.d.ts +5 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/package.json +1 -1
- package/dist/phone.js +1 -1
- package/dist/sheets.d.ts +2 -0
- package/dist/sheets.js +2 -0
- package/docs/README.md +2 -2
- package/docs/defaults.md +24 -0
- package/docs/project.md +1 -1
- package/docs/scenery.md +1 -1
- package/docs/sheets.md +402 -84
- package/docs/slides.md +5 -5
- package/docs/speech.md +1 -1
- package/package.json +11 -19
- package/node_modules/@allyhub-next/formats/dist/data/reference.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/data/slides.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 -719
- package/node_modules/@allyhub-next/formats/dist/schemas.js +0 -2
- package/node_modules/@allyhub-next/protocol/dist/editor.js +0 -2
- package/node_modules/@allyhub-next/protocol/dist/notes.js +0 -2
- package/node_modules/@allyhub-next/protocol/dist/tools.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/pins/exceljs/package-lock.json +0 -2533
- package/node_modules/@allyhub-next/runtimes/pins/exceljs/package.json +0 -8
- package/node_modules/@allyhub-next/scenery/dist/phone.js +0 -2
- package/node_modules/@allyhub-next/slides-core/dist/api.js +0 -4
- package/node_modules/@allyhub-next/slides-core/dist/capabilities.js +0 -2
- package/node_modules/@allyhub-next/slides-core/dist/chart-api.js +0 -2
- package/node_modules/@allyhub-next/slides-core/dist/chart-file.js +0 -2
- package/node_modules/@allyhub-next/slides-core/dist/chart.js +0 -2
- package/node_modules/@allyhub-next/slides-core/dist/enums.js +0 -2
- package/node_modules/@allyhub-next/slides-core/dist/index.js +0 -2
- package/node_modules/@allyhub-next/slides-core/dist/office.js +0 -2
- package/node_modules/@allyhub-next/slides-core/dist/resolve.js +0 -2
- package/node_modules/@allyhub-next/slides-core/dist/strict.d.ts +0 -23
- package/node_modules/@allyhub-next/slides-core/dist/strict.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/measure.js +0 -5
- package/node_modules/@allyhub-next/video-core/dist/problem.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/script.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/script.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 → dist/node_modules}/@allyhub-next/formats/dist/note-shape.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/note-shape.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/app.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/app.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/auth.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/auth.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cli.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cli.js +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/index.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/index.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.d.ts +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/runtimes.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/runtimes.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.d.ts +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/index.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/index.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/dist/node-program.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/node-program.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/packages.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/packages.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/unpack.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/unpack.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/manifest.json +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/docx/package-lock.json +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/docx/package.json +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/gltf-tools/package-lock.json +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/gltf-tools/package.json +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/manifold-3d/package-lock.json +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/manifold-3d/package.json +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/onnxruntime-node/package-lock.json +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/onnxruntime-node/package.json +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/sherpa-onnx-node/package.json +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/tesseract.js/package-lock.json +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/tesseract.js/package.json +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/schemas/runtimes.schema.json +0 -0
- /package/{node_modules/@allyhub-next/slides-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/node_modules/@allyhub-next/sheet}/LICENSE +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/animation.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/animation.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/capabilities.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/check.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/check.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/file.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/file.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/measure.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/measure.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/model.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/path.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/path.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/placeholders.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/placeholders.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/script.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/script.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/stage.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/stage.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/theme.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/theme.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/units.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/units.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/export.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/export.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/index.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/index.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/piece.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/piece.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/render-types.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/schema.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.d.ts +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/script.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/script.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.d.ts +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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AnimationFile, LineDash, TransitionFile, LineEnd, ShapeGeometry, TextAlign, ThemeColor } from "@allyhub-next/formats";
|
|
2
|
-
import type { ChartDef } from "
|
|
1
|
+
import type { AnimationFile, LineDash, Numbering, TransitionFile, LineEnd, ShapeGeometry, TextAlign, ThemeColor } from "@allyhub-next/formats";
|
|
2
|
+
import type { ChartDef, Color } from "@allyhub-next/chart";
|
|
3
3
|
import type { Anchor, AutoSize, PlaceholderType } from "./enums.js";
|
|
4
4
|
import type { ThemeInput } from "./theme.js";
|
|
5
5
|
import type { Length } from "./units.js";
|
|
@@ -9,10 +9,7 @@ export interface Frame {
|
|
|
9
9
|
width: Length;
|
|
10
10
|
height: Length;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
export type Color = ThemeColor | {
|
|
14
|
-
rgb: string;
|
|
15
|
-
};
|
|
12
|
+
export type { Color };
|
|
16
13
|
/** Character properties (`a:rPr`, `a:defRPr`): what python-pptx's `Font` holds. */
|
|
17
14
|
export interface FontDef {
|
|
18
15
|
/** A typeface, or the theme's (`+mj-lt`, `+mn-lt`). */
|
|
@@ -26,6 +23,14 @@ export interface FontDef {
|
|
|
26
23
|
rgb?: string;
|
|
27
24
|
/** Space added between letters (negative tightens), EMU (`a:rPr` spc). */
|
|
28
25
|
spacing?: Length;
|
|
26
|
+
/** A line through it (`@strike`). */
|
|
27
|
+
strike?: boolean;
|
|
28
|
+
/** Raised (above 0) or lowered, a share of its size: superscript 0.3, subscript -0.25 (`@baseline`). */
|
|
29
|
+
baseline?: number;
|
|
30
|
+
/** The colour behind it, `#RRGGBB` (`a:highlight`). */
|
|
31
|
+
highlight?: string;
|
|
32
|
+
/** The address it opens (`a:hlinkClick`): drawn in the theme's link colour, underlined. */
|
|
33
|
+
link?: string;
|
|
29
34
|
}
|
|
30
35
|
export interface RunDef {
|
|
31
36
|
/** Its text; `\v` is a line break in the paragraph (`a:br`). */
|
|
@@ -33,6 +38,8 @@ export interface RunDef {
|
|
|
33
38
|
font?: FontDef;
|
|
34
39
|
/** The script's `` `code` ``: its font is the theme's code font. */
|
|
35
40
|
code?: boolean;
|
|
41
|
+
/** Its text is the slide's number, which PowerPoint keeps up to date (`a:fld`). */
|
|
42
|
+
field?: "slidenum";
|
|
36
43
|
}
|
|
37
44
|
/** Line spacing (`a:lnSpc`): a multiple of the line (`a:spcPct`) or a fixed height (`a:spcPts`). */
|
|
38
45
|
export type LineSpacing = {
|
|
@@ -50,6 +57,8 @@ export interface ParagraphFormatDef {
|
|
|
50
57
|
bullet?: string | null;
|
|
51
58
|
/** The bullet's typeface (`a:buFont`). */
|
|
52
59
|
bullet_font?: string;
|
|
60
|
+
/** Counted in place of a bullet (`a:buAutoNum`). */
|
|
61
|
+
numbered?: Numbering;
|
|
53
62
|
/** Where its lines start (`@marL`), and its first line from there (`@indent`, negative for a hanging bullet). */
|
|
54
63
|
margin_left?: Length;
|
|
55
64
|
indent?: Length;
|
|
@@ -134,6 +143,25 @@ export interface FreeformPath {
|
|
|
134
143
|
h: number;
|
|
135
144
|
steps: PathStep[];
|
|
136
145
|
}
|
|
146
|
+
/** A gradient fill (`a:gradFill`), `at` and `transparency` shares. */
|
|
147
|
+
export interface GradientDef {
|
|
148
|
+
/** Degrees clockwise from left to right. */
|
|
149
|
+
angle: number;
|
|
150
|
+
stops: {
|
|
151
|
+
at: number;
|
|
152
|
+
color: Color;
|
|
153
|
+
transparency?: number;
|
|
154
|
+
}[];
|
|
155
|
+
}
|
|
156
|
+
/** A shadow outside a shape (`a:outerShdw`). */
|
|
157
|
+
export interface ShadowDef {
|
|
158
|
+
color: Color;
|
|
159
|
+
blur: Length;
|
|
160
|
+
distance: Length;
|
|
161
|
+
/** Degrees clockwise from the right. */
|
|
162
|
+
angle: number;
|
|
163
|
+
transparency: number;
|
|
164
|
+
}
|
|
137
165
|
/** A shape as a master, a layout or a generator's code makes it. */
|
|
138
166
|
export interface ShapeDef {
|
|
139
167
|
name: string;
|
|
@@ -153,6 +181,11 @@ export interface ShapeDef {
|
|
|
153
181
|
};
|
|
154
182
|
text?: TextFrameDef;
|
|
155
183
|
fill?: Color | null;
|
|
184
|
+
/** How much of its fill shows through, a share (`a:alpha`). */
|
|
185
|
+
fill_transparency?: number;
|
|
186
|
+
/** A gradient in place of its fill. */
|
|
187
|
+
gradient?: GradientDef;
|
|
188
|
+
shadow?: ShadowDef;
|
|
156
189
|
line?: Color | null;
|
|
157
190
|
line_width?: Length;
|
|
158
191
|
line_dash?: LineDash;
|
|
@@ -55,4 +55,14 @@ export declare const CONNECTOR_STYLE: {
|
|
|
55
55
|
readonly line: "accent1";
|
|
56
56
|
readonly line_width: number;
|
|
57
57
|
};
|
|
58
|
+
/** A shadow where it says nothing, as PowerPoint's Offset preset: lengths in EMU, the colour black. */
|
|
59
|
+
export declare const SHADOW_DEFAULTS: {
|
|
60
|
+
readonly color: {
|
|
61
|
+
readonly rgb: "#000000";
|
|
62
|
+
};
|
|
63
|
+
readonly blur: number;
|
|
64
|
+
readonly distance: number;
|
|
65
|
+
readonly angle: 45;
|
|
66
|
+
readonly transparency: 0.6;
|
|
67
|
+
};
|
|
58
68
|
//# 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 i=9,r=t=>Array.from({length:i},(l,c)=>t(c));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||t==="dt"||t==="ftr"||t==="sldNum"?"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)},SHADOW_DEFAULTS={color:{rgb:"#000000"},blur:e(4),distance:e(3),angle:45,transparency:.6};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ShapeGeometry } from "@allyhub-next/formats";
|
|
2
|
+
import type { FreeformPath } from "./model.js";
|
|
3
|
+
/** A preset's outline in a frame of `w` × `h`; none for those drawn another way (a rectangle, a rounded one, an ellipse, a line). */
|
|
4
|
+
export declare function presetPath(geometry: ShapeGeometry | undefined, w: number, h: number): FreeformPath | undefined;
|
|
5
|
+
//# sourceMappingURL=preset.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 p=(n,t,o)=>({w:n,h:t,steps:[...o.map(([r,e],a)=>({op:a===0?"move":"line",x:r,y:e})),{op:"close"}]});function i(n,t,o,r,e,a){return Array.from({length:n*2},(g,c)=>{const l=-Math.PI/2+c*Math.PI/n,u=c%2===0?1:t;return[o+e*u*Math.cos(l),r+a*u*Math.sin(l)]})}const d={triangle:(n,t)=>[[n/2,0],[n,t],[0,t]],rightArrow:(n,t,o)=>[[0,t/4],[n-o/2,t/4],[n-o/2,0],[n,t/2],[n-o/2,t],[n-o/2,t*3/4],[0,t*3/4]],leftArrow:(n,t,o)=>[[n,t/4],[o/2,t/4],[o/2,0],[0,t/2],[o/2,t],[o/2,t*3/4],[n,t*3/4]],upArrow:(n,t,o)=>[[n/4,t],[n/4,o/2],[0,o/2],[n/2,0],[n,o/2],[n*3/4,o/2],[n*3/4,t]],downArrow:(n,t,o)=>[[n/4,0],[n/4,t-o/2],[0,t-o/2],[n/2,t],[n,t-o/2],[n*3/4,t-o/2],[n*3/4,0]],leftRightArrow:(n,t,o)=>[[0,t/2],[o/2,0],[o/2,t/4],[n-o/2,t/4],[n-o/2,0],[n,t/2],[n-o/2,t],[n-o/2,t*3/4],[o/2,t*3/4],[o/2,t]],diamond:(n,t)=>[[n/2,0],[n,t/2],[n/2,t],[0,t/2]],parallelogram:(n,t,o)=>[[o/4,0],[n,0],[n-o/4,t],[0,t]],trapezoid:(n,t,o)=>[[o/4,0],[n-o/4,0],[n,t],[0,t]],pentagon:(n,t)=>[[n/2,0],[n,t*.382],[n*.809,t],[n*.191,t],[0,t*.382]],hexagon:(n,t,o)=>[[0,t/2],[o/4,0],[n-o/4,0],[n,t/2],[n-o/4,t],[o/4,t]],octagon:(n,t,o)=>{const r=o*.29289;return[[r,0],[n-r,0],[n,r],[n,t-r],[n-r,t],[r,t],[0,t-r],[0,r]]},chevron:(n,t,o)=>[[0,0],[n-o/2,0],[n,t/2],[n-o/2,t],[0,t],[o/2,t/2]],homePlate:(n,t,o)=>[[0,0],[n-o/2,0],[n,t/2],[n-o/2,t],[0,t]],plus:(n,t,o)=>{const r=o/4;return[[r,0],[n-r,0],[n-r,r],[n,r],[n,t-r],[n-r,t-r],[n-r,t],[r,t],[r,t-r],[0,t-r],[0,r],[r,r]]},star4:(n,t)=>i(4,.25,n/2,t/2,n/2,t/2),star5:(n,t)=>i(5,.38196,n/2,t*.55279,n*.52573,t*.55279),wedgeRectCallout:(n,t)=>[[0,0],[n,0],[n,t],[n*5/12,t],[n*.29167,t*1.125],[n/6,t],[0,t]]};export function presetPath(n,t,o){const r=n===void 0?void 0:d[n];return r?p(t,o,r(t,o,Math.min(t,o))):void 0}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ShapeFile, SlidesFile, TextAlign } from "@allyhub-next/formats";
|
|
2
|
-
import type { ChartDef } from "
|
|
1
|
+
import type { ShapeFile, SlidesFile, Numbering, TextAlign } from "@allyhub-next/formats";
|
|
2
|
+
import type { ChartDef } from "@allyhub-next/chart";
|
|
3
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";
|
|
4
|
+
import type { Color, DeckDef, FontDef, Frame, LevelsDef, LineSpacing, MasterDef, ParagraphDef, GradientDef, ShadowDef, ShapeDef, ShapeKind, TableCellDef, TableDef, TextFrameDef } from "./model.js";
|
|
5
5
|
import { type ResolvedAnimation, type ResolvedTransition } from "./animation.js";
|
|
6
6
|
import { type Theme } from "./theme.js";
|
|
7
7
|
import { type Length } from "./units.js";
|
|
@@ -22,6 +22,8 @@ export interface LevelStyle {
|
|
|
22
22
|
char: string;
|
|
23
23
|
font?: string;
|
|
24
24
|
};
|
|
25
|
+
/** Counted in place of a bullet. */
|
|
26
|
+
numbered?: Numbering;
|
|
25
27
|
margin_left: Length;
|
|
26
28
|
indent: Length;
|
|
27
29
|
}
|
|
@@ -66,6 +68,9 @@ export interface ResolvedShape {
|
|
|
66
68
|
};
|
|
67
69
|
text?: ResolvedText;
|
|
68
70
|
fill?: Color | null;
|
|
71
|
+
fill_transparency?: number;
|
|
72
|
+
gradient?: GradientDef;
|
|
73
|
+
shadow?: ShadowDef;
|
|
69
74
|
line?: Color | null;
|
|
70
75
|
line_width?: Length;
|
|
71
76
|
line_dash?: NonNullable<ShapeDef["line_dash"]>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{readMarks as fe,markRuns as ce}from"@allyhub-next/video-core";import{chartOfFile as ue}from"./chart-file.js";import{AUTOSHAPE_STYLE as j,SHADOW_DEFAULTS as C,CONNECTOR_STYLE as V,DRAWN_TEXTBOX_FRAME as Z,TEXT_FALLBACK as q,TEXT_INSETS as P,placeholderFrame as pe,styleKindOf as he}from"./office.js";import{resolveAnimation as me,resolveTransition as J}from"./animation.js";import{pathSteps as ge}from"./path.js";import{masterPlaceholder as _e}from"./placeholders.js";import{DECK_FONTS as ye,OFFICE_THEME as be,themeOver as xe}from"./theme.js";import{Pt as v}from"./units.js";export function joinPath(i,t){if(t.startsWith("/"))return t.slice(1);const c=i===""?[]:i.split("/");for(const a of t.split("/"))a===""||a==="."||(a===".."?c.pop():c.push(a));return c.join("/")}const Q={left:0,top:0,width:0,height:0},L=()=>Array.from({length:9},()=>({...q,font:{...q.font},margin_left:0}));export function levelsOver(i,...t){return i.map((c,a)=>{let d={...c,font:{...c.font}};for(const y of t){const o=y?.[a];o&&(d={...d,...o.alignment===void 0?{}:{alignment:o.alignment},...o.line_spacing===void 0?{}:{line_spacing:o.line_spacing},...o.space_before===void 0?{}:{space_before:o.space_before},...o.space_after===void 0?{}:{space_after:o.space_after},...o.margin_left===void 0?{}:{margin_left:o.margin_left},...o.indent===void 0?{}:{indent:o.indent},font:{...d.font,...o.font}},o.font?.color!==void 0&&delete d.font.rgb,o.font?.rgb!==void 0&&delete d.font.color,o.numbered!==void 0&&(d.numbered=o.numbered,delete d.bullet),o.bullet===null?(delete d.bullet,delete d.numbered):o.bullet!==void 0?(delete d.numbered,d.bullet={char:o.bullet,...o.bullet_font===void 0?{}:{font:o.bullet_font}}):o.bullet_font!==void 0&&d.bullet&&(d.bullet={...d.bullet,font:o.bullet_font}))}return d})}function B(i,...t){const c=t.filter(d=>d!==void 0),a=d=>{for(let y=c.length-1;y>=0;y--){const o=c[y]?.[d];if(o!==void 0)return o}};return{vertical_anchor:a("vertical_anchor")??i.vertical_anchor,auto_size:a("auto_size")??i.auto_size,word_wrap:a("word_wrap")??i.word_wrap,margins:{left:a("margin_left")??P.left,top:a("margin_top")??P.top,right:a("margin_right")??P.right,bottom:a("margin_bottom")??P.bottom}}}const ee={vertical_anchor:"t",auto_size:"none",word_wrap:!0};export const plainLevels=i=>levelsOver(L(),i.text_styles.other);function G(i,t){return{...B(ee,t),levels:levelsOver(L(),i.text_styles.other,t.levels)}}function $e(i,t,...c){return{...B(pe(t),...c),levels:levelsOver(L(),i.text_styles[he(t)],...c.map(a=>a?.levels))}}const we=Array.from({length:9},()=>({font:{color:j.font_color}})),ne={vertical_anchor:j.vertical_anchor};function te(i,t){return{...B(ee,t),levels:levelsOver(L(),i.text_styles.other,we,t.levels)}}const R=i=>{const t={...i};return delete t.paragraphs,t},D=i=>({paragraphs:[],levels:[],...i}),W=i=>i==="none"?null:colorOfFile(i),ke=/<span((?:\s+(?:color|font|link|highlight|baseline|strike)="[^"\n]*")+)\s*>(.*?)<\/span>/gu,Se=/(color|font|link|highlight|baseline|strike)="([^"\n]*)"/gu,U=57344,ve=256,ie="",Ae=/[\ue000-\ue100]|[^\ue000-\ue100]+/gu;export const colorOfFile=i=>i.startsWith("#")?{rgb:i.toUpperCase()}:i;function oe(i){const{shadow:t,gradient:c}=i;return{...i.fill_transparency===void 0?{}:{fill_transparency:i.fill_transparency},...c?{gradient:{angle:c.angle??0,stops:c.stops.map(a=>({at:a.at,color:colorOfFile(a.color),...a.transparency===void 0?{}:{transparency:a.transparency}}))}}:{},...t?{shadow:{color:t.color===void 0?C.color:colorOfFile(t.color),blur:t.blur===void 0?C.blur:v(t.blur),distance:t.distance===void 0?C.distance:v(t.distance),angle:t.angle??C.angle,transparency:t.transparency??C.transparency}}:{}}}function re(i,t,c=[]){return{...i,rows:i.rows.map((a,d)=>({height:a.height,cells:a.cells.map(y=>{const o=c[d];return{...y,text:{paragraphs:y.text.paragraphs,style:H({...G(t,y.text),auto_size:"shape"},o),own:R(y.text),empty:!1},...o?{fileText:o}:{}}})}))}}function H(i,t){return t?{...i,levels:i.levels.map(c=>{const a={...c.font,...t.size===void 0?{}:{size:v(t.size)},...t.bold===void 0?{}:{bold:t.bold},...t.italic===void 0?{}:{italic:t.italic},...t.font===void 0?{}:{name:t.font}};if(t.color!==void 0){const o=colorOfFile(t.color);typeof o=="string"?(a.color=o,delete a.rgb):(a.rgb=o.rgb,delete a.color)}const{bullet:d,...y}=c;return t.numbered?{...y,font:a,numbered:t.numbered,...c.margin_left===0?{margin_left:ae,indent:-ae}:{},...t.align===void 0?{}:{alignment:t.align}}:{...y,...d?{bullet:d}:{},font:a,...t.align===void 0?{}:{alignment:t.align}}})}:i}function Oe(i){const t={};for(const[,c,a=""]of i.matchAll(Se))if(c==="font")t.name=a.trim();else if(c==="link")t.link=a.trim();else if(c==="highlight")t.highlight=a.trim().toUpperCase();else if(c==="strike")t.strike=a.trim()!=="false";else if(c==="baseline"){const d=Number(a);Number.isFinite(d)&&(t.baseline=d)}else{const d=colorOfFile(a);typeof d=="string"?t.color=d:t.rgb=d.rgb}return t}const ae=342900;export function paragraphsOfWords(i,t=0,c=ye.code){return i===void 0?[]:typeof i=="string"?i.split(/\r?\n/u).map(a=>{const d=[],y=a.replace(ke,(A,T,N)=>(d.push(Oe(T)),`${String.fromCharCode(U+d.length-1)}${N}${ie}`)),o=fe(y);let O;const E=ce(o.text,o.marks).flatMap(A=>{const T=A.kinds.includes("code"),N={...A.kinds.includes("strong")?{bold:!0}:{},...A.kinds.includes("em")?{italic:!0}:{},...T?{name:c}:{}};return[...A.text.matchAll(Ae)].flatMap(X=>{const F=X[0],z=F.charCodeAt(0);if(F===ie)return O=void 0,[];if(z>=U&&z<U+ve)return O=d[z-U],[];const M={...O,...N};return[{text:F,...Object.keys(M).length>0?{font:M}:{},...T?{code:!0}:{}}]})});return{runs:E.length>0?E:[{text:""}],level:t}}):i.flatMap(a=>paragraphsOfWords(a,Array.isArray(a)?Math.min(t+1,8):t,c))}const le=i=>({left:v(i.x),top:v(i.y),width:v(i.w),height:v(i.h)}),de=i=>i===void 0?void 0:{left:i.left??0,top:i.top??0,right:i.right??0,bottom:i.bottom??0};export function resolveDeck(i){const{def:t,file:c,words:a,prefix:d,base:y}=i,o=[],O=xe(i.theme??be,t.theme),E=new Map;for(const e of t.masters)for(const n of e.layouts)E.set(n.name,{layout:n,master:e});const A=[],T=(e,n,s)=>({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"?te(s,e.text):G(s,e.text),own:R(e.text),empty:!1}}:{},...e.fill===void 0?{}:{fill:e.fill},...e.fill_transparency===void 0?{}:{fill_transparency:e.fill_transparency},...e.gradient?{gradient:e.gradient}:{},...e.shadow?{shadow:e.shadow}:{},...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:re(e.table,s)}:{},...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}}}),N=(e,n)=>{const s=e.placeholder?.type??"body",h=_e(n,s),x=e.frame??h?.frame??Q;return{name:e.name,kind:"placeholder",frame:{...x},level:"slide",...e.placeholder?{placeholder:{...e.placeholder}}:{},text:{paragraphs:[],style:$e(n,s,h?.text,e.text),empty:!0},...e.fill===void 0?{}:{fill:e.fill},...e.line===void 0?{}:{line:e.line},sources:{frame:{from:e.frame||!h?"layout":"master"},text:{from:"layout"}}}},X=(e,n,s)=>{const h=t.components[e];if(!h){o.push({...s,message:`There is no component ${e} in slides.ts (it has ${Object.keys(t.components).join(", ")||"none"}).`});return}for(const x of Object.keys(n??{}))Object.hasOwn(h.props,x)||o.push({...s,message:`Component ${e} has no prop ${x} a person sets (it has ${Object.keys(h.props).join(", ")||"none"}).`});return{name:e,props:{...n??{}}}},F=(e,n,s,h,x)=>{const $={slide:h,shape:e,path:s};if(!n.frame){o.push({...$,message:`Shape ${e} is the slide's own: it needs a frame { x, y, w, h } in points.`});return}const S=le(n.frame),l={frame:{from:"slide",path:`${s}.frame`}},_={name:e,frame:S,level:"slide",...n.fill===void 0?{}:{fill:colorOfFile(n.fill)},...oe(n),...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(a(`${d}.${h}.${e}`),0,O.fonts.code),style:H(G(x,D(Z)),n.text),own:R(D(Z)),empty:!1},...n.text?{fileText:{...n.text}}:{},sources:{...l,text:{from:"slide",path:`${s}.text`}}};if(n.picture!==void 0){const f=de(n.crop);return{..._,kind:"picture",media:{path:joinPath(y,n.picture),...f?{crop:f}:{}},sources:l}}if(n.movie!==void 0)return{..._,kind:"movie",media:{path:joinPath(y,n.movie),...n.poster===void 0?{}:{poster:n.poster}},sources:l};if(n.chart){const f=a(`${d}.${h}.${e}`),m=ue(n.chart,{title:typeof f=="string"?f:void 0,base:y,rows:r=>i.data?.(r),problem:r=>{o.push({...$,message:`Chart ${e}: ${r}`})}});return m?{..._,kind:"chart",chart:m,sources:l}:void 0}if(n.table){const f=n.table,m=S.width/f.columns.reduce((g,w)=>g+w,0),r=S.height/f.rows.reduce((g,w)=>g+w.height,0),u=a(`${d}.${h}.${e}`),b=Array.isArray(u)?u:[];return b.length>f.rows.length&&o.push({...$,message:`Table ${e} has ${String(f.rows.length)} rows and its words ${String(b.length)}.`}),{..._,kind:"table",table:re({columns:f.columns.map(g=>Math.round(g*m)),rows:f.rows.map((g,w)=>{const k=b[w],K=Array.isArray(k)?k:k===void 0?[]:[k];return{height:Math.round(g.height*r),cells:f.columns.map((Te,se)=>({text:{levels:[],paragraphs:paragraphsOfWords(K[se],0,O.fonts.code)},...g.fill===void 0?{}:{fill:colorOfFile(g.fill)},...g.line===void 0?{}:{borders:{bottom:{color:colorOfFile(g.line),width:v(1)}}}}))}})},x,f.rows.map(g=>g.text)),sources:l}}const p=n.path&&ge(n.path.d);if(n.path&&!p){o.push({...$,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&&p)return{..._,kind:"autoshape",...n.path&&p?{path:{w:n.path.w,h:n.path.h,steps:p}}: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:v(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:v(n.line_width)},...n.text&&n.geometry!=="line"?{fileText:{...n.text}}:{},...n.geometry==="line"?{}:{text:{paragraphs:paragraphsOfWords(a(`${d}.${h}.${e}`)).map(f=>n.text?.align===void 0?{alignment:j.alignment,...f}:f),style:H(te(x,D(ne)),n.text),own:R(D(ne)),empty:!1}},sources:{...l,fill:{from:"slide",path:`${s}.fill`}}};if(n.component!==void 0){const f=X(n.component,n.props,$);return f?{..._,kind:"component",component:f,sources:l}:void 0}},z=(e,n,s)=>{if(n.frame&&(e.frame=le(n.frame),e.sources.frame={from:"slide",path:`${s}.frame`}),n.text&&e.text&&(e.text.style=H(e.text.style,n.text),e.fileText={...n.text},e.sources.text={from:"slide",path:`${s}.text`}),n.line!==void 0&&(e.line=W(n.line),e.sources.line={from:"slide",path:`${s}.line`}),n.line_width!==void 0&&(e.line_width=v(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:`${s}.fill`}),Object.assign(e,oe(n)),(n.picture!==void 0||n.movie!==void 0)&&(e.placeholder?.type==="pic"||e.placeholder?.type==="media"||e.placeholder?.type==="obj")){const h=de(n.crop);e.kind=n.picture!==void 0?"picture":"movie",e.media={path:joinPath(y,n.picture??n.movie??""),...h?{crop:h}:{},...n.poster===void 0?{}:{poster:n.poster}},delete e.text}},M=(e,n,s,h,x)=>{const $=E.get(n);if(!$){o.push({slide:e,path:`slides.${String(s)}.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:l}=$,_=[...(S.display_master_shapes===!1?[]:l.shapes).filter(f=>f.kind!=="placeholder").map(f=>T(f,"master",l)),...S.shapes.filter(f=>f.kind!=="placeholder").map(f=>T(f,"layout",l))],p=S.shapes.filter(f=>f.kind==="placeholder").map((f,m)=>({shape:N(f,l),order:m}));return{slide:{id:e,layout:S.name,master:l.name,hidden:h,background:S.background??l.background,shapes:_,animations:[],file:{index:s,...x===void 0?{}:{generate:x}}},placed:p,master:l}},Y=(e,n,s,h,x,$,S,l,_)=>{const p=new Set(s.map(m=>m.shape.name));let f=s.length;for(const[m,r]of Object.entries(h??{})){const u=$(m);if(u===void 0)continue;const b=`${x}.shapes.${m}`,g=r.textbox!==void 0||r.geometry!==void 0||r.path!==void 0||r.table!==void 0||r.chart!==void 0||r.component!==void 0||(r.picture!==void 0||r.movie!==void 0)&&!p.has(u),w=s.find(K=>K.shape.name===u);if(w&&!g){z(w.shape,r,b),r.z!==void 0&&(w.z=r.z);continue}if(w){o.push({slide:e.id,shape:u,path:b,message:`Slide ${e.id} has a ${w.shape.kind} ${u} already: a shape of its own needs another name.`});continue}if(!g){o.push({slide:e.id,shape:u,path:b,message:`Slide ${e.id} has no shape ${u} to change (its layout's placeholders and its own shapes are ${[...p].join(", ")||"none"}).`});continue}const k=F(u,r,b,e.id,n);k&&(s.push({shape:k,order:f++,...r.z===void 0?{}:{z:r.z}}),p.add(u))}s.sort((m,r)=>(m.z??0)-(r.z??0)||m.order-r.order);for(const m of s){const r=m.shape.text;if(m.shape.kind==="placeholder"&&r){const u=S(m.shape);r.paragraphs=paragraphsOfWords(u,0,O.fonts.code),r.empty=r.paragraphs.length===0||r.paragraphs.every(b=>b.runs.every(g=>g.text===""))}}e.shapes.push(...s.map(m=>m.shape)),l!==void 0&&l.trim()!==""&&(e.notes=l);for(const[m,r]of(_??[]).entries()){const u=$(r.shape);if(u===void 0)continue;const b={slide:e.id,shape:u,path:`${x}.animations.${String(m)}`},g=e.shapes.find(k=>k.name===u&&k.level==="slide");if(!g){o.push({...b,message:`Slide ${e.id} has no shape ${u} to animate (it has ${e.shapes.filter(k=>k.level==="slide").map(k=>k.name).join(", ")}).`});continue}if(r.paragraph!==void 0&&r.paragraph>=(g.text?.paragraphs.length??0)){o.push({...b,message:`Shape ${u} has no paragraph ${String(r.paragraph)} to animate (it has ${String(g.text?.paragraphs.length??0)}).`});continue}const w=me({...r,shape:u});w?e.animations.push(w):o.push({...b,message:`The animation of ${u} needs a path that starts with M and says only M, L and C, absolute.`})}},I=new Set;return c.slides.forEach((e,n)=>{const s=`slides.${String(n)}`;if(e.layout!==void 0){const l=M(e.id,e.layout,n,e.hidden===!0);if(!l)return;const _=a(`${d}.${e.id}.notes`);e.transition&&(l.slide.transition=J(e.transition)),Y(l.slide,l.master,l.placed,e.shapes,s,p=>p,p=>a(`${d}.${e.id}.${p.name}`),typeof _=="string"?_:void 0,e.animations),A.push(l.slide),I.add(e.id);return}const h=e.generate??"",x=t.generators[h];if(!x){o.push({slide:e.id,path:`${s}.generate`,message:`There is no generator ${h} in slides.ts (it has ${Object.keys(t.generators).join(", ")||"none"}).`});return}let $;try{$=x.make({data:i.data??(()=>{throw new Error("No data here.")})})}catch(l){o.push({slide:e.id,path:`${s}.generate`,message:`Generator ${h} failed: ${l instanceof Error?l.message:String(l)}`});return}const S=new Set(Array.isArray(e.hidden)?e.hidden:[]);for(const l of $){const _=`${e.id}/${l.id}`,p=M(_,l.layout,n,S.has(l.id),h);if(!p)continue;for(const r of l.shapes){const u=r.placeholder?p.placed.find(b=>b.shape.placeholder?.idx===r.placeholder?.idx):void 0;if(u)r.frame&&(u.shape.frame={...r.frame}),u.shape.sources.frame={from:"code"};else{const b=T(r,"layout",p.master);p.placed.push({shape:{...b,level:"slide",sources:{frame:{from:"code"}}},order:p.placed.length})}}const f=`${l.id}/`,m=l.transition??(l===$[0]?e.transition:void 0);m&&(p.slide.transition=J(m)),Y(p.slide,p.master,p.placed,e.shapes,s,r=>r.startsWith(f)?r.slice(f.length):void 0,r=>{const u=r.placeholder===void 0?void 0:l.text[r.placeholder.idx];return u===void 0?void 0:u.map(b=>b.runs.map(g=>g.text).join(""))},l.notes,[...(l.animations??[]).map(r=>({...r,shape:`${f}${r.shape}`})),...e.animations??[]]);for(const r of p.slide.shapes){const u=r.placeholder===void 0?void 0:l.text[r.placeholder.idx];u&&r.text&&(r.text.paragraphs=u,r.text.empty=!1)}A.push(p.slide),I.add(_)}for(const l of Object.keys(e.shapes??{})){const[_]=l.split("/");_!==void 0&&!$.some(p=>p.id===_)&&o.push({slide:e.id,path:`${s}.shapes.${l}`,message:`Generator ${h} makes no slide ${_}: ${l} changes nothing.`})}}),A.forEach((e,n)=>{for(const s of e.shapes)s.placeholder?.type==="sldNum"&&s.text&&(s.text.paragraphs=[{level:0,runs:[{text:String(n+1),field:"slidenum"}]}],s.text.empty=!1)}),{deck:{width:t.slide_width,height:t.slide_height,theme:O,slides:A},problems:o}}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { closest, publicNames, type StrictOptions } from "@allyhub-next/formats";
|
|
2
|
+
export { closest, publicNames, type StrictOptions };
|
|
3
|
+
/** The object behind a proxy that refuses what it does not hold. */
|
|
4
|
+
export declare function strict<T extends object>(target: T, where: string, o?: StrictOptions): T;
|
|
5
|
+
/** An enumeration that throws on a member it does not have (`MSO_SHAPE.STAR_5_POINT`). */
|
|
6
|
+
export declare function strictEnum<T extends Record<string, string>>(where: string, members: T): T;
|
|
7
|
+
//# sourceMappingURL=strict.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{closest as e,publicNames as c,strict as n,strictEnum as o}from"@allyhub-next/formats";const s="allyhub slides capabilities lists what of python-pptx the API holds and where it differs.";export{e as closest,c as publicNames};export function strict(t,i,r={}){return n(t,i,s,r)}export function strictEnum(t,i){return o(t,i,s)}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
AllyHub Software License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AllyHub, Inc. ("AllyHub"). All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software (the AllyHub command-line tool, its SDK, runtime and the
|
|
6
|
+
packages they depend on) is proprietary. It is not open source.
|
|
7
|
+
|
|
8
|
+
1. Permitted use. You may install and run the software, unmodified, to make,
|
|
9
|
+
check, preview and render videos and decks, including for commercial
|
|
10
|
+
purposes. What you make with it is yours.
|
|
11
|
+
|
|
12
|
+
2. Restrictions. Except as this license permits or applicable law requires,
|
|
13
|
+
you may not copy, modify, adapt, translate, sublicense, sell, rent, lease,
|
|
14
|
+
publish or otherwise distribute the software, create derivative works of
|
|
15
|
+
it, or reverse engineer, decompile or disassemble it.
|
|
16
|
+
|
|
17
|
+
3. Cloud services. AllyHub's cloud tools (sign-in, research, images, voice,
|
|
18
|
+
video) are separate services governed by AllyHub's terms of service.
|
|
19
|
+
|
|
20
|
+
4. Trademarks. This license grants no right to use the name "AllyHub" or its
|
|
21
|
+
logos.
|
|
22
|
+
|
|
23
|
+
5. No warranty. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
24
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
|
26
|
+
ALLYHUB BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
|
|
28
|
+
|
|
29
|
+
6. Third-party code. Parts of the software are adapted from HyperFrames,
|
|
30
|
+
licensed under the Apache License, Version 2.0 (see NOTICE). Those parts
|
|
31
|
+
remain under that license, reproduced below, and nothing in this license
|
|
32
|
+
limits your rights under it.
|
|
33
|
+
|
|
34
|
+
7. Starter components. The starter components in the "components" folder,
|
|
35
|
+
which "allyhub add" copies into your workspace, are licensed under the MIT
|
|
36
|
+
License (see components/LICENSE): once copied, you may change, use and
|
|
37
|
+
share them freely.
|
|
38
|
+
|
|
39
|
+
--------------------------------------------------------------------------------
|
|
40
|
+
|
|
41
|
+
Apache License
|
|
42
|
+
Version 2.0, January 2004
|
|
43
|
+
http://www.apache.org/licenses/
|
|
44
|
+
|
|
45
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
46
|
+
|
|
47
|
+
1. Definitions.
|
|
48
|
+
|
|
49
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
50
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
51
|
+
|
|
52
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
53
|
+
the copyright owner that is granting the License.
|
|
54
|
+
|
|
55
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
56
|
+
other entities that control, are controlled by, or are under common
|
|
57
|
+
control with that entity. For the purposes of this definition,
|
|
58
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
59
|
+
direction or management of such entity, whether by contract or
|
|
60
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
61
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
62
|
+
|
|
63
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
64
|
+
exercising permissions granted by this License.
|
|
65
|
+
|
|
66
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
67
|
+
including but not limited to software source code, documentation
|
|
68
|
+
source, and configuration files.
|
|
69
|
+
|
|
70
|
+
"Object" form shall mean any form resulting from mechanical
|
|
71
|
+
transformation or translation of a Source form, including but
|
|
72
|
+
not limited to compiled object code, generated documentation,
|
|
73
|
+
and conversions to other media types.
|
|
74
|
+
|
|
75
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
76
|
+
Object form, made available under the License, as indicated by a
|
|
77
|
+
copyright notice that is included in or attached to the work
|
|
78
|
+
(an example is provided in the Appendix below).
|
|
79
|
+
|
|
80
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
81
|
+
form, that is based on (or derived from) the Work and for which the
|
|
82
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
83
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
84
|
+
of this License, Derivative Works shall not include works that remain
|
|
85
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
86
|
+
the Work and Derivative Works thereof.
|
|
87
|
+
|
|
88
|
+
"Contribution" shall mean any work of authorship, including
|
|
89
|
+
the original version of the Work and any modifications or additions
|
|
90
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
91
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
92
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
93
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
94
|
+
means any form of electronic, verbal, or written communication sent
|
|
95
|
+
to the Licensor or its representatives, including but not limited to
|
|
96
|
+
communication on electronic mailing lists, source code control systems,
|
|
97
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
98
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
99
|
+
excluding communication that is conspicuously marked or otherwise
|
|
100
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
101
|
+
|
|
102
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
103
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
104
|
+
subsequently incorporated within the Work.
|
|
105
|
+
|
|
106
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
107
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
108
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
109
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
110
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
111
|
+
Work and such Derivative Works in Source or Object form.
|
|
112
|
+
|
|
113
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
114
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
115
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
116
|
+
(except as stated in this section) patent license to make, have made,
|
|
117
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
118
|
+
where such license applies only to those patent claims licensable
|
|
119
|
+
by such Contributor that are necessarily infringed by their
|
|
120
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
121
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
122
|
+
institute patent litigation against any entity (including a
|
|
123
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
124
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
125
|
+
or contributory patent infringement, then any patent licenses
|
|
126
|
+
granted to You under this License for that Work shall terminate
|
|
127
|
+
as of the date such litigation is filed.
|
|
128
|
+
|
|
129
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
130
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
131
|
+
modifications, and in Source or Object form, provided that You
|
|
132
|
+
meet the following conditions:
|
|
133
|
+
|
|
134
|
+
(a) You must give any other recipients of the Work or
|
|
135
|
+
Derivative Works a copy of this License; and
|
|
136
|
+
|
|
137
|
+
(b) You must cause any modified files to carry prominent notices
|
|
138
|
+
stating that You changed the files; and
|
|
139
|
+
|
|
140
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
141
|
+
that You distribute, all copyright, patent, trademark, and
|
|
142
|
+
attribution notices from the Source form of the Work,
|
|
143
|
+
excluding those notices that do not pertain to any part of
|
|
144
|
+
the Derivative Works; and
|
|
145
|
+
|
|
146
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
147
|
+
distribution, then any Derivative Works that You distribute must
|
|
148
|
+
include a readable copy of the attribution notices contained
|
|
149
|
+
within such NOTICE file, excluding those notices that do not
|
|
150
|
+
pertain to any part of the Derivative Works, in at least one
|
|
151
|
+
of the following places: within a NOTICE text file distributed
|
|
152
|
+
as part of the Derivative Works; within the Source form or
|
|
153
|
+
documentation, if provided along with the Derivative Works; or,
|
|
154
|
+
within a display generated by the Derivative Works, if and
|
|
155
|
+
wherever such third-party notices normally appear. The contents
|
|
156
|
+
of the NOTICE file are for informational purposes only and
|
|
157
|
+
do not modify the License. You may add Your own attribution
|
|
158
|
+
notices within Derivative Works that You distribute, alongside
|
|
159
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
160
|
+
that such additional attribution notices cannot be construed
|
|
161
|
+
as modifying the License.
|
|
162
|
+
|
|
163
|
+
You may add Your own copyright statement to Your modifications and
|
|
164
|
+
may provide additional or different license terms and conditions
|
|
165
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
166
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
167
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
168
|
+
the conditions stated in this License.
|
|
169
|
+
|
|
170
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
171
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
172
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
173
|
+
this License, without any additional terms or conditions.
|
|
174
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
175
|
+
the terms of any separate license agreement you may have executed
|
|
176
|
+
with Licensor regarding such Contributions.
|
|
177
|
+
|
|
178
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
179
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
180
|
+
except as required for reasonable and customary use in describing the
|
|
181
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
182
|
+
|
|
183
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
184
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
185
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
186
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
187
|
+
implied, including, without limitation, any warranties or conditions
|
|
188
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
189
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
190
|
+
appropriateness of using or redistributing the Work and assume any
|
|
191
|
+
risks associated with Your exercise of permissions under this License.
|
|
192
|
+
|
|
193
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
194
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
195
|
+
unless required by applicable law (such as deliberate and grossly
|
|
196
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
197
|
+
liable to You for damages, including any direct, indirect, special,
|
|
198
|
+
incidental, or consequential damages of any character arising as a
|
|
199
|
+
result of this License or out of the use or inability to use the
|
|
200
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
201
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
202
|
+
other commercial damages or losses), even if such Contributor
|
|
203
|
+
has been advised of the possibility of such damages.
|
|
204
|
+
|
|
205
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
206
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
207
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
208
|
+
or other liability obligations and/or rights consistent with this
|
|
209
|
+
License. However, in accepting such obligations, You may act only
|
|
210
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
211
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
212
|
+
defend, and hold each Contributor harmless for any liability
|
|
213
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
214
|
+
of your accepting any such warranty or additional liability.
|
|
215
|
+
|
|
216
|
+
END OF TERMS AND CONDITIONS
|
|
217
|
+
|
|
218
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
219
|
+
|
|
220
|
+
To apply the Apache License to your work, attach the following
|
|
221
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
222
|
+
replaced with your own identifying information. (Don't include
|
|
223
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
224
|
+
comment syntax for the file format. We also recommend that a
|
|
225
|
+
file or class name and description of purpose be included on the
|
|
226
|
+
same "printed page" as the copyright notice for easier
|
|
227
|
+
identification within third-party archives.
|
|
228
|
+
|
|
229
|
+
Copyright [yyyy] [name of copyright owner]
|
|
230
|
+
|
|
231
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
232
|
+
you may not use this file except in compliance with the License.
|
|
233
|
+
You may obtain a copy of the License at
|
|
234
|
+
|
|
235
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
236
|
+
|
|
237
|
+
Unless required by applicable law or agreed to in writing, software
|
|
238
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
239
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
240
|
+
See the License for the specific language governing permissions and
|
|
241
|
+
limitations under the License.
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { SheetFactData } from "@allyhub-next/formats";
|
|
1
2
|
import type { ContrastOptions } from "./contrast.js";
|
|
2
3
|
import type { SafeZone } from "./formats.js";
|
|
3
4
|
import type { Combo } from "./matrix.js";
|
|
4
5
|
import type { MediaKind } from "./media.js";
|
|
5
|
-
import { type FootageScale, type FreeBand, type LayoutReport, type MeasuredText, type ReadOptions, type RowSpan, type TextContainer, type TextSize, type WordsAtOnce } from "./measure.js";
|
|
6
|
+
import { type FootageScale, type FreeBand, type LayoutReport, type MeasuredText, type ReadOptions, type RowSpan, type SpeechShown, type TextContainer, type TextSize, type WordsAtOnce } from "./measure.js";
|
|
6
7
|
import type { Box } from "./problem.js";
|
|
7
8
|
import type { FlashOptions, FrameChange, SeamCarrier, SeamChange, SeamOptions, SeamSide } from "./seams.js";
|
|
8
9
|
/** What makes a run of frames a flat run (the flat-frames fact). */
|
|
@@ -79,7 +80,7 @@ export interface GeneratedFile {
|
|
|
79
80
|
seconds?: number;
|
|
80
81
|
}
|
|
81
82
|
/** What each kind of fact measures. */
|
|
82
|
-
export interface FactData extends DeckFactData {
|
|
83
|
+
export interface FactData extends DeckFactData, SheetFactData {
|
|
83
84
|
/** Two text blocks of different layers drawn over each other. */
|
|
84
85
|
"text-overlap": {
|
|
85
86
|
a: MeasuredText;
|
|
@@ -150,6 +151,11 @@ export interface FactData extends DeckFactData {
|
|
|
150
151
|
"words-on-screen": Omit<WordsAtOnce, "part"> & {
|
|
151
152
|
options: ReadOptions;
|
|
152
153
|
};
|
|
154
|
+
/**
|
|
155
|
+
* How many of the words a part says show as text in it: captions, or a
|
|
156
|
+
* line that repeats them. One per part whose words are known.
|
|
157
|
+
*/
|
|
158
|
+
"speech-on-screen": SpeechShown;
|
|
153
159
|
/**
|
|
154
160
|
* A text block over the speaker: the face track's box and/or the person
|
|
155
161
|
* matte (the share of the text's box where the matte is opaque).
|
|
@@ -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 c,boxRows as f,contentBox as l,freeBands as d,unionSpans as u,wordsAtOnce as m}from"./measure.js";export const FACT_KINDS={"text-speaker":"Text over the speaker's face box or person matte","text-off-frame":"Text the frame's edges cut: its glyphs outside the frame, in pixels and as a share","text-contrast":"Text against the pixels behind its glyphs: WCAG contrast ratios, the lowest, a low percentile and the median","text-covered":"Text in the area a platform's interface covers","text-overlap":"Text over text of another layer","text-overlap-own":"Text over text of the same layer","text-outside":"Text reaching outside a box it is drawn inside (a background, border or shadow)","text-time":"How long each text shows whole, against its words, and how large it is on a phone, with its lowercase letters' height","words-on-screen":"Words whole on screen at once in each part: the most, and every change","speech-on-screen":"Words a part says that show as text in it, and those that do not","footage-scale":"Footage enlargement: output pixels per source pixel, largest and smallest","free-bands":"Bands of the frame inside the covered edges that the speaker's face box or person matte leaves free","graphics-under-footage":"Graphic layers drawn under footage (listed before it), and how much of the frame the footage covers","flat-frames":"Runs of nearly flat frames unlike the picture around them","still-picture":"Stretches where the picture holds: how long, and how much changed in them","cut-seam":"How things move either side of each join: direction, speed and the change across; things named alike on both sides",flash:"Frames unlike both the frame before and the frame after: a flash, a blank frame, a layer for one frame","music-length":"Music length against video length","join-loudness":"Speech loudness either side of a join, or why it was not measured","matrix-coverage":"Matrix: combos asked for, possible and chosen, per candidate","generated-media":"Generated media (files with a .gen.json record) shown or played, and when","gen-mismatch":"A .gen.json record whose sha256 is not its file's, or that cannot be read",fallback:"Drawn or timed a fallback way: a face track, matte, take or music tempo missing","scenery-contact":"3D scenery: named objects that touch or cross, with the shared area, the crossing's length, how deep at least, the lift that clears them and the shared volume","scenery-support":"3D scenery: what each named object rests on, the gap below or how far it is sunk, its footprint in contact and its centre of mass against the contact","scenery-bake":"3D scenery: whether a scenery layer's scenery was drawn with its bake laid; when not, the scene's digest looked for, whether it was baked before (out of date) or never, and the command that makes it","mesh-health":"3D scenery: named objects whose surface is open, non-manifold, degenerate or crosses itself","camera-clearance":"3D scenery: a scenery layer's camera near a surface, inside an object, or cutting geometry with its near plane","camera-motion":"3D scenery: a scenery layer's camera motion in its own frame: peaks of truck, pedestal, dolly, pan, tilt, roll, zoom, speed, acceleration and jerk, smoothness, the largest step","scenery-screen":"3D scenery: a screen in a scenery layer: when it is on the frame, its share, how much its content is enlarged or shrunk, its angle to the view, how much is hidden in front of it, how blurred with an aperture, where it is drawn and at what scale, its smallest text on the frame as drawn and the speed of each stretch between cues","scenery-screen-fidelity":"3D scenery: a screen drawn in the scenery against its own element drawn flat: the colour difference, the share of pixels that differ, the regions where they differ and the elements in them the scenery's picture is known to draw otherwise","text-overflow":"A deck: a shape's text past its box, by its lines' glyphs: how far, and the lines past it","shape-off-slide":"A deck: a shape partly or wholly past the slide's edge, and the share of it outside","shape-overlap":"A deck: two shapes of a slide over each other (not a master's or a layout's own under another), and by how much","near-alignment":"A deck: edges and centres of two shapes, or of a shape and the slide, nearly in line and not, in points","placement-drift":"A deck: a shape of one name at different places on slides of one layout","type-in-use":"A deck: the text sizes and weights it uses, on how many slides each, and the smallest","read-size":"A deck: each text's size on the slide, on a phone, and with --room on a room's screen and at its farthest seat","words-on-slide":"A deck: words, lines and texts on each slide","sheet-error":"A sheet: cells whose value is an error, and whether the error starts there or is read from another","sheet-number":"A sheet: numbers written into a formula, each with what takes it, and how many cells hold the formula","sheet-unlike":"A sheet: a cell between neighbours that read alike, unlike them, and how long a run they make","sheet-exception":"A sheet: cells of a calculated column set apart from its formula","sheet-unused":"A sheet: defined names and typed numbers nothing reads (no formula, chart, rule, check or name)","sheet-invalid":"A sheet: cells that break their data validation","sheet-typed":"A sheet: numbers sheet.ts typed that neither its data nor its code holds, what it computed where a formula should","sheet-ordinary":"A sheet: a sheet sheet.ts makes and sheet.yaml holds too, sheet.yaml's standing","picture-resolution":"A deck: a picture drawn larger than its pixels, its pixels per inch, and how much it is stretched","shape-hidden":"A deck: a shape another covers whole at every build, or an animation that never shows its shape","chart-data":"A chart's numbers: how many, how far they run, and the file they came from","table-grown":"A deck: a table's rows its words made taller than they are set","deck-fonts":"A deck: the fonts its PowerPoint file names, and whether each is one every PowerPoint, Keynote and Google Slides has","cut-in-word":"A part playing a stretch of a video item cut inside one of its words"};export function isFactKind(e){return Object.hasOwn(FACT_KINDS,e)}export function fact(e,a,o){return{kind:e,...a,data:o}}export function factsOf(e,a){return e.filter(o=>o.kind===a)}export function countFacts(e){const a={};for(const o of e)a[o.kind]=(a[o.kind]??0)+1;return a}export function filterFacts(e,a){return e.filter(o=>!(a.kinds?.length&&!a.kinds.includes(o.kind)||a.part!==void 0&&o.part!==a.part||(a.from!==void 0||a.to!==void 0)&&(o.t===void 0||a.from!==void 0&&o.t<a.from-1e-6||a.to!==void 0&&o.t>a.to+1e-6)))}export function freeBandsData(e){const a=l(e.width,e.height,e.safe),o=(r,s)=>{const n=u(s.flat());return{files:r,seen:s.filter(h=>h.length>0).length,rows:n,bands:d(a,n)}},i="missing"in e.face?e.face:{...o(e.face.files,e.face.boxes.map(r=>{const s=r?f(r,a.x):void 0;return s?[s]:[]})),...e.face.speaker===void 0?{}:{speaker:e.face.speaker}},t="missing"in e.person?e.person:o(e.person.files,e.person.rows);return{frame:[e.width,e.height],covered:e.safe,content:a,...e.profile?{profile:e.profile}:{},moments:e.moments,face:i,person:t,bands:d(a,[..."rows"in i?i.rows:[],..."rows"in t?t.rows:[]])}}export function layoutFacts(e,a,o){const i=[];for(const t of e.moments){const r={...a,part:t.part,t:t.t};for(const s of t.overlaps){const n=t.texts[s.a],h=t.texts[s.b];!n||!h||i.push(fact("text-overlap",r,{a:n,b:h,area:s.area,share:s.share}))}for(const s of t.ownOverlaps){const n=t.texts[s.a],h=t.texts[s.b];!n||!h||i.push(fact("text-overlap-own",r,{a:n,b:h,area:s.area,share:s.share}))}for(const s of t.outside){const n=t.texts[s.text];n&&i.push(fact("text-outside",r,{text:n,container:s.container,edges:s.edges}))}for(const s of t.faceOverlaps){const n=t.texts[s.text];!n||!t.face||i.push(fact("text-speaker",r,{text:n,face:{box:t.face,area:s.area,ofText:s.ofText,ofFace:s.ofFace}}))}for(const s of t.offFrame){const n=t.texts[s.text];n&&i.push(fact("text-off-frame",r,{text:n,frame:[e.width,e.height],edges:s.edges,outside:s.outside,share:s.share,glyphs:s.glyphs}))}for(const s of t.safeOverlaps){const n=t.texts[s.text];n&&i.push(fact("text-covered",r,{text:n,frame:[e.width,e.height],covered:e.safe,...o?{profile:o}:{},edges:s.edges}))}}for(const t of e.reading?.texts??[])i.push(fact("text-time",{...a,part:t.part,t:t.first},{text:t.text,words:t.words,chars:t.chars,seconds:t.seconds,spans:t.spans,onScreen:t.onScreen,...t.size?{size:t.size}:{},options:e.reading?.options??c}));for(const t of m(e.reading?.texts??[])){const{part:r,...s}=t;i.push(fact("words-on-screen",{...a,part:r,t:t.from},{...s,options:e.reading?.options??c}))}for(const t of e.footage){const{part:r,...s}=t;i.push(fact("footage-scale",{...a,part:r,t:t.max.t},s))}return i}
|
|
@@ -99,34 +99,6 @@ export interface PlatformProfile {
|
|
|
99
99
|
maxKbps: number;
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
|
-
/**
|
|
103
|
-
* How the platform serves what it was given, as measured on videos
|
|
104
|
-
* downloaded from it: what `allyhub reference served` encodes a piece
|
|
105
|
-
* through to measure it as a viewer is served it. Absent where AllyHub
|
|
106
|
-
* has not measured it; the command's options set any of it.
|
|
107
|
-
*/
|
|
108
|
-
served?: ServedEncode;
|
|
109
|
-
}
|
|
110
|
-
/** A platform's served encode: the picture's and the sound's. */
|
|
111
|
-
export interface ServedEncode {
|
|
112
|
-
video: {
|
|
113
|
-
codec: "h264";
|
|
114
|
-
profile: "high";
|
|
115
|
-
/** The average bitrate, kbit/s. */
|
|
116
|
-
kbps: number;
|
|
117
|
-
width: number;
|
|
118
|
-
height: number;
|
|
119
|
-
fps: number;
|
|
120
|
-
/** x264's preset. */
|
|
121
|
-
preset: string;
|
|
122
|
-
};
|
|
123
|
-
audio: {
|
|
124
|
-
/** HE-AAC v2 (SBR and parametric stereo), HE-AAC (SBR) or AAC-LC. */
|
|
125
|
-
codec: "he-aac-v2" | "he-aac" | "aac";
|
|
126
|
-
kbps: number;
|
|
127
|
-
rate: number;
|
|
128
|
-
channels: number;
|
|
129
|
-
};
|
|
130
102
|
}
|
|
131
103
|
/** A platform profile's frame, interface, length, sound and file. */
|
|
132
104
|
export declare function profileInfo(profile: Profile): PlatformProfile;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export const PRESETS=["16x9","9x16","1x1","4x5"];export function isPreset(t){return typeof t=="string"&&PRESETS.includes(t)}const s={"16x9":{width:1920,height:1080,orient:"landscape",safe:{top:60,bottom:90,left:80,right:80}},"9x16":{width:1080,height:1920,orient:"portrait",safe:{top:150,bottom:400,left:40,right:140}},"1x1":{width:1080,height:1080,orient:"square",safe:{top:50,bottom:90,left:40,right:40}},"4x5":{width:1080,height:1350,orient:"portrait",safe:{top:60,bottom:120,left:40,right:40}}};export function contentEdges(t,e={}){const{width:n,height:i,orient:o,safe:r}=t,f=Math.min(n,i)/1080,c=e.margin??(o==="landscape"?120:84)*f,a=Math.max(c,r.left,r.right),l=Math.max(a,r.top+(e.topGap??30*f)),p=i-Math.max(a,r.bottom+(e.bottomGap??20*f));return{k:f,pad:a,top:l,bottom:p,left:a,right:n-a}}export function presetInfo(t){return s[t]}export const PROFILES=["tiktok","reels","shorts","meta-feed","amazon","linkedin"];export function isProfile(t){return typeof t=="string"&&PROFILES.includes(t)}const d={tiktok:{name:"tiktok",label:"TikTok",width:1080,height:1920,safe:{top:240,bottom:660,left:120,right:180},maxDuration:600,loudness:-14,file:{container:"mp4",video:"h264",audio:"aac",cover:{width:1080,height:1920},maxBytes:5e8,encode:{crf:20,maxKbps:6e3}}},reels:{name:"reels",label:"Instagram Reels",width:1080,height:1920,safe:{top:269,bottom:672,left:65,right:65},maxDuration:180,loudness:-14,file:{container:"mp4",video:"h264",audio:"aac",cover:{width:1080,height:1920},maxBytes:4e9,encode:{crf:20,maxKbps:6e3}}},shorts:{name:"shorts",label:"YouTube Shorts",width:1080,height:1920,safe:{top:288,bottom:672,left:48,right:192},maxDuration:180,loudness:-14,file:{container:"mp4",video:"h264",audio:"aac",cover:{width:1080,height:1920},maxBytes:256e9,encode:{crf:20,maxKbps:8e3}}},"meta-feed":{name:"meta-feed",label:"Facebook and Instagram feed",width:1080,height:1350,safe:{top:60,bottom:120,left:40,right:40},maxDuration:14460,loudness:-14,file:{container:"mp4",video:"h264",audio:"aac",cover:{width:1080,height:1350},maxBytes:4e9,encode:{crf:20,maxKbps:6e3}}},amazon:{name:"amazon",label:"Amazon Sponsored Brands video",width:1920,height:1080,safe:{top:60,bottom:90,left:80,right:80},maxDuration:45,loudness:-14,file:{container:"mp4",video:"h264",audio:"aac",cover:{width:1920,height:1080},maxBytes:5e8,encode:{crf:20,maxKbps:8e3}}},linkedin:{name:"linkedin",label:"LinkedIn",width:1080,height:1080,safe:{top:50,bottom:90,left:40,right:40},maxDuration:1800,loudness:-14,file:{container:"mp4",video:"h264",audio:"aac",cover:{width:1080,height:1080},maxBytes:2e8,encode:{crf:20,maxKbps:6e3}}}};export function profileInfo(t){return d[t]}export function profileOf(t){return isProfile(t)?d[t]:void 0}export const FPS=30,LOAD_LIMIT=10,SEEK_LIMIT=30,LOAD_WAITS=4,MAX_FPS=120;const u=[24,30,48,60,120];export const FPS_HELP="a whole number from 1 to 120, or an NTSC rate: 23.976, 29.97, 47.952, 59.94 or 119.88 (also written 24000/1001, 30000/1001 …)";export function parseFps(t){if(typeof t=="number"){if(!Number.isFinite(t))return;if(Number.isInteger(t))return t>=1&&t<=MAX_FPS?t:void 0;for(const i of u){const o=i*1e3/1001;if(Math.abs(t-o)<.005)return o}return}if(typeof t!="string")return;const e=t.trim(),n=/^(\d+)\s*\/\s*(\d+)$/.exec(e);if(n){const i=Number(n[1]),o=Number(n[2]);return o===1?parseFps(i):o===1001&&u.some(r=>r*1e3===i)?i/o:void 0}return e!==""&&Number.isFinite(Number(e))?parseFps(Number(e)):void 0}export function fpsRational(t){for(const n of u)if(Math.abs(t-n*1e3/1001)<1e-9)return{num:n*1e3,den:1001,text:`${String(n*1e3)}/1001`};const e=Math.round(t);return{num:e,den:1,text:String(e)}}export function toFrame(t,e=FPS){return Math.floor(t*e+1e-9)/e}export function roundToFrame(t,e=FPS){return Math.round(t*e)/e}const x=/^([1-9]\d{1,3})x([1-9]\d{1,3})$/,g={top:0,bottom:0,left:0,right:0},h=(t,e)=>t>e?"landscape":t<e?"portrait":"square";export function formatName(t){return typeof t=="string"?t:t.format}export function formatEntry(t,e){return t.find(n=>formatName(n)===e)}function b(t,e){const n={...t.safe,...m(e.safe??{})},i=t.profile;return{...t,safe:n,...i?{profile:{...i,safe:n,...e.maxDuration===void 0?{}:{maxDuration:e.maxDuration},...e.loudness===void 0?{}:{loudness:e.loudness}}}:{}}}function m(t){return Object.fromEntries(Object.entries(t).filter(([,e])=>e!==void 0))}export function formatSpecProblem(t){const e=formatInfo(t.format);if(!e)return;const n={...e.safe,...m(t.safe??{})};for(const[i,o]of Object.entries(t.safe??{}))if(o!==void 0&&(!Number.isInteger(o)||o<0))return`safe.${i} is ${String(o)}: covered edges are whole pixels from 0`;if(n.left+n.right>=e.width||n.top+n.bottom>=e.height)return`safe leaves nothing of the ${String(e.width)}×${String(e.height)} frame uncovered`;if(!e.profile&&(t.maxDuration!==void 0||t.loudness!==void 0))return`${t.format} is not a platform profile (${PROFILES.join(", ")}): maxDuration and loudness belong to one; a video's own limit is video(…, { maxDuration }) and its loudness video(…, { master })`}export function formatInfo(t){if(typeof t!="string"){const o=formatInfo(t.format);return o&&b(o,t)}if(isPreset(t))return s[t];if(isProfile(t)){const o=d[t];return{width:o.width,height:o.height,orient:h(o.width,o.height),safe:o.safe,profile:o}}const e=x.exec(t);if(!e)return;const n=Number(e[1]),i=Number(e[2]);if(!(n<64||i<64||n>8192||i>8192))return{width:n,height:i,orient:h(n,i),safe:g}}export function isVideoFormat(t){if(isPreset(t)||isProfile(t))return!0;if(typeof t!="string")return!1;const e=formatInfo(t);return e!==void 0&&e.width%2===0&&e.height%2===0}export function isFormat(t){return typeof t=="string"&&formatInfo(t)!==void 0}export const VIDEO_FORMAT_HELP=`one of ${PRESETS.join(", ")}, a platform profile (${PROFILES.join(", ")}), or WIDTHxHEIGHT in pixels with even sides from 64 to 8192, such as 1280x720`;export function paperOf(t){const e=formatInfo(t)??s["16x9"];return`${String(e.width)}px ${String(e.height)}px`}
|
|
@@ -333,6 +333,16 @@ export declare function textTime(samples: readonly TextSample[], o: {
|
|
|
333
333
|
end: number;
|
|
334
334
|
frame: [width: number, height: number];
|
|
335
335
|
}, options?: ReadOptions): TextTime | undefined;
|
|
336
|
+
/** How much of what a part says shows as text in that part (the speech-on-screen fact). */
|
|
337
|
+
export interface SpeechShown {
|
|
338
|
+
/** Words the part says, and how many of them are in a text it shows. */
|
|
339
|
+
words: number;
|
|
340
|
+
shown: number;
|
|
341
|
+
/** The words said that no text shows, each once, in order. */
|
|
342
|
+
unshown: string[];
|
|
343
|
+
}
|
|
344
|
+
/** Words said against the texts on screen, by their letters: a caption's words are the words said. */
|
|
345
|
+
export declare function speechShown(heard: string, texts: readonly string[]): SpeechShown;
|
|
336
346
|
/** The words whole on screen at once in a part (the words-on-screen fact). */
|
|
337
347
|
export interface WordsAtOnce {
|
|
338
348
|
part: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{boxFit as F,zoomChannel as I}from"./footage-motion.js";import{keyAt as $,rectAt as L}from"./motion.js";export const READ_DEFAULTS={every:.2,opacity:.9,shown:.9,phone:[390,844]};export function phoneScale(t,o){return Math.min(o[0]/t[0],o[1]/t[1])}export function countWords(t){let o=0;for(const e of new Intl.Segmenter(void 0,{granularity:"word"}).segment(t))e.isWordLike&&o++;let a=0;for(const e of new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(t))e.segment.trim()!==""&&a++;return{words:o,chars:a}}export function textTime(t,o,a=READ_DEFAULTS){const e=new Map;for(const x of t)e.set(x.text,(e.get(x.text)??0)+1);let c,u=0;for(const x of t){const w=e.get(x.text)??0;w>=u&&(u=w,c=x.text)}if(c===void 0)return;const h=t.filter(x=>x.text===c),f=x=>x.opacity>=a.opacity-1e-9&&x.shown>=a.shown-1e-9,i=a.every,n=x=>g(Math.min(x+i,o.end)),r=[];for(const x of h){if(!f(x))continue;const w=r.at(-1);w&&x.t-w[1]<i*.5?w[1]=n(x.t):r.push([g(x.t),n(x.t)])}const p=h.find(f)??h[0];if(!p)return;const l=(h.some(f)?h.filter(f):h).flatMap(x=>x.size===void 0?[]:[x.size]),m=l.length>0?Math.min(...l):void 0,s=(h.some(f)?h.filter(f):h).flatMap(x=>x.xHeight===void 0?[]:[x.xHeight]),d=s.length>0?Math.min(...s):void 0,M=phoneScale(o.frame,a.phone),v=x=>g(x.reduce((w,[O,A])=>w+Math.max(0,A-O),0)),y=[];for(const x of h){const w=y.at(-1);w&&x.t-w[1]<i*.5?w[1]=n(x.t):y.push([g(x.t),n(x.t)])}return{part:o.part,text:{layer:o.layer,z:o.z,text:c,box:p.box},...countWords(c),seconds:v(r),spans:r,onScreen:v(y),first:g(p.t),...m===void 0?{}:{size:{px:z(m),phone:z(m*M),...d===void 0?{}:{lowercase:{px:z(d),phone:z(d*M)}}}}}}const S=t=>t.toLowerCase().replace(/[^\p{L}\p{N}]/gu,"");export function speechShown(t,o){const a=new Set(o.flatMap(u=>u.split(/\s+/u).map(S))),e=t.split(/\s+/u).filter(u=>S(u)!==""),c=e.filter(u=>!a.has(S(u)));return{words:e.length,shown:e.length-c.length,unshown:[...new Set(c.map(S))]}}export function wordsAtOnce(t){const o=new Map;for(const e of t){if(e.spans.length===0)continue;const c=o.get(e.part)??[];c.push(e),o.set(e.part,c)}const a=[];for(const[e,c]of o){const u=[...new Set(c.flatMap(i=>i.spans.flat()))].sort((i,n)=>i-n),h=[];let f;for(const[i,n]of u.entries()){const r=c.filter(m=>m.spans.some(([s,d])=>n>=s&&n<d)),p=r.reduce((m,s)=>m+s.words,0),l=h.at(-1);(l?.words!==p||l.texts!==r.length)&&h.push({t:n,words:p,texts:r.length}),r.length>0&&(!f||p>f.words)?f={words:p,chars:r.reduce((m,s)=>m+s.chars,0),texts:r.length,from:n,until:u[i+1]??n}:f?.until===n&&p===f.words&&(f.until=u[i+1]??n)}f&&a.push({part:e,...f,steps:h})}return a}const b=t=>Math.max(0,t[2])*Math.max(0,t[3]);export function overlapArea(t,o){const a=Math.min(t[0]+t[2],o[0]+o[2])-Math.max(t[0],o[0]),e=Math.min(t[1]+t[3],o[1]+o[3])-Math.max(t[1],o[1]);return a>0&&e>0?a*e:0}const g=t=>Math.round(t*1e3)/1e3,z=t=>Math.round(t*10)/10;export function boxOverlap(t,o){const a=overlapArea(t,o);if(a<=0)return;const e=Math.min(b(t),b(o));return{area:Math.round(a),share:e>0?g(a/e):0}}export function safeEdges(t,o,a,e){const[c,u,h,f]=t;return[["top",o.top>0?o.top-u:0],["bottom",o.bottom>0?u+f-(e-o.bottom):0],["left",o.left>0?o.left-c:0],["right",o.right>0?c+h-(a-o.right):0]].filter(([,n])=>n>=1).map(([n,r])=>({side:n,px:Math.round(r)}))}export function outsideEdges(t,o){return[["top",o[1]-t[1]],["bottom",t[1]+t[3]-(o[1]+o[3])],["left",o[0]-t[0]],["right",t[0]+t[2]-(o[0]+o[2])]].filter(([,e])=>e>=1).map(([e,c])=>({side:e,px:Math.round(c)}))}export function offFrame(t,o,a){let e=0,c=0;const u={top:0,bottom:0,left:0,right:0};let[h,f,i,n]=[1/0,1/0,-1/0,-1/0];for(const s of t)s[2]<=0||s[3]<=0||(h=Math.min(h,s[0]),f=Math.min(f,s[1]),i=Math.max(i,s[0]+s[2]),n=Math.max(n,s[1]+s[3]),e+=b(s),c+=overlapArea(s,[0,0,o,a]),u.top=Math.max(u.top,-s[1]),u.bottom=Math.max(u.bottom,s[1]+s[3]-a),u.left=Math.max(u.left,-s[0]),u.right=Math.max(u.right,s[0]+s[2]-o));if(e<=0)return;const r=["top","bottom","left","right"].filter(s=>u[s]>=1).map(s=>({side:s,px:Math.round(u[s])}));if(r.length===0)return;const p=Math.max(0,e-c),l=Math.round(h),m=Math.round(f);return{outside:Math.round(p),share:g(p/e),edges:r,glyphs:[l,m,Math.round(i)-l,Math.round(n)-m]}}export function cutThroughout(t){const o=new Map;for(const e of t.moments){const c=new Map(e.offFrame.map(h=>[h.text,h])),u=new Set;e.texts.forEach((h,f)=>{if(h.viewport)return;const i=c.get(f);if(i&&i.share>=1)return;const n=`${e.part}
|
|
3
|
+
${h.layer}
|
|
4
|
+
${h.z}
|
|
5
|
+
${h.text}`;if(u.has(n))return;u.add(n);let r=o.get(n);if(r||(r={part:e.part,shown:0,cut:void 0},o.set(n,r)),r.shown++,!i)return;const p={outside:i.outside,share:i.share,edges:i.edges,glyphs:i.glyphs};if(!r.cut){r.cut={part:e.part,text:h,moments:[e.t],t:e.t,worst:p};return}r.cut.moments.push(e.t),i.share>r.cut.worst.share&&(r.cut.text=h,r.cut.t=e.t,r.cut.worst=p)})}const a=[];for(const e of o.values())e.cut?.moments.length===e.shown&&a.push(e.cut);return a}export function measureMoment(t){const o=[],a=[],e=n=>t.seen?.[n]??t.texts[n]?.box;for(let n=0;n<t.texts.length;n++)for(let r=n+1;r<t.texts.length;r++){const p=t.texts[n],l=t.texts[r];if(!p||!l)continue;if(t.owner[n]===t.owner[r]){const s=e(n),d=e(r),M=s&&d?boxOverlap(s,d):void 0;M&&a.push({a:n,b:r,...M});continue}const m=boxOverlap(p.box,l.box);m&&o.push({a:n,b:r,...m})}const c=[];t.texts.forEach((n,r)=>{const p=e(r);if(!(!p||n.viewport))for(const l of t.containers?.[r]??[]){const m=outsideEdges(p,l.box);if(m.length!==0){c.push({text:r,container:l,edges:m});break}}});const u=[],h=t.face;h&&t.texts.forEach((n,r)=>{const p=overlapArea(n.box,h);p<=0||u.push({text:r,area:Math.round(p),ofText:g(p/Math.max(1,b(n.box))),ofFace:g(p/Math.max(1,b(h)))})});const f=[];t.texts.forEach((n,r)=>{if(n.viewport)return;const p=safeEdges(n.box,t.safe,t.width,t.height);p.length>0&&f.push({text:r,edges:p})});const i=[];return t.texts.forEach((n,r)=>{if(n.viewport)return;const p=e(r),l=offFrame(t.glyphs?.[r]??(p?[p]:[]),t.width,t.height);l&&i.push({text:r,...l})}),{t:t.t,part:t.part,texts:t.texts,...h?{face:h}:{},overlaps:o,ownOverlaps:a,outside:c,faceOverlaps:u,safeOverlaps:f,offFrame:i}}export function footageScale(t,o=1,a){const e=t.crop;if(!e||!t.source||e[2]<=0||e[3]<=0)return;const c=t.picture,u=t.zoom&&t.zoom.length>0?I(t.zoom,"z"):[],h=t.boxes&&t.boxes.length>1?t.boxes:void 0,f=h?.[0]?.box,i=h?.map(s=>({t:s.t,rect:s.box,...s.ease?{ease:s.ease}:{}})),n=Math.max(t.start,a?t.end-1/a:t.end),r=[t.start,...u.map(s=>s.t),...(h??[]).map(s=>s.t),n].map(s=>Math.min(Math.max(s,t.start),n)).sort((s,d)=>s-d),p=s=>{const d=u.length>0?$(u,s):1,M=i&&f?F(t,f,L(i,s)):1,v=Math.max(c[2]*M/e[2],c[3]*M/e[3])*d*o,y=[t.fit];return Math.abs(d-1)>1e-6&&y.push(`zoom ${String(g(d))}×`),i&&Math.abs(M-1)>1e-6&&y.push(`box key ${String(g(M))}×`),{scale:g(v),t:g(s),from:y}};let l=p(t.start),m=l;for(const s of r){const d=p(s);d.scale>l.scale&&(l=d),d.scale<m.scale&&(m=d)}return{part:t.part,file:t.file,source:[t.source.width,t.source.height],shown:[Math.round(e[2]),Math.round(e[3])],max:l,min:m}}export function contentBox(t,o,a){return{x:[a.left,Math.max(a.left,t-a.right)],y:[a.top,Math.max(a.top,o-a.bottom)]}}export function unionSpans(t){const o=t.filter(([e,c])=>c>e).map(([e,c])=>[e,c]).sort((e,c)=>e[0]-c[0]),a=[];for(const e of o){const c=a.at(-1);c&&e[0]<=c[1]?c[1]=Math.max(c[1],e[1]):a.push(e)}return a}export function freeBands(t,o){const[a,e]=t.y,c=[];let u=a;const h=(f,i)=>{i>f&&c.push({y:[f,i],x:[t.x[0],t.x[1]],height:i-f})};for(const[f,i]of unionSpans(o))if(!(i<=u)){if(f>=e)break;h(u,Math.min(f,e)),u=Math.max(u,i)}return h(u,e),c}export function boxRows(t,o){if(!(t[2]<=0||t[3]<=0)&&!(t[0]>=o[1]||t[0]+t[2]<=o[0]))return[Math.floor(t[1]),Math.ceil(t[1]+t[3])]}const E=t=>[t[0]+t[2]/2,t[1]+t[3]/2];function k(t,o){if(!t.box||!o.box)return{px:0,grew:0};const[a,e]=E(t.box),[c,u]=E(o.box);return{px:Math.hypot(c-a,u-e),grew:Math.max(Math.abs(o.box[2]-t.box[2]),Math.abs(o.box[3]-t.box[3]))}}export function largestSteps(t){const o=[];for(const e of t){const c=e.samples.length,u=[],h=[];for(let f=1;f<c;f++){const i=e.samples[f-1],n=e.samples[f];if(!i||!n)continue;const r=k(i,n);u[f]=Math.max(r.px,r.grew),h[f]=Math.abs(n.opacity-i.opacity)}for(const[f,i]of[["move",u],["fade",h]]){let n=-1,r=0;for(let s=1;s<c;s++){const M=(i[s]??0)-Math.max(i[s-1]??0,i[s+1]??0);M>r+1e-9&&(n=s,r=M)}const p=e.samples[n-1],l=e.samples[n];if(n<1||!p||!l)continue;const m=k(p,l);o.push({part:e.part,layer:e.layer,what:e.what,selector:e.selector,kind:f,t:g(l.t),...p.box?{from:p.box}:{},...l.box?{to:l.box}:{},px:g(m.px),grew:g(m.grew),opacity:[g(p.opacity),g(l.opacity)],around:g(Math.max(i[n-1]??0,i[n+1]??0)),over:g(r)})}}const a=e=>e.kind==="move"?0:1;return o.sort((e,c)=>a(e)-a(c)||c.over-e.over)}
|