@allyhub/sdk 0.1.0-alpha.7 → 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
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{ANCHOR_NAME as o}from"./anchors.js";export const PIECE_BRAND="__allyhubPiece",PART_BRAND="__allyhubPart",LAYER_BRAND="__allyhubLayer",SPEECH_BRAND="__allyhubSpeech",MEDIA_BRAND="__allyhubMedia",OUTPUT_KINDS=["video","paged"];export function partAnchorsProblem(e){if(typeof e!="object"||e===null||Array.isArray(e))return"is { name: seconds } or { name: [from, to] }";const t=r=>typeof r=="number"&&Number.isFinite(r)&&r>=0;for(const[r,n]of Object.entries(e)){if(!o.test(r))return`"${r}" is not a name of letters, digits, _ and -`;if(!(Array.isArray(n)?n.length===2&&t(n[0])&&t(n[1])&&n[1]>=n[0]:t(n)))return`.${r} is seconds from the part's start, or [from, to] with to not before from (not ${JSON.stringify(n)})`}}export function partAnchorList(e){return Object.entries(e??{}).map(([t,r])=>typeof r=="number"?{name:t,at:r}:{name:t,at:r[0],end:r[1]})}export const SPEECH_SPEED={min:.5,max:2};export function speechSpeedProblem(e){return typeof e=="number"&&Number.isFinite(e)&&e>=SPEECH_SPEED.min&&e<=SPEECH_SPEED.max?void 0:`speed is how many times as fast it plays, from ${String(SPEECH_SPEED.min)} to ${String(SPEECH_SPEED.max)} (1 as recorded), not ${typeof e=="number"?String(e):JSON.stringify(e)}`}export function isSpeechSpec(e){return typeof e=="object"&&e!==null&&SPEECH_BRAND in e}export const ORIENT_KEYS=["landscape","portrait","square","default"];export function isPerOrient(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}export function forOrient(e,t){return isPerOrient(e)?e[t]??e.default:e}export function isLayerSpec(e){return typeof e=="object"&&e!==null&&LAYER_BRAND in e}export function isPartSpec(e){return typeof e=="object"&&e!==null&&PART_BRAND in e}export const PART_DEFAULTS={dur:4,lead:.2,tail:.3};export function partDefaults(...e){const t={...PART_DEFAULTS};for(const r of e)r?.dur!==void 0&&(t.dur=r.dur),r?.lead!==void 0&&(t.lead=r.lead),r?.tail!==void 0&&(t.tail=r.tail);return t}export function isPieceDefinition(e){return typeof e=="object"&&e!==null&&PIECE_BRAND in e}export const outputName=e=>e==="paged"?"slides":"video";export function outputOf(e){const t={};for(const[r,n]of Object.entries(e))i.has(r)||(t[r]=n);return e.kind==="paged"?{kind:"paged",build:e.pages,options:t}:{kind:"video",build:e.parts,options:t}}const i=new Set([PIECE_BRAND,"kind","parts","pages","id","base","title","format","matrix","meta","written"]);export const buildOf=e=>e.kind==="paged"?e.pages:e.parts,pieceIn=(e,t)=>e===t||e.startsWith(`${t}/`);export function pieceName(e){let t=e.replaceAll("\\","/").replace(/^\.\//u,"").replace(/\/+$/u,"");return t=t.replace(/\/(?:video|slides)\.(?:ts|tsx|js|jsx|mts|mjs)$/u,""),t}export const pieceNamed=(e,t)=>{const r=pieceName(t);return pieceIn(e.id,r)||e.path!==void 0&&pieceIn(e.path,r)},pieceIs=(e,t)=>{const r=pieceName(t);return e.id===r||e.path===r};export function messagePrefix(e){return e.replace(/\//g,".")}export const LAYER_OFF="data-ak-off";export function showLayer(e,t){e.toggleAttribute(LAYER_OFF,!t)}export function layerShown(e){return!e.hasAttribute(LAYER_OFF)}export function addLayerRule(e){if(e.adoptedStyleSheets.some(r=>r.allyhubLayers))return;const t=new CSSStyleSheet;t.replaceSync(`[${LAYER_OFF}] { display: none !important; }`),Object.assign(t,{allyhubLayers:!0}),e.adoptedStyleSheets=[...e.adoptedStyleSheets,t]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Rect } from "./piece.js";
|
|
2
|
+
import type { PixelRect } from "./timeline.js";
|
|
3
|
+
export interface Placement {
|
|
4
|
+
/** Where it shows, in the frame's pixels: nothing outside it. */
|
|
5
|
+
box: PixelRect;
|
|
6
|
+
/** The part of the source picture shown, in the source's pixels. */
|
|
7
|
+
crop?: PixelRect;
|
|
8
|
+
/** Where that part of the picture is drawn, in the frame's pixels. */
|
|
9
|
+
picture: PixelRect;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A rectangle of fractions as whole pixels of a w × h area: edges are
|
|
13
|
+
* rounded, so neighbouring rectangles share their edge; at least 1 pixel.
|
|
14
|
+
*/
|
|
15
|
+
export declare function pixelRect(r: Rect, w: number, h: number): PixelRect;
|
|
16
|
+
/**
|
|
17
|
+
* Places a footage layer: its box (fractions of the frame, or "full"), how
|
|
18
|
+
* the picture fits it, and an optional crop (fractions of the source
|
|
19
|
+
* picture), for a source of `source` pixels in a frame of `frame` pixels.
|
|
20
|
+
* Without the source's size the picture fills the box as it is.
|
|
21
|
+
*/
|
|
22
|
+
export declare function placeFootage(opts: {
|
|
23
|
+
box: Rect | "full";
|
|
24
|
+
fit: "cover" | "contain";
|
|
25
|
+
crop?: Rect;
|
|
26
|
+
source?: {
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
};
|
|
30
|
+
frame: {
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
};
|
|
34
|
+
}): Placement;
|
|
35
|
+
/** The overlap of two pixel rectangles, or undefined when they do not overlap. */
|
|
36
|
+
export declare function intersect(a: PixelRect, b: PixelRect): PixelRect | undefined;
|
|
37
|
+
//# sourceMappingURL=placement.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
const e=t=>Math.min(Math.max(t,0),1);export function pixelRect(t,n,o){const c=Math.round(e(t[0])*n),h=Math.round(e(t[1])*o),a=Math.round(e(t[0]+t[2])*n),i=Math.round(e(t[1]+t[3])*o);return[Math.min(c,n-1),Math.min(h,o-1),Math.max(1,a-c),Math.max(1,i-h)]}export function placeFootage(t){const{frame:n}=t,o=t.box==="full"?[0,0,n.width,n.height]:pixelRect(t.box,n.width,n.height),c=t.source;if(!c||c.width<=0||c.height<=0)return{box:o,picture:[...o]};const h=t.crop?pixelRect(t.crop,c.width,c.height):[0,0,c.width,c.height],[a,i,r,M]=o,x=r/h[2],s=M/h[3],u=t.fit==="cover"?Math.max(x,s):Math.min(x,s),m=t.fit==="cover"?Math.ceil:Math.round,d=Math.max(1,m(h[2]*u-1e-6)),f=Math.max(1,m(h[3]*u-1e-6)),l=[a+Math.round((r-d)/2),i+Math.round((M-f)/2),d,f];return{box:o,crop:h,picture:l}}export function intersect(t,n){const o=Math.max(t[0],n[0]),c=Math.max(t[1],n[1]),h=Math.min(t[0]+t[2],n[0]+n[2]),a=Math.min(t[1]+t[3],n[1]+n[3]);return h>o&&a>c?[o,c,h-o,a-c]:void 0}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* "error": must fix — the render breaks or a safety rule is broken;
|
|
3
|
+
* nothing is rendered until it is fixed. "warn": a suggestion — never
|
|
4
|
+
* blocks.
|
|
5
|
+
*/
|
|
6
|
+
export type ProblemLevel = "error" | "warn";
|
|
7
|
+
export type Box = [x: number, y: number, w: number, h: number];
|
|
8
|
+
export interface Problem {
|
|
9
|
+
/** Rule code, e.g. "AK-L002". */
|
|
10
|
+
code: string;
|
|
11
|
+
level: ProblemLevel;
|
|
12
|
+
/** What is wrong and how to fix it. */
|
|
13
|
+
message: string;
|
|
14
|
+
/** Where it was found: absent for project-level problems. */
|
|
15
|
+
piece?: string;
|
|
16
|
+
output?: string;
|
|
17
|
+
combo?: Record<string, string>;
|
|
18
|
+
format?: string;
|
|
19
|
+
/** Where inside the output. */
|
|
20
|
+
part?: string;
|
|
21
|
+
t?: number;
|
|
22
|
+
page?: number;
|
|
23
|
+
where?: {
|
|
24
|
+
file?: string;
|
|
25
|
+
line?: number;
|
|
26
|
+
selector?: string;
|
|
27
|
+
bbox?: Box;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
/** Rule codes and their levels. */
|
|
31
|
+
export declare const RULES: {
|
|
32
|
+
readonly "AK-M001": {
|
|
33
|
+
readonly level: "error";
|
|
34
|
+
readonly rule: "The fields of video(), slides() or defineComponent do not match the format";
|
|
35
|
+
};
|
|
36
|
+
readonly "AK-M002": {
|
|
37
|
+
readonly level: "error";
|
|
38
|
+
readonly rule: "A piece is not the entry file of an item folder";
|
|
39
|
+
};
|
|
40
|
+
readonly "AK-M003": {
|
|
41
|
+
readonly level: "error";
|
|
42
|
+
readonly rule: "An item's entry file does not match its folder or its kind";
|
|
43
|
+
};
|
|
44
|
+
readonly "AK-M004": {
|
|
45
|
+
readonly level: "error";
|
|
46
|
+
readonly rule: "The project has no pieces";
|
|
47
|
+
};
|
|
48
|
+
readonly "AK-M006": {
|
|
49
|
+
readonly level: "error";
|
|
50
|
+
readonly rule: "A messages file does not match the format";
|
|
51
|
+
};
|
|
52
|
+
readonly "AK-M007": {
|
|
53
|
+
readonly level: "error";
|
|
54
|
+
readonly rule: "A script file does not match the format";
|
|
55
|
+
};
|
|
56
|
+
readonly "AK-M008": {
|
|
57
|
+
readonly level: "error";
|
|
58
|
+
readonly rule: "A doc's file is not MDX, holds what a doc does not draw, or is not an item of its own";
|
|
59
|
+
};
|
|
60
|
+
readonly "AK-M009": {
|
|
61
|
+
readonly level: "error";
|
|
62
|
+
readonly rule: "A sheet cannot be read as it says: its file is not CSV a sheet can read, a value is not its column's type, or its spec does not match the format";
|
|
63
|
+
};
|
|
64
|
+
readonly "AK-M010": {
|
|
65
|
+
readonly level: "error";
|
|
66
|
+
readonly rule: "A video item reaches itself through the videos it shows (a screen, a video take, a footage of a video item)";
|
|
67
|
+
};
|
|
68
|
+
readonly "AK-B001": {
|
|
69
|
+
readonly level: "error";
|
|
70
|
+
readonly rule: "Two pieces have the same id";
|
|
71
|
+
};
|
|
72
|
+
readonly "AK-B003": {
|
|
73
|
+
readonly level: "error";
|
|
74
|
+
readonly rule: "The build made a network request";
|
|
75
|
+
};
|
|
76
|
+
readonly "AK-B004": {
|
|
77
|
+
readonly level: "error";
|
|
78
|
+
readonly rule: "The build timed out, or its result is over the size limit";
|
|
79
|
+
};
|
|
80
|
+
readonly "AK-B005": {
|
|
81
|
+
readonly level: "error";
|
|
82
|
+
readonly rule: "An import of a file outside the project, or of a package not declared in package.json";
|
|
83
|
+
};
|
|
84
|
+
readonly "AK-B006": {
|
|
85
|
+
readonly level: "error";
|
|
86
|
+
readonly rule: "An import of an @allyhub/sdk entry point that does not exist";
|
|
87
|
+
};
|
|
88
|
+
readonly "AK-B008": {
|
|
89
|
+
readonly level: "error";
|
|
90
|
+
readonly rule: "The project's @allyhub/sdk is another version than the allyhub that builds it";
|
|
91
|
+
};
|
|
92
|
+
readonly "AK-B009": {
|
|
93
|
+
readonly level: "error";
|
|
94
|
+
readonly rule: "The project's package.json declares AllyHub, but its packages are not installed";
|
|
95
|
+
};
|
|
96
|
+
readonly "AK-K001": {
|
|
97
|
+
readonly level: "error";
|
|
98
|
+
readonly rule: "Two parts have the same key";
|
|
99
|
+
};
|
|
100
|
+
readonly "AK-K003": {
|
|
101
|
+
readonly level: "error";
|
|
102
|
+
readonly rule: "The output has no parts";
|
|
103
|
+
};
|
|
104
|
+
readonly "AK-D002": {
|
|
105
|
+
readonly level: "error";
|
|
106
|
+
readonly rule: "The same frame has different pixels when drawn in order and out of order";
|
|
107
|
+
};
|
|
108
|
+
readonly "AK-N003": {
|
|
109
|
+
readonly level: "error";
|
|
110
|
+
readonly rule: "The sandbox blocked a request at run time";
|
|
111
|
+
};
|
|
112
|
+
readonly "AK-S001": {
|
|
113
|
+
readonly level: "error";
|
|
114
|
+
readonly rule: "The code reads a key that is missing in the default language too";
|
|
115
|
+
};
|
|
116
|
+
readonly "AK-T001": {
|
|
117
|
+
readonly level: "error";
|
|
118
|
+
readonly rule: "A take has no word times beside it (<name>.words.json)";
|
|
119
|
+
};
|
|
120
|
+
readonly "AK-T002": {
|
|
121
|
+
readonly level: "error";
|
|
122
|
+
readonly rule: "A say part has no generated file for its text, voice and tool";
|
|
123
|
+
};
|
|
124
|
+
readonly "AK-T003": {
|
|
125
|
+
readonly level: "error";
|
|
126
|
+
readonly rule: "A take's range phrase, or the line a part is saying, is not found in the take";
|
|
127
|
+
};
|
|
128
|
+
readonly "AK-T004": {
|
|
129
|
+
readonly level: "error";
|
|
130
|
+
readonly rule: "A word reference is not in its part's words, or an anchor is not in its line";
|
|
131
|
+
};
|
|
132
|
+
readonly "AK-T005": {
|
|
133
|
+
readonly level: "error";
|
|
134
|
+
readonly rule: "A take's edits file is missing or does not match the format, or an edit's words are no longer in the take";
|
|
135
|
+
};
|
|
136
|
+
readonly "AK-T006": {
|
|
137
|
+
readonly level: "error";
|
|
138
|
+
readonly rule: "A take's range phrase, or the line a part is saying, is said in words the take's edits remove";
|
|
139
|
+
};
|
|
140
|
+
readonly "AK-T007": {
|
|
141
|
+
readonly level: "error";
|
|
142
|
+
readonly rule: "A part says a line its generated voice was not made from";
|
|
143
|
+
};
|
|
144
|
+
readonly "AK-F001": {
|
|
145
|
+
readonly level: "error";
|
|
146
|
+
readonly rule: "The video is longer than its platform profile takes";
|
|
147
|
+
};
|
|
148
|
+
readonly "AK-A001": {
|
|
149
|
+
readonly level: "error";
|
|
150
|
+
readonly rule: "A referenced media or data file does not exist";
|
|
151
|
+
};
|
|
152
|
+
readonly "AK-A003": {
|
|
153
|
+
readonly level: "error";
|
|
154
|
+
readonly rule: "Wrong media type";
|
|
155
|
+
};
|
|
156
|
+
readonly "AK-A005": {
|
|
157
|
+
readonly level: "error";
|
|
158
|
+
readonly rule: "A layer draws a picture that does not load: its source is not a file the stage serves, or not a picture";
|
|
159
|
+
};
|
|
160
|
+
readonly "AK-P002": {
|
|
161
|
+
readonly level: "error";
|
|
162
|
+
readonly rule: "Loading took longer than the piece's loadLimit (default 10 seconds)";
|
|
163
|
+
};
|
|
164
|
+
readonly "AK-P003": {
|
|
165
|
+
readonly level: "error";
|
|
166
|
+
readonly rule: "A moment did not finish drawing within the piece's seekLimit (default 30 seconds): work a layer waits for (ctx.wait) or a picture it shows never settled";
|
|
167
|
+
};
|
|
168
|
+
readonly "AK-R001": {
|
|
169
|
+
readonly level: "error";
|
|
170
|
+
readonly rule: "An unhandled exception was thrown at run time";
|
|
171
|
+
};
|
|
172
|
+
readonly "AK-R003": {
|
|
173
|
+
readonly level: "error";
|
|
174
|
+
readonly rule: "The page was changed outside the stage";
|
|
175
|
+
};
|
|
176
|
+
readonly "AK-R004": {
|
|
177
|
+
readonly level: "error";
|
|
178
|
+
readonly rule: "The code sets a style value the browser does not accept, so the style does not apply";
|
|
179
|
+
};
|
|
180
|
+
readonly "AK-G001": {
|
|
181
|
+
readonly level: "error";
|
|
182
|
+
readonly rule: "Unknown format: not one of the four presets or WIDTHxHEIGHT (a4 and letter for paged outputs only, and even sides for video)";
|
|
183
|
+
};
|
|
184
|
+
readonly "AK-X001": {
|
|
185
|
+
readonly level: "error";
|
|
186
|
+
readonly rule: "The matrix's slots, structures, rules or combos name something that does not exist, or a combo lacks a slot of its structure";
|
|
187
|
+
};
|
|
188
|
+
readonly "AK-X002": {
|
|
189
|
+
readonly level: "error";
|
|
190
|
+
readonly rule: "The matrix's rules leave no combination to make, or rule out a combo matrix.combos names";
|
|
191
|
+
};
|
|
192
|
+
readonly "AK-X004": {
|
|
193
|
+
readonly level: "error";
|
|
194
|
+
readonly rule: "Two chosen combos are the same, or more alike than the matrix's differ allows";
|
|
195
|
+
};
|
|
196
|
+
readonly "AK-X005": {
|
|
197
|
+
readonly level: "error";
|
|
198
|
+
readonly rule: "A part reads another slot's pick, so one render of it cannot serve every combo";
|
|
199
|
+
};
|
|
200
|
+
readonly "AK-X006": {
|
|
201
|
+
readonly level: "error";
|
|
202
|
+
readonly rule: "A combo is longer than its output's maxDuration";
|
|
203
|
+
};
|
|
204
|
+
readonly "AK-W001": {
|
|
205
|
+
readonly level: "error";
|
|
206
|
+
readonly rule: "A scenery does not build: its module's export is not a scenery, its build throws or does not finish, or its update throws";
|
|
207
|
+
};
|
|
208
|
+
readonly "AK-W002": {
|
|
209
|
+
readonly level: "error";
|
|
210
|
+
readonly rule: "WebGL cannot be made or is lost, or draws on something other than SwiftShader where the CPU was asked for (--cpu, ALLYHUB_GPU=0, or the default off macOS)";
|
|
211
|
+
};
|
|
212
|
+
readonly "AK-W003": {
|
|
213
|
+
readonly level: "error";
|
|
214
|
+
readonly rule: "A model, texture, environment or splat file does not load, names a file that is not there, or needs a decoder AllyHub does not lend";
|
|
215
|
+
};
|
|
216
|
+
readonly "AK-W004": {
|
|
217
|
+
readonly level: "error";
|
|
218
|
+
readonly rule: "A camera cannot be drawn: a number that is not finite, a target at its position, a view along its up, a field of view outside (0°, 180°), or near and far planes out of order";
|
|
219
|
+
};
|
|
220
|
+
readonly "AK-W005": {
|
|
221
|
+
readonly level: "error";
|
|
222
|
+
readonly rule: "A name a camera, a move or a measurement refers to names no object in the scenery, or names two";
|
|
223
|
+
};
|
|
224
|
+
readonly "AK-W006": {
|
|
225
|
+
readonly level: "error";
|
|
226
|
+
readonly rule: "A material's shader does not compile or link on this renderer, or needs more texture units than the renderer has, so what uses it draws nothing (warn: more than the 16 a GPU may have)";
|
|
227
|
+
};
|
|
228
|
+
readonly "AK-W008": {
|
|
229
|
+
readonly level: "error";
|
|
230
|
+
readonly rule: "A screen drawn in the scenery cannot show its element as it is: an element of it is in the browser's top layer (a modal dialog, a popover), planes of a preserve-3d context overlap, its element is larger than the largest texture, or its picture could not be copied";
|
|
231
|
+
};
|
|
232
|
+
readonly "AK-S002": {
|
|
233
|
+
readonly level: "warn";
|
|
234
|
+
readonly rule: "Missing translation";
|
|
235
|
+
};
|
|
236
|
+
readonly "AK-L002": {
|
|
237
|
+
readonly level: "warn";
|
|
238
|
+
readonly rule: "Text overflows the frame or is clipped";
|
|
239
|
+
};
|
|
240
|
+
readonly "AK-L003": {
|
|
241
|
+
readonly level: "warn";
|
|
242
|
+
readonly rule: "Missing glyphs";
|
|
243
|
+
};
|
|
244
|
+
readonly "AK-L006": {
|
|
245
|
+
readonly level: "warn";
|
|
246
|
+
readonly rule: "Text is drawn in a fallback font, or in a bold or italic the font does not have";
|
|
247
|
+
};
|
|
248
|
+
readonly "AK-W007": {
|
|
249
|
+
readonly level: "warn";
|
|
250
|
+
readonly rule: "A screen asked to be drawn in the scenery is drawn over it, unlit and untoned: this browser cannot draw an element into a canvas (Chrome's HTML-in-Canvas), or ALLYHUB_HTML_IN_CANVAS=0";
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
export type RuleCode = keyof typeof RULES;
|
|
254
|
+
/** A problem at the rule's own level. */
|
|
255
|
+
export declare function problem(code: RuleCode, message: string, extra?: Omit<Problem, "code" | "level" | "message"> & {
|
|
256
|
+
level?: ProblemLevel;
|
|
257
|
+
}): Problem;
|
|
258
|
+
export declare function countLevels(problems: readonly Problem[]): {
|
|
259
|
+
errors: number;
|
|
260
|
+
warnings: number;
|
|
261
|
+
};
|
|
262
|
+
//# sourceMappingURL=problem.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export const RULES={"AK-M001":{level:"error",rule:"The fields of video(), slides() or defineComponent do not match the format"},"AK-M002":{level:"error",rule:"A piece is not the entry file of an item folder"},"AK-M003":{level:"error",rule:"An item's entry file does not match its folder or its kind"},"AK-M004":{level:"error",rule:"The project has no pieces"},"AK-M006":{level:"error",rule:"A messages file does not match the format"},"AK-M007":{level:"error",rule:"A script file does not match the format"},"AK-M008":{level:"error",rule:"A doc's file is not MDX, holds what a doc does not draw, or is not an item of its own"},"AK-M009":{level:"error",rule:"A sheet cannot be read as it says: its file is not CSV a sheet can read, a value is not its column's type, or its spec does not match the format"},"AK-M010":{level:"error",rule:"A video item reaches itself through the videos it shows (a screen, a video take, a footage of a video item)"},"AK-B001":{level:"error",rule:"Two pieces have the same id"},"AK-B003":{level:"error",rule:"The build made a network request"},"AK-B004":{level:"error",rule:"The build timed out, or its result is over the size limit"},"AK-B005":{level:"error",rule:"An import of a file outside the project, or of a package not declared in package.json"},"AK-B006":{level:"error",rule:"An import of an @allyhub/sdk entry point that does not exist"},"AK-B008":{level:"error",rule:"The project's @allyhub/sdk is another version than the allyhub that builds it"},"AK-B009":{level:"error",rule:"The project's package.json declares AllyHub, but its packages are not installed"},"AK-K001":{level:"error",rule:"Two parts have the same key"},"AK-K003":{level:"error",rule:"The output has no parts"},"AK-D002":{level:"error",rule:"The same frame has different pixels when drawn in order and out of order"},"AK-N003":{level:"error",rule:"The sandbox blocked a request at run time"},"AK-S001":{level:"error",rule:"The code reads a key that is missing in the default language too"},"AK-T001":{level:"error",rule:"A take has no word times beside it (<name>.words.json)"},"AK-T002":{level:"error",rule:"A say part has no generated file for its text, voice and tool"},"AK-T003":{level:"error",rule:"A take's range phrase, or the line a part is saying, is not found in the take"},"AK-T004":{level:"error",rule:"A word reference is not in its part's words, or an anchor is not in its line"},"AK-T005":{level:"error",rule:"A take's edits file is missing or does not match the format, or an edit's words are no longer in the take"},"AK-T006":{level:"error",rule:"A take's range phrase, or the line a part is saying, is said in words the take's edits remove"},"AK-T007":{level:"error",rule:"A part says a line its generated voice was not made from"},"AK-F001":{level:"error",rule:"The video is longer than its platform profile takes"},"AK-A001":{level:"error",rule:"A referenced media or data file does not exist"},"AK-A003":{level:"error",rule:"Wrong media type"},"AK-A005":{level:"error",rule:"A layer draws a picture that does not load: its source is not a file the stage serves, or not a picture"},"AK-P002":{level:"error",rule:"Loading took longer than the piece's loadLimit (default 10 seconds)"},"AK-P003":{level:"error",rule:"A moment did not finish drawing within the piece's seekLimit (default 30 seconds): work a layer waits for (ctx.wait) or a picture it shows never settled"},"AK-R001":{level:"error",rule:"An unhandled exception was thrown at run time"},"AK-R003":{level:"error",rule:"The page was changed outside the stage"},"AK-R004":{level:"error",rule:"The code sets a style value the browser does not accept, so the style does not apply"},"AK-G001":{level:"error",rule:"Unknown format: not one of the four presets or WIDTHxHEIGHT (a4 and letter for paged outputs only, and even sides for video)"},"AK-X001":{level:"error",rule:"The matrix's slots, structures, rules or combos name something that does not exist, or a combo lacks a slot of its structure"},"AK-X002":{level:"error",rule:"The matrix's rules leave no combination to make, or rule out a combo matrix.combos names"},"AK-X004":{level:"error",rule:"Two chosen combos are the same, or more alike than the matrix's differ allows"},"AK-X005":{level:"error",rule:"A part reads another slot's pick, so one render of it cannot serve every combo"},"AK-X006":{level:"error",rule:"A combo is longer than its output's maxDuration"},"AK-W001":{level:"error",rule:"A scenery does not build: its module's export is not a scenery, its build throws or does not finish, or its update throws"},"AK-W002":{level:"error",rule:"WebGL cannot be made or is lost, or draws on something other than SwiftShader where the CPU was asked for (--cpu, ALLYHUB_GPU=0, or the default off macOS)"},"AK-W003":{level:"error",rule:"A model, texture, environment or splat file does not load, names a file that is not there, or needs a decoder AllyHub does not lend"},"AK-W004":{level:"error",rule:"A camera cannot be drawn: a number that is not finite, a target at its position, a view along its up, a field of view outside (0°, 180°), or near and far planes out of order"},"AK-W005":{level:"error",rule:"A name a camera, a move or a measurement refers to names no object in the scenery, or names two"},"AK-W006":{level:"error",rule:"A material's shader does not compile or link on this renderer, or needs more texture units than the renderer has, so what uses it draws nothing (warn: more than the 16 a GPU may have)"},"AK-W008":{level:"error",rule:"A screen drawn in the scenery cannot show its element as it is: an element of it is in the browser's top layer (a modal dialog, a popover), planes of a preserve-3d context overlap, its element is larger than the largest texture, or its picture could not be copied"},"AK-S002":{level:"warn",rule:"Missing translation"},"AK-L002":{level:"warn",rule:"Text overflows the frame or is clipped"},"AK-L003":{level:"warn",rule:"Missing glyphs"},"AK-L006":{level:"warn",rule:"Text is drawn in a fallback font, or in a bold or italic the font does not have"},"AK-W007":{level:"warn",rule:"A screen asked to be drawn in the scenery is drawn over it, unlit and untoned: this browser cannot draw an element into a canvas (Chrome's HTML-in-Canvas), or ALLYHUB_HTML_IN_CANVAS=0"}};export function problem(e,r,o={}){const{level:t,...l}=o;return{code:e,level:t??RULES[e].level,message:r,...l}}export function countLevels(e){let r=0,o=0;for(const t of e)t.level==="error"?r++:o++;return{errors:r,warnings:o}}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/** A camera filming the picture (`video({ capture })`): each mark only when asked. */
|
|
2
|
+
export interface CaptureOptions {
|
|
3
|
+
/** Bright light glowing into what is round it: the light above `threshold` (0–1), blurred by `radius` (px at 1080 lines), added at `strength` (0–1). */
|
|
4
|
+
bloom?: {
|
|
5
|
+
threshold?: number;
|
|
6
|
+
radius?: number;
|
|
7
|
+
strength?: number;
|
|
8
|
+
};
|
|
9
|
+
/** The red and the blue drawn apart at the frame's corners by this many px (at 1080 lines), less toward the centre. */
|
|
10
|
+
aberration?: number;
|
|
11
|
+
/**
|
|
12
|
+
* How soft the lens draws, as a Gaussian blur's sigma in px at 1080
|
|
13
|
+
* lines. A phone filming a laptop's screen from 15 to 25 cm, as TikTok
|
|
14
|
+
* serves it, measured about 1 over a drawing (allyhub frames compare gives
|
|
15
|
+
* it for a frame against a reference's).
|
|
16
|
+
*/
|
|
17
|
+
soften?: number;
|
|
18
|
+
/** How much darker the corners are, 0–1. */
|
|
19
|
+
vignette?: number;
|
|
20
|
+
/** The exposure breathing as the phone meters: how far it drifts, in stops of light, and over how many seconds its slower swing takes. */
|
|
21
|
+
exposure?: {
|
|
22
|
+
drift?: number;
|
|
23
|
+
period?: number;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The sensor's grain. `amount`: its standard deviation at middle grey
|
|
27
|
+
* as a share of full scale (0.02 is 2 %); `size`: how soft it is (px at
|
|
28
|
+
* 1080 lines; 0 is a pixel each). By level, as a phone's noise is:
|
|
29
|
+
* `shadows` and `highlights` multiply it at black and at white (a curve
|
|
30
|
+
* through the three), and near either end it is drawn smaller, so that
|
|
31
|
+
* it never clips there (black stays black, and its level does not
|
|
32
|
+
* rise). `chroma`: colour in it, the deviation of each channel's own
|
|
33
|
+
* noise over the shared noise's (0: grey), softer by `chromaSize` (px at
|
|
34
|
+
* 1080 lines). `static`: the same grain in every frame, as a still's own
|
|
35
|
+
* noise is wherever it shows.
|
|
36
|
+
*/
|
|
37
|
+
grain?: {
|
|
38
|
+
amount?: number;
|
|
39
|
+
size?: number;
|
|
40
|
+
shadows?: number;
|
|
41
|
+
highlights?: number;
|
|
42
|
+
chroma?: number;
|
|
43
|
+
chromaSize?: number;
|
|
44
|
+
static?: boolean;
|
|
45
|
+
};
|
|
46
|
+
/** The phone's sharpening: unsharp masking's amount (0.5 is mild, 1.5 strong). */
|
|
47
|
+
sharpen?: number;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=render-types.d.ts.map
|