@m0saic/templates 0.2.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/LICENSE +13 -0
- package/README.md +7 -0
- package/dist/freeze.d.ts +406 -0
- package/dist/freeze.js +855 -0
- package/dist/gen-geometry-matrix.d.ts +1 -0
- package/dist/gen-geometry-matrix.js +177 -0
- package/dist/gen-geometry-proof.d.ts +1 -0
- package/dist/gen-geometry-proof.js +259 -0
- package/dist/gen-layout-envelope.d.ts +1 -0
- package/dist/gen-layout-envelope.js +120 -0
- package/dist/gen-precision-sweep.d.ts +1 -0
- package/dist/gen-precision-sweep.js +219 -0
- package/dist/gen-props-shape.d.ts +1 -0
- package/dist/gen-props-shape.js +269 -0
- package/dist/gen-template-audit.d.ts +1 -0
- package/dist/gen-template-audit.js +379 -0
- package/dist/gen-template-manifest.d.ts +1 -0
- package/dist/gen-template-manifest.js +162 -0
- package/dist/gen-web-template-ids.d.ts +1 -0
- package/dist/gen-web-template-ids.js +65 -0
- package/dist/geometry-audit.d.ts +149 -0
- package/dist/geometry-audit.js +368 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +29 -0
- package/dist/m0saic/_shared/onboarding-cover.d.ts +95 -0
- package/dist/m0saic/_shared/onboarding-cover.js +247 -0
- package/dist/m0saic/_shared/raster.d.ts +28 -0
- package/dist/m0saic/_shared/raster.js +146 -0
- package/dist/m0saic/_shared/svgRaster.d.ts +40 -0
- package/dist/m0saic/_shared/svgRaster.js +142 -0
- package/dist/m0saic/agents/commit-feed/index.d.ts +1 -0
- package/dist/m0saic/agents/commit-feed/index.js +17 -0
- package/dist/m0saic/agents/commit-feed/v1/commit-feed.d.ts +68 -0
- package/dist/m0saic/agents/commit-feed/v1/commit-feed.js +293 -0
- package/dist/m0saic/agents/commit-feed/v1/index.d.ts +2 -0
- package/dist/m0saic/agents/commit-feed/v1/index.js +11 -0
- package/dist/m0saic/agents/index.d.ts +7 -0
- package/dist/m0saic/agents/index.js +25 -0
- package/dist/m0saic/agents/trace-timeline/index.d.ts +1 -0
- package/dist/m0saic/agents/trace-timeline/index.js +17 -0
- package/dist/m0saic/agents/trace-timeline/v1/index.d.ts +2 -0
- package/dist/m0saic/agents/trace-timeline/v1/index.js +15 -0
- package/dist/m0saic/agents/trace-timeline/v1/trace-timeline.d.ts +73 -0
- package/dist/m0saic/agents/trace-timeline/v1/trace-timeline.js +356 -0
- package/dist/m0saic/alpine/_shared/alpine-anim.d.ts +65 -0
- package/dist/m0saic/alpine/_shared/alpine-anim.js +142 -0
- package/dist/m0saic/alpine/_shared/alpine-card.d.ts +114 -0
- package/dist/m0saic/alpine/_shared/alpine-card.js +193 -0
- package/dist/m0saic/alpine/_shared/alpine-glyphs.d.ts +23 -0
- package/dist/m0saic/alpine/_shared/alpine-glyphs.js +46 -0
- package/dist/m0saic/alpine/_shared/alpine-theme.d.ts +84 -0
- package/dist/m0saic/alpine/_shared/alpine-theme.js +155 -0
- package/dist/m0saic/alpine/bar-graph/v1/bar-graph.d.ts +85 -0
- package/dist/m0saic/alpine/bar-graph/v1/bar-graph.js +558 -0
- package/dist/m0saic/alpine/bar-graph/v1/index.d.ts +5 -0
- package/dist/m0saic/alpine/bar-graph/v1/index.js +9 -0
- package/dist/m0saic/alpine/commit-feed/v1/commit-feed.d.ts +64 -0
- package/dist/m0saic/alpine/commit-feed/v1/commit-feed.js +261 -0
- package/dist/m0saic/alpine/commit-feed/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/commit-feed/v1/index.js +5 -0
- package/dist/m0saic/alpine/commit-feed/v2/commit-feed.d.ts +78 -0
- package/dist/m0saic/alpine/commit-feed/v2/commit-feed.js +509 -0
- package/dist/m0saic/alpine/commit-feed/v2/index.d.ts +1 -0
- package/dist/m0saic/alpine/commit-feed/v2/index.js +5 -0
- package/dist/m0saic/alpine/contributor-table/v1/assets/README.md +13 -0
- package/dist/m0saic/alpine/contributor-table/v1/assets/layout-lite.m0 +9 -0
- package/dist/m0saic/alpine/contributor-table/v1/assets/layout-standard.m0 +9 -0
- package/dist/m0saic/alpine/contributor-table/v1/contributor-table.d.ts +76 -0
- package/dist/m0saic/alpine/contributor-table/v1/contributor-table.js +651 -0
- package/dist/m0saic/alpine/contributor-table/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/contributor-table/v1/index.js +5 -0
- package/dist/m0saic/alpine/donut/v1/donut.d.ts +55 -0
- package/dist/m0saic/alpine/donut/v1/donut.js +322 -0
- package/dist/m0saic/alpine/donut/v1/index.d.ts +5 -0
- package/dist/m0saic/alpine/donut/v1/index.js +9 -0
- package/dist/m0saic/alpine/donut/v2/donut.d.ts +58 -0
- package/dist/m0saic/alpine/donut/v2/donut.js +268 -0
- package/dist/m0saic/alpine/donut/v2/index.d.ts +1 -0
- package/dist/m0saic/alpine/donut/v2/index.js +5 -0
- package/dist/m0saic/alpine/donut/v3/donut.d.ts +65 -0
- package/dist/m0saic/alpine/donut/v3/donut.js +428 -0
- package/dist/m0saic/alpine/donut/v3/index.d.ts +1 -0
- package/dist/m0saic/alpine/donut/v3/index.js +5 -0
- package/dist/m0saic/alpine/heatmap/v1/heatmap.d.ts +68 -0
- package/dist/m0saic/alpine/heatmap/v1/heatmap.js +370 -0
- package/dist/m0saic/alpine/heatmap/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/heatmap/v1/index.js +5 -0
- package/dist/m0saic/alpine/heatmap/v2/heatmap.d.ts +73 -0
- package/dist/m0saic/alpine/heatmap/v2/heatmap.js +582 -0
- package/dist/m0saic/alpine/heatmap/v2/index.d.ts +1 -0
- package/dist/m0saic/alpine/heatmap/v2/index.js +5 -0
- package/dist/m0saic/alpine/index.d.ts +20 -0
- package/dist/m0saic/alpine/index.js +37 -0
- package/dist/m0saic/alpine/kpi-card/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/kpi-card/v1/index.js +5 -0
- package/dist/m0saic/alpine/kpi-card/v1/kpi-card.d.ts +54 -0
- package/dist/m0saic/alpine/kpi-card/v1/kpi-card.js +311 -0
- package/dist/m0saic/alpine/kpi-card/v2/index.d.ts +1 -0
- package/dist/m0saic/alpine/kpi-card/v2/index.js +5 -0
- package/dist/m0saic/alpine/kpi-card/v2/kpi-card.d.ts +60 -0
- package/dist/m0saic/alpine/kpi-card/v2/kpi-card.js +362 -0
- package/dist/m0saic/alpine/leaderboard/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/leaderboard/v1/index.js +5 -0
- package/dist/m0saic/alpine/leaderboard/v1/leaderboard.d.ts +58 -0
- package/dist/m0saic/alpine/leaderboard/v1/leaderboard.js +313 -0
- package/dist/m0saic/alpine/line-chart/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/line-chart/v1/index.js +5 -0
- package/dist/m0saic/alpine/line-chart/v1/line-chart.d.ts +70 -0
- package/dist/m0saic/alpine/line-chart/v1/line-chart.js +408 -0
- package/dist/m0saic/alpine/line-chart/v2/index.d.ts +1 -0
- package/dist/m0saic/alpine/line-chart/v2/index.js +5 -0
- package/dist/m0saic/alpine/line-chart/v2/line-chart.d.ts +72 -0
- package/dist/m0saic/alpine/line-chart/v2/line-chart.js +434 -0
- package/dist/m0saic/alpine/progress-card/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/progress-card/v1/index.js +5 -0
- package/dist/m0saic/alpine/progress-card/v1/progress-card.d.ts +53 -0
- package/dist/m0saic/alpine/progress-card/v1/progress-card.js +333 -0
- package/dist/m0saic/alpine/stat-card/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/stat-card/v1/index.js +5 -0
- package/dist/m0saic/alpine/stat-card/v1/stat-card.d.ts +76 -0
- package/dist/m0saic/alpine/stat-card/v1/stat-card.js +295 -0
- package/dist/m0saic/alpine/timeline/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/timeline/v1/index.js +5 -0
- package/dist/m0saic/alpine/timeline/v1/timeline.d.ts +55 -0
- package/dist/m0saic/alpine/timeline/v1/timeline.js +266 -0
- package/dist/m0saic/alpine/timeline/v2/index.d.ts +1 -0
- package/dist/m0saic/alpine/timeline/v2/index.js +5 -0
- package/dist/m0saic/alpine/timeline/v2/timeline.d.ts +61 -0
- package/dist/m0saic/alpine/timeline/v2/timeline.js +371 -0
- package/dist/m0saic/alpine/treemap/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/treemap/v1/index.js +5 -0
- package/dist/m0saic/alpine/treemap/v1/treemap.d.ts +56 -0
- package/dist/m0saic/alpine/treemap/v1/treemap.js +326 -0
- package/dist/m0saic/alpine/treemap/v2/index.d.ts +1 -0
- package/dist/m0saic/alpine/treemap/v2/index.js +5 -0
- package/dist/m0saic/alpine/treemap/v2/treemap.d.ts +59 -0
- package/dist/m0saic/alpine/treemap/v2/treemap.js +323 -0
- package/dist/m0saic/benchmark/battery/assets/media/README.md +16 -0
- package/dist/m0saic/benchmark/battery/assets/media/bbb-av.mp4 +0 -0
- package/dist/m0saic/benchmark/battery/assets/media/bbb-clip-01.mp4 +0 -0
- package/dist/m0saic/benchmark/battery/assets/media/bbb-clip-02.mp4 +0 -0
- package/dist/m0saic/benchmark/battery/assets/media/bbb-clip-03.mp4 +0 -0
- package/dist/m0saic/benchmark/battery/assets/media/bbb-clip-04.mp4 +0 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/duration-long.mosaic +80 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/encoders-base.mosaic +32 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/geometry-grid.mosaic +592 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/lifetime-window-fade.mosaic +28 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/real-bar-graph.mosaic +1980 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/real-donut.mosaic +797 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/real-screencap-grid.mosaic +4591 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/real-stat-card.mosaic +187 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/sources-audio.mosaic +31 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/sources-lavfi.mosaic +32 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/sources-media.mosaic +73 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/sources-nested.mosaic +48 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/sources-ref.mosaic +24 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/sources-text.mosaic +120 -0
- package/dist/m0saic/benchmark/battery/manifest.d.ts +65 -0
- package/dist/m0saic/benchmark/battery/manifest.js +97 -0
- package/dist/m0saic/benchmark/index.d.ts +2 -0
- package/dist/m0saic/benchmark/index.js +22 -0
- package/dist/m0saic/benchmark/report/v1/assets/m-logo.png +0 -0
- package/dist/m0saic/benchmark/report/v1/assets/sample-session/benchmark.json +41 -0
- package/dist/m0saic/benchmark/report/v1/index.d.ts +1 -0
- package/dist/m0saic/benchmark/report/v1/index.js +17 -0
- package/dist/m0saic/benchmark/report/v1/report.d.ts +23 -0
- package/dist/m0saic/benchmark/report/v1/report.js +242 -0
- package/dist/m0saic/benchmark/run/v1/benchmarkRun.d.ts +57 -0
- package/dist/m0saic/benchmark/run/v1/benchmarkRun.js +151 -0
- package/dist/m0saic/benchmark/run/v1/confirmation.d.ts +11 -0
- package/dist/m0saic/benchmark/run/v1/confirmation.js +48 -0
- package/dist/m0saic/benchmark/run/v1/index.d.ts +1 -0
- package/dist/m0saic/benchmark/run/v1/index.js +17 -0
- package/dist/m0saic/benchmark/run/v1/renderScenario.d.ts +12 -0
- package/dist/m0saic/benchmark/run/v1/renderScenario.js +122 -0
- package/dist/m0saic/benchmark/run/v1/runner.d.ts +10 -0
- package/dist/m0saic/benchmark/run/v1/runner.js +208 -0
- package/dist/m0saic/brand/business-card/v1/back-catalog.d.ts +68 -0
- package/dist/m0saic/brand/business-card/v1/back-catalog.js +121 -0
- package/dist/m0saic/brand/business-card/v1/business-card.d.ts +82 -0
- package/dist/m0saic/brand/business-card/v1/business-card.js +517 -0
- package/dist/m0saic/brand/business-card/v1/index.d.ts +4 -0
- package/dist/m0saic/brand/business-card/v1/index.js +16 -0
- package/dist/m0saic/brand/business-card/v1/layout.d.ts +163 -0
- package/dist/m0saic/brand/business-card/v1/layout.js +369 -0
- package/dist/m0saic/brand/community-m/v1/camera.d.ts +45 -0
- package/dist/m0saic/brand/community-m/v1/camera.js +44 -0
- package/dist/m0saic/brand/community-m/v1/caption.d.ts +5 -0
- package/dist/m0saic/brand/community-m/v1/caption.js +18 -0
- package/dist/m0saic/brand/community-m/v1/community-m.d.ts +25 -0
- package/dist/m0saic/brand/community-m/v1/community-m.js +117 -0
- package/dist/m0saic/brand/community-m/v1/community-m.web.d.ts +3 -0
- package/dist/m0saic/brand/community-m/v1/community-m.web.js +172 -0
- package/dist/m0saic/brand/community-m/v1/gen-seed-piece.d.ts +1 -0
- package/dist/m0saic/brand/community-m/v1/gen-seed-piece.js +59 -0
- package/dist/m0saic/brand/community-m/v1/geometry.d.ts +44 -0
- package/dist/m0saic/brand/community-m/v1/geometry.js +68 -0
- package/dist/m0saic/brand/community-m/v1/imageSize.node.d.ts +3 -0
- package/dist/m0saic/brand/community-m/v1/imageSize.node.js +60 -0
- package/dist/m0saic/brand/community-m/v1/index.d.ts +1 -0
- package/dist/m0saic/brand/community-m/v1/index.js +5 -0
- package/dist/m0saic/brand/community-m/v1/loadPiece.node.d.ts +14 -0
- package/dist/m0saic/brand/community-m/v1/loadPiece.node.js +69 -0
- package/dist/m0saic/brand/community-m/v1/manifest.d.ts +22 -0
- package/dist/m0saic/brand/community-m/v1/manifest.js +81 -0
- package/dist/m0saic/brand/community-m/v1/mark.d.ts +76 -0
- package/dist/m0saic/brand/community-m/v1/mark.js +136 -0
- package/dist/m0saic/brand/community-m/v1/paths.d.ts +14 -0
- package/dist/m0saic/brand/community-m/v1/paths.js +61 -0
- package/dist/m0saic/brand/community-m/v1/piece.d.ts +28 -0
- package/dist/m0saic/brand/community-m/v1/piece.js +35 -0
- package/dist/m0saic/brand/community-m/v1/pipeline.d.ts +122 -0
- package/dist/m0saic/brand/community-m/v1/pipeline.js +461 -0
- package/dist/m0saic/brand/community-m/v1/preview.d.ts +75 -0
- package/dist/m0saic/brand/community-m/v1/preview.js +214 -0
- package/dist/m0saic/brand/community-m/v1/props.d.ts +101 -0
- package/dist/m0saic/brand/community-m/v1/props.js +178 -0
- package/dist/m0saic/brand/community-m/v1/reveal.d.ts +129 -0
- package/dist/m0saic/brand/community-m/v1/reveal.js +155 -0
- package/dist/m0saic/brand/community-m/v1/seedPiece.d.ts +57 -0
- package/dist/m0saic/brand/community-m/v1/seedPiece.js +153 -0
- package/dist/m0saic/brand/community-m/v1/target.d.ts +88 -0
- package/dist/m0saic/brand/community-m/v1/target.js +132 -0
- package/dist/m0saic/brand/community-m/v1/timing.d.ts +32 -0
- package/dist/m0saic/brand/community-m/v1/timing.js +57 -0
- package/dist/m0saic/brand/community-m/v1/webPiece.d.ts +23 -0
- package/dist/m0saic/brand/community-m/v1/webPiece.js +42 -0
- package/dist/m0saic/brand/community-m/v1/wordmark.d.ts +34 -0
- package/dist/m0saic/brand/community-m/v1/wordmark.js +62 -0
- package/dist/m0saic/brand/index.d.ts +7 -0
- package/dist/m0saic/brand/index.js +17 -0
- package/dist/m0saic/brand/logo/v1/index.d.ts +1 -0
- package/dist/m0saic/brand/logo/v1/index.js +5 -0
- package/dist/m0saic/brand/logo/v1/logo.d.ts +30 -0
- package/dist/m0saic/brand/logo/v1/logo.js +471 -0
- package/dist/m0saic/brand/logo/v2/index.d.ts +1 -0
- package/dist/m0saic/brand/logo/v2/index.js +5 -0
- package/dist/m0saic/brand/logo/v2/logo.d.ts +30 -0
- package/dist/m0saic/brand/logo/v2/logo.js +615 -0
- package/dist/m0saic/brand/logo/v3/index.d.ts +1 -0
- package/dist/m0saic/brand/logo/v3/index.js +5 -0
- package/dist/m0saic/brand/logo/v3/logo.d.ts +36 -0
- package/dist/m0saic/brand/logo/v3/logo.js +666 -0
- package/dist/m0saic/brand/logo/v3/logo_runner.d.ts +36 -0
- package/dist/m0saic/brand/logo/v3/logo_runner.js +216 -0
- package/dist/m0saic/brand/qr-stamp/assets/brand-qr-with-logo.svg +8 -0
- package/dist/m0saic/brand/qr-stamp/assets/qr-animate.dark.mp4 +0 -0
- package/dist/m0saic/brand/qr-stamp/assets/qr-animate.dark.static.png +0 -0
- package/dist/m0saic/brand/qr-stamp/assets/qr-animate.light.mp4 +0 -0
- package/dist/m0saic/brand/qr-stamp/assets/qr-animate.light.static.png +0 -0
- package/dist/m0saic/brand/qr-stamp/still/v1/index.d.ts +2 -0
- package/dist/m0saic/brand/qr-stamp/still/v1/index.js +10 -0
- package/dist/m0saic/brand/qr-stamp/still/v1/qr-stamp-still.d.ts +45 -0
- package/dist/m0saic/brand/qr-stamp/still/v1/qr-stamp-still.js +347 -0
- package/dist/m0saic/brand/qr-stamp/video/v2/index.d.ts +2 -0
- package/dist/m0saic/brand/qr-stamp/video/v2/index.js +9 -0
- package/dist/m0saic/brand/qr-stamp/video/v2/qr-stamp.d.ts +43 -0
- package/dist/m0saic/brand/qr-stamp/video/v2/qr-stamp.js +447 -0
- package/dist/m0saic/brand/qr-stamp/video/v2/windows.d.ts +19 -0
- package/dist/m0saic/brand/qr-stamp/video/v2/windows.js +24 -0
- package/dist/m0saic/charts/_shared/index.d.ts +8 -0
- package/dist/m0saic/charts/_shared/index.js +24 -0
- package/dist/m0saic/charts/_shared/line.d.ts +100 -0
- package/dist/m0saic/charts/_shared/line.js +134 -0
- package/dist/m0saic/charts/_shared/scale.d.ts +9 -0
- package/dist/m0saic/charts/_shared/scale.js +17 -0
- package/dist/m0saic/charts/bar-graph/v1/anim.d.ts +83 -0
- package/dist/m0saic/charts/bar-graph/v1/anim.js +104 -0
- package/dist/m0saic/charts/bar-graph/v1/axis.d.ts +51 -0
- package/dist/m0saic/charts/bar-graph/v1/axis.js +73 -0
- package/dist/m0saic/charts/bar-graph/v1/bar-graph.d.ts +44 -0
- package/dist/m0saic/charts/bar-graph/v1/bar-graph.js +316 -0
- package/dist/m0saic/charts/bar-graph/v1/defaults.d.ts +88 -0
- package/dist/m0saic/charts/bar-graph/v1/defaults.js +157 -0
- package/dist/m0saic/charts/bar-graph/v1/format.d.ts +46 -0
- package/dist/m0saic/charts/bar-graph/v1/format.js +95 -0
- package/dist/m0saic/charts/bar-graph/v1/index.d.ts +31 -0
- package/dist/m0saic/charts/bar-graph/v1/index.js +36 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/bar-cell.d.ts +53 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/bar-cell.js +198 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/bar-fill.d.ts +4 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/bar-fill.js +154 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/bars-stack.d.ts +41 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/bars-stack.js +208 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/chart-frame.d.ts +32 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/chart-frame.js +124 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/labels.d.ts +52 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/labels.js +504 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/plot-area.d.ts +24 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/plot-area.js +180 -0
- package/dist/m0saic/charts/bar-graph/v1/types.d.ts +326 -0
- package/dist/m0saic/charts/bar-graph/v1/types.js +36 -0
- package/dist/m0saic/charts/bar-graph/v2/bar-graph.d.ts +131 -0
- package/dist/m0saic/charts/bar-graph/v2/bar-graph.js +768 -0
- package/dist/m0saic/charts/bar-graph/v2/index.d.ts +10 -0
- package/dist/m0saic/charts/bar-graph/v2/index.js +14 -0
- package/dist/m0saic/charts/donut/v1/anim.d.ts +54 -0
- package/dist/m0saic/charts/donut/v1/anim.js +84 -0
- package/dist/m0saic/charts/donut/v1/donut.d.ts +87 -0
- package/dist/m0saic/charts/donut/v1/donut.js +400 -0
- package/dist/m0saic/charts/donut/v1/geometry.d.ts +55 -0
- package/dist/m0saic/charts/donut/v1/geometry.js +115 -0
- package/dist/m0saic/charts/donut/v1/index.d.ts +11 -0
- package/dist/m0saic/charts/donut/v1/index.js +17 -0
- package/dist/m0saic/charts/donut/v2/donut.d.ts +67 -0
- package/dist/m0saic/charts/donut/v2/donut.js +307 -0
- package/dist/m0saic/charts/donut/v2/index.d.ts +10 -0
- package/dist/m0saic/charts/donut/v2/index.js +14 -0
- package/dist/m0saic/charts/donut/v3/anim.d.ts +47 -0
- package/dist/m0saic/charts/donut/v3/anim.js +77 -0
- package/dist/m0saic/charts/donut/v3/donut.d.ts +54 -0
- package/dist/m0saic/charts/donut/v3/donut.js +531 -0
- package/dist/m0saic/charts/donut/v3/geometry.d.ts +74 -0
- package/dist/m0saic/charts/donut/v3/geometry.js +152 -0
- package/dist/m0saic/charts/donut/v3/index.d.ts +10 -0
- package/dist/m0saic/charts/donut/v3/index.js +14 -0
- package/dist/m0saic/charts/donut/v4/donut.d.ts +63 -0
- package/dist/m0saic/charts/donut/v4/donut.js +546 -0
- package/dist/m0saic/charts/donut/v4/index.d.ts +10 -0
- package/dist/m0saic/charts/donut/v4/index.js +14 -0
- package/dist/m0saic/charts/index.d.ts +8 -0
- package/dist/m0saic/charts/index.js +25 -0
- package/dist/m0saic/charts/line-chart/v1/anim.d.ts +78 -0
- package/dist/m0saic/charts/line-chart/v1/anim.js +119 -0
- package/dist/m0saic/charts/line-chart/v1/axis.d.ts +48 -0
- package/dist/m0saic/charts/line-chart/v1/axis.js +55 -0
- package/dist/m0saic/charts/line-chart/v1/card.d.ts +27 -0
- package/dist/m0saic/charts/line-chart/v1/card.js +44 -0
- package/dist/m0saic/charts/line-chart/v1/chrome-spec.d.ts +110 -0
- package/dist/m0saic/charts/line-chart/v1/chrome-spec.js +208 -0
- package/dist/m0saic/charts/line-chart/v1/chrome.d.ts +30 -0
- package/dist/m0saic/charts/line-chart/v1/chrome.js +335 -0
- package/dist/m0saic/charts/line-chart/v1/defaults.d.ts +65 -0
- package/dist/m0saic/charts/line-chart/v1/defaults.js +151 -0
- package/dist/m0saic/charts/line-chart/v1/format.d.ts +26 -0
- package/dist/m0saic/charts/line-chart/v1/format.js +76 -0
- package/dist/m0saic/charts/line-chart/v1/frame.d.ts +50 -0
- package/dist/m0saic/charts/line-chart/v1/frame.js +62 -0
- package/dist/m0saic/charts/line-chart/v1/geometry.d.ts +15 -0
- package/dist/m0saic/charts/line-chart/v1/geometry.js +34 -0
- package/dist/m0saic/charts/line-chart/v1/index.d.ts +16 -0
- package/dist/m0saic/charts/line-chart/v1/index.js +21 -0
- package/dist/m0saic/charts/line-chart/v1/line-chart.d.ts +26 -0
- package/dist/m0saic/charts/line-chart/v1/line-chart.js +634 -0
- package/dist/m0saic/charts/line-chart/v1/line-series.d.ts +69 -0
- package/dist/m0saic/charts/line-chart/v1/line-series.js +259 -0
- package/dist/m0saic/charts/line-chart/v1/types.d.ts +328 -0
- package/dist/m0saic/charts/line-chart/v1/types.js +24 -0
- package/dist/m0saic/charts/stat-card/v1/index.d.ts +10 -0
- package/dist/m0saic/charts/stat-card/v1/index.js +15 -0
- package/dist/m0saic/charts/stat-card/v1/stat-card.d.ts +78 -0
- package/dist/m0saic/charts/stat-card/v1/stat-card.js +475 -0
- package/dist/m0saic/code/_shared/code-diff.d.ts +73 -0
- package/dist/m0saic/code/_shared/code-diff.js +220 -0
- package/dist/m0saic/code/_shared/code-lexer.d.ts +28 -0
- package/dist/m0saic/code/_shared/code-lexer.js +226 -0
- package/dist/m0saic/code/_shared/code-metrics.d.ts +58 -0
- package/dist/m0saic/code/_shared/code-metrics.js +140 -0
- package/dist/m0saic/code/_shared/code-theme.d.ts +30 -0
- package/dist/m0saic/code/_shared/code-theme.js +141 -0
- package/dist/m0saic/code/index.d.ts +1 -0
- package/dist/m0saic/code/index.js +17 -0
- package/dist/m0saic/code/snippet-morph/v1/internal/chrome.d.ts +60 -0
- package/dist/m0saic/code/snippet-morph/v1/internal/chrome.js +252 -0
- package/dist/m0saic/code/snippet-morph/v1/internal/plan.d.ts +90 -0
- package/dist/m0saic/code/snippet-morph/v1/internal/plan.js +226 -0
- package/dist/m0saic/code/snippet-morph/v1/internal/steps.d.ts +103 -0
- package/dist/m0saic/code/snippet-morph/v1/internal/steps.js +313 -0
- package/dist/m0saic/code/snippet-morph/v1/snippet-morph.d.ts +61 -0
- package/dist/m0saic/code/snippet-morph/v1/snippet-morph.js +462 -0
- package/dist/m0saic/collage/image-collage/v1/demo-fixture.d.ts +18 -0
- package/dist/m0saic/collage/image-collage/v1/demo-fixture.js +30 -0
- package/dist/m0saic/collage/image-collage/v1/emit.d.ts +81 -0
- package/dist/m0saic/collage/image-collage/v1/emit.js +163 -0
- package/dist/m0saic/collage/image-collage/v1/image-collage.d.ts +63 -0
- package/dist/m0saic/collage/image-collage/v1/image-collage.js +386 -0
- package/dist/m0saic/collage/image-collage/v1/index.d.ts +2 -0
- package/dist/m0saic/collage/image-collage/v1/index.js +5 -0
- package/dist/m0saic/collage/image-collage/v1/packer/candidates.d.ts +71 -0
- package/dist/m0saic/collage/image-collage/v1/packer/candidates.js +211 -0
- package/dist/m0saic/collage/image-collage/v1/packer/classify.d.ts +26 -0
- package/dist/m0saic/collage/image-collage/v1/packer/classify.js +70 -0
- package/dist/m0saic/collage/image-collage/v1/packer/index.d.ts +7 -0
- package/dist/m0saic/collage/image-collage/v1/packer/index.js +23 -0
- package/dist/m0saic/collage/image-collage/v1/packer/paging.d.ts +39 -0
- package/dist/m0saic/collage/image-collage/v1/packer/paging.js +139 -0
- package/dist/m0saic/collage/image-collage/v1/packer/score.d.ts +25 -0
- package/dist/m0saic/collage/image-collage/v1/packer/score.js +69 -0
- package/dist/m0saic/collage/image-collage/v1/packer/solve.d.ts +27 -0
- package/dist/m0saic/collage/image-collage/v1/packer/solve.js +84 -0
- package/dist/m0saic/collage/image-collage/v1/packer/tiler.d.ts +65 -0
- package/dist/m0saic/collage/image-collage/v1/packer/tiler.js +607 -0
- package/dist/m0saic/collage/image-collage/v1/packer/types.d.ts +99 -0
- package/dist/m0saic/collage/image-collage/v1/packer/types.js +10 -0
- package/dist/m0saic/collage/image-collage/v1/tutorial.d.ts +17 -0
- package/dist/m0saic/collage/image-collage/v1/tutorial.js +269 -0
- package/dist/m0saic/collage/index.d.ts +2 -0
- package/dist/m0saic/collage/index.js +18 -0
- package/dist/m0saic/collage/spread-grid-mock/v1/grid-fixture.d.ts +7 -0
- package/dist/m0saic/collage/spread-grid-mock/v1/grid-fixture.js +11 -0
- package/dist/m0saic/collage/spread-grid-mock/v1/index.d.ts +1 -0
- package/dist/m0saic/collage/spread-grid-mock/v1/index.js +5 -0
- package/dist/m0saic/collage/spread-grid-mock/v1/spread-grid-mock.d.ts +29 -0
- package/dist/m0saic/collage/spread-grid-mock/v1/spread-grid-mock.js +78 -0
- package/dist/m0saic/dsl-tutorial/index.d.ts +1 -0
- package/dist/m0saic/dsl-tutorial/index.js +18 -0
- package/dist/m0saic/dsl-tutorial/v1/_shared/brand-glyphs.d.ts +24 -0
- package/dist/m0saic/dsl-tutorial/v1/_shared/brand-glyphs.js +17 -0
- package/dist/m0saic/dsl-tutorial/v1/_shared/m0saic-logo.d.ts +6 -0
- package/dist/m0saic/dsl-tutorial/v1/_shared/m0saic-logo.js +9 -0
- package/dist/m0saic/dsl-tutorial/v1/_shared/node-kit.d.ts +57 -0
- package/dist/m0saic/dsl-tutorial/v1/_shared/node-kit.js +156 -0
- package/dist/m0saic/dsl-tutorial/v1/_shared/text-fit.d.ts +76 -0
- package/dist/m0saic/dsl-tutorial/v1/_shared/text-fit.js +127 -0
- package/dist/m0saic/dsl-tutorial/v1/dsl-tutorial.d.ts +124 -0
- package/dist/m0saic/dsl-tutorial/v1/dsl-tutorial.js +675 -0
- package/dist/m0saic/dsl-tutorial/v1/index.d.ts +24 -0
- package/dist/m0saic/dsl-tutorial/v1/index.js +35 -0
- package/dist/m0saic/dsl-tutorial/v1/panels/canvas/v1/dsl-canvas.d.ts +113 -0
- package/dist/m0saic/dsl-tutorial/v1/panels/canvas/v1/dsl-canvas.js +573 -0
- package/dist/m0saic/dsl-tutorial/v1/panels/chrome/v1/dsl-chrome.d.ts +83 -0
- package/dist/m0saic/dsl-tutorial/v1/panels/chrome/v1/dsl-chrome.js +373 -0
- package/dist/m0saic/dsl-tutorial/v1/panels/dsl-string/v1/dsl-string.d.ts +48 -0
- package/dist/m0saic/dsl-tutorial/v1/panels/dsl-string/v1/dsl-string.js +366 -0
- package/dist/m0saic/dsl-tutorial/v1/panels/inspector/v1/dsl-inspector.d.ts +54 -0
- package/dist/m0saic/dsl-tutorial/v1/panels/inspector/v1/dsl-inspector.js +304 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/buildSteps.d.ts +110 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/buildSteps.js +443 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/camera.d.ts +64 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/camera.js +177 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/cursor.d.ts +47 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/cursor.js +64 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/dslString.d.ts +61 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/dslString.js +135 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/inspector.d.ts +62 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/inspector.js +197 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/timing.d.ts +117 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/timing.js +180 -0
- package/dist/m0saic/dsl-tutorial/v1/theme/tokens.d.ts +87 -0
- package/dist/m0saic/dsl-tutorial/v1/theme/tokens.js +96 -0
- package/dist/m0saic/forensic/index.d.ts +1 -0
- package/dist/m0saic/forensic/index.js +17 -0
- package/dist/m0saic/forensic/watermark/_shared/cellLuminance.d.ts +37 -0
- package/dist/m0saic/forensic/watermark/_shared/cellLuminance.js +62 -0
- package/dist/m0saic/forensic/watermark/index.d.ts +2 -0
- package/dist/m0saic/forensic/watermark/index.js +18 -0
- package/dist/m0saic/forensic/watermark/verify/index.d.ts +1 -0
- package/dist/m0saic/forensic/watermark/verify/index.js +17 -0
- package/dist/m0saic/forensic/watermark/verify/v1/decode.d.ts +83 -0
- package/dist/m0saic/forensic/watermark/verify/v1/decode.js +270 -0
- package/dist/m0saic/forensic/watermark/verify/v1/index.d.ts +2 -0
- package/dist/m0saic/forensic/watermark/verify/v1/index.js +23 -0
- package/dist/m0saic/forensic/watermark/verify/v1/report.d.ts +71 -0
- package/dist/m0saic/forensic/watermark/verify/v1/report.js +428 -0
- package/dist/m0saic/forensic/watermark/verify/v1/verify.d.ts +55 -0
- package/dist/m0saic/forensic/watermark/verify/v1/verify.js +286 -0
- package/dist/m0saic/forensic/watermark/video/index.d.ts +1 -0
- package/dist/m0saic/forensic/watermark/video/index.js +17 -0
- package/dist/m0saic/forensic/watermark/video/v1/forensic-watermark.d.ts +119 -0
- package/dist/m0saic/forensic/watermark/video/v1/forensic-watermark.js +629 -0
- package/dist/m0saic/forensic/watermark/video/v1/index.d.ts +2 -0
- package/dist/m0saic/forensic/watermark/video/v1/index.js +9 -0
- package/dist/m0saic/forensic/watermark/video/v1/maskAsset.d.ts +67 -0
- package/dist/m0saic/forensic/watermark/video/v1/maskAsset.js +125 -0
- package/dist/m0saic/forensic/watermark/video/v1/probeHost.d.ts +69 -0
- package/dist/m0saic/forensic/watermark/video/v1/probeHost.js +83 -0
- package/dist/m0saic/github/client.d.ts +200 -0
- package/dist/m0saic/github/client.js +161 -0
- package/dist/m0saic/github/connection.d.ts +24 -0
- package/dist/m0saic/github/connection.js +91 -0
- package/dist/m0saic/github/index.d.ts +20 -0
- package/dist/m0saic/github/index.js +42 -0
- package/dist/m0saic/github/repo-facts-fetcher/index.d.ts +4 -0
- package/dist/m0saic/github/repo-facts-fetcher/index.js +20 -0
- package/dist/m0saic/github/repo-facts-fetcher/v1/build-facts.d.ts +54 -0
- package/dist/m0saic/github/repo-facts-fetcher/v1/build-facts.js +238 -0
- package/dist/m0saic/github/repo-facts-fetcher/v1/facts.d.ts +112 -0
- package/dist/m0saic/github/repo-facts-fetcher/v1/facts.js +12 -0
- package/dist/m0saic/github/repo-facts-fetcher/v1/repo-facts-fetcher.d.ts +67 -0
- package/dist/m0saic/github/repo-facts-fetcher/v1/repo-facts-fetcher.js +210 -0
- package/dist/m0saic/github/repo-facts-fetcher/v1/sample-facts.d.ts +16 -0
- package/dist/m0saic/github/repo-facts-fetcher/v1/sample-facts.js +175 -0
- package/dist/m0saic/github/week-math.d.ts +50 -0
- package/dist/m0saic/github/week-math.js +96 -0
- package/dist/m0saic/github/weekly-pulse/index.d.ts +1 -0
- package/dist/m0saic/github/weekly-pulse/index.js +17 -0
- package/dist/m0saic/github/weekly-pulse/v1/weekly-pulse.d.ts +51 -0
- package/dist/m0saic/github/weekly-pulse/v1/weekly-pulse.js +153 -0
- package/dist/m0saic/github/weekly-pulse-adapter/index.d.ts +2 -0
- package/dist/m0saic/github/weekly-pulse-adapter/index.js +18 -0
- package/dist/m0saic/github/weekly-pulse-adapter/v1/derive-pulse.d.ts +24 -0
- package/dist/m0saic/github/weekly-pulse-adapter/v1/derive-pulse.js +257 -0
- package/dist/m0saic/github/weekly-pulse-adapter/v1/weekly-pulse-adapter.d.ts +35 -0
- package/dist/m0saic/github/weekly-pulse-adapter/v1/weekly-pulse-adapter.js +131 -0
- package/dist/m0saic/github/year-card/index.d.ts +1 -0
- package/dist/m0saic/github/year-card/index.js +17 -0
- package/dist/m0saic/github/year-card/v1/index.d.ts +2 -0
- package/dist/m0saic/github/year-card/v1/index.js +16 -0
- package/dist/m0saic/github/year-card/v1/year-card.d.ts +90 -0
- package/dist/m0saic/github/year-card/v1/year-card.js +476 -0
- package/dist/m0saic/hello-world/index.d.ts +1 -0
- package/dist/m0saic/hello-world/index.js +18 -0
- package/dist/m0saic/hello-world/v1/hello-world.d.ts +4 -0
- package/dist/m0saic/hello-world/v1/hello-world.js +36 -0
- package/dist/m0saic/hello-world/v1/index.d.ts +5 -0
- package/dist/m0saic/hello-world/v1/index.js +9 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/bake-fin-qr.sh +11 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/ffmpeg-logo.png +0 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/ffmpeg_logo_480x480.svg +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/m-hero.png +0 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/qr-fin.mp4 +0 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/scatter-desktop.mp4 +0 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/scatter-layout.m0p +5146 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/scatter-mobile.mp4 +0 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/scatter-square.mp4 +0 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/title-layout.m0p +130 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/pulse-chrome.d.ts +151 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/pulse-chrome.js +305 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/pulse-data.d.ts +178 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/pulse-data.js +238 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/pulse-glyphs.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/pulse-glyphs.js +12 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/pulse-theme.d.ts +67 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/pulse-theme.js +59 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/scatter.d.ts +54 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/scatter.js +173 -0
- package/dist/m0saic/hero/ffmpeg-pulse/activity-trend/v1/activity-trend.d.ts +37 -0
- package/dist/m0saic/hero/ffmpeg-pulse/activity-trend/v1/activity-trend.js +178 -0
- package/dist/m0saic/hero/ffmpeg-pulse/activity-trend/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/activity-trend/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/changes-breakdown/v1/changes-breakdown.d.ts +37 -0
- package/dist/m0saic/hero/ffmpeg-pulse/changes-breakdown/v1/changes-breakdown.js +164 -0
- package/dist/m0saic/hero/ffmpeg-pulse/changes-breakdown/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/changes-breakdown/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/contributions/v1/contributions.d.ts +37 -0
- package/dist/m0saic/hero/ffmpeg-pulse/contributions/v1/contributions.js +159 -0
- package/dist/m0saic/hero/ffmpeg-pulse/contributions/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/contributions/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/fin/v1/fin.d.ts +31 -0
- package/dist/m0saic/hero/ffmpeg-pulse/fin/v1/fin.js +154 -0
- package/dist/m0saic/hero/ffmpeg-pulse/fin/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/fin/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/index.d.ts +10 -0
- package/dist/m0saic/hero/ffmpeg-pulse/index.js +24 -0
- package/dist/m0saic/hero/ffmpeg-pulse/kpi-overview/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/kpi-overview/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/kpi-overview/v1/kpi-overview.d.ts +38 -0
- package/dist/m0saic/hero/ffmpeg-pulse/kpi-overview/v1/kpi-overview.js +161 -0
- package/dist/m0saic/hero/ffmpeg-pulse/notable-commits/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/notable-commits/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/notable-commits/v1/notable-commits.d.ts +36 -0
- package/dist/m0saic/hero/ffmpeg-pulse/notable-commits/v1/notable-commits.js +151 -0
- package/dist/m0saic/hero/ffmpeg-pulse/runner/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/runner/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/runner/v1/runner.d.ts +54 -0
- package/dist/m0saic/hero/ffmpeg-pulse/runner/v1/runner.js +128 -0
- package/dist/m0saic/hero/ffmpeg-pulse/scatter-bake/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/scatter-bake/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/scatter-bake/v1/scatter-bake.d.ts +29 -0
- package/dist/m0saic/hero/ffmpeg-pulse/scatter-bake/v1/scatter-bake.js +47 -0
- package/dist/m0saic/hero/ffmpeg-pulse/title/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/title/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/title/v1/title.d.ts +20 -0
- package/dist/m0saic/hero/ffmpeg-pulse/title/v1/title.js +365 -0
- package/dist/m0saic/hero/ffmpeg-pulse/top-contributors/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/top-contributors/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/top-contributors/v1/top-contributors.d.ts +38 -0
- package/dist/m0saic/hero/ffmpeg-pulse/top-contributors/v1/top-contributors.js +174 -0
- package/dist/m0saic/hero/index.d.ts +1 -0
- package/dist/m0saic/hero/index.js +18 -0
- package/dist/m0saic/index.d.ts +20 -0
- package/dist/m0saic/index.js +56 -0
- package/dist/m0saic/media/barcode/v1/barcode.d.ts +22 -0
- package/dist/m0saic/media/barcode/v1/barcode.js +218 -0
- package/dist/m0saic/media/barcode/v1/index.d.ts +1 -0
- package/dist/m0saic/media/barcode/v1/index.js +9 -0
- package/dist/m0saic/media/blur-regions/index.d.ts +1 -0
- package/dist/m0saic/media/blur-regions/index.js +17 -0
- package/dist/m0saic/media/blur-regions/v1/blur-regions.d.ts +58 -0
- package/dist/m0saic/media/blur-regions/v1/blur-regions.js +303 -0
- package/dist/m0saic/media/blur-regions/v1/index.d.ts +2 -0
- package/dist/m0saic/media/blur-regions/v1/index.js +20 -0
- package/dist/m0saic/media/blur-regions/v1/plan.d.ts +125 -0
- package/dist/m0saic/media/blur-regions/v1/plan.js +204 -0
- package/dist/m0saic/media/blur-regions/v1/tutorial.d.ts +18 -0
- package/dist/m0saic/media/blur-regions/v1/tutorial.js +428 -0
- package/dist/m0saic/media/highlights/index.d.ts +1 -0
- package/dist/m0saic/media/highlights/index.js +17 -0
- package/dist/m0saic/media/highlights/v1/assets/cover-ranges.jpg +0 -0
- package/dist/m0saic/media/highlights/v1/highlights.d.ts +49 -0
- package/dist/m0saic/media/highlights/v1/highlights.js +222 -0
- package/dist/m0saic/media/highlights/v1/index.d.ts +3 -0
- package/dist/m0saic/media/highlights/v1/index.js +19 -0
- package/dist/m0saic/media/highlights/v1/pipeline.d.ts +35 -0
- package/dist/m0saic/media/highlights/v1/pipeline.js +91 -0
- package/dist/m0saic/media/highlights/v1/plan.d.ts +46 -0
- package/dist/m0saic/media/highlights/v1/plan.js +68 -0
- package/dist/m0saic/media/index.d.ts +13 -0
- package/dist/m0saic/media/index.js +31 -0
- package/dist/m0saic/media/logo-animate/index.d.ts +1 -0
- package/dist/m0saic/media/logo-animate/index.js +17 -0
- package/dist/m0saic/media/logo-animate/v1/default-logo.d.ts +12 -0
- package/dist/m0saic/media/logo-animate/v1/default-logo.js +49 -0
- package/dist/m0saic/media/logo-animate/v1/expressions.d.ts +66 -0
- package/dist/m0saic/media/logo-animate/v1/expressions.js +107 -0
- package/dist/m0saic/media/logo-animate/v1/index.d.ts +2 -0
- package/dist/m0saic/media/logo-animate/v1/index.js +5 -0
- package/dist/m0saic/media/logo-animate/v1/layout.d.ts +29 -0
- package/dist/m0saic/media/logo-animate/v1/layout.js +43 -0
- package/dist/m0saic/media/logo-animate/v1/logo-animate.d.ts +106 -0
- package/dist/m0saic/media/logo-animate/v1/logo-animate.js +732 -0
- package/dist/m0saic/media/logo-animate/v1/svg-source.d.ts +63 -0
- package/dist/m0saic/media/logo-animate/v1/svg-source.js +127 -0
- package/dist/m0saic/media/logo-animate/v1/tutorial.d.ts +16 -0
- package/dist/m0saic/media/logo-animate/v1/tutorial.js +378 -0
- package/dist/m0saic/media/metadata-stamp/index.d.ts +1 -0
- package/dist/m0saic/media/metadata-stamp/index.js +17 -0
- package/dist/m0saic/media/metadata-stamp/v1/assets/cover-frame.jpg +0 -0
- package/dist/m0saic/media/metadata-stamp/v1/format-date.d.ts +52 -0
- package/dist/m0saic/media/metadata-stamp/v1/format-date.js +128 -0
- package/dist/m0saic/media/metadata-stamp/v1/index.d.ts +4 -0
- package/dist/m0saic/media/metadata-stamp/v1/index.js +10 -0
- package/dist/m0saic/media/metadata-stamp/v1/metadata-stamp.d.ts +58 -0
- package/dist/m0saic/media/metadata-stamp/v1/metadata-stamp.js +534 -0
- package/dist/m0saic/media/qr/_shared/brandMCenter.d.ts +28 -0
- package/dist/m0saic/media/qr/_shared/brandMCenter.js +52 -0
- package/dist/m0saic/media/qr/animate/v1/expressions.d.ts +164 -0
- package/dist/m0saic/media/qr/animate/v1/expressions.js +251 -0
- package/dist/m0saic/media/qr/animate/v1/index.d.ts +2 -0
- package/dist/m0saic/media/qr/animate/v1/index.js +9 -0
- package/dist/m0saic/media/qr/animate/v1/qr-animate.d.ts +171 -0
- package/dist/m0saic/media/qr/animate/v1/qr-animate.js +775 -0
- package/dist/m0saic/media/qr/animate/v2/index.d.ts +2 -0
- package/dist/m0saic/media/qr/animate/v2/index.js +9 -0
- package/dist/m0saic/media/qr/animate/v2/qr-animate.d.ts +64 -0
- package/dist/m0saic/media/qr/animate/v2/qr-animate.js +341 -0
- package/dist/m0saic/media/qr/basic/v1/index.d.ts +1 -0
- package/dist/m0saic/media/qr/basic/v1/index.js +10 -0
- package/dist/m0saic/media/qr/basic/v1/qr.d.ts +24 -0
- package/dist/m0saic/media/qr/basic/v1/qr.js +132 -0
- package/dist/m0saic/media/qr/code/v1/index.d.ts +2 -0
- package/dist/m0saic/media/qr/code/v1/index.js +9 -0
- package/dist/m0saic/media/qr/code/v1/qr-code.d.ts +135 -0
- package/dist/m0saic/media/qr/code/v1/qr-code.js +611 -0
- package/dist/m0saic/media/qr/index.d.ts +7 -0
- package/dist/m0saic/media/qr/index.js +19 -0
- package/dist/m0saic/media/qr/rounded/v1/index.d.ts +1 -0
- package/dist/m0saic/media/qr/rounded/v1/index.js +9 -0
- package/dist/m0saic/media/qr/rounded/v1/qr-rounded.d.ts +68 -0
- package/dist/m0saic/media/qr/rounded/v1/qr-rounded.js +338 -0
- package/dist/m0saic/media/qr/stamp/v1/assets/cover-frame.jpg +0 -0
- package/dist/m0saic/media/qr/stamp/v1/qr-stamp-custom.d.ts +44 -0
- package/dist/m0saic/media/qr/stamp/v1/qr-stamp-custom.js +389 -0
- package/dist/m0saic/media/qr/stamp-video/v1/expressions.d.ts +10 -0
- package/dist/m0saic/media/qr/stamp-video/v1/expressions.js +18 -0
- package/dist/m0saic/media/qr/stamp-video/v1/gleamBand.d.ts +115 -0
- package/dist/m0saic/media/qr/stamp-video/v1/gleamBand.js +206 -0
- package/dist/m0saic/media/qr/stamp-video/v1/index.d.ts +2 -0
- package/dist/m0saic/media/qr/stamp-video/v1/index.js +9 -0
- package/dist/m0saic/media/qr/stamp-video/v1/qr-stamp.d.ts +82 -0
- package/dist/m0saic/media/qr/stamp-video/v1/qr-stamp.js +424 -0
- package/dist/m0saic/media/screencap_grid/index.d.ts +3 -0
- package/dist/m0saic/media/screencap_grid/index.js +9 -0
- package/dist/m0saic/media/screencap_grid/internal/index.d.ts +1 -0
- package/dist/m0saic/media/screencap_grid/internal/index.js +5 -0
- package/dist/m0saic/media/screencap_grid/internal/info_pane.d.ts +13 -0
- package/dist/m0saic/media/screencap_grid/internal/info_pane.js +130 -0
- package/dist/m0saic/media/screencap_grid/v1/index.d.ts +1 -0
- package/dist/m0saic/media/screencap_grid/v1/index.js +5 -0
- package/dist/m0saic/media/screencap_grid/v1/screencap-grid.d.ts +162 -0
- package/dist/m0saic/media/screencap_grid/v1/screencap-grid.js +690 -0
- package/dist/m0saic/media/screencap_grid/v2/assets/tutorial-sheet.jpg +0 -0
- package/dist/m0saic/media/screencap_grid/v2/index.d.ts +1 -0
- package/dist/m0saic/media/screencap_grid/v2/index.js +5 -0
- package/dist/m0saic/media/screencap_grid/v2/screencap-grid-cover-assets.d.ts +9 -0
- package/dist/m0saic/media/screencap_grid/v2/screencap-grid-cover-assets.js +12 -0
- package/dist/m0saic/media/screencap_grid/v2/screencap-grid-cover.d.ts +97 -0
- package/dist/m0saic/media/screencap_grid/v2/screencap-grid-cover.js +367 -0
- package/dist/m0saic/media/screencap_grid/v2/screencap-grid-tutorial.d.ts +38 -0
- package/dist/m0saic/media/screencap_grid/v2/screencap-grid-tutorial.js +530 -0
- package/dist/m0saic/media/screencap_grid/v2/screencap-grid.d.ts +194 -0
- package/dist/m0saic/media/screencap_grid/v2/screencap-grid.js +615 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/index.d.ts +1 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/index.js +5 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/assets/pair-sheet.jpg +0 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/index.d.ts +1 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/index.js +5 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/screencap-grid-aspect-safe-cover.d.ts +18 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/screencap-grid-aspect-safe-cover.js +191 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/screencap-grid-aspect-safe-tutorial.d.ts +13 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/screencap-grid-aspect-safe-tutorial.js +355 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/screencap-grid-aspect-safe.d.ts +179 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/screencap-grid-aspect-safe.js +544 -0
- package/dist/m0saic/media/scroll_wall/index.d.ts +1 -0
- package/dist/m0saic/media/scroll_wall/index.js +5 -0
- package/dist/m0saic/media/scroll_wall/v1/geometry.d.ts +131 -0
- package/dist/m0saic/media/scroll_wall/v1/geometry.js +172 -0
- package/dist/m0saic/media/scroll_wall/v1/index.d.ts +1 -0
- package/dist/m0saic/media/scroll_wall/v1/index.js +5 -0
- package/dist/m0saic/media/scroll_wall/v1/motion.d.ts +114 -0
- package/dist/m0saic/media/scroll_wall/v1/motion.js +141 -0
- package/dist/m0saic/media/scroll_wall/v1/scroll-wall.d.ts +182 -0
- package/dist/m0saic/media/scroll_wall/v1/scroll-wall.js +432 -0
- package/dist/m0saic/media/subtitle-burn/index.d.ts +1 -0
- package/dist/m0saic/media/subtitle-burn/index.js +17 -0
- package/dist/m0saic/media/subtitle-burn/v1/assets/cover-frame.jpg +0 -0
- package/dist/m0saic/media/subtitle-burn/v1/index.d.ts +1 -0
- package/dist/m0saic/media/subtitle-burn/v1/index.js +6 -0
- package/dist/m0saic/media/subtitle-burn/v1/subtitle-burn-cover.d.ts +13 -0
- package/dist/m0saic/media/subtitle-burn/v1/subtitle-burn-cover.js +196 -0
- package/dist/m0saic/media/subtitle-burn/v1/subtitle-burn.d.ts +137 -0
- package/dist/m0saic/media/subtitle-burn/v1/subtitle-burn.js +603 -0
- package/dist/m0saic/media/trickplay/index.d.ts +1 -0
- package/dist/m0saic/media/trickplay/index.js +17 -0
- package/dist/m0saic/media/trickplay/v1/index.d.ts +4 -0
- package/dist/m0saic/media/trickplay/v1/index.js +18 -0
- package/dist/m0saic/media/trickplay/v1/pipeline.d.ts +51 -0
- package/dist/m0saic/media/trickplay/v1/pipeline.js +180 -0
- package/dist/m0saic/media/trickplay/v1/plan.d.ts +65 -0
- package/dist/m0saic/media/trickplay/v1/plan.js +76 -0
- package/dist/m0saic/media/trickplay/v1/sidecars.d.ts +79 -0
- package/dist/m0saic/media/trickplay/v1/sidecars.js +89 -0
- package/dist/m0saic/media/trickplay/v1/trickplay.d.ts +40 -0
- package/dist/m0saic/media/trickplay/v1/trickplay.js +123 -0
- package/dist/m0saic/media/video_to_png_sequence/index.d.ts +1 -0
- package/dist/m0saic/media/video_to_png_sequence/index.js +5 -0
- package/dist/m0saic/media/video_to_png_sequence/v1/index.d.ts +1 -0
- package/dist/m0saic/media/video_to_png_sequence/v1/index.js +5 -0
- package/dist/m0saic/media/video_to_png_sequence/v1/video-to-png-sequence.d.ts +37 -0
- package/dist/m0saic/media/video_to_png_sequence/v1/video-to-png-sequence.js +234 -0
- package/dist/m0saic/media/watermark/index.d.ts +1 -0
- package/dist/m0saic/media/watermark/index.js +17 -0
- package/dist/m0saic/media/watermark/v1/adaptive.d.ts +85 -0
- package/dist/m0saic/media/watermark/v1/adaptive.js +162 -0
- package/dist/m0saic/media/watermark/v1/content.d.ts +56 -0
- package/dist/m0saic/media/watermark/v1/content.js +160 -0
- package/dist/m0saic/media/watermark/v1/geometry.d.ts +138 -0
- package/dist/m0saic/media/watermark/v1/geometry.js +247 -0
- package/dist/m0saic/media/watermark/v1/index.d.ts +3 -0
- package/dist/m0saic/media/watermark/v1/index.js +5 -0
- package/dist/m0saic/media/watermark/v1/pageGrid.d.ts +105 -0
- package/dist/m0saic/media/watermark/v1/pageGrid.js +203 -0
- package/dist/m0saic/media/watermark/v1/pipeline.d.ts +68 -0
- package/dist/m0saic/media/watermark/v1/pipeline.js +324 -0
- package/dist/m0saic/media/watermark/v1/watermark.d.ts +88 -0
- package/dist/m0saic/media/watermark/v1/watermark.js +452 -0
- package/dist/m0saic/meta/camera-debug/index.d.ts +1 -0
- package/dist/m0saic/meta/camera-debug/index.js +17 -0
- package/dist/m0saic/meta/camera-debug/v1/camera-debug.d.ts +98 -0
- package/dist/m0saic/meta/camera-debug/v1/camera-debug.js +490 -0
- package/dist/m0saic/meta/fixture-fetcher/index.d.ts +1 -0
- package/dist/m0saic/meta/fixture-fetcher/index.js +17 -0
- package/dist/m0saic/meta/fixture-fetcher/v1/fixture-fetcher.d.ts +76 -0
- package/dist/m0saic/meta/fixture-fetcher/v1/fixture-fetcher.js +159 -0
- package/dist/m0saic/meta/hot-reload-smoke/index.d.ts +1 -0
- package/dist/m0saic/meta/hot-reload-smoke/index.js +17 -0
- package/dist/m0saic/meta/hot-reload-smoke/v1/hot-reload-smoke.d.ts +50 -0
- package/dist/m0saic/meta/hot-reload-smoke/v1/hot-reload-smoke.js +131 -0
- package/dist/m0saic/meta/index.d.ts +13 -0
- package/dist/m0saic/meta/index.js +29 -0
- package/dist/m0saic/meta/post-mortem/index.d.ts +1 -0
- package/dist/m0saic/meta/post-mortem/index.js +17 -0
- package/dist/m0saic/meta/post-mortem/v1/assets/human.png +0 -0
- package/dist/m0saic/meta/post-mortem/v1/assets/robot.png +0 -0
- package/dist/m0saic/meta/post-mortem/v1/post-mortem.d.ts +47 -0
- package/dist/m0saic/meta/post-mortem/v1/post-mortem.js +634 -0
- package/dist/m0saic/meta/upstream-echo/index.d.ts +1 -0
- package/dist/m0saic/meta/upstream-echo/index.js +17 -0
- package/dist/m0saic/meta/upstream-echo/v1/upstream-echo.d.ts +52 -0
- package/dist/m0saic/meta/upstream-echo/v1/upstream-echo.js +138 -0
- package/dist/m0saic/primitives/grid/index.d.ts +2 -0
- package/dist/m0saic/primitives/grid/index.js +7 -0
- package/dist/m0saic/primitives/grid/v1/grid.d.ts +85 -0
- package/dist/m0saic/primitives/grid/v1/grid.js +217 -0
- package/dist/m0saic/primitives/grid/v2/grid.d.ts +80 -0
- package/dist/m0saic/primitives/grid/v2/grid.js +150 -0
- package/dist/m0saic/primitives/index.d.ts +1 -0
- package/dist/m0saic/primitives/index.js +17 -0
- package/dist/m0saic/social/index.d.ts +1 -0
- package/dist/m0saic/social/index.js +17 -0
- package/dist/m0saic/social/quote-card/index.d.ts +1 -0
- package/dist/m0saic/social/quote-card/index.js +17 -0
- package/dist/m0saic/social/quote-card/v1/index.d.ts +2 -0
- package/dist/m0saic/social/quote-card/v1/index.js +5 -0
- package/dist/m0saic/social/quote-card/v1/layout.d.ts +119 -0
- package/dist/m0saic/social/quote-card/v1/layout.js +323 -0
- package/dist/m0saic/social/quote-card/v1/quote-card.d.ts +51 -0
- package/dist/m0saic/social/quote-card/v1/quote-card.js +310 -0
- package/dist/m0saic/story/index.d.ts +2 -0
- package/dist/m0saic/story/index.js +20 -0
- package/dist/m0saic/story/narrated-chapters/index.d.ts +1 -0
- package/dist/m0saic/story/narrated-chapters/index.js +17 -0
- package/dist/m0saic/story/narrated-chapters/v1/captions.d.ts +42 -0
- package/dist/m0saic/story/narrated-chapters/v1/captions.js +200 -0
- package/dist/m0saic/story/narrated-chapters/v1/demo-fixture.d.ts +13 -0
- package/dist/m0saic/story/narrated-chapters/v1/demo-fixture.js +52 -0
- package/dist/m0saic/story/narrated-chapters/v1/index.d.ts +2 -0
- package/dist/m0saic/story/narrated-chapters/v1/index.js +5 -0
- package/dist/m0saic/story/narrated-chapters/v1/kenburns.d.ts +50 -0
- package/dist/m0saic/story/narrated-chapters/v1/kenburns.js +0 -0
- package/dist/m0saic/story/narrated-chapters/v1/layout.d.ts +103 -0
- package/dist/m0saic/story/narrated-chapters/v1/layout.js +162 -0
- package/dist/m0saic/story/narrated-chapters/v1/narrated-chapters.d.ts +22 -0
- package/dist/m0saic/story/narrated-chapters/v1/narrated-chapters.js +160 -0
- package/dist/m0saic/story/narrated-chapters/v1/pipeline.d.ts +43 -0
- package/dist/m0saic/story/narrated-chapters/v1/pipeline.js +94 -0
- package/dist/m0saic/story/narrated-chapters/v1/plan.d.ts +144 -0
- package/dist/m0saic/story/narrated-chapters/v1/plan.js +372 -0
- package/dist/m0saic/story/narrated-chapters/v1/props.d.ts +147 -0
- package/dist/m0saic/story/narrated-chapters/v1/props.js +205 -0
- package/dist/m0saic/story/narrated-chapters/v1/scenes/body.d.ts +64 -0
- package/dist/m0saic/story/narrated-chapters/v1/scenes/body.js +253 -0
- package/dist/m0saic/story/narrated-chapters/v1/scenes/card.d.ts +40 -0
- package/dist/m0saic/story/narrated-chapters/v1/scenes/card.js +201 -0
- package/dist/m0saic/story/narrated-chapters/v1/theme.d.ts +25 -0
- package/dist/m0saic/story/narrated-chapters/v1/theme.js +38 -0
- package/dist/m0saic/story/scrapbook/v1/document.d.ts +41 -0
- package/dist/m0saic/story/scrapbook/v1/document.js +124 -0
- package/dist/m0saic/story/scrapbook/v1/index.d.ts +1 -0
- package/dist/m0saic/story/scrapbook/v1/index.js +9 -0
- package/dist/m0saic/story/scrapbook/v1/page.d.ts +34 -0
- package/dist/m0saic/story/scrapbook/v1/page.js +121 -0
- package/dist/m0saic/story/scrapbook/v1/pages.d.ts +29 -0
- package/dist/m0saic/story/scrapbook/v1/pages.js +37 -0
- package/dist/m0saic/story/scrapbook/v1/pipeline.d.ts +44 -0
- package/dist/m0saic/story/scrapbook/v1/pipeline.js +130 -0
- package/dist/m0saic/story/scrapbook/v1/placeholder.d.ts +22 -0
- package/dist/m0saic/story/scrapbook/v1/placeholder.js +51 -0
- package/dist/m0saic/story/scrapbook/v1/props.d.ts +66 -0
- package/dist/m0saic/story/scrapbook/v1/props.js +80 -0
- package/dist/m0saic/story/scrapbook/v1/scrapbook.d.ts +23 -0
- package/dist/m0saic/story/scrapbook/v1/scrapbook.js +77 -0
- package/dist/m0saic/theming/index.d.ts +1 -0
- package/dist/m0saic/theming/index.js +17 -0
- package/dist/m0saic/theming/v1/brand-m-glyph.d.ts +14 -0
- package/dist/m0saic/theming/v1/brand-m-glyph.js +12 -0
- package/dist/m0saic/theming/v1/index.d.ts +2 -0
- package/dist/m0saic/theming/v1/index.js +16 -0
- package/dist/m0saic/theming/v1/theme-tokens.d.ts +71 -0
- package/dist/m0saic/theming/v1/theme-tokens.js +111 -0
- package/dist/m0saic/theming/v1/theming.d.ts +18 -0
- package/dist/m0saic/theming/v1/theming.js +94 -0
- package/dist/m0saic/theming/v1/token-sheet.d.ts +23 -0
- package/dist/m0saic/theming/v1/token-sheet.js +191 -0
- package/dist/m0saic/web/index.d.ts +1 -0
- package/dist/m0saic/web/index.js +17 -0
- package/dist/m0saic/web/page-skeleton/v1/capture/capture-snippet-source.d.ts +1 -0
- package/dist/m0saic/web/page-skeleton/v1/capture/capture-snippet-source.js +528 -0
- package/dist/m0saic/web/page-skeleton/v1/index.d.ts +1 -0
- package/dist/m0saic/web/page-skeleton/v1/index.js +5 -0
- package/dist/m0saic/web/page-skeleton/v1/layout.d.ts +107 -0
- package/dist/m0saic/web/page-skeleton/v1/layout.js +246 -0
- package/dist/m0saic/web/page-skeleton/v1/page-skeleton.d.ts +148 -0
- package/dist/m0saic/web/page-skeleton/v1/page-skeleton.js +787 -0
- package/dist/m0saic/web/page-skeleton/v1/sample-capture.d.ts +7 -0
- package/dist/m0saic/web/page-skeleton/v1/sample-capture.js +50 -0
- package/dist/m0saic/web/page-skeleton/v1/schema.d.ts +35 -0
- package/dist/m0saic/web/page-skeleton/v1/schema.js +132 -0
- package/dist/m0saic/wireframe/animated/v1/animated-wireframe.d.ts +93 -0
- package/dist/m0saic/wireframe/animated/v1/animated-wireframe.js +580 -0
- package/dist/m0saic/wireframe/animated/v1/index.d.ts +1 -0
- package/dist/m0saic/wireframe/animated/v1/index.js +5 -0
- package/dist/m0saic/wireframe/base/v1/index.d.ts +1 -0
- package/dist/m0saic/wireframe/base/v1/index.js +5 -0
- package/dist/m0saic/wireframe/base/v1/wireframe.d.ts +68 -0
- package/dist/m0saic/wireframe/base/v1/wireframe.js +372 -0
- package/dist/m0saic/wireframe/base/v2/index.d.ts +2 -0
- package/dist/m0saic/wireframe/base/v2/index.js +9 -0
- package/dist/m0saic/wireframe/base/v2/wireframe.d.ts +166 -0
- package/dist/m0saic/wireframe/base/v2/wireframe.js +1181 -0
- package/dist/m0saic/wireframe/index.d.ts +4 -0
- package/dist/m0saic/wireframe/index.js +16 -0
- package/dist/m0saic/wireframe/utils/paperGrid.d.ts +53 -0
- package/dist/m0saic/wireframe/utils/paperGrid.js +91 -0
- package/dist/m0saic/wireframe/utils/wireframeCell.d.ts +35 -0
- package/dist/m0saic/wireframe/utils/wireframeCell.js +278 -0
- package/dist/registry.d.ts +4 -0
- package/dist/registry.js +7 -0
- package/dist/repo.d.ts +11 -0
- package/dist/repo.js +39 -0
- package/dist/template-registry.d.ts +18 -0
- package/dist/template-registry.js +888 -0
- package/dist/web.d.ts +35 -0
- package/dist/web.js +88 -0
- package/dist/webTemplateIds.d.ts +6 -0
- package/dist/webTemplateIds.js +80 -0
- package/package.json +52 -0
- package/template-manifest.json +1635 -0
- package/web-template-ids.json +84 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Pure geometry + gating helpers for `@m0saic/media/watermark/v1`.
|
|
4
|
+
*
|
|
5
|
+
* Everything here is deterministic and engine-free (types-only imports)
|
|
6
|
+
* so the HOST can call the same math the template uses — the adaptive
|
|
7
|
+
* luma prep step (packages/product) resolves the probe region through
|
|
8
|
+
* {@link resolveWatermarkProbeRegion} and the template's `render`
|
|
9
|
+
* resolves the stamp rect through {@link resolveWatermarkRect}; because
|
|
10
|
+
* both go through the same functions, host math can't drift from
|
|
11
|
+
* template math.
|
|
12
|
+
*
|
|
13
|
+
* User-facing failures throw plain `Error`s with presentable messages;
|
|
14
|
+
* `render` catches them into error mosaics.
|
|
15
|
+
*/
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.LOCKUP_TEXT_BAND = exports.LOCKUP_LOGO_BAND = exports.LOCKUP_GAP = exports.LOCKUP_TEXT_TO_LOGO = exports.WATERMARK_DEFAULTS = exports.TEXT_WIDTH_PAD = exports.REF_FONT_PX = void 0;
|
|
18
|
+
exports.lockupAspect = lockupAspect;
|
|
19
|
+
exports.textContentAspect = textContentAspect;
|
|
20
|
+
exports.resolveContentInfo = resolveContentInfo;
|
|
21
|
+
exports.resolveContentAspect = resolveContentAspect;
|
|
22
|
+
exports.normalizeLayoutM0 = normalizeLayoutM0;
|
|
23
|
+
exports.validateLayoutM0 = validateLayoutM0;
|
|
24
|
+
exports.resolveWatermarkRect = resolveWatermarkRect;
|
|
25
|
+
exports.watermarkNeedsLumaProbe = watermarkNeedsLumaProbe;
|
|
26
|
+
exports.resolveWatermarkProbeRegion = resolveWatermarkProbeRegion;
|
|
27
|
+
const types_1 = require("@m0saic/types");
|
|
28
|
+
const dsl_1 = require("@m0saic/dsl");
|
|
29
|
+
const template_utils_1 = require("@m0saic/template-utils");
|
|
30
|
+
// ── Constants ─────────────────────────────────────────────────
|
|
31
|
+
/** Reference size text is measured at; fit-to-box scales linearly from it. */
|
|
32
|
+
exports.REF_FONT_PX = 100;
|
|
33
|
+
/**
|
|
34
|
+
* Width safety pad on measured text. The app fits text slightly wider
|
|
35
|
+
* than the CLI (known drift); the pad keeps the wordmark inside its
|
|
36
|
+
* box on both.
|
|
37
|
+
*/
|
|
38
|
+
exports.TEXT_WIDTH_PAD = 1.04;
|
|
39
|
+
/** Canonical defaults — exported so the host prep step resolves props identically. */
|
|
40
|
+
exports.WATERMARK_DEFAULTS = {
|
|
41
|
+
mode: "static",
|
|
42
|
+
content: "logo",
|
|
43
|
+
text: "yourbrand.com",
|
|
44
|
+
textColor: "#ffffff",
|
|
45
|
+
textColorOnLight: "#111111",
|
|
46
|
+
lockupLayout: "text-right",
|
|
47
|
+
position: "bottom-right",
|
|
48
|
+
sizeRatio: 0.18,
|
|
49
|
+
sizeBasis: "min",
|
|
50
|
+
marginRatio: 0.022,
|
|
51
|
+
opacity: 0.85,
|
|
52
|
+
imageOutputFormat: "match",
|
|
53
|
+
// adaptive
|
|
54
|
+
variant: "auto",
|
|
55
|
+
windowing: "always",
|
|
56
|
+
fadeMs: 400,
|
|
57
|
+
crossfadeMs: 400,
|
|
58
|
+
lumaThreshold: 128,
|
|
59
|
+
minGapMs: 3000,
|
|
60
|
+
// page mode
|
|
61
|
+
angleDeg: -30,
|
|
62
|
+
tileGapRatio: 0.08,
|
|
63
|
+
stagger: true,
|
|
64
|
+
maxTiles: 24,
|
|
65
|
+
debugLayout: false,
|
|
66
|
+
};
|
|
67
|
+
// ── Lockup geometry constants ─────────────────────────────────
|
|
68
|
+
/** Text height as a fraction of the lockup's logo height. */
|
|
69
|
+
exports.LOCKUP_TEXT_TO_LOGO = 0.28;
|
|
70
|
+
/** Gap between logo and text (text-right), fraction of lockup height. */
|
|
71
|
+
exports.LOCKUP_GAP = 0.15;
|
|
72
|
+
/** Logo band height (text-below), fraction of lockup height. */
|
|
73
|
+
exports.LOCKUP_LOGO_BAND = 0.78;
|
|
74
|
+
/** Text band height (text-below), fraction of lockup height. */
|
|
75
|
+
exports.LOCKUP_TEXT_BAND = 0.22;
|
|
76
|
+
/**
|
|
77
|
+
* Intrinsic w/h aspect of a lockup composed from logo aspect `aL` and
|
|
78
|
+
* text aspect `aT` (both intrinsic w/h). Mirrors the rect math in
|
|
79
|
+
* `buildLockupChild` (content.ts) — unit-tested together so they can't
|
|
80
|
+
* drift.
|
|
81
|
+
*/
|
|
82
|
+
function lockupAspect(aL, aT, layout) {
|
|
83
|
+
if (layout === "text-below") {
|
|
84
|
+
return Math.max(aL * exports.LOCKUP_LOGO_BAND, aT * exports.LOCKUP_TEXT_BAND);
|
|
85
|
+
}
|
|
86
|
+
return aL + exports.LOCKUP_GAP + aT * exports.LOCKUP_TEXT_TO_LOGO;
|
|
87
|
+
}
|
|
88
|
+
// ── Content aspect ────────────────────────────────────────────
|
|
89
|
+
/** Measured intrinsic aspect (w/h) of a text wordmark. */
|
|
90
|
+
function textContentAspect(text) {
|
|
91
|
+
const m = (0, template_utils_1.measureText)(text, { fontSize: exports.REF_FONT_PX });
|
|
92
|
+
if (!(m.width > 0) || !(m.height > 0)) {
|
|
93
|
+
throw new Error("Watermark text measures to an empty box — provide non-empty text.");
|
|
94
|
+
}
|
|
95
|
+
return (m.width * exports.TEXT_WIDTH_PAD) / m.height;
|
|
96
|
+
}
|
|
97
|
+
function resolveLogoAspect(image, media, logoDims) {
|
|
98
|
+
if (!image) {
|
|
99
|
+
throw new Error('Watermark needs a logo image for this content — pick your logo file, or switch content to "text".');
|
|
100
|
+
}
|
|
101
|
+
const dims = logoDims !== null && logoDims !== void 0 ? logoDims : media[(0, types_1.asAssetId)(image)];
|
|
102
|
+
if (!dims || !(dims.width > 0) || !(dims.height > 0)) {
|
|
103
|
+
throw new Error(`Watermark logo has no probed dimensions (${image}) — is it a readable image file?`);
|
|
104
|
+
}
|
|
105
|
+
const kind = dims.kind;
|
|
106
|
+
if (kind !== undefined && kind !== "image") {
|
|
107
|
+
throw new Error(`Watermark logo must be an image, got kind "${kind}" (${image}).`);
|
|
108
|
+
}
|
|
109
|
+
return dims.width / dims.height;
|
|
110
|
+
}
|
|
111
|
+
function resolveTextAspect(props) {
|
|
112
|
+
var _a;
|
|
113
|
+
const text = ((_a = props.text) !== null && _a !== void 0 ? _a : exports.WATERMARK_DEFAULTS.text).trim();
|
|
114
|
+
if (!text) {
|
|
115
|
+
throw new Error('Watermark text is empty — provide the wordmark text.');
|
|
116
|
+
}
|
|
117
|
+
return textContentAspect(text);
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Resolve the watermark artwork's intrinsic aspect facts from the
|
|
121
|
+
* resolved content props. Logo dims come from the host-probed media
|
|
122
|
+
* registry (`ctx.media`); pass them explicitly via `logoDims` when
|
|
123
|
+
* calling from a host that has the registry but no engine context.
|
|
124
|
+
*/
|
|
125
|
+
function resolveContentInfo(props, ctx, logoDims) {
|
|
126
|
+
var _a;
|
|
127
|
+
const content = (_a = props.content) !== null && _a !== void 0 ? _a : exports.WATERMARK_DEFAULTS.content;
|
|
128
|
+
if (content === "logo") {
|
|
129
|
+
const logoAspect = resolveLogoAspect(props.image, ctx.media, logoDims);
|
|
130
|
+
return { aspect: logoAspect, logoAspect };
|
|
131
|
+
}
|
|
132
|
+
if (content === "text") {
|
|
133
|
+
const textAspect = resolveTextAspect(props);
|
|
134
|
+
return { aspect: textAspect, textAspect };
|
|
135
|
+
}
|
|
136
|
+
if (content === "lockup") {
|
|
137
|
+
const logoAspect = resolveLogoAspect(props.image, ctx.media, logoDims);
|
|
138
|
+
const textAspect = resolveTextAspect(props);
|
|
139
|
+
const layout = props.lockupLayout === "text-below" ? "text-below" : "text-right";
|
|
140
|
+
return { aspect: lockupAspect(logoAspect, textAspect, layout), logoAspect, textAspect };
|
|
141
|
+
}
|
|
142
|
+
throw new Error(`Watermark content "${content}" is not recognized.`);
|
|
143
|
+
}
|
|
144
|
+
/** Back-compat shim: the artwork's combined intrinsic aspect. */
|
|
145
|
+
function resolveContentAspect(props, ctx, logoDims) {
|
|
146
|
+
return resolveContentInfo(props, ctx, logoDims).aspect;
|
|
147
|
+
}
|
|
148
|
+
// ── m0 escape hatch ───────────────────────────────────────────
|
|
149
|
+
/**
|
|
150
|
+
* Normalize the `layoutM0` prop: accepts a bare m0 or a pasted `.m0`
|
|
151
|
+
* file (header `#` comment lines are stripped). Returns null when
|
|
152
|
+
* empty. (Same convention as screencap-grid's `customGrid`.)
|
|
153
|
+
*/
|
|
154
|
+
function normalizeLayoutM0(raw) {
|
|
155
|
+
if (!raw)
|
|
156
|
+
return null;
|
|
157
|
+
const m0 = raw
|
|
158
|
+
.split("\n")
|
|
159
|
+
.map((l) => l.trim())
|
|
160
|
+
.filter((l) => l.length > 0 && !l.startsWith("#"))
|
|
161
|
+
.join("");
|
|
162
|
+
return m0.length > 0 ? m0 : null;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Validate the escape-hatch layout string (canvas-independent checks).
|
|
166
|
+
* Throws a user-facing error on invalid strings or frame counts.
|
|
167
|
+
*/
|
|
168
|
+
function validateLayoutM0(m0) {
|
|
169
|
+
if (!(0, dsl_1.isValidM0String)(m0)) {
|
|
170
|
+
throw new Error("Watermark layout is not a valid m0 string.");
|
|
171
|
+
}
|
|
172
|
+
const frames = (0, dsl_1.getFrameCount)(m0);
|
|
173
|
+
if (frames !== 1) {
|
|
174
|
+
throw new Error(`Watermark layout must resolve to exactly ONE frame (got ${frames !== null && frames !== void 0 ? frames : "unknown"}) — carve the box with \`-\` null tiles.`);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Resolve the stamp cell for one canvas. The escape hatch parses the
|
|
179
|
+
* user's single-frame m0 at this canvas and clamps to integer bounds;
|
|
180
|
+
* otherwise the nine-position math applies. The rect is the stamp
|
|
181
|
+
* CELL — content keeps its intrinsic aspect via `fit: "contain"`
|
|
182
|
+
* inside it.
|
|
183
|
+
*/
|
|
184
|
+
function resolveWatermarkRect(knobs, canvasW, canvasH, contentAspect) {
|
|
185
|
+
if (knobs.layoutM0) {
|
|
186
|
+
validateLayoutM0(knobs.layoutM0);
|
|
187
|
+
const f = (0, dsl_1.parseM0StringToRenderFrames)(knobs.layoutM0, canvasW, canvasH)[0];
|
|
188
|
+
if (!f) {
|
|
189
|
+
throw new Error("Watermark layout produced no frame at this canvas size.");
|
|
190
|
+
}
|
|
191
|
+
const x = clamp(Math.round(f.x), 0, canvasW - 1);
|
|
192
|
+
const y = clamp(Math.round(f.y), 0, canvasH - 1);
|
|
193
|
+
const w = clamp(Math.round(f.width), 1, canvasW - x);
|
|
194
|
+
const h = clamp(Math.round(f.height), 1, canvasH - y);
|
|
195
|
+
return { x, y, w, h };
|
|
196
|
+
}
|
|
197
|
+
return (0, template_utils_1.resolveStampRect)({
|
|
198
|
+
canvasW,
|
|
199
|
+
canvasH,
|
|
200
|
+
position: knobs.position,
|
|
201
|
+
sizeRatio: knobs.sizeRatio,
|
|
202
|
+
sizeBasis: knobs.sizeBasis,
|
|
203
|
+
marginRatio: knobs.marginRatio,
|
|
204
|
+
contentAspect,
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
function clamp(n, lo, hi) {
|
|
208
|
+
return Math.min(hi, Math.max(lo, n));
|
|
209
|
+
}
|
|
210
|
+
// ── Host prep gating (adaptive luma) ──────────────────────────
|
|
211
|
+
/**
|
|
212
|
+
* Whether the host should run the region-luminance probe for these
|
|
213
|
+
* props. True only for `mode: "adaptive"` with `variant: "auto"` —
|
|
214
|
+
* anything else needs no luma, and the host must skip the probe
|
|
215
|
+
* entirely (the laziness guarantee).
|
|
216
|
+
*/
|
|
217
|
+
function watermarkNeedsLumaProbe(props) {
|
|
218
|
+
var _a, _b;
|
|
219
|
+
const mode = (_a = props.mode) !== null && _a !== void 0 ? _a : exports.WATERMARK_DEFAULTS.mode;
|
|
220
|
+
const variant = (_b = props.variant) !== null && _b !== void 0 ? _b : exports.WATERMARK_DEFAULTS.variant;
|
|
221
|
+
return mode === "adaptive" && variant === "auto";
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* The region the host's luma probe samples for one input canvas: the
|
|
225
|
+
* resolved stamp rect expanded 10% total per axis (over-sampling
|
|
226
|
+
* catches content just outside the stamp that bleeds under it after
|
|
227
|
+
* fades), clamped to [0, 1] fractions.
|
|
228
|
+
*/
|
|
229
|
+
function resolveWatermarkProbeRegion(props, canvasW, canvasH, logoDims) {
|
|
230
|
+
var _a, _b, _c, _d;
|
|
231
|
+
const aspect = resolveContentAspect(props, { media: {} }, logoDims);
|
|
232
|
+
const rect = resolveWatermarkRect({
|
|
233
|
+
position: (_a = props.position) !== null && _a !== void 0 ? _a : exports.WATERMARK_DEFAULTS.position,
|
|
234
|
+
sizeRatio: (_b = props.sizeRatio) !== null && _b !== void 0 ? _b : exports.WATERMARK_DEFAULTS.sizeRatio,
|
|
235
|
+
sizeBasis: (_c = props.sizeBasis) !== null && _c !== void 0 ? _c : exports.WATERMARK_DEFAULTS.sizeBasis,
|
|
236
|
+
marginRatio: (_d = props.marginRatio) !== null && _d !== void 0 ? _d : exports.WATERMARK_DEFAULTS.marginRatio,
|
|
237
|
+
layoutM0: normalizeLayoutM0(props.layoutM0),
|
|
238
|
+
}, canvasW, canvasH, aspect);
|
|
239
|
+
const xPct = Math.max(0, (rect.x - 0.05 * rect.w) / canvasW);
|
|
240
|
+
const yPct = Math.max(0, (rect.y - 0.05 * rect.h) / canvasH);
|
|
241
|
+
return {
|
|
242
|
+
xPct,
|
|
243
|
+
yPct,
|
|
244
|
+
wPct: Math.min(1 - xPct, (1.1 * rect.w) / canvasW),
|
|
245
|
+
hPct: Math.min(1 - yPct, (1.1 * rect.h) / canvasH),
|
|
246
|
+
};
|
|
247
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WatermarkV1 = void 0;
|
|
4
|
+
var watermark_1 = require("./watermark");
|
|
5
|
+
Object.defineProperty(exports, "WatermarkV1", { enumerable: true, get: function () { return watermark_1.WatermarkV1; } });
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Page-mode grid planner + pattern-child builder: the diagonal repeated
|
|
3
|
+
* logo/wordmark across the whole canvas (document-style DRAFT /
|
|
4
|
+
* CONFIDENTIAL watermark).
|
|
5
|
+
*
|
|
6
|
+
* # Geometry (why per-instance rotation)
|
|
7
|
+
*
|
|
8
|
+
* `effects.rotate` runs AFTER scale-to-cell, in place, with transparent
|
|
9
|
+
* corner fill — rotating one full-canvas layer would leave transparent
|
|
10
|
+
* corner triangles. Instead each instance cell holds the content's
|
|
11
|
+
* envelope across BOTH rotation phases: the content is drawn unrotated
|
|
12
|
+
* first (needs w×h), then rotated in place (needs the rotated bbox
|
|
13
|
+
* w·|cosθ|+h·|sinθ| × w·|sinθ|+h·|cosθ| — which for slender content at
|
|
14
|
+
* shallow angles is NARROWER than w, so neither box alone suffices):
|
|
15
|
+
*
|
|
16
|
+
* cw = ceil(max(w, w·|cosθ| + h·|sinθ|))
|
|
17
|
+
* ch = ceil(max(h, w·|sinθ| + h·|cosθ|))
|
|
18
|
+
*
|
|
19
|
+
* The centering CANNOT use `placement.inset` or contain-letterboxing:
|
|
20
|
+
* the engine shrinks the destination box (inset/padding) BEFORE the
|
|
21
|
+
* scale, and `contain` scales to content-fitted dims — either way the
|
|
22
|
+
* buffer `effects.rotate` runs on is CONTENT-sized and the rotation
|
|
23
|
+
* clips at the content box (ffmpegCommands.ts: inset at ~1055, scale
|
|
24
|
+
* `decrease` at ~1185, applyTileEffects on the scaled label at ~1196;
|
|
25
|
+
* the pad-to-cell happens after the effects chain). The only cell-sized
|
|
26
|
+
* pre-rotation buffer is a NESTED CHILD whose declared `size` equals
|
|
27
|
+
* the cell — children render at their declared dims, so the padding is
|
|
28
|
+
* baked in as real geometry (a centered placeRect + null tiles) and the
|
|
29
|
+
* 1:1 contain scale preserves it through the rotation.
|
|
30
|
+
*
|
|
31
|
+
* # Walls
|
|
32
|
+
*
|
|
33
|
+
* The pattern renders as its OWN engine command (nested child), so the
|
|
34
|
+
* parent's overlay depth stays 1. Inside the pattern, cells are
|
|
35
|
+
* non-overlapping structural siblings (placeRects single layer) capped
|
|
36
|
+
* at `maxTiles ≤ 24` — under the ~25-overlay mask-drop wall (W3), and
|
|
37
|
+
* with no per-cell alpha/enable/blend they stay xstack-sheet-eligible.
|
|
38
|
+
* Text/lockup content is ONE shared nested child referenced per cell,
|
|
39
|
+
* so its inline-mask path travels once (W6 argv budget).
|
|
40
|
+
*/
|
|
41
|
+
import type { MosaicDocument } from "@m0saic/types";
|
|
42
|
+
import type { StampRectPx } from "@m0saic/template-utils";
|
|
43
|
+
export type PageGridKnobs = {
|
|
44
|
+
canvasW: number;
|
|
45
|
+
canvasH: number;
|
|
46
|
+
/** Unrotated instance content size (from the sizeRatio math). */
|
|
47
|
+
contentW: number;
|
|
48
|
+
contentH: number;
|
|
49
|
+
/** Rotation angle, degrees clockwise. */
|
|
50
|
+
angleDeg: number;
|
|
51
|
+
/** Gap between instance cells, fraction of min(W, H). */
|
|
52
|
+
tileGapRatio: number;
|
|
53
|
+
/** Offset alternate rows by half the horizontal pitch. */
|
|
54
|
+
stagger: boolean;
|
|
55
|
+
/** Hard instance budget (W3 wall). */
|
|
56
|
+
maxTiles: number;
|
|
57
|
+
};
|
|
58
|
+
export type PageGridPlan = {
|
|
59
|
+
/** Instance cells (envelope sized), row-major. */
|
|
60
|
+
cells: StampRectPx[];
|
|
61
|
+
/** Cell dims (the content's two-phase rotation envelope). */
|
|
62
|
+
cellW: number;
|
|
63
|
+
cellH: number;
|
|
64
|
+
/** Effective unrotated content dims (may shrink so the envelope fits the canvas). */
|
|
65
|
+
contentW: number;
|
|
66
|
+
contentH: number;
|
|
67
|
+
/** Resolved gap (grows deterministically to satisfy maxTiles). */
|
|
68
|
+
gapPx: number;
|
|
69
|
+
rows: number;
|
|
70
|
+
cols: number;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Plan the staggered instance grid. Deterministic: the tile budget is
|
|
74
|
+
* enforced by growing the gap (strictly increasing), and cells that
|
|
75
|
+
* would cross the canvas edge are dropped — the edge margin is the
|
|
76
|
+
* classic page-watermark look.
|
|
77
|
+
*/
|
|
78
|
+
export declare function planPageGrid(k: PageGridKnobs): PageGridPlan;
|
|
79
|
+
/**
|
|
80
|
+
* Wrap the content child in a cell-sized child with the padding baked
|
|
81
|
+
* in as real geometry: a centered `placeRect` frame holds the art, the
|
|
82
|
+
* null tiles ARE the (transparent) rotation headroom. This child's
|
|
83
|
+
* declared size == the cell, so the pre-rotation buffer is cell-sized
|
|
84
|
+
* (see header). When the envelope equals the content (angle 0), the
|
|
85
|
+
* wrapper is skipped — the art child is already cell-sized.
|
|
86
|
+
*/
|
|
87
|
+
export declare function buildPaddedInstanceChild(opts: {
|
|
88
|
+
plan: PageGridPlan;
|
|
89
|
+
/** The watermark art child at (plan.contentW × plan.contentH). */
|
|
90
|
+
art: MosaicDocument;
|
|
91
|
+
}): MosaicDocument;
|
|
92
|
+
/**
|
|
93
|
+
* Build the full-canvas pattern child: the planned grid of rotated
|
|
94
|
+
* instances, each referencing ONE shared cell-sized instance child.
|
|
95
|
+
* The parent composites this ONE pattern child (its own engine
|
|
96
|
+
* command) with the pattern opacity applied at the parent source.
|
|
97
|
+
*/
|
|
98
|
+
export declare function buildPagePatternChild(opts: {
|
|
99
|
+
canvasW: number;
|
|
100
|
+
canvasH: number;
|
|
101
|
+
plan: PageGridPlan;
|
|
102
|
+
angleDeg: number;
|
|
103
|
+
/** Cell-sized instance child (see {@link buildPaddedInstanceChild}). */
|
|
104
|
+
instance: MosaicDocument;
|
|
105
|
+
}): MosaicDocument;
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Page-mode grid planner + pattern-child builder: the diagonal repeated
|
|
4
|
+
* logo/wordmark across the whole canvas (document-style DRAFT /
|
|
5
|
+
* CONFIDENTIAL watermark).
|
|
6
|
+
*
|
|
7
|
+
* # Geometry (why per-instance rotation)
|
|
8
|
+
*
|
|
9
|
+
* `effects.rotate` runs AFTER scale-to-cell, in place, with transparent
|
|
10
|
+
* corner fill — rotating one full-canvas layer would leave transparent
|
|
11
|
+
* corner triangles. Instead each instance cell holds the content's
|
|
12
|
+
* envelope across BOTH rotation phases: the content is drawn unrotated
|
|
13
|
+
* first (needs w×h), then rotated in place (needs the rotated bbox
|
|
14
|
+
* w·|cosθ|+h·|sinθ| × w·|sinθ|+h·|cosθ| — which for slender content at
|
|
15
|
+
* shallow angles is NARROWER than w, so neither box alone suffices):
|
|
16
|
+
*
|
|
17
|
+
* cw = ceil(max(w, w·|cosθ| + h·|sinθ|))
|
|
18
|
+
* ch = ceil(max(h, w·|sinθ| + h·|cosθ|))
|
|
19
|
+
*
|
|
20
|
+
* The centering CANNOT use `placement.inset` or contain-letterboxing:
|
|
21
|
+
* the engine shrinks the destination box (inset/padding) BEFORE the
|
|
22
|
+
* scale, and `contain` scales to content-fitted dims — either way the
|
|
23
|
+
* buffer `effects.rotate` runs on is CONTENT-sized and the rotation
|
|
24
|
+
* clips at the content box (ffmpegCommands.ts: inset at ~1055, scale
|
|
25
|
+
* `decrease` at ~1185, applyTileEffects on the scaled label at ~1196;
|
|
26
|
+
* the pad-to-cell happens after the effects chain). The only cell-sized
|
|
27
|
+
* pre-rotation buffer is a NESTED CHILD whose declared `size` equals
|
|
28
|
+
* the cell — children render at their declared dims, so the padding is
|
|
29
|
+
* baked in as real geometry (a centered placeRect + null tiles) and the
|
|
30
|
+
* 1:1 contain scale preserves it through the rotation.
|
|
31
|
+
*
|
|
32
|
+
* # Walls
|
|
33
|
+
*
|
|
34
|
+
* The pattern renders as its OWN engine command (nested child), so the
|
|
35
|
+
* parent's overlay depth stays 1. Inside the pattern, cells are
|
|
36
|
+
* non-overlapping structural siblings (placeRects single layer) capped
|
|
37
|
+
* at `maxTiles ≤ 24` — under the ~25-overlay mask-drop wall (W3), and
|
|
38
|
+
* with no per-cell alpha/enable/blend they stay xstack-sheet-eligible.
|
|
39
|
+
* Text/lockup content is ONE shared nested child referenced per cell,
|
|
40
|
+
* so its inline-mask path travels once (W6 argv budget).
|
|
41
|
+
*/
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.planPageGrid = planPageGrid;
|
|
44
|
+
exports.buildPaddedInstanceChild = buildPaddedInstanceChild;
|
|
45
|
+
exports.buildPagePatternChild = buildPagePatternChild;
|
|
46
|
+
const dsl_stdlib_1 = require("@m0saic/dsl-stdlib");
|
|
47
|
+
// ── planPageGrid ──────────────────────────────────────────────
|
|
48
|
+
/**
|
|
49
|
+
* Plan the staggered instance grid. Deterministic: the tile budget is
|
|
50
|
+
* enforced by growing the gap (strictly increasing), and cells that
|
|
51
|
+
* would cross the canvas edge are dropped — the edge margin is the
|
|
52
|
+
* classic page-watermark look.
|
|
53
|
+
*/
|
|
54
|
+
function planPageGrid(k) {
|
|
55
|
+
const { canvasW: W, canvasH: H, angleDeg, tileGapRatio, stagger, maxTiles } = k;
|
|
56
|
+
if (!(k.contentW > 0) || !(k.contentH > 0)) {
|
|
57
|
+
throw new Error(`planPageGrid: content dims must be positive, got ${k.contentW}x${k.contentH}`);
|
|
58
|
+
}
|
|
59
|
+
if (!Number.isInteger(maxTiles) || maxTiles < 1) {
|
|
60
|
+
throw new Error(`planPageGrid: maxTiles must be a positive integer, got ${maxTiles}`);
|
|
61
|
+
}
|
|
62
|
+
const rad = (angleDeg * Math.PI) / 180;
|
|
63
|
+
const cos = Math.abs(Math.cos(rad));
|
|
64
|
+
const sin = Math.abs(Math.sin(rad));
|
|
65
|
+
// Envelope across both rotation phases (see header) — never smaller
|
|
66
|
+
// than the content on either axis, so insets stay non-negative.
|
|
67
|
+
const envW = (w, h) => Math.ceil(Math.max(w, w * cos + h * sin));
|
|
68
|
+
const envH = (w, h) => Math.ceil(Math.max(h, w * sin + h * cos));
|
|
69
|
+
// Shrink the content (aspect preserved) until its cell envelope fits
|
|
70
|
+
// the canvas — a large sizeRatio at a steep angle can overflow.
|
|
71
|
+
let contentW = Math.max(1, Math.round(k.contentW));
|
|
72
|
+
let contentH = Math.max(1, Math.round(k.contentH));
|
|
73
|
+
{
|
|
74
|
+
const scale = Math.min(1, W / envW(contentW, contentH), H / envH(contentW, contentH));
|
|
75
|
+
if (scale < 1) {
|
|
76
|
+
contentW = Math.max(1, Math.floor(contentW * scale));
|
|
77
|
+
contentH = Math.max(1, Math.floor(contentH * scale));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
const cellW = Math.min(W, envW(contentW, contentH));
|
|
81
|
+
const cellH = Math.min(H, envH(contentW, contentH));
|
|
82
|
+
const min2 = Math.min(W, H);
|
|
83
|
+
let gapPx = Math.max(0, Math.round(tileGapRatio * min2));
|
|
84
|
+
const gridFor = (gap) => {
|
|
85
|
+
const pitchX = cellW + gap;
|
|
86
|
+
const pitchY = cellH + gap;
|
|
87
|
+
const cols = Math.max(1, Math.floor((W - cellW) / pitchX) + 1);
|
|
88
|
+
const rows = Math.max(1, Math.floor((H - cellH) / pitchY) + 1);
|
|
89
|
+
return { pitchX, pitchY, cols, rows };
|
|
90
|
+
};
|
|
91
|
+
// Deterministic budget loop: strictly-increasing gap → rows*cols
|
|
92
|
+
// shrinks monotonically toward 1×1 ≤ maxTiles.
|
|
93
|
+
let grid = gridFor(gapPx);
|
|
94
|
+
while (grid.rows * grid.cols > maxTiles) {
|
|
95
|
+
gapPx = Math.max(gapPx + 1, Math.ceil(gapPx * 1.25));
|
|
96
|
+
grid = gridFor(gapPx);
|
|
97
|
+
}
|
|
98
|
+
const { pitchX, pitchY, cols, rows } = grid;
|
|
99
|
+
const spanW = cols * cellW + (cols - 1) * gapPx;
|
|
100
|
+
const spanH = rows * cellH + (rows - 1) * gapPx;
|
|
101
|
+
const x0 = Math.max(0, Math.floor((W - spanW) / 2));
|
|
102
|
+
const y0 = Math.max(0, Math.floor((H - spanH) / 2));
|
|
103
|
+
const cells = [];
|
|
104
|
+
for (let r = 0; r < rows; r++) {
|
|
105
|
+
const rowOffset = stagger && r % 2 === 1 ? Math.floor(pitchX / 2) : 0;
|
|
106
|
+
for (let c = 0; c < cols; c++) {
|
|
107
|
+
const x = x0 + c * pitchX + rowOffset;
|
|
108
|
+
const y = y0 + r * pitchY;
|
|
109
|
+
if (x + cellW > W || y + cellH > H)
|
|
110
|
+
continue; // stagger pushes the row's last cell out
|
|
111
|
+
cells.push({ x, y, w: cellW, h: cellH });
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return { cells, cellW, cellH, contentW, contentH, gapPx, rows, cols };
|
|
115
|
+
}
|
|
116
|
+
// ── buildPaddedInstanceChild ──────────────────────────────────
|
|
117
|
+
/**
|
|
118
|
+
* Wrap the content child in a cell-sized child with the padding baked
|
|
119
|
+
* in as real geometry: a centered `placeRect` frame holds the art, the
|
|
120
|
+
* null tiles ARE the (transparent) rotation headroom. This child's
|
|
121
|
+
* declared size == the cell, so the pre-rotation buffer is cell-sized
|
|
122
|
+
* (see header). When the envelope equals the content (angle 0), the
|
|
123
|
+
* wrapper is skipped — the art child is already cell-sized.
|
|
124
|
+
*/
|
|
125
|
+
function buildPaddedInstanceChild(opts) {
|
|
126
|
+
const { plan, art } = opts;
|
|
127
|
+
if (plan.cellW === plan.contentW && plan.cellH === plan.contentH)
|
|
128
|
+
return art;
|
|
129
|
+
const { m0 } = (0, dsl_stdlib_1.placeRect)({
|
|
130
|
+
rootW: plan.cellW,
|
|
131
|
+
rootH: plan.cellH,
|
|
132
|
+
rectW: plan.contentW,
|
|
133
|
+
rectH: plan.contentH,
|
|
134
|
+
// centered (placeRect default) — rotation is about the cell center
|
|
135
|
+
});
|
|
136
|
+
return {
|
|
137
|
+
kind: "mosaic_document",
|
|
138
|
+
version: 1,
|
|
139
|
+
m0: (0, dsl_stdlib_1.toM0String)(String(m0), "WatermarkPageInstance"),
|
|
140
|
+
sources: [
|
|
141
|
+
{
|
|
142
|
+
type: "mosaic",
|
|
143
|
+
ref: "wm_art",
|
|
144
|
+
placement: { fit: "contain" },
|
|
145
|
+
editor: { owner: "template", label: "wm:art" },
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
assets: {},
|
|
149
|
+
children: { wm_art: art },
|
|
150
|
+
size: { width: plan.cellW, height: plan.cellH },
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
// ── buildPagePatternChild ─────────────────────────────────────
|
|
154
|
+
/**
|
|
155
|
+
* Build the full-canvas pattern child: the planned grid of rotated
|
|
156
|
+
* instances, each referencing ONE shared cell-sized instance child.
|
|
157
|
+
* The parent composites this ONE pattern child (its own engine
|
|
158
|
+
* command) with the pattern opacity applied at the parent source.
|
|
159
|
+
*/
|
|
160
|
+
function buildPagePatternChild(opts) {
|
|
161
|
+
const { canvasW, canvasH, plan, angleDeg, instance } = opts;
|
|
162
|
+
if (plan.cells.length === 0) {
|
|
163
|
+
throw new Error("buildPagePatternChild: the grid plan produced no cells");
|
|
164
|
+
}
|
|
165
|
+
const declared = instance.size;
|
|
166
|
+
if (!declared || declared.width !== plan.cellW || declared.height !== plan.cellH) {
|
|
167
|
+
throw new Error(`buildPagePatternChild: instance child must declare size ${plan.cellW}x${plan.cellH} ` +
|
|
168
|
+
`(got ${declared === null || declared === void 0 ? void 0 : declared.width}x${declared === null || declared === void 0 ? void 0 : declared.height}) — a non-cell-sized child re-letterboxes and the rotation clips`);
|
|
169
|
+
}
|
|
170
|
+
const placed = (0, dsl_stdlib_1.placeRects)({
|
|
171
|
+
rootW: canvasW,
|
|
172
|
+
rootH: canvasH,
|
|
173
|
+
rects: plan.cells.map((c) => ({ x: c.x, y: c.y, w: c.w, h: c.h, claimant: "F" })),
|
|
174
|
+
});
|
|
175
|
+
const effects = angleDeg !== 0 ? { rotate: angleDeg } : undefined;
|
|
176
|
+
const instanceSource = (i) => ({
|
|
177
|
+
type: "mosaic",
|
|
178
|
+
ref: "wm_content",
|
|
179
|
+
// 1:1 — instance size == cell size, so contain is an exact fit and
|
|
180
|
+
// the effects chain sees the full cell-sized buffer.
|
|
181
|
+
placement: { fit: "contain" },
|
|
182
|
+
...(effects ? { effects } : {}),
|
|
183
|
+
editor: { owner: "template", label: `wm:tile:${i}` },
|
|
184
|
+
});
|
|
185
|
+
// sources[i] binds to the i-th PAINTED frame: within a placeRects
|
|
186
|
+
// layer, frames paint in band order (top→bottom, left→right) — sort
|
|
187
|
+
// each layer's rect indices by y then x (the commit-feed idiom).
|
|
188
|
+
const sources = [];
|
|
189
|
+
for (const layer of placed.layers) {
|
|
190
|
+
const ordered = [...layer.rectIndices].sort((a, b) => plan.cells[a].y - plan.cells[b].y || plan.cells[a].x - plan.cells[b].x);
|
|
191
|
+
for (const idx of ordered)
|
|
192
|
+
sources.push(instanceSource(idx));
|
|
193
|
+
}
|
|
194
|
+
return {
|
|
195
|
+
kind: "mosaic_document",
|
|
196
|
+
version: 1,
|
|
197
|
+
m0: (0, dsl_stdlib_1.toM0String)(String(placed.m0), "WatermarkPagePattern"),
|
|
198
|
+
sources,
|
|
199
|
+
assets: {},
|
|
200
|
+
children: { wm_content: instance },
|
|
201
|
+
size: { width: canvasW, height: canvasH },
|
|
202
|
+
};
|
|
203
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-input step builder for the watermark batch pipeline.
|
|
3
|
+
*
|
|
4
|
+
* The template ALWAYS returns an `emit: "multi"` pipeline (even for one
|
|
5
|
+
* input): pipeline steps are the only vehicle where each output's
|
|
6
|
+
* canvas tracks its input's probed dims (`step.file.size` wins; a plain
|
|
7
|
+
* top-level doc plans at the CLI `--width/--height`).
|
|
8
|
+
*/
|
|
9
|
+
import type { MosaicColor, MosaicEngineContext, MosaicPipelineStep } from "@m0saic/types";
|
|
10
|
+
import { type StampPosition } from "@m0saic/template-utils";
|
|
11
|
+
import { type LockupLayout, type WatermarkContentInfo } from "./geometry";
|
|
12
|
+
import { type WatermarkLumaEntry } from "./adaptive";
|
|
13
|
+
/** Fixed duration for image steps — a single-frame render. */
|
|
14
|
+
export declare const IMAGE_STEP_MS = 40;
|
|
15
|
+
/** Duration used for error-mosaic steps (input problems). */
|
|
16
|
+
export declare const ERROR_STEP_MS = 1000;
|
|
17
|
+
/** Resolved knobs a step needs (validated once by the template). */
|
|
18
|
+
export type WatermarkStepKnobs = {
|
|
19
|
+
mode: "static" | "adaptive" | "page";
|
|
20
|
+
content: "logo" | "text" | "lockup";
|
|
21
|
+
/** Logo file path (content: "logo" | "lockup"). */
|
|
22
|
+
image?: string;
|
|
23
|
+
/** Dark-scene logo variant (adaptive auto). */
|
|
24
|
+
imageDark?: string;
|
|
25
|
+
/** Wordmark text (content: "text" | "lockup"). */
|
|
26
|
+
text: string;
|
|
27
|
+
textColor: MosaicColor;
|
|
28
|
+
/** Wordmark color over bright regions (adaptive auto). */
|
|
29
|
+
textColorOnLight: MosaicColor;
|
|
30
|
+
lockupLayout: LockupLayout;
|
|
31
|
+
position: StampPosition;
|
|
32
|
+
sizeRatio: number;
|
|
33
|
+
sizeBasis: "min" | "width" | "height";
|
|
34
|
+
marginRatio: number;
|
|
35
|
+
opacity: number;
|
|
36
|
+
/** Normalized escape-hatch m0 (already string-validated; stamp modes only). */
|
|
37
|
+
layoutM0: string | null;
|
|
38
|
+
imageOutputFormat: "match" | "png" | "jpeg";
|
|
39
|
+
/** Intrinsic aspect facts of the watermark artwork (resolved once). */
|
|
40
|
+
contentInfo: WatermarkContentInfo;
|
|
41
|
+
variant: "single" | "auto";
|
|
42
|
+
windowing: "always" | "windows";
|
|
43
|
+
fadeMs: number;
|
|
44
|
+
crossfadeMs: number;
|
|
45
|
+
lumaThreshold: number;
|
|
46
|
+
minGapMs: number;
|
|
47
|
+
coverageOverride?: number;
|
|
48
|
+
/** Host-injected per-input luma probe results, keyed by raw input path. */
|
|
49
|
+
lumaByInput?: Record<string, WatermarkLumaEntry>;
|
|
50
|
+
angleDeg: number;
|
|
51
|
+
tileGapRatio: number;
|
|
52
|
+
stagger: boolean;
|
|
53
|
+
maxTiles: number;
|
|
54
|
+
/** Dev tripwire: run the layout contract on each step doc. */
|
|
55
|
+
debugLayout: boolean;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Build one pipeline step: the input watermarked at its own dims, with
|
|
59
|
+
* a per-step output format (video → mp4; image → png/jpeg per knob).
|
|
60
|
+
* Input problems degrade to an error-mosaic step so one bad file never
|
|
61
|
+
* kills a batch.
|
|
62
|
+
*/
|
|
63
|
+
export declare function buildWatermarkStep(args: {
|
|
64
|
+
inputPath: string;
|
|
65
|
+
stepName: string;
|
|
66
|
+
knobs: WatermarkStepKnobs;
|
|
67
|
+
ctx: MosaicEngineContext;
|
|
68
|
+
}): MosaicPipelineStep;
|