@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,582 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AlpineHeatmapV2 = 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 dsl_1 = require("@m0saic/dsl");
|
|
8
|
+
const alpine_card_1 = require("../../_shared/alpine-card");
|
|
9
|
+
const alpine_theme_1 = require("../../_shared/alpine-theme");
|
|
10
|
+
const alpine_anim_1 = require("../../_shared/alpine-anim");
|
|
11
|
+
const onboarding_cover_1 = require("../../../_shared/onboarding-cover");
|
|
12
|
+
const DEFAULT_PRESET = "light";
|
|
13
|
+
const DEFAULT_RENDER_MODE = "premium";
|
|
14
|
+
const DEFAULT_ANIM = { renderMode: DEFAULT_RENDER_MODE, introFrac: 0.7, easing: "easeOut", reduceMotion: false };
|
|
15
|
+
const DEFAULT_LEVELS = 5;
|
|
16
|
+
const MAX_ROWS = 14;
|
|
17
|
+
const MAX_COLS = 30;
|
|
18
|
+
const SNAP_PX = 4;
|
|
19
|
+
const EDGE_PAD = 1.5;
|
|
20
|
+
// Empty-bucket color per preset (GitHub's empty grey, retuned for the dark card).
|
|
21
|
+
const EMPTY_LIGHT = "#EBEEF2";
|
|
22
|
+
const EMPTY_DARK = "#1B2434";
|
|
23
|
+
// ---------------------------------------------------------------------------
|
|
24
|
+
// Color scale
|
|
25
|
+
// ---------------------------------------------------------------------------
|
|
26
|
+
function hexToRgb(hex) {
|
|
27
|
+
const m = /^#?([0-9a-f]{6})/i.exec(String(hex));
|
|
28
|
+
if (!m)
|
|
29
|
+
return [0, 0, 0];
|
|
30
|
+
const v = parseInt(m[1], 16);
|
|
31
|
+
return [(v >> 16) & 0xff, (v >> 8) & 0xff, v & 0xff];
|
|
32
|
+
}
|
|
33
|
+
function rgbToHex(r, g, b) {
|
|
34
|
+
const c = (n) => Math.max(0, Math.min(255, Math.round(n))).toString(16).padStart(2, "0");
|
|
35
|
+
return `#${c(r)}${c(g)}${c(b)}`;
|
|
36
|
+
}
|
|
37
|
+
/** Linear RGB blend a→b at t∈[0,1]. */
|
|
38
|
+
function mix(a, b, t) {
|
|
39
|
+
const [ar, ag, ab] = hexToRgb(a);
|
|
40
|
+
const [br, bg, bb] = hexToRgb(b);
|
|
41
|
+
const u = Math.max(0, Math.min(1, t));
|
|
42
|
+
return rgbToHex(ar + (br - ar) * u, ag + (bg - ag) * u, ab + (bb - ab) * u);
|
|
43
|
+
}
|
|
44
|
+
function luminance(hex) {
|
|
45
|
+
const [r, g, b] = hexToRgb(hex);
|
|
46
|
+
return (0.2126 * r + 0.7152 * g + 0.0722 * b) / 255;
|
|
47
|
+
}
|
|
48
|
+
function onColor(hex, light, dark) {
|
|
49
|
+
return luminance(hex) > 0.6 ? dark : light;
|
|
50
|
+
}
|
|
51
|
+
const clampInt = (v, lo, hi) => Math.max(lo, Math.min(hi, Math.round(v)));
|
|
52
|
+
/** Snap a coordinate to the SNAP_PX lattice. Every rect edge lands on a multiple
|
|
53
|
+
* of SNAP_PX so placeRects' band decomposition stays low-precision and never
|
|
54
|
+
* collapses a filler band to a 0-size frame (the SPLIT_EXCEEDS_AXIS guard). */
|
|
55
|
+
const snapGrid = (v) => Math.round(v / SNAP_PX) * SNAP_PX;
|
|
56
|
+
/** Place a pre-computed pixel rect, snapping its edges to the SNAP_PX lattice. */
|
|
57
|
+
function rectPiece(W, H, x, y, w, h, source, importance) {
|
|
58
|
+
const x0 = clampInt(snapGrid(x), 0, W - SNAP_PX);
|
|
59
|
+
const y0 = clampInt(snapGrid(y), 0, H - SNAP_PX);
|
|
60
|
+
const x1 = clampInt(snapGrid(x + w), x0 + SNAP_PX, W);
|
|
61
|
+
const y1 = clampInt(snapGrid(y + h), y0 + SNAP_PX, H);
|
|
62
|
+
return { rect: { x: x0, y: y0, w: x1 - x0, h: y1 - y0, claimant: "F", importance }, source };
|
|
63
|
+
}
|
|
64
|
+
/** Place a text bbox snapped to the SNAP grid (labels / legend text). */
|
|
65
|
+
function placeText(W, H, bbox, source, importance) {
|
|
66
|
+
const snapDown = (v) => Math.floor((v - EDGE_PAD) / SNAP_PX) * SNAP_PX;
|
|
67
|
+
const snapUp = (v) => Math.ceil((v + EDGE_PAD) / SNAP_PX) * SNAP_PX;
|
|
68
|
+
const x = clampInt(snapDown(bbox.minX), 0, W - 1);
|
|
69
|
+
const y = clampInt(snapDown(bbox.minY), 0, H - 1);
|
|
70
|
+
const x2 = clampInt(snapUp(bbox.maxX), x + SNAP_PX, W);
|
|
71
|
+
const y2 = clampInt(snapUp(bbox.maxY), y + SNAP_PX, H);
|
|
72
|
+
return { rect: { x, y, w: x2 - x, h: y2 - y, claimant: "F", importance }, source };
|
|
73
|
+
}
|
|
74
|
+
function cellText(text, fontSize, color, hAlign = "center") {
|
|
75
|
+
return { type: "text", visual: { backgroundColor: "black@0" }, layers: [{ content: { kind: "literal", text: text || " " }, style: { fontSize, fontColor: color }, placement: { hAlign, vAlign: "middle" } }] };
|
|
76
|
+
}
|
|
77
|
+
/** Compact a number for an in-cell label so it fits: 4500→"4.5K", 38000→"38K",
|
|
78
|
+
* 1200000→"1.2M". Under 1000 stays exact. The cell color still uses the raw value. */
|
|
79
|
+
function compactNum(v) {
|
|
80
|
+
const n = Math.round(v);
|
|
81
|
+
const abs = Math.abs(n);
|
|
82
|
+
const fmt = (x, suf) => `${x.toFixed(1).replace(/\.0$/, "")}${suf}`;
|
|
83
|
+
if (abs < 1000)
|
|
84
|
+
return String(n);
|
|
85
|
+
if (abs < 1e6)
|
|
86
|
+
return fmt(n / 1e3, "K");
|
|
87
|
+
if (abs < 1e9)
|
|
88
|
+
return fmt(n / 1e6, "M");
|
|
89
|
+
return fmt(n / 1e9, "B");
|
|
90
|
+
}
|
|
91
|
+
function textBBox(cxp, cyp, text, font, hAlign) {
|
|
92
|
+
const w = Math.max(font, text.length * font * 0.62 + font * 0.5);
|
|
93
|
+
const h = font * 1.6;
|
|
94
|
+
const minX = hAlign === "left" ? cxp : hAlign === "right" ? cxp - w : cxp - w / 2;
|
|
95
|
+
return { minX, minY: cyp - h / 2, maxX: minX + w, maxY: cyp + h / 2 };
|
|
96
|
+
}
|
|
97
|
+
/** Normalize a row's values (number[] or CSV string) to a number[]. */
|
|
98
|
+
function parseValues(v) {
|
|
99
|
+
if (Array.isArray(v))
|
|
100
|
+
return v.map((n) => (Number.isFinite(n) ? Number(n) : 0));
|
|
101
|
+
if (typeof v === "string")
|
|
102
|
+
return v.split(/[\s,]+/).map((s) => s.trim()).filter((s) => s !== "").map((s) => { const n = Number(s); return Number.isFinite(n) ? n : 0; });
|
|
103
|
+
return [];
|
|
104
|
+
}
|
|
105
|
+
// ---------------------------------------------------------------------------
|
|
106
|
+
// Template
|
|
107
|
+
// ---------------------------------------------------------------------------
|
|
108
|
+
const propsSchema = (0, template_utils_1.definePropsSchema)({
|
|
109
|
+
// ── Primary props — flat, always visible up top (declaration order = display order). ──
|
|
110
|
+
rows: { type: "array", required: true, description: "Matrix rows. Each: an optional label + its cell values (left→right; number[] or a comma list).", meta: { control: { flavor: "objectRows", columns: [{ label: "Label", key: "label", kind: "text", placeholder: "Mon" }, { label: "Values", key: "values", kind: "text", placeholder: "3, 5, 1, 0, 8" }] }, ui: { label: "Rows", order: 1 } } },
|
|
111
|
+
colLabels: { type: "string[]", required: false, description: "Column headers along the top (index-aligned to columns).", meta: { control: { placeholder: "W1" }, ui: { label: "Column Labels", order: 2 } } },
|
|
112
|
+
title: { type: "string", required: false, description: "Card title.", meta: { control: { placeholder: "e.g., CONTRIBUTIONS" }, ui: { label: "Title", order: 3 } } },
|
|
113
|
+
subtitle: { type: "string", required: false, description: "Card subtitle.", meta: { ui: { label: "Subtitle", order: 4 } } },
|
|
114
|
+
color: { type: "string", required: false, description: "Full-intensity hue of the scale. Defaults to the theme primary.", meta: { constraints: { isColor: true }, control: { placeholder: "theme primary", colorPicker: true, defaultColor: "#2563EB" }, ui: { label: "Scale color", order: 5 } } },
|
|
115
|
+
preset: { type: "string", required: false, description: "Alpine theme variant.", meta: { constraints: { oneOf: ["light", "dark"] }, ui: { label: "Preset", order: 6 } } },
|
|
116
|
+
levels: { type: "number", required: false, description: "Intensity buckets incl. empty (GitHub uses 5).", meta: { constraints: { min: 2, max: 9 }, ui: { label: "Levels", order: 7 } } },
|
|
117
|
+
showValues: { type: "boolean", required: false, description: "Print each cell's value inside it.", meta: { ui: { label: "Show values", order: 8 } } },
|
|
118
|
+
showLegend: { type: "boolean", required: false, description: "Show the Less→More legend.", meta: { ui: { label: "Show legend", order: 9 } } },
|
|
119
|
+
// ── Everything else grouped into collapsible sections. ──
|
|
120
|
+
scale: {
|
|
121
|
+
type: "group", required: false, description: "Scale bounds + cell fine-tuning (auto-fits when unset).",
|
|
122
|
+
meta: { ui: { label: "Scale", order: 10, collapsedByDefault: true } },
|
|
123
|
+
fields: {
|
|
124
|
+
min: (0, alpine_anim_1.fNum)("Min", "Scale minimum (default 0)."),
|
|
125
|
+
max: (0, alpine_anim_1.fNum)("Max", "Scale maximum (default = the largest value).", { placeholder: "largest cell value" }),
|
|
126
|
+
emptyColor: { type: "string", required: false, description: "Color of the lowest (zero) bucket.", meta: { constraints: { isColor: true }, control: { placeholder: "theme lowest-bucket tone", colorPicker: true }, ui: { label: "Empty color" } } },
|
|
127
|
+
cellRadius: (0, alpine_anim_1.fNum)("Cell radius", "Cell corner radius (0..0.5).", { flavor: "slider", step: 0.05 }, { min: 0, max: 0.5 }),
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
anim: {
|
|
131
|
+
type: "group", required: false, description: "Reveal mode + diagonal cascade intro.",
|
|
132
|
+
meta: { ui: { label: "Animation", order: 11, collapsedByDefault: true } },
|
|
133
|
+
fields: {
|
|
134
|
+
renderMode: (0, alpine_anim_1.fEnum)("Render mode", ["premium", "light"], "\"premium\" (default): diagonal alpha-fade cascade — the softest look, but one per-pixel geq PER CELL, paid every frame of a nesting parent's whole timeline (the pack's heaviest geq load). \"light\": the same cascade via free enable-gate pops — no geq, composable, cheap when nested."),
|
|
135
|
+
reduceMotion: alpine_anim_1.ALPINE_ANIM_FIELDS.reduceMotion,
|
|
136
|
+
introFrac: alpine_anim_1.ALPINE_ANIM_FIELDS.introFrac,
|
|
137
|
+
easing: alpine_anim_1.ALPINE_ANIM_FIELDS.easing,
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
theme: {
|
|
141
|
+
type: "group", required: false, description: "Opt into a theme source. Uses the alpine preset by default; set a producer slug + namespace to pull shared design tokens. Explicit color props still win.",
|
|
142
|
+
meta: { ui: { label: "Theme", order: 12, collapsedByDefault: true } },
|
|
143
|
+
fields: { slug: (0, alpine_anim_1.fStr)("Producer slug", "Producer template to seed tokens from (e.g. \"@m0saic/theming/v1\").", "preset palette (no producer)"), preset: (0, alpine_anim_1.fStr)("Preset", "Producer preset/variant (light | dark | high-contrast; producer-defined).", "producer default"), namespace: (0, alpine_anim_1.fStr)("Namespace", "Upstream alias to read tokens from. Default \"theme\".", "theme"), forceFetch: (0, alpine_anim_1.fBool)("Force fetch", "Re-seed via the slug even if the namespace is populated.") },
|
|
144
|
+
},
|
|
145
|
+
debugLayout: { type: "boolean", required: false, description: "Dev-only layout contract view: renders the contract wireframe instead of the board — cells GREEN with the measured rule when all equal-size, offenders RED when not. Deterministic false default; production never sets it.", meta: { ui: { label: "Debug layout", order: 13 } } },
|
|
146
|
+
});
|
|
147
|
+
exports.AlpineHeatmapV2 = {
|
|
148
|
+
id: (0, types_1.asTemplateId)("@m0saic/alpine/heatmap/v2"),
|
|
149
|
+
label: "Alpine Heatmap",
|
|
150
|
+
version: 2,
|
|
151
|
+
description: "Alpine heatmap — friendly mobile-marketing card: a rows×cols grid of rounded cells colored on a single-hue intensity scale, with row/column labels and a Less→More legend. v2 rebuilds the geometry as a RATIO layout (clean grid() cells; gaps applied as lattice-retargeted source insets, exact at every canvas), so it composes anywhere without the coprime-pixel precision blowup. Generalizes the GitHub contribution calendar.",
|
|
152
|
+
capabilities: { tier: "core" },
|
|
153
|
+
primitive: true,
|
|
154
|
+
tags: ["data-viz", "alpine", "heatmap", "matrix", "animated", "analysts", "developers", "activity", "calendar"],
|
|
155
|
+
outputHints: { format: { kind: "video", container: "mp4" }, width: 1280, height: 800, fps: 30, durationMs: 2000 },
|
|
156
|
+
propsSchema,
|
|
157
|
+
defaultProps: {
|
|
158
|
+
debugLayout: false,
|
|
159
|
+
theme: { forceFetch: false },
|
|
160
|
+
rows: [
|
|
161
|
+
{ label: "Mon", values: [0, 2, 1, 4, 3, 5, 2, 6] },
|
|
162
|
+
{ label: "Tue", values: [1, 3, 2, 5, 4, 6, 3, 7] },
|
|
163
|
+
{ label: "Wed", values: [2, 4, 3, 6, 5, 8, 4, 9] },
|
|
164
|
+
{ label: "Thu", values: [1, 2, 4, 5, 7, 6, 5, 8] },
|
|
165
|
+
{ label: "Fri", values: [3, 5, 6, 8, 9, 7, 8, 10] },
|
|
166
|
+
{ label: "Sat", values: [0, 1, 0, 2, 1, 3, 1, 2] },
|
|
167
|
+
{ label: "Sun", values: [0, 0, 1, 1, 0, 2, 0, 1] },
|
|
168
|
+
],
|
|
169
|
+
colLabels: ["W1", "W2", "W3", "W4", "W5", "W6", "W7", "W8"],
|
|
170
|
+
title: "CONTRIBUTIONS",
|
|
171
|
+
subtitle: "Commits by day",
|
|
172
|
+
preset: DEFAULT_PRESET,
|
|
173
|
+
levels: DEFAULT_LEVELS,
|
|
174
|
+
showLegend: true,
|
|
175
|
+
showValues: false,
|
|
176
|
+
scale: { min: 0, cellRadius: 0.25 },
|
|
177
|
+
anim: DEFAULT_ANIM,
|
|
178
|
+
},
|
|
179
|
+
async render(props, ctx) {
|
|
180
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
181
|
+
const W = Math.max(1, Math.round(ctx.target.width));
|
|
182
|
+
const H = Math.max(1, Math.round(ctx.target.height));
|
|
183
|
+
// Keep each drawn row's ORIGINAL index into props.rows: the leaf bindings
|
|
184
|
+
// (Make's double-click edit of rows[r].label / rows[r].values[c]) must
|
|
185
|
+
// address the prop value, not the filtered / truncated draw order. A cell
|
|
186
|
+
// leaf exists only when the row's values are a real array — a CSV-string
|
|
187
|
+
// row has no per-cell leaf, so its cells stay unbound.
|
|
188
|
+
const rawRows = ((_a = props.rows) !== null && _a !== void 0 ? _a : [])
|
|
189
|
+
.map((r, srcIndex) => ({ label: typeof (r === null || r === void 0 ? void 0 : r.label) === "string" ? r.label : "", values: parseValues(r === null || r === void 0 ? void 0 : r.values), srcIndex, cellLeaves: Array.isArray(r === null || r === void 0 ? void 0 : r.values) }))
|
|
190
|
+
.filter((r) => r.values.length > 0)
|
|
191
|
+
.slice(0, MAX_ROWS);
|
|
192
|
+
if (rawRows.length === 0) {
|
|
193
|
+
return (0, template_utils_1.makeErrorMosaic)("rows[] must have at least one row with values", { title: `${this.id} props`, width: W, height: H });
|
|
194
|
+
}
|
|
195
|
+
const nCols = Math.min(MAX_COLS, Math.max(...rawRows.map((r) => r.values.length)));
|
|
196
|
+
const nRows = rawRows.length;
|
|
197
|
+
// Theming: the shared alpine theme (light default via the preset). A producer
|
|
198
|
+
// overrides card/scale tokens through `props.theme`; explicit color props still
|
|
199
|
+
// win. Unthemed → byte-identical to the sync `alpineTheme`.
|
|
200
|
+
const theme = await (0, alpine_theme_1.resolveAlpineTheme)((_b = props.preset) !== null && _b !== void 0 ? _b : DEFAULT_PRESET, ctx, props.theme);
|
|
201
|
+
const isDark = ((_c = props.preset) !== null && _c !== void 0 ? _c : DEFAULT_PRESET) === "dark";
|
|
202
|
+
const anim = { ...DEFAULT_ANIM, ...((_d = props.anim) !== null && _d !== void 0 ? _d : {}) };
|
|
203
|
+
const animate = !anim.reduceMotion;
|
|
204
|
+
const light = ((_e = anim.renderMode) !== null && _e !== void 0 ? _e : DEFAULT_RENDER_MODE) === "light";
|
|
205
|
+
const showLegend = (_f = props.showLegend) !== null && _f !== void 0 ? _f : true;
|
|
206
|
+
const showValues = (_g = props.showValues) !== null && _g !== void 0 ? _g : false;
|
|
207
|
+
const levels = Math.max(2, Math.min(9, Math.round((_h = props.levels) !== null && _h !== void 0 ? _h : DEFAULT_LEVELS)));
|
|
208
|
+
const scale = (_j = props.scale) !== null && _j !== void 0 ? _j : {};
|
|
209
|
+
const color = props.color && String(props.color).trim() && String(props.color).toLowerCase() !== "none" ? props.color : theme.primary;
|
|
210
|
+
const emptyColor = scale.emptyColor && String(scale.emptyColor).trim() && String(scale.emptyColor).toLowerCase() !== "none" ? scale.emptyColor : (isDark ? EMPTY_DARK : EMPTY_LIGHT);
|
|
211
|
+
const paleTint = mix(color, theme.card, 0.78); // bucket-1 (faintest non-empty)
|
|
212
|
+
const allVals = rawRows.flatMap((r) => r.values);
|
|
213
|
+
const dataMax = Math.max(...allVals);
|
|
214
|
+
const min = Number.isFinite(scale.min) ? scale.min : 0;
|
|
215
|
+
const max = Number.isFinite(scale.max) ? scale.max : Math.max(min + 1, dataMax);
|
|
216
|
+
// value → bucket 0..levels-1. Bucket 0 = empty (≤ min); 1..levels-1 = tints.
|
|
217
|
+
const bucketOf = (v) => {
|
|
218
|
+
if (v <= min)
|
|
219
|
+
return 0;
|
|
220
|
+
const frac = (v - min) / Math.max(1e-6, max - min);
|
|
221
|
+
return Math.max(1, Math.min(levels - 1, 1 + Math.floor(frac * (levels - 1) * 0.99999)));
|
|
222
|
+
};
|
|
223
|
+
const bucketColor = (b) => {
|
|
224
|
+
if (b <= 0)
|
|
225
|
+
return emptyColor;
|
|
226
|
+
if (levels <= 2)
|
|
227
|
+
return color;
|
|
228
|
+
return mix(paleTint, color, (b - 1) / (levels - 2));
|
|
229
|
+
};
|
|
230
|
+
const cellRadius = Math.max(0, Math.min(0.5, (_k = scale.cellRadius) !== null && _k !== void 0 ? _k : 0.25));
|
|
231
|
+
const card = (0, alpine_card_1.alpineCard)({ theme, W, H, title: props.title, subtitle: props.subtitle });
|
|
232
|
+
const cr = card.contentRect;
|
|
233
|
+
// ── Sub-band sizing inside the content rect ──
|
|
234
|
+
const hasColLabels = !!(props.colLabels && props.colLabels.some((s) => s && s.trim()));
|
|
235
|
+
const hasRowLabels = rawRows.some((r) => r.label && r.label.trim());
|
|
236
|
+
const labelFont = Math.max(10, Math.round(H * 0.022));
|
|
237
|
+
const legendFont = Math.max(9, Math.round(H * 0.02));
|
|
238
|
+
const colLabelBand = hasColLabels ? Math.round(labelFont * 1.7) : 0;
|
|
239
|
+
const legendBand = showLegend ? Math.round(legendFont * 2.2) : 0;
|
|
240
|
+
// The label cell is only 5/6 of the gutter (a [5,1] split reserves the
|
|
241
|
+
// last sixth as gap to the grid) — sized for the FULL gutter, labels past
|
|
242
|
+
// ~5 chars overran the drawable cell (28-char stress labels by ~28px; the
|
|
243
|
+
// text-fit tripwire's catch). Long labels get a ×6/5-compensated gutter;
|
|
244
|
+
// short ones keep the original math so defaults stay byte-identical (the
|
|
245
|
+
// grid's quantization lattice is sensitive to the gutter width).
|
|
246
|
+
const longestRowLabel = Math.max(0, ...rawRows.map((r) => { var _a; return ((_a = r.label) !== null && _a !== void 0 ? _a : "").length; }));
|
|
247
|
+
const rowLabelPx = longestRowLabel * labelFont * 0.62;
|
|
248
|
+
const rowLabelGutter = hasRowLabels
|
|
249
|
+
? (rowLabelPx > 3 * labelFont
|
|
250
|
+
? Math.round((rowLabelPx + labelFont * 0.5) * 6 / 5)
|
|
251
|
+
: Math.round(rowLabelPx + labelFont * 0.8))
|
|
252
|
+
: 0;
|
|
253
|
+
const gridW = cr.w - rowLabelGutter;
|
|
254
|
+
const gridH = cr.h - colLabelBand - legendBand;
|
|
255
|
+
// Square cells filling the grid area. The inter-cell gap rides as a per-cell
|
|
256
|
+
// SOURCE inset (lattice-retargeted after composition), NOT DSL gutters — so
|
|
257
|
+
// the cell matrix stays a clean gutterless `grid(rows×cols)` whose precision
|
|
258
|
+
// is the cell COUNT, not the canvas. The chrome (row/col labels, legend) is a
|
|
259
|
+
// plain RATIO layout. Together the whole template composes at any canvas —
|
|
260
|
+
// no coprime-pixel precision pin (the v2 rebuild of v1's absolute packing).
|
|
261
|
+
const cell = Math.max(SNAP_PX, snapGrid(Math.min(gridW / nCols, gridH / nRows)));
|
|
262
|
+
const gridPxW = nCols * cell;
|
|
263
|
+
const gridPxH = nRows * cell;
|
|
264
|
+
const gap = Math.max(SNAP_PX, snapGrid(cell * 0.14));
|
|
265
|
+
const LBx = Math.max(0, Math.round((gridW - gridPxW) / 2)); // letterbox → square cells
|
|
266
|
+
const LBy = Math.max(0, Math.round((gridH - gridPxH) / 2));
|
|
267
|
+
const clipSec = Math.max(0.1, ((_l = ctx.target.durationMs) !== null && _l !== void 0 ? _l : 2000) / 1000);
|
|
268
|
+
const introT = Math.max(0.1, Math.min(1, anim.introFrac) * clipSec);
|
|
269
|
+
const maxDiag = Math.max(1, nRows + nCols - 2);
|
|
270
|
+
const fadeDur = Math.max(0.08, introT * 0.35);
|
|
271
|
+
// Mode-aware per-cell reveal (staggered diagonal): premium = alpha fade (geq),
|
|
272
|
+
// light = enable-gate pop (no geq), reduceMotion = static.
|
|
273
|
+
const cellReveal = (startAtSec) => !animate ? {} : light ? { startAtSec, enable: `gte(t,${startAtSec.toFixed(3)})` } : { startAtSec, alpha: (0, template_utils_1.fadeInExpr)(startAtSec, fadeDur) };
|
|
274
|
+
// ── Cells: one colored tile per gutterless grid frame (row-major). The
|
|
275
|
+
// inter-cell gap is applied AFTER composition via lattice retargeting
|
|
276
|
+
// (see applyLatticeGapInsets below) — not here. ──
|
|
277
|
+
const gridM0 = String((0, dsl_stdlib_1.grid)({ rows: nRows, cols: nCols }).m0);
|
|
278
|
+
const cellSources = [];
|
|
279
|
+
const valueSources = [];
|
|
280
|
+
let hasValueText = false;
|
|
281
|
+
for (let r = 0; r < nRows; r++) {
|
|
282
|
+
const vals = rawRows[r].values;
|
|
283
|
+
const { srcIndex: ri, cellLeaves } = rawRows[r];
|
|
284
|
+
// One tile per cell — its color IS rows[ri].values[col], so the tile (and
|
|
285
|
+
// the optional in-cell value text) binds that leaf. A ragged row's padded
|
|
286
|
+
// empty cell keeps its leaf too (an ADD handle — Make pads the array).
|
|
287
|
+
const bindCell = (src, col) => cellLeaves ? (0, template_utils_1.bindPropPath)(src, "rows", [ri, "values", col], "number") : src;
|
|
288
|
+
for (let c = 0; c < nCols; c++) {
|
|
289
|
+
const v = c < vals.length ? vals[c] : min; // ragged rows → empty cell
|
|
290
|
+
const fill = bucketColor(bucketOf(v));
|
|
291
|
+
const startAtSec = animate ? (introT - fadeDur) * ((r + c) / maxDiag) : 0;
|
|
292
|
+
const rev = cellReveal(startAtSec);
|
|
293
|
+
const tile = (0, template_utils_1.makeColorTile)(fill, {
|
|
294
|
+
effects: { rounding: { cornerStyle: "rounded", borderRadius: cellRadius } },
|
|
295
|
+
...(Object.keys(rev).length ? { overlay: rev } : {}),
|
|
296
|
+
});
|
|
297
|
+
// "cell" tag = the layout contract's join key (equal-size relation —
|
|
298
|
+
// the lattice's core promise, checked over all rows×cols tiles).
|
|
299
|
+
tile.editor = { label: "cell" };
|
|
300
|
+
// An EMPTY cell (v ≤ min) is painted with `scale.emptyColor` LITERALLY
|
|
301
|
+
// (bucketColor(0) returns it unblended) → the tile takes that color as a
|
|
302
|
+
// SECOND entry beside its value leaf (Make opens value + color stacked; the
|
|
303
|
+
// value stays primary). Non-empty cells are computed tints of `color` →
|
|
304
|
+
// never a color handle.
|
|
305
|
+
if (bucketOf(v) === 0) {
|
|
306
|
+
(0, template_utils_1.bindProps)(tile, [
|
|
307
|
+
...(cellLeaves ? [{ propKey: "rows", path: [ri, "values", c], kind: "number" }] : []),
|
|
308
|
+
{ propKey: "scale.emptyColor" },
|
|
309
|
+
]);
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
bindCell(tile, c);
|
|
313
|
+
}
|
|
314
|
+
cellSources.push(tile);
|
|
315
|
+
// Value text (optional) rides a second grid overlaid on the cells.
|
|
316
|
+
if (showValues && v > min) {
|
|
317
|
+
hasValueText = true;
|
|
318
|
+
const txt = compactNum(v);
|
|
319
|
+
const vFont = Math.max(8, Math.round(cell * 0.34));
|
|
320
|
+
const tColor = onColor(fill, "#FFFFFF", theme.title);
|
|
321
|
+
const t = bindCell((0, alpine_card_1.tag)(cellText(txt, vFont, tColor, "center"), "cell-value"), c);
|
|
322
|
+
valueSources.push(!animate ? t : light ? (0, alpine_anim_1.revealGate)(t, startAtSec + fadeDur * 0.5) : (0, alpine_anim_1.revealFade)(t, startAtSec + fadeDur * 0.5, fadeDur));
|
|
323
|
+
}
|
|
324
|
+
else {
|
|
325
|
+
valueSources.push(cellText(" ", 8, "black@0", "center"));
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
const cellsNode = { m0: gridM0, sources: cellSources };
|
|
330
|
+
const gridBody = hasValueText ? (0, alpine_card_1.overlay)([cellsNode, { m0: gridM0, sources: valueSources }]) : cellsNode;
|
|
331
|
+
// ── Labels TRAVEL WITH the grid: the letterbox pads go OUTSIDE the
|
|
332
|
+
// [row-labels · grid] block and outside the [col-labels over grid] stack —
|
|
333
|
+
// pinning the rails to the content rect while the aspect-kept grid centers
|
|
334
|
+
// detached them by hundreds of px at extreme aspects (row labels ~750px
|
|
335
|
+
// left of their rows at 1920×480; col labels ~240px above at 720×1280). ──
|
|
336
|
+
const rowLabelCol = hasRowLabels
|
|
337
|
+
? (0, alpine_card_1.rowSplit)(rawRows.map((rr) => {
|
|
338
|
+
var _a, _b;
|
|
339
|
+
return ({
|
|
340
|
+
weight: 1,
|
|
341
|
+
// [label · pad] — right-aligned text needs breathing room before the cells.
|
|
342
|
+
node: ((_a = rr.label) !== null && _a !== void 0 ? _a : "").trim()
|
|
343
|
+
? (0, alpine_card_1.colSplit)([{ weight: 5, node: (0, alpine_card_1.paint)((0, template_utils_1.bindPropPath)((0, alpine_card_1.tag)(cellText((_b = rr.label) !== null && _b !== void 0 ? _b : "", labelFont, theme.label, "right"), "row-label"), "rows", [rr.srcIndex, "label"], "string")) }, { weight: 1, node: alpine_card_1.EMPTY }])
|
|
344
|
+
: alpine_card_1.EMPTY,
|
|
345
|
+
});
|
|
346
|
+
}))
|
|
347
|
+
: alpine_card_1.EMPTY;
|
|
348
|
+
const gridWithRail = (0, alpine_card_1.colSplit)([
|
|
349
|
+
...(LBx > 0 ? [{ weight: LBx, node: alpine_card_1.EMPTY }] : []),
|
|
350
|
+
...(hasRowLabels ? [{ weight: rowLabelGutter, node: rowLabelCol }] : []),
|
|
351
|
+
{ weight: gridPxW, node: gridBody },
|
|
352
|
+
...(cr.w - LBx - rowLabelGutter - gridPxW > 0 ? [{ weight: cr.w - LBx - rowLabelGutter - gridPxW, node: alpine_card_1.EMPTY }] : []),
|
|
353
|
+
]);
|
|
354
|
+
// ── Column labels: a band directly ABOVE the grid, sharing its x-offsets ──
|
|
355
|
+
const colLabels = (_m = props.colLabels) !== null && _m !== void 0 ? _m : [];
|
|
356
|
+
// Width-cap to the column pitch: uncapped, 12-char stress labels needed
|
|
357
|
+
// ~119px in ~101px columns (the text-fit tripwire's catch). Binds only
|
|
358
|
+
// when the longest label would overflow — defaults render byte-identical.
|
|
359
|
+
const longestCol = Math.max(1, ...colLabels.map((l) => (l !== null && l !== void 0 ? l : "").length));
|
|
360
|
+
const colLabelFont = Math.max(9, Math.min(labelFont, Math.floor((gridPxW / nCols) * 0.94 / (longestCol * 0.62))));
|
|
361
|
+
const colLabelBandNode = hasColLabels
|
|
362
|
+
? (0, alpine_card_1.colSplit)([
|
|
363
|
+
{ weight: rowLabelGutter + LBx, node: alpine_card_1.EMPTY },
|
|
364
|
+
{ weight: gridPxW, node: (0, alpine_card_1.colSplit)(Array.from({ length: nCols }, (_, c) => {
|
|
365
|
+
const lbl = colLabels[c];
|
|
366
|
+
// The label cell displays `colLabels[c]` — bound for Make's double-click edit.
|
|
367
|
+
return { weight: 1, node: lbl && lbl.trim() ? (0, alpine_card_1.paint)((0, template_utils_1.bindProp)((0, alpine_card_1.tag)(cellText(lbl, colLabelFont, theme.muted, "center"), "col-label"), "colLabels", c)) : alpine_card_1.EMPTY };
|
|
368
|
+
})) },
|
|
369
|
+
{ weight: Math.max(1, cr.w - rowLabelGutter - LBx - gridPxW), node: alpine_card_1.EMPTY },
|
|
370
|
+
])
|
|
371
|
+
: alpine_card_1.EMPTY;
|
|
372
|
+
// ── Legend: "Less" [swatch ×levels] "More", right-aligned in its band ──
|
|
373
|
+
let legendNode = alpine_card_1.EMPTY;
|
|
374
|
+
if (showLegend) {
|
|
375
|
+
const swatch = Math.max(SNAP_PX * 2, Math.round(legendFont * 1.1));
|
|
376
|
+
const sgap = Math.max(2, Math.round(swatch * 0.28));
|
|
377
|
+
const lessW = Math.max(1, Math.round(textBBoxWidth("Less", legendFont)));
|
|
378
|
+
const moreW = Math.max(1, Math.round(textBBoxWidth("More", legendFont)));
|
|
379
|
+
const swatchesW = levels * (swatch + sgap);
|
|
380
|
+
const stripW = lessW + sgap * 2 + swatchesW + sgap * 2 + moreW;
|
|
381
|
+
// One EQUAL band per swatch, gap carved INSIDE via a placement inset —
|
|
382
|
+
// the only construction that guarantees ≤1px spread (interleaved px
|
|
383
|
+
// weights in a strip dominated by the leading remainder band spread the
|
|
384
|
+
// little swatches up to 46%; q4 grain still left 25%).
|
|
385
|
+
const q = (px) => Math.max(1, Math.round(px / 4));
|
|
386
|
+
const bandPitch = swatch + sgap;
|
|
387
|
+
const swInsetX = sgap / (2 * bandPitch);
|
|
388
|
+
const swBands = [];
|
|
389
|
+
for (let b = 0; b < levels; b++) {
|
|
390
|
+
const sw = (0, template_utils_1.makeColorTile)(bucketColor(b), {
|
|
391
|
+
effects: { rounding: { cornerStyle: "rounded", borderRadius: cellRadius } },
|
|
392
|
+
placement: { inset: { x: swInsetX } },
|
|
393
|
+
});
|
|
394
|
+
sw.editor = { label: "legend-swatch" };
|
|
395
|
+
// Only the two swatches whose fill IS a prop bind: the first paints
|
|
396
|
+
// `scale.emptyColor`, the last the full-intensity `color` (the ONLY rect
|
|
397
|
+
// that shows the hue itself — the cells are computed tints). The tints
|
|
398
|
+
// between are derived → unbound.
|
|
399
|
+
if (b === 0)
|
|
400
|
+
(0, template_utils_1.bindProp)(sw, "scale.emptyColor");
|
|
401
|
+
else if (b === levels - 1)
|
|
402
|
+
(0, template_utils_1.bindProp)(sw, "color");
|
|
403
|
+
swBands.push({ weight: 1, node: (0, alpine_card_1.paint)(sw) });
|
|
404
|
+
}
|
|
405
|
+
const strip = (0, alpine_card_1.colSplit)([
|
|
406
|
+
{ weight: q(Math.max(1, cr.w - stripW)), node: alpine_card_1.EMPTY },
|
|
407
|
+
{ weight: q(lessW), node: (0, alpine_card_1.paint)((0, alpine_card_1.tag)(cellText("Less", legendFont, theme.muted, "left"), "legend-caption")) },
|
|
408
|
+
{ weight: q(sgap * 2), node: alpine_card_1.EMPTY },
|
|
409
|
+
{ weight: q(swatchesW), node: (0, alpine_card_1.colSplit)(swBands) },
|
|
410
|
+
{ weight: q(sgap * 2), node: alpine_card_1.EMPTY },
|
|
411
|
+
{ weight: q(moreW), node: (0, alpine_card_1.paint)((0, alpine_card_1.tag)(cellText("More", legendFont, theme.muted, "left"), "legend-caption")) },
|
|
412
|
+
]);
|
|
413
|
+
const vpad = Math.max(0, Math.round((legendBand - swatch) / 2));
|
|
414
|
+
legendNode = (0, alpine_card_1.rowSplit)([
|
|
415
|
+
{ weight: Math.max(1, vpad), node: alpine_card_1.EMPTY },
|
|
416
|
+
{ weight: swatch, node: strip },
|
|
417
|
+
{ weight: Math.max(1, legendBand - swatch - vpad), node: alpine_card_1.EMPTY },
|
|
418
|
+
]);
|
|
419
|
+
}
|
|
420
|
+
// ── Content stack: vertical letterbox OUTSIDE the [col-labels · grid]
|
|
421
|
+
// unit so the label band hugs the grid top; legend stays pinned bottom. ──
|
|
422
|
+
const bottomPad = Math.max(0, cr.h - legendBand - LBy - colLabelBand - gridPxH);
|
|
423
|
+
const contentBands = [];
|
|
424
|
+
if (LBy > 0)
|
|
425
|
+
contentBands.push({ weight: LBy, node: alpine_card_1.EMPTY });
|
|
426
|
+
if (colLabelBand > 0)
|
|
427
|
+
contentBands.push({ weight: colLabelBand, node: colLabelBandNode });
|
|
428
|
+
contentBands.push({ weight: gridPxH, node: gridWithRail });
|
|
429
|
+
if (bottomPad > 0)
|
|
430
|
+
contentBands.push({ weight: bottomPad, node: alpine_card_1.EMPTY });
|
|
431
|
+
if (legendBand > 0)
|
|
432
|
+
contentBands.push({ weight: legendBand, node: legendNode });
|
|
433
|
+
const root = card.compose((0, alpine_card_1.rowSplit)(contentBands));
|
|
434
|
+
// Exact inter-cell gaps, applied against the TRUTH: parse the composed m0
|
|
435
|
+
// at the render canvas and retarget the raw cell rects onto an authored
|
|
436
|
+
// lattice (see the helper doc).
|
|
437
|
+
applyLatticeGapInsets({
|
|
438
|
+
root,
|
|
439
|
+
cellSources,
|
|
440
|
+
valueSources: hasValueText ? valueSources : null,
|
|
441
|
+
nRows,
|
|
442
|
+
nCols,
|
|
443
|
+
gapPx: gap,
|
|
444
|
+
W,
|
|
445
|
+
H,
|
|
446
|
+
});
|
|
447
|
+
const doc = {
|
|
448
|
+
kind: "mosaic_document",
|
|
449
|
+
version: 1,
|
|
450
|
+
assets: {},
|
|
451
|
+
m0: root.m0,
|
|
452
|
+
sources: root.sources,
|
|
453
|
+
backgroundColor: card.backgroundColor,
|
|
454
|
+
fps: ctx.target.fps,
|
|
455
|
+
durationMs: ctx.target.durationMs,
|
|
456
|
+
};
|
|
457
|
+
// Dev tripwire: the lattice's core promise — every cell paints the same
|
|
458
|
+
// size (all rows×cols tiles), legend swatches too. Falsy debugLayout
|
|
459
|
+
// returns the doc untouched at zero cost.
|
|
460
|
+
return Promise.resolve((0, template_utils_1.withLayoutContract)(doc, ctx, {
|
|
461
|
+
templateId: "@m0saic/alpine/heatmap/v2",
|
|
462
|
+
relations: [
|
|
463
|
+
...(nRows * nCols >= 2 ? [{ label: "cell", equal: "size", tolerance: 0.02, tolerancePx: 1 }] : []),
|
|
464
|
+
...(showLegend ? [{ label: "legend-swatch", equal: "size", tolerance: 0.02, tolerancePx: 1 }] : []),
|
|
465
|
+
],
|
|
466
|
+
// Text-fit tripwires (0.62em = the template's own textBBoxWidth model;
|
|
467
|
+
// padPx 0 where the template already bakes its own slack into the box).
|
|
468
|
+
constraints: [
|
|
469
|
+
...card.constraints,
|
|
470
|
+
// hasValueText, not showValues: flat data (every v == min) paints no
|
|
471
|
+
// value text at all — showValues alone would raise missing-label.
|
|
472
|
+
...(hasValueText ? [{ label: "cell-value", textFits: { charWidthEm: 0.62, padPx: 0 } }] : []),
|
|
473
|
+
...(hasRowLabels ? [{ label: "row-label", textFits: { charWidthEm: 0.62, padPx: 0 } }] : []),
|
|
474
|
+
...(hasColLabels ? [{ label: "col-label", textFits: { charWidthEm: 0.62, padPx: 0 } }] : []),
|
|
475
|
+
...(showLegend ? [{ label: "legend-caption", textFits: { charWidthEm: 0.62, padPx: 0 } }] : []),
|
|
476
|
+
],
|
|
477
|
+
debug: props.debugLayout === true,
|
|
478
|
+
}));
|
|
479
|
+
},
|
|
480
|
+
// Editor-only first-open cover — the mosaic-branding theme; hero = the
|
|
481
|
+
// template's own static default render, INLINED flat (gate-15/21 keeper).
|
|
482
|
+
async renderCover(_props, ctx) {
|
|
483
|
+
const heroBox = (0, onboarding_cover_1.brandedCoverHeroBox)(ctx, "band");
|
|
484
|
+
const heroCtx = {
|
|
485
|
+
...ctx,
|
|
486
|
+
target: { ...ctx.target, width: heroBox.width, height: heroBox.height },
|
|
487
|
+
output: { ...ctx.output, width: heroBox.width, height: heroBox.height },
|
|
488
|
+
};
|
|
489
|
+
const hero = (await exports.AlpineHeatmapV2.render({
|
|
490
|
+
...exports.AlpineHeatmapV2.defaultProps,
|
|
491
|
+
anim: { ...DEFAULT_ANIM, renderMode: "light", reduceMotion: true },
|
|
492
|
+
}, heroCtx));
|
|
493
|
+
return (0, onboarding_cover_1.buildBrandedCover)({
|
|
494
|
+
ctx,
|
|
495
|
+
// Band variant (founder ruling 08-30): basic viz needs no
|
|
496
|
+
// explanation — hero full-bleed + brand band, nothing else.
|
|
497
|
+
variant: "band",
|
|
498
|
+
copy: {
|
|
499
|
+
productName: "Heatmap",
|
|
500
|
+
title: "A heatmap.",
|
|
501
|
+
},
|
|
502
|
+
hero: (theme) => (0, onboarding_cover_1.onboardingFrame)((0, onboarding_cover_1.inlineHeroDoc)(hero), theme.borderStrong),
|
|
503
|
+
heroAssets: hero.assets,
|
|
504
|
+
children: hero.children,
|
|
505
|
+
});
|
|
506
|
+
},
|
|
507
|
+
};
|
|
508
|
+
function textBBoxWidth(text, font) {
|
|
509
|
+
return Math.max(font, text.length * font * 0.62 + font * 0.5);
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* Exact inter-cell gaps via lattice retargeting (`latticeCellInset` — the
|
|
513
|
+
* successor of the deprecated `gridCellInset`, whose ideal-cell fractions
|
|
514
|
+
* wobbled ±1px against the quantized cells).
|
|
515
|
+
*
|
|
516
|
+
* The cell matrix reaches the pixels through THREE quantization layers — the
|
|
517
|
+
* card's basis-capped ratio splits, the letterbox bands, and the engine's own
|
|
518
|
+
* split rounding — so no up-front pixel math can know the real cell rects.
|
|
519
|
+
* Instead: parse the COMPOSED m0 at the render canvas (the collage-solver
|
|
520
|
+
* move), take each cell's RAW rect as truth, and retarget all of them onto an
|
|
521
|
+
* authored integer lattice spanning the grid's own raw region — equal cells,
|
|
522
|
+
* gaps of EXACTLY `gapPx` between every adjacent pair, full-bleed edges. Each
|
|
523
|
+
* cell tile gets a half-pixel-centered `placement.inset` recovering its
|
|
524
|
+
* target; the value texts ride the same inset so they center on the painted
|
|
525
|
+
* cell, not the raw one.
|
|
526
|
+
*
|
|
527
|
+
* Degrades to a gapless grid when the region can't fit the lattice (sub-1px
|
|
528
|
+
* units — canvases where the gap would be unreadable anyway) or when the
|
|
529
|
+
* frame↔source binding doesn't line up (defensive; never kills the render).
|
|
530
|
+
*/
|
|
531
|
+
function applyLatticeGapInsets(args) {
|
|
532
|
+
const { root, cellSources, valueSources, nRows, nCols, gapPx, W, H } = args;
|
|
533
|
+
if (gapPx <= 0 || cellSources.length === 0)
|
|
534
|
+
return;
|
|
535
|
+
const N = nRows * nCols;
|
|
536
|
+
try {
|
|
537
|
+
const iCells = root.sources.indexOf(cellSources[0]);
|
|
538
|
+
if (iCells < 0 || root.sources[iCells + N - 1] !== cellSources[N - 1])
|
|
539
|
+
return;
|
|
540
|
+
const frames = (0, dsl_1.parseM0StringToRenderFrames)(root.m0, W, H);
|
|
541
|
+
const byLogical = [];
|
|
542
|
+
for (const f of frames)
|
|
543
|
+
byLogical[f.logicalIndex] = f;
|
|
544
|
+
const raws = [];
|
|
545
|
+
for (let k = 0; k < N; k++) {
|
|
546
|
+
const f = byLogical[iCells + k];
|
|
547
|
+
if (!f || f.width < 1 || f.height < 1)
|
|
548
|
+
return;
|
|
549
|
+
raws.push({ x: f.x, y: f.y, w: f.width, h: f.height });
|
|
550
|
+
}
|
|
551
|
+
// The grid's own raw region — the lattice spans exactly this box.
|
|
552
|
+
const minX = Math.min(...raws.map((r) => r.x));
|
|
553
|
+
const minY = Math.min(...raws.map((r) => r.y));
|
|
554
|
+
const maxX = Math.max(...raws.map((r) => r.x + r.w));
|
|
555
|
+
const maxY = Math.max(...raws.map((r) => r.y + r.h));
|
|
556
|
+
const lat = (0, template_utils_1.latticeCellInset)({
|
|
557
|
+
cols: nCols,
|
|
558
|
+
rows: nRows,
|
|
559
|
+
canvasW: maxX - minX,
|
|
560
|
+
canvasH: maxY - minY,
|
|
561
|
+
gutterXPx: gapPx,
|
|
562
|
+
gutterYPx: gapPx,
|
|
563
|
+
marginPx: 0,
|
|
564
|
+
cells: raws.map((r, k) => ({
|
|
565
|
+
unit: { c0: k % nCols, r0: Math.floor(k / nCols), cs: 1, rs: 1 },
|
|
566
|
+
raw: { x: r.x - minX, y: r.y - minY, w: r.w, h: r.h },
|
|
567
|
+
})),
|
|
568
|
+
});
|
|
569
|
+
for (let k = 0; k < N; k++) {
|
|
570
|
+
const box = lat.insetAt(k);
|
|
571
|
+
if (!box)
|
|
572
|
+
continue;
|
|
573
|
+
cellSources[k].placement = { inset: box };
|
|
574
|
+
if (valueSources)
|
|
575
|
+
valueSources[k].placement = { inset: box };
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
catch {
|
|
579
|
+
// Degenerate lattice (tiny canvas) — render gapless rather than dying.
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
(0, template_utils_1.registerTemplate)(exports.AlpineHeatmapV2);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AlpineHeatmapV2 } from "./heatmap";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AlpineHeatmapV2 = void 0;
|
|
4
|
+
var heatmap_1 = require("./heatmap");
|
|
5
|
+
Object.defineProperty(exports, "AlpineHeatmapV2", { enumerable: true, get: function () { return heatmap_1.AlpineHeatmapV2; } });
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from "./bar-graph/v1";
|
|
2
|
+
export * from "./donut/v1";
|
|
3
|
+
export * from "./donut/v2";
|
|
4
|
+
export * from "./donut/v3";
|
|
5
|
+
export * from "./line-chart/v1";
|
|
6
|
+
export * from "./line-chart/v2";
|
|
7
|
+
export * from "./kpi-card/v1";
|
|
8
|
+
export * from "./kpi-card/v2";
|
|
9
|
+
export * from "./stat-card/v1";
|
|
10
|
+
export * from "./contributor-table/v1";
|
|
11
|
+
export * from "./commit-feed/v1";
|
|
12
|
+
export * from "./commit-feed/v2";
|
|
13
|
+
export * from "./progress-card/v1";
|
|
14
|
+
export * from "./leaderboard/v1";
|
|
15
|
+
export * from "./heatmap/v1";
|
|
16
|
+
export * from "./heatmap/v2";
|
|
17
|
+
export * from "./timeline/v1";
|
|
18
|
+
export * from "./timeline/v2";
|
|
19
|
+
export * from "./treemap/v1";
|
|
20
|
+
export * from "./treemap/v2";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* Alpine — friendly mobile-marketing data-viz pack (standalone brand flavor). */
|
|
18
|
+
__exportStar(require("./bar-graph/v1"), exports);
|
|
19
|
+
__exportStar(require("./donut/v1"), exports);
|
|
20
|
+
__exportStar(require("./donut/v2"), exports);
|
|
21
|
+
__exportStar(require("./donut/v3"), exports);
|
|
22
|
+
__exportStar(require("./line-chart/v1"), exports);
|
|
23
|
+
__exportStar(require("./line-chart/v2"), exports);
|
|
24
|
+
__exportStar(require("./kpi-card/v1"), exports);
|
|
25
|
+
__exportStar(require("./kpi-card/v2"), exports);
|
|
26
|
+
__exportStar(require("./stat-card/v1"), exports);
|
|
27
|
+
__exportStar(require("./contributor-table/v1"), exports);
|
|
28
|
+
__exportStar(require("./commit-feed/v1"), exports);
|
|
29
|
+
__exportStar(require("./commit-feed/v2"), exports);
|
|
30
|
+
__exportStar(require("./progress-card/v1"), exports);
|
|
31
|
+
__exportStar(require("./leaderboard/v1"), exports);
|
|
32
|
+
__exportStar(require("./heatmap/v1"), exports);
|
|
33
|
+
__exportStar(require("./heatmap/v2"), exports);
|
|
34
|
+
__exportStar(require("./timeline/v1"), exports);
|
|
35
|
+
__exportStar(require("./timeline/v2"), exports);
|
|
36
|
+
__exportStar(require("./treemap/v1"), exports);
|
|
37
|
+
__exportStar(require("./treemap/v2"), exports);
|