@allyhub/sdk 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/free.d.ts +2 -2
- package/dist/index.d.ts +2 -9
- package/dist/index.js +1 -1
- package/dist/module.d.ts +2 -3
- package/dist/module.js +1 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/audio/package.json +1 -1
- package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.d.ts +31 -0
- package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.js +3 -0
- package/dist/node_modules/@allyhub-next/chart/dist/chart.d.ts +195 -0
- package/dist/node_modules/@allyhub-next/chart/dist/chart.js +2 -0
- package/dist/node_modules/@allyhub-next/chart/dist/index.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/chart/dist/index.js +2 -0
- package/dist/node_modules/@allyhub-next/chart/package.json +14 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/reference.d.ts +0 -86
- package/dist/node_modules/@allyhub-next/formats/dist/data/reference.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/script.d.ts +22 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/script.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +4908 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +1497 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/index.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/formats/dist/index.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/items.d.ts +22 -1
- package/dist/node_modules/@allyhub-next/formats/dist/items.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/note-shape.d.ts +39 -0
- package/dist/node_modules/@allyhub-next/formats/dist/note-shape.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +2146 -0
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/strict.d.ts +28 -0
- package/dist/node_modules/@allyhub-next/formats/dist/strict.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/formats/package.json +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/app.d.ts +37 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/app.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/auth.d.ts +0 -17
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/auth.js +1 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cli.d.ts +0 -4
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cli.js +1 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/editor.d.ts +17 -24
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/editor.js +1 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/index.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +165 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/registry.d.ts +1 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/runtimes.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/runtimes.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/tools.d.ts +43 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/protocol/package.json +1 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/errors.d.ts +5 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/index.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/lock.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/lock.js +2 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/node-program.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/node-program.js +2 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/packages.d.ts +65 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/packages.js +4 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/runtimes.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/runtimes.js +4 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/unpack.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/unpack.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/package.json +5 -1
- package/dist/node_modules/@allyhub-next/runtimes/pins/docx/package-lock.json +67 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/docx/package.json +9 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/gltf-tools/package-lock.json +753 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/gltf-tools/package.json +14 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/manifold-3d/package-lock.json +950 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/manifold-3d/package.json +8 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package-lock.json +227 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package.json +8 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package-lock.json +105 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package.json +8 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package-lock.json +128 -0
- package/dist/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package.json +9 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/schemas/runtimes.schema.json +5 -24
- package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/moire.d.ts +7 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/phone.d.ts +3 -1
- package/dist/node_modules/@allyhub-next/scenery/dist/phone.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub-next/sheet/LICENSE +241 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/address.d.ts +32 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/address.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/capabilities.d.ts +23 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/capabilities.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/charts.d.ts +204 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/charts.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/code.d.ts +19 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/code.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/hint.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/hint.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/index.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/index.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/rectangles.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/rectangles.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/rules.d.ts +170 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/rules.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/styles.d.ts +117 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/styles.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.d.ts +323 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/arrange.d.ts +68 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/arrange.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.d.ts +21 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.d.ts +19 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.d.ts +152 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.d.ts +15 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.d.ts +69 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/distributions.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/distributions.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.d.ts +15 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/special.d.ts +29 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/special.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.d.ts +50 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/chart.d.ts +58 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/check.d.ts +15 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/check.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/csv.d.ts +62 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/csv.js +12 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/diff.d.ts +64 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/edit.d.ts +154 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/edit.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/export.d.ts +11 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/export.js +6 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/file.d.ts +19 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/file.js +3 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/files.d.ts +24 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/files.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/fill.d.ts +30 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/fill.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/filter.d.ts +29 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/filter.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/format.d.ts +9 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/format.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/ast.d.ts +113 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/ast.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/move.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/move.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/parse.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/parse.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/print.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/print.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/rewrite.d.ts +65 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/rewrite.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/walk.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/formula/walk.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/generated.d.ts +46 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/generated.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/html.d.ts +34 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/html.js +20 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/import.d.ts +11 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/import.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/index.d.ts +38 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/index.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/inspect.d.ts +25 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/inspect.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/patch.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/patch.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/profile.d.ts +30 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/profile.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/rules.d.ts +56 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/rules.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/scenario.d.ts +42 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/scenario.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/series.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/series.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/sort.d.ts +24 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/sort.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/structure.d.ts +38 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/validate.d.ts +26 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/validate.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/values.d.ts +67 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/values.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +315 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/write.d.ts +5 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/write.js +21 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +42 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/colors.d.ts +19 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/colors.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.d.ts +21 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.js +4 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.d.ts +5 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.js +17 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +44 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/index.d.ts +5 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/index.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/numfmt.d.ts +8 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/numfmt.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +117 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.d.ts +23 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/theme.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/theme.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.d.ts +17 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/xml.d.ts +28 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/xml.js +3 -0
- package/dist/node_modules/@allyhub-next/sheet/package.json +21 -0
- package/dist/node_modules/@allyhub-next/slides-core/LICENSE +241 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/animation.d.ts +129 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/animation.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +649 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +4 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.d.ts +18 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +165 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.d.ts +11 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/check.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/check.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +146 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.d.ts +109 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.js +4 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +21 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/measure.d.ts +34 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/measure.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +275 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.d.ts +58 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/path.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/path.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/placeholders.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/placeholders.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +181 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.d.ts +43 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.js +3 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +63 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/strict.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/theme.d.ts +72 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/theme.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/units.d.ts +35 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/units.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/package.json +14 -0
- package/dist/node_modules/@allyhub-next/video-core/LICENSE +241 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/export.d.ts +6 -5
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/export.js +1 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/fact.d.ts +180 -5
- package/dist/node_modules/@allyhub-next/video-core/dist/fact.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/formats.d.ts +6 -41
- package/dist/node_modules/@allyhub-next/video-core/dist/formats.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/index.d.ts +0 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/index.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/measure.d.ts +93 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/measure.js +5 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/piece.d.ts +8 -9
- package/dist/node_modules/@allyhub-next/video-core/dist/piece.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/problem.d.ts +10 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +2 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/render-types.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/schema.d.ts +0 -2
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/script-edit.d.ts +4 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/script.d.ts +8 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/script.js +2 -0
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/timeline.d.ts +34 -1
- package/{node_modules → dist/node_modules}/@allyhub-next/video-core/package.json +1 -1
- package/dist/parts.d.ts +2 -2
- package/dist/phone.js +1 -1
- package/dist/piece.d.ts +7 -32
- package/dist/piece.js +1 -1
- package/dist/props.d.ts +53 -10
- package/dist/sheets.d.ts +2 -0
- package/dist/sheets.js +2 -0
- package/dist/slides.d.ts +8 -0
- package/dist/slides.js +2 -0
- package/docs/README.md +3 -3
- package/docs/batches.md +2 -2
- package/docs/defaults.md +107 -3
- package/docs/docs.md +1 -1
- package/docs/project.md +6 -6
- package/docs/scenery.md +1 -1
- package/docs/sheets.md +377 -84
- package/docs/slides.md +182 -80
- package/docs/speech.md +1 -1
- package/package.json +17 -18
- package/node_modules/@allyhub-next/formats/dist/data/reference.js +0 -2
- package/node_modules/@allyhub-next/formats/dist/data/script.js +0 -2
- package/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +0 -214
- package/node_modules/@allyhub-next/formats/dist/data/sheet.js +0 -2
- package/node_modules/@allyhub-next/formats/dist/index.js +0 -2
- package/node_modules/@allyhub-next/formats/dist/items.js +0 -2
- package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +0 -301
- package/node_modules/@allyhub-next/formats/dist/schemas.js +0 -2
- package/node_modules/@allyhub-next/protocol/dist/app.d.ts +0 -101
- package/node_modules/@allyhub-next/protocol/dist/app.js +0 -2
- package/node_modules/@allyhub-next/protocol/dist/index.js +0 -2
- package/node_modules/@allyhub-next/protocol/dist/runtimes.js +0 -2
- package/node_modules/@allyhub-next/protocol/dist/tools.js +0 -2
- package/node_modules/@allyhub-next/runtimes/dist/index.js +0 -2
- package/node_modules/@allyhub-next/runtimes/dist/lock.js +0 -2
- package/node_modules/@allyhub-next/runtimes/dist/runtimes.js +0 -3
- package/node_modules/@allyhub-next/runtimes/dist/unpack.js +0 -2
- package/node_modules/@allyhub-next/scenery/dist/phone.js +0 -2
- package/node_modules/@allyhub-next/video-core/dist/fact.js +0 -2
- package/node_modules/@allyhub-next/video-core/dist/formats.js +0 -2
- package/node_modules/@allyhub-next/video-core/dist/index.js +0 -2
- package/node_modules/@allyhub-next/video-core/dist/measure.js +0 -5
- package/node_modules/@allyhub-next/video-core/dist/piece.js +0 -2
- package/node_modules/@allyhub-next/video-core/dist/problem.js +0 -2
- package/node_modules/@allyhub-next/video-core/dist/script.js +0 -2
- package/node_modules/@allyhub-next/video-core/dist/slides.d.ts +0 -37
- package/node_modules/@allyhub-next/video-core/dist/slides.js +0 -2
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/LICENSE +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/at-cut.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/at-cut.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/decode.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/decode.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/envelope.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/envelope.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/index.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/index.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/levels.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/levels.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/master.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/master.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/music.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/music.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/decode.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/decode.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/ebur128.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/ebur128.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/ffmpeg.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/ffmpeg.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/index.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/index.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/loudness.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/loudness.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/master.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/master.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/measure.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/measure.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/mix.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/mix.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/plan.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/plan.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recorded.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recorded.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/bandwidth.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/bandwidth.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/chain.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/chain.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/dynamics.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/dynamics.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/fft.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/fft.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/filters.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/filters.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/fit.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/fit.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/index.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/index.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/loudness.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/loudness.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/measure.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/measure.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/mic.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/mic.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/noise.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/noise.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/presets.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/presets.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/room.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/room.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/setup.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/setup.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/vec.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/vec.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/render.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/render.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/sfx.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/sfx.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/shape.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/shape.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/voice.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/voice.js +0 -0
- /package/{node_modules/@allyhub-next/formats → dist/node_modules/@allyhub-next/chart}/LICENSE +0 -0
- /package/{node_modules/@allyhub-next/protocol → dist/node_modules/@allyhub-next/formats}/LICENSE +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/comments.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/comments.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/config.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/config.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/edits.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/edits.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/elements.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/elements.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/faces.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/faces.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/file.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/file.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/gen.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/gen.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/messages.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/messages.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/words.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/words.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/layout.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/layout.js +0 -0
- /package/{node_modules/@allyhub-next/runtimes → dist/node_modules/@allyhub-next/protocol}/LICENSE +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cloud.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cloud.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/files.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/files.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/jsonrpc.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/jsonrpc.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/registry.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/routes.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/routes.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/teams.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/teams.js +0 -0
- /package/{node_modules/@allyhub-next/scenery → dist/node_modules/@allyhub-next/runtimes}/LICENSE +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/bundled.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/bundled.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/download.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/download.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/errors.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/home.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/home.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/manifest.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/manifest.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/manifest.json +0 -0
- /package/{node_modules/@allyhub-next/video-core → dist/node_modules/@allyhub-next/scenery}/LICENSE +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/NOTICE +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/aim.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/aim.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/bake.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/bake.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/camera.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/camera.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/curve.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/curve.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/define.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/define.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/fit.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/fit.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/glass.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/glass.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/handheld.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/handheld.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/hull.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/hull.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/index.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/index.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/lens.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/lens.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/moire.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/motion.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/motion.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/move.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/move.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/noise.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/noise.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/report.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/report.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/screen-focus.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/screen-focus.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/screen.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/screen.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/solve.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/solve.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/timing.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/timing.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/vec.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/vec.js +0 -0
- /package/{node_modules/@allyhub-next/video-core/dist/render-types.js → dist/node_modules/@allyhub-next/slides-core/dist/model.js} +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/anchors.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/anchors.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/audio-types.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/audio-types.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/backdrop.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/backdrop.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/captions.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/captions.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/console.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/console.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/contrast.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/contrast.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/cut-report.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/cut-report.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/edit.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/edit.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/edits.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/edits.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/footage-motion.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/footage-motion.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/gen.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/gen.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/look.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/look.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/marks.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/marks.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/matrix.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/matrix.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/media.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/media.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/messages.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/messages.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/motion.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/motion.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/music.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/music.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/placement.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/placement.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/render-types.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/schema.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/script-edit.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/seams.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/seams.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/sound-under.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/sound-under.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/speech.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/speech.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/timeline.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/timing.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/timing.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/transcript.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/transcript.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/transition.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/transition.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/voice.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/voice.js +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/words.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/words.js +0 -0
package/docs/project.md
CHANGED
|
@@ -17,7 +17,7 @@ Only the dot folders and Node's own files are fixed places. `assets/` and `compo
|
|
|
17
17
|
|
|
18
18
|
## `package.json`
|
|
19
19
|
|
|
20
|
-
- A folder is a project when its `package.json` depends on `allyhub` or `@allyhub/sdk`, or it has an `allyhub.config.*`. A command works on the nearest one at or above where it runs.
|
|
20
|
+
- A folder is a project when its `package.json` depends on `allyhub` or `@allyhub/sdk`, or it has an `allyhub.config.*`. A command works on the nearest one at or above where it runs. The smallest project is a folder with an `allyhub.config.ts` and no `package.json`: the CLI brings `@allyhub/sdk` (and its subpaths) to a project that does not install it.
|
|
21
21
|
- The SDK and the CLI are one version. A project whose SDK is another version than the CLI that builds it is AK-B008; a `package.json` that declares AllyHub's packages before `npm install` has installed them is AK-B009, and nothing is built.
|
|
22
22
|
- A piece may import any package `package.json` declares and `npm install` installed. An import of an undeclared package, a file outside the project or a URL is AK-B005. `three` (with `three/addons/…`), `@allyhub-next/model` and `@allyhub-next/scenery-host/layer` are lent by the CLI unless the project declares its own.
|
|
23
23
|
- `npm create allyhub@latest <folder>` starts a project with these files.
|
|
@@ -65,11 +65,11 @@ An item is a folder with its entry file. The entry file's name says what the ite
|
|
|
65
65
|
| Entry file | Item | Its entry file holds |
|
|
66
66
|
| --- | --- | --- |
|
|
67
67
|
| `video.ts` | A video | `export default video({ … })` ([video.md](video.md)) |
|
|
68
|
-
| `slides.ts` | A deck | `export default
|
|
68
|
+
| `slides.ts` | A deck | `export default presentation({ size }, (prs) => { … })` from `@allyhub/sdk/slides`, with `slides.yaml` beside it ([slides.md](slides.md)) |
|
|
69
69
|
| `scenery.ts` | A 3D scenery | `export default defineScenery({ … })` ([scenery.md](scenery.md)) |
|
|
70
70
|
| `model.ts` | A 3D model | `export default defineModel(build)` ([modeling.md](modeling.md)) |
|
|
71
71
|
| `doc.mdx` | A doc | The doc itself, MDX |
|
|
72
|
-
| `sheet.
|
|
72
|
+
| `sheet.yaml` | A sheet | The workbook: its sheets, cells, formulas, formats, names and checks; `data/*.csv` beside it holds its tables' rows |
|
|
73
73
|
| `astro.config.*` | A website | An Astro project |
|
|
74
74
|
|
|
75
75
|
`video`, `slides`, `scenery` and `model` may end in `.ts`, `.tsx`, `.mts`, `.js`, `.jsx` or `.mjs`.
|
|
@@ -80,13 +80,13 @@ An item is a folder with its entry file. The entry file's name says what the ite
|
|
|
80
80
|
|
|
81
81
|
### The entry file
|
|
82
82
|
|
|
83
|
-
- The default export is `video({ … })` or `
|
|
83
|
+
- The default export is `video({ … })` or `presentation(…)` written in the file, or a constant holding one (`const film = video({ … }); export default film`). A re-export, a factory function or a conditional is not followed (AK-M001).
|
|
84
84
|
- The module's top level runs in Node when the build reads the piece: what needs `window` or `document` goes in `parts` (or `pages`) or in a layer's `mount` and `render`. The top level may not use the network (AK-B003) and must finish (AK-B004).
|
|
85
85
|
- Every field of the piece but its functions (`parts`, `pages`, `covers`) is plain data (AK-M001).
|
|
86
86
|
|
|
87
87
|
## The SDK, bound to its module
|
|
88
88
|
|
|
89
|
-
A project file imports `@allyhub/sdk`; the build gives it the SDK with `video`, `
|
|
89
|
+
A project file imports `@allyhub/sdk`; the build gives it the SDK with `video`, `part`, `take` and `footage` made for that file (`sdkFor({ file })`), and `@allyhub/sdk/slides` with `presentation` made for it. So a path a module writes as a string is relative to that module's own folder: `take("./vo/en.mp3")`, `footage("./broll.mp4")`, a part's `sounds`, `music`, `post.lut`, `.edits("./edits/host.json")`. A field keeps the folder it was written in when another piece spreads it. Nothing is a global.
|
|
90
90
|
|
|
91
91
|
An item uses another by an ordinary relative import. A piece in another format is an item of its own:
|
|
92
92
|
|
|
@@ -111,7 +111,7 @@ import film from "../film/video.ts";
|
|
|
111
111
|
export default video({ ...film, id: "launch/film-vertical", format: "9x16" });
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
-
- `video()`
|
|
114
|
+
- `video()` returns its fields as written, so a piece can spread another. A copy of a piece that sets `id` needs an `id` of its own.
|
|
115
115
|
- A video item can be shown inside another: `take(piece)`, `footage(piece)` and `ctx.video(piece, el)` ([footage.md](footage.md), [speech.md](speech.md)). A chain of videos that reaches itself is AK-M010.
|
|
116
116
|
|
|
117
117
|
## Words: scripts and shared text
|
package/docs/scenery.md
CHANGED
|
@@ -247,7 +247,7 @@ export default video({
|
|
|
247
247
|
|
|
248
248
|
`projectScenery(layer, target, t, el)`, called in a layer's `render` with its own element, gives where a point or a named object of the scenery layer called `layer` in the same part is at part time `t`: `{ x, y }` in frame px, `inView`, `depth` (m); undefined when no such layer shows then.
|
|
249
249
|
|
|
250
|
-
**Props** (`SceneryProp`: `{ name, build(w), update?(object, t, w) }`) are things a layer brings in (a stand-in, a pointer): built after the scenery and its bake (never in it), posed from t after the scenery's update, shown only in the layers that add them.
|
|
250
|
+
**Props** (`SceneryProp`: `{ name, build(w), update?(object, t, w) }`) are things a layer brings in (a stand-in, a pointer): built after the scenery and its bake (never in it), posed from t after the scenery's update, shown only in the layers that add them. One a hand moves takes its path from the SDK's `pointer`, `tap` or `drag` ([layers.md](layers.md), "A person's input"), as the registry's `pointer-prop` does.
|
|
251
251
|
|
|
252
252
|
**A scenery inside another video.** A video item whose picture is a scenery can be shown in a film: `take(scene).range(from, to)` plays a stretch of it and `footage({ camera })` draws its scenery layers from a camera of the film's (`cameras` by layer name for several, `quality: { scale }` for this film only), on the item's clock. See [footage.md](footage.md) and [speech.md](speech.md).
|
|
253
253
|
|
package/docs/sheets.md
CHANGED
|
@@ -1,119 +1,412 @@
|
|
|
1
1
|
# Sheets
|
|
2
2
|
|
|
3
|
-
A sheet is
|
|
3
|
+
A sheet is a workbook: what a person sees is Excel, and its source is text. A formula is code, results are computed and never stored, and data, logic and look each have a home. A person works in the editor as in Excel, and what they do lands in these files.
|
|
4
4
|
|
|
5
5
|
## A sheet item
|
|
6
6
|
|
|
7
|
-
A sheet is a folder whose entry file is `sheet.
|
|
7
|
+
A sheet is a folder whose entry file is `sheet.yaml`:
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
|
|
11
|
-
sheet.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
finance/budget/
|
|
11
|
+
sheet.yaml the workbook: sheets, cells, formulas, formats, names, checks
|
|
12
|
+
data/*.csv a table's rows, or a large block of typed cells
|
|
13
|
+
sheet.ts optional: code that makes sheets from data
|
|
14
|
+
files/ what cells name: pictures and other files
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
- A sheet is never inside another item's folder (AK-M009), and its folder holds no other item (AK-M003).
|
|
17
|
+
The folder may be anywhere in the project except its root, a folder whose name starts with a dot, or `node_modules`. Its place is its path from the project (`finance/budget`). A sheet is never inside another item's folder, and its folder holds no other item (AK-M003).
|
|
19
18
|
|
|
20
|
-
## sheet.
|
|
19
|
+
## sheet.yaml
|
|
20
|
+
|
|
21
|
+
```yaml
|
|
22
|
+
title: Budget
|
|
23
|
+
names:
|
|
24
|
+
growth: 0.08 # a constant
|
|
25
|
+
revenue: =Summary!$B$1 # a place, or a formula
|
|
26
|
+
sheets:
|
|
27
|
+
- name: Orders
|
|
28
|
+
freeze: A2
|
|
29
|
+
tables:
|
|
30
|
+
- name: orders
|
|
31
|
+
at: A1 # its header's top left
|
|
32
|
+
rows: data/orders.csv # the header row, then the rows
|
|
33
|
+
key: id # optional: how a merge lines rows up
|
|
34
|
+
columns:
|
|
35
|
+
total: { formula: "=[@price]*[@qty]", format: "$#,##0.00" }
|
|
36
|
+
- name: Summary
|
|
37
|
+
columns: { A: { width: 180 } }
|
|
38
|
+
cells:
|
|
39
|
+
A1: Revenue
|
|
40
|
+
B1: "=SUM(orders[total])"
|
|
41
|
+
B3:M3: { formula: "=A3*(1+growth)", format: "#,##0" }
|
|
42
|
+
format:
|
|
43
|
+
- { range: A1:A9, bold: true }
|
|
44
|
+
merges: [A10:C10]
|
|
45
|
+
blocks:
|
|
46
|
+
- { at: A100, rows: data/hand.csv }
|
|
47
|
+
checks:
|
|
48
|
+
- { name: totals add up, formula: "=revenue=SUM(Summary!B3:M3)" }
|
|
49
|
+
scenarios:
|
|
50
|
+
high: { growth: 0.2 }
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Its JSON Schema is `https://allyhub.com/schemas/sheet.schema.json`.
|
|
54
|
+
|
|
55
|
+
| Field | What |
|
|
56
|
+
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
57
|
+
| `title` | The workbook's title |
|
|
58
|
+
| `names` | Defined names: a constant, or a place or formula after `=` |
|
|
59
|
+
| `sheets[]` | `name`, at most 31 characters, none of `\ / ? * [ ] :`; `hidden`; `freeze`, the first cell that scrolls; `gridlines: false`; `tab`, its tab's colour |
|
|
60
|
+
| `sheets[].tables[]` | `name`, `at` (its header's top left), `rows` (a CSV file from the sheet's folder), `key`, `style` (Excel's, `TableStyleMedium2` unless it says, `none` for none), `columns` (by name: `formula`, `format`, a look, `width`, `files`) |
|
|
61
|
+
| `sheets[].columns` | By letter: `width` in pixels, `hidden`, `format`, a look, `files` (see [Files in a cell](#files-in-a-cell)) |
|
|
62
|
+
| `sheets[].charts[]` | A chart over the cells: see [Charts](#charts) |
|
|
63
|
+
| `sheets[].rows` | By number: `height` in pixels, `hidden`, `format`, a look |
|
|
64
|
+
| `sheets[].cells` | By address, or a range one value or formula covers |
|
|
65
|
+
| `sheets[].format` | A list of `{ range, format, …look }`: later entries win over earlier ones, a cell's own look wins over them |
|
|
66
|
+
| `sheets[].merges` | Merged ranges |
|
|
67
|
+
| `sheets[].blocks` | `{ at, rows }`: a CSV file of typed cells, from a cell |
|
|
68
|
+
| `sheets[].filter` | An AutoFilter on a range: `{ range, columns }`, its columns by letter, each `{ values, blanks }`: what it keeps, as the column shows it. A table's is `tables[].filter`, `{ columns }` by column name, or `false` for no buttons. What it hides is worked out, never written |
|
|
69
|
+
| `sheets[].conditional` | Conditional formats, the first the strongest: `{ range, type, …, stop }`; ranges apart by spaces. See below |
|
|
70
|
+
| `sheets[].validations` | Data validation: `{ range, type, operator, formula, values, blank, dropdown, prompt, error }`. See below |
|
|
71
|
+
| `checks` | `{ name, formula }`: a formula that must hold. One that is false, 0 or an error is a problem (AK-M009) |
|
|
72
|
+
| `scenarios` | Named sets of inputs, each what names hold instead: see [Scenarios](#scenarios) |
|
|
73
|
+
|
|
74
|
+
A **cell** is YAML's value: a number, `true`, text; text that starts with `=` is a formula. In a `{ … }` a formula with a comma or a bracket is quoted. Its long form is `{ value | formula, format, name, …look }`: `name` is a defined name for that cell.
|
|
75
|
+
|
|
76
|
+
A **range key** (`B3:M3`) gives one value or formula to every cell in it. A formula is written for its first cell and moved as a fill moves it: relative references shift, `$` ones stay. A single cell's key wins over a range's, and a later range over an earlier one; `B5: null` keeps a cell of a range empty.
|
|
77
|
+
|
|
78
|
+
`format` is Excel's number format code. A **look** is `bold`, `italic`, `underline` (`true` or Excel's `single`, `double`, `singleAccounting`, `doubleAccounting`), `strike`, `font`, `size`, `color` and `fill` (`#RRGGBB`; a fill may be `{ pattern, color, background }`), `align`, `valign`, `wrap`, `shrink`, `indent`, `rotation`, `border` (`left`, `right`, `top`, `bottom`, each `{ style, color }`). Later `format` entries win field by field, and a `border` side by side, so `{ style: none }` takes one side away.
|
|
21
79
|
|
|
22
|
-
|
|
80
|
+
**Conditional formats.** A `type` is Excel's, and a rule that gives a look says it in the rule: `bold`, `italic`, `underline`, `strike`, `color`, `fill`, `border`.
|
|
23
81
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
82
|
+
| `type` | With |
|
|
83
|
+
| ------------------------------------ | -------------------------------------------------------------------------------------------- |
|
|
84
|
+
| `cellIs` | `operator` (`between`, `notBetween`, `equal`, `notEqual`, `greaterThan`, `lessThan`, `greaterThanOrEqual`, `lessThanOrEqual`), `formula`: one or two bounds, a number, text, or a formula after `=` |
|
|
85
|
+
| `containsText` | `text`, `operator` (`contains` unless it says, `notContains`, `beginsWith`, `endsWith`) |
|
|
86
|
+
| `duplicateValues`, `uniqueValues` | Nothing |
|
|
87
|
+
| `top10` | `rank`, `percent`, `bottom` |
|
|
88
|
+
| `aboveAverage` | `below`, `equal` |
|
|
89
|
+
| `expression` | `formula`, written for the first cell of the range and moved as a fill moves it |
|
|
90
|
+
| `dataBar` | `color`, `min` and `max` (each `{ at, value }`, `at` being `min`, `max`, `num`, `percent`, `percentile` or `formula`), `show: false` for the bar alone |
|
|
91
|
+
| `colorScale` | `stops`: two or three `{ at, value, color }` |
|
|
92
|
+
| `iconSet` | `icons` (Excel's `3Arrows`, `3TrafficLights1`, `5Rating`…), `stops`, `reverse`, `show` |
|
|
93
|
+
|
|
94
|
+
**Data validation.** `type` is `whole`, `decimal`, `list`, `date`, `time`, `textLength` or `custom`; `operator` is `between` unless it says, and `formula` its bounds (a date as ISO text, or a formula after `=`). A list is `values`, spelled out, or `formula: ["=$A$1:$A$9"]`; `dropdown: false` leaves out its arrow. `blank: false` refuses an empty cell. `prompt` is `{ title, message, show }`, what shows while the cell is selected, and `error` is `{ style, title, message, show }`, where `style` is `stop` (unless it says), `warning` or `information` and `show: false` lets any value in. A person's typing is refused as the rule says; what a script writes is not, and a value that breaks its rule is a fact in `allyhub sheet`.
|
|
95
|
+
|
|
96
|
+
A list with `multiple: true` lets a cell hold several of its values, joined by `separator` (`, ` unless it says):
|
|
97
|
+
|
|
98
|
+
```yaml
|
|
99
|
+
validations:
|
|
100
|
+
- { range: D2:D99, type: list, values: [vip, new, churn], multiple: true }
|
|
28
101
|
```
|
|
29
102
|
|
|
30
|
-
|
|
31
|
-
- Every value is text. Its column's type says how it is read; nothing is guessed from what the values look like.
|
|
32
|
-
- A row may have fewer fields than the header (the rest are empty), never more. A blank line is a row of empty cells.
|
|
33
|
-
- Header names are trimmed; each is a column's name, not empty, not repeated.
|
|
34
|
-
- The file's dialect is kept when the editor writes rows back (line endings, a byte-order mark, a final line ending), and every row that did not change keeps its bytes.
|
|
103
|
+
They are text, so a formula counts one with a wildcard, `=COUNTIF(D:D,"*vip*")`, or splits them, `=TEXTSPLIT(D2,", ")`. A person ticks them in the cell's dropdown and sees them as chips; a filter's list offers each, and keeps a row that holds any it ticks. In an `.xlsx` the cell keeps its text and the column a list, whose refusal is turned off as Excel's list takes one value: the render says so.
|
|
35
104
|
|
|
36
|
-
|
|
105
|
+
### Files in a cell
|
|
37
106
|
|
|
38
|
-
|
|
107
|
+
A column with `files` holds files, each named by its path from the sheet's folder:
|
|
39
108
|
|
|
40
109
|
```yaml
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
share: { type: number, format: percent }
|
|
50
|
-
stage:
|
|
51
|
-
type: select
|
|
52
|
-
options:
|
|
53
|
-
- { name: Lead, color: gray }
|
|
54
|
-
- { name: Won, color: green }
|
|
55
|
-
tags: { type: multi-select, options: [inbound, partner], separator: ";" }
|
|
56
|
-
signed: { type: date, format: { style: long, time: false } }
|
|
57
|
-
active: checkbox
|
|
58
|
-
site: url
|
|
59
|
-
contact: email
|
|
60
|
-
notes: { type: text, wrap: true }
|
|
61
|
-
logo: { type: file, height: 48 }
|
|
110
|
+
sheets:
|
|
111
|
+
- name: Team
|
|
112
|
+
columns:
|
|
113
|
+
C: { files: true, width: 120 }
|
|
114
|
+
D: { files: { separator: "; ", height: 40 } } # 60 px tall, joined by ", ", unless it says
|
|
115
|
+
cells:
|
|
116
|
+
C2: files/ada.png
|
|
117
|
+
D2: files/ada.pdf; files/cv.docx
|
|
62
118
|
```
|
|
63
119
|
|
|
64
|
-
|
|
65
|
-
| --- | --- | --- |
|
|
66
|
-
| `title` | string | The sheet's name; its workbook's worksheet is named by it, else by the sheet's folder |
|
|
67
|
-
| `key` | column name | The column whose value names a row: every row has one, and no two rows share it |
|
|
68
|
-
| `primary` | column name | The column a row is called by (a record's title). Default: the first text column that is not the key, else the first column that is not the key |
|
|
69
|
-
| `columns` | map | By the column's name in the header: its type alone (`active: checkbox`), or a map of the fields below |
|
|
120
|
+
`columns` of a table take it too, by the column's name. A person drops, pastes or chooses files on a cell: they are kept in the sheet's `files/`. A picture is drawn in its cell, its row as tall, any other file by its name. A file that is not there is a problem (AK-M009). In an `.xlsx` a PNG, JPEG or GIF goes in its cell and any other file is its name, which the render says.
|
|
70
121
|
|
|
71
|
-
|
|
122
|
+
### Scenarios
|
|
123
|
+
|
|
124
|
+
Each scenario says what names hold instead:
|
|
125
|
+
|
|
126
|
+
```yaml
|
|
127
|
+
names:
|
|
128
|
+
growth: 0.08 # a constant
|
|
129
|
+
tax: =Inputs!$B$2 # a cell
|
|
130
|
+
scenarios:
|
|
131
|
+
high: { growth: 0.2, tax: 0.1 }
|
|
132
|
+
low: { growth: 0.01 }
|
|
133
|
+
```
|
|
72
134
|
|
|
73
|
-
|
|
74
|
-
| --- | --- | --- | --- |
|
|
75
|
-
| `type` | one of the types below | every column | Default `text` |
|
|
76
|
-
| `options` | list | `select`, `multi-select` | In order, each once. An option is a name (`Won`) or `{ name, color }` |
|
|
77
|
-
| `separator` | string | `multi-select`, `file` | What joins names or paths in a cell. Default `;`. Not empty, not a quote |
|
|
78
|
-
| `format` | see below | `number`, `date` | How values are shown |
|
|
79
|
-
| `width` | number, px | every column | Its width in the grid |
|
|
80
|
-
| `wrap` | boolean | every column | Long text wraps onto more lines |
|
|
81
|
-
| `height` | number, px | `file` | Pictures this tall in the grid; rows grow to hold them |
|
|
135
|
+
A name that is one cell has that cell hold the value, as Excel's Scenario Manager changes cells, so what reads it by its address sees it too. Any other name holds the value itself. A name that is not there is a problem (AK-M009). A person shows one in the editor's Scenario Manager, and nothing is written. `allyhub sheet calc <sheet> <what> --scenario high` computes with one; `--scenarios` compares the base case and every one, a column each, over `what`: names, cells or ranges apart by commas, or every name no scenario sets. An `.xlsx` holds them as Excel's own on the sheet of the cells they change, with a `Base case` to come back to; a name that is no cell has no place there, and the render says so.
|
|
82
136
|
|
|
83
|
-
|
|
137
|
+
Write scenarios on names of cells where the file will leave for Excel.
|
|
84
138
|
|
|
85
|
-
|
|
139
|
+
## CSV
|
|
86
140
|
|
|
87
|
-
|
|
141
|
+
A CSV file is RFC 4180. A table's starts with its header row, whose names are its columns; a block's is cells from its first line. Blank lines in a table's file are not rows.
|
|
88
142
|
|
|
89
|
-
|
|
143
|
+
A value reads as Excel reads what is typed:
|
|
90
144
|
|
|
91
|
-
|
|
|
92
|
-
|
|
|
93
|
-
| `
|
|
94
|
-
| `
|
|
95
|
-
| `
|
|
96
|
-
| `
|
|
97
|
-
| `
|
|
98
|
-
|
|
|
99
|
-
| `
|
|
100
|
-
| `email` | `name@domain.tld` | a `mailto:` link |
|
|
101
|
-
| `phone` | as it is | a `tel:` link |
|
|
102
|
-
| `file` | a path to a file of the project, from the sheet's folder or the project's root; several joined by the separator: `files/a.png;files/b.pdf` | an attachment: a picture (png, jpg, gif, webp, avif, svg) shows as itself, any other file by its name |
|
|
145
|
+
| Written | Reads as |
|
|
146
|
+
| -------------------------------------- | ------------------------------------------------------------------------------ |
|
|
147
|
+
| `12`, `-1.5e3`, `007` | A number. Past 15 digits it stays text, whole, where Excel would lose the rest |
|
|
148
|
+
| `12%`, `1,234.50`, `$5` | A number, and the format that implies |
|
|
149
|
+
| `TRUE`, `false` | TRUE or FALSE |
|
|
150
|
+
| `2026-10-14`, `2026-10-14T09:30` | A date (with its time), and the format `yyyy-mm-dd`; a zone is taken to UTC |
|
|
151
|
+
| `#N/A` | That error |
|
|
152
|
+
| `=…` | A formula |
|
|
153
|
+
| `'…` | What follows as text |
|
|
103
154
|
|
|
104
|
-
|
|
155
|
+
A **calculated column** has its `formula` in `columns` and no column in the CSV, or one whose non-empty cells are exceptions. One that is not the table's last has an empty column there, as a column left out goes to the table's end.
|
|
105
156
|
|
|
106
|
-
##
|
|
157
|
+
## Formulas
|
|
158
|
+
|
|
159
|
+
The language is Excel's: `A1` and `$` references, ranges, `Sheet!A1`, `'My Sheet'!A1`, `Jan:Dec!A1`, whole columns and rows, defined names, structured references (`orders[total]`, `[@price]`, `orders[@total]`, `orders[[#Headers],[a]:[c]]`, `orders` for its rows), operators with Excel's precedence (`-2^2` is 4), array constants, `LET`, `LAMBDA` (a name may hold one, and is then called: `=double(4)`), error values. `allyhub sheet capabilities` lists the functions under `formulas`.
|
|
160
|
+
|
|
161
|
+
- Results are computed in order, each once. `NOW`, `TODAY`, `RAND`, `RANDBETWEEN`, `OFFSET` and `INDIRECT` are volatile. `NOW` and `TODAY` read the clock when the sheet is built or exported; `RAND` in a build and an export is seeded by the sheet's files, so the same files give the same rows.
|
|
162
|
+
- A formula that reads itself is a problem, and its cells and what reads them show `#CYCLE!`: Excel says so in a dialog. A cycle through a branch `IF` does not take is none, as in Excel.
|
|
163
|
+
- An array result spills, as in Excel: the formula's cell shows the first value and the cells beside it the rest. They hold nothing in any file, read like any others, and `A1#` is the range the spill covers now. `#SPILL!` says something stands in the way (a cell that holds anything, a merge, a table, the edge of the sheet), and what stands there going lets it spill. A calculated column cannot spill. `=@A1:A9` is the value in the formula's own row. `FILTER`, `SORT`, `SORTBY`, `UNIQUE`, `SEQUENCE`, `RANDARRAY` (seeded as `RAND` is), `TEXTSPLIT`, `TAKE`, `DROP`, `VSTACK`, `HSTACK`, `TOCOL`, `TOROW`, `CHOOSEROWS`, `CHOOSECOLS`, `EXPAND`, `WRAPROWS` and `WRAPCOLS` give arrays; `MAP`, `REDUCE`, `SCAN`, `BYROW`, `BYCOL` and `MAKEARRAY` take a `LAMBDA`.
|
|
164
|
+
- A formula cannot reach into another workbook.
|
|
165
|
+
|
|
166
|
+
## In a script
|
|
167
|
+
|
|
168
|
+
`@allyhub/sdk/sheets` is openpyxl's API in TypeScript over these files. A script opens a workbook, changes it and saves it; what it did not change keeps its bytes, comments included.
|
|
169
|
+
|
|
170
|
+
```ts
|
|
171
|
+
import {
|
|
172
|
+
Font,
|
|
173
|
+
PatternFill,
|
|
174
|
+
Table,
|
|
175
|
+
Workbook,
|
|
176
|
+
load_workbook,
|
|
177
|
+
} from "@allyhub/sdk/sheets";
|
|
178
|
+
|
|
179
|
+
const wb = new Workbook();
|
|
180
|
+
const ws = wb.active;
|
|
181
|
+
ws.title = "Orders";
|
|
182
|
+
ws.append(["id", "price", "qty", "total"]);
|
|
183
|
+
ws.append(["a1", 2.5, 4, "=B2*C2"]);
|
|
184
|
+
ws.append(["a2", 7, 2, "=B3*C3"]);
|
|
185
|
+
ws.add_table(new Table({ displayName: "orders", ref: "A1:D3" }));
|
|
186
|
+
ws.freeze_panes = "A2";
|
|
187
|
+
|
|
188
|
+
const summary = wb.create_sheet("Summary");
|
|
189
|
+
const total = summary.cell(1, 2, "=SUM(orders[total])");
|
|
190
|
+
total.number_format = "$#,##0.00";
|
|
191
|
+
total.font = new Font({ bold: true });
|
|
192
|
+
total.fill = new PatternFill({ fill_type: "solid", fgColor: "FFEECC" });
|
|
193
|
+
wb.save("content/finance/budget");
|
|
194
|
+
|
|
195
|
+
const again = load_workbook("content/finance/budget");
|
|
196
|
+
console.log(again.get_sheet_by_name("Summary")?.cell(1, 2).computed);
|
|
197
|
+
console.log(again.check());
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
`ws.insert_rows(idx, amount)`, `ws.delete_rows`, `ws.insert_cols` and `ws.delete_cols` rewrite every formula in the workbook as Excel does: a reference moves, a range grows or shrinks, one to what went is `#REF!`. Tables, blocks, merges, looks and sizes move with them, and rows or columns put in a table go in its CSV. A table's header row is not deleted unless all of the table is.
|
|
201
|
+
|
|
202
|
+
Each change lands in the file it belongs in: a cell of a table in its CSV; a cell overtyped in a calculated column as an exception in the CSV; a run of one formula, moved, as one range key; a column whose every row has one formula as a calculated column; 100 or more typed cells together (`wb.block_cells`) as a block in a CSV file of their own; any other cell in `cells`. A number computed in a script is a number in the source, so a sheet's arithmetic belongs in its formulas.
|
|
203
|
+
|
|
204
|
+
Rules are openpyxl's too, each a field of an object:
|
|
205
|
+
|
|
206
|
+
```ts
|
|
207
|
+
import {
|
|
208
|
+
CellIsRule,
|
|
209
|
+
ColorScaleRule,
|
|
210
|
+
DataValidation,
|
|
211
|
+
PatternFill,
|
|
212
|
+
Workbook,
|
|
213
|
+
} from "@allyhub/sdk/sheets";
|
|
214
|
+
|
|
215
|
+
const ws = new Workbook().active;
|
|
216
|
+
ws.conditional_formatting.add(
|
|
217
|
+
"D2:D9",
|
|
218
|
+
CellIsRule({
|
|
219
|
+
operator: "greaterThan",
|
|
220
|
+
formula: ["1000"],
|
|
221
|
+
fill: new PatternFill({ bgColor: "FFC7CE" }),
|
|
222
|
+
}),
|
|
223
|
+
);
|
|
224
|
+
ws.conditional_formatting.add(
|
|
225
|
+
"E2:E9",
|
|
226
|
+
ColorScaleRule({ start_color: "F8696B", end_color: "63BE7B" }),
|
|
227
|
+
);
|
|
228
|
+
|
|
229
|
+
const stage = new DataValidation({ type: "list", formula1: '"Open,Won,Lost"' });
|
|
230
|
+
stage.add("F2:F9");
|
|
231
|
+
ws.add_data_validation(stage);
|
|
232
|
+
|
|
233
|
+
ws.auto_filter.ref = "A1:F9";
|
|
234
|
+
ws.auto_filter.add_filter_column(5, ["Open"]);
|
|
235
|
+
```
|
|
107
236
|
|
|
108
|
-
|
|
237
|
+
`FormulaRule`, `DataBarRule`, `IconSetRule` and `new Rule({ type, … })` are held as well, and a table has its own `table.autoFilter`. What a filter leaves out is worked out from what it keeps; sorting is the rows of a table's CSV file, or the cells, put in order.
|
|
109
238
|
|
|
110
|
-
##
|
|
239
|
+
## Charts
|
|
111
240
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
241
|
+
A chart floats over the cells at its anchor and reads them live: it holds references, never numbers, so it follows what its cells compute. In `sheet.yaml`:
|
|
242
|
+
|
|
243
|
+
```yaml
|
|
244
|
+
charts:
|
|
245
|
+
- type: column-clustered # or column-stacked, column-stacked-100, bar-…, line, line-markers,
|
|
246
|
+
# area, area-stacked, area-stacked-100, pie, doughnut, scatter, scatter-lines, scatter-smooth
|
|
247
|
+
at: E2 # the cell its top left is in; x and y, pixels into it
|
|
248
|
+
width: 480 # pixels: 480 × 288 unless it says
|
|
249
|
+
height: 288
|
|
250
|
+
title: Revenue # words, or a cell: =Summary!A1
|
|
251
|
+
categories: orders[month] # a range, Summary!A2:A13, a table's column, or a spill, A1#
|
|
252
|
+
series:
|
|
253
|
+
- { values: "orders[total]", name: "=C1", color: "#4472C4" }
|
|
254
|
+
- { values: "D2:D13", name: Cost, smooth: true, line_width: 2, marker_size: 6 }
|
|
255
|
+
legend: bottom # top, left, right; absent: none
|
|
256
|
+
labels: { value: true, position: outEnd } # or true; percentage, category, series, format, size, color
|
|
257
|
+
value_axis: { title: Dollars, min: 0, max: 100, major: 20, format: "0%", gridlines: false }
|
|
258
|
+
category_axis: { title: Month, reverse: true, visible: true }
|
|
259
|
+
gap_width: 80
|
|
260
|
+
overlap: 100
|
|
261
|
+
vary_by_categories: true
|
|
262
|
+
hole_size: 60
|
|
263
|
+
size: 9 # its text, points; title_size 14 and color #595959 unless it says
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
In a flow map (`{ … }`), quote a reference with `[`. A scatter's `x` names its places across, each series its own, the chart's `categories` unless it says. Rows and columns a person or a filter hides are left out, as Excel plots what shows; an empty cell or `#N/A` is a gap, text is 0. An inserted row, a renamed table or column and a cut reach a chart's references as they reach a formula, and `allyhub check` reports one that names nothing.
|
|
267
|
+
|
|
268
|
+
In a script they are openpyxl's classes. A `Reference` is a range; a table's column or a spill, which it cannot name, is a formula's text:
|
|
269
|
+
|
|
270
|
+
```ts
|
|
271
|
+
import {
|
|
272
|
+
BarChart,
|
|
273
|
+
PieChart,
|
|
274
|
+
Reference,
|
|
275
|
+
ScatterChart,
|
|
276
|
+
Series,
|
|
277
|
+
Workbook,
|
|
278
|
+
} from "@allyhub/sdk/sheets";
|
|
279
|
+
|
|
280
|
+
const wb = Workbook.open("content/finance/budget");
|
|
281
|
+
const ws = wb.get_sheet_by_name("Orders");
|
|
282
|
+
if (!ws) throw new Error("no Orders");
|
|
283
|
+
|
|
284
|
+
const bars = new BarChart();
|
|
285
|
+
bars.type = "col";
|
|
286
|
+
bars.grouping = "stacked";
|
|
287
|
+
bars.title = "By month";
|
|
288
|
+
bars.y_axis.title = "Dollars";
|
|
289
|
+
bars.add_data(
|
|
290
|
+
new Reference(ws, { min_col: 2, max_col: 3, min_row: 1, max_row: 13 }),
|
|
291
|
+
{ titles_from_data: true },
|
|
292
|
+
);
|
|
293
|
+
bars.set_categories(
|
|
294
|
+
new Reference(ws, { min_col: 1, min_row: 2, max_row: 13 }),
|
|
295
|
+
);
|
|
296
|
+
bars.width = 18; // centimetres, as openpyxl's
|
|
297
|
+
ws.add_chart(bars, "E2");
|
|
298
|
+
|
|
299
|
+
const pie = new PieChart();
|
|
300
|
+
pie.add_data("orders[total]", { title: "Share" });
|
|
301
|
+
pie.set_categories("orders[month]");
|
|
302
|
+
ws.add_chart(pie, "E20");
|
|
303
|
+
|
|
304
|
+
const points = new ScatterChart();
|
|
305
|
+
points.append(
|
|
306
|
+
new Series("orders[total]", { xvalues: "orders[qty]", title: "By size" }),
|
|
307
|
+
);
|
|
308
|
+
ws.add_chart(points, "E40");
|
|
309
|
+
wb.save();
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
`LineChart`, `AreaChart` and `DoughnutChart` are held as well, and `chart.legend` (`null` for none, else its `position`), `chart.dataLabels`, `chart.x_axis` and `y_axis` (`title`, `scaling`, `majorUnit`, `number_format`, `delete`, `majorGridlines`), `series.marker`, `series.smooth` and `series.graphicalProperties`. `ws._charts` lists a sheet's charts.
|
|
313
|
+
|
|
314
|
+
## sheet.ts
|
|
315
|
+
|
|
316
|
+
`sheet.ts` beside `sheet.yaml` makes sheets from data and code: a sheet per region, a sheet per month, a schedule from a parameter. It uses the same classes as a script, on a workbook of its own that starts with no sheets:
|
|
317
|
+
|
|
318
|
+
```ts
|
|
319
|
+
import { Font, workbook } from "@allyhub/sdk/sheets";
|
|
320
|
+
|
|
321
|
+
interface Region {
|
|
322
|
+
region: string;
|
|
323
|
+
base: number;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export default workbook((wb, { data }) => {
|
|
327
|
+
for (const { region, base } of data("data/regions.csv") as Region[]) {
|
|
328
|
+
const ws = wb.create_sheet(region);
|
|
329
|
+
ws.cell(1, 1, "Base");
|
|
330
|
+
ws.cell(1, 2, base);
|
|
331
|
+
ws.cell(2, 1, "Next year").font = new Font({ bold: true });
|
|
332
|
+
ws.cell(2, 2, "=B1*(1+growth)");
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
- It holds logic, never a number it computed: what it writes are inputs, formulas and references, so a change of an input computes again here and in Excel. A number it typed that neither its data nor its code holds is a fact, `sheet-typed`.
|
|
338
|
+
- `data(path)` reads a file of the project, from the sheet's folder: CSV as an object per row, numbers as numbers where a whole column is; YAML and JSON as they are. It reads files, never what a formula computes.
|
|
339
|
+
- It runs with no clock, randomness or network. `Date.now()`, `new Date()`, `Math.random()`, `crypto`, `performance.now()` and Node's own modules are AK-M012, with their line, and `fetch` AK-B003; it runs twice and what it makes must be the same (AK-M012). One that hangs is stopped (AK-B004), one that throws is AK-R001. A date or a random number belongs in the data, or in a formula (`TODAY`, `RAND`).
|
|
340
|
+
- What it makes is never written. Every command reads it with `sheet.yaml`: `check`, `render`, `sheet calc`, `sheet trace`, `sheet diff`, `inspect`, `frames`, and the editor, which shows a change to it as another hand's. Its formulas read `sheet.yaml`'s names and tables, and `sheet.yaml`'s read its sheets. `wb.defined_names` adds names; one `sheet.yaml` has stands. A problem on a generated sheet names `sheet.ts`.
|
|
341
|
+
- Its sheets come after `sheet.yaml`'s, and `sheet.yaml` holds at least one.
|
|
342
|
+
- A person sees them locked. A change is refused as on a protected sheet, offering to ask you or Make Ordinary Sheet, which writes that sheet to `sheet.yaml` and its rows to CSV files. **A sheet `sheet.yaml` holds by a name is `sheet.yaml`'s: what `sheet.ts` makes of that name is left out**, which `allyhub inspect` says (`sheet-ordinary`). Take it out of `sheet.yaml` to give it back to the code.
|
|
343
|
+
- An `.xlsx` holds them as plain sheets.
|
|
344
|
+
- Since a generated formula is not rewritten when a person inserts a row or renames a sheet, it reads names and tables (`=growth`, `=orders[total]`), not addresses, wherever it can.
|
|
345
|
+
|
|
346
|
+
`ws["A1"]` is a cell in TypeScript's types, so a value is written `ws["A1"].value = 5` or `ws.cell(1, 1, 5)`. TypeScript has no way to type openpyxl's `ws["A1"] = 5`, though it runs.
|
|
347
|
+
|
|
348
|
+
A name of openpyxl's that is not held throws where it is used, naming what the class holds. `allyhub sheet capabilities` lists what is held, how it differs and what is added: `cell.computed`, what a cell computes to as the workbook stands, and `wb.check()`, what `allyhub check` would say.
|
|
349
|
+
|
|
350
|
+
## Commands
|
|
351
|
+
|
|
352
|
+
- `allyhub check` reports AK-M009, each with its file and line: YAML that is not, a field the format does not have, a cell or range that is not one, two sheets, tables or names of one name, a table's rows that are not there, a CSV quote never closed, a header with an empty or repeated name, a row with more fields than its header, a repeated or empty key, tables and cells that overlap, a formula that does not parse, an unknown function, name, sheet, table or column, a function given the wrong number of arguments, a circular reference, a `checks` entry that does not hold, a scenario's name that is not there, a file a cell names that is not there; and AK-M012 for a `sheet.ts`. An error value in a cell is not a problem: `=1/0` says what it says.
|
|
353
|
+
- A sheet is named by its folder, with or without `content/`, or its `sheet.yaml`.
|
|
354
|
+
- `allyhub sheet calc <sheet> [what]` prints what a workbook computes, as an aligned table: a sheet (`Summary`, its used range), a range (`Summary!B3:M3`), a table, a name, or every sheet. `--scenario high` computes it with a scenario's inputs; `--scenarios` compares them.
|
|
355
|
+
- `allyhub sheet trace <sheet> <cell>` prints a cell's formula, where it is written, what it reads and what reads it.
|
|
356
|
+
- `allyhub sheet <sheet>` measures each table's columns: counts, empty cells, distinct values, errors, smallest and largest, sum and mean, lengths, the most frequent values.
|
|
357
|
+
- `allyhub inspect <sheet>`, and `allyhub inspect` for a whole project, says what a workbook's formulas and cells are like, as facts, never problems: `sheet-error`, each cell whose value is an error and whether it starts there; `sheet-number`, numbers written into a formula and what takes each, once for a formula a range holds; `sheet-unlike`, a cell between neighbours that read alike, unlike them; `sheet-exception`, a cell set apart from its calculated column's formula; `sheet-unused`, names and typed numbers nothing reads (no formula, chart, rule, check or name); `sheet-invalid`, a value under a validation that breaks it; `sheet-typed`, a number `sheet.ts` typed that neither its data nor its code holds; `sheet-ordinary`, a sheet `sheet.ts` makes and `sheet.yaml` holds too. `allyhub inspect sheet <sheet>` has their options: `--plain 0,1,-1` the numbers not said, `--around 1` how many neighbours each side must agree, `--kind`, `--all` for every finding, every number and a table's columns nothing reads.
|
|
358
|
+
- `allyhub sheet diff <was> <now>` compares two versions, two folders or a folder and an `.xlsx`: what changed value under a formula that did not, what changed formula with its value the same, both, what came and went, names, a table's rows lined up by its `key`, else by their place. `--tolerance`, `--all`, `--json`.
|
|
359
|
+
- `allyhub sheet capabilities` says what the SDK holds of openpyxl's.
|
|
360
|
+
- `allyhub sheet import <file>` makes a sheet of an Excel, CSV or TSV file, never over a place that is taken (see [Excel](#excel)).
|
|
361
|
+
- `allyhub render` writes each sheet to `.allyhub/out/<place>/`: `--type xlsx` (the default), `pdf`, `png`, `csv` (a file a sheet), `md`, `json`. A sheet with a problem is not written.
|
|
362
|
+
- `allyhub frames <sheet>` draws a picture of a sheet as a person sees it, letters and numbers on its edges; `--range` names a sheet (`Summary`), a range (`Summary!B3:D9`), columns (`A:C`) or rows (`1:20`). Without a range it draws the first 200 rows and 60 columns of each sheet, and says what it left out.
|
|
363
|
+
|
|
364
|
+
`allyhub help sheet` and `allyhub help render` give every option.
|
|
365
|
+
|
|
366
|
+
## Excel
|
|
367
|
+
|
|
368
|
+
**Out.** `--type xlsx` writes every sheet with typed values, formulas live with what they compute cached (so Preview and Numbers show numbers; Excel computes everything again on load), styles, merges, frozen panes, sizes, hidden sheets, names, tables with their calculated columns, filters, conditional formats, data validation and charts. The same workbook is the same bytes. `checks` have no place in a file, and the render says so. Generated sheets are plain sheets, [scenarios](#scenarios) are Excel's own, and several choices and files in a cell go as [above](#files-in-a-cell). A formula that needs arrays is written as a dynamic array formula, spilling into the cells it covers.
|
|
369
|
+
|
|
370
|
+
**In.** `allyhub sheet import <file.xlsx>` reads a file whatever wrote it and writes what it means as short text: neighbours with one formula as one range key, a table as a table, a column of one formula as a calculated column, a large rectangle of typed cells as a CSV file, looks as rectangles. It prints:
|
|
371
|
+
|
|
372
|
+
- Excel's scenarios come in by the names of the cells they set; a cell with no name is said, and a `Base case` that holds what the cells hold is left out.
|
|
373
|
+
- `Not carried over:` VBA, pivot tables, a chart of a kind a sheet has none of (radar, stock, surface, bubble, 3-D, several kinds in one) or whose numbers are written in it, images, links to other workbooks, comments, hyperlinks, protection, print settings, rich text (kept as text), filters by condition, kinds of rule the format has no place for, and so on, with where.
|
|
374
|
+
- A formula that cannot be computed here (a function the engine does not have, another workbook) keeps its value, listed with its cell and why. An array formula over several cells is its first cell's, and the others spill from it.
|
|
375
|
+
- `Computed here against the file:` every formula's result compared with the value the file holds, each difference with its cell (`--tolerance` is how close numbers must be, `--all` lists every one; a formula that reads the clock or a random number is not compared). JSON has every difference.
|
|
376
|
+
|
|
377
|
+
An ordinary formula from a file that narrows a range to its row is written with `@` (`=@A1:A9*2`), as Excel shows it.
|
|
116
378
|
|
|
117
379
|
## A sheet in a piece
|
|
118
380
|
|
|
119
|
-
A piece reads a
|
|
381
|
+
A piece reads a table's computed rows with `ctx.data("<sheet>#<table>")`, by the sheet's folder or its `sheet.yaml`, relative to the file that names it. Each row is an object by header: numbers, text, TRUE and FALSE as they are, a date as ISO text, an error as its code, an empty cell as `null`. A plain CSV file still reads as it is, with `ctx.data(path)` or by import: a column whose every non-empty value is a number becomes numbers, everything else stays text.
|
|
382
|
+
|
|
383
|
+
```ts
|
|
384
|
+
import { custom, part, video } from "@allyhub/sdk";
|
|
385
|
+
|
|
386
|
+
interface Order {
|
|
387
|
+
id: string;
|
|
388
|
+
total: number;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export default video({
|
|
392
|
+
format: "16x9",
|
|
393
|
+
parts: (ctx) => {
|
|
394
|
+
const rows = ctx.data("../../finance/budget#orders") as Order[];
|
|
395
|
+
return [
|
|
396
|
+
part({
|
|
397
|
+
key: "orders",
|
|
398
|
+
dur: 3,
|
|
399
|
+
layers: [
|
|
400
|
+
custom({
|
|
401
|
+
render: (el) => {
|
|
402
|
+
el.textContent = rows.map((r) => r.id).join(", ");
|
|
403
|
+
},
|
|
404
|
+
}),
|
|
405
|
+
],
|
|
406
|
+
}),
|
|
407
|
+
];
|
|
408
|
+
},
|
|
409
|
+
});
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
A deck's chart reads one the same way: `data: ../budget#orders` in `slides.yaml`. A data file over 5 MB is not read by `ctx.data`.
|