@allyhub/sdk 0.1.0-alpha.8 → 0.2.0-next.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/NOTICE +85 -0
- package/client.d.ts +45 -1
- package/dist/anim.js +2 -75
- package/dist/define.d.ts +10 -4
- package/dist/define.js +2 -95
- package/dist/dom.d.ts +1 -1
- package/dist/dom.js +2 -457
- package/dist/fit.js +2 -60
- package/dist/free.d.ts +18 -0
- package/dist/free.js +2 -0
- package/dist/index.d.ts +28 -13
- package/dist/index.js +2 -11
- package/dist/input.d.ts +306 -0
- package/dist/input.js +2 -0
- package/dist/media.d.ts +3 -6
- package/dist/media.js +2 -27
- package/dist/messages.d.ts +3 -2
- package/dist/messages.js +2 -2
- package/dist/module.d.ts +24 -0
- package/dist/module.js +2 -0
- package/dist/noise.js +2 -233
- package/dist/parts.d.ts +97 -21
- package/dist/parts.js +2 -414
- package/dist/paths.d.ts +1 -1
- package/dist/paths.js +2 -720
- package/dist/phone.d.ts +26 -0
- package/dist/phone.js +2 -0
- package/dist/piece.d.ts +106 -35
- package/dist/piece.js +2 -38
- package/dist/props.d.ts +1 -1
- package/dist/props.js +2 -35
- package/dist/scenery.d.ts +2 -0
- package/dist/scenery.js +2 -0
- package/dist/text.js +2 -38
- package/dist/written.d.ts +12 -0
- package/dist/written.js +2 -0
- package/docs/README.md +18 -0
- package/docs/batches.md +148 -0
- package/docs/contract.md +51 -0
- package/docs/defaults.md +703 -0
- package/docs/docs.md +148 -0
- package/docs/footage.md +249 -0
- package/docs/layers.md +317 -0
- package/docs/modeling.md +143 -0
- package/docs/project.md +265 -0
- package/docs/scenery.md +308 -0
- package/docs/sheets.md +119 -0
- package/docs/slides.md +111 -0
- package/docs/sound.md +170 -0
- package/docs/speech.md +289 -0
- package/docs/video.md +265 -0
- package/node_modules/@allyhub-next/audio/dist/at-cut.d.ts +52 -0
- package/node_modules/@allyhub-next/audio/dist/at-cut.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/decode.d.ts +33 -0
- package/node_modules/@allyhub-next/audio/dist/decode.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/envelope.d.ts +37 -0
- package/node_modules/@allyhub-next/audio/dist/envelope.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/index.d.ts +17 -0
- package/node_modules/@allyhub-next/audio/dist/index.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/levels.d.ts +97 -0
- package/node_modules/@allyhub-next/audio/dist/levels.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/master.d.ts +29 -0
- package/node_modules/@allyhub-next/audio/dist/master.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/music.d.ts +11 -0
- package/node_modules/@allyhub-next/audio/dist/music.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/node/decode.d.ts +39 -0
- package/node_modules/@allyhub-next/audio/dist/node/decode.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/node/ebur128.d.ts +25 -0
- package/node_modules/@allyhub-next/audio/dist/node/ebur128.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/node/ffmpeg.d.ts +31 -0
- package/node_modules/@allyhub-next/audio/dist/node/ffmpeg.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/node/index.d.ts +8 -0
- package/node_modules/@allyhub-next/audio/dist/node/index.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/node/loudness.d.ts +18 -0
- package/node_modules/@allyhub-next/audio/dist/node/loudness.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/node/master.d.ts +42 -0
- package/node_modules/@allyhub-next/audio/dist/node/master.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/node/measure.d.ts +60 -0
- package/node_modules/@allyhub-next/audio/dist/node/measure.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/node/mix.d.ts +31 -0
- package/node_modules/@allyhub-next/audio/dist/node/mix.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/plan.d.ts +143 -0
- package/node_modules/@allyhub-next/audio/dist/plan.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recorded.d.ts +26 -0
- package/node_modules/@allyhub-next/audio/dist/recorded.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/bandwidth.d.ts +47 -0
- package/node_modules/@allyhub-next/audio/dist/recording/bandwidth.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/chain.d.ts +89 -0
- package/node_modules/@allyhub-next/audio/dist/recording/chain.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/dynamics.d.ts +64 -0
- package/node_modules/@allyhub-next/audio/dist/recording/dynamics.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/fft.d.ts +26 -0
- package/node_modules/@allyhub-next/audio/dist/recording/fft.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/filters.d.ts +42 -0
- package/node_modules/@allyhub-next/audio/dist/recording/filters.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/fit.d.ts +56 -0
- package/node_modules/@allyhub-next/audio/dist/recording/fit.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/index.d.ts +10 -0
- package/node_modules/@allyhub-next/audio/dist/recording/index.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/loudness.d.ts +12 -0
- package/node_modules/@allyhub-next/audio/dist/recording/loudness.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/measure.d.ts +67 -0
- package/node_modules/@allyhub-next/audio/dist/recording/measure.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/mic.d.ts +32 -0
- package/node_modules/@allyhub-next/audio/dist/recording/mic.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/noise.d.ts +27 -0
- package/node_modules/@allyhub-next/audio/dist/recording/noise.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/presets.d.ts +64 -0
- package/node_modules/@allyhub-next/audio/dist/recording/presets.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/room.d.ts +78 -0
- package/node_modules/@allyhub-next/audio/dist/recording/room.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/setup.d.ts +111 -0
- package/node_modules/@allyhub-next/audio/dist/recording/setup.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/vec.d.ts +3 -0
- package/node_modules/@allyhub-next/audio/dist/recording/vec.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/render.d.ts +26 -0
- package/node_modules/@allyhub-next/audio/dist/render.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/sfx.d.ts +10 -0
- package/node_modules/@allyhub-next/audio/dist/sfx.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/shape.d.ts +118 -0
- package/node_modules/@allyhub-next/audio/dist/shape.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/voice.d.ts +45 -0
- package/node_modules/@allyhub-next/audio/dist/voice.js +2 -0
- package/node_modules/@allyhub-next/audio/package.json +17 -0
- package/node_modules/@allyhub-next/formats/dist/data/comments.d.ts +94 -0
- package/node_modules/@allyhub-next/formats/dist/data/comments.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/config.d.ts +10 -0
- package/node_modules/@allyhub-next/formats/dist/data/config.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/edits.d.ts +28 -0
- package/node_modules/@allyhub-next/formats/dist/data/edits.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/elements.d.ts +6 -0
- package/node_modules/@allyhub-next/formats/dist/data/elements.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/faces.d.ts +38 -0
- package/node_modules/@allyhub-next/formats/dist/data/faces.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/file.d.ts +11 -0
- package/node_modules/@allyhub-next/formats/dist/data/file.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/gen.d.ts +31 -0
- package/node_modules/@allyhub-next/formats/dist/data/gen.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/messages.d.ts +34 -0
- package/node_modules/@allyhub-next/formats/dist/data/messages.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/reference.d.ts +676 -0
- package/node_modules/@allyhub-next/formats/dist/data/reference.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/script.d.ts +37 -0
- package/node_modules/@allyhub-next/formats/dist/data/script.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +214 -0
- package/node_modules/@allyhub-next/formats/dist/data/sheet.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/words.d.ts +25 -0
- package/node_modules/@allyhub-next/formats/dist/data/words.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/index.d.ts +16 -0
- package/node_modules/@allyhub-next/formats/dist/index.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/items.d.ts +94 -0
- package/node_modules/@allyhub-next/formats/dist/items.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/layout.d.ts +50 -0
- package/node_modules/@allyhub-next/formats/dist/layout.js +5 -0
- package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +301 -0
- package/node_modules/@allyhub-next/formats/dist/schemas.js +2 -0
- package/node_modules/@allyhub-next/formats/package.json +14 -0
- package/node_modules/@allyhub-next/formats/schemas/comments.schema.json +152 -0
- package/node_modules/@allyhub-next/formats/schemas/config.schema.json +43 -0
- package/node_modules/@allyhub-next/formats/schemas/edits.schema.json +112 -0
- package/node_modules/@allyhub-next/formats/schemas/elements.schema.json +33 -0
- package/node_modules/@allyhub-next/formats/schemas/gen.schema.json +97 -0
- package/node_modules/@allyhub-next/formats/schemas/interpretation.schema.json +125 -0
- package/node_modules/@allyhub-next/formats/schemas/items.json +75 -0
- package/node_modules/@allyhub-next/formats/schemas/messages.schema.json +11 -0
- package/node_modules/@allyhub-next/formats/schemas/script.schema.json +162 -0
- package/node_modules/@allyhub-next/formats/schemas/sheet.schema.json +395 -0
- package/node_modules/@allyhub-next/formats/schemas/words.schema.json +63 -0
- package/node_modules/@allyhub-next/protocol/dist/app.d.ts +98 -0
- package/node_modules/@allyhub-next/protocol/dist/app.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/auth.d.ts +116 -0
- package/node_modules/@allyhub-next/protocol/dist/auth.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/cli.d.ts +59 -0
- package/node_modules/@allyhub-next/protocol/dist/cli.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +272 -0
- package/node_modules/@allyhub-next/protocol/dist/cloud.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/editor.d.ts +405 -0
- package/node_modules/@allyhub-next/protocol/dist/editor.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/files.d.ts +101 -0
- package/node_modules/@allyhub-next/protocol/dist/files.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/index.d.ts +12 -0
- package/node_modules/@allyhub-next/protocol/dist/index.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/jsonrpc.d.ts +83 -0
- package/node_modules/@allyhub-next/protocol/dist/jsonrpc.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/registry.d.ts +53 -0
- package/node_modules/@allyhub-next/protocol/dist/registry.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/runtimes.d.ts +93 -0
- package/node_modules/@allyhub-next/protocol/dist/runtimes.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/teams.d.ts +67 -0
- package/node_modules/@allyhub-next/protocol/dist/teams.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/tools.d.ts +345 -0
- package/node_modules/@allyhub-next/protocol/dist/tools.js +2 -0
- package/node_modules/@allyhub-next/protocol/package.json +13 -0
- package/node_modules/@allyhub-next/runtimes/dist/bundled.d.ts +10 -0
- package/node_modules/@allyhub-next/runtimes/dist/bundled.js +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/download.d.ts +15 -0
- package/node_modules/@allyhub-next/runtimes/dist/download.js +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/errors.d.ts +16 -0
- package/node_modules/@allyhub-next/runtimes/dist/errors.js +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/home.d.ts +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/home.js +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/index.d.ts +9 -0
- package/node_modules/@allyhub-next/runtimes/dist/index.js +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/lock.d.ts +6 -0
- package/node_modules/@allyhub-next/runtimes/dist/lock.js +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/manifest.d.ts +3 -0
- package/node_modules/@allyhub-next/runtimes/dist/manifest.js +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/runtimes.d.ts +63 -0
- package/node_modules/@allyhub-next/runtimes/dist/runtimes.js +3 -0
- package/node_modules/@allyhub-next/runtimes/dist/unpack.d.ts +7 -0
- package/node_modules/@allyhub-next/runtimes/dist/unpack.js +2 -0
- package/node_modules/@allyhub-next/runtimes/manifest.json +395 -0
- package/node_modules/@allyhub-next/runtimes/package.json +14 -0
- package/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +153 -0
- package/node_modules/@allyhub-next/scenery/NOTICE +42 -0
- package/node_modules/@allyhub-next/scenery/dist/aim.d.ts +55 -0
- package/node_modules/@allyhub-next/scenery/dist/aim.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/bake.d.ts +203 -0
- package/node_modules/@allyhub-next/scenery/dist/bake.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/camera.d.ts +150 -0
- package/node_modules/@allyhub-next/scenery/dist/camera.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/curve.d.ts +40 -0
- package/node_modules/@allyhub-next/scenery/dist/curve.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/define.d.ts +164 -0
- package/node_modules/@allyhub-next/scenery/dist/define.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/fit.d.ts +64 -0
- package/node_modules/@allyhub-next/scenery/dist/fit.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/glass.d.ts +34 -0
- package/node_modules/@allyhub-next/scenery/dist/glass.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/handheld.d.ts +184 -0
- package/node_modules/@allyhub-next/scenery/dist/handheld.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/hull.d.ts +23 -0
- package/node_modules/@allyhub-next/scenery/dist/hull.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/index.d.ts +22 -0
- package/node_modules/@allyhub-next/scenery/dist/index.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/lens.d.ts +48 -0
- package/node_modules/@allyhub-next/scenery/dist/lens.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/moire.d.ts +136 -0
- package/node_modules/@allyhub-next/scenery/dist/moire.js +93 -0
- package/node_modules/@allyhub-next/scenery/dist/motion.d.ts +48 -0
- package/node_modules/@allyhub-next/scenery/dist/motion.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/move.d.ts +260 -0
- package/node_modules/@allyhub-next/scenery/dist/move.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/noise.d.ts +41 -0
- package/node_modules/@allyhub-next/scenery/dist/noise.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/phone.d.ts +34 -0
- package/node_modules/@allyhub-next/scenery/dist/phone.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/report.d.ts +677 -0
- package/node_modules/@allyhub-next/scenery/dist/report.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/screen-focus.d.ts +55 -0
- package/node_modules/@allyhub-next/scenery/dist/screen-focus.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/screen.d.ts +71 -0
- package/node_modules/@allyhub-next/scenery/dist/screen.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/solve.d.ts +82 -0
- package/node_modules/@allyhub-next/scenery/dist/solve.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/timing.d.ts +26 -0
- package/node_modules/@allyhub-next/scenery/dist/timing.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/vec.d.ts +19 -0
- package/node_modules/@allyhub-next/scenery/dist/vec.js +2 -0
- package/node_modules/@allyhub-next/scenery/package.json +13 -0
- package/node_modules/@allyhub-next/video-core/dist/anchors.d.ts +164 -0
- package/node_modules/@allyhub-next/video-core/dist/anchors.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/audio-types.d.ts +148 -0
- package/node_modules/@allyhub-next/video-core/dist/audio-types.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/backdrop.d.ts +87 -0
- package/node_modules/@allyhub-next/video-core/dist/backdrop.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/captions.d.ts +122 -0
- package/node_modules/@allyhub-next/video-core/dist/captions.js +11 -0
- package/node_modules/@allyhub-next/video-core/dist/console.d.ts +91 -0
- package/node_modules/@allyhub-next/video-core/dist/console.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/contrast.d.ts +98 -0
- package/node_modules/@allyhub-next/video-core/dist/contrast.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/cut-report.d.ts +77 -0
- package/node_modules/@allyhub-next/video-core/dist/cut-report.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/edit.d.ts +77 -0
- package/node_modules/@allyhub-next/video-core/dist/edit.js +13 -0
- package/node_modules/@allyhub-next/video-core/dist/edits.d.ts +163 -0
- package/node_modules/@allyhub-next/video-core/dist/edits.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/export.d.ts +96 -0
- package/node_modules/@allyhub-next/video-core/dist/export.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/fact.d.ts +965 -0
- package/node_modules/@allyhub-next/video-core/dist/fact.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/footage-motion.d.ts +168 -0
- package/node_modules/@allyhub-next/video-core/dist/footage-motion.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/formats.d.ts +240 -0
- package/node_modules/@allyhub-next/video-core/dist/formats.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/gen.d.ts +37 -0
- package/node_modules/@allyhub-next/video-core/dist/gen.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/index.d.ts +40 -0
- package/node_modules/@allyhub-next/video-core/dist/index.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/look.d.ts +66 -0
- package/node_modules/@allyhub-next/video-core/dist/look.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/marks.d.ts +34 -0
- package/node_modules/@allyhub-next/video-core/dist/marks.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/matrix.d.ts +289 -0
- package/node_modules/@allyhub-next/video-core/dist/matrix.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/measure.d.ts +465 -0
- package/node_modules/@allyhub-next/video-core/dist/measure.js +5 -0
- package/node_modules/@allyhub-next/video-core/dist/media.d.ts +226 -0
- package/node_modules/@allyhub-next/video-core/dist/media.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/messages.d.ts +88 -0
- package/node_modules/@allyhub-next/video-core/dist/messages.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/motion.d.ts +56 -0
- package/node_modules/@allyhub-next/video-core/dist/motion.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/music.d.ts +110 -0
- package/node_modules/@allyhub-next/video-core/dist/music.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/piece.d.ts +1146 -0
- package/node_modules/@allyhub-next/video-core/dist/piece.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/placement.d.ts +37 -0
- package/node_modules/@allyhub-next/video-core/dist/placement.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/problem.d.ts +262 -0
- package/node_modules/@allyhub-next/video-core/dist/problem.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/render-types.d.ts +49 -0
- package/node_modules/@allyhub-next/video-core/dist/render-types.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/schema.d.ts +352 -0
- package/node_modules/@allyhub-next/video-core/dist/schema.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/script-edit.d.ts +176 -0
- package/node_modules/@allyhub-next/video-core/dist/script-edit.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/script.d.ts +67 -0
- package/node_modules/@allyhub-next/video-core/dist/script.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/seams.d.ts +214 -0
- package/node_modules/@allyhub-next/video-core/dist/seams.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/slides.d.ts +37 -0
- package/node_modules/@allyhub-next/video-core/dist/slides.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/sound-under.d.ts +72 -0
- package/node_modules/@allyhub-next/video-core/dist/sound-under.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/speech.d.ts +83 -0
- package/node_modules/@allyhub-next/video-core/dist/speech.js +5 -0
- package/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +616 -0
- package/node_modules/@allyhub-next/video-core/dist/timeline.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/timing.d.ts +88 -0
- package/node_modules/@allyhub-next/video-core/dist/timing.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/transcript.d.ts +288 -0
- package/node_modules/@allyhub-next/video-core/dist/transcript.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/transition.d.ts +289 -0
- package/node_modules/@allyhub-next/video-core/dist/transition.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/voice.d.ts +175 -0
- package/node_modules/@allyhub-next/video-core/dist/voice.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/words.d.ts +128 -0
- package/node_modules/@allyhub-next/video-core/dist/words.js +2 -0
- package/node_modules/@allyhub-next/video-core/package.json +14 -0
- package/package.json +52 -41
- package/README.md +0 -17
- package/dist/anim.d.ts.map +0 -1
- package/dist/anim.js.map +0 -1
- package/dist/define.d.ts.map +0 -1
- package/dist/define.js.map +0 -1
- package/dist/dom.d.ts.map +0 -1
- package/dist/dom.js.map +0 -1
- package/dist/fit.d.ts.map +0 -1
- package/dist/fit.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/media.d.ts.map +0 -1
- package/dist/media.js.map +0 -1
- package/dist/messages.d.ts.map +0 -1
- package/dist/messages.js.map +0 -1
- package/dist/noise.d.ts.map +0 -1
- package/dist/noise.js.map +0 -1
- package/dist/parts.d.ts.map +0 -1
- package/dist/parts.js.map +0 -1
- package/dist/paths.d.ts.map +0 -1
- package/dist/paths.js.map +0 -1
- package/dist/piece.d.ts.map +0 -1
- package/dist/piece.js.map +0 -1
- package/dist/props.d.ts.map +0 -1
- package/dist/props.js.map +0 -1
- package/dist/text.d.ts.map +0 -1
- package/dist/text.js.map +0 -1
- /package/{LICENSE → LICENSE.md} +0 -0
package/NOTICE
CHANGED
|
@@ -79,3 +79,88 @@ public-domain simplex noise reference ("Simplex noise demystified", 2005).
|
|
|
79
79
|
|
|
80
80
|
The Apache License, Version 2.0 is reproduced at the end of LICENSE; those
|
|
81
81
|
parts remain under it.
|
|
82
|
+
|
|
83
|
+
How a voice was recorded (packages/engine/src/recording/) builds a room's
|
|
84
|
+
impulse response after pyroomacoustics
|
|
85
|
+
(https://github.com/LCAV/pyroomacoustics), under the MIT License: the image
|
|
86
|
+
source method in a box with each reflection's amplitude per octave band,
|
|
87
|
+
fractional delays written with a Hann-windowed sinc, the octave bands joined
|
|
88
|
+
by Antoni's power-complementary crossovers, the late tail as random impulses
|
|
89
|
+
of growing density decaying by each band's reverberation time, Eyring's
|
|
90
|
+
reverberation time with the air's absorption, and the materials' absorption
|
|
91
|
+
coefficients and the air's absorption table (pyroomacoustics/data/
|
|
92
|
+
materials.json, acoustics.py, simulation/ism.py and rt.py, libroom_src/
|
|
93
|
+
room.cpp). room.ts says so in its header.
|
|
94
|
+
|
|
95
|
+
Copyright (c) 2014-2017 EPFL-LCAV
|
|
96
|
+
|
|
97
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
98
|
+
copy of this software and associated documentation files (the
|
|
99
|
+
"Software"), to deal in the Software without restriction, including
|
|
100
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
101
|
+
distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
102
|
+
persons to whom the Software is furnished to do so, subject to the
|
|
103
|
+
following conditions:
|
|
104
|
+
|
|
105
|
+
The above copyright notice and this permission notice shall be included
|
|
106
|
+
in all copies or substantial portions of the Software.
|
|
107
|
+
|
|
108
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
109
|
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
110
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
111
|
+
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
112
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
113
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
114
|
+
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
115
|
+
|
|
116
|
+
Its loudness (loudness.ts) puts BS.1770's K-weighting filters at any sample
|
|
117
|
+
rate from their analogue prototypes, as pyloudnorm
|
|
118
|
+
(https://github.com/csteinmetz1/pyloudnorm) does, Copyright (c) 2021
|
|
119
|
+
Christian Steinmetz, under the MIT License; its filters follow Robert
|
|
120
|
+
Bristow-Johnson's Audio EQ Cookbook, and its compressor Giannoulis, Massberg
|
|
121
|
+
and Reiss, "Digital Dynamic Range Compressor Design" (JAES, 2012).
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
AllyHub
|
|
126
|
+
Copyright (c) 2026 AllyHub, Inc. All rights reserved.
|
|
127
|
+
|
|
128
|
+
This product is proprietary; see LICENSE.
|
|
129
|
+
|
|
130
|
+
The centripetal Catmull-Rom tangents in src/curve.ts follow three.js's
|
|
131
|
+
CatmullRomCurve3 (src/extras/curves/CatmullRomCurve3.js)
|
|
132
|
+
(https://github.com/mrdoob/three.js),
|
|
133
|
+
Copyright 2010-2026 three.js authors, under the MIT License:
|
|
134
|
+
|
|
135
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
136
|
+
copy of this software and associated documentation files (the
|
|
137
|
+
"Software"), to deal in the Software without restriction, including
|
|
138
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
139
|
+
distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
140
|
+
persons to whom the Software is furnished to do so, subject to the
|
|
141
|
+
following conditions:
|
|
142
|
+
|
|
143
|
+
The above copyright notice and this permission notice shall be included
|
|
144
|
+
in all copies or substantial portions of the Software.
|
|
145
|
+
|
|
146
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
147
|
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
148
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
149
|
+
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
150
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
151
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
152
|
+
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
153
|
+
|
|
154
|
+
The arc-length parametrisation (Gauss-Legendre quadrature per segment,
|
|
155
|
+
inverted by Newton steps with a bisection fallback) and the timing of
|
|
156
|
+
keyframes by a monotone cubic follow the approach of the splines library
|
|
157
|
+
(https://github.com/AudioSceneDescriptionFormat/splines), Copyright (c)
|
|
158
|
+
2018-2026 Matthias Geier, under the MIT License (the same terms as above).
|
|
159
|
+
No code of it is copied.
|
|
160
|
+
|
|
161
|
+
The moiré a sensor makes of a screen (src/moire.ts) follows
|
|
162
|
+
the screen-capture simulation of UniDemoiré
|
|
163
|
+
(https://github.com/4DVLab/UniDemoire, unidemoire/models/shooting), Copyright
|
|
164
|
+
(c) 2024 4DVLab, under the MIT License: a screen's RGB subpixels, the
|
|
165
|
+
projective transform, the sensor's Bayer filter. It is worked out in closed
|
|
166
|
+
form per pixel; no code of it is copied.
|
package/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Types of the imports AllyHub's build understands. Add "@allyhub/sdk/client" to `types` in tsconfig.json.
|
|
2
2
|
|
|
3
|
-
type AllyHubMedia = import("@allyhub/
|
|
3
|
+
type AllyHubMedia = import("@allyhub/sdk").MediaInfo;
|
|
4
4
|
type AllyHubRow = Record<string, string | number>;
|
|
5
5
|
|
|
6
6
|
declare module "*.png" {
|
|
@@ -71,6 +71,50 @@ declare module "*.woff2" {
|
|
|
71
71
|
const media: AllyHubMedia;
|
|
72
72
|
export default media;
|
|
73
73
|
}
|
|
74
|
+
declare module "*.m4v" {
|
|
75
|
+
const media: AllyHubMedia;
|
|
76
|
+
export default media;
|
|
77
|
+
}
|
|
78
|
+
declare module "*.qt" {
|
|
79
|
+
const media: AllyHubMedia;
|
|
80
|
+
export default media;
|
|
81
|
+
}
|
|
82
|
+
declare module "*.woff" {
|
|
83
|
+
const media: AllyHubMedia;
|
|
84
|
+
export default media;
|
|
85
|
+
}
|
|
86
|
+
declare module "*.ttf" {
|
|
87
|
+
const media: AllyHubMedia;
|
|
88
|
+
export default media;
|
|
89
|
+
}
|
|
90
|
+
declare module "*.otf" {
|
|
91
|
+
const media: AllyHubMedia;
|
|
92
|
+
export default media;
|
|
93
|
+
}
|
|
94
|
+
declare module "*.glb" {
|
|
95
|
+
const media: AllyHubMedia;
|
|
96
|
+
export default media;
|
|
97
|
+
}
|
|
98
|
+
declare module "*.gltf" {
|
|
99
|
+
const media: AllyHubMedia;
|
|
100
|
+
export default media;
|
|
101
|
+
}
|
|
102
|
+
declare module "*.bin" {
|
|
103
|
+
const media: AllyHubMedia;
|
|
104
|
+
export default media;
|
|
105
|
+
}
|
|
106
|
+
declare module "*.ktx2" {
|
|
107
|
+
const media: AllyHubMedia;
|
|
108
|
+
export default media;
|
|
109
|
+
}
|
|
110
|
+
declare module "*.hdr" {
|
|
111
|
+
const media: AllyHubMedia;
|
|
112
|
+
export default media;
|
|
113
|
+
}
|
|
114
|
+
declare module "*.exr" {
|
|
115
|
+
const media: AllyHubMedia;
|
|
116
|
+
export default media;
|
|
117
|
+
}
|
|
74
118
|
declare module "*.csv" {
|
|
75
119
|
/** One object per row, keyed by the header; numeric columns are numbers. */
|
|
76
120
|
const rows: AllyHubRow[];
|
package/dist/anim.js
CHANGED
|
@@ -1,75 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export const clamp = (
|
|
3
|
-
export const lerp = (a, b, x) => a + (b - a) * x;
|
|
4
|
-
/** Progress of t through [start, start + dur], clamped to 0–1. */
|
|
5
|
-
export const progress = (t, start, dur) => dur <= 0 ? (t >= start ? 1 : 0) : clamp((t - start) / dur);
|
|
6
|
-
export const ease = {
|
|
7
|
-
linear: ((x) => x),
|
|
8
|
-
in: ((x) => x * x * x),
|
|
9
|
-
out: ((x) => 1 - Math.pow(1 - x, 3)),
|
|
10
|
-
inOut: ((x) => x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2),
|
|
11
|
-
outExpo: ((x) => (x >= 1 ? 1 : 1 - Math.pow(2, -10 * x))),
|
|
12
|
-
outBack: ((x) => {
|
|
13
|
-
const c1 = 1.7;
|
|
14
|
-
const c3 = c1 + 1;
|
|
15
|
-
return 1 + c3 * Math.pow(x - 1, 3) + c1 * Math.pow(x - 1, 2);
|
|
16
|
-
}),
|
|
17
|
-
/** A damped spring that settles at 1. */
|
|
18
|
-
spring(damping = 7, frequency = 3.2) {
|
|
19
|
-
return (x) => x >= 1
|
|
20
|
-
? 1
|
|
21
|
-
: 1 -
|
|
22
|
-
Math.exp(-damping * x) * Math.cos(frequency * Math.PI * 2 * x * 0.5);
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
/** The value at time t of a tween from `from` to `to`. */
|
|
26
|
-
export function tween(t, opts = {}) {
|
|
27
|
-
const { from = 0, to = 1, start = 0, dur = 0.5, ease: e = ease.out } = opts;
|
|
28
|
-
return lerp(from, to, e(progress(t, start, dur)));
|
|
29
|
-
}
|
|
30
|
-
/** The delay of the i-th element of a staggered group. */
|
|
31
|
-
export const stagger = (i, gap) => i * gap;
|
|
32
|
-
function hashSeed(seed) {
|
|
33
|
-
const s = String(seed);
|
|
34
|
-
let h = 2166136261;
|
|
35
|
-
for (let i = 0; i < s.length; i++) {
|
|
36
|
-
h ^= s.charCodeAt(i);
|
|
37
|
-
h = Math.imul(h, 16777619);
|
|
38
|
-
}
|
|
39
|
-
return h >>> 0;
|
|
40
|
-
}
|
|
41
|
-
/** A deterministic random number generator: the same seed, the same numbers. */
|
|
42
|
-
export function rand(seed) {
|
|
43
|
-
let a = hashSeed(seed);
|
|
44
|
-
return () => {
|
|
45
|
-
a = (a + 0x6d2b79f5) | 0;
|
|
46
|
-
let t = Math.imul(a ^ (a >>> 15), 1 | a);
|
|
47
|
-
t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
|
|
48
|
-
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Sets the largest font size in [min, max] at which the element's text fits
|
|
53
|
-
* its own box (no overflow). The element needs a definite width (and height,
|
|
54
|
-
* to limit lines). Returns the size chosen.
|
|
55
|
-
*/
|
|
56
|
-
export function fitText(el, opts) {
|
|
57
|
-
const fits = () => el.scrollWidth <= el.clientWidth + 1 &&
|
|
58
|
-
el.scrollHeight <= el.clientHeight + 1;
|
|
59
|
-
let lo = opts.min;
|
|
60
|
-
let hi = opts.max;
|
|
61
|
-
el.style.fontSize = `${hi}px`;
|
|
62
|
-
if (fits())
|
|
63
|
-
return hi;
|
|
64
|
-
while (hi - lo > 0.5) {
|
|
65
|
-
const mid = (lo + hi) / 2;
|
|
66
|
-
el.style.fontSize = `${mid}px`;
|
|
67
|
-
if (fits())
|
|
68
|
-
lo = mid;
|
|
69
|
-
else
|
|
70
|
-
hi = mid;
|
|
71
|
-
}
|
|
72
|
-
el.style.fontSize = `${lo}px`;
|
|
73
|
-
return lo;
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=anim.js.map
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export const clamp=(t,n=0,e=1)=>Math.min(e,Math.max(n,t)),lerp=(t,n,e)=>t+(n-t)*e,progress=(t,n,e)=>e<=0?t>=n?1:0:clamp((t-n)/e),ease={linear:(t=>t),in:(t=>t*t*t),out:(t=>1-Math.pow(1-t,3)),inOut:(t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2),outExpo:(t=>t>=1?1:1-Math.pow(2,-10*t)),outBack:(t=>1+2.7*Math.pow(t-1,3)+1.7*Math.pow(t-1,2)),spring(t=7,n=3.2){return e=>e>=1?1:1-Math.exp(-t*e)*Math.cos(n*Math.PI*2*e*.5)}};export function tween(t,n={}){const{from:e=0,to:o=1,start:r=0,dur:i=.5,ease:c=ease.out}=n;return lerp(e,o,c(progress(t,r,i)))}export const stagger=(t,n)=>t*n;function s(t){const n=String(t);let e=2166136261;for(let o=0;o<n.length;o++)e^=n.charCodeAt(o),e=Math.imul(e,16777619);return e>>>0}export function rand(t){let n=s(t);return()=>{n=n+1831565813|0;let e=Math.imul(n^n>>>15,1|n);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}export function fitText(t,n){const e=()=>t.scrollWidth<=t.clientWidth+1&&t.scrollHeight<=t.clientHeight+1;let o=n.min,r=n.max;if(t.style.fontSize=`${String(r)}px`,e())return r;for(;r-o>.5;){const i=(o+r)/2;t.style.fontSize=`${String(i)}px`,e()?o=i:r=i}return t.style.fontSize=`${String(o)}px`,o}
|
package/dist/define.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { type GraphicLayer, type LayerTiming, type StageContext, type TimeShape } from "@allyhub/
|
|
1
|
+
import { type GraphicLayer, type LayerTiming, type StageContext, type TimeShape } from "@allyhub-next/video-core";
|
|
2
2
|
import type { PropSchema, Timed } from "./props.js";
|
|
3
|
-
export type { StageContext } from "@allyhub/
|
|
3
|
+
export type { StageContext } from "@allyhub-next/video-core";
|
|
4
4
|
/** What every graphic layer takes besides a component's own props. */
|
|
5
5
|
export interface LayerOptions extends LayerTiming {
|
|
6
6
|
/**
|
|
7
7
|
* "front" (default): at its place in the part's layers, over those
|
|
8
8
|
* listed before it. "behind-person": right over the part's own footage
|
|
9
9
|
* and under its speaker, cut out with the take's person matte.
|
|
10
|
+
* "overlay": over the finished picture, as an app lays captions over a
|
|
11
|
+
* video after it is filmed: over every other layer, and not marked by
|
|
12
|
+
* the camera (`capture`), motion blur, `post` or the LUT.
|
|
10
13
|
*/
|
|
11
|
-
z?: "front" | "behind-person";
|
|
14
|
+
z?: "front" | "behind-person" | "overlay";
|
|
12
15
|
}
|
|
13
16
|
/** Text for people: one string, or by language. */
|
|
14
17
|
export type Label = string | Record<string, string>;
|
|
@@ -52,7 +55,7 @@ export interface ComponentDefinition<P extends object> {
|
|
|
52
55
|
render(el: HTMLElement, t: number, props: P, ctx: StageContext): void;
|
|
53
56
|
}
|
|
54
57
|
/** A component: a function that makes a graphic layer from its props and the layer options. */
|
|
55
|
-
export type Component<P extends object> = ((opts: LayerOptions & Timed<P>) => GraphicLayer<P>) & {
|
|
58
|
+
export type Component<P extends object> = ((...opts: Partial<Timed<P>> extends Timed<P> ? [opts?: LayerOptions & Timed<P>] : [opts: LayerOptions & Timed<P>]) => GraphicLayer<P>) & {
|
|
56
59
|
componentName: string;
|
|
57
60
|
info: ComponentInfo;
|
|
58
61
|
};
|
|
@@ -63,6 +66,9 @@ export type Component<P extends object> = ((opts: LayerOptions & Timed<P>) => Gr
|
|
|
63
66
|
export declare const LAYER_OPTIONS: readonly string[];
|
|
64
67
|
/** Where props hold times, from their schema; undefined when none do. */
|
|
65
68
|
export declare function timeShape(props: Readonly<Record<string, PropSchema | undefined>>): TimeShape | undefined;
|
|
69
|
+
/** The layer options of an options object, and the rest. */
|
|
70
|
+
/** A layer's timing and z, and the rest of its options. */
|
|
71
|
+
export declare function splitLayer<T extends LayerOptions>(opts: T): [LayerOptions, Omit<T, keyof LayerOptions>];
|
|
66
72
|
/** Makes a component: a function that returns a graphic layer. */
|
|
67
73
|
export declare function defineComponent<P extends object>(def: ComponentDefinition<P>): Component<P>;
|
|
68
74
|
export interface CustomOptions extends LayerOptions {
|
package/dist/define.js
CHANGED
|
@@ -1,95 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Layer options share one object with a component's props, so these names
|
|
4
|
-
* are reserved: a component cannot have props called this.
|
|
5
|
-
*/
|
|
6
|
-
export const LAYER_OPTIONS = ["at", "until", "dur", "z"];
|
|
7
|
-
/** Where props hold times, from their schema; undefined when none do. */
|
|
8
|
-
export function timeShape(props) {
|
|
9
|
-
const of = (s) => {
|
|
10
|
-
if (s.type === "time")
|
|
11
|
-
return true;
|
|
12
|
-
if (s.type === "list")
|
|
13
|
-
return of(s.of);
|
|
14
|
-
if (s.type === "object")
|
|
15
|
-
return timeShape(s.fields);
|
|
16
|
-
return undefined;
|
|
17
|
-
};
|
|
18
|
-
const out = {};
|
|
19
|
-
for (const [k, s] of Object.entries(props)) {
|
|
20
|
-
const shape = s ? of(s) : undefined;
|
|
21
|
-
if (shape !== undefined)
|
|
22
|
-
out[k] = shape;
|
|
23
|
-
}
|
|
24
|
-
return Object.keys(out).length > 0 ? out : undefined;
|
|
25
|
-
}
|
|
26
|
-
/** The layer options of an options object, and the rest. */
|
|
27
|
-
function splitLayer(opts) {
|
|
28
|
-
const { at, until, dur, z, ...rest } = opts;
|
|
29
|
-
return [
|
|
30
|
-
{
|
|
31
|
-
...(at === undefined ? {} : { at }),
|
|
32
|
-
...(until === undefined ? {} : { until }),
|
|
33
|
-
...(dur === undefined ? {} : { dur }),
|
|
34
|
-
...(z === undefined ? {} : { z }),
|
|
35
|
-
},
|
|
36
|
-
rest,
|
|
37
|
-
];
|
|
38
|
-
}
|
|
39
|
-
/** Makes a component: a function that returns a graphic layer. */
|
|
40
|
-
export function defineComponent(def) {
|
|
41
|
-
const names = [
|
|
42
|
-
...Object.keys(def.props ?? {}),
|
|
43
|
-
...Object.keys(def.defaults ?? {}),
|
|
44
|
-
...Object.values(def.examples ?? {}).flatMap((e) => Object.keys(e)),
|
|
45
|
-
];
|
|
46
|
-
const clash = [...new Set(names.filter((k) => LAYER_OPTIONS.includes(k)))];
|
|
47
|
-
if (clash.length > 0) {
|
|
48
|
-
throw new Error(`${def.name}: ${clash.join(", ")} is a layer option, not a prop name`);
|
|
49
|
-
}
|
|
50
|
-
const times = timeShape(def.props ?? {});
|
|
51
|
-
const make = (opts) => {
|
|
52
|
-
const [layer, rest] = splitLayer(opts);
|
|
53
|
-
// Word references in time() props are seconds by the time mount runs.
|
|
54
|
-
const props = { ...def.defaults, ...rest };
|
|
55
|
-
return {
|
|
56
|
-
[LAYER_BRAND]: "graphic",
|
|
57
|
-
...layer,
|
|
58
|
-
component: def.name,
|
|
59
|
-
props,
|
|
60
|
-
...(times ? { times } : {}),
|
|
61
|
-
mount: (el, p, ctx) => {
|
|
62
|
-
def.mount(el, p, ctx);
|
|
63
|
-
},
|
|
64
|
-
render: (el, t, p, ctx) => {
|
|
65
|
-
def.render(el, t, p, ctx);
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
const info = {
|
|
70
|
-
name: def.name,
|
|
71
|
-
label: def.label ?? def.name,
|
|
72
|
-
...(def.summary === undefined ? {} : { summary: def.summary }),
|
|
73
|
-
props: Object.fromEntries(Object.entries(def.props ?? {}).filter((e) => e[1] !== undefined)),
|
|
74
|
-
examples: def.examples ?? {},
|
|
75
|
-
hidden: def.hidden ?? false,
|
|
76
|
-
};
|
|
77
|
-
return Object.assign(make, { componentName: def.name, info });
|
|
78
|
-
}
|
|
79
|
-
/** A graphic layer written directly in the output, for what no component does. */
|
|
80
|
-
export function custom(opts) {
|
|
81
|
-
const [layer] = splitLayer(opts);
|
|
82
|
-
return {
|
|
83
|
-
[LAYER_BRAND]: "graphic",
|
|
84
|
-
...layer,
|
|
85
|
-
component: "custom",
|
|
86
|
-
props: {},
|
|
87
|
-
mount: (el, _props, ctx) => {
|
|
88
|
-
opts.mount?.(el, ctx);
|
|
89
|
-
},
|
|
90
|
-
render: (el, t, _props, ctx) => {
|
|
91
|
-
opts.render(el, t, ctx);
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
//# sourceMappingURL=define.js.map
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{LAYER_BRAND as c}from"@allyhub-next/video-core";export const LAYER_OPTIONS=["at","until","dur","z"];export function timeShape(e){const o=n=>{if(n.type==="time")return!0;if(n.type==="list")return o(n.of);if(n.type==="object")return timeShape(n.fields)},t={};for(const[n,r]of Object.entries(e)){const s=r?o(r):void 0;s!==void 0&&(t[n]=s)}return Object.keys(t).length>0?t:void 0}export function splitLayer(e){const{at:o,until:t,dur:n,z:r,...s}=e;return[{...o===void 0?{}:{at:o},...t===void 0?{}:{until:t},...n===void 0?{}:{dur:n},...r===void 0?{}:{z:r}},s]}export function defineComponent(e){const o=[...Object.keys(e.props??{}),...Object.keys(e.defaults??{}),...Object.values(e.examples??{}).flatMap(i=>Object.keys(i))],t=[...new Set(o.filter(i=>LAYER_OPTIONS.includes(i)))];if(t.length>0)throw new Error(`${e.name}: ${t.join(", ")} is a layer option, not a prop name`);const n=timeShape(e.props??{}),r=i=>{const[m,l]=splitLayer(i??{}),d={...e.defaults,...l};return{[c]:"graphic",...m,component:e.name,props:d,...n?{times:n}:{},mount:(u,p,a)=>{e.mount(u,p,a)},render:(u,p,a,f)=>{e.render(u,p,a,f)}}},s={name:e.name,label:e.label??e.name,...e.summary===void 0?{}:{summary:e.summary},props:Object.fromEntries(Object.entries(e.props??{}).filter(i=>i[1]!==void 0)),examples:e.examples??{},hidden:e.hidden??!1};return Object.assign(r,{componentName:e.name,info:s})}export function custom(e){const[o]=splitLayer(e);return{[c]:"graphic",...o,component:"custom",props:{},mount:(t,n,r)=>{e.mount?.(t,r)},render:(t,n,r,s)=>{e.render(t,n,s)}}}
|
package/dist/dom.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CaptionTrackCue, type ContentOptions, type InlineMark, type StageContext } from "@allyhub/
|
|
1
|
+
import { type CaptionTrackCue, type ContentOptions, type InlineMark, type StageContext } from "@allyhub-next/video-core";
|
|
2
2
|
/** Inline styles: camelCase or `--custom` properties; numbers are pixels. */
|
|
3
3
|
export type Style = Partial<Record<string, string | number>>;
|
|
4
4
|
export declare function h(tag: string, style?: Style, children?: (Node | string)[], cls?: string): HTMLElement;
|