@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,52 @@
|
|
|
1
|
+
import type { MosaicTemplateOutputs, MosaicTemplateUpstreamData, MosaicTemplateUpstreamVariables } from "@m0saic/types";
|
|
2
|
+
/**
|
|
3
|
+
* `@m0saic/meta/upstream-echo/v1` — the consumer half of the
|
|
4
|
+
* capability-layer proof pair (producer: `@m0saic/meta/fixture-fetcher/v1`).
|
|
5
|
+
*
|
|
6
|
+
* Core-tier renderable that:
|
|
7
|
+
*
|
|
8
|
+
* - reads the aliased data block `ctx.upstreamData[alias]` plus the
|
|
9
|
+
* flat `ctx.upstreamVariables` union (whatever cross-step /
|
|
10
|
+
* cross-tile threading delivered);
|
|
11
|
+
* - renders a SELF-EVIDENCING status card (duration/fps from
|
|
12
|
+
* `ctx.target` via the define-wrapper stamp): pale-green
|
|
13
|
+
* background + "UPSTREAM OK" + a deterministic summary of the
|
|
14
|
+
* received block when the aliased data arrived; red background +
|
|
15
|
+
* "UPSTREAM MISSING" + what WAS available when it didn't — so a
|
|
16
|
+
* human eyeballing the rendered tile can read the verdict without
|
|
17
|
+
* opening the sidecar;
|
|
18
|
+
* - mirrors EXACTLY what it received into `sidecars.upstreamEcho`,
|
|
19
|
+
* so e2e suites can byte-assert the data that crossed the
|
|
20
|
+
* pipeline boundary;
|
|
21
|
+
* - declares `upstreamVariablesSchema` / `upstreamDataSchema`,
|
|
22
|
+
* exercising the resolver's VARIABLES_SCHEMA_MISMATCH guard: a
|
|
23
|
+
* pipeline that wires it after the fixture-fetcher resolves
|
|
24
|
+
* cleanly; a mis-wired pipeline (no producer, wrong alias, drifted
|
|
25
|
+
* types) errors at resolve time.
|
|
26
|
+
*
|
|
27
|
+
* Standalone renders (no upstream at all) are also fine — the
|
|
28
|
+
* resolver only checks schemas on invocation paths; the tile then
|
|
29
|
+
* shows the red MISSING card and the sidecar records both channels
|
|
30
|
+
* as absent.
|
|
31
|
+
*/
|
|
32
|
+
export type UpstreamEchoProps = {
|
|
33
|
+
/** Aliased data block to echo. Default `"fixtureData"`. */
|
|
34
|
+
alias?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Optional background OVERRIDE (#rrggbb). Unset → semantic colors:
|
|
37
|
+
* pale green when the aliased block arrived, red when it didn't.
|
|
38
|
+
*/
|
|
39
|
+
color?: string;
|
|
40
|
+
};
|
|
41
|
+
/** Semantic backgrounds (exported so tests pin the exact values). */
|
|
42
|
+
export declare const UPSTREAM_ECHO_OK_BG = "#d9efd9";
|
|
43
|
+
export declare const UPSTREAM_ECHO_MISSING_BG = "#a03030";
|
|
44
|
+
type UpstreamEchoSidecars = {
|
|
45
|
+
upstreamEcho: {
|
|
46
|
+
alias: string;
|
|
47
|
+
upstreamData: Record<string, unknown> | null;
|
|
48
|
+
upstreamVariables: Record<string, unknown> | null;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export declare const UpstreamEcho: import("@m0saic/types").MosaicTemplate<UpstreamEchoProps, MosaicTemplateOutputs, MosaicTemplateUpstreamVariables, MosaicTemplateUpstreamData, UpstreamEchoSidecars>;
|
|
52
|
+
export default UpstreamEcho;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpstreamEcho = exports.UPSTREAM_ECHO_MISSING_BG = exports.UPSTREAM_ECHO_OK_BG = void 0;
|
|
4
|
+
const types_1 = require("@m0saic/types");
|
|
5
|
+
const dsl_stdlib_1 = require("@m0saic/dsl-stdlib");
|
|
6
|
+
const template_utils_1 = require("@m0saic/template-utils");
|
|
7
|
+
/** Semantic backgrounds (exported so tests pin the exact values). */
|
|
8
|
+
exports.UPSTREAM_ECHO_OK_BG = "#d9efd9";
|
|
9
|
+
exports.UPSTREAM_ECHO_MISSING_BG = "#a03030";
|
|
10
|
+
const propsSchema = (0, template_utils_1.definePropsSchema)({
|
|
11
|
+
alias: {
|
|
12
|
+
type: "string",
|
|
13
|
+
required: false,
|
|
14
|
+
description: 'Which ctx.upstreamData block to echo into the sidecar. Default "fixtureData".',
|
|
15
|
+
},
|
|
16
|
+
color: {
|
|
17
|
+
meta: { constraints: { isColor: true }, control: { placeholder: "green when found, red when missing", colorPicker: true } },
|
|
18
|
+
type: "string",
|
|
19
|
+
required: false,
|
|
20
|
+
description: "Optional background override (#rrggbb). Unset: pale green when the aliased upstream block arrived, red when it didn't.",
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
// U / D stay at the loose defaults: narrowing them would break
|
|
24
|
+
// contravariance with `registerTemplate` (which accepts the loose
|
|
25
|
+
// form) — a common trade-off for data-fetcher templates. The
|
|
26
|
+
// consumed shapes are documented via upstreamVariablesSchema /
|
|
27
|
+
// upstreamDataSchema below instead.
|
|
28
|
+
exports.UpstreamEcho = (0, template_utils_1.defineMosaicTemplate)({
|
|
29
|
+
id: (0, types_1.asTemplateId)("@m0saic/meta/upstream-echo/v1"),
|
|
30
|
+
label: "Upstream Echo (internal)",
|
|
31
|
+
version: 1,
|
|
32
|
+
description: "Consumer proof fixture: reads ctx.upstreamData[alias] + ctx.upstreamVariables, renders a self-evidencing status card (pale green 'UPSTREAM OK' + block summary, or red 'UPSTREAM MISSING'), and mirrors the received upstream into sidecars.upstreamEcho for byte-assertable verification. Declares upstream schemas to exercise the resolver's schema guard.",
|
|
33
|
+
capabilities: { tier: "core" },
|
|
34
|
+
tags: ["developer", "meta", "fixture", "upstream", "internal"],
|
|
35
|
+
internal: true,
|
|
36
|
+
outputHints: {
|
|
37
|
+
width: 640,
|
|
38
|
+
height: 360,
|
|
39
|
+
fps: 30,
|
|
40
|
+
durationMs: 1000,
|
|
41
|
+
note: "Status-card echo tile (green=upstream OK, red=missing); the byte-assertable payload is the sidecar mirror.",
|
|
42
|
+
},
|
|
43
|
+
// Consumer contracts — exercised by the resolver's schema guard on
|
|
44
|
+
// invocation paths. The fixture-fetcher's DEFAULT payload satisfies
|
|
45
|
+
// the fixtureData block; keys are declared with the types the
|
|
46
|
+
// default payload carries. Flat-union keys stay optional so the
|
|
47
|
+
// echo also renders standalone (no producer) without diagnostics.
|
|
48
|
+
upstreamVariablesSchema: {
|
|
49
|
+
dataset: { type: "string", required: false },
|
|
50
|
+
series: { type: "number[]", required: false },
|
|
51
|
+
},
|
|
52
|
+
upstreamDataSchema: {
|
|
53
|
+
fixtureData: {
|
|
54
|
+
description: "Data block published by @m0saic/meta/fixture-fetcher/v1 under its default alias.",
|
|
55
|
+
variables: {
|
|
56
|
+
dataset: { type: "string", required: false },
|
|
57
|
+
version: { type: "number", required: false },
|
|
58
|
+
series: { type: "number[]", required: false },
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
propsSchema,
|
|
63
|
+
// `color` deliberately absent: its deterministic default is the
|
|
64
|
+
// SEMANTIC background (green when upstream arrived, red when not),
|
|
65
|
+
// derived in render — a fixed default would defeat the status card.
|
|
66
|
+
defaultProps: {
|
|
67
|
+
alias: "fixtureData",
|
|
68
|
+
},
|
|
69
|
+
async render(props, ctx) {
|
|
70
|
+
var _a, _b, _c, _d;
|
|
71
|
+
const alias = (_a = props.alias) !== null && _a !== void 0 ? _a : "fixtureData";
|
|
72
|
+
if (props.color !== undefined && !/^#[0-9a-fA-F]{6}$/.test(props.color)) {
|
|
73
|
+
throw new Error(`meta/upstream-echo: color ${JSON.stringify(props.color)} must be a #rrggbb hex color.`);
|
|
74
|
+
}
|
|
75
|
+
const upstreamData = (_b = (0, template_utils_1.getUpstreamBlock)(ctx, alias)) !== null && _b !== void 0 ? _b : null;
|
|
76
|
+
const upstreamVariables = (_c = (0, template_utils_1.getUpstreamVariables)(ctx)) !== null && _c !== void 0 ? _c : null;
|
|
77
|
+
// ── Self-evidencing status card ─────────────────────────────
|
|
78
|
+
// Green + summary when the aliased block arrived; red + diagnosis
|
|
79
|
+
// when it didn't. All lines deterministic (sorted keys, counts).
|
|
80
|
+
const ok = upstreamData !== null;
|
|
81
|
+
const bg = ((_d = props.color) !== null && _d !== void 0 ? _d : (ok ? exports.UPSTREAM_ECHO_OK_BG : exports.UPSTREAM_ECHO_MISSING_BG));
|
|
82
|
+
const fg = (ok && props.color === undefined ? "#1e3a26" : "#fff5f5");
|
|
83
|
+
const flatKeyCount = Object.keys(upstreamVariables !== null && upstreamVariables !== void 0 ? upstreamVariables : {}).length;
|
|
84
|
+
const bodyLines = ok
|
|
85
|
+
? [
|
|
86
|
+
`alias: ${alias}`,
|
|
87
|
+
`block keys: ${Object.keys(upstreamData).sort().join(", ") || "(none)"}`,
|
|
88
|
+
`flat union keys: ${flatKeyCount}`,
|
|
89
|
+
]
|
|
90
|
+
: [
|
|
91
|
+
`alias: ${alias}`,
|
|
92
|
+
`available blocks: ${(0, template_utils_1.listUpstreamAliases)(ctx).join(", ") || "(none)"}`,
|
|
93
|
+
`flat union keys: ${flatKeyCount}`,
|
|
94
|
+
];
|
|
95
|
+
// Generous fixed sizes + margins — app text-fit runs wider than CLI.
|
|
96
|
+
const titleFont = 34;
|
|
97
|
+
const bodyFont = 20;
|
|
98
|
+
const layers = [
|
|
99
|
+
{
|
|
100
|
+
content: { kind: "literal", text: ok ? "UPSTREAM OK" : "UPSTREAM MISSING" },
|
|
101
|
+
style: { fontSize: titleFont, fontColor: fg },
|
|
102
|
+
placement: { hAlign: "left", vAlign: "top", xExpr: "w*0.06", yExpr: "h*0.08" },
|
|
103
|
+
},
|
|
104
|
+
...bodyLines.map((text, i) => ({
|
|
105
|
+
content: { kind: "literal", text },
|
|
106
|
+
style: { fontSize: bodyFont, fontColor: fg },
|
|
107
|
+
placement: {
|
|
108
|
+
hAlign: "left",
|
|
109
|
+
vAlign: "top",
|
|
110
|
+
xExpr: "w*0.06",
|
|
111
|
+
yExpr: `h*${(0.32 + i * 0.14).toFixed(2)}`,
|
|
112
|
+
},
|
|
113
|
+
})),
|
|
114
|
+
];
|
|
115
|
+
return {
|
|
116
|
+
kind: "mosaic_document",
|
|
117
|
+
version: 1,
|
|
118
|
+
m0: (0, dsl_stdlib_1.toM0String)("F", "upstreamEcho"),
|
|
119
|
+
assets: {},
|
|
120
|
+
sources: [
|
|
121
|
+
// Layer 1 (`alias: …`) SHOWS the alias prop — bind that layer so Make's
|
|
122
|
+
// double-click edits it in place.
|
|
123
|
+
(0, template_utils_1.bindProps)({ type: "text", visual: { backgroundColor: bg }, layers }, [
|
|
124
|
+
{ propKey: "alias", layer: 1 },
|
|
125
|
+
]),
|
|
126
|
+
],
|
|
127
|
+
sidecars: {
|
|
128
|
+
upstreamEcho: {
|
|
129
|
+
alias,
|
|
130
|
+
upstreamData,
|
|
131
|
+
upstreamVariables,
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
};
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
(0, template_utils_1.registerTemplate)(exports.UpstreamEcho);
|
|
138
|
+
exports.default = exports.UpstreamEcho;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrimitiveGridV2 = exports.PrimitiveGrid = void 0;
|
|
4
|
+
var grid_1 = require("./v1/grid");
|
|
5
|
+
Object.defineProperty(exports, "PrimitiveGrid", { enumerable: true, get: function () { return grid_1.PrimitiveGrid; } });
|
|
6
|
+
var grid_2 = require("./v2/grid");
|
|
7
|
+
Object.defineProperty(exports, "PrimitiveGridV2", { enumerable: true, get: function () { return grid_2.PrimitiveGridV2; } });
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ============================================================================
|
|
3
|
+
* @m0saic/primitives/grid/v1
|
|
4
|
+
* ============================================================================
|
|
5
|
+
*
|
|
6
|
+
* A reusable gridline overlay primitive.
|
|
7
|
+
*
|
|
8
|
+
* Renders thin lavfi strips as an overlay paint stack:
|
|
9
|
+
* base (transparent) -> line1 -> line2 -> ... -> lineN
|
|
10
|
+
*
|
|
11
|
+
* - Does NOT own background fills.
|
|
12
|
+
* - Does NOT render a baseline (callers can layer their own baseline above/below).
|
|
13
|
+
* - Does NOT animate.
|
|
14
|
+
* - Designed to be composed inside higher-level templates (charts, dashboards, frames).
|
|
15
|
+
*
|
|
16
|
+
* Counting semantics:
|
|
17
|
+
* - `count` is the number of equal intervals across the axis.
|
|
18
|
+
* - When `excludeEdges=true`, we render interior lines only:
|
|
19
|
+
* i = 1..count-1 => (count-1) lines
|
|
20
|
+
* - When `excludeEdges=false`, we render edges too:
|
|
21
|
+
* i = 0..count => (count+1) lines
|
|
22
|
+
*
|
|
23
|
+
* Axis / origin semantics:
|
|
24
|
+
* - direction="horizontal" positions lines by Y fraction.
|
|
25
|
+
* - direction="vertical" positions lines by X fraction.
|
|
26
|
+
* - origin controls how the fraction is interpreted:
|
|
27
|
+
* - for horizontal: "top" or "bottom"
|
|
28
|
+
* - for vertical: "left" or "right"
|
|
29
|
+
*
|
|
30
|
+
* Implementation detail:
|
|
31
|
+
* - Each line is generated as an intrinsic strip (fitMode="content") sized via TW/TH.
|
|
32
|
+
* - Positioning uses tile-local overlay offsets (W/H) for deterministic placement.
|
|
33
|
+
*
|
|
34
|
+
* Why placeRects, not a "portable" weightedSplit (measured):
|
|
35
|
+
* - For THIN LINES a placeRects grid is pixel-EXACT (~0px spread) at every
|
|
36
|
+
* size/count, while the interleaved gap/line weightedSplit ranges from fine
|
|
37
|
+
* (~0.5px) to CATASTROPHIC (count=6 @ 400px → ~67px; count=8 @ 333px → ~42px) —
|
|
38
|
+
* the basis sits ≈ the axis length and any mismatch spreads wildly. So there is
|
|
39
|
+
* no imperceptible-weightedSplit to fall back to here; placeRects strictly wins.
|
|
40
|
+
* (See `dsl-stdlib` `quantizationSpread` + its test for the matrix.) The general
|
|
41
|
+
* "weightedSplit when imperceptible, else placeRects" rule still pays off for
|
|
42
|
+
* REGION layouts with small natural bases — just not for thin-line grids.
|
|
43
|
+
*
|
|
44
|
+
* RESOLUTION-AWARE — pass a `slot` when exact alignment matters:
|
|
45
|
+
* - The single-axis path computes ABSOLUTE pixel line positions from `ctx.target`
|
|
46
|
+
* (see `buildAxisSplitGrid`), rounding each boundary independently so gaps are
|
|
47
|
+
* exact at the rendered size. The emitted m0 is still a weighted-band split, so
|
|
48
|
+
* for EVEN divisions the lines stay uniform even if the grid is later scaled into
|
|
49
|
+
* a different-size cell (proportional bands scale uniformly — verified: bar-graph
|
|
50
|
+
* nests this with bare `ctx` and its gaps are uniform to ≤0.5px at odd canvases).
|
|
51
|
+
* - Pass `renderNestedTemplate(..., ctx, { slot: { width, height } })` with the
|
|
52
|
+
* grid's REAL rendered px whenever the grid must align with SIBLING geometry at
|
|
53
|
+
* exact pixels, or line THICKNESS must be exact for the cell — compute at the
|
|
54
|
+
* slot, don't let the grid bake the parent-canvas dims and scale in.
|
|
55
|
+
* - Canonical example: line-chart `chrome.ts` `renderGrid` passes
|
|
56
|
+
* `{ slot: { width: plotW, height: plotH } }` so its gridlines line up with the
|
|
57
|
+
* data layer's plot rect.
|
|
58
|
+
* ============================================================================
|
|
59
|
+
*/
|
|
60
|
+
import type { MosaicColor, MosaicTemplate } from "@m0saic/types";
|
|
61
|
+
export type PrimitiveGridDirection = "horizontal" | "vertical" | "both";
|
|
62
|
+
export type PrimitiveGridOrigin = "top" | "bottom" | "left" | "right";
|
|
63
|
+
export type PrimitiveGridProps = {
|
|
64
|
+
show?: boolean;
|
|
65
|
+
/** Number of equal intervals across the chosen axis. */
|
|
66
|
+
count?: number;
|
|
67
|
+
/** Which axes to draw. */
|
|
68
|
+
direction?: PrimitiveGridDirection;
|
|
69
|
+
/**
|
|
70
|
+
* Fraction origin for placement.
|
|
71
|
+
* - horizontal: "bottom" (chart-style) or "top" (screen-style)
|
|
72
|
+
* - vertical: "left" (screen-style) or "right"
|
|
73
|
+
*/
|
|
74
|
+
origin?: PrimitiveGridOrigin;
|
|
75
|
+
/** Exclude the outer boundary lines. Default true. */
|
|
76
|
+
excludeEdges?: boolean;
|
|
77
|
+
/** Line color (FFmpeg-compatible). */
|
|
78
|
+
color?: MosaicColor;
|
|
79
|
+
/** Constant opacity multiplier (0..1). */
|
|
80
|
+
opacity?: number;
|
|
81
|
+
/** Thickness as a fraction of the short side. Engine clamps to >= 1px. */
|
|
82
|
+
thicknessFrac?: number;
|
|
83
|
+
};
|
|
84
|
+
export declare const PRIMITIVE_GRID_TEMPLATE_ID: import("@m0saic/types").TemplateId;
|
|
85
|
+
export declare const PrimitiveGrid: MosaicTemplate<PrimitiveGridProps>;
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrimitiveGrid = exports.PRIMITIVE_GRID_TEMPLATE_ID = void 0;
|
|
4
|
+
const types_1 = require("@m0saic/types");
|
|
5
|
+
const template_utils_1 = require("@m0saic/template-utils");
|
|
6
|
+
const dsl_stdlib_1 = require("@m0saic/dsl-stdlib");
|
|
7
|
+
const propsSchema = (0, template_utils_1.definePropsSchema)({
|
|
8
|
+
show: {
|
|
9
|
+
type: "boolean",
|
|
10
|
+
required: false,
|
|
11
|
+
description: "Whether the grid renders. Default true.",
|
|
12
|
+
},
|
|
13
|
+
count: {
|
|
14
|
+
type: "number",
|
|
15
|
+
required: false,
|
|
16
|
+
description: "Number of equal intervals across the axis. Default 5.",
|
|
17
|
+
},
|
|
18
|
+
direction: {
|
|
19
|
+
type: "string",
|
|
20
|
+
required: false,
|
|
21
|
+
description: 'Which axes to draw: "horizontal" | "vertical" | "both". Default "horizontal".',
|
|
22
|
+
},
|
|
23
|
+
origin: {
|
|
24
|
+
type: "string",
|
|
25
|
+
required: false,
|
|
26
|
+
description: 'Origin for fractions: "top" | "bottom" | "left" | "right". Default depends on direction.',
|
|
27
|
+
},
|
|
28
|
+
excludeEdges: {
|
|
29
|
+
type: "boolean",
|
|
30
|
+
required: false,
|
|
31
|
+
description: "If true, do not render the outer boundary lines. Default true.",
|
|
32
|
+
},
|
|
33
|
+
color: {
|
|
34
|
+
type: "string",
|
|
35
|
+
required: false,
|
|
36
|
+
description: "Line color (FFmpeg-compatible). Default #ffffff.",
|
|
37
|
+
meta: { constraints: { isColor: true }, control: { colorPicker: true } },
|
|
38
|
+
},
|
|
39
|
+
opacity: {
|
|
40
|
+
type: "number",
|
|
41
|
+
required: false,
|
|
42
|
+
description: "Line opacity multiplier (0..1). Default 0.12.",
|
|
43
|
+
},
|
|
44
|
+
thicknessFrac: {
|
|
45
|
+
type: "number",
|
|
46
|
+
required: false,
|
|
47
|
+
description: "Line thickness fraction. Default 0.002.",
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
exports.PRIMITIVE_GRID_TEMPLATE_ID = (0, types_1.asTemplateId)("@m0saic/primitives/grid/v1");
|
|
51
|
+
const DEFAULT_COLOR = "#ffffff";
|
|
52
|
+
const DEFAULT_OPACITY = 0.12;
|
|
53
|
+
const DEFAULT_THICKNESS_FRAC = 0.002;
|
|
54
|
+
const DEFAULT_COUNT = 5;
|
|
55
|
+
exports.PrimitiveGrid = {
|
|
56
|
+
id: exports.PRIMITIVE_GRID_TEMPLATE_ID,
|
|
57
|
+
label: "Primitive — Grid",
|
|
58
|
+
version: 1,
|
|
59
|
+
internal: false,
|
|
60
|
+
primitive: true, // reusable layout building block composed into other templates
|
|
61
|
+
description: "Reusable gridline overlay primitive (horizontal/vertical/both) for composition into templates.",
|
|
62
|
+
capabilities: { tier: "core" },
|
|
63
|
+
deprecated: {
|
|
64
|
+
reason: "The 'absolute → fine ratio' anti-pattern: the single-axis path computes each line's ABSOLUTE pixel position from ctx.target, then re-encodes them as a placeRects split whose basis ≈ the plot dimension in px. Renders exactly STANDALONE but the per-pixel basis does NOT nest — the engine re-divides it below 1px at certain canvases (e.g. 1024², 1000²) and the grid is SILENTLY DROPPED. Kept registered as a 'what not to do' reference. Use v2 — thin fixed-px strips at proportional overlay offsets (ratio positioning) that compose at any canvas.",
|
|
65
|
+
replacement: (0, types_1.asTemplateId)("@m0saic/primitives/grid/v2"),
|
|
66
|
+
since: "2026-07-07",
|
|
67
|
+
},
|
|
68
|
+
tags: ["primitive", "grid"],
|
|
69
|
+
propsSchema,
|
|
70
|
+
defaultProps: {
|
|
71
|
+
show: true,
|
|
72
|
+
count: DEFAULT_COUNT,
|
|
73
|
+
direction: "horizontal",
|
|
74
|
+
origin: "bottom",
|
|
75
|
+
excludeEdges: true,
|
|
76
|
+
color: DEFAULT_COLOR,
|
|
77
|
+
opacity: DEFAULT_OPACITY,
|
|
78
|
+
thicknessFrac: DEFAULT_THICKNESS_FRAC,
|
|
79
|
+
},
|
|
80
|
+
async render(props, ctx) {
|
|
81
|
+
var _a, _b, _c, _d, _e, _f;
|
|
82
|
+
const show = props.show !== false;
|
|
83
|
+
const count = Math.max(0, Math.floor((_a = props.count) !== null && _a !== void 0 ? _a : DEFAULT_COUNT));
|
|
84
|
+
if (!show || count <= 1) {
|
|
85
|
+
return {
|
|
86
|
+
kind: "mosaic_document",
|
|
87
|
+
version: 1,
|
|
88
|
+
assets: {},
|
|
89
|
+
m0: (0, template_utils_1.buildOverlayStack)(1),
|
|
90
|
+
sources: [(0, template_utils_1.transparentSlot)()], durationMs: ctx.target.durationMs,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
const direction = (_b = props.direction) !== null && _b !== void 0 ? _b : "horizontal";
|
|
94
|
+
const color = (_c = props.color) !== null && _c !== void 0 ? _c : DEFAULT_COLOR;
|
|
95
|
+
const opacity = (_d = props.opacity) !== null && _d !== void 0 ? _d : DEFAULT_OPACITY;
|
|
96
|
+
const thicknessFrac = (_e = props.thicknessFrac) !== null && _e !== void 0 ? _e : DEFAULT_THICKNESS_FRAC;
|
|
97
|
+
const excludeEdges = props.excludeEdges !== false;
|
|
98
|
+
// ---- Single-axis fast path (row/col split) ------------------------
|
|
99
|
+
//
|
|
100
|
+
// The legacy implementation emits one lavfi-strip-overlay per line and
|
|
101
|
+
// stacks them with buildOverlayStack(), which expands to a nested
|
|
102
|
+
// overlay chain (F{F{F{...}}}) — every line costs one ffmpeg overlay
|
|
103
|
+
// op. For N=5 grid lines that is N+1 nested overlays *just for the
|
|
104
|
+
// grid*, multiplied across every chunk in the render plan.
|
|
105
|
+
//
|
|
106
|
+
// For "horizontal" / "vertical" we instead express the grid as a
|
|
107
|
+
// single row/col split: thin line cells (weight 1) separated by
|
|
108
|
+
// wide gap cells (weight derived from thicknessFrac), with spacer
|
|
109
|
+
// tokens for the gaps. One composition op, N sources.
|
|
110
|
+
//
|
|
111
|
+
// m0 vertical-bars horizontal-grid example (count=5, excludeEdges):
|
|
112
|
+
// row-split, weights [99,1,99,1,99,1,99,1,99]
|
|
113
|
+
// claimants [ - , 1 , - , 1 , - , 1 , - , 1 , - ]
|
|
114
|
+
//
|
|
115
|
+
// "both" still walks the legacy overlay path — it's not on the chart
|
|
116
|
+
// hot path today and the layout would be a nested split (out of scope
|
|
117
|
+
// for this optimisation).
|
|
118
|
+
if (direction === "horizontal" || direction === "vertical") {
|
|
119
|
+
return buildAxisSplitGrid({
|
|
120
|
+
direction,
|
|
121
|
+
count,
|
|
122
|
+
excludeEdges,
|
|
123
|
+
color,
|
|
124
|
+
opacity,
|
|
125
|
+
thicknessFrac,
|
|
126
|
+
ctx,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
// ---- Legacy overlay-stack path (only direction="both") ------------
|
|
130
|
+
// direction is narrowed to "both" here; the single-axis fast path
|
|
131
|
+
// already returned above. We render both axes by composing two
|
|
132
|
+
// gridline sets with the legacy overlay-stack model.
|
|
133
|
+
const origin = (_f = props.origin) !== null && _f !== void 0 ? _f : "bottom";
|
|
134
|
+
const lines = [];
|
|
135
|
+
const horizOrigin = origin === "top" ? "top" : "bottom";
|
|
136
|
+
lines.push(...(0, template_utils_1.buildGridlineSources)({
|
|
137
|
+
direction: "horizontal",
|
|
138
|
+
count,
|
|
139
|
+
excludeEdges,
|
|
140
|
+
origin: horizOrigin,
|
|
141
|
+
color,
|
|
142
|
+
opacity,
|
|
143
|
+
thicknessFrac,
|
|
144
|
+
}));
|
|
145
|
+
const vertOrigin = origin === "right" ? "right" : "left";
|
|
146
|
+
lines.push(...(0, template_utils_1.buildGridlineSources)({
|
|
147
|
+
direction: "vertical",
|
|
148
|
+
count,
|
|
149
|
+
excludeEdges,
|
|
150
|
+
origin: vertOrigin,
|
|
151
|
+
color,
|
|
152
|
+
opacity,
|
|
153
|
+
thicknessFrac,
|
|
154
|
+
}));
|
|
155
|
+
const sources = [(0, template_utils_1.transparentSlot)(), ...lines];
|
|
156
|
+
return {
|
|
157
|
+
kind: "mosaic_document",
|
|
158
|
+
version: 1,
|
|
159
|
+
sources,
|
|
160
|
+
assets: {},
|
|
161
|
+
m0: (0, template_utils_1.buildOverlayStack)(sources.length),
|
|
162
|
+
durationMs: ctx.target.durationMs,
|
|
163
|
+
};
|
|
164
|
+
},
|
|
165
|
+
};
|
|
166
|
+
function buildAxisSplitGrid(opts) {
|
|
167
|
+
const { direction, count, excludeEdges, color, opacity, thicknessFrac, ctx } = opts;
|
|
168
|
+
// QUANTIZATION-FREE gridlines: instead of one interleaved [gap,line,gap,…]
|
|
169
|
+
// split (a small weight basis that doesn't divide the axis → the remainder
|
|
170
|
+
// spreads and lines drift), compute each line's ABSOLUTE pixel position by
|
|
171
|
+
// even division, then `placeRects` a thin rect at each. The placeRects band
|
|
172
|
+
// weights are pixels that sum to the axis length, so the render is exact —
|
|
173
|
+
// lines are uniformly spaced at any resolution / cell count.
|
|
174
|
+
// (Resolution-dependent by design: uses the slot's `ctx.target` dims.)
|
|
175
|
+
const W = Math.max(1, Math.round(ctx.target.width));
|
|
176
|
+
const H = Math.max(1, Math.round(ctx.target.height));
|
|
177
|
+
const horizontal = direction === "horizontal";
|
|
178
|
+
const axisLen = horizontal ? H : W; // lines are spaced along this axis
|
|
179
|
+
const span = horizontal ? W : H; // lines span the cross axis fully
|
|
180
|
+
const th = Math.max(1, Math.round(thicknessFrac * Math.min(W, H)));
|
|
181
|
+
// Line indices at even-division boundaries. excludeEdges → interior only
|
|
182
|
+
// (1..count-1); else include the 0 and count edges.
|
|
183
|
+
const lo = excludeEdges ? 1 : 0;
|
|
184
|
+
const hi = excludeEdges ? count - 1 : count;
|
|
185
|
+
const rects = [];
|
|
186
|
+
for (let i = lo; i <= hi; i++) {
|
|
187
|
+
const pos = Math.max(0, Math.min(axisLen - th, Math.round((i / count) * axisLen) - Math.floor(th / 2)));
|
|
188
|
+
rects.push(horizontal ? { x: 0, y: pos, w: span, h: th, claimant: "1" } : { x: pos, y: 0, w: th, h: span, claimant: "1" });
|
|
189
|
+
}
|
|
190
|
+
if (rects.length === 0) {
|
|
191
|
+
return {
|
|
192
|
+
kind: "mosaic_document",
|
|
193
|
+
version: 1,
|
|
194
|
+
assets: {},
|
|
195
|
+
m0: (0, template_utils_1.buildOverlayStack)(1),
|
|
196
|
+
sources: [(0, template_utils_1.transparentSlot)()],
|
|
197
|
+
durationMs: ctx.target.durationMs,
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
const placed = (0, dsl_stdlib_1.placeRects)({ rootW: W, rootH: H, rects });
|
|
201
|
+
// One lavfi line per placed rect — all identical, so emission order is moot.
|
|
202
|
+
const sources = rects.map(() => ({
|
|
203
|
+
type: "lavfi",
|
|
204
|
+
color,
|
|
205
|
+
fitMode: "tile",
|
|
206
|
+
visual: opacity == null ? undefined : { opacity },
|
|
207
|
+
}));
|
|
208
|
+
return {
|
|
209
|
+
kind: "mosaic_document",
|
|
210
|
+
version: 1,
|
|
211
|
+
assets: {},
|
|
212
|
+
m0: String(placed.m0),
|
|
213
|
+
sources,
|
|
214
|
+
durationMs: ctx.target.durationMs,
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
(0, template_utils_1.registerTemplate)(exports.PrimitiveGrid);
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ============================================================================
|
|
3
|
+
* @m0saic/primitives/grid/v2
|
|
4
|
+
* ============================================================================
|
|
5
|
+
*
|
|
6
|
+
* A reusable, COMPOSABLE gridline overlay primitive.
|
|
7
|
+
*
|
|
8
|
+
* Renders each gridline as a thin lavfi strip positioned by a PROPORTIONAL
|
|
9
|
+
* overlay offset (`H*frac` / `W*frac`), stacked over a transparent base:
|
|
10
|
+
* base (transparent) -> line1 -> line2 -> ... -> lineN
|
|
11
|
+
*
|
|
12
|
+
* Why v2 exists (the v1 bug):
|
|
13
|
+
* - v1's single-axis path computed each line's ABSOLUTE pixel position from
|
|
14
|
+
* `ctx.target`, then re-encoded them as a `placeRects` split whose basis ≈ the
|
|
15
|
+
* axis length in px (e.g. `853[0,1,0,…]` for an 853px plot). That is the
|
|
16
|
+
* "absolute → fine ratio" anti-pattern: it renders exactly STANDALONE (853
|
|
17
|
+
* slices of 853px = 1px each) but the per-pixel basis does NOT nest — the
|
|
18
|
+
* engine folds the child split into the parent layout, re-divides the basis
|
|
19
|
+
* below 1px, cells round to 0, and the grid is SILENTLY DROPPED at certain
|
|
20
|
+
* canvases (gridlines gone at 1024², 1000², … while 1080² survives). See
|
|
21
|
+
* the internal ratio-vs-absolute-m0-drafting notes.
|
|
22
|
+
*
|
|
23
|
+
* How v2 fixes it (ratio positioning, decoupled thickness):
|
|
24
|
+
* - Position is a PROPORTION of the cell, expressed as an overlay offset
|
|
25
|
+
* (`H*frac`) evaluated against the actual cell W/H at render time. A ratio
|
|
26
|
+
* scales to whatever cell it lands in, so the grid composes cleanly at every
|
|
27
|
+
* canvas — no per-pixel basis to re-divide, no silent drop.
|
|
28
|
+
* - Thickness is DECOUPLED from positioning: each line is a fixed thin strip
|
|
29
|
+
* (`thicknessFrac` of the short side, engine-clamped to >= 1px), not a cell in
|
|
30
|
+
* an interleaved [gap,line,gap,…] split. That interleave is the OTHER trap
|
|
31
|
+
* (its basis sits ≈ the axis length and the remainder spreads wildly — up to
|
|
32
|
+
* ~67px at count=6 @ 400px); proportional strips sidestep it entirely.
|
|
33
|
+
*
|
|
34
|
+
* Cost trade (deliberate):
|
|
35
|
+
* - v1 single-axis was 1 composition op (placeRects) but non-nestable. v2 is
|
|
36
|
+
* N+1 nested overlays (one per line) but nestable. For a primitive meant to be
|
|
37
|
+
* composed, composability wins — the whole point of the shelf is that it drops
|
|
38
|
+
* into any cell. Grids are small (typically count 3–12), so the overlay depth
|
|
39
|
+
* stays modest; these are plain colored strips (no masks), so they are not
|
|
40
|
+
* subject to the mask-drop overlay-depth ceiling.
|
|
41
|
+
*
|
|
42
|
+
* Counting / axis / origin semantics are unchanged from v1:
|
|
43
|
+
* - `count` = number of equal intervals across the axis.
|
|
44
|
+
* - `excludeEdges=true` (default) → interior lines only (i = 1..count-1);
|
|
45
|
+
* `excludeEdges=false` → include the 0 and count edges (i = 0..count).
|
|
46
|
+
* - direction "horizontal" spaces lines by Y fraction; "vertical" by X fraction;
|
|
47
|
+
* "both" draws both sets.
|
|
48
|
+
* - origin: horizontal uses "bottom" (chart-style, default) or "top"; vertical
|
|
49
|
+
* uses "left" (default) or "right".
|
|
50
|
+
*
|
|
51
|
+
* Not owned by this primitive: background fills, baselines, animation. Callers
|
|
52
|
+
* layer those themselves.
|
|
53
|
+
* ============================================================================
|
|
54
|
+
*/
|
|
55
|
+
import type { MosaicColor, MosaicTemplate } from "@m0saic/types";
|
|
56
|
+
export type PrimitiveGridV2Direction = "horizontal" | "vertical" | "both";
|
|
57
|
+
export type PrimitiveGridV2Origin = "top" | "bottom" | "left" | "right";
|
|
58
|
+
export type PrimitiveGridV2Props = {
|
|
59
|
+
show?: boolean;
|
|
60
|
+
/** Number of equal intervals across the chosen axis. */
|
|
61
|
+
count?: number;
|
|
62
|
+
/** Which axes to draw. */
|
|
63
|
+
direction?: PrimitiveGridV2Direction;
|
|
64
|
+
/**
|
|
65
|
+
* Fraction origin for placement.
|
|
66
|
+
* - horizontal: "bottom" (chart-style) or "top" (screen-style)
|
|
67
|
+
* - vertical: "left" (screen-style) or "right"
|
|
68
|
+
*/
|
|
69
|
+
origin?: PrimitiveGridV2Origin;
|
|
70
|
+
/** Exclude the outer boundary lines. Default true. */
|
|
71
|
+
excludeEdges?: boolean;
|
|
72
|
+
/** Line color (FFmpeg-compatible). */
|
|
73
|
+
color?: MosaicColor;
|
|
74
|
+
/** Constant opacity multiplier (0..1). */
|
|
75
|
+
opacity?: number;
|
|
76
|
+
/** Thickness as a fraction of the short side. Engine clamps to >= 1px. */
|
|
77
|
+
thicknessFrac?: number;
|
|
78
|
+
};
|
|
79
|
+
export declare const PRIMITIVE_GRID_V2_TEMPLATE_ID: import("@m0saic/types").TemplateId;
|
|
80
|
+
export declare const PrimitiveGridV2: MosaicTemplate<PrimitiveGridV2Props>;
|