@allyhub/sdk 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/NOTICE +46 -49
- package/dist/dom.d.ts +1 -209
- package/dist/dom.js +1 -1
- package/dist/image.d.ts +2 -0
- package/dist/image.js +2 -0
- package/dist/index.d.ts +1 -21
- package/dist/index.js +1 -1
- package/dist/media.d.ts +1 -5
- package/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/levels.d.ts +4 -5
- package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.d.ts +1 -6
- package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
- package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
- package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +20 -82
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +96 -8
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
- package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
- package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
- package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +46 -42
- package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
- package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
- package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
- package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
- package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
- package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
- package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
- package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
- package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
- package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
- package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
- package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
- package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
- package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
- package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
- package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
- package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
- package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
- package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
- package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
- package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
- package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
- package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
- package/dist/{define.d.ts → node_modules/@allyhub/image-sdk/dist/define.d.ts} +21 -4
- package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
- package/dist/{messages.d.ts → node_modules/@allyhub/image-sdk/dist/messages.d.ts} +1 -1
- package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
- package/dist/{props.d.ts → node_modules/@allyhub/image-sdk/dist/props.d.ts} +4 -4
- package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
- package/dist/{written.js → node_modules/@allyhub/image-sdk/dist/written.js} +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
- package/dist/node_modules/@allyhub/measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
- package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
- package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/measure/package.json +13 -0
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +4 -1
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +15 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.d.ts +1 -9
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
- package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.d.ts +2 -2
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/export.d.ts +27 -10
- package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/formats.d.ts +12 -68
- package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
- package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +421 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.d.ts +1 -1
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.d.ts +39 -9
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.d.ts +6 -0
- package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/script.d.ts +9 -4
- package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +285 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.d.ts +1 -20
- package/dist/node_modules/@allyhub/piece/package.json +18 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +139 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
- package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +232 -132
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +22 -9
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
- package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +5 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
- package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +273 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +26 -0
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
- package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
- package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
- package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
- package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
- package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +4 -4
- package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +15 -11
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +5 -0
- package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +5 -19
- package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +3 -4
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +76 -1
- package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +6 -6
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +5 -1
- package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +23 -7
- package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +44 -4
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +18 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
- package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +208 -0
- package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +4 -4
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +4 -2
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +5 -5
- package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +19 -2
- package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +17 -10
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +28 -11
- package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +3 -6
- package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
- package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +1 -2
- package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +1 -10
- package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
- package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +3 -3
- package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +21 -762
- package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +3 -2
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +3 -17
- package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +72 -423
- package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +22 -430
- package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +6 -12
- package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +11 -6
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +2 -3
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +2 -4
- package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
- package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +18 -136
- package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +3 -3
- package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
- package/dist/{free.d.ts → node_modules/@allyhub/video-sdk/dist/free.d.ts} +14 -10
- package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
- package/dist/{input.d.ts → node_modules/@allyhub/video-sdk/dist/input.d.ts} +76 -22
- package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
- package/dist/{module.d.ts → node_modules/@allyhub/video-sdk/dist/module.d.ts} +6 -4
- package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
- package/dist/{parts.d.ts → node_modules/@allyhub/video-sdk/dist/parts.d.ts} +15 -6
- package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
- package/dist/{piece.d.ts → node_modules/@allyhub/video-sdk/dist/piece.d.ts} +26 -16
- package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
- package/dist/scenery.d.ts +1 -1
- package/dist/scenery.js +1 -1
- package/dist/sheets.d.ts +1 -1
- package/dist/sheets.js +1 -1
- package/dist/slides.d.ts +1 -9
- package/dist/slides.js +1 -1
- package/docs/README.md +8 -6
- package/docs/batches.md +5 -5
- package/docs/contract.md +2 -2
- package/docs/defaults.md +278 -20
- package/docs/docs.md +77 -63
- package/docs/footage.md +7 -7
- package/docs/image.md +165 -0
- package/docs/layers.md +22 -13
- package/docs/modeling.md +4 -4
- package/docs/pictures.md +65 -0
- package/docs/project.md +51 -31
- package/docs/scenery.md +11 -11
- package/docs/sheets.md +26 -25
- package/docs/slides.md +73 -65
- package/docs/sound.md +3 -3
- package/docs/speech.md +8 -8
- package/docs/video.md +16 -13
- package/docs/websites.md +4 -4
- package/package.json +7 -2
- package/dist/define.js +0 -2
- package/dist/free.js +0 -2
- package/dist/input.js +0 -2
- package/dist/module.js +0 -2
- package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
- package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
- package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
- package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
- package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
- package/dist/parts.js +0 -2
- package/dist/piece.js +0 -2
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
- /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
- /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
- /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
- /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
- /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
- /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
- /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
- /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
- /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
- /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
- /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
- /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
- /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
- /package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +0 -0
- /package/dist/{phone.js → node_modules/@allyhub/video-sdk/dist/phone.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Feature highlights from each AllyHub release.
|
|
4
4
|
|
|
5
|
+
## 0.9.0
|
|
6
|
+
|
|
7
|
+
- **A project lists its work.** `allyhub.yaml` names each piece's file, which can have any name in any folder. A project made before this version needs one for Studio to show its work.
|
|
8
|
+
- **Images and canvases.** An image is boards of Photoshop's layers, exported as PNG, JPEG, WebP, AVIF, PDF or a layered PSD, and changed by marking up what you want. A canvas lays a project's work out with notes and links.
|
|
9
|
+
- **Posts and articles for X**, checked against X's limits and drawn as X shows them.
|
|
10
|
+
- **Every measurement in the cloud.** Word times, text in pictures, cut-outs and faces need nothing downloaded, only a signed-in computer. The media tools are named for what they do, one each.
|
|
11
|
+
- **See the agent at work.** Every editor outlines where the agent changes or looks, and follows it until you take over.
|
|
12
|
+
- **A mailbox for your agents.** An address of your own to sign up to sites, read their codes and answer mail (`allyhub mail`).
|
|
13
|
+
- **Studio and the editors in nine languages**: English, Simplified and Traditional Chinese, Japanese, Korean, Spanish, Portuguese, German and French. Another language chosen before reads as the system's.
|
|
14
|
+
- **`cursor()` replaces `pointer()`.** It moves like a mouse; `handPath()` is the old motion, for a finger or something held.
|
|
15
|
+
|
|
5
16
|
## 0.8.0
|
|
6
17
|
|
|
7
18
|
- **Docs read like reports.** Charts drawn from numbers or a sheet, equations, diagrams, columns, footnotes, page breaks and page numbers, a cover and a page style, all kept in PDF and Word.
|
package/NOTICE
CHANGED
|
@@ -3,11 +3,53 @@ Copyright (c) 2026 AllyHub, Inc. All rights reserved.
|
|
|
3
3
|
|
|
4
4
|
This product is proprietary; see LICENSE.
|
|
5
5
|
|
|
6
|
+
The centripetal Catmull-Rom tangents in src/curve.ts follow three.js's
|
|
7
|
+
CatmullRomCurve3 (src/extras/curves/CatmullRomCurve3.js)
|
|
8
|
+
(https://github.com/mrdoob/three.js),
|
|
9
|
+
Copyright 2010-2026 three.js authors, under the MIT License:
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
12
|
+
copy of this software and associated documentation files (the
|
|
13
|
+
"Software"), to deal in the Software without restriction, including
|
|
14
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
15
|
+
distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
16
|
+
persons to whom the Software is furnished to do so, subject to the
|
|
17
|
+
following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included
|
|
20
|
+
in all copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
23
|
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
24
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
25
|
+
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
26
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
27
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
28
|
+
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
29
|
+
|
|
30
|
+
The arc-length parametrisation (Gauss-Legendre quadrature per segment,
|
|
31
|
+
inverted by Newton steps with a bisection fallback) and the timing of
|
|
32
|
+
keyframes by a monotone cubic follow the approach of the splines library
|
|
33
|
+
(https://github.com/AudioSceneDescriptionFormat/splines), Copyright (c)
|
|
34
|
+
2018-2026 Matthias Geier, under the MIT License (the same terms as above).
|
|
35
|
+
No code of it is copied.
|
|
36
|
+
|
|
37
|
+
The moiré a sensor makes of a screen (src/moire.ts) follows
|
|
38
|
+
the screen-capture simulation of UniDemoiré
|
|
39
|
+
(https://github.com/4DVLab/UniDemoire, unidemoire/models/shooting), Copyright
|
|
40
|
+
(c) 2024 4DVLab, under the MIT License: a screen's RGB subpixels, the
|
|
41
|
+
projective transform, the sensor's Bayer filter. It is worked out in closed
|
|
42
|
+
form per pixel; no code of it is copied.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
AllyHub
|
|
47
|
+
Copyright (c) 2026 AllyHub, Inc. All rights reserved.
|
|
48
|
+
|
|
49
|
+
This product is proprietary; see LICENSE.
|
|
50
|
+
|
|
6
51
|
Parts of the rendering code (frame capture with BeginFrame, worker sizing,
|
|
7
|
-
frame extraction and the ffmpeg arguments)
|
|
8
|
-
(the pinned Parakeet model and sherpa-onnx runtime installed on first use,
|
|
9
|
-
decoding in windows cut at silences and merging tokens into words) are
|
|
10
|
-
adapted from HyperFrames (https://github.com/heygen-com/hyperframes),
|
|
52
|
+
frame extraction and the ffmpeg arguments) are adapted from HyperFrames (https://github.com/heygen-com/hyperframes),
|
|
11
53
|
Copyright 2026 HeyGen, Inc., licensed under the Apache License, Version 2.0.
|
|
12
54
|
Each adapted file says so in its header.
|
|
13
55
|
|
|
@@ -119,48 +161,3 @@ rate from their analogue prototypes, as pyloudnorm
|
|
|
119
161
|
Christian Steinmetz, under the MIT License; its filters follow Robert
|
|
120
162
|
Bristow-Johnson's Audio EQ Cookbook, and its compressor Giannoulis, Massberg
|
|
121
163
|
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/dist/dom.d.ts
CHANGED
|
@@ -1,210 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/** Inline styles: camelCase or `--custom` properties; numbers are pixels. */
|
|
3
|
-
export type Style = Partial<Record<string, string | number>>;
|
|
4
|
-
export declare function h(tag: string, style?: Style, children?: (Node | string)[], cls?: string): HTMLElement;
|
|
5
|
-
export declare function css(el: HTMLElement | SVGElement, style: Style): void;
|
|
6
|
-
/**
|
|
7
|
-
* Chinese has no spaces, so a line can break inside a word. Mark word
|
|
8
|
-
* boundaries (Intl.Segmenter, the browser's own dictionary) with zero-width
|
|
9
|
-
* spaces; with `word-break: keep-all` lines then break only between words.
|
|
10
|
-
*/
|
|
11
|
-
export declare function wordBreaks(value: string): string;
|
|
12
|
-
export declare const text: (v: unknown) => string;
|
|
13
|
-
export declare const list: (v: unknown) => string[];
|
|
14
|
-
export interface Layout {
|
|
15
|
-
W: number;
|
|
16
|
-
H: number;
|
|
17
|
-
/** Type scale: the frame's short side / 1080 (1 in every preset and platform profile). */
|
|
18
|
-
k: number;
|
|
19
|
-
orient: "landscape" | "portrait" | "square";
|
|
20
|
-
/** The side margin: max(margin, the covered left and right edges). */
|
|
21
|
-
pad: number;
|
|
22
|
-
/** The content box's edges, in the frame's pixels: clear of the covered areas, with a gap. */
|
|
23
|
-
top: number;
|
|
24
|
-
bottom: number;
|
|
25
|
-
left: number;
|
|
26
|
-
right: number;
|
|
27
|
-
}
|
|
28
|
-
/** What layout() may change: the margin and the gaps by the covered edges (see contentEdges). */
|
|
29
|
-
export type LayoutOptions = ContentOptions;
|
|
30
|
-
/**
|
|
31
|
-
* Layout of the stage for the current format: the type scale and the
|
|
32
|
-
* content box (the same box as ctx.content). With the defaults, in
|
|
33
|
-
* pixels: pad = max(margin, safe.left, safe.right), with margin 120 × k
|
|
34
|
-
* in a landscape frame and 84 × k otherwise; top = max(pad, safe.top +
|
|
35
|
-
* 30 × k); bottom = H − max(pad, safe.bottom + 20 × k); left = pad;
|
|
36
|
-
* right = W − pad. `opts` changes the margin and the gaps.
|
|
37
|
-
*/
|
|
38
|
-
export declare function layout(ctx: StageContext, opts?: LayoutOptions): Layout;
|
|
39
|
-
/** A full-stage absolutely positioned box over the content area. */
|
|
40
|
-
export declare function contentBox(L: Layout, style?: Style): HTMLElement;
|
|
41
|
-
/** Text block that keeps its words together and wraps by width. */
|
|
42
|
-
export declare function textBlock(value: string, { size, weight, color, font, lineHeight, align, }: {
|
|
43
|
-
size: number;
|
|
44
|
-
weight?: number;
|
|
45
|
-
color?: string;
|
|
46
|
-
font?: string;
|
|
47
|
-
lineHeight?: number;
|
|
48
|
-
align?: "left" | "center" | "right";
|
|
49
|
-
}): HTMLElement;
|
|
50
|
-
/** How marked() draws each kind of mark, unless it is given another style. */
|
|
51
|
-
export declare const MARK_STYLES: Readonly<Record<InlineMark["kind"], Style>>;
|
|
52
|
-
/**
|
|
53
|
-
* A line with its marks drawn: a span holding the line's runs in order,
|
|
54
|
-
* a plain run as text and a marked one as a span with `data-mark` (its
|
|
55
|
-
* kinds, "strong", "strong em"…) and the style of each kind, `styles`
|
|
56
|
-
* over MARK_STYLES. A string is read with readMarks() (`**strong**`,
|
|
57
|
-
* `*em*`, `~~struck~~`, `` `code` ``); a text already read is taken with
|
|
58
|
-
* the marks it has. Put it in any block: textBlock("", { size }).append(…),
|
|
59
|
-
* h("div", style, [marked(line)]).
|
|
60
|
-
*/
|
|
61
|
-
export declare function marked(value: string | {
|
|
62
|
-
text: string;
|
|
63
|
-
marks?: readonly InlineMark[];
|
|
64
|
-
}, styles?: Partial<Record<InlineMark["kind"], Style>>): HTMLElement;
|
|
65
|
-
/** Children of el by data-ak attribute, in document order. */
|
|
66
|
-
export declare function all(el: HTMLElement, name: string): HTMLElement[];
|
|
67
|
-
export declare function one(el: HTMLElement, name: string): HTMLElement | null;
|
|
68
|
-
export declare function tag(el: HTMLElement, name: string): HTMLElement;
|
|
69
|
-
/**
|
|
70
|
-
* The largest font size in [min, max] at which el fits its width and is at
|
|
71
|
-
* most maxHeight tall. Layout depends only on the format and the text, so
|
|
72
|
-
* mount calls this once.
|
|
73
|
-
*/
|
|
74
|
-
export declare function fitTo(el: HTMLElement, { min, max, maxHeight }: {
|
|
75
|
-
min: number;
|
|
76
|
-
max: number;
|
|
77
|
-
maxHeight: number;
|
|
78
|
-
}): number;
|
|
79
|
-
/** What fitLines searches within, and the box the text must fit. */
|
|
80
|
-
export interface FitLinesOptions {
|
|
81
|
-
/** The most lines the text may take. */
|
|
82
|
-
lines: number;
|
|
83
|
-
/** Smallest font size in px. */
|
|
84
|
-
min: number;
|
|
85
|
-
/** Largest font size in px. */
|
|
86
|
-
max: number;
|
|
87
|
-
/** The box's width in px, set as the element's width. Default: the element's own width (required for a text). */
|
|
88
|
-
width?: number;
|
|
89
|
-
/** The box's height in px: the text is at most this tall too. Default: no limit. */
|
|
90
|
-
height?: number;
|
|
91
|
-
/** How close to the largest size the search gets, in px (default `FIT_LINES_PRECISION`, 0.5). */
|
|
92
|
-
precision?: number;
|
|
93
|
-
}
|
|
94
|
-
/** What fitLines found. */
|
|
95
|
-
export interface FitLines {
|
|
96
|
-
/** The font size, set on the element: the largest that fits, else `min`. */
|
|
97
|
-
size: number;
|
|
98
|
-
/** False when even `min` takes more lines, or is wider or taller than the box. */
|
|
99
|
-
fits: boolean;
|
|
100
|
-
/** The text of each line at that size, as the browser broke it (`textLines`). */
|
|
101
|
-
lines: string[];
|
|
102
|
-
}
|
|
103
|
-
export declare const FIT_LINES_PRECISION = 0.5;
|
|
104
|
-
/**
|
|
105
|
-
* The text of each line of el as the browser broke it, top to bottom:
|
|
106
|
-
* spaces collapsed, zero-width spaces (`wordBreaks`) left out. el must be
|
|
107
|
-
* in the page.
|
|
108
|
-
*/
|
|
109
|
-
export declare function textLines(el: HTMLElement): string[];
|
|
110
|
-
/**
|
|
111
|
-
* The largest font size in [min, max] at which the text takes at most
|
|
112
|
-
* `lines` lines and fits the box's width (no word sticks out) and, given
|
|
113
|
-
* `height`, its height, measured in the page. Pass an element in the page
|
|
114
|
-
* (its font size is set, and its width when `width` is given), or a text and
|
|
115
|
-
* the style it will be drawn with (measured in a hidden element, removed
|
|
116
|
-
* after; `width` is required): set the same style and the size found.
|
|
117
|
-
* Layout depends only on the format and the text, so call it in mount.
|
|
118
|
-
*/
|
|
119
|
-
export declare function fitLines(el: HTMLElement, opts: FitLinesOptions): FitLines;
|
|
120
|
-
export declare function fitLines(text: string, opts: FitLinesOptions & {
|
|
121
|
-
style?: Style;
|
|
122
|
-
}): FitLines;
|
|
123
|
-
type Box = readonly [x: number, y: number, w: number, h: number];
|
|
124
|
-
/** What freeAreas keeps clear of, and where it looks. */
|
|
125
|
-
export interface FreeAreaOptions {
|
|
126
|
-
/**
|
|
127
|
-
* The rectangle to look in, in the frame's pixels; default the content
|
|
128
|
-
* box of layout(ctx) (clear of the covered areas, with its margins).
|
|
129
|
-
*/
|
|
130
|
-
within?: Box;
|
|
131
|
-
/** Keep clear of every face at t (ctx.faces); default true. */
|
|
132
|
-
faces?: boolean;
|
|
133
|
-
/** Keep clear of the text of the layers listed before (ctx.texts); default true. */
|
|
134
|
-
texts?: boolean;
|
|
135
|
-
/** Keep clear of the covered areas (ctx.covered); default true. */
|
|
136
|
-
covered?: boolean;
|
|
137
|
-
/** Pixels kept around each thing avoided; default 24 × the type scale. */
|
|
138
|
-
margin?: number;
|
|
139
|
-
/** Leave out areas lower than this, pixels; default 0. */
|
|
140
|
-
minHeight?: number;
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* The empty areas of the frame at part time t: bands across `within`
|
|
144
|
-
* (the content box by default) where no face, other layer's text or
|
|
145
|
-
* covered area is, each `[x, y, w, h]` in the frame's pixels, tallest
|
|
146
|
-
* first. A measurement: use it, or not, as you place things. Draws the
|
|
147
|
-
* layers listed before this one, so call it in mount.
|
|
148
|
-
*/
|
|
149
|
-
export declare function freeAreas(ctx: StageContext, t: number, opts?: FreeAreaOptions): [number, number, number, number][];
|
|
150
|
-
/** A spot for a caption block's top: a place in the content box, or a y in pixels. */
|
|
151
|
-
export type CaptionSpot = "bottom" | "middle" | "top" | number;
|
|
152
|
-
/** What captionTop tries and keeps clear of. */
|
|
153
|
-
export interface CaptionTopOptions {
|
|
154
|
-
/** The spots to try, in order; default ["bottom", "top", "middle"]. */
|
|
155
|
-
prefer?: readonly CaptionSpot[];
|
|
156
|
-
/** Keep clear of faces (ctx.faces); default true. */
|
|
157
|
-
faces?: boolean;
|
|
158
|
-
/** Keep clear of the text of the layers listed before (ctx.texts); default true. */
|
|
159
|
-
texts?: boolean;
|
|
160
|
-
/** Pixels kept from a face; default 24 × the type scale. */
|
|
161
|
-
faceGap?: number;
|
|
162
|
-
/** Pixels kept from other text (often on a panel); default 48 × the type scale. */
|
|
163
|
-
textGap?: number;
|
|
164
|
-
/** Seconds between the moments of the cue it looks at; default 0.1. */
|
|
165
|
-
step?: number;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Where a caption block w × h pixels (centred across the frame) can go
|
|
169
|
-
* for one cue: the first spot in `prefer`, else just above or below
|
|
170
|
-
* another layer's text, clear of that text and of the faces over the
|
|
171
|
-
* whole cue; when none is clear of both, the least text covered, then
|
|
172
|
-
* the least face. Returns the block's top in pixels, inside the content
|
|
173
|
-
* box. A tool: call it in mount, once per cue, if you want a measured
|
|
174
|
-
* place; nothing places captions on its own.
|
|
175
|
-
*/
|
|
176
|
-
export declare function captionTop(ctx: StageContext, L: Layout, cue: Pick<CaptionTrackCue, "start" | "end">, w: number, h: number, opts?: CaptionTopOptions): number;
|
|
177
|
-
/**
|
|
178
|
-
* The look's background and text colours sorted into the lighter and the
|
|
179
|
-
* darker, as variables: text over footage can be light on a dark outline
|
|
180
|
-
* in any look. Measures the look, so call it in mount.
|
|
181
|
-
*/
|
|
182
|
-
export declare function lightDark(el: HTMLElement): {
|
|
183
|
-
light: string;
|
|
184
|
-
dark: string;
|
|
185
|
-
};
|
|
186
|
-
/**
|
|
187
|
-
* Words to stress, as you choose them: matched as said, case, accents
|
|
188
|
-
* and punctuation ignored, whole words; a phrase ("free trial") marks
|
|
189
|
-
* each of its words, and Chinese or Japanese may match inside a word.
|
|
190
|
-
*/
|
|
191
|
-
export type Emphasis = readonly string[];
|
|
192
|
-
/** The emoji a word brings, keyed like Emphasis. */
|
|
193
|
-
export type WordEmoji = Readonly<Record<string, string>>;
|
|
194
|
-
type CueWords = readonly CaptionTrackCue["words"][number][];
|
|
195
|
-
/** For each of a cue's words, whether `emphasis` names it. */
|
|
196
|
-
export declare function emphasized(words: CueWords, emphasis: Emphasis | undefined): boolean[];
|
|
197
|
-
/**
|
|
198
|
-
* For each of a cue's words, the emoji it brings ("" for none): a phrase's
|
|
199
|
-
* goes to its last word, and the first key that names a word wins.
|
|
200
|
-
*/
|
|
201
|
-
export declare function wordEmoji(words: CueWords, emoji: WordEmoji | undefined): string[];
|
|
202
|
-
/**
|
|
203
|
-
* An emoji to draw beside or above a word: in the look's emoji font
|
|
204
|
-
* (`var(--ak-font-emoji)`, colour emoji the stage has, the same on every
|
|
205
|
-
* computer), upright at regular weight, without the capitals or the
|
|
206
|
-
* outline of the line it sits in.
|
|
207
|
-
*/
|
|
208
|
-
export declare function emojiEl(value: string, style?: Style): HTMLElement;
|
|
209
|
-
export {};
|
|
1
|
+
export * from "@allyhub/image-sdk/dom";
|
|
210
2
|
//# sourceMappingURL=dom.d.ts.map
|
package/dist/dom.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
|
|
2
|
+
export*from"@allyhub/image-sdk/dom";
|
package/dist/image.d.ts
ADDED
package/dist/image.js
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
export { BOUND, sdkFor, type BoundSdk, type Sdk, type SdkModule, } from "./module.js";
|
|
3
|
-
export type { FootageFn, PartFn, TakeFn } from "./parts.js";
|
|
4
|
-
export type { VideoFn } from "./piece.js";
|
|
5
|
-
/**
|
|
6
|
-
* A video: the default export of an item's video.ts. The function returns
|
|
7
|
-
* its parts, in order.
|
|
8
|
-
*/
|
|
9
|
-
export declare const video: import("./piece.js").VideoFn;
|
|
10
|
-
/** A part of a video. */
|
|
11
|
-
export declare const part: import("./parts.js").PartFn;
|
|
12
|
-
/**
|
|
13
|
-
* Speech from a recording (an import, or a path) with its word times
|
|
14
|
-
* beside it, or a stretch of another video item of the project.
|
|
15
|
-
*/
|
|
16
|
-
export declare const take: import("./parts.js").TakeFn;
|
|
17
|
-
/**
|
|
18
|
-
* A video on the part: footage("./broll.mp4", { at: "inbox", dur: 1.5 }).
|
|
19
|
-
* Without a file it is the part's own take, in sync with its speech.
|
|
20
|
-
*/
|
|
21
|
-
export declare const footage: import("./parts.js").FootageFn;
|
|
1
|
+
export * from "@allyhub/video-sdk";
|
|
22
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
|
|
2
|
+
export*from"@allyhub/video-sdk";
|
package/dist/media.d.ts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/** A media value. Used by the code the build generates for media imports. */
|
|
3
|
-
export declare function media(info: MediaInfo): MediaInfo;
|
|
4
|
-
/** Whether a value is a media value (an import, or ctx.asset's). */
|
|
5
|
-
export declare function isMedia(v: unknown): v is MediaInfo;
|
|
1
|
+
export * from "@allyhub/image-sdk/media";
|
|
6
2
|
//# sourceMappingURL=media.d.ts.map
|
package/dist/media.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
|
|
2
|
+
export*from"@allyhub/image-sdk/media";
|
|
@@ -55,8 +55,7 @@ export declare function resolveMix(o: MixOptions | undefined): MixLevels;
|
|
|
55
55
|
/** `video({ master })`: what the sum is mastered to. */
|
|
56
56
|
export interface MasterOptions {
|
|
57
57
|
/**
|
|
58
|
-
* Integrated loudness, LUFS (-70 to 0); default the
|
|
59
|
-
* else -14. false keeps the mix's own level (peaks still limited).
|
|
58
|
+
* Integrated loudness, LUFS (-70 to 0); default -14. false keeps the mix's own level (peaks still limited).
|
|
60
59
|
*/
|
|
61
60
|
lufs?: number | false;
|
|
62
61
|
/** True-peak ceiling, dBTP (-9 to 0); default -3 (AAC overshoots up to about 2 dB). */
|
|
@@ -90,8 +89,8 @@ export interface MasterTargets {
|
|
|
90
89
|
}
|
|
91
90
|
/**
|
|
92
91
|
* An output's `master` resolved: a number is the loudness, false keeps
|
|
93
|
-
* the mix's level, an object sets either;
|
|
94
|
-
*
|
|
92
|
+
* the mix's level, an object sets either; MASTER_DEFAULTS where it names
|
|
93
|
+
* none.
|
|
95
94
|
*/
|
|
96
|
-
export declare function resolveMaster(master: number | false | MasterOptions | undefined
|
|
95
|
+
export declare function resolveMaster(master: number | false | MasterOptions | undefined): MasterTargets;
|
|
97
96
|
//# sourceMappingURL=levels.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export const MIX_DEFAULTS={speech:-16,music:-20,musicAlone:-16,sfx:-22,footage:-16,footageUnderSpeech:-22,duck:{db:-8,attack:.3,release:1,hold:2},musicFade:{in:.3,out:1.5}};export function resolveMix(e){const u=MIX_DEFAULTS;return{speech:e?.speech??u.speech,music:e?.music??u.music,musicAlone:e?.musicAlone??u.musicAlone,sfx:e?.sfx??u.sfx,footage:e?.footage??u.footage,footageUnderSpeech:e?.footageUnderSpeech??u.footageUnderSpeech,duck:{...u.duck,...e?.duck},musicFade:{...u.musicFade,...e?.musicFade}}}export const MASTER_DEFAULTS={lufs:-14,truePeak:-3},MASTER_MECHANICS={attack:.002,release:.04,oversample:4,rounds:4,tolerance:.1};export function resolveMaster(e
|
|
2
|
+
export const MIX_DEFAULTS={speech:-16,music:-20,musicAlone:-16,sfx:-22,footage:-16,footageUnderSpeech:-22,duck:{db:-8,attack:.3,release:1,hold:2},musicFade:{in:.3,out:1.5}};export function resolveMix(e){const u=MIX_DEFAULTS;return{speech:e?.speech??u.speech,music:e?.music??u.music,musicAlone:e?.musicAlone??u.musicAlone,sfx:e?.sfx??u.sfx,footage:e?.footage??u.footage,footageUnderSpeech:e?.footageUnderSpeech??u.footageUnderSpeech,duck:{...u.duck,...e?.duck},musicFade:{...u.musicFade,...e?.musicFade}}}export const MASTER_DEFAULTS={lufs:-14,truePeak:-3},MASTER_MECHANICS={attack:.002,release:.04,oversample:4,rounds:4,tolerance:.1};export function resolveMaster(e){return e===!1?{lufs:!1,truePeak:MASTER_DEFAULTS.truePeak}:typeof e=="number"?{lufs:e,truePeak:MASTER_DEFAULTS.truePeak}:{lufs:e?.lufs??MASTER_DEFAULTS.lufs,truePeak:e?.truePeak??MASTER_DEFAULTS.truePeak}}
|
|
@@ -8,12 +8,7 @@ export declare class AudioError extends Error {
|
|
|
8
8
|
readonly code: AudioErrorCode;
|
|
9
9
|
constructor(code: AudioErrorCode, message: string, options?: ErrorOptions);
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
export interface FfmpegOptions {
|
|
13
|
-
ffmpeg?: string | undefined;
|
|
14
|
-
}
|
|
15
|
-
/** The ffmpeg to run: the one named, else the pinned one. */
|
|
16
|
-
export declare function ffmpegOf(o?: FfmpegOptions): Promise<string>;
|
|
11
|
+
export { ffmpegOf, type FfmpegOptions } from "@allyhub/runtimes";
|
|
17
12
|
/** How much of ffmpeg's log a run keeps unless it asks for more, in characters. */
|
|
18
13
|
export declare const FFMPEG_LOG = 200000;
|
|
19
14
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{spawn as
|
|
2
|
+
import{spawn as a}from"node:child_process";export class AudioError extends Error{code;constructor(s,f,o){super(f,o),this.name="AudioError",this.code=s}}export{ffmpegOf}from"@allyhub/runtimes";export const FFMPEG_LOG=2e5;export function runFfmpeg(e,s,f=!1,o=FFMPEG_LOG){return new Promise((c,i)=>{const n=a(e,s,{stdio:["ignore",f?"pipe":"ignore","pipe"]}),p=[];let r="";n.stdout?.on("data",t=>p.push(t)),n.stderr?.on("data",t=>{r+=t.toString(),r.length>o&&(r=r.slice(-o/2))}),n.on("error",i),n.on("close",t=>{t===0?c({out:Buffer.concat(p),err:r}):i(new AudioError("ffmpeg",`ffmpeg failed (${String(t)}): ${r.slice(-2e3)}`))})})}export function floats(e){return new Float32Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength-e.byteLength%4))}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{colorOfFile as j}from"@allyhub/formats";import{isScatter as O,labelPositionsOf as v}from"./chart.js";const
|
|
2
|
+
import{colorOfFile as j}from"@allyhub/formats";import{isScatter as O,labelPositionsOf as v}from"./chart.js";const u=e=>j(e)??"dk1";function S(e,n){if(n.startsWith("/"))return n.slice(1);const o=e===""?[]:e.split("/");for(const s of n.split("/"))s===""||s==="."||(s===".."?o.pop():o.push(s));return o.join("/")}const w=e=>e&&{...e.min===void 0?{}:{minimum_scale:e.min},...e.max===void 0?{}:{maximum_scale:e.max},...e.major===void 0?{}:{major_unit:e.major},...e.gridlines===void 0?{}:{has_major_gridlines:e.gridlines},...e.visible===void 0?{}:{visible:e.visible},...e.format===void 0?{}:{number_format:e.format},...e.reverse===void 0?{}:{reverse_order:e.reverse},...e.gridline_color===void 0?{}:{gridline_color:u(e.gridline_color)},...e.line_color===void 0?{}:{line_color:u(e.line_color)}},F=e=>{if(!(e===void 0||e===!1))return e===!0?{show_value:!0}:{...e.value===void 0?{}:{show_value:e.value},...e.percentage===void 0?{}:{show_percentage:e.percentage},...e.category===void 0?{}:{show_category_name:e.category},...e.series===void 0?{}:{show_series_name:e.series},...e.format===void 0?{}:{number_format:e.format},...e.position===void 0?{}:{position:e.position},...e.size===void 0?{}:{size:e.size},...e.color===void 0?{}:{color:u(e.color)}}};function $(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e==null)return null;if(typeof e!="string")return;const n=e.trim();if(n==="")return null;const o=Number(n);return Number.isFinite(o)?o:void 0}export function chartOfFile(e,n){const o=F(e.labels),s=O(e.type);let l,m;const g=r=>({...r.color===void 0?{}:{color:u(r.color)},...r.format===void 0?{}:{number_format:r.format},...r.smooth===void 0?{}:{smooth:r.smooth},...r.line_width===void 0?{}:{line_width:r.line_width},...r.marker_size===void 0?{}:{marker_size:r.marker_size}});if(e.data!==void 0){let r;try{r=n.rows(e.data)}catch(t){n.problem(`${e.data} cannot be read: ${t instanceof Error?t.message:String(t)}`);return}if(!Array.isArray(r)||r.length===0){n.problem(`${e.data} holds no rows.`);return}const i=r,d=e.categories;if(typeof d!="string"){n.problem("with data, categories names its column.");return}const h=Object.keys(i[0]??{}),y=[d,...e.series.map(t=>typeof t=="string"?t:t.name)].filter(t=>!h.includes(t));if(y.length>0){n.problem(`${e.data} has no column ${y.join(", ")} (it has ${h.join(", ")}).`);return}l=i.map(t=>{const a=t[d];return typeof a=="string"||typeof a=="number"?String(a):""}),m=e.series.map(t=>{const a=typeof t=="string"?t:t.name,x=i.map((c,z)=>{const b=$(c[a]);return b===void 0?(n.problem(`${String(e.data)} row ${String(z+1)}: ${JSON.stringify(c[a])} in ${a} is not a number.`),null):b});return{name:a,values:x,...s?{x:i.map(c=>$(c[d])??null)}:{},...typeof t=="string"?{}:g(t)}})}else{if(typeof e.categories=="string"){n.problem("categories names a column, and there is no data to read.");return}if(e.categories===void 0&&!s){n.problem(`a ${e.type} chart has categories.`);return}l=e.categories??[];const r=[];for(const i of e.series){if(typeof i=="string"||!i.values){const d=typeof i=="string"?i:i.name;n.problem(`series ${d} has no values, and there is no data to read.`);return}if(s){if(i.x?.length!==i.values.length){n.problem(`series ${i.name} has an x for each of its values.`);return}}else i.values.length!==l.length&&n.problem(`series ${i.name} has ${String(i.values.length)} values for ${String(l.length)} categories.`);r.push({name:i.name,values:i.values,...s&&i.x?{x:i.x}:{},...g(i)})}m=r}const f=o?.position;f!==void 0&&!v(e.type).includes(f)&&n.problem(`a ${e.type} chart has no label position ${f}, which PowerPoint would repair (it has ${v(e.type).join(", ")||"none"}).`);const p=w(e.value_axis),_=w(e.category_axis);return{type:e.type,categories:l,series:m,...n.title===void 0?{}:{title:n.title},...e.legend===void 0?{}:{legend:e.legend},...o?{labels:o}:{},...e.gap_width===void 0?{}:{gap_width:e.gap_width},...e.overlap===void 0?{}:{overlap:e.overlap},...e.vary_by_categories===void 0?{}:{vary_by_categories:e.vary_by_categories},...e.category_colors===void 0?{}:{category_colors:e.category_colors.map(u)},...e.hole_size===void 0?{}:{hole_size:e.hole_size},...p?{value_axis:p}:{},..._?{category_axis:_}:{},...e.size===void 0?{}:{font_size:e.size},...e.title_size===void 0?{}:{title_size:e.title_size},...e.color===void 0?{}:{font_color:u(e.color)},...e.data===void 0?{}:{source:S(n.base,e.data)}}}
|
|
@@ -25,7 +25,7 @@ export interface ChartPart {
|
|
|
25
25
|
tail?: string;
|
|
26
26
|
/** Rows a filter or a person hides are left out, as a chart's own option. */
|
|
27
27
|
plotVisible?: boolean;
|
|
28
|
-
/** No fill and no line round the chart's own area: it lies on the page, as a doc's does. */
|
|
28
|
+
/** No fill and no line round the chart's own area or its plot: it lies on the page, as a doc's and a slide's does. */
|
|
29
29
|
frameless?: boolean;
|
|
30
30
|
}
|
|
31
31
|
/** A chart's part. */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{lumOf as X}from"@allyhub/ooxml/brightness";import{accentOf as j,CHART_DEFAULTS as d,chartDrawing as D,groupingOf as z,hasLines as E,hasMarkers as
|
|
3
|
-
`,y="2118791784",x="2140495176",
|
|
2
|
+
import{lumOf as X}from"@allyhub/ooxml/brightness";import{accentOf as j,CHART_DEFAULTS as d,chartDrawing as D,groupingOf as z,hasLines as E,hasMarkers as U,isArea as R,isBar as C,isHorizontal as T,isLine as P,isRound as h,isScatter as k,labelPositionOf as V,variesOf as w}from"./chart.js";const B="http://schemas.openxmlformats.org/drawingml/2006/chart",W="http://schemas.openxmlformats.org/drawingml/2006/main",H="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Z=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3
|
+
`,y="2118791784",x="2140495176",q={"&":"&","<":"<",">":">",'"':"""},K=e=>{const n=e.charCodeAt(0);return n<32&&n!==9&&n!==10&&n!==13||n===65534||n===65535},l=e=>Array.from(e,n=>K(n)?"":q[n]??n).join("");function r(e,n={},...c){const o=Object.entries(n).filter(([,s])=>s!==void 0).map(([s,i])=>` ${s}="${l(typeof i=="boolean"?i?"1":"0":String(i))}"`).join(""),a=c.join("");return a===""?`<${e}${o}/>`:`<${e}${o}>${a}</${e}>`}const Y=e=>{if(typeof e=="string")return r("a:schemeClr",{val:e});if("rgb"in e)return r("a:srgbClr",{val:e.rgb.replace("#","").toUpperCase()});const{lumMod:n,lumOff:c}=X(e.brightness);return r("a:schemeClr",{val:e.theme_color},t("a:lumMod",n),...c===void 0?[]:[t("a:lumOff",c)])},p=e=>e===null?r("a:noFill"):r("a:solidFill",{},Y(e)),t=(e,n)=>r(e,{val:typeof n=="boolean"?n?1:0:n}),m=(e,n)=>r("a:ln",n===void 0?{}:{w:Math.round(n*12700)},p(e)),F=(e,n)=>r("c:txPr",{},r("a:bodyPr"),r("a:lstStyle"),r("a:p",{},r("a:pPr",{},r("a:defRPr",e===void 0?{}:{sz:Math.round(e*100)},n===void 0?"":p(n))),r("a:endParaRPr",{lang:"en-US"}))),S=e=>r("c:strCache",{},t("c:ptCount",e.length),...e.map((n,c)=>r("c:pt",{idx:c},`<c:v>${l(n)}</c:v>`))),A=(e,n)=>r("c:numCache",{},`<c:formatCode>${l(e??"General")}</c:formatCode>`,t("c:ptCount",n.length),...n.flatMap((c,o)=>c===null?[]:[r("c:pt",{idx:o},`<c:v>${String(c)}</c:v>`)])),J=(e,n)=>r("c:tx",{},n===void 0?`<c:v>${l(e.name)}</c:v>`:r("c:strRef",{},`<c:f>${l(n)}</c:f>`,S([e.name]))),Q=(e,n)=>n===void 0?"":r("c:xVal",{},r("c:numRef",{},`<c:f>${l(n)}</c:f>`,A("General",e.x??[])));function ee(e,n,c,o){const a=n.color??j(c),s=h(e.type),i=k(e.type),u=P(e.type)||i,g=U(e.type),N=u?r("c:spPr",{},E(e.type)?m(a,n.line_width??d.lineWidth):r("a:ln",{w:19050},p(null))):r("c:spPr",{},p(a),s?m("lt1",1):""),_=o.categories;return r("c:ser",{},t("c:idx",c),t("c:order",c),J(n,o.name(c)),N,C(e.type)?t("c:invertIfNegative",!1):"",u?r("c:marker",{},t("c:symbol",g?"circle":"none"),g?t("c:size",n.marker_size??d.marker):"",g?r("c:spPr",{},p(a),m(a)):""):"",...w(e)&&!u&&!R(e.type)?e.categories.map((v,f)=>r("c:dPt",{},t("c:idx",f),C(e.type)?t("c:invertIfNegative",!1):"",t("c:bubble3D",!1),r("c:spPr",{},p(e.category_colors?.[f]??j(f)),s?m("lt1",1):""))):[],i?Q(n,o.x?.(c)):_===void 0?"":r("c:cat",{},o.numeric===!0?r("c:numRef",{},`<c:f>${l(_)}</c:f>`,A("General",e.categories.map(v=>{const f=Number(v);return v===""||!Number.isFinite(f)?null:f}))):r("c:strRef",{},`<c:f>${l(_)}</c:f>`,S(e.categories))),r(i?"c:yVal":"c:val",{},r("c:numRef",{},`<c:f>${l(o.values(c))}</c:f>`,A(n.number_format,n.values))),u?t("c:smooth",n.smooth===!0||e.type==="scatter-smooth"):"")}function b(e){const n=e.labels;if(!n)return"";const c=n.show_percentage===!0,o=V(e);return r("c:dLbls",{},n.number_format===void 0?"":r("c:numFmt",{formatCode:n.number_format,sourceLinked:0}),n.size===void 0&&n.color===void 0&&!h(e.type)?"":F(n.size,n.color??(h(e.type)?"lt1":void 0)),o===void 0?"":t("c:dLblPos",o),t("c:showLegendKey",!1),t("c:showVal",n.show_value??!c),t("c:showCatName",n.show_category_name===!0),t("c:showSerName",n.show_series_name===!0),t("c:showPercent",c),t("c:showBubbleSize",!1))}function te(e,n){const c=e.series.map((s,i)=>ee(e,s,i,n)).join(""),o=z(e.type),a=t("c:axId",y)+t("c:axId",x);if(h(e.type)){const s=e.type==="pie";return r(s?"c:pieChart":"c:doughnutChart",{},t("c:varyColors",w(e)),c,b(e),t("c:firstSliceAng",0),s?"":t("c:holeSize",e.hole_size??50))}if(k(e.type))return r("c:scatterChart",{},t("c:scatterStyle","lineMarker"),t("c:varyColors",!1),c,b(e),a);if(C(e.type)){const s=o!=="clustered";return r("c:barChart",{},t("c:barDir",T(e.type)?"bar":"col"),t("c:grouping",o),t("c:varyColors",w(e)),c,b(e),t("c:gapWidth",e.gap_width??150),e.overlap!==void 0||s?t("c:overlap",e.overlap??100):"",a)}return r(P(e.type)?"c:lineChart":"c:areaChart",{},t("c:grouping",o),t("c:varyColors",!1),c,b(e),P(e.type)?t("c:marker",!0):"",a)}const L=e=>r("c:scaling",{},t("c:orientation",e.reverse_order===!0?"maxMin":"minMax"),e.maximum_scale===void 0?"":t("c:max",e.maximum_scale),e.minimum_scale===void 0?"":t("c:min",e.minimum_scale)),O=e=>r("c:spPr",{},m(e.line_color??{rgb:d.axisLine},d.gridWidth)),M=e=>e.has_major_gridlines===!0?r("c:majorGridlines",{},r("c:spPr",{},m(e.gridline_color??{rgb:d.gridline},d.gridWidth))):"",I=(e,n)=>r("c:rich",{},r("a:bodyPr"),r("a:lstStyle"),r("a:p",{},r("a:pPr",{},r("a:defRPr",{sz:n,b:0})),r("a:r",{},r("a:rPr",{lang:"en-US",sz:n,b:0}),`<a:t>${l(e)}</a:t>`))),$=(e,n)=>e===void 0||e===""?"":r("c:title",{},r("c:tx",{},I(e,n)),t("c:overlay",!1));function ne(e){if(h(e.type))return"";const n=k(e.type),c=T(e.type),o=e.category_axis??{},a={has_major_gridlines:!0,...e.value_axis},s=z(e.type)==="percentStacked",i=a.number_format??(s?"0%":e.series[0]?.number_format??"General"),u=Math.round((e.font_size??d.fontSize)*100);return(n?r("c:valAx",{},t("c:axId",y),L(o),t("c:delete",o.visible===!1),t("c:axPos","b"),M(o),$(o.title,u),r("c:numFmt",{formatCode:o.number_format??"General",sourceLinked:o.number_format===void 0?1:0}),t("c:majorTickMark","none"),t("c:minorTickMark","none"),t("c:tickLblPos","nextTo"),O(o),t("c:crossAx",x),t("c:crosses","autoZero"),t("c:crossBetween","midCat"),o.major_unit===void 0?"":t("c:majorUnit",o.major_unit)):r("c:catAx",{},t("c:axId",y),L(o),t("c:delete",o.visible===!1),t("c:axPos",c?"l":"b"),M(o),$(o.title,u),r("c:numFmt",{formatCode:"General",sourceLinked:0}),t("c:majorTickMark","none"),t("c:minorTickMark","none"),t("c:tickLblPos","nextTo"),O(o),t("c:crossAx",x),t("c:crosses","autoZero"),t("c:auto",!0),t("c:lblAlgn","ctr"),t("c:lblOffset",100),t("c:noMultiLvlLbl",!1)))+r("c:valAx",{},t("c:axId",x),L(a),t("c:delete",a.visible===!1),t("c:axPos",c?"b":"l"),M(a),$(a.title,u),r("c:numFmt",{formatCode:i,sourceLinked:a.number_format===void 0&&!s?1:0}),t("c:majorTickMark","none"),t("c:minorTickMark","none"),t("c:tickLblPos","nextTo"),r("c:spPr",{},m(null)),t("c:crossAx",y),t("c:crosses","autoZero"),t("c:crossBetween",R(e.type)||n?"midCat":"between"),a.major_unit===void 0?"":t("c:majorUnit",a.major_unit))}const re={bottom:"b",top:"t",left:"l",right:"r"};function oe(e,n){const c=n.width,o=n.height,{plot:a}=D(e,c,o),s=i=>Number(i.toFixed(5));return r("c:layout",{},r("c:manualLayout",{},t("c:layoutTarget","inner"),t("c:xMode","edge"),t("c:yMode","edge"),t("c:x",s(a.x/c)),t("c:y",s(a.y/o)),t("c:w",s(a.width/c)),t("c:h",s(a.height/o))))}const G=r("c:spPr",{},r("a:noFill"),r("a:ln",{},r("a:noFill")));export function chartSpaceXml(e,n){const c=e.title!==void 0&&e.title!==""?e.title:void 0,o=e.font_size??d.fontSize,a=Math.round((e.title_size??o*d.titleScale)*100);return Z+r("c:chartSpace",{"xmlns:c":B,"xmlns:a":W,"xmlns:r":H},t("c:date1904",!1),t("c:roundedCorners",!1),r("c:chart",{},c===void 0?"":r("c:title",{},r("c:tx",{},n.titleRef===void 0?I(c,a):r("c:strRef",{},`<c:f>${l(n.titleRef)}</c:f>`,S([c]))),t("c:overlay",!1)),t("c:autoTitleDeleted",c===void 0),r("c:plotArea",{},n.frame?oe(e,n.frame):r("c:layout"),te(e,n.refs),ne(e),n.frameless===!0?G:""),e.legend===void 0?"":r("c:legend",{},t("c:legendPos",re[e.legend]),t("c:overlay",e.legend_overlay===!0)),t("c:plotVisOnly",n.plotVisible??!0),t("c:dispBlanksAs","gap")),n.frameless===!0?G:"",F(o,e.font_color??"dk1"),n.tail??"")}
|