@allyhub/sdk 0.8.0 → 0.10.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/CHANGELOG.md +19 -0
- package/NOTICE +46 -49
- package/dist/dom.d.ts +1 -209
- package/dist/dom.js +1 -1
- package/dist/image.d.ts +2 -0
- package/dist/image.js +2 -0
- package/dist/index.d.ts +1 -21
- package/dist/index.js +1 -1
- package/dist/media.d.ts +1 -5
- package/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/levels.d.ts +4 -5
- package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.d.ts +1 -6
- package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +4 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +22 -0
- package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
- package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
- package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +107 -83
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +185 -8
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
- package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
- package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
- package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +96 -42
- package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
- package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
- package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
- package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
- package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
- package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
- package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
- package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
- package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
- package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
- package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
- package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
- package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
- package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
- package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
- package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
- package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
- package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
- package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
- package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
- package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
- package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
- package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
- package/dist/{define.d.ts → node_modules/@allyhub/image-sdk/dist/define.d.ts} +21 -4
- package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
- package/dist/{messages.d.ts → node_modules/@allyhub/image-sdk/dist/messages.d.ts} +1 -1
- package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
- package/dist/{props.d.ts → node_modules/@allyhub/image-sdk/dist/props.d.ts} +4 -4
- package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
- package/dist/{written.js → node_modules/@allyhub/image-sdk/dist/written.js} +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
- package/dist/node_modules/@allyhub/measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
- package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
- package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/measure/package.json +13 -0
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +4 -1
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +15 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.d.ts +1 -9
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
- package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.d.ts +2 -2
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/export.d.ts +27 -10
- package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/formats.d.ts +12 -68
- package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
- package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +437 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.d.ts +1 -1
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.d.ts +39 -9
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.d.ts +6 -0
- package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/script.d.ts +9 -4
- package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +291 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.d.ts +1 -20
- package/dist/node_modules/@allyhub/piece/package.json +18 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +271 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
- package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +155 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +235 -133
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +65 -197
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
- package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +6 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
- package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +274 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +77 -91
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
- package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
- package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
- package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +5 -1
- package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
- package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
- package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
- package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
- package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +4 -4
- package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +15 -11
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +70 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +6 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +9 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +6 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +9 -0
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +5 -0
- package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +12 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +5 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +5 -19
- package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +5 -5
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +88 -3
- package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/printed.d.ts +19 -0
- package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +8 -6
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +6 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +7 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +6 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +12 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
- package/dist/node_modules/@allyhub/sheet/package.json +5 -1
- package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +23 -7
- package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +101 -11
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +18 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
- package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +24 -0
- package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +223 -0
- package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +4 -4
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +4 -2
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +5 -5
- package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +25 -4
- package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +20 -11
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +28 -11
- package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +3 -6
- package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
- package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +1 -2
- package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +1 -10
- package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
- package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +3 -3
- package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +21 -762
- package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +3 -2
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +3 -17
- package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +72 -423
- package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +24 -432
- package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +8 -14
- package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +11 -6
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +2 -3
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +2 -4
- package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
- package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +18 -136
- package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +3 -3
- package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
- package/dist/{free.d.ts → node_modules/@allyhub/video-sdk/dist/free.d.ts} +14 -10
- package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
- package/dist/{input.d.ts → node_modules/@allyhub/video-sdk/dist/input.d.ts} +76 -22
- package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
- package/dist/{module.d.ts → node_modules/@allyhub/video-sdk/dist/module.d.ts} +6 -4
- package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
- package/dist/{parts.d.ts → node_modules/@allyhub/video-sdk/dist/parts.d.ts} +15 -6
- package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
- package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +12 -5
- package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
- package/dist/{piece.d.ts → node_modules/@allyhub/video-sdk/dist/piece.d.ts} +26 -16
- package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
- package/dist/scenery.d.ts +1 -1
- package/dist/scenery.js +1 -1
- package/dist/sheets.d.ts +1 -1
- package/dist/sheets.js +1 -1
- package/dist/slides.d.ts +1 -9
- package/dist/slides.js +1 -1
- package/docs/README.md +10 -6
- package/docs/batches.md +5 -5
- package/docs/canvas.md +28 -0
- package/docs/contract.md +2 -2
- package/docs/defaults.md +298 -22
- package/docs/docs.md +80 -66
- package/docs/footage.md +7 -7
- package/docs/image.md +165 -0
- package/docs/layers.md +22 -13
- package/docs/modeling.md +4 -4
- package/docs/pictures.md +65 -0
- package/docs/project.md +51 -31
- package/docs/scenery.md +14 -15
- package/docs/sheets.md +46 -28
- package/docs/slides.md +121 -67
- package/docs/sound.md +3 -3
- package/docs/speech.md +8 -8
- package/docs/video.md +16 -13
- package/docs/websites.md +4 -4
- package/docs/x.md +73 -0
- package/package.json +7 -2
- package/dist/define.js +0 -2
- package/dist/free.js +0 -2
- package/dist/input.js +0 -2
- package/dist/module.js +0 -2
- package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
- package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
- package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
- package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
- package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
- package/dist/parts.js +0 -2
- package/dist/phone.js +0 -2
- package/dist/piece.js +0 -2
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
- /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
- /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
- /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
- /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
- /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
- /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
- /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
- /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
- /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
- /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
- /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
- /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
- /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
|
@@ -41,6 +41,20 @@ export interface HandlePoint {
|
|
|
41
41
|
* own units, unflipped and unturned. None for a name that is not a preset.
|
|
42
42
|
*/
|
|
43
43
|
export declare function presetHandles(name: string, w: number, h: number, adjustments?: readonly number[]): HandlePoint[];
|
|
44
|
+
/** A connection site's place, in the shape's units, and the way a line leaves it: degrees clockwise from the right. */
|
|
45
|
+
export interface SitePoint {
|
|
46
|
+
index: number;
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
angle: number;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* A preset's connection sites (`cxnLst`) at a size and its adjustments
|
|
53
|
+
* (python-pptx's shares): where a connector's end glued to site `index`
|
|
54
|
+
* sits, in the shape's own units, unflipped and unturned, and the way it
|
|
55
|
+
* leaves. None for a name that is not a preset, or a preset with none.
|
|
56
|
+
*/
|
|
57
|
+
export declare function presetSites(name: string, w: number, h: number, adjustments?: readonly number[]): SitePoint[];
|
|
44
58
|
/**
|
|
45
59
|
* The adjustments (python-pptx's shares, every one of the preset's, in
|
|
46
60
|
* order) once handle `index` is dragged to `point`, in the shape's own
|
|
@@ -53,5 +67,5 @@ export declare function adjustedBy(name: string, w: number, h: number, adjustmen
|
|
|
53
67
|
x: number;
|
|
54
68
|
y: number;
|
|
55
69
|
}): number[];
|
|
56
|
-
export type { PresetDef, PresetHandle, PresetPath, } from "../generated/presets.js";
|
|
70
|
+
export type { PresetDef, PresetHandle, PresetPath, PresetSite, } from "../generated/presets.js";
|
|
57
71
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{PRESETS as
|
|
2
|
+
import{PRESETS as O}from"../generated/presets.js";export const PRESET_NAMES=Object.keys(O);export function presetAdjustments(s){return(O[s]?.av??[]).map(([e,o])=>({name:e,value:Number(o.split(/\s+/u)[1]??0)}))}const T=6e4,C=s=>s/T*(Math.PI/180);function A(s,e){const o=Math.min(s,e),c=new Map([["w",s],["h",e],["l",0],["t",0],["r",s],["b",e],["hc",s/2],["vc",e/2],["ls",Math.max(s,e)],["ss",o],["cd2",108e5],["cd4",54e5],["cd8",27e5],["3cd4",162e5],["3cd8",81e5],["5cd8",135e5],["7cd8",189e5]]);for(const t of[2,3,4,5,6,8,10,12,32])c.set(`wd${String(t)}`,s/t),c.set(`hd${String(t)}`,e/t);for(const t of[2,4,6,8,16,32])c.set(`ssd${String(t)}`,o/t);return c}function Z(s,e){const[o="",...c]=s.trim().split(/\s+/u),[t=0,n=0,a=0]=c.map(r=>e.get(r)??Number(r));switch(o){case"*/":return a===0?0:t*n/a;case"+-":return t+n-a;case"+/":return a===0?0:(t+n)/a;case"?:":return t>0?n:a;case"abs":return Math.abs(t);case"at2":return Math.atan2(n,t)*180*T/Math.PI;case"cat2":return t*Math.cos(Math.atan2(a,n));case"cos":return t*Math.cos(C(n));case"max":return Math.max(t,n);case"min":return Math.min(t,n);case"mod":return Math.sqrt(t*t+n*n+a*a);case"pin":return n<t?t:n>a?a:n;case"sat2":return t*Math.sin(Math.atan2(a,n));case"sin":return t*Math.sin(C(n));case"sqrt":return Math.sqrt(t);case"tan":return t*Math.tan(C(n));case"val":return t;default:return 0}}const y=s=>String(Math.round(s*1e3)/1e3);function B(s,e,o,c,t,n,a=o,r=c){const _=d=>Math.atan2(a*Math.sin(C(d)),r*Math.cos(C(d))),u=_(t),m=n<0?-1:1,l=Math.floor(Math.abs(n)/216e5),b=Math.abs(n)-l*216e5;let h=_(t+m*b)-u;for(;m*h<0;)h+=m*2*Math.PI;b===0&&(h=0);const i=u+h+m*l*2*Math.PI,M=s-o*Math.cos(u),p=e-c*Math.sin(u),x=Math.max(1,Math.ceil(Math.abs(i-u)/(Math.PI/2)-1e-9)),S=(i-u)/x,$=4/3*Math.tan(S/4),g=[];let f=u;for(let d=0;d<x;d++){const k=f+S,[v,P,I,H]=[Math.cos(f),Math.sin(f),Math.cos(k),Math.sin(k)];g.push(`C ${y(M+o*(v-$*P))} ${y(p+c*(P+$*v))} ${y(M+o*(I+$*H))} ${y(p+c*(H-$*I))} ${y(M+o*I)} ${y(p+c*H)}`),f=k}return{d:g,x:M+o*Math.cos(i),y:p+c*Math.sin(i)}}function q(s,e,o,c){const t=A(e,o);for(const[n,a]of s.av??[])t.set(n,c[n]??Z(a,t));for(const[n,a]of s.gd??[])t.set(n,Z(a,t));return t}const E=(s,e)=>e.get(s)??Number(s);export function evaluate(s,e,o,c={}){const t=q(s,e,o,c),n=l=>E(l,t),a=s.paths.map(l=>{const b=l.w?e/l.w:1,h=l.h?o/l.h:1,i=l.d.split(" "),M=[];let p=0,x=0,S={x:0,y:0};for(let $=0;$<i.length;){const g=i[$++],f=()=>n(i[$++]??"0");if(g==="M"||g==="L")p=f()*b,x=f()*h,g==="M"&&(S={x:p,y:x}),M.push(`${g} ${y(p)} ${y(x)}`);else if(g==="Q"){const[d,k]=[f()*b,f()*h],[v,P]=[f()*b,f()*h];M.push(`C ${y(p+2/3*(d-p))} ${y(x+2/3*(k-x))} ${y(v+2/3*(d-v))} ${y(P+2/3*(k-P))} ${y(v)} ${y(P)}`),[p,x]=[v,P]}else if(g==="C"){const d=[f()*b,f()*h,f()*b,f()*h,f()*b,f()*h];M.push(`C ${d.map(y).join(" ")}`),[p,x]=[d[4]??0,d[5]??0]}else if(g==="A"){const[d,k,v,P]=[f(),f(),f(),f()],I=B(p,x,d*b,k*h,v,P,d,k);M.push(...I.d),[p,x]=[I.x,I.y]}else g==="Z"&&(M.push("Z"),[p,x]=[S.x,S.y])}return{d:M.join(" "),fill:l.fill??"norm",stroke:l.stroke!==!1}}),[r="l",_="t",u="r",m="b"]=s.text??[];return{paths:a,text:{left:n(r),top:n(_),right:n(u),bottom:n(m)}}}export function presetOutline(s,e,o,c=[]){const t=O[s];if(t)return evaluate(t,e,o,N(t,c))}function N(s,e){const o={};return(s.av??[]).forEach(([c],t)=>{const n=e[t];n!==void 0&&(o[c]=n*1e5)}),o}const z=(s,e)=>({x:E(s.pos[0],e),y:E(s.pos[1],e)});export function presetHandles(s,e,o,c=[]){const t=O[s];if(!t?.ah)return[];const n=q(t,e,o,N(t,c));return t.ah.map((a,r)=>({index:r,...z(a,n)}))}export function presetSites(s,e,o,c=[]){const t=O[s];if(!t?.cxn)return[];const n=q(t,e,o,N(t,c));return t.cxn.map(([a,r,_],u)=>({index:u,x:E(a,n),y:E(r,n),angle:E(_,n)/6e4}))}const L=64,j=(Math.sqrt(5)-1)/2;function D(s,e,o){if(o<=e)return e;const c=(o-e)/L;let t=0,n=1/0;for(let h=0;h<=L;h++){const i=s(e+h*c);i<n&&([t,n]=[h,i])}let a=e+Math.max(0,t-1)*c,r=e+Math.min(L,t+1)*c,_=r-j*(r-a),u=a+j*(r-a),m=s(_),l=s(u);for(let h=0;h<80&&r-a>1e-6;h++)m<l?([r,u,l]=[u,_,m],_=r-j*(r-a),m=s(_)):([a,_,m]=[_,u,l],u=a+j*(r-a),l=s(u));const b=(a+r)/2;return s(b)<=n?b:e+t*c}export function adjustedBy(s,e,o,c,t,n){const a=O[s],r=a?.ah?.[t];if(!a||!r)return[...c];const _=q(a,e,o,N(a,c)),u={};for(const[i]of a.av??[])u[i]=_.get(i)??0;const m=[r.x??r.r,r.y??r.ang].filter(i=>i!==void 0),l=i=>{const M=z(r,q(a,e,o,i));return Math.hypot(M.x-n.x,M.y-n.y)},b=1e-9*(Math.abs(e)+Math.abs(o)+1),h=new Set;for(const[i,M,p]of m.length>1?[...m,...m]:m){const x=q(a,e,o,u),[S,$]=[E(M,x),E(p,x)].sort((v,P)=>v-P);if(S===void 0||$===void 0)continue;const g=v=>l({...u,[i]:v}),f=u[i]??0,d=Math.min($,Math.max(S,Math.round(D(g,S,$))));f>=S&&f<=$&&g(f)<=g(d)+b||(u[i]=d,h.add(i))}return(a.av??[]).map(([i],M)=>h.has(i)?(u[i]??0)/1e5:c[M]??(u[i]??0)/1e5)}
|
|
@@ -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,13 +1,5 @@
|
|
|
1
1
|
import type { Word } from "./media.js";
|
|
2
|
-
|
|
3
|
-
* A named place in a line, in characters of the line as shown: a point at
|
|
4
|
-
* `at`, or the stretch from `at` to `end`.
|
|
5
|
-
*/
|
|
6
|
-
export interface TextAnchor {
|
|
7
|
-
name: string;
|
|
8
|
-
at: number;
|
|
9
|
-
end?: number;
|
|
10
|
-
}
|
|
2
|
+
import type { TextAnchor } from "./source.js";
|
|
11
3
|
/** A piece of a line, `at` to `end` of it as shown, that is said as `speak`. */
|
|
12
4
|
export interface SpokenSpan {
|
|
13
5
|
at: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{LAYER_BRAND as f}from"./
|
|
2
|
+
import{LAYER_BRAND as f}from"./layer.js";const l=e=>typeof e=="function"&&typeof e.info=="object"&&e.info!==null;export const isGraphicLayer=e=>typeof e=="object"&&e!==null&&e[f]==="graphic";export function framedComponent(e,n){if(l(n)){const{info:r}=n,t=n.layersIn;return{name:e,...r.label===void 0?{}:{label:r.label},props:r.props,layers:t??(o=>[n(o)])}}if(typeof n=="object"&&n!==null&&typeof n.layers=="function"){const r=n;return{name:e,...r.label===void 0?{}:{label:r.label},props:r.props??{},layers:r.layers}}}export function parseComponentRef(e){const n=e.lastIndexOf("#"),r=(n<0?e:e.slice(0,n)).trim(),t=(n<0?"":e.slice(n+1)).trim()||"default";if(!(r===""||!/\.(?:[cm]?[jt]sx?)$/u.test(r))&&/^[A-Za-z_$][\w$]*$/u.test(t))return{path:r,name:t}}export const componentRefText=e=>e.name==="default"?e.path:`${e.path}#${e.name}`;export function readPropText(e,n){switch(e.type){case"number":{const r=n.trim()===""?NaN:Number(n);return Number.isFinite(r)?e.min!==void 0&&r<e.min?{ok:!1,why:`is under its least, ${String(e.min)}`}:e.max!==void 0&&r>e.max?{ok:!1,why:`is over its most, ${String(e.max)}`}:{ok:!0,value:r}:{ok:!1,why:"is not a number"}}case"boolean":return n==="true"?{ok:!0,value:!0}:n==="false"?{ok:!0,value:!1}:{ok:!1,why:"is not true or false"};case"time":{const r=Number(n);return Number.isFinite(r)&&n.trim()!==""?{ok:!0,value:r}:{ok:!0,value:n}}case"list":case"object":{let r;try{r=JSON.parse(n)}catch{return{ok:!1,why:`is not JSON (a ${e.type} is written as JSON)`}}return(e.type==="list"?Array.isArray(r):typeof r=="object"&&r!==null&&!Array.isArray(r))?{ok:!0,value:r}:{ok:!1,why:`is not a JSON ${e.type==="list"?"array":"object"}`}}default:return{ok:!0,value:n}}}export function propText(e){return typeof e=="string"?e:typeof e=="number"||typeof e=="boolean"?String(e):JSON.stringify(e)}export function readPropsText(e,n){const r={},t=[];for(const[o,i]of Object.entries(n)){const a=e.props[o];if(a===void 0){const u=Object.keys(e.props);t.push(`${e.name} has no prop ${o} (${u.length>0?`it has ${u.join(", ")}`:"it has none"})`);continue}const s=readPropText(a,i);s.ok?r[o]=s.value:t.push(`${e.name}'s ${o} "${i}" ${s.why}`)}return{props:r,problems:t}}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Combo } from "./matrix.js";
|
|
2
|
+
import type { MediaInfo } from "./media.js";
|
|
3
|
+
import type { MessageHint } from "./messages.js";
|
|
4
|
+
/** ctx.s: the current language's text. */
|
|
5
|
+
export interface MessageReader {
|
|
6
|
+
(key: string, hint?: MessageHint): string;
|
|
7
|
+
/**
|
|
8
|
+
* Numbered keys under a prefix, in order: `x.0`, `x.1`… Deeper keys make
|
|
9
|
+
* objects (`x.0.name`) and nested lists. What each item is, the SDK's
|
|
10
|
+
* reader types from the project's messages; here it is not known.
|
|
11
|
+
*/
|
|
12
|
+
list(prefix: string, hint?: MessageHint): unknown[];
|
|
13
|
+
/** The text with its {name} variables filled in. */
|
|
14
|
+
with(key: string, inputs: Readonly<Record<string, string | number>>, hint?: MessageHint): string;
|
|
15
|
+
}
|
|
16
|
+
/** What a kind's build function receives. */
|
|
17
|
+
export interface BuildContext {
|
|
18
|
+
/**
|
|
19
|
+
* This combo: one value per dimension and, when the piece has slots, its
|
|
20
|
+
* structure (when it declares structures) and one candidate per slot of
|
|
21
|
+
* it, e.g. { lang: "en", hook: "price", demo: "inbox" }.
|
|
22
|
+
*/
|
|
23
|
+
combo: Combo;
|
|
24
|
+
/**
|
|
25
|
+
* The file a pool slot picked in this combo (`slots: { demo: { pool:
|
|
26
|
+
* "./pool/demos" } }`), as a path footage() and ctx.asset() take.
|
|
27
|
+
*/
|
|
28
|
+
pool(slot: string): string;
|
|
29
|
+
s: MessageReader;
|
|
30
|
+
/** Media at a path relative to the piece's file (dynamic paths; fixed ones are imports). */
|
|
31
|
+
asset(path: string): MediaInfo;
|
|
32
|
+
/**
|
|
33
|
+
* A data file (CSV rows, YAML, JSON) at a path relative to the piece's
|
|
34
|
+
* file: for dynamic paths; fixed ones are imports. Recorded in reads().
|
|
35
|
+
* Cast it to the shape you expect: `ctx.data(path) as Plan[]`.
|
|
36
|
+
*/
|
|
37
|
+
data(path: string): unknown;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { MeasuredText } from "./
|
|
2
|
-
import type { Box } from "
|
|
1
|
+
import type { MeasuredText } from "./layout.js";
|
|
2
|
+
import type { Box } from "@allyhub/diagnostics";
|
|
3
3
|
/**
|
|
4
4
|
* A style sheet that hides every text's fill and nothing else: borders and
|
|
5
5
|
* icons drawn in `currentColor`, shadows and strokes round letters, and
|
|
@@ -38,10 +38,32 @@ export declare const FILE_TYPES: {
|
|
|
38
38
|
readonly ext: "png";
|
|
39
39
|
readonly type: "image/png";
|
|
40
40
|
};
|
|
41
|
+
readonly jpeg: {
|
|
42
|
+
readonly ext: "jpg";
|
|
43
|
+
readonly type: "image/jpeg";
|
|
44
|
+
};
|
|
45
|
+
readonly webp: {
|
|
46
|
+
readonly ext: "webp";
|
|
47
|
+
readonly type: "image/webp";
|
|
48
|
+
};
|
|
49
|
+
readonly avif: {
|
|
50
|
+
readonly ext: "avif";
|
|
51
|
+
readonly type: "image/avif";
|
|
52
|
+
};
|
|
41
53
|
readonly pdf: {
|
|
42
54
|
readonly ext: "pdf";
|
|
43
55
|
readonly type: "application/pdf";
|
|
44
56
|
};
|
|
57
|
+
/** A set of files in one (an image's boards). */
|
|
58
|
+
readonly zip: {
|
|
59
|
+
readonly ext: "zip";
|
|
60
|
+
readonly type: "application/zip";
|
|
61
|
+
};
|
|
62
|
+
/** A layered Photoshop file (an image's board). */
|
|
63
|
+
readonly psd: {
|
|
64
|
+
readonly ext: "psd";
|
|
65
|
+
readonly type: "image/vnd.adobe.photoshop";
|
|
66
|
+
};
|
|
45
67
|
readonly pptx: {
|
|
46
68
|
readonly ext: "pptx";
|
|
47
69
|
readonly type: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
|
@@ -60,18 +82,13 @@ export declare function exportFile(type: FileType): {
|
|
|
60
82
|
zipped: boolean;
|
|
61
83
|
};
|
|
62
84
|
/**
|
|
63
|
-
*
|
|
64
|
-
*
|
|
85
|
+
* The output item as the check loaded it (only what matters here): its
|
|
86
|
+
* kind, the file types its kind renders (its contribution's `renders`), and
|
|
87
|
+
* whether any part says something.
|
|
65
88
|
*/
|
|
66
|
-
/** What is exported: a video, or a deck (`@allyhub/slides-core`). */
|
|
67
|
-
export type ExportKind = "video" | "slides";
|
|
68
|
-
export declare const KIND_TYPES: Record<ExportKind, readonly FileType[]>;
|
|
69
|
-
/** What `allyhub render` makes when no file type is asked for. */
|
|
70
|
-
export declare const DEFAULT_TYPES: Record<ExportKind, readonly FileType[]>;
|
|
71
|
-
/** The output item as the check loaded it (only what matters here). */
|
|
72
89
|
export interface ExportTarget {
|
|
73
|
-
kind:
|
|
74
|
-
|
|
90
|
+
kind: string;
|
|
91
|
+
types: readonly string[];
|
|
75
92
|
speech?: boolean;
|
|
76
93
|
}
|
|
77
94
|
/**
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export const FILE_TYPES={mp4:{ext:"mp4",type:"video/mp4"},mov:{ext:"mov",type:"video/quicktime"},webm:{ext:"webm",type:"video/webm"},gif:{ext:"gif",type:"image/gif"},srt:{ext:"srt",type:"application/x-subrip"},vtt:{ext:"vtt",type:"text/vtt"},cover:{ext:"cover.jpg",type:"image/jpeg"},wav:{ext:"wav",type:"audio/wav"},png:{ext:"png",type:"image/png"},jpeg:{ext:"jpg",type:"image/jpeg"},webp:{ext:"webp",type:"image/webp"},avif:{ext:"avif",type:"image/avif"},pdf:{ext:"pdf",type:"application/pdf"},zip:{ext:"zip",type:"application/zip"},psd:{ext:"psd",type:"image/vnd.adobe.photoshop"},pptx:{ext:"pptx",type:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}};export function isFileType(e){return Object.hasOwn(FILE_TYPES,e)}export function exportFile(e){return e==="png"?{ext:"png.zip",type:"application/zip",zipped:!0}:{...FILE_TYPES[e],zipped:!1}}export function exportProblem(e,t){const p=e.types;if(!p.includes(t))return{code:"bad_type",message:`A ${e.kind} output cannot be exported as ${t}.`,hint:`Choose one of: ${p.join(", ")}`};if((t==="srt"||t==="vtt")&&e.speech!==!0)return{code:"no_speech",message:"No part of this output says anything, so it has no captions to export.",hint:'Give parts speech: speech: take("./take.mp4") or say(s("…")).'}}export const MOTION_TYPES=["mp4","mov","webm","gif"],ALPHA_TYPES=["mov","webm","png"];export function exportStem(e){const t=p=>p.replace(/^[. ]+|[. ]+$/gu,"");return t(t(e.normalize("NFC").replace(/[\u0000-\u001f\u007f/\\:*?"<>|]+/gu," ").replace(/\s+/gu," ")).slice(0,120))}
|
|
@@ -12,13 +12,11 @@ export interface SizeInfo {
|
|
|
12
12
|
height: number;
|
|
13
13
|
orient: "landscape" | "portrait" | "square";
|
|
14
14
|
/**
|
|
15
|
-
* Edges
|
|
16
|
-
* rail
|
|
17
|
-
* From our earlier prototypes.
|
|
15
|
+
* Edges an interface over the video may cover (captions, buttons, an
|
|
16
|
+
* action rail), in pixels. Text there is reported as a text-covered fact.
|
|
17
|
+
* From our earlier prototypes; a format spec changes them.
|
|
18
18
|
*/
|
|
19
19
|
safe: SafeZone;
|
|
20
|
-
/** A platform profile's length, loudness and file (when the format is one). */
|
|
21
|
-
profile?: PlatformProfile;
|
|
22
20
|
}
|
|
23
21
|
/**
|
|
24
22
|
* The defaults of the content box (layout(ctx) in @allyhub/sdk/dom,
|
|
@@ -58,52 +56,6 @@ export interface ContentEdges {
|
|
|
58
56
|
*/
|
|
59
57
|
export declare function contentEdges(dims: Pick<SizeInfo, "width" | "height" | "orient" | "safe">, opts?: ContentOptions): ContentEdges;
|
|
60
58
|
export declare function presetInfo(preset: Preset): SizeInfo;
|
|
61
|
-
/** The platform profiles a video can be rendered as. */
|
|
62
|
-
export declare const PROFILES: readonly ["tiktok", "reels", "shorts", "meta-feed", "amazon", "linkedin"];
|
|
63
|
-
export type Profile = (typeof PROFILES)[number];
|
|
64
|
-
export declare function isProfile(v: unknown): v is Profile;
|
|
65
|
-
/** What a platform asks of a video: its frame, its interface, its length, its sound and its file. */
|
|
66
|
-
export interface PlatformProfile {
|
|
67
|
-
name: Profile;
|
|
68
|
-
/** The platform, for people. */
|
|
69
|
-
label: string;
|
|
70
|
-
width: number;
|
|
71
|
-
height: number;
|
|
72
|
-
/** Edges the platform's interface covers (captions, buttons, the action rail), in pixels. */
|
|
73
|
-
safe: SafeZone;
|
|
74
|
-
/** The longest video the placement takes, in seconds (AK-F001). */
|
|
75
|
-
maxDuration: number;
|
|
76
|
-
/** The loudness its sound is mastered to when the output does not choose (LUFS). */
|
|
77
|
-
loudness: number;
|
|
78
|
-
/** The file it takes. */
|
|
79
|
-
file: {
|
|
80
|
-
container: "mp4";
|
|
81
|
-
video: "h264";
|
|
82
|
-
audio: "aac";
|
|
83
|
-
/** The cover (thumbnail) size. */
|
|
84
|
-
cover: {
|
|
85
|
-
width: number;
|
|
86
|
-
height: number;
|
|
87
|
-
};
|
|
88
|
-
/** The largest file it accepts, bytes. */
|
|
89
|
-
maxBytes: number;
|
|
90
|
-
/**
|
|
91
|
-
* How allyhub render encodes an mp4 for it unless told otherwise: the
|
|
92
|
-
* constant rate factor (`--param crf`) and the most video bitrate, kbit/s
|
|
93
|
-
* (`EncodeOptions.maxBitrate`, 0 for none). AllyHub's choice for an upload, well
|
|
94
|
-
* under the platform's limits: the platform encodes what it receives
|
|
95
|
-
* again, so more bits make a bigger file, not a better video.
|
|
96
|
-
*/
|
|
97
|
-
encode: {
|
|
98
|
-
crf: number;
|
|
99
|
-
maxKbps: number;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
/** A platform profile's frame, interface, length, sound and file. */
|
|
104
|
-
export declare function profileInfo(profile: Profile): PlatformProfile;
|
|
105
|
-
/** The profile of a format, when it is one. */
|
|
106
|
-
export declare function profileOf(format: string): PlatformProfile | undefined;
|
|
107
59
|
/** Frames per second when a video does not choose (`video(…, { fps })`). */
|
|
108
60
|
export declare const FPS = 30;
|
|
109
61
|
/** How long an output may take to load before it is a must-fix (AK-P002), seconds: a piece's `loadLimit` changes it. */
|
|
@@ -142,18 +94,15 @@ export declare function toFrame(t: number, fps?: number): number;
|
|
|
142
94
|
/** Rounds a time to the nearest frame boundary. */
|
|
143
95
|
export declare function roundToFrame(t: number, fps?: number): number;
|
|
144
96
|
/**
|
|
145
|
-
* A format: one of the four presets,
|
|
97
|
+
* A format: one of the four presets, or `WxH` in
|
|
146
98
|
* pixels (each side 64–8192), e.g. "1200x630". Presets win: "16x9" is
|
|
147
99
|
* the 1920×1080 frame, not 16 by 9 pixels.
|
|
148
100
|
*/
|
|
149
|
-
export type Format = Preset |
|
|
101
|
+
export type Format = Preset | `${number}x${number}`;
|
|
150
102
|
/**
|
|
151
|
-
* A format with
|
|
152
|
-
* its name
|
|
153
|
-
* format
|
|
154
|
-
* AK-F001) and mastering loudness (`loudness`, LUFS). Its name stays the
|
|
155
|
-
* format's own (`format`): combos, file names and --format use it, so a
|
|
156
|
-
* format is listed once, changed or not.
|
|
103
|
+
* A format with its covered edges changed (`safe`), in `formats` in place
|
|
104
|
+
* of its name. Its name stays the format's own (`format`): combos, file
|
|
105
|
+
* names and --format use it, so a format is listed once, changed or not.
|
|
157
106
|
*/
|
|
158
107
|
export interface FormatSpec {
|
|
159
108
|
format: Format;
|
|
@@ -161,10 +110,6 @@ export interface FormatSpec {
|
|
|
161
110
|
safe?: {
|
|
162
111
|
[K in keyof SafeZone]?: number | undefined;
|
|
163
112
|
};
|
|
164
|
-
/** A platform profile's longest video, seconds. */
|
|
165
|
-
maxDuration?: number;
|
|
166
|
-
/** A platform profile's loudness when the output does not choose (`master`), LUFS. */
|
|
167
|
-
loudness?: number;
|
|
168
113
|
}
|
|
169
114
|
/** What `formats` lists: a format's name, or a format with numbers changed. */
|
|
170
115
|
export type FormatEntry = Format | FormatSpec;
|
|
@@ -177,14 +122,13 @@ export declare function formatEntry(entries: readonly (string | FormatSpec)[], n
|
|
|
177
122
|
/**
|
|
178
123
|
* What is wrong with a format spec beyond its format's name (one line), or
|
|
179
124
|
* undefined: the covered edges are whole pixels that leave some of the
|
|
180
|
-
* frame
|
|
125
|
+
* frame.
|
|
181
126
|
*/
|
|
182
127
|
export declare function formatSpecProblem(spec: FormatSpec): string | undefined;
|
|
183
128
|
/**
|
|
184
129
|
* A format's pixels, orientation and safe zone, from its name or from a
|
|
185
|
-
* spec (with the spec's numbers); undefined when it is not one.
|
|
186
|
-
*
|
|
187
|
-
* unless a spec gives one.
|
|
130
|
+
* spec (with the spec's numbers); undefined when it is not one. Custom
|
|
131
|
+
* formats have no safe zone unless a spec gives one.
|
|
188
132
|
*/
|
|
189
133
|
export declare function formatInfo(format: string | FormatSpec): SizeInfo | undefined;
|
|
190
134
|
/**
|
|
@@ -192,7 +136,7 @@ export declare function formatInfo(format: string | FormatSpec): SizeInfo | unde
|
|
|
192
136
|
* even sides (64–8192), e.g. "1280x720". H.264 needs even sides. Custom
|
|
193
137
|
* formats have no safe zone.
|
|
194
138
|
*/
|
|
195
|
-
export type VideoFormat = Preset |
|
|
139
|
+
export type VideoFormat = Preset | `${number}x${number}`;
|
|
196
140
|
export declare function isVideoFormat(v: unknown): v is VideoFormat;
|
|
197
141
|
export declare function isFormat(v: unknown): v is Format;
|
|
198
142
|
/** The formats a video can have, in words (for errors and help). */
|
|
@@ -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 u={"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:o,orient:r,safe:i}=t,s=Math.min(n,o)/1080,d=e.margin??(r==="landscape"?120:84)*s,f=Math.max(d,i.left,i.right),h=Math.max(f,i.top+(e.topGap??30*s)),p=o-Math.max(f,i.bottom+(e.bottomGap??20*s));return{k:s,pad:f,top:h,bottom:p,left:f,right:n-f}}export function presetInfo(t){return u[t]}export const FPS=30,LOAD_LIMIT=10,SEEK_LIMIT=30,LOAD_WAITS=4,MAX_FPS=120;const a=[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 o of a){const r=o*1e3/1001;if(Math.abs(t-r)<.005)return r}return}if(typeof t!="string")return;const e=t.trim(),n=/^(\d+)\s*\/\s*(\d+)$/.exec(e);if(n){const o=Number(n[1]),r=Number(n[2]);return r===1?parseFps(o):r===1001&&a.some(i=>i*1e3===o)?o/r:void 0}return e!==""&&Number.isFinite(Number(e))?parseFps(Number(e)):void 0}export function fpsRational(t){for(const n of a)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 m=/^([1-9]\d{1,3})x([1-9]\d{1,3})$/,x={top:0,bottom:0,left:0,right:0},g=(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){return{...t,safe:{...t.safe,...c(e.safe??{})}}}function c(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,...c(t.safe??{})};for(const[o,r]of Object.entries(t.safe??{}))if(r!==void 0&&(!Number.isInteger(r)||r<0))return`safe.${o} is ${String(r)}: 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`}export function formatInfo(t){if(typeof t!="string"){const r=formatInfo(t.format);return r&&b(r,t)}if(isPreset(t))return u[t];const e=m.exec(t);if(!e)return;const n=Number(e[1]),o=Number(e[2]);if(!(n<64||o<64||n>8192||o>8192))return{width:n,height:o,orient:g(n,o),safe:x}}export function isVideoFormat(t){if(isPreset(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(", ")}, or WIDTHxHEIGHT in pixels with even sides from 64 to 8192, such as 1280x720`;export function paperOf(t){const e=formatInfo(t)??u["16x9"];return`${String(e.width)}px ${String(e.height)}px`}
|