@allyhub/sdk 0.8.0 → 0.9.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 +11 -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 +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
- 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 +20 -82
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +96 -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 +46 -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 +421 -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 +285 -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 +139 -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/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 +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +232 -132
- 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 +22 -9
- 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 +5 -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 +273 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +26 -0
- 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 +1 -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/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/server.d.ts +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/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 +3 -4
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +76 -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/sdk.d.ts +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +6 -6
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- 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 +44 -4
- 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/fact.d.ts +208 -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 +19 -2
- 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 +17 -10
- 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 +22 -430
- 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 +6 -12
- 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/{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 +8 -6
- package/docs/batches.md +5 -5
- package/docs/contract.md +2 -2
- package/docs/defaults.md +278 -20
- package/docs/docs.md +77 -63
- 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 +11 -11
- package/docs/sheets.md +26 -25
- package/docs/slides.md +73 -65
- 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/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/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
- /package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +0 -0
- /package/dist/{phone.js → node_modules/@allyhub/video-sdk/dist/phone.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{
|
|
2
|
+
import{factOf as d}from"@allyhub/diagnostics";import{frameFacts as u}from"@allyhub/image-measure/layout";import{READ_DEFAULTS as c}from"@allyhub/piece";import{boxRows as x,contentBox as h,freeBands as i,unionSpans as m,wordsAtOnce as g}from"./measure.js";export const fact=(e,n,a)=>d(e,n,a);export function freeBandsData(e){const n=h(e.width,e.height,e.safe),a=(t,o)=>{const f=m(o.flat());return{files:t,seen:o.filter(p=>p.length>0).length,rows:f,bands:i(n,f)}},s="missing"in e.face?e.face:{...a(e.face.files,e.face.boxes.map(t=>{const o=t?x(t,n.x):void 0;return o?[o]:[]})),...e.face.speaker===void 0?{}:{speaker:e.face.speaker}},r="missing"in e.person?e.person:a(e.person.files,e.person.rows);return{frame:[e.width,e.height],covered:e.safe,content:n,moments:e.moments,face:s,person:r,bands:i(n,[..."rows"in s?s.rows:[],..."rows"in r?r.rows:[]])}}export function layoutFacts(e,n){const a=[];a.push(...u(e,n,(s,r)=>{const t=[];for(const o of s.faceOverlaps){const f=s.texts[o.text];!f||!s.face||t.push(fact("text-speaker",r,{text:f,face:{box:s.face,area:o.area,ofText:o.ofText,ofFace:o.ofFace}}))}return t}));for(const s of e.reading?.texts??[])a.push(fact("text-time",{...n,part:s.part,t:s.first},{text:s.text,words:s.words,chars:s.chars,seconds:s.seconds,spans:s.spans,onScreen:s.onScreen,...s.size?{size:s.size}:{},options:e.reading?.options??c}));for(const s of g(e.reading?.texts??[])){const{part:r,...t}=s;a.push(fact("words-on-screen",{...n,part:r,t:s.from},{...t,options:e.reading?.options??c}))}for(const s of e.footage){const{part:r,...t}=s;a.push(fact("footage-scale",{...n,part:r,t:s.max.t},t))}for(const s of e.pictures??[]){const{part:r,t,...o}=s;a.push(fact("graphic-picture-scale",{...n,part:r,t},o))}return a}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { type FaceTrack } from "
|
|
1
|
+
import { type FaceTrack } from "@allyhub/piece";
|
|
2
2
|
import { type Ease, type ScalarKey } from "./motion.js";
|
|
3
3
|
import type { Placement } from "./placement.js";
|
|
4
|
-
import type { PixelRect
|
|
4
|
+
import type { PixelRect } from "@allyhub/piece";
|
|
5
|
+
import type { TimelineFootage } from "./timeline.js";
|
|
5
6
|
/**
|
|
6
7
|
* The source second a footage layer shows at film time t: from `from`
|
|
7
8
|
* at its speed, or, for a cut take, inside the cut showing then.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{faceAt as A,facesAt as C}from"
|
|
2
|
+
import{faceAt as A,facesAt as C}from"@allyhub/piece";import{keyAt as l,rectAt as z,simplifyKeys as E}from"./motion.js";export function sourceAt(t,e){const n=t.cuts;if(n&&n.length>0){let c=n[0]??{at:t.start,from:t.from};for(const r of n)r.at<=e+1e-9&&(c=r);return c.from+(e-c.at)}return t.from+(e-t.start)*t.speed}export function zoomRect(t,e,n,c){if(e===1)return t;const r=1-1/e;return[t[0]+n*t[2]*r,t[1]+c*t[3]*r,t[2]/e,t[3]/e]}export function zoomChannel(t,e){return t.map(n=>({t:n.t,v:n[e],...n.ease?{ease:n.ease}:{}}))}export function placementAt(t,e){let n=t.box,c=t.picture;if(t.boxes&&t.boxes.length>0){const o=t.boxes[0]?.box??t.box,i=z(t.boxes.map(h=>({t:h.t,rect:h.box,...h.ease?{ease:h.ease}:{}})),e),a=boxFit(t,o,i),[f,m,u,x]=t.picture,s=i[0]+i[2]/2+(f+u/2-(o[0]+o[2]/2))*a,p=i[1]+i[3]/2+(m+x/2-(o[1]+o[3]/2))*a;c=[s-u*a/2,p-x*a/2,u*a,x*a],n=i}let r=t.crop;if(r&&t.pan&&t.pan.length>0){const o=l(t.pan.map(a=>({t:a.t,v:a.x})),e),i=l(t.pan.map(a=>({t:a.t,v:a.y})),e);r=[o,i,r[2],r[3]]}return r&&t.zoom&&t.zoom.length>0&&(r=zoomRect(r,l(zoomChannel(t.zoom,"z"),e),l(zoomChannel(t.zoom,"cx"),e),l(zoomChannel(t.zoom,"cy"),e))),{box:n,picture:c,...r?{crop:r}:{}}}export function boxFit(t,e,n){const[,,c,r]=t.picture;if(c<=0||r<=0||e[2]<=0||e[3]<=0)return 1;const o=t.fit==="cover"?Math.max:Math.min,i=o(e[2]/c,e[3]/r);return o(n[2]/c,n[3]/r)/i}export function sourceToFrame(t,e){const n=t.crop;if(!n)return e;const c=t.picture[2]/n[2],r=t.picture[3]/n[3];return[t.picture[0]+(e[0]-n[0])*c,t.picture[1]+(e[1]-n[1])*r,e[2]*c,e[3]*r]}function w(t,e){const n=Math.max(t[0],e[0]),c=Math.max(t[1],e[1]),r=Math.min(t[0]+t[2],e[0]+e[2]),o=Math.min(t[1]+t[3],e[1]+e[3]);return r>n&&o>c?[n,c,r-n,o-c]:void 0}export function faceOnFrame(t,e,n,c=t.speaker??e.speaker){if(n<t.start||n>=t.end)return;const r=A(e,sourceAt(t,n),c);if(!r)return;const o=placementAt(t,n);return w(sourceToFrame(o,r),o.box)}export function facesOnFrame(t,e,n){if(n<t.start||n>=t.end)return[];const c=placementAt(t,n);return C(e,sourceAt(t,n)).flatMap(r=>{const o=w(sourceToFrame(c,r.box),c.box);return o?[{id:r.id,box:o}]:[]})}export function reframeWindow(t,e){const n=e.w/e.h,c=Math.min(t.width,t.height*n);return{w:Math.min(t.width,Math.round(c)),h:Math.min(t.height,Math.round(c/n))}}export const REFRAME_FACE_Y=.4,REFRAME_FALLBACK={x:.5,y:.4};export function reframePath(t){const{window:e,source:n,layer:c}=t,r=s=>Math.min(Math.max(s,0),n.width-e.w),o=s=>Math.min(Math.max(s,0),n.height-e.h),i=t.faceY??REFRAME_FACE_Y,a=s=>{const p=t.track?A(t.track,sourceAt(c,s),t.speaker??t.track.speaker):void 0,h=p?p[0]+p[2]/2:(t.focus?.x??.5)*n.width,y=p?p[1]+p[3]/2:(t.focus?.y??.4)*n.height;return[r(h-e.w/2),o(y-e.h*i)]},f=(c.cuts??[]).map(s=>s.at).filter(s=>s>c.start&&s<c.end),m=[c.start,...f,c.end],u=[];for(let s=0;s<m.length-1;s++){const p=m[s]??0,h=m[s+1]??p,y=[];for(let d=p;d<h-1e-6;d+=.1)y.push({t:d,v:a(d)});const M=Math.max(p,h-.001);y.push({t:M,v:a(M)});for(const d of E(y,1.5))u.push({t:Math.round(d.t*1e6)/1e6,x:Math.round((d.v[0]??0)*100)/100,y:Math.round((d.v[1]??0)*100)/100})}const x=u[0];return x&&u.every(s=>s.x===x.x&&s.y===x.y)?[x]:u}export const PUNCH_IN=.2,PUNCH_OUT=.25,PUNCH_SCALE=1.12,PUNCH_EASE="in-out",PUNCH_CENTER={x:.5,y:.42};export function punchKeys(t){const e=[...t].sort((o,i)=>o.start-i.start),n=[],c=o=>Math.round(o*1e6)/1e6;let r=PUNCH_OUT;for(const o of e){const i=o.in??PUNCH_IN,a=o.out??PUNCH_OUT,f=o.ease??PUNCH_EASE,m=o.start-i/2,u=o.start+i/2,x=n.at(-1);x&&x.t>m?(n.pop(),n.push({t:c(Math.max(x.t-r,u)),z:o.scale,cx:o.cx,cy:o.cy,ease:f})):(n.push({t:c(Math.max(0,m)),z:1,cx:o.cx,cy:o.cy}),n.push({t:c(u),z:o.scale,cx:o.cx,cy:o.cy,ease:f}));const s=Math.max(o.end,u);n.push({t:c(s),z:o.scale,cx:o.cx,cy:o.cy}),n.push({t:c(s+a),z:1,cx:o.cx,cy:o.cy,ease:f}),r=a}return n}export const PULLBACK_SCALE=1.12,PULLBACK_DUR=.6,PULLBACK_EASE="out";export function pullbackKeys(t,e,n=[]){const c=a=>Math.round(a*1e6)/1e6,r=n[0],o=Math.min(t+e.dur,r?.t??1/0);if(o<=t+1e-6)return[...n];const i=r&&r.t<=o+1e-9&&r.z===1?n.slice(1):n;return[{t:c(t),z:e.scale,cx:e.cx,cy:e.cy},{t:c(o),z:1,cx:e.cx,cy:e.cy,ease:e.ease??PULLBACK_EASE},...i]}export function parsePunch(t){const e=/^(.*\S)@(\d*\.\d+)$/u.exec(t.trim());return!e?.[1]||e[2]===void 0?{ref:t}:{ref:e[1],scale:Number(e[2])}}
|
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
export * from "./piece.js";
|
|
2
|
-
export * from "./component.js";
|
|
3
2
|
export * from "./timeline.js";
|
|
4
|
-
export * from "./source.js";
|
|
5
|
-
export * from "./look.js";
|
|
6
|
-
export * from "./formats.js";
|
|
7
3
|
export * from "./placement.js";
|
|
8
|
-
export * from "./media.js";
|
|
9
|
-
export * from "./gen.js";
|
|
10
|
-
export * from "./messages.js";
|
|
11
|
-
export * from "./script.js";
|
|
12
|
-
export * from "./anchors.js";
|
|
13
|
-
export * from "./marks.js";
|
|
14
4
|
export * from "./script-edit.js";
|
|
15
5
|
export * from "./edit.js";
|
|
16
6
|
export * from "./timing.js";
|
|
17
7
|
export * from "./music.js";
|
|
18
|
-
export * from "./words.js";
|
|
19
8
|
export * from "./speech.js";
|
|
20
9
|
export * from "./edits.js";
|
|
21
|
-
export * from "./voice.js";
|
|
22
10
|
export * from "./transcript.js";
|
|
23
11
|
export * from "./cut-report.js";
|
|
24
12
|
export * from "./captions.js";
|
|
@@ -28,14 +16,12 @@ export * from "./footage-motion.js";
|
|
|
28
16
|
export * from "./backdrop.js";
|
|
29
17
|
export * from "./measure.js";
|
|
30
18
|
export * from "./seams.js";
|
|
31
|
-
export * from "./contrast.js";
|
|
32
|
-
export * from "./matrix.js";
|
|
33
|
-
export * from "./problem.js";
|
|
34
19
|
export * from "./fact.js";
|
|
35
|
-
export * from "./console.js";
|
|
36
|
-
export * from "./export.js";
|
|
37
20
|
export * from "./schema.js";
|
|
38
21
|
export * from "./audio-types.js";
|
|
39
22
|
export * from "./render-types.js";
|
|
40
23
|
export * from "./sound-under.js";
|
|
24
|
+
export * from "./mix-plan.js";
|
|
25
|
+
export * from "./stage.js";
|
|
26
|
+
export * from "./check.js";
|
|
41
27
|
//# 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
|
-
export*from"./piece.js";export*from"./
|
|
2
|
+
export*from"./piece.js";export*from"./timeline.js";export*from"./placement.js";export*from"./script-edit.js";export*from"./edit.js";export*from"./timing.js";export*from"./music.js";export*from"./speech.js";export*from"./edits.js";export*from"./transcript.js";export*from"./cut-report.js";export*from"./captions.js";export*from"./transition.js";export*from"./motion.js";export*from"./footage-motion.js";export*from"./backdrop.js";export*from"./measure.js";export*from"./seams.js";export*from"./fact.js";export*from"./schema.js";export*from"./audio-types.js";export*from"./render-types.js";export*from"./sound-under.js";export*from"./mix-plan.js";export*from"./stage.js";export*from"./check.js";
|
|
@@ -1,323 +1,6 @@
|
|
|
1
|
-
import type { SafeZone } from "
|
|
2
|
-
import type { Box } from "
|
|
3
|
-
import type {
|
|
4
|
-
/** A block of text on screen at a moment: one layer's line or paragraph. */
|
|
5
|
-
export interface MeasuredText {
|
|
6
|
-
/** The layer's component name ("custom" for custom()). */
|
|
7
|
-
layer: string;
|
|
8
|
-
/** The plane it is drawn in. */
|
|
9
|
-
z: "front" | "behind-person" | "overlay";
|
|
10
|
-
text: string;
|
|
11
|
-
/** Its box in the frame's pixels, rounded. */
|
|
12
|
-
box: Box;
|
|
13
|
-
/** Inside a page viewport (a site demo): the page's own text. */
|
|
14
|
-
viewport?: true;
|
|
15
|
-
/**
|
|
16
|
-
* How opaque it is drawn, the lowest of its text nodes' (each the product
|
|
17
|
-
* of its element's and its ancestors'), when under 1.
|
|
18
|
-
*/
|
|
19
|
-
opacity?: number;
|
|
20
|
-
/**
|
|
21
|
-
* The box of what shows of its glyphs, when not `box`: the rows they
|
|
22
|
-
* cover (a line's box is the font's whole ascent and descent, taller
|
|
23
|
-
* than what is drawn), cut where an ancestor clips its content. Blocks of
|
|
24
|
-
* one layer, and a block and the boxes it is drawn inside, are compared
|
|
25
|
-
* by it.
|
|
26
|
-
*/
|
|
27
|
-
ink?: Box;
|
|
28
|
-
/**
|
|
29
|
-
* The font families its characters are drawn in, in the order they first
|
|
30
|
-
* draw one: by the faces the page declares and their ranges, as the
|
|
31
|
-
* browser picks them (the runtime's drawnFamilies).
|
|
32
|
-
*/
|
|
33
|
-
fonts?: string[];
|
|
34
|
-
}
|
|
35
|
-
/** What makes an element a box one can see: a background, a border, a shadow. */
|
|
36
|
-
export type BoxPaint = "background" | "border" | "shadow";
|
|
37
|
-
/**
|
|
38
|
-
* A box a text block is drawn inside: an element between the block and its
|
|
39
|
-
* layer with a background, a border or a shadow (the block's own element
|
|
40
|
-
* too), nearest first.
|
|
41
|
-
*/
|
|
42
|
-
export interface TextContainer {
|
|
43
|
-
/** In the frame's pixels, rounded. */
|
|
44
|
-
box: Box;
|
|
45
|
-
paint: BoxPaint[];
|
|
46
|
-
}
|
|
47
|
-
/** A text block reaching outside a box it is drawn inside. */
|
|
48
|
-
export interface TextOutside {
|
|
49
|
-
text: number;
|
|
50
|
-
/** The nearest box it reaches out of. */
|
|
51
|
-
container: TextContainer;
|
|
52
|
-
/** Per edge of that box it crosses: pixels past the edge. */
|
|
53
|
-
edges: {
|
|
54
|
-
side: "top" | "bottom" | "left" | "right";
|
|
55
|
-
px: number;
|
|
56
|
-
}[];
|
|
57
|
-
}
|
|
58
|
-
/** Two text blocks drawn over each other. */
|
|
59
|
-
export interface TextOverlap {
|
|
60
|
-
/** Indices into the moment's texts. */
|
|
61
|
-
a: number;
|
|
62
|
-
b: number;
|
|
63
|
-
/** Pixels both cover. */
|
|
64
|
-
area: number;
|
|
65
|
-
/** That area as a share of the smaller block's box (0–1). */
|
|
66
|
-
share: number;
|
|
67
|
-
}
|
|
68
|
-
/** A text block over the speaker's face. */
|
|
69
|
-
export interface FaceOverlap {
|
|
70
|
-
text: number;
|
|
71
|
-
area: number;
|
|
72
|
-
/** Share of the text block's box. */
|
|
73
|
-
ofText: number;
|
|
74
|
-
/** Share of the face's box. */
|
|
75
|
-
ofFace: number;
|
|
76
|
-
}
|
|
77
|
-
/** A text block reaching into the area a platform's interface covers (not a page viewport's own text). */
|
|
78
|
-
export interface SafeOverlap {
|
|
79
|
-
text: number;
|
|
80
|
-
/** Per covered edge it reaches into: pixels in from that edge's line. */
|
|
81
|
-
edges: {
|
|
82
|
-
side: "top" | "bottom" | "left" | "right";
|
|
83
|
-
px: number;
|
|
84
|
-
}[];
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* A text block the frame's edges cut: what shows of its glyphs (the rows
|
|
88
|
-
* each line's glyphs cover, the columns of its letters, after the boxes it
|
|
89
|
-
* is drawn inside clip it) that lies outside the frame.
|
|
90
|
-
*/
|
|
91
|
-
export interface TextOffFrame {
|
|
92
|
-
text: number;
|
|
93
|
-
/** Pixels of its glyphs outside the frame. */
|
|
94
|
-
outside: number;
|
|
95
|
-
/** That as a share of its glyphs' pixels (0–1; 1: none of them inside). */
|
|
96
|
-
share: number;
|
|
97
|
-
/** Per edge of the frame it crosses: pixels past the edge. */
|
|
98
|
-
edges: {
|
|
99
|
-
side: "top" | "bottom" | "left" | "right";
|
|
100
|
-
px: number;
|
|
101
|
-
}[];
|
|
102
|
-
/** The box round its glyphs, whole pixels, the frame not cutting it. */
|
|
103
|
-
glyphs: Box;
|
|
104
|
-
}
|
|
105
|
-
export interface LayoutMoment {
|
|
106
|
-
/** Film seconds, on the frame grid. */
|
|
107
|
-
t: number;
|
|
108
|
-
part: string;
|
|
109
|
-
texts: MeasuredText[];
|
|
110
|
-
/** The speaker's face, when the footage showing has a face track. */
|
|
111
|
-
face?: Box;
|
|
112
|
-
/** Blocks of different layers over each other. */
|
|
113
|
-
overlaps: TextOverlap[];
|
|
114
|
-
/** Blocks of the same layer over each other. */
|
|
115
|
-
ownOverlaps: TextOverlap[];
|
|
116
|
-
/** Blocks reaching outside a box they are drawn inside. */
|
|
117
|
-
outside: TextOutside[];
|
|
118
|
-
faceOverlaps: FaceOverlap[];
|
|
119
|
-
safeOverlaps: SafeOverlap[];
|
|
120
|
-
/** Blocks the frame's edges cut. */
|
|
121
|
-
offFrame: TextOffFrame[];
|
|
122
|
-
}
|
|
123
|
-
/** A footage layer's enlargement at one moment. */
|
|
124
|
-
export interface ScaleAt {
|
|
125
|
-
/** Output pixels per source pixel (1: its own pixels; 2: each source pixel drawn 2 × 2). */
|
|
126
|
-
scale: number;
|
|
127
|
-
/** Film seconds. */
|
|
128
|
-
t: number;
|
|
129
|
-
/** What makes up the scale then: the fit, and a zoom (punch-in or pullback) or box key. */
|
|
130
|
-
from: string[];
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* How much a footage layer is enlarged over its window: drawn pixels per
|
|
134
|
-
* source pixel at its largest and at its smallest.
|
|
135
|
-
*/
|
|
136
|
-
export interface FootageScale {
|
|
137
|
-
part: string;
|
|
138
|
-
file: string;
|
|
139
|
-
/** The source's pixels, as displayed. */
|
|
140
|
-
source: [width: number, height: number];
|
|
141
|
-
/** The part of the source drawn (crop, reframe window), in its pixels. */
|
|
142
|
-
shown: [width: number, height: number];
|
|
143
|
-
/** The largest enlargement, at its first moment. */
|
|
144
|
-
max: ScaleAt;
|
|
145
|
-
/** The smallest enlargement, at its first moment. */
|
|
146
|
-
min: ScaleAt;
|
|
147
|
-
}
|
|
148
|
-
/** How the time a text can be read is measured (the text-time fact). */
|
|
149
|
-
export interface ReadOptions {
|
|
150
|
-
/** Seconds between the moments each part is looked at. */
|
|
151
|
-
every: number;
|
|
152
|
-
/** A block is whole while every text node of it is drawn at this opacity or more… */
|
|
153
|
-
opacity: number;
|
|
154
|
-
/** …and at least this share of each node's glyphs' box shows (an ancestor's overflow clips the rest). */
|
|
155
|
-
shown: number;
|
|
156
|
-
/**
|
|
157
|
-
* The phone a text's size is given on: its screen in points, held
|
|
158
|
-
* upright, the frame fitted inside it whole (a 16:9 frame across its
|
|
159
|
-
* width, a 9:16 one up its height).
|
|
160
|
-
*/
|
|
161
|
-
phone: [width: number, height: number];
|
|
162
|
-
}
|
|
163
|
-
export declare const READ_DEFAULTS: ReadOptions;
|
|
164
|
-
/** How many of the phone's points a pixel of a frame is (`ReadOptions.phone`). */
|
|
165
|
-
export declare function phoneScale(frame: readonly [width: number, height: number], phone: readonly [width: number, height: number]): number;
|
|
166
|
-
/** A text block at one of the moments a part is looked at. */
|
|
167
|
-
export interface TextSample {
|
|
168
|
-
/** Film seconds. */
|
|
169
|
-
t: number;
|
|
170
|
-
text: string;
|
|
171
|
-
box: Box;
|
|
172
|
-
/** The lowest opacity of its text nodes. */
|
|
173
|
-
opacity: number;
|
|
174
|
-
/** The share of its glyphs' box that shows, the lowest of its text nodes' (an ancestor's overflow clips the rest). */
|
|
175
|
-
shown: number;
|
|
176
|
-
/** Its font size as drawn, in the frame's pixels (a transform's scale counted), the smallest of its text nodes'. */
|
|
177
|
-
size?: number;
|
|
178
|
-
/** Its font's lowercase x as drawn, in the frame's pixels, the smallest of its text nodes' with lowercase Latin letters. */
|
|
179
|
-
xHeight?: number;
|
|
180
|
-
}
|
|
181
|
-
/** How long one text block can be read. */
|
|
182
|
-
export interface TextTime {
|
|
183
|
-
part: string;
|
|
184
|
-
/** The text the block shows longest, where it is first whole (else first on screen). */
|
|
185
|
-
text: MeasuredText;
|
|
186
|
-
words: number;
|
|
187
|
-
chars: number;
|
|
188
|
-
/** Seconds that text shows whole. */
|
|
189
|
-
seconds: number;
|
|
190
|
-
/** When, in film seconds: [from, until]. */
|
|
191
|
-
spans: [from: number, until: number][];
|
|
192
|
-
/** Seconds that text is on screen at all. */
|
|
193
|
-
onScreen: number;
|
|
194
|
-
/** Film seconds it is first whole, else first on screen. */
|
|
195
|
-
first: number;
|
|
196
|
-
/**
|
|
197
|
-
* Its font size: the smallest it is drawn at while whole (else while on
|
|
198
|
-
* screen), in the frame's pixels and in points on the phone of
|
|
199
|
-
* `ReadOptions.phone`. Missing when it was not measured. `lowercase` is
|
|
200
|
-
* the height of its font's lowercase x the same way, for text with
|
|
201
|
-
* lowercase Latin letters: two faces at one size can draw their letters
|
|
202
|
-
* at very different heights (a handwriting face's are much smaller).
|
|
203
|
-
*/
|
|
204
|
-
size?: TextSize;
|
|
205
|
-
}
|
|
206
|
-
/** A text's size in the frame's pixels and in points on a phone, with its lowercase letters' height. */
|
|
207
|
-
export interface TextSize {
|
|
208
|
-
px: number;
|
|
209
|
-
phone: number;
|
|
210
|
-
lowercase?: {
|
|
211
|
-
px: number;
|
|
212
|
-
phone: number;
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
/** A text of a deck's shape as drawn. */
|
|
216
|
-
export interface DeckTextLayout {
|
|
217
|
-
text: string;
|
|
218
|
-
words: number;
|
|
219
|
-
/** Its lines as drawn, a box of each one's glyphs, in the slide's pixels. */
|
|
220
|
-
lines: Box[];
|
|
221
|
-
/** All of its glyphs; null when none shows. */
|
|
222
|
-
glyphs: Box | null;
|
|
223
|
-
/** The sizes and weights it is drawn at, each once: size and lowercase x's height in points. */
|
|
224
|
-
type: {
|
|
225
|
-
size: number;
|
|
226
|
-
weight: number;
|
|
227
|
-
xHeight?: number;
|
|
228
|
-
}[];
|
|
229
|
-
/** The share autofit shrank it to, when it did. */
|
|
230
|
-
scale?: number;
|
|
231
|
-
/** Its first paragraph's alignment: the line it is aligned by. */
|
|
232
|
-
align?: "l" | "ctr" | "r" | "just";
|
|
233
|
-
}
|
|
234
|
-
/** A deck's shape as drawn on its slide. */
|
|
235
|
-
export interface DeckShapeLayout {
|
|
236
|
-
name: string;
|
|
237
|
-
/** placeholder, textbox, picture, movie, autoshape, line, component. */
|
|
238
|
-
kind: string;
|
|
239
|
-
/** Where it comes from: its master's or layout's own, or the slide's (placeholders are the slide's). */
|
|
240
|
-
level: "master" | "layout" | "slide";
|
|
241
|
-
placeholder?: string;
|
|
242
|
-
/** Its frame as set, in the slide's pixels. */
|
|
243
|
-
frame: Box;
|
|
244
|
-
/** Its box as drawn (a shape that fits its text has grown to it). */
|
|
245
|
-
box: Box;
|
|
246
|
-
/** It hides what is under it: filled, a picture, a movie. */
|
|
247
|
-
opaque: boolean;
|
|
248
|
-
/** Not drawn at this moment: its entrance is to come, or its exit has been. */
|
|
249
|
-
hidden?: boolean;
|
|
250
|
-
text?: DeckTextLayout;
|
|
251
|
-
/** A table's rows, each as tall as it is set and as it is drawn, in the slide's pixels. */
|
|
252
|
-
rows?: {
|
|
253
|
-
set: number;
|
|
254
|
-
drawn: number;
|
|
255
|
-
}[];
|
|
256
|
-
/** A chart's numbers: how many, how far they run, and the project file they came from. */
|
|
257
|
-
chart?: {
|
|
258
|
-
type: string;
|
|
259
|
-
categories: number;
|
|
260
|
-
series: number;
|
|
261
|
-
low?: number;
|
|
262
|
-
high?: number;
|
|
263
|
-
source?: string;
|
|
264
|
-
};
|
|
265
|
-
picture?: {
|
|
266
|
-
/** The file's own pixels. */
|
|
267
|
-
source: [width: number, height: number];
|
|
268
|
-
/** The part of them shown (its crop). */
|
|
269
|
-
shown: [width: number, height: number];
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
/** A deck's slide as drawn at a still: one of its steps'. */
|
|
273
|
-
export interface DeckSlideLayout {
|
|
274
|
-
slide: string;
|
|
275
|
-
/** How many steps the slide has, so that all of them measured can be told. */
|
|
276
|
-
steps?: number;
|
|
277
|
-
/** Its still, in the deck's seconds. */
|
|
278
|
-
t: number;
|
|
279
|
-
layout: string;
|
|
280
|
-
hidden: boolean;
|
|
281
|
-
notes?: string;
|
|
282
|
-
/** Back to front, as drawn; an empty placeholder is not drawn. */
|
|
283
|
-
shapes: DeckShapeLayout[];
|
|
284
|
-
}
|
|
285
|
-
/** A deck as drawn, measured for its facts. */
|
|
286
|
-
export interface DeckLayout {
|
|
287
|
-
/** The slide's pixels per point. */
|
|
288
|
-
pxPerPt: number;
|
|
289
|
-
/**
|
|
290
|
-
* The fonts its PowerPoint file names: its theme's, and those its text
|
|
291
|
-
* names itself; `drawn`, whether the stage has the font (a face the page
|
|
292
|
-
* declares, or one on this computer) or draws its text in another.
|
|
293
|
-
*/
|
|
294
|
-
fonts?: {
|
|
295
|
-
name: string;
|
|
296
|
-
where: "theme" | "text";
|
|
297
|
-
drawn?: boolean;
|
|
298
|
-
}[];
|
|
299
|
-
slides: DeckSlideLayout[];
|
|
300
|
-
}
|
|
301
|
-
export interface LayoutReport {
|
|
302
|
-
width: number;
|
|
303
|
-
height: number;
|
|
304
|
-
/** A deck's slides as drawn (a deck's measure() only). */
|
|
305
|
-
deck?: DeckLayout;
|
|
306
|
-
/** The format's covered edges, in pixels. */
|
|
307
|
-
safe: SafeZone;
|
|
308
|
-
moments: LayoutMoment[];
|
|
309
|
-
footage: FootageScale[];
|
|
310
|
-
/** How long each text block can be read (a video measured at its default moments). */
|
|
311
|
-
reading?: {
|
|
312
|
-
options: ReadOptions;
|
|
313
|
-
texts: TextTime[];
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
/** The words and characters of a text: word-like segments as the language breaks them, and characters that are not spaces. */
|
|
317
|
-
export declare function countWords(text: string): {
|
|
318
|
-
words: number;
|
|
319
|
-
chars: number;
|
|
320
|
-
};
|
|
1
|
+
import type { FootageScale, MeasuredText, ReadOptions, TextSample, TextTime, Track, SafeZone, PixelRect } from "@allyhub/piece";
|
|
2
|
+
import type { Box } from "@allyhub/diagnostics";
|
|
3
|
+
import type { TimelineFootage } from "./timeline.js";
|
|
321
4
|
/**
|
|
322
5
|
* How long one text block can be read, from what it showed at each moment
|
|
323
6
|
* its part was looked at (in order, `every` seconds apart; a moment it was
|
|
@@ -372,87 +55,7 @@ export interface WordsAtOnce {
|
|
|
372
55
|
* ever whole has none.
|
|
373
56
|
*/
|
|
374
57
|
export declare function wordsAtOnce(texts: readonly TextTime[]): WordsAtOnce[];
|
|
375
|
-
|
|
376
|
-
export declare function overlapArea(a: Box | PixelRect, b: Box | PixelRect): number;
|
|
377
|
-
/** How two boxes overlap: the area, and its share of the smaller box. */
|
|
378
|
-
export declare function boxOverlap(a: Box | PixelRect, b: Box | PixelRect): {
|
|
379
|
-
area: number;
|
|
380
|
-
share: number;
|
|
381
|
-
} | undefined;
|
|
382
|
-
/**
|
|
383
|
-
* How far a box reaches into the covered edges of a frame W × H: pixels
|
|
384
|
-
* in from each covered edge's line, for the edges it crosses.
|
|
385
|
-
*/
|
|
386
|
-
export declare function safeEdges(b: Box | PixelRect, safe: SafeZone, W: number, H: number): SafeOverlap["edges"];
|
|
387
|
-
/**
|
|
388
|
-
* How far a box reaches past the edges of another: pixels out per edge it
|
|
389
|
-
* crosses, whole pixels (under one is none).
|
|
390
|
-
*/
|
|
391
|
-
export declare function outsideEdges(b: Box | PixelRect, inside: Box | PixelRect): TextOutside["edges"];
|
|
392
|
-
/**
|
|
393
|
-
* How much of a text's glyphs lies outside a frame W × H: `glyphs` are the
|
|
394
|
-
* boxes of what shows of them (a box per line), in the frame's pixels. The
|
|
395
|
-
* pixels outside, their share of all the glyphs' pixels, and per edge of
|
|
396
|
-
* the frame they cross, how far past it they reach (whole pixels: under
|
|
397
|
-
* one is none). Undefined when they cross no edge, or have no pixels.
|
|
398
|
-
*/
|
|
399
|
-
export declare function offFrame(glyphs: readonly (Box | PixelRect)[], W: number, H: number): Omit<TextOffFrame, "text"> | undefined;
|
|
400
|
-
/** A text block the frame's edges cut at every measured moment of its part that shows it. */
|
|
401
|
-
export interface CutThroughout {
|
|
402
|
-
part: string;
|
|
403
|
-
/** The block at the moment the frame cuts most of it. */
|
|
404
|
-
text: MeasuredText;
|
|
405
|
-
/** The measured moments that show it, film seconds: the frame cuts it at each. */
|
|
406
|
-
moments: number[];
|
|
407
|
-
/** The moment the frame cuts most of it. */
|
|
408
|
-
t: number;
|
|
409
|
-
/** At that moment: its glyphs outside the frame, as `TextOffFrame`. */
|
|
410
|
-
worst: Omit<TextOffFrame, "text">;
|
|
411
|
-
}
|
|
412
|
-
/**
|
|
413
|
-
* The text blocks a report's measured moments never show whole inside the
|
|
414
|
-
* frame: in a part, a block (a layer's text, the same at each moment) that
|
|
415
|
-
* the frame's edges cut at every moment it is on screen. A block that
|
|
416
|
-
* slides in from past an edge and comes to rest inside is whole at some
|
|
417
|
-
* moment, and is not one; each moment of it stays a text-off-frame fact.
|
|
418
|
-
* A block wholly past the edges at a moment is not on screen then, so not
|
|
419
|
-
* cut. A page viewport's text is not measured against the frame.
|
|
420
|
-
*/
|
|
421
|
-
export declare function cutThroughout(report: LayoutReport): CutThroughout[];
|
|
422
|
-
/**
|
|
423
|
-
* The facts of one moment: overlaps between text blocks (of different
|
|
424
|
-
* layers, and of the same layer), blocks reaching outside a box they are
|
|
425
|
-
* drawn inside, text over the face and in the covered edges.
|
|
426
|
-
*/
|
|
427
|
-
export declare function measureMoment(o: {
|
|
428
|
-
t: number;
|
|
429
|
-
part: string;
|
|
430
|
-
texts: MeasuredText[];
|
|
431
|
-
face?: Box;
|
|
432
|
-
safe: SafeZone;
|
|
433
|
-
width: number;
|
|
434
|
-
height: number;
|
|
435
|
-
/** Which layer each text belongs to (an index): blocks of one layer and of two are told apart. */
|
|
436
|
-
owner: number[];
|
|
437
|
-
/**
|
|
438
|
-
* Per text, the boxes it is drawn inside, nearest first (absent: none
|
|
439
|
-
* measured). A block is compared with each in turn, and the nearest it
|
|
440
|
-
* reaches out of is reported.
|
|
441
|
-
*/
|
|
442
|
-
containers?: (readonly TextContainer[] | undefined)[];
|
|
443
|
-
/**
|
|
444
|
-
* Per text, the box of what shows of its glyphs (MeasuredText.ink; absent:
|
|
445
|
-
* its box). Blocks of one layer are compared by it, and so is a block
|
|
446
|
-
* with the boxes it is drawn inside.
|
|
447
|
-
*/
|
|
448
|
-
seen?: (Box | undefined)[];
|
|
449
|
-
/**
|
|
450
|
-
* Per text, the boxes of what shows of its glyphs, one per line, the
|
|
451
|
-
* frame's own edges not clipping them (absent: its `seen` box, else its
|
|
452
|
-
* box). The frame's edges are measured against them.
|
|
453
|
-
*/
|
|
454
|
-
glyphs?: (readonly Box[] | undefined)[];
|
|
455
|
-
}): LayoutMoment;
|
|
58
|
+
export { cutThroughout, type CutThroughout, } from "@allyhub/image-measure/layout";
|
|
456
59
|
/**
|
|
457
60
|
* How much a footage layer is enlarged over its window, at its largest and
|
|
458
61
|
* at its smallest: drawn pixels per source pixel, from the part of the
|
|
@@ -503,28 +106,6 @@ export declare function freeBands(content: {
|
|
|
503
106
|
* outwards to whole pixels; undefined when it does not reach them.
|
|
504
107
|
*/
|
|
505
108
|
export declare function boxRows(b: Box | PixelRect, x: readonly [number, number]): RowSpan | undefined;
|
|
506
|
-
/** One thing on screen at one frame: a text block, a painted box, a picture. */
|
|
507
|
-
export interface TrackSample {
|
|
508
|
-
/** Film seconds. */
|
|
509
|
-
t: number;
|
|
510
|
-
/** Its box in the frame's pixels; absent while it does not show. */
|
|
511
|
-
box?: Box;
|
|
512
|
-
/** 0 while it does not show. */
|
|
513
|
-
opacity: number;
|
|
514
|
-
}
|
|
515
|
-
/** A thing followed frame by frame through a part. */
|
|
516
|
-
export interface Track {
|
|
517
|
-
part: string;
|
|
518
|
-
layer: string;
|
|
519
|
-
/** What it is: `text "…"`, `box`, or its tag for a picture (`img`, `svg`, `canvas`, `video`). */
|
|
520
|
-
what: string;
|
|
521
|
-
/** Where it is in the layer, as a selector. */
|
|
522
|
-
selector: string;
|
|
523
|
-
/** Its own `data-ak` name, when it has one (`named(el, name)`). */
|
|
524
|
-
name?: string;
|
|
525
|
-
/** One per frame looked at, in order. */
|
|
526
|
-
samples: TrackSample[];
|
|
527
|
-
}
|
|
528
109
|
/** A thing's largest change between two frames in a row, against the changes beside it. */
|
|
529
110
|
export interface Step {
|
|
530
111
|
part: string;
|
|
@@ -560,4 +141,72 @@ export interface Step {
|
|
|
560
141
|
* apart (pixels and opacity are not one scale), moves first.
|
|
561
142
|
*/
|
|
562
143
|
export declare function largestSteps(tracks: readonly Track[]): Step[];
|
|
144
|
+
/** How a thing's moving stretches are found and measured (movingStretches). */
|
|
145
|
+
export declare const MOVING_DEFAULTS: {
|
|
146
|
+
/** Seconds a box holds unchanged that end a stretch: boxes are whole pixels, so a slow creep changes only every few frames. */
|
|
147
|
+
hold: number;
|
|
148
|
+
/** Px a second (at a 1080 frame) under which a stretch counts as slow, measured over `window` seconds. */
|
|
149
|
+
slow: number;
|
|
150
|
+
window: number;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Things that move together over one stretch: their box moved or changed
|
|
154
|
+
* size from its first frame to its last, with no hold of `hold` seconds in
|
|
155
|
+
* between. Things are one group when their stretches start and end on the
|
|
156
|
+
* same frames and they scale alike (moved alike, when none scales): a
|
|
157
|
+
* camera or a parent moving them all.
|
|
158
|
+
*/
|
|
159
|
+
export interface MovingStretch {
|
|
160
|
+
part: string;
|
|
161
|
+
/** Film seconds: the frame before its first change, and its last change. */
|
|
162
|
+
start: number;
|
|
163
|
+
end: number;
|
|
164
|
+
/** How many things, and the first few. */
|
|
165
|
+
things: number;
|
|
166
|
+
names: {
|
|
167
|
+
layer: string;
|
|
168
|
+
what: string;
|
|
169
|
+
name?: string;
|
|
170
|
+
}[];
|
|
171
|
+
/** The first thing's centre moved this far, start to end (px), and its width and height over theirs at the start. */
|
|
172
|
+
px: number;
|
|
173
|
+
scale: [w: number, h: number];
|
|
174
|
+
/** Its mean speed, px a second, and the seconds of it under `slow` px a second (each `window` seconds measured apart). */
|
|
175
|
+
speed: number;
|
|
176
|
+
slow: number;
|
|
177
|
+
/** It moved within a transition's window (into its part, or out of it). */
|
|
178
|
+
transition?: {
|
|
179
|
+
type: string;
|
|
180
|
+
start: number;
|
|
181
|
+
end: number;
|
|
182
|
+
};
|
|
183
|
+
/** It was still moving when its part ended: no hold between its last change and the part's last frame. */
|
|
184
|
+
toEnd?: true;
|
|
185
|
+
}
|
|
186
|
+
export interface MovingOptions {
|
|
187
|
+
hold?: number;
|
|
188
|
+
slow?: number;
|
|
189
|
+
window?: number;
|
|
190
|
+
/** The frame's height, for `slow` at a 1080 frame; default 1080. */
|
|
191
|
+
height?: number;
|
|
192
|
+
fps: number;
|
|
193
|
+
/** Each part's end and the transitions, film seconds, to mark stretches by. */
|
|
194
|
+
parts?: readonly {
|
|
195
|
+
key: string;
|
|
196
|
+
end: number;
|
|
197
|
+
}[];
|
|
198
|
+
transitions?: readonly {
|
|
199
|
+
part: string;
|
|
200
|
+
from: string;
|
|
201
|
+
type: string;
|
|
202
|
+
start: number;
|
|
203
|
+
end: number;
|
|
204
|
+
}[];
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Every stretch over which each thing's box moves or changes size, things
|
|
208
|
+
* moved together as one, in film order. A measurement: how far, how fast,
|
|
209
|
+
* how long slowly, whether in a transition or to its part's end.
|
|
210
|
+
*/
|
|
211
|
+
export declare function movingStretches(tracks: readonly Track[], o: MovingOptions): MovingStretch[];
|
|
563
212
|
//# sourceMappingURL=measure.d.ts.map
|