allyhub 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/commands/auth.js +4 -4
- package/dist/commands/cloud-tools.js +11 -11
- package/dist/commands/frames/compare.js +2 -2
- package/dist/commands/frames/piece.js +1 -1
- package/dist/commands/frames.js +8 -8
- package/dist/commands/index.js +1 -1
- package/dist/commands/inspect/common.js +4 -2
- package/dist/commands/inspect/facts.js +3 -3
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/orgs.js +2 -2
- package/dist/help.js +4 -4
- package/dist/main.js +8 -7
- package/dist/node_modules/@allyhub/3d-extension/package.json +34 -2
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/package.json +2 -1
- package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +4 -24
- package/dist/node_modules/@allyhub/canvas-model/package.json +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/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +10 -0
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +9 -0
- package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +4 -4
- package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +12 -0
- package/dist/node_modules/@allyhub/cloud/dist/device.js +2 -0
- package/dist/node_modules/@allyhub/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub/components/package.json +1 -1
- package/dist/node_modules/@allyhub/components/r/callout.json +1 -1
- package/dist/node_modules/@allyhub/components/src/callout.ts +98 -13
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
- package/dist/node_modules/@allyhub/doc/dist/html.js +50 -47
- package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/page.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/write.js +22 -22
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +17 -2
- package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
- package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/export/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
- package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +87 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +89 -0
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +50 -0
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +16 -1
- package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +7 -39
- package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
- package/dist/node_modules/@allyhub/image-render/package.json +1 -1
- package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/package.json +7 -4
- package/dist/node_modules/@allyhub/model/package.json +1 -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/dist/layout.d.ts +16 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +6 -0
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/dist/version.js +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +132 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +153 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +4 -2
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +43 -188
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +1 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +51 -91
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +3 -3
- package/dist/node_modules/@allyhub/protocol/package.json +5 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/dist/look.js +1 -1
- package/dist/node_modules/@allyhub/render/package.json +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/player/clips.js +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
- package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
- package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +7 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +4 -3
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.d.ts +8 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +4 -4
- package/dist/node_modules/@allyhub/sheet-extension/package.json +22 -3
- 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/enums.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +20 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
- package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/stage/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +76 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +316 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +316 -0
- package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +3 -0
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +19 -19
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/package.json +16 -1
- package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/dist/held.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +24 -1
- package/dist/node_modules/@allyhub/website-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +49 -2
- package/dist/node_modules/@allyhub/x-extension/package.json +34 -4
- package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +7 -62
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/dist/article.js +1 -1
- package/dist/node_modules/@allyhub/x-view/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/x-view/dist/post.js +2 -2
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/package.json +10 -10
- package/dist/text/facts-text.js +5 -5
- package/dist/text/index.js +1 -1
- package/dist/text/long-text.js +4 -0
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-CN5PiJYY.js → abnfDiagram-WEYOIA3C-CjAmWsNR.js} +1 -1
- package/editor-web/assets/alt-DnBZJzEh.js +4 -0
- package/editor-web/assets/{architecture-WOLXFQ4H-BnvZtQYk.js → architecture-WOLXFQ4H-DeeKhyhZ.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-tkcEcFQ8.js → architectureDiagram-ZHVYKT53-b32qTaJg.js} +1 -1
- package/editor-web/assets/{arrow-up-DTP2yVSU.js → arrow-up-L4YV_65f.js} +1 -1
- package/editor-web/assets/article-DLMjAdbP.js +73 -0
- package/editor-web/assets/{audio-lines-Ti8-m7H2.js → audio-lines-BFcM7G2L.js} +1 -1
- package/editor-web/assets/{blockDiagram-RJAE7QA3-DhqEIpie.js → blockDiagram-RJAE7QA3-BNbnMNmw.js} +1 -1
- package/editor-web/assets/button-Chk675Xu.js +41 -0
- package/editor-web/assets/{c4Diagram-XDPPPE54-Bg9G95tl.js → c4Diagram-XDPPPE54-BEuemvMw.js} +1 -1
- package/editor-web/assets/calc-worker-D2pGis6e.js +45 -0
- package/editor-web/assets/channel-EzYq4r0d.js +1 -0
- package/editor-web/assets/chart-Be9Hj5GL.js +1 -0
- package/editor-web/assets/choice-BgmBh4yu.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-C8Ve9lAa.js → chunk-2E7WHVMD-Zb5nPx_e.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-BDWwPUnT.js → chunk-4EMNKR2T-DSEM2reX.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BQiNPKgx.js → chunk-55XCU76K-BOZa_65H.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-QoEt-6jf.js → chunk-7S6XSTFO-DeiGeVpB.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-BeuwIv0-.js → chunk-AQDTSKZB-fPuQFBJc.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-BHW7sLAz.js → chunk-DSNLSHJZ-5vdnoak2.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-bbGED0hu.js → chunk-HAGFOTED-DFF2mZJ1.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-FltWp8yo.js → chunk-HNE4Q36P-g6-ZLbTg.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-NeQzr6kH.js → chunk-NQOKRVIF-o3hNcHMJ.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-eA4-WUhn.js → chunk-UHW7PFBP-BQiDI9dK.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-BPPv325z.js → chunk-VQ5W62QI-CJlMXWWz.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-DOCIz7Te.js → chunk-WQQL4CDK-pNBU8dXv.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-Dc_ihQJi.js → chunk-YZO67HFG-2x-BiWd-.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-CoqwCPSm.js → chunk-ZAUX2LTX-etFStEM8.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-CZUQPkJx.js → chunk-ZCHMQSOR-B3AYRhIY.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-DUh9c50k.js → classDiagram-v2-4MYWR3UA-6y2yX0oq.js} +1 -1
- package/editor-web/assets/collaborator-LRd0hELn.js +1 -0
- package/editor-web/assets/createLucideIcon-CPS-TrJJ.js +1 -0
- package/editor-web/assets/{cynefin-EF2NZ3EQ-DUTZiog0.js → cynefin-EF2NZ3EQ-CX4BTQQe.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-oAjpfbrU.js → cynefinDiagram-WF24UDRP-LbDkOTy3.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-BrKvKCvb.js → dagre-NK4GIZVX-wCKQk7hi.js} +1 -1
- package/editor-web/assets/{diagram-CBK3MWTC-GekVRnmm.js → diagram-CBK3MWTC-a9fofQwk.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-CDd1VFRT.js → diagram-I5XIIV2D-UCLZWch5.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-535RISTn.js → diagram-ODIL2UCW-CAEe88Lp.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-MXzzKCGG.js → diagram-PFBEJUXE-Cp1o45bs.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-vKVwkQxY.js → diagram-RJA3I4VV-c6OVxDyq.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-UwGAiQLx.js → diagram-TYUNFSNR-BVRWslDM.js} +1 -1
- package/editor-web/assets/{dist-CKyfo5RM.js → dist--KKyT5zP.js} +1 -1
- package/editor-web/assets/dist-1k0MHB3i.js +1 -0
- package/editor-web/assets/dist-B9KHJqL5.js +4 -0
- package/editor-web/assets/dist-BbJyrhIY.js +1 -0
- package/editor-web/assets/dist-CJXCQxQM.js +37 -0
- package/editor-web/assets/dist-D9xQGwe9.js +5 -0
- package/editor-web/assets/dist-DFiLzbx8.js +219 -0
- package/editor-web/assets/{dist-shKo7XVN.js → dist-DIPV6xfF.js} +1 -1
- package/editor-web/assets/dist-Dp-fQMtx.js +6 -0
- package/editor-web/assets/dist-Duw28VxJ.js +16 -0
- package/editor-web/assets/{dist-9ymlIMhr.js → dist-DwGhfliS.js} +1 -1
- package/editor-web/assets/dist-OBE2IIYP.js +24 -0
- package/editor-web/assets/dist-j6ZLVcgf.js +38 -0
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-73yGokYa.js → ebnfDiagram-V4P3TTPT-KdOTJgFu.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-BW6V9y6a.js → elk-QONTBCTQ-Cmlrp7qB.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-BPqIJ22h.js → erDiagram-KYQIGQAA-CBM7-aQm.js} +1 -1
- package/editor-web/assets/{eventmodeling-K75KTNOO-_VZ8jvuy.js → eventmodeling-K75KTNOO-CEoJkbuW.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-Xm2E2ib_.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-DZ157JN2.js → ganttDiagram-R7GPNTJY-D4S6ZSYD.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-fmcNL9bq.js → gitGraph-VSP46ZUC-BvkL6RSh.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-DiZDyksR.js → gitGraphDiagram-PDYL7XHY-lTGguloH.js} +1 -1
- package/editor-web/assets/hint-BimUgJms.js +1 -0
- package/editor-web/assets/index-C-i_iuxN.js +28 -0
- package/editor-web/assets/index-Cxh_Shkm.css +2 -0
- package/editor-web/assets/{info-OHQRW6UA-V06620kN.js → info-OHQRW6UA-DvKzqNvp.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-CbIgheWX.js → infoDiagram-MVDRKAX5-D7hCpehs.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-D5oJQPkG.js → ishikawaDiagram-HPEHV2GE-Bg93sZQe.js} +1 -1
- package/editor-web/assets/{italic-CDhZKo_q.js → italic-BQBwRTe8.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-BZEv6JI4.js → journeyDiagram-BOSHW7O7-CKm_KONJ.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-CLG1R8y_.js → kanban-definition-FNSA4HC5-BKknnpTR.js} +1 -1
- package/editor-web/assets/{mermaid-parser.core-DxDwXM7z.js → mermaid-parser.core-BzqkDnqL.js} +3 -3
- package/editor-web/assets/{mermaid.core-tU55ZwVG.js → mermaid.core-CEpvTOAe.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-CYf4zzAh.js → mindmap-definition-6OY57UG3-BJ0qG8Wi.js} +1 -1
- package/editor-web/assets/minus-oPj1GxwA.js +1 -0
- package/editor-web/assets/{packet-JDAUHWVQ-DsHeKYNL.js → packet-JDAUHWVQ-ew3kvyFm.js} +1 -1
- package/editor-web/assets/{pegDiagram-ECIUJNBX-CQyh6TTa.js → pegDiagram-ECIUJNBX-DqUS2xit.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-3vCIvpNB.js → pie-XZMESJXO-DTIAMPGm.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-DF5yGBLn.js → pieDiagram-GNMPY74T-DoKOE02-.js} +1 -1
- package/editor-web/assets/progress-CPEbDOoN.js +6 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-B7pxlDYP.js → quadrantDiagram-D57K4MC3-DauOpYun.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-cpEA41mL.js → radar-ABXABTNO-BvMJXUU-.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-BLyy5R2c.js → railroad-I3PHUGI6-D3jdJmhM.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-Y-oyol19.js → railroad-abnf-LNEFI6M7-Dm8ZpmPj.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-o58wHZsr.js → railroad-ebnf-DWYD2UWJ-oc0Du7Ag.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-CcD3PXZ8.js → railroad-peg-JR7BVNR7-CMrQL_7U.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-BuCC4eyy.js → railroadDiagram-Y72NRBL7-y99z0C7i.js} +1 -1
- package/editor-web/assets/react-DztDSW4P.js +1 -0
- package/editor-web/assets/{repeat-2-C5PCbNsg.js → repeat-2-DJi4LW5C.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-Dp-JFGn4.js → requirementDiagram-EQYSW5RA-jMr_uoF6.js} +1 -1
- package/editor-web/assets/row-ClBisiBs.js +1 -0
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-rYuCqEvw.js → sankeyDiagram-SY24JHO5-DcUyx03Q.js} +1 -1
- package/editor-web/assets/schemas-68mjUjP5.js +1 -0
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-DryW8x6d.js → sequenceDiagram-BLEHNHQU-R4X8wRCd.js} +1 -1
- package/editor-web/assets/session-2u9U7koW.js +1 -0
- package/editor-web/assets/slides-BByblSSR.js +1 -0
- package/editor-web/assets/snapshots-C9KV-Y2_.js +56 -0
- package/editor-web/assets/sound-DExlNJbb.js +1 -0
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-Bnp0XfpT.js → stateDiagram-v2-A6IESKWZ-BqvXKbCA.js} +1 -1
- package/editor-web/assets/{strikethrough-DJckA35o.js → strikethrough-CyUBnGTl.js} +1 -1
- package/editor-web/assets/{svg-BjM9RazX.js → svg-lBRT-uhy.js} +1 -1
- package/editor-web/assets/swatch-1c1uVn1z.js +1 -0
- package/editor-web/assets/{swimlanes-B3ENRKFQ-BiRRhhbd.js → swimlanes-B3ENRKFQ-hjTXIc6M.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BLfytmPY.js +8 -0
- package/editor-web/assets/switch-D0K-K8-C.js +1 -0
- package/editor-web/assets/{syntax-CC6QYhCz.js → syntax-Bih_jv7W.js} +1 -1
- package/editor-web/assets/tabs-CxxOnGLR.js +1 -0
- package/editor-web/assets/{textarea-BGtPqZdB.js → textarea-Fu93tFO3.js} +1 -1
- package/editor-web/assets/{timeline-definition-JXYKGLGB-D-Q5ZtDF.js → timeline-definition-JXYKGLGB-BcSoN4Dq.js} +1 -1
- package/editor-web/assets/{trash-2-Bjj6cWzP.js → trash-2-BAKAeziW.js} +1 -1
- package/editor-web/assets/{treeView-D4JQ5SDB-B6DDatXq.js → treeView-D4JQ5SDB-CsFN2jrc.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-D7j5ZhiI.js → treemap-SAJKECNS-DP1eqXJ2.js} +1 -1
- package/editor-web/assets/{undo-2-yOSG766T.js → undo-2-DQ5CBmki.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-tkrdKUJB.js → usecaseDiagram-WPOLBNNX-BGxa0osF.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-Ch4XbSnD.js → vennDiagram-Q3Y3IDCW-D2XhTF49.js} +1 -1
- package/editor-web/assets/video-CDbPX4Cr.js +1 -0
- package/editor-web/assets/{wardley-7MLQ67FV-Bynt7qNQ.js → wardley-7MLQ67FV-DM3jMAbZ.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-DRuSgm_L.js → wardleyDiagram-IVAIDKWA-Bf-DaZEg.js} +1 -1
- package/editor-web/assets/{xychartDiagram-4URNHDU4-DctpvfkL.js → xychartDiagram-4URNHDU4-dp-mdcWd.js} +1 -1
- package/editor-web/index.html +6 -5
- package/package.json +2 -2
- package/editor-web/assets/alt-BOVao_9S.js +0 -4
- package/editor-web/assets/article-B6YCzhj8.js +0 -73
- package/editor-web/assets/calc-worker-B5-fDWnb.js +0 -45
- package/editor-web/assets/channel-C26aBI4o.js +0 -1
- package/editor-web/assets/chart-BOnxneyw.js +0 -1
- package/editor-web/assets/choice-O5nwc2N0.js +0 -1
- package/editor-web/assets/collaborator-BJU5qwHd.js +0 -1
- package/editor-web/assets/createLucideIcon-B3B95oX5.js +0 -1
- package/editor-web/assets/dist-C6NqUEG4.js +0 -16
- package/editor-web/assets/dist-C9UGmCG9.js +0 -6
- package/editor-web/assets/dist-CAk5bjBm.js +0 -1
- package/editor-web/assets/dist-CRaWqNwq.js +0 -37
- package/editor-web/assets/dist-CwIBc7HQ.js +0 -1
- package/editor-web/assets/dist-DXRmkezB.js +0 -38
- package/editor-web/assets/dist-EKK5i0dG.js +0 -219
- package/editor-web/assets/dist-hHJlpLWo.js +0 -5
- package/editor-web/assets/dist-oYKcwWUj.js +0 -4
- package/editor-web/assets/dist-wrKxBrVu.js +0 -24
- package/editor-web/assets/flowDiagram-IUGLLWBU-ouDQYiTr.js +0 -1
- package/editor-web/assets/hint-_AQWCDMj.js +0 -1
- package/editor-web/assets/index-BsstP-cI.js +0 -28
- package/editor-web/assets/index-DQRcmxBO.css +0 -2
- package/editor-web/assets/minus-Cgmm6ncD.js +0 -1
- package/editor-web/assets/progress-0B_TVsPi.js +0 -6
- package/editor-web/assets/react-BP46yLMB.js +0 -1
- package/editor-web/assets/react-pgBZqVxJ.js +0 -96
- package/editor-web/assets/schemas-Ewwjtbf4.js +0 -1
- package/editor-web/assets/session-DiI9KYRI.js +0 -1
- package/editor-web/assets/slides-CCwgBcGH.js +0 -1
- package/editor-web/assets/sound-CqryteNl.js +0 -1
- package/editor-web/assets/swatch-DL3HqIjW.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BkOls8Tv.js +0 -8
- package/editor-web/assets/switch-DltnKqN-.js +0 -1
- package/editor-web/assets/tabs-C-re0Kxn.js +0 -1
- package/editor-web/assets/video-DXFiCNGc.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as t}from"zod";import{openEnum as n}from"./open.js";export const MAIL_LIMITS={listed:100,textBytes:256*1024,aliases:20,recipients:50,subject:998,body:1024*1024,attachmentBytes:10*1024*1024,attachments:32,retentionDays:{min:1,max:365}},MAIL_AGENT_WORDS="AI agent",MAIL_NAME_LENGTH={min:2,max:40};export function mailNameProblem(e){if(e.length<MAIL_NAME_LENGTH.min||e.length>MAIL_NAME_LENGTH.max)return`A name is ${String(MAIL_NAME_LENGTH.min)} to ${String(MAIL_NAME_LENGTH.max)} characters.`;if(!/^[a-z0-9-]+$/u.test(e))return"A name is lowercase letters, digits and hyphens.";if(e.startsWith("-")||e.endsWith("-"))return"A name neither starts nor ends with a hyphen.";if(e.includes("--"))return"A name does not have two hyphens in a row."}export const MailNameSchema=t.string().superRefine((e,r)=>{const a=mailNameProblem(e);a!==void 0&&r.addIssue({code:"custom",message:a})}),MAIL_PATH="/api/mail",MAIL_SETTINGS_PATH="/api/mail/settings",MAIL_PERSON_QUERY="person=1",MAIL_SEND_PATH="/api/mail/send",MAIL_ALIASES_PATH="/api/mail/aliases",MAIL_MESSAGES_PATH="/api/mail/messages",mailMessagePath=e=>`${MAIL_MESSAGES_PATH}/${encodeURIComponent(e)}`,mailRawPath=e=>`${mailMessagePath(e)}/raw`,mailReplyPath=e=>`${mailMessagePath(e)}/reply`,MAIL_SEND_POLICIES=["off","team","anyone"],MAIL_DIRECTIONS=["in","out"],MAIL_ADDRESS_KINDS=["main","alias"],MailAddressSchema=t.object({address:t.string(),kind:n(MAIL_ADDRESS_KINDS),project:t.string().nullable(),createdAt:t.string()}),MailboxSchema=t.object({domain:t.string(),displayName:t.string(),retentionDays:t.number(),sendPolicy:n(MAIL_SEND_POLICIES),sendsLeft:t.number(),addresses:t.array(MailAddressSchema)}),MailAliasCreateSchema=t.strictObject({name:MailNameSchema,project:t.string().min(1).max(200).optional()}),MailPersonSchema=t.object({address:t.string(),name:t.string()}),MailSummarySchema=t.object({id:t.string(),direction:n(MAIL_DIRECTIONS),receivedAt:t.string(),to:t.string(),tag:t.string().nullable(),from:MailPersonSchema.nullable(),recipients:t.array(MailPersonSchema).default([]),subject:t.string(),threadId:t.string(),size:t.number()}),MailLinkSchema=t.object({href:t.string(),text:t.string()}),MailHeaderSchema=t.object({name:t.string(),value:t.string()}),MailAttachmentSchema=t.object({name:t.string().nullable(),type:t.string(),size:t.number()}),MailMessageSchema=MailSummarySchema.extend({cc:t.array(MailPersonSchema),replyTo:t.array(MailPersonSchema),date:t.string().nullable(),messageId:t.string().nullable(),inReplyTo:t.string().nullable(),references:t.array(t.string()),text:t.string(),textCut:t.boolean(),links:t.array(MailLinkSchema),headers:t.array(MailHeaderSchema),attachments:t.array(MailAttachmentSchema),html:t.string().optional()}),MAIL_ORDERS=["newest","oldest"],MailSearchSchema=t.strictObject({to:t.string().min(1).max(320).optional(),from:t.string().min(1).max(320).optional(),subject:t.string().min(1).max(500).optional(),text:t.string().min(1).max(500).optional(),project:t.string().min(1).max(200).optional(),thread:t.string().min(1).max(200).optional(),direction:t.enum(MAIL_DIRECTIONS).optional(),since:t.iso.datetime({offset:!0}).optional(),order:t.enum(MAIL_ORDERS).default("newest"),limit:t.coerce.number().int().min(1).max(MAIL_LIMITS.listed).default(20)}),MailSearchResponseSchema=t.object({messages:t.array(MailSummarySchema)});const i=t.email().max(320);export const MailAttachmentSendSchema=t.strictObject({name:t.string().min(1).max(255),type:t.string().min(1).max(255),content:t.base64()});const s={text:t.string().max(MAIL_LIMITS.body),html:t.string().max(MAIL_LIMITS.body).optional(),attachments:t.array(MailAttachmentSendSchema).max(MAIL_LIMITS.attachments).optional(),from:t.string().min(3).max(320).optional()};export const MailSendSchema=t.strictObject({to:t.array(i).min(1).max(MAIL_LIMITS.recipients),cc:t.array(i).max(MAIL_LIMITS.recipients).optional(),subject:t.string().max(MAIL_LIMITS.subject),...s}),MailReplySchema=t.strictObject({all:t.boolean().optional(),...s}),MailSettingsSchema=t.strictObject({displayName:t.string().min(1).max(100).refine(e=>e.toLowerCase().includes(MAIL_AGENT_WORDS.toLowerCase()),{message:`A display name says "${MAIL_AGENT_WORDS}", so a recipient knows who writes.`}).optional(),sendPolicy:t.enum(MAIL_SEND_POLICIES).optional(),retentionDays:t.number().int().min(MAIL_LIMITS.retentionDays.min).max(MAIL_LIMITS.retentionDays.max).optional()});
|
|
2
|
+
import{z as t}from"zod";import{openEnum as n}from"./open.js";export const MAIL_LIMITS={listed:100,textBytes:256*1024,aliases:20,recipients:50,subject:998,body:1024*1024,attachmentBytes:10*1024*1024,attachments:32,retentionDays:{min:1,max:365}},MAIL_AGENT_WORDS="AI agent",MAIL_NAME_LENGTH={min:2,max:40};export function mailNameProblem(e){if(e.length<MAIL_NAME_LENGTH.min||e.length>MAIL_NAME_LENGTH.max)return`A name is ${String(MAIL_NAME_LENGTH.min)} to ${String(MAIL_NAME_LENGTH.max)} characters.`;if(!/^[a-z0-9-]+$/u.test(e))return"A name is lowercase letters, digits and hyphens.";if(e.startsWith("-")||e.endsWith("-"))return"A name neither starts nor ends with a hyphen.";if(e.includes("--"))return"A name does not have two hyphens in a row."}export const MailNameSchema=t.string().superRefine((e,r)=>{const a=mailNameProblem(e);a!==void 0&&r.addIssue({code:"custom",message:a})}),MAIL_PATH="/api/mail",MAIL_SETTINGS_PATH="/api/mail/settings",MAIL_PERSON_QUERY="person=1",MAIL_SEND_PATH="/api/mail/send",MAIL_ALIASES_PATH="/api/mail/aliases",MAIL_MESSAGES_PATH="/api/mail/messages",mailMessagePath=e=>`${MAIL_MESSAGES_PATH}/${encodeURIComponent(e)}`,mailRawPath=e=>`${mailMessagePath(e)}/raw`,mailReplyPath=e=>`${mailMessagePath(e)}/reply`,MAIL_SEND_POLICIES=["off","team","anyone"],MAIL_DIRECTIONS=["in","out"],MAIL_ADDRESS_KINDS=["main","alias"],MailAddressSchema=t.object({address:t.string(),kind:n(MAIL_ADDRESS_KINDS),project:t.string().nullable(),createdAt:t.string()}),MailboxSchema=t.object({domain:t.string(),displayName:t.string(),retentionDays:t.number(),sendPolicy:n(MAIL_SEND_POLICIES),sendsLeft:t.number(),sendsPerDay:t.number().optional(),addresses:t.array(MailAddressSchema)}),MailAliasCreateSchema=t.strictObject({name:MailNameSchema,project:t.string().min(1).max(200).optional()}),MailPersonSchema=t.object({address:t.string(),name:t.string()}),MailSummarySchema=t.object({id:t.string(),direction:n(MAIL_DIRECTIONS),receivedAt:t.string(),to:t.string(),tag:t.string().nullable(),from:MailPersonSchema.nullable(),recipients:t.array(MailPersonSchema).default([]),subject:t.string(),threadId:t.string(),size:t.number()}),MailLinkSchema=t.object({href:t.string(),text:t.string()}),MailHeaderSchema=t.object({name:t.string(),value:t.string()}),MailAttachmentSchema=t.object({name:t.string().nullable(),type:t.string(),size:t.number()}),MailMessageSchema=MailSummarySchema.extend({cc:t.array(MailPersonSchema),replyTo:t.array(MailPersonSchema),date:t.string().nullable(),messageId:t.string().nullable(),inReplyTo:t.string().nullable(),references:t.array(t.string()),text:t.string(),textCut:t.boolean(),links:t.array(MailLinkSchema),headers:t.array(MailHeaderSchema),attachments:t.array(MailAttachmentSchema),html:t.string().optional()}),MAIL_ORDERS=["newest","oldest"],MailSearchSchema=t.strictObject({to:t.string().min(1).max(320).optional(),from:t.string().min(1).max(320).optional(),subject:t.string().min(1).max(500).optional(),text:t.string().min(1).max(500).optional(),project:t.string().min(1).max(200).optional(),thread:t.string().min(1).max(200).optional(),direction:t.enum(MAIL_DIRECTIONS).optional(),since:t.iso.datetime({offset:!0}).optional(),order:t.enum(MAIL_ORDERS).default("newest"),limit:t.coerce.number().int().min(1).max(MAIL_LIMITS.listed).default(20)}),MailSearchResponseSchema=t.object({messages:t.array(MailSummarySchema)});const i=t.email().max(320);export const MailAttachmentSendSchema=t.strictObject({name:t.string().min(1).max(255),type:t.string().min(1).max(255),content:t.base64()});const s={text:t.string().max(MAIL_LIMITS.body),html:t.string().max(MAIL_LIMITS.body).optional(),attachments:t.array(MailAttachmentSendSchema).max(MAIL_LIMITS.attachments).optional(),from:t.string().min(3).max(320).optional()};export const MailSendSchema=t.strictObject({to:t.array(i).min(1).max(MAIL_LIMITS.recipients),cc:t.array(i).max(MAIL_LIMITS.recipients).optional(),subject:t.string().max(MAIL_LIMITS.subject),...s}),MailReplySchema=t.strictObject({all:t.boolean().optional(),...s}),MailSettingsSchema=t.strictObject({displayName:t.string().min(1).max(100).refine(e=>e.toLowerCase().includes(MAIL_AGENT_WORDS.toLowerCase()),{message:`A display name says "${MAIL_AGENT_WORDS}", so a recipient knows who writes.`}).optional(),sendPolicy:t.enum(MAIL_SEND_POLICIES).optional(),retentionDays:t.number().int().min(MAIL_LIMITS.retentionDays.min).max(MAIL_LIMITS.retentionDays.max).optional()});
|
|
@@ -47,44 +47,6 @@ export declare const NoteShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
47
47
|
}, z.core.$strict>>;
|
|
48
48
|
}, z.core.$strict>], "kind">;
|
|
49
49
|
export { mapShape, pointsOf, touches };
|
|
50
|
-
/** A mark's shape in the units of the anchor it is pinned to. */
|
|
51
|
-
export declare const AnchoredShapeSchema: z.ZodObject<{
|
|
52
|
-
anchor: z.ZodString;
|
|
53
|
-
shape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
54
|
-
kind: z.ZodLiteral<"box">;
|
|
55
|
-
rect: z.ZodObject<{
|
|
56
|
-
x: z.ZodNumber;
|
|
57
|
-
y: z.ZodNumber;
|
|
58
|
-
width: z.ZodNumber;
|
|
59
|
-
height: z.ZodNumber;
|
|
60
|
-
}, z.core.$strict>;
|
|
61
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
62
|
-
kind: z.ZodLiteral<"round">;
|
|
63
|
-
rect: z.ZodObject<{
|
|
64
|
-
x: z.ZodNumber;
|
|
65
|
-
y: z.ZodNumber;
|
|
66
|
-
width: z.ZodNumber;
|
|
67
|
-
height: z.ZodNumber;
|
|
68
|
-
}, z.core.$strict>;
|
|
69
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
70
|
-
kind: z.ZodLiteral<"arrow">;
|
|
71
|
-
from: z.ZodObject<{
|
|
72
|
-
x: z.ZodNumber;
|
|
73
|
-
y: z.ZodNumber;
|
|
74
|
-
}, z.core.$strict>;
|
|
75
|
-
to: z.ZodObject<{
|
|
76
|
-
x: z.ZodNumber;
|
|
77
|
-
y: z.ZodNumber;
|
|
78
|
-
}, z.core.$strict>;
|
|
79
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
80
|
-
kind: z.ZodLiteral<"line">;
|
|
81
|
-
points: z.ZodArray<z.ZodObject<{
|
|
82
|
-
x: z.ZodNumber;
|
|
83
|
-
y: z.ZodNumber;
|
|
84
|
-
}, z.core.$strict>>;
|
|
85
|
-
}, z.core.$strict>], "kind">;
|
|
86
|
-
}, z.core.$strict>;
|
|
87
|
-
export type AnchoredShape = z.infer<typeof AnchoredShapeSchema>;
|
|
88
50
|
export type { NoteShape };
|
|
89
51
|
/** Where to change something: a project's file, and its line. */
|
|
90
52
|
export declare const NoteSourceSchema: z.ZodObject<{
|
|
@@ -103,39 +65,6 @@ export declare const HeldSchema: z.ZodObject<{
|
|
|
103
65
|
}, z.core.$strict>>;
|
|
104
66
|
}, z.core.$strict>;
|
|
105
67
|
export type Held = z.infer<typeof HeldSchema>;
|
|
106
|
-
/**
|
|
107
|
-
* Where an anchor is on the card now: card px = origin + the anchor's own
|
|
108
|
-
* units × scale, on each axis (a timeline's seconds and its rows zoom apart),
|
|
109
|
-
* seen through `clip`, the box of what scrolls it. Null where it is not on
|
|
110
|
-
* show: another slide, another moment, scrolled out of what is drawn, gone.
|
|
111
|
-
*/
|
|
112
|
-
export declare const NotePlacementSchema: z.ZodNullable<z.ZodObject<{
|
|
113
|
-
x: z.ZodNumber;
|
|
114
|
-
y: z.ZodNumber;
|
|
115
|
-
sx: z.ZodNumber;
|
|
116
|
-
sy: z.ZodNumber;
|
|
117
|
-
clip: z.ZodObject<{
|
|
118
|
-
x: z.ZodNumber;
|
|
119
|
-
y: z.ZodNumber;
|
|
120
|
-
width: z.ZodNumber;
|
|
121
|
-
height: z.ZodNumber;
|
|
122
|
-
}, z.core.$strict>;
|
|
123
|
-
}, z.core.$strict>>;
|
|
124
|
-
export type NotePlacement = z.infer<typeof NotePlacementSchema>;
|
|
125
|
-
/** Anchors by id, and where each is. */
|
|
126
|
-
export declare const NotePlacementsSchema: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodObject<{
|
|
127
|
-
x: z.ZodNumber;
|
|
128
|
-
y: z.ZodNumber;
|
|
129
|
-
sx: z.ZodNumber;
|
|
130
|
-
sy: z.ZodNumber;
|
|
131
|
-
clip: z.ZodObject<{
|
|
132
|
-
x: z.ZodNumber;
|
|
133
|
-
y: z.ZodNumber;
|
|
134
|
-
width: z.ZodNumber;
|
|
135
|
-
height: z.ZodNumber;
|
|
136
|
-
}, z.core.$strict>;
|
|
137
|
-
}, z.core.$strict>>>;
|
|
138
|
-
export type NotePlacements = z.infer<typeof NotePlacementsSchema>;
|
|
139
68
|
export declare const NotePictureSchema: z.ZodObject<{
|
|
140
69
|
rect: z.ZodOptional<z.ZodObject<{
|
|
141
70
|
x: z.ZodNumber;
|
|
@@ -183,31 +112,62 @@ export declare const NoteElementSchema: z.ZodObject<{
|
|
|
183
112
|
}, z.core.$strict>>>;
|
|
184
113
|
}, z.core.$strict>;
|
|
185
114
|
export type NoteElement = z.infer<typeof NoteElementSchema>;
|
|
115
|
+
/** What a mark is on, as a surface answers: the elements under it, and where it is in words. */
|
|
116
|
+
export declare const NoteFoundSchema: z.ZodObject<{
|
|
117
|
+
elements: z.ZodArray<z.ZodObject<{
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
120
|
+
path: z.ZodString;
|
|
121
|
+
line: z.ZodOptional<z.ZodInt>;
|
|
122
|
+
endLine: z.ZodOptional<z.ZodInt>;
|
|
123
|
+
}, z.core.$strict>>;
|
|
124
|
+
text: z.ZodOptional<z.ZodString>;
|
|
125
|
+
regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
126
|
+
in: z.ZodString;
|
|
127
|
+
file: z.ZodOptional<z.ZodString>;
|
|
128
|
+
width: z.ZodNumber;
|
|
129
|
+
height: z.ZodNumber;
|
|
130
|
+
path: z.ZodString;
|
|
131
|
+
area: z.ZodBoolean;
|
|
132
|
+
scale: z.ZodNumber;
|
|
133
|
+
}, z.core.$strict>>>;
|
|
134
|
+
}, z.core.$strict>>;
|
|
135
|
+
where: z.ZodOptional<z.ZodString>;
|
|
136
|
+
}, z.core.$strict>;
|
|
137
|
+
export type NoteFound = z.infer<typeof NoteFoundSchema>;
|
|
186
138
|
/**
|
|
187
|
-
* What
|
|
188
|
-
* show.
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
139
|
+
* What every editor gives its host for notes on it, for as long as it is on
|
|
140
|
+
* show (docs/design/notes.md, "The contract"): Mark up takes a picture of
|
|
141
|
+
* the page and the person marks it. From `hold` to `release` nothing on
|
|
142
|
+
* show changes: the editor stops what moves by itself, and the page holds
|
|
143
|
+
* back what its host tells it. The page draws itself; what it cannot draw
|
|
144
|
+
* (a frame, a WebGL view, a video) is an inset's (`NoteInset`). Points and
|
|
145
|
+
* shapes are px of the page.
|
|
192
146
|
*/
|
|
193
147
|
export interface NoteSurface {
|
|
194
|
-
/** Stops what moves by itself (playback) and says what is on show. Answered once it is drawn. */
|
|
148
|
+
/** Stops what moves by itself (playback, an animation) and says what is on show. Answered once it is drawn. */
|
|
195
149
|
hold(): Promise<Held>;
|
|
196
|
-
/**
|
|
197
|
-
|
|
198
|
-
/** Where one of its own anchors is now; undefined where the id is not its own. */
|
|
199
|
-
placement?(anchor: string): NotePlacement | undefined;
|
|
200
|
-
/** Calls `moved` whenever its anchors may have moved (a scroll of its own, a zoom, a turn, a seek); answers how to stop. */
|
|
201
|
-
onMoved?(moved: () => void): () => void;
|
|
202
|
-
/** Where a place is, in words for the agent: "under the heading Pricing", "slide 4", "at 3.20 s". */
|
|
203
|
-
where?(at: NotePoint): string | undefined;
|
|
204
|
-
/** What is on show drawn better than the page draws it, each at its rect. */
|
|
205
|
-
pictures?(): Promise<NotePicture[]>;
|
|
206
|
-
/** What a mark is on, while it is on show. */
|
|
207
|
-
locate?(mark: NoteShape): Promise<NoteElement[]>;
|
|
208
|
-
/** Brings a point of one of its own anchors back on show (turns to the slide, seeks the moment); false where it cannot. */
|
|
209
|
-
show?(anchor: string, at: NotePoint): Promise<boolean>;
|
|
150
|
+
/** What a mark is on, among what the editor draws in the page itself; insets answer for theirs. Empty is an answer. */
|
|
151
|
+
locate(mark: NoteShape): Promise<NoteFound>;
|
|
210
152
|
/** The person is done. Nothing starts by itself: a video that was paused stays paused. */
|
|
211
153
|
release?(): void;
|
|
212
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* A box of the page that draws itself and answers for what is in it: a
|
|
157
|
+
* stage's frame, a 3D view, a video, an item embedded in another. Whatever
|
|
158
|
+
* puts in the page what the page cannot draw gives one, whichever
|
|
159
|
+
* extension it is; insets nest by where they are, the page composes them
|
|
160
|
+
* and never asks what they show.
|
|
161
|
+
*/
|
|
162
|
+
export interface NoteInset {
|
|
163
|
+
/** The part of it that shows, px of the page (cut by what scrolls or clips it): its pictures are cut to it. None while it is not on show. */
|
|
164
|
+
box(): NoteRect | undefined;
|
|
165
|
+
/** It drawn as it shows now, each part at its rect in px of the page; none where the page draws it. */
|
|
166
|
+
pictures?(): Promise<NotePicture[]>;
|
|
167
|
+
/** What a mark (px of the page) is on inside it. */
|
|
168
|
+
locate?(mark: NoteShape): Promise<NoteFound>;
|
|
169
|
+
/** Stops what moves by itself in it. */
|
|
170
|
+
hold?(): Promise<void>;
|
|
171
|
+
release?(): void;
|
|
172
|
+
}
|
|
213
173
|
//# sourceMappingURL=notes.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as t}from"zod";import{pointsOf as i,mapShape as
|
|
2
|
+
import{z as t}from"zod";import{pointsOf as i,mapShape as o,touches as n}from"@allyhub/formats";import{PathSchema as e}from"./files.js";export const NoteRectSchema=t.strictObject({x:t.number(),y:t.number(),width:t.number().nonnegative(),height:t.number().nonnegative()}),NotePointSchema=t.strictObject({x:t.number(),y:t.number()}),NoteShapeSchema=t.discriminatedUnion("kind",[t.strictObject({kind:t.literal("box"),rect:NoteRectSchema}),t.strictObject({kind:t.literal("round"),rect:NoteRectSchema}),t.strictObject({kind:t.literal("arrow"),from:NotePointSchema,to:NotePointSchema}),t.strictObject({kind:t.literal("line"),points:t.array(NotePointSchema).min(1)})]);export{o as mapShape,i as pointsOf,n as touches};export const NoteSourceSchema=t.strictObject({path:e,line:t.int().positive().optional(),endLine:t.int().positive().optional()}),HeldSchema=t.strictObject({key:t.string().min(1),what:t.string(),source:NoteSourceSchema.optional()}),NotePictureSchema=t.strictObject({rect:NoteRectSchema.optional(),mime:t.string().min(1),data:t.string().min(1)}),NoteRegionSchema=t.strictObject({in:t.string().min(1),file:e.optional(),width:t.number().positive(),height:t.number().positive(),path:t.string().min(1),area:t.boolean(),scale:t.number().positive()}),NoteElementSchema=t.strictObject({name:t.string().min(1),source:NoteSourceSchema.optional(),text:t.string().optional(),regions:t.array(NoteRegionSchema).optional()}),NoteFoundSchema=t.strictObject({elements:t.array(NoteElementSchema),where:t.string().optional()});
|
|
@@ -29,8 +29,8 @@ export declare const CHECK_STATES: readonly ["off", "waiting", "running", "done"
|
|
|
29
29
|
/** The check the server runs after edits, as it stands. */
|
|
30
30
|
export declare const CheckStateSchema: z.ZodObject<{
|
|
31
31
|
status: z.ZodEnum<{
|
|
32
|
-
failed: "failed";
|
|
33
32
|
off: "off";
|
|
33
|
+
failed: "failed";
|
|
34
34
|
running: "running";
|
|
35
35
|
done: "done";
|
|
36
36
|
waiting: "waiting";
|
|
@@ -232,8 +232,8 @@ export declare const PROJECT_TOOLS: {
|
|
|
232
232
|
}, z.core.$strict>>;
|
|
233
233
|
readonly "check/results": MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
234
234
|
status: z.ZodEnum<{
|
|
235
|
-
failed: "failed";
|
|
236
235
|
off: "off";
|
|
236
|
+
failed: "failed";
|
|
237
237
|
running: "running";
|
|
238
238
|
done: "done";
|
|
239
239
|
waiting: "waiting";
|
|
@@ -370,8 +370,8 @@ export declare const TOOL_NOTIFICATIONS: {
|
|
|
370
370
|
}, z.core.$strict>>;
|
|
371
371
|
readonly "check/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
372
372
|
status: z.ZodEnum<{
|
|
373
|
-
failed: "failed";
|
|
374
373
|
off: "off";
|
|
374
|
+
failed: "failed";
|
|
375
375
|
running: "running";
|
|
376
376
|
done: "done";
|
|
377
377
|
waiting: "waiting";
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allyhub/protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"default": "./dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"./browser-bridge": {
|
|
11
|
+
"types": "./dist/browser-bridge.d.ts",
|
|
12
|
+
"default": "./dist/browser-bridge.js"
|
|
9
13
|
}
|
|
10
14
|
},
|
|
11
15
|
"sideEffects": false,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{stat as p}from"node:fs/promises";import{isAbsolute as a,join as f,relative as u}from"node:path";import{EXIT as h}from"@allyhub/protocol";import{capturesAnything as c}from"./capture.js";import{filterPath as
|
|
2
|
+
import{stat as p}from"node:fs/promises";import{isAbsolute as a,join as f,relative as u}from"node:path";import{EXIT as h}from"@allyhub/protocol";import{capturesAnything as c}from"./capture.js";import{filterPath as l}from"./composite.js";import{RenderError as r}from"./errors.js";import{ffmpegRuns as d,postPlaces as m,postProblems as w}from"./post-probe.js";export function hasFinalLook(t,e){return t.motionBlur!=null||c(t.capture)||t.post?.filter!==void 0||t.post?.lut!==void 0||t.transparent===!0||(e?.parts.some(n=>n.post!==void 0)??!1)}export async function lutFile(t,e){if(e===void 0)return;const n=f(t,e),i=u(t,n);if(i.startsWith("..")||a(i)||a(e))throw new r("bad-lut",`The LUT ${e} is outside the project.`,{hint:"Put the .cube file in the project and name it relative to the piece."});try{await p(n)}catch{throw new r("bad-lut",`There is no LUT file ${e}.`,{exit:h.notFound,hint:"post.lut is a .cube file, named relative to the piece."})}if(l(n)===void 0)throw new r("bad-lut",`The LUT's path ${n} has a ' in it, which ffmpeg cannot take.`,{hint:"Rename the file or its folder."});return n}export const pagePlane=(t,e)=>t.planes.length>1?{plane:e}:{};const s=new WeakSet;export async function reportPost(t,e,n,i){if(!t.report||s.has(t))return;s.add(t);const o=m(n,[t.timeline]);o.length===0||!await d(i)||t.report(await w(o,{piece:e.piece,output:e.output},i))}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{isRule as Le,problem as ve}from"@allyhub/diagnostics";import{contentEdges as
|
|
2
|
+
import{isRule as Le,problem as ve}from"@allyhub/diagnostics";import{contentEdges as Pe,STRUCTURE as xe,toFrame as Ue,LAYER_NAME as Be,showLayer as Ae}from"@allyhub/piece";import{fact as Ee,intersect as He}from"@allyhub/video-core";import{backdropRoot as Ke,contentOf as We,holdsAdjustment as Ie}from"@allyhub/image-draw/layer-style";import{isFootage as ie,layerNames as Oe,planStack as Me,resolveTimes as $e,windowOf as je,zOf as Se}from"@allyhub/image-draw/plan";import{realTimers as Xe}from"@allyhub/image-draw/guards";const Ye={captions:()=>[],face:()=>{},faces:()=>[],texts:()=>[]};export{ie as isFootage,Oe as layerNames,Me as planStack,$e as resolveTimes,je as windowOf,Se as zOf};export function layerContexts(b,Q,V,Z,k){const{log:K,ledger:N,embed:m,combo:R}=b,{look:F,format:ee,dims:c}=Q,G=[[0,0,c.width,c.safe.top],[0,c.height-c.safe.bottom,c.width,c.safe.bottom],[0,0,c.safe.left,c.height],[c.width-c.safe.right,0,c.safe.right,c.height]].filter(n=>n[2]>0&&n[3]>0),w=Pe(c),v=[w.left,w.top,w.right-w.left,w.bottom-w.top],te=n=>{if(!k)throw new Error(`"${n}": a page has no film to find it in.`);return k.filmAt(n)};return n=>{const C=n.reads??Ye,L=n.record??(()=>{}),x=n.place,P=n.answers,U={look:F,format:ee,dims:c,combo:n.combo??R,dur:n.dur,asset:o=>K.asset(o),optionalAsset:o=>K.optionalAsset(o),words:n.words,at:n.at,layer:{start:n.start,end:n.end},...n.enter?{enter:n.enter}:{},...n.exit?{exit:n.exit}:{},wait:o=>{N.wait(o)},report:o=>{const h=N.running,W=Le(o.code)?o.code:"AK-R001",I=h?.part??x?.part;N.ran(ve(W,o.message,{...o.level?{level:o.level}:{},...I?{part:I}:{},...h?.t===void 0?{}:{t:h.t}}))},captions:o=>C.captions(o),face:(o,h)=>C.face(o,h),faces:o=>C.faces(o),texts:o=>C.texts(o),covered:G,content:v,video:(o,h)=>V.video(o,h,L),cameraFor:o=>m?.cameras?.[o]??m?.cameras?.["*"],...m?.sceneryScale===void 0?{}:{sceneryScale:m.sceneryScale},embedded:m!==void 0,get layoutOnly(){return Z.mode==="layout"},realTimers:Xe,...P?{answer:(o,h)=>{P.set(o,h)}}:{}};return x&&Object.defineProperty(U,"film",{enumerable:!0,get:()=>(L("film",String(x.start)),{start:x.start,part:x.part,at:te,...m?.shown?{outer:m.shown}:{}})}),U}}const _e=b=>Math.max(0,b-.4),de=b=>Math.round(b*1e3)/1e3,Ne=b=>Math.round(b*1e6)/1e6;export function compose(b){const{env:Q,piece:V,stage:Z,takes:k,film:K,captions:N,footage:m,sound:R}=b,{source:F,options:ee,combo:c,picked:G,ledger:w}=Q,{fps:v,format:te,dims:n}=V,{specs:C}=k,{timing:L,windows:x}=K,P=[],U=[],o=[],h=ee.purpose==="play",W=new Set,I=(l,s)=>{const a={};for(const[i,g]of Object.entries(c)){if(!G.has(i)||i===s){a[i]=g;continue}Object.defineProperty(a,i,{enumerable:!0,get:()=>(W.has(`${l}:${i}`)||(W.add(`${l}:${i}`),w.problems.push(ve("AK-X005",`A layer of part ${l} reads ctx.combo.${i}, ${i===xe?"the combo's structure":`the pick of the slot ${i}`}. A part is rendered once and reused in every combo that has it, so it may read only the dimensions${s===void 0?"":` and its own slot (${s})`}. Choose in the output's function instead, and pass the result as a prop.`,{part:l,where:{file:F.file}}))),g)})}return a};for(const[l,s]of C.entries()){const a=L.parts[l];if(!a)continue;const i=a.end-a.start,g=e=>L.at(l,e),Re=N.partWords(s.key),Ce=k.results[l]?.speech,fe=k.inputs[l],le=fe?.placed??[],pe=[...le,...(fe?.anchors??[]).filter(e=>!le.some(t=>t.name===e.name))],X=k.speechFor(l,a),M=x.get(l),$=x.get(l+1),Te={...M&&M.before+M.after>0?{enter:{start:-M.before/v,end:M.after/v}}:{},...$&&$.before+$.after>0?{exit:{start:i-$.before/v,end:i+$.after/v}}:{}};let T;if(typeof s.still=="function")T=s.still(i);else if(s.still===void 0){if(T=_e(i),M||$){const e=(M?.after??0)/v,t=i-(($?.before??0)+1)/v;T=Math.max(e,Math.min(T,t))}}else T=g(s.still);let Y=Ue(a.start+T,v);(Y<a.start||Y>=a.end)&&(Y=a.start);const se=s.slot??(G.has(s.key)&&s.key!==xe?s.key:void 0),ze=G.size>0?I(s.key,se):c,oe={reads:new Map,captioned:!1},ne=Me(s.layers),{takeAt:ae,planes:B,planeOf:re,overOf:me,order:he}=ne,ce=s.layers,ue=s.post,A=k.videoTakes[l],d={key:s.key,...s.title===void 0?{}:{title:s.title},...se===void 0?{}:{slot:se},layers:Oe(ce),start:a.start,end:a.end,planes:B,still:Y,...X.speech?{speech:X.speech}:{},...pe.length>0?{anchors:pe.map(e=>({name:e.name,at:de(a.start+g(`@${e.name}`)),...e.end===void 0?{}:{end:de(a.start+g(`@/${e.name}`))}}))}:{},...s.tags?.length?{tags:[...s.tags]}:{},...ue?{post:{filter:ue.filter}}:{},...s.speechGainDb!==void 0&&s.speechGainDb!==0?{speechGainDb:s.speechGainDb}:{},...A?{plays:{video:A.id,from:A.from,to:A.to}}:{}};P.push(d),R.addSpeech(X.clips,X.room);const u=document.createElement("section");u.className="ak-part",u.dataset.key=s.key,u.dataset.format=te,Object.assign(u.style,{position:"absolute",inset:"0",overflow:"hidden"}),Ae(u,!1),Z.el.append(u);const _=new Map;h&&ce.forEach((e,t)=>{if(!ie(e))return;const f=document.createElement("div");f.className="ak-footage-plane",Object.assign(f.style,{position:"absolute",inset:"0",...(me.get(t)??0)>0?{pointerEvents:"none"}:{}}),_.set(t,f)});let E;_.size>0&&ae>=0&&(E=document.createElement("div"),E.className="ak-cutout-plane",Object.assign(E.style,{position:"absolute",inset:"0",pointerEvents:"none"}));const De={captions:e=>(oe.captioned=!0,N.partCues(a.start,a.end,e)),face:(e,t)=>m.faceAt(s.key,a.start+e,t),faces:e=>m.facesAt(s.key,a.start+e)},H=[],ye=new Map;for(const[e,t]of ce.entries()){const[f,y]=je(t,i,g);if(ie(t)){const D=e===ae,J=m.plan(t,d,Ce,a.speechAt,f,y,{at:g,cutout:D,over:me.get(e)??0,person:D&&E!==void 0});if(J&&h){const we=_.get(e)??u,{matteUrl:ke,personOver:Fe,...Ge}=J;o.push({...Ge,host:we,...ke===void 0?{}:{cutoutIn:{host:Fe&&E?E:we,matte:ke}}})}continue}if(t.visible===!1)continue;const r=Se(t),O=re.get(e)??0;B[O]?.layers.push({component:t.component,start:Ne(d.start+f),end:Ne(d.start+Math.max(f,y))});const p=document.createElement("div");p.className="ak-layer",p.dataset.component=t.component,t.key!==void 0&&p.setAttribute(Be,t.key),Object.assign(p.style,{position:"absolute",inset:"0"}),Ae(p,!1),ye.set(e,p);const S=t.times?$e(t.props,t.times,g):t.props,q=H.slice(),be=new Map,ge=b.contexts({dur:i,words:()=>Re,at:g,start:f,end:y,combo:ze,reads:{...De,texts:D=>b.texts({part:d,el:u},q,D)},record:(D,J)=>oe.reads.set(D,J),place:{start:d.start,part:s.key},answers:be,...Te});H.push({spec:t,index:e,props:S,el:p,content:We(p,t,ge.dims),ctx:ge,start:f,end:y,z:r,plane:O,answers:be})}H.some(e=>Ie(e.spec))&&Ke(u);let z=u,j;if(B.some(e=>e.overlay===!0)){z=document.createElement("div"),j=document.createElement("div"),z.className="ak-picture",j.className="ak-overlays";for(const e of[z,j])Object.assign(e.style,{position:"absolute",inset:"0",overflow:"hidden"}),u.append(e)}he.forEach((e,t)=>{const f=_.get(e)??ye.get(e);f&&(j&&ne.overlaid(e)?j:z).append(f);const y=re.get(e),r=he[t+1];E&&y!==void 0&&B[y]?.behindPerson===!0&&(r===void 0||re.get(r)!==y)&&z.append(E)}),R.sfx(s,d,g),A&&R.carry(A.inner,A.from,A.to,d.start,d.key,0);for(const e of H){const t=k.shownBy.get(e.spec);t&&(t.shown.start=d.start+e.start,t.shown.partStart=d.start,t.shown.from=t.from,t.shown.to=t.from+(e.end-e.start)*t.speed,t.shown.speed=t.speed,t.audio!==void 0&&t.speed===1&&R.carry(t.inner,t.from,t.shown.to,d.start+e.start,d.key,t.audio))}B.forEach((e,t)=>{const f=e.layers.filter(r=>r.end>r.start),y=m.placed.flatMap(r=>{if(r.part!==d.key||(r.over??0)<=t)return[];if(!f.some(p=>p.end>r.start&&p.start<r.end))return[];let O;for(const p of r.boxes?r.boxes.map(S=>S.box):[r.box]){const S=He(p,[0,0,n.width,n.height]),q=S?de(S[2]*S[3]/(n.width*n.height)):0;(!O||q>O.frame)&&(O={box:p,frame:q})}return O?[{file:r.file,start:r.start,end:r.end,...O}]:[]});y.length!==0&&w.facts.push(Ee("graphics-under-footage",{piece:F.piece,part:s.key,t:d.start},{layers:f,footage:y,covered:Math.max(...y.map(r=>r.frame))}))}),ne.hasBehind&&ae<0&&w.facts.push(Ee("fallback",{piece:F.piece,part:s.key},{missing:"own-footage",for:"behind-person",fallback:"in-front"})),U.push({part:d,spec:s,n:l,el:u,picture:z,...j?{overlays:j}:{},layers:H,record:oe})}return{parts:P,mounted:U,clips:o}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{LAYER_BRAND as _}from"@allyhub/piece";import{forOrient as N,isPieceDefinition as E,momentOf as M,outputName as q}from"@allyhub/video-core";import{LoadFailure as $}from"@allyhub/image-draw/errors";export const momentIn=(t,e)=>typeof e=="number"?e:M(t.timeline,e),camerasOf=t=>t?.cameras??(t?.camera===void 0?void 0:{"*":t.camera});function B(t,e){const l=e.written?.file;if(!(l===void 0||l===""))return Object.entries(t.pieces??{}).find(([,m])=>m.file===l)}export function createEmbedder(t,e,l){const{source:m,options:v,embed:h,combo:g}=t,y=[],u=[...h?.chain??[],m.piece],w={loaded:y,async load(s,o
|
|
2
|
+
import{LAYER_BRAND as _}from"@allyhub/piece";import{forOrient as N,isPieceDefinition as E,momentOf as M,outputName as q}from"@allyhub/video-core";import{LoadFailure as $}from"@allyhub/image-draw/errors";export const momentIn=(t,e)=>typeof e=="number"?e:M(t.timeline,e),camerasOf=t=>t?.cameras??(t?.camera===void 0?void 0:{"*":t.camera});function B(t,e){const l=e.written?.file;if(!(l===void 0||l===""))return Object.entries(t.pieces??{}).find(([,m])=>m.file===l)}export function createEmbedder(t,e,l){const{source:m,options:v,embed:h,combo:g}=t,y=[],u=[...h?.chain??[],m.piece],w={loaded:y,async load(s,i,o={}){const f=E(s)?B(m,s):void 0;if(!E(s)||!f)throw new $("bad_video",'A video item of the project is shown by its piece, imported (import demo from "../demo/video") and passed as it is.');const[c,r]=f;if(u.includes(c))throw new $("video_cycle",`${[...u,c].join(" → ")}: a video item that shows itself, through the videos it shows (AK-M010). A source cannot reach itself.`);const a=q(s.kind),n=o.frame===!0?m.format:r.format,p=Object.fromEntries(Object.entries(r.dims).map(([j,A])=>{const S=g[j];return[j,S!==void 0&&A.includes(S)?S:A[0]??""]})),d=i.parentNode,b=i.nextSibling,x=document.createElement("div");x.dataset.akHolder="",Object.assign(x.style,{position:"absolute",left:"0px",top:"0px",visibility:"hidden",pointerEvents:"none"}),e.el.append(x),x.append(i),i.dataset.akPiece=r.file;let O;try{O=await l({...m,piece:c,file:r.file,module:"",styles:[],dims:r.dims,format:n,...r.matrix?{matrix:r.matrix}:{}},{combo:p,purpose:v.purpose},i,{def:s,chain:u,...o.cameras?{cameras:o.cameras}:{},...o.shown?{shown:o.shown}:{},...o.sceneryScale===void 0?{}:{sceneryScale:o.sceneryScale}}),await O.ready()}finally{e.takeOutside(),d?d.insertBefore(i,b):i.remove(),e.takeOutside(),x.remove()}const k={id:c,output:a,format:n,inner:O};return y.push(k),k},async video(s,i,o){const{id:f,output:c,format:r,inner:a}=await w.load(s,i);return o(`video:${f}:${c}:${r}`,JSON.stringify(a.signs())),{id:f,duration:a.timeline.duration,width:a.timeline.width,height:a.timeline.height,seek:(n,p)=>a.seek(n,{mode:p===!0?"layout":"picture"}),at:n=>M(a.timeline,n)}}};return w}export const isBoxKeys=t=>Array.isArray(t)&&t.length>0&&typeof t[0]=="object";export function videoLayer(t,e,l,m,v){const{inner:h,host:g}=l,y=h.timeline.width,u=h.timeline.height,w=N(e.box,t.orient);if(isBoxKeys(w))throw new $("bad_footage",'footage() of a video item takes one box (or "full"), not keyframes.');const[s,i,o,f]=w===void 0||w==="full"?[0,0,1,1]:w,c=e.fit??"cover",r=e.cameras??(e.camera===void 0?void 0:e.camera);return{[_]:"graphic",component:"video",...e.at===void 0?{}:{at:e.at},...e.until===void 0?{}:{until:e.until},...e.dur===void 0?{}:{dur:e.dur},props:{...v,box:[s,i,o,f],fit:c,...r===void 0?{}:{camera:r},...e.quality?{quality:e.quality}:{},parts:h.signs()},mount(a){const n={x:s*t.width,y:i*t.height,w:o*t.width,h:f*t.height},p=c==="contain"?Math.min(n.w/y,n.h/u):Math.max(n.w/y,n.h/u),d=document.createElement("div");Object.assign(d.style,{position:"absolute",left:`${String(n.x)}px`,top:`${String(n.y)}px`,width:`${String(n.w)}px`,height:`${String(n.h)}px`,overflow:"hidden"}),Object.assign(g.style,{position:"absolute",left:`${String((n.w-y*p)/2)}px`,top:`${String((n.h-u*p)/2)}px`,width:`${String(y)}px`,height:`${String(u)}px`,transformOrigin:"0 0",transform:`scale(${String(p)})`}),d.appendChild(g),a.appendChild(d)},render(a,n,p,d){const b=Math.min(Math.max(m(n,d),0),Math.max(0,h.timeline.duration-.001)),x=d.layoutOnly===!0?"layout":"picture";d.wait(Promise.resolve().then(()=>h.seek(b,{mode:x})))}}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{intersect as S,placementAt as m,sourceAt as b}from"@allyhub/video-core";import{Cutout as R}from"./cutout.js";const M=.5,A=.04,
|
|
2
|
+
import{intersect as S,placementAt as m,sourceAt as b}from"@allyhub/video-core";import{Cutout as R}from"./cutout.js";const M=.5,A=.04,F=.01,T=.03,$=.02,l=r=>`${String(r)}px`;function f(r,e){Object.assign(r.style,{position:"absolute",left:l(e[0]),top:l(e[1]),width:l(e[2]),height:l(e[3])})}function g(r,e){if(r.shape==="circle"){e.style.borderRadius="50%";return}if(!r.radius)return;const[,,s,t]=r.boxes?.[0]?.box??r.box,o=n=>`${String(Math.round((r.radius??0)/n*1e5)/1e3)}%`;e.style.borderRadius=`${o(s)} / ${o(t)}`}function h(r,e,s,t){f(s,e.box);const[o,n,i,c]=e.picture,[a,u]=e.box;if(e.crop&&r.source){const[d,w,k,E]=e.crop,p=i/k,y=c/E;f(t,[o-a-d*p,n-u-w*y,r.source.width*p,r.source.height*y]),t.style.objectFit="fill"}else f(t,[o-a,n-u,i,c]),t.style.objectFit=r.fit}function I(r){return[r.blur?`blur(${String(r.blur)}px)`:"",r.desaturate?`saturate(${String(1-r.desaturate)})`:"",r.dim?`brightness(${String(1-r.dim)})`:""].filter(e=>e!=="").join(" ")}function j(r,e,s,t){const o=I(e);if(e.color===void 0&&e.image===void 0){t.style.filter=o;return}if(t.style.opacity="0",e.color==="transparent")return;let n;if(e.image!==void 0&&r.imageUrl){const i=document.createElement("img");i.src=r.imageUrl,i.alt="",i.style.objectFit="cover",i.style.maxWidth="none",i.style.filter=o,n=i}else n=document.createElement("div"),n.style.background=e.color??"transparent";return n.className="ak-backdrop",s.prepend(n),n}function x(r,e){const s=S(e.picture,e.box)??e.box;f(r,[s[0]-e.box[0],s[1]-e.box[1],s[2],s[3]])}export class Clips{drawn;fps;playing=!1;constructor(e,s){this.fps=s,this.drawn=e.map(t=>{const o=document.createElement("div");o.className="ak-footage",o.dataset.akFile=t.file,o.dataset.akPart=t.part,o.style.overflow="hidden",g(t,o);const n=document.createElement("video");n.muted=!0,n.playsInline=!0,n.preload="auto",n.src=t.url,n.style.maxWidth="none",n.style.visibility="hidden";const i=m(t,t.start);h(t,i,o,n),o.append(n),t.host.append(o);const c=(t.pan?.length??0)>1||(t.zoom?.length??0)>0||(t.boxes?.length??0)>1;let a,u;if(t.cutoutIn){const d=t.background;a=new R({take:n,matte:t.cutoutIn.matte,host:t.cutoutIn.host,...t.source?{source:t.source}:{},...d?{edge:{feather:d.feather,shrink:d.shrink},onFail:()=>{n.style.filter="",n.style.opacity="",u?.remove()}}:{}}),g(t,a.box),h(t,i,a.box,a.canvas),d&&(u=j(t,d,o,n),u&&x(u,i))}return{clip:t,el:n,box:o,moving:c,...a?{cutout:a}:{},...u?{backdrop:u}:{}}})}sourceAt(e,s){const t=b(e,s),o=e.duration===void 0?1/0:e.duration-1/this.fps;return Math.max(0,Math.min(t,o))}setPlaying(e){if(this.playing=e,!e)for(const s of this.drawn)s.el.pause(),s.cutout?.sync()}draw(e,s){for(const t of this.drawn){const o=t.clip;if(!(e>=o.start&&e<o.end)){t.el.style.visibility="hidden",t.el.paused||t.el.pause(),t.cutout?.show(!1);continue}if(t.moving){const a=m(o,e);h(o,a,t.box,t.el),t.cutout&&h(o,a,t.cutout.box,t.cutout.canvas),t.backdrop&&x(t.backdrop,a)}t.el.style.visibility="visible";let i;o.cuts&&(i=0,o.cuts.forEach((a,u)=>{a.at<=e+1e-9&&(i=u)}));const c=i!==t.cut;t.cut=i,this.follow(t,t.el,e,s||c),t.cutout&&(t.cutout.show(!0),t.cutout.sync(),t.cutout.draw())}}follow(e,s,t,o){const n=e.clip,i=this.sourceAt(n,t),c=s.currentTime-i,a=b(n,t),u=a<0||n.duration!==void 0&&a>=n.duration-1/this.fps;if(!this.playing||u){s.paused||s.pause(),Math.abs(c)>$&&(s.currentTime=i);return}if(o||s.paused||Math.abs(c)>M*n.speed){s.currentTime=i,s.playbackRate=n.speed,e.steering=void 0,s.paused&&s.play().catch(()=>{});return}const d=c<0?1:-1;Math.abs(c)>A?e.steering=d:Math.abs(c)<=F&&(e.steering=void 0),s.playbackRate=n.speed*(e.steering===void 0?1:1+e.steering*T)}dispose(){for(const e of this.drawn)e.cutout?.dispose(),e.el.pause(),e.el.removeAttribute("src"),e.el.load()}}
|
|
@@ -11,9 +11,9 @@ export { AUTO_EXPOSURE_DEFAULTS, AUTOFOCUS_DEFAULTS, handheld, HANDHELD_DEFAULTS
|
|
|
11
11
|
export { bandNoise, gauss3, hash3, powerNoise, swellOf, unit3, type Band, type Slope, } from "./noise.js";
|
|
12
12
|
export { convexHull, floorRect, type Floor, type FloorRect } from "./hull.js";
|
|
13
13
|
export { solveCamera, SOLVE_DEFAULTS, SOLVE_PARAMS, type SolveLine, type SolveOptions, type SolveParam, type SolvePoint, type SolveResidual, type SolveResult, } from "./solve.js";
|
|
14
|
-
export { invert3, moireAt, moireBand, moireCamera, moireProblems, moireScreen, MOIRE_GLSL, MOIRE_SCREENS, PANEL_DEFAULTS, SENSOR_DEFAULTS, STRIPE_DEPTH, type MoireCamera, type MoireScreen, type PanelOptions, type SensorOptions, } from "./moire.js";
|
|
14
|
+
export { invert3, moireAt, moireBand, moireCamera, moireProblems, screenGradeWeight, moireScreen, MOIRE_GLSL, MOIRE_SCREENS, PANEL_DEFAULTS, SENSOR_DEFAULTS, STRIPE_DEPTH, type MoireCamera, type MoireScreen, type PanelOptions, type Grade, type SensorGrade, type SensorOptions, } from "./moire.js";
|
|
15
15
|
export { screenFocus, SCREEN_FOCUS_DEFAULTS, type ScreenFocus, type ScreenFocusOptions, } from "./screen-focus.js";
|
|
16
|
-
export { apply, homography, matrix3d, screenOnFrame, shownCentre, SCREEN_LIGHT_DEFAULTS, screenLightBaseProblem, type Px, type ScreenLightBase, type ScreenOnFrame, } from "./screen.js";
|
|
16
|
+
export { apply, homography, matrix3d, clipToFrame, screenOnFrame, shownCentre, SCREEN_LIGHT_DEFAULTS, screenLightBaseProblem, type Px, type ScreenLightBase, type ScreenOnFrame, } from "./screen.js";
|
|
17
17
|
export { AROUND_DEFAULTS, FLOOR_DEFAULTS, INVENTORY_FRAME, MAP_DEFAULTS, MAP_VIEWS, MEASURE_DEFAULTS, MOTION_DEFAULTS, SIDES, type AxisBox, type CameraClearance, type CameraSource, type Channel, type ClearAhead, type Contact, type FreeFloor, type Levels, type MeasureRequest, type MeasureResult, type MeshHealth, type Motion, type MotionRequest, type SeeRequest, type SeeResult, type SeeTile, type Sight, type Support, type DrawnCamera, type Footprint, type MapPath, type MapRequest, type MapResult, type MapView, type MapViewResult, type OwnBox, type PointRef, type PointsRequest, type Seen, type Side, type UprightBox, type ViewRequest, type ViewResult, type ViewTile, type ViewTileResult, type SceneryInventory, type SceneryLight, type SceneryObject, topObjects, } from "./report.js";
|
|
18
18
|
export { channel, motionOf, type CameraSample, type MotionNumbers, } from "./motion.js";
|
|
19
19
|
export { easeValue, timedNumber, type Ease, type NumberKey } from "./timing.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export{blurDiameter,CAMERA_DEFAULTS,CameraError,cameraProblems,directionOf,exposureOf,project,resolveCamera,yawPitchOf}from"./camera.js";export{BAKE_CPU,BAKE_DEFAULTS,BAKE_MIN_SIZE,bakeProblems,bakeRenderer,resolveBake}from"./bake.js";export{Curve,SAME_POINT}from"./curve.js";export{defineScenery,isScenery,SCENERY_RENDERER_DEFAULTS}from"./define.js";export{FIT_DEFAULTS,fitCamera}from"./fit.js";export{diagonalLens,fieldOfView,fieldOfViewFromVertical,FULL_FRAME_DIAGONAL,lensForVertical,lensFrameProblem}from"./lens.js";export{blend,cutsOf,focusScreen,keys,mixCameras,momentOf,orbit,path,PATH_DEFAULTS,pathCurve,shots,stateOf,withCuts,NeedsTimeError}from"./move.js";export{GLASS_DEFAULTS,glassIor,glassProblems}from"./glass.js";export{aimAt,aimed,AIM_DEFAULTS,aimProblem,aimShape,rise}from"./aim.js";export{AUTO_EXPOSURE_DEFAULTS,AUTOFOCUS_DEFAULTS,handheld,HANDHELD_DEFAULTS,handheldProblem,STABILIZER_DEFAULTS}from"./handheld.js";export{bandNoise,gauss3,hash3,powerNoise,swellOf,unit3}from"./noise.js";export{convexHull,floorRect}from"./hull.js";export{solveCamera,SOLVE_DEFAULTS,SOLVE_PARAMS}from"./solve.js";export{invert3,moireAt,moireBand,moireCamera,moireProblems,moireScreen,MOIRE_GLSL,MOIRE_SCREENS,PANEL_DEFAULTS,SENSOR_DEFAULTS,STRIPE_DEPTH}from"./moire.js";export{screenFocus,SCREEN_FOCUS_DEFAULTS}from"./screen-focus.js";export{apply,homography,matrix3d,screenOnFrame,shownCentre,SCREEN_LIGHT_DEFAULTS,screenLightBaseProblem}from"./screen.js";export{AROUND_DEFAULTS,FLOOR_DEFAULTS,INVENTORY_FRAME,MAP_DEFAULTS,MAP_VIEWS,MEASURE_DEFAULTS,MOTION_DEFAULTS,SIDES,topObjects}from"./report.js";export{channel,motionOf}from"./motion.js";export{easeValue,timedNumber}from"./timing.js";export{PHONE_CAMERA,phoneCamera}from"./phone.js";
|
|
2
|
+
export{blurDiameter,CAMERA_DEFAULTS,CameraError,cameraProblems,directionOf,exposureOf,project,resolveCamera,yawPitchOf}from"./camera.js";export{BAKE_CPU,BAKE_DEFAULTS,BAKE_MIN_SIZE,bakeProblems,bakeRenderer,resolveBake}from"./bake.js";export{Curve,SAME_POINT}from"./curve.js";export{defineScenery,isScenery,SCENERY_RENDERER_DEFAULTS}from"./define.js";export{FIT_DEFAULTS,fitCamera}from"./fit.js";export{diagonalLens,fieldOfView,fieldOfViewFromVertical,FULL_FRAME_DIAGONAL,lensForVertical,lensFrameProblem}from"./lens.js";export{blend,cutsOf,focusScreen,keys,mixCameras,momentOf,orbit,path,PATH_DEFAULTS,pathCurve,shots,stateOf,withCuts,NeedsTimeError}from"./move.js";export{GLASS_DEFAULTS,glassIor,glassProblems}from"./glass.js";export{aimAt,aimed,AIM_DEFAULTS,aimProblem,aimShape,rise}from"./aim.js";export{AUTO_EXPOSURE_DEFAULTS,AUTOFOCUS_DEFAULTS,handheld,HANDHELD_DEFAULTS,handheldProblem,STABILIZER_DEFAULTS}from"./handheld.js";export{bandNoise,gauss3,hash3,powerNoise,swellOf,unit3}from"./noise.js";export{convexHull,floorRect}from"./hull.js";export{solveCamera,SOLVE_DEFAULTS,SOLVE_PARAMS}from"./solve.js";export{invert3,moireAt,moireBand,moireCamera,moireProblems,screenGradeWeight,moireScreen,MOIRE_GLSL,MOIRE_SCREENS,PANEL_DEFAULTS,SENSOR_DEFAULTS,STRIPE_DEPTH}from"./moire.js";export{screenFocus,SCREEN_FOCUS_DEFAULTS}from"./screen-focus.js";export{apply,homography,matrix3d,clipToFrame,screenOnFrame,shownCentre,SCREEN_LIGHT_DEFAULTS,screenLightBaseProblem}from"./screen.js";export{AROUND_DEFAULTS,FLOOR_DEFAULTS,INVENTORY_FRAME,MAP_DEFAULTS,MAP_VIEWS,MEASURE_DEFAULTS,MOTION_DEFAULTS,SIDES,topObjects}from"./report.js";export{channel,motionOf}from"./motion.js";export{easeValue,timedNumber}from"./timing.js";export{PHONE_CAMERA,phoneCamera}from"./phone.js";
|
|
@@ -22,19 +22,58 @@ export interface SensorOptions {
|
|
|
22
22
|
*/
|
|
23
23
|
distortion?: number;
|
|
24
24
|
/**
|
|
25
|
-
* How the phone grades what it films: the
|
|
26
|
-
*
|
|
25
|
+
* How the phone grades what it films, by what fills its frame: the room's
|
|
26
|
+
* grade, and as a screen comes to fill the frame, the grade it gives a lit
|
|
27
|
+
* screen (it exposes for the screen's light), eased between them frame by
|
|
28
|
+
* frame. On the scenery layer's picture alone, not on what is laid over
|
|
29
|
+
* it. null for no grade.
|
|
27
30
|
*/
|
|
28
|
-
grade?:
|
|
29
|
-
filter: string;
|
|
30
|
-
} | null;
|
|
31
|
+
grade?: SensorGrade | null;
|
|
31
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* A grade: the picture's brightness through a curve, every colour moved
|
|
35
|
+
* with it so hues stay (a grade of luma alone), then the colours' strength,
|
|
36
|
+
* a turn of their hue, and a white balance.
|
|
37
|
+
*/
|
|
38
|
+
export interface Grade {
|
|
39
|
+
/** [brightness in, brightness out] points, 0–1, from in 0 to in 1 in order, joined by straight lines. */
|
|
40
|
+
curve: [number, number][];
|
|
41
|
+
/** How strong the colours are after it (1: as they were; 0: grey). */
|
|
42
|
+
saturation?: number;
|
|
43
|
+
/** The colours' hue turned this many degrees. */
|
|
44
|
+
hue?: number;
|
|
45
|
+
/** Each channel's gain last, red, green and blue (a white balance; [1, 1, 1] none). */
|
|
46
|
+
balance?: [number, number, number];
|
|
47
|
+
}
|
|
48
|
+
/** How a phone grades what it films, by how much of its frame a screen fills (SensorOptions.grade). */
|
|
49
|
+
export interface SensorGrade {
|
|
50
|
+
/** What it films when no screen fills much of the frame: the room, a person. */
|
|
51
|
+
room: Grade;
|
|
52
|
+
/** A lit screen filmed close: the phone exposes for its light. */
|
|
53
|
+
screen: Grade;
|
|
54
|
+
/**
|
|
55
|
+
* The nearest screen's share of the frame where the room's grade starts
|
|
56
|
+
* to give way to the screen's, and where the screen's is whole (0–1).
|
|
57
|
+
*/
|
|
58
|
+
share: [number, number];
|
|
59
|
+
}
|
|
60
|
+
/** How much of the screen's grade a frame takes (0–1): eased between share[0] and share[1] of the frame filled. */
|
|
61
|
+
export declare function screenGradeWeight(share: number, [from, to]: readonly [number, number]): number;
|
|
32
62
|
/** A screen's physical pixels (screen({ pixels })). */
|
|
33
63
|
export interface PanelOptions {
|
|
34
64
|
/** Physical pixels per content pixel each way (a Retina laptop: 2). */
|
|
35
65
|
density?: number;
|
|
36
66
|
/** How much the dark lines between rows of pixels darken them (0–1). */
|
|
37
67
|
rows?: number;
|
|
68
|
+
/**
|
|
69
|
+
* The pixel mesh a phone's camera close to a screen shows (0–1, 0: none):
|
|
70
|
+
* a fine grid of faint dark lines, every three of the panel's pixels,
|
|
71
|
+
* drawn on the screen's picture. At a video's resolution the panel's own
|
|
72
|
+
* pixels are too fine to resolve (the moiré above is what is left of
|
|
73
|
+
* them), yet phone footage of a screen close up is never clean: this is
|
|
74
|
+
* that texture, as phone photos of a laptop's screen show it.
|
|
75
|
+
*/
|
|
76
|
+
mesh?: number;
|
|
38
77
|
}
|
|
39
78
|
export declare const SENSOR_DEFAULTS: {
|
|
40
79
|
photosites: number;
|
|
@@ -46,6 +85,7 @@ export declare const SENSOR_DEFAULTS: {
|
|
|
46
85
|
export declare const PANEL_DEFAULTS: {
|
|
47
86
|
density: number;
|
|
48
87
|
rows: number;
|
|
88
|
+
mesh: number;
|
|
49
89
|
};
|
|
50
90
|
/**
|
|
51
91
|
* The depth a stripe a third of a pixel wide gives its fundamental,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{blurDiameter as
|
|
2
|
+
import{blurDiameter as $}from"./camera.js";import{homography as z}from"./screen.js";export function screenGradeWeight(o,[e,s]){if(o<=e)return 0;if(o>=s)return 1;const t=(o-e)/(s-e);return t*t*(3-2*t)}function I(o,e){if(!o)return[`${e} is missing.`];const s=[],t=o.curve,u=n=>Number.isFinite(n)&&n>=0&&n<=1;(!Array.isArray(t)||t.length<2||t.some(n=>!u(n[0])||!u(n[1]))||t.some((n,i)=>i>0&&n[0]<=(t[i-1]?.[0]??-1))||t[0]?.[0]!==0||t[t.length-1]?.[0]!==1)&&s.push(`${e}.curve is [in, out] points from 0 to 1, in order, from in 0 to in 1.`),o.saturation!==void 0&&!(Number.isFinite(o.saturation)&&o.saturation>=0)&&s.push(`${e}.saturation is 0 or more, not ${String(o.saturation)}.`);const r=o.balance;return r!==void 0&&!(Array.isArray(r)&&r.length===3&&r.every(n=>Number.isFinite(n)&&n>=0&&n<=2))&&s.push(`${e}.balance is three gains from 0 to 2, red, green and blue.`),o.hue!==void 0&&!Number.isFinite(o.hue)&&s.push(`${e}.hue is a number of degrees, not ${String(o.hue)}.`),s}export const SENSOR_DEFAULTS={photosites:4032,lens:.35,moire:1,chroma:.3,distortion:-.03},PANEL_DEFAULTS={density:2,rows:.15,mesh:.09},STRIPE_DEPTH=2*Math.sin(Math.PI/3)/(Math.PI/3)/2;const M=2*Math.PI,P=o=>Math.abs(o)<1e-6?1:Math.sin(Math.PI*o)/(Math.PI*o);function C(o,e){if(e===1){const s=Math.round(o[0]+o[1]),t=Math.round(o[0]-o[1]);return[(s+t)/2,(s-t)/2]}return[Math.round(2*o[0])/2,Math.round(2*o[1])/2]}const R={0:[0,0],1:[1,0],2:[1,1]};function A(o,e,s,t,u,r,n){return N(o,e,s,t,u,r,n).factor}function N(o,e,s,t,u,r,n){const i=r.pitch,c=[s[0]*i,s[1]*i],d=T(t,r),l=[d[0]/i,d[1]/i],f=C(c,o),p=R[o],a=[(c[0]-f[0])/i,(c[1]-f[1])/i],m=Math.hypot(a[0],a[1]);if(m>=.5)return{factor:1,depth:0,period:1/0};const S=c[0]*c[0]+c[1]*c[1],k=Math.exp(-2*Math.PI**2*r.lens**2*S),v=n/4,x=Math.exp(-2*Math.PI**2*v**2*(s[0]*s[0]+s[1]*s[1])),y=Math.abs(P(c[0])*P(c[1])),g=Math.abs(P(a[0])*P(a[1]))*(1-2*m),h=Math.min(1,r.strength*u*k*x*y*g),b=e-M*(f[0]*l[0]+f[1]*l[1])+M*(f[0]*p[0]+f[1]*p[1]);return{factor:1-h*(1-Math.cos(b))/2,depth:h,period:m>0?1/m:1/0}}function T(o,e){const{k1:s,centre:t,radius:u}=e.distortion,r=o[0]-t[0],n=o[1]-t[1],i=(r*r+n*n)/(u*u),c=1+s*i;return[t[0]+r*c,t[1]+n*c]}const E=[.299,.587,.114];export function moireAt(o,e,s){const t=o.inverse,[u,r]=s,n=(t[6]??0)*u+(t[7]??0)*r+(t[8]??1);if(n<=0)return;const i=((t[0]??0)*u+(t[1]??0)*r+(t[2]??0))/n,c=((t[3]??0)*u+(t[4]??0)*r+(t[5]??0))/n,[d,l]=o.size;if(i<0||c<0||i>d||c>l)return;const f=[((t[0]??0)-(t[6]??0)*i)/n,((t[1]??0)-(t[7]??0)*i)/n],p=[((t[3]??0)-(t[6]??0)*c)/n,((t[4]??0)-(t[7]??0)*c)/n],a=o.density,[m,S,k]=o.depth,v=m+S*i+k*c,x=e.blur?e.blur.k*Math.abs(v-e.blur.focus)/Math.max(v,e.blur.near):0,y=[a*f[0],a*f[1]],g=[a*p[0],a*p[1]],h=[1,1,1];for(const w of[0,1,2]){const D=A(w,M*(a*i-w/3),y,s,STRIPE_DEPTH,e,x),F=A(w,M*a*c,g,s,o.rows*STRIPE_DEPTH,e,x);h[w]=D*F}const b=E[0]*h[0]+E[1]*h[1]+E[2]*h[2];return[b+e.chroma*(h[0]-b),b+e.chroma*(h[1]-b),b+e.chroma*(h[2]-b)]}export function moireBand(o,e,s){const t=o.inverse,[u,r]=s,n=(t[6]??0)*u+(t[7]??0)*r+(t[8]??1);if(n<=0)return;const i=((t[0]??0)*u+(t[1]??0)*r+(t[2]??0))/n,c=((t[3]??0)*u+(t[4]??0)*r+(t[5]??0))/n,[d,l]=o.size;if(i<0||c<0||i>d||c>l)return;const f=[((t[0]??0)-(t[6]??0)*i)/n,((t[1]??0)-(t[7]??0)*i)/n],p=[((t[3]??0)-(t[6]??0)*c)/n,((t[4]??0)-(t[7]??0)*c)/n],a=o.density,[m,S,k]=o.depth,v=m+S*i+k*c,x=e.blur?e.blur.k*Math.abs(v-e.blur.focus)/Math.max(v,e.blur.near):0;let y={depth:0,period:1/0};for(const g of[0,1,2])for(const h of[N(g,M*(a*i-g/3),[a*f[0],a*f[1]],s,STRIPE_DEPTH,e,x),N(g,M*a*c,[a*p[0],a*p[1]],s,o.rows*STRIPE_DEPTH,e,x)])h.depth>y.depth&&(y={depth:h.depth,period:h.period});return y}export const MOIRE_SCREENS=4,MOIRE_GLSL=`#version 300 es
|
|
3
3
|
precision highp float;
|
|
4
4
|
#define SCREENS ${String(MOIRE_SCREENS)}
|
|
5
5
|
uniform int count;
|
|
@@ -90,4 +90,4 @@ void main() {
|
|
|
90
90
|
}
|
|
91
91
|
// Off every screen: nothing (premultiplied).
|
|
92
92
|
colour = on ? vec4(factor, 1.0) : vec4(0.0);
|
|
93
|
-
}`;export function invert3(o){const[
|
|
93
|
+
}`;export function invert3(o){const[e=0,s=0,t=0,u=0,r=0,n=0,i=0,c=0,d=1]=o,l=r*d-n*c,f=-(u*d-n*i),p=u*c-r*i,a=e*l+s*f+t*p;if(!(Math.abs(a)<1e-18))return[l/a,-(s*d-t*c)/a,(s*n-t*r)/a,f/a,(e*d-t*i)/a,-(e*n-t*u)/a,p/a,-(e*c-s*i)/a,(e*r-s*u)/a]}export function moireScreen(o){const[e,s]=o.size,t=z(e,s,o.quad),u=t?invert3(t):void 0;if(!u)return;const r=o.camera,n=f=>(f[0]-r.position[0])*r.forward[0]+(f[1]-r.position[1])*r.forward[1]+(f[2]-r.position[2])*r.forward[2],[i,c,,d]=o.corners,l=n(i);return{inverse:u,size:[e,s],density:o.panel?.density??PANEL_DEFAULTS.density,rows:o.panel?.rows??PANEL_DEFAULTS.rows,depth:[l,(n(c)-l)/e,(n(d)-l)/s]}}export function moireCamera(o,e,s,t={},u=[0,0]){const r=t.photosites??SENSOR_DEFAULTS.photosites,n={pitch:Math.max(e[0],e[1])/r,lens:t.lens??SENSOR_DEFAULTS.lens,strength:t.moire??SENSOR_DEFAULTS.moire,chroma:t.chroma??SENSOR_DEFAULTS.chroma,distortion:{k1:t.distortion??SENSOR_DEFAULTS.distortion,centre:[e[0]/2-u[0],e[1]/2-u[1]],radius:Math.hypot(e[0],e[1])/2}},i=o.dof;if(i){const c=2*i.focus,d=$(o,c,s)*Math.max(c,o.near)/Math.abs(c-i.focus);n.blur={k:d,focus:i.focus,near:o.near}}return n}export function moireProblems(o,e){const s=[],t=(n,i)=>{n!==void 0&&!(Number.isFinite(n)&&n>0)&&s.push(`${i} is a positive number, not ${String(n)}.`)};t(o?.photosites,"sensor.photosites"),t(o?.lens,"sensor.lens"),t(e?.density,"pixels.density");const u=(n,i,c)=>{n!==void 0&&!(Number.isFinite(n)&&n>=0&&n<=c)&&s.push(`${i} is from 0 to ${String(c)}, not ${String(n)}.`)};u(o?.moire,"sensor.moire",4),u(o?.chroma,"sensor.chroma",1),o?.distortion!==void 0&&!(Number.isFinite(o.distortion)&&Math.abs(o.distortion)<=.5)&&s.push(`sensor.distortion is from -0.5 to 0.5, not ${String(o.distortion)}.`),u(e?.rows,"pixels.rows",1),u(e?.mesh,"pixels.mesh",1);const r=o?.grade;if(r){s.push(...I(r.room,"sensor.grade.room")),s.push(...I(r.screen,"sensor.grade.screen"));const[n=Number.NaN,i=Number.NaN]=r.share;Number.isFinite(n)&&Number.isFinite(i)&&n>=0&&n<i&&i<=1||s.push("sensor.grade.share is [from, to], 0 ≤ from < to ≤ 1.")}return s}
|
|
@@ -19,9 +19,10 @@ export interface PhoneCamera {
|
|
|
19
19
|
* hand: a 26 mm lens on its 4:3 frame at f/8 equivalent (f/1.8 on its
|
|
20
20
|
* small sensor), a 12 MP sensor, a hand whose tremor its stabiliser mostly
|
|
21
21
|
* takes out, focus that hunts after a cut, a reframe or a jolt, exposure
|
|
22
|
-
* that follows a new framing late, and a grade
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* that follows a new framing late, and a grade by what fills the frame:
|
|
23
|
+
* a phone's gentle contrast and colour on a room, and as a screen comes to
|
|
24
|
+
* fill the frame, the phone exposing for its light (its white a neutral
|
|
25
|
+
* light grey, its middle tones much darker, its colours deep).
|
|
25
26
|
*/
|
|
26
27
|
export declare const PHONE_CAMERA: PhoneCamera;
|
|
27
28
|
/** Something with every field optional, all the way down. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export const PHONE_CAMERA={lens:{lens:26,lensFrame:"phone",aperture:8},sensor:{photosites:4032,lens:.35,moire:1,chroma:.3,distortion:-.03,grade:{
|
|
2
|
+
export const PHONE_CAMERA={lens:{lens:26,lensFrame:"phone",aperture:8},sensor:{photosites:4032,lens:.35,moire:1,chroma:.3,distortion:-.03,grade:{room:{curve:[[0,0],[.25,.21],[.5,.47],[.75,.78],[1,1]],saturation:1.08},screen:{curve:[[0,0],[.36,.1],[.51,.16],[.67,.46],[.8,.84],[1,1]],saturation:1.25,hue:5,balance:[1,.97,1]},share:[.5,.8]}},hand:{angle:.25,roll:.6,shift:.001,sway:.65,tremor:{angle:.1,frequency:8.5},drift:{angle:.15,shift:.001,period:8},stabilizer:{strength:.7,cutoff:1.5},autofocus:{},exposure:{}}};const s=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function i(e,r){if(!s(e)||!s(r))return r===void 0?e:r;const t={...e};for(const[n,o]of Object.entries(r))t[n]=o===void 0?e[n]:i(e[n],o);return t}export function phoneCamera(e={}){return i(PHONE_CAMERA,e)}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type SensorGrade } from "@allyhub/scenery";
|
|
2
|
+
import type { Drawn } from "./state.js";
|
|
3
|
+
/** The filter: the room's grade, the screen's, or the two mixed by `weight` (the screen's share of it). */
|
|
4
|
+
export declare function gradeFilterMarkup(id: string, grade: SensorGrade, weight: number): string;
|
|
5
|
+
/** Grades the layer's picture for this frame, or takes its grade off when its sensor has none. */
|
|
6
|
+
export declare function gradeLayer(d: Drawn, grade: SensorGrade | null | undefined, share: number): void;
|
|
7
|
+
//# sourceMappingURL=grade.d.ts.map
|