@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,434 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AlpineLineChartV2 = 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 geometry_1 = require("../../../charts/line-chart/v1/geometry");
|
|
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_CURVE = "smooth";
|
|
14
|
+
const DEFAULT_GRID = { show: true, count: 4 };
|
|
15
|
+
const DEFAULT_AREA = { show: true, opacity: 0.22 };
|
|
16
|
+
const DEFAULT_POINTS = { show: true };
|
|
17
|
+
const DEFAULT_ANIM = { introFrac: 0.7, ease: "easeOut", reduceMotion: false };
|
|
18
|
+
function niceAxis(min, max, targetTicks) {
|
|
19
|
+
if (max === min) {
|
|
20
|
+
const pad = Math.abs(min) > 0 ? Math.abs(min) * 0.1 : 1;
|
|
21
|
+
return { min: min - pad, max: max + pad, step: pad, ticks: [min - pad, min, max + pad] };
|
|
22
|
+
}
|
|
23
|
+
const range = Math.abs(max - min);
|
|
24
|
+
const rawStep = range / Math.max(1, targetTicks - 1);
|
|
25
|
+
const step = !Number.isFinite(rawStep) || rawStep <= 0 ? 1 : (0, dsl_stdlib_1.niceNum)(rawStep, [1, 2, 2.5, 5]);
|
|
26
|
+
const niceMin = Math.floor(min / step) * step;
|
|
27
|
+
const niceMax = Math.ceil(max / step) * step;
|
|
28
|
+
const ticks = [];
|
|
29
|
+
const eps = step * 1e-6;
|
|
30
|
+
for (let v = niceMin; v <= niceMax + eps; v += step)
|
|
31
|
+
ticks.push(Number(v.toFixed(6)));
|
|
32
|
+
return { min: niceMin, max: niceMax, step, ticks };
|
|
33
|
+
}
|
|
34
|
+
function formatCompact(n) {
|
|
35
|
+
const abs = Math.abs(n);
|
|
36
|
+
const sign = n < 0 ? "-" : "";
|
|
37
|
+
const trim = (s) => s.replace(/\.0+$/, "");
|
|
38
|
+
if (abs >= 1e9)
|
|
39
|
+
return sign + trim((abs / 1e9).toFixed(1)) + "B";
|
|
40
|
+
if (abs >= 1e6)
|
|
41
|
+
return sign + trim((abs / 1e6).toFixed(1)) + "M";
|
|
42
|
+
if (abs >= 1e3)
|
|
43
|
+
return sign + trim((abs / 1e3).toFixed(1)) + "K";
|
|
44
|
+
if (abs >= 100)
|
|
45
|
+
return sign + Math.round(abs).toString();
|
|
46
|
+
return sign + trim(abs.toFixed(abs < 10 ? 1 : 0));
|
|
47
|
+
}
|
|
48
|
+
const r2 = (v) => Math.round(v * 100) / 100;
|
|
49
|
+
/** A rectangle subpath in local coords (for gridlines / axis / thin rules). */
|
|
50
|
+
function rectLocal(x, y, w, h) {
|
|
51
|
+
return `M ${r2(x)} ${r2(y)} L ${r2(x + w)} ${r2(y)} L ${r2(x + w)} ${r2(y + h)} L ${r2(x)} ${r2(y + h)} Z`;
|
|
52
|
+
}
|
|
53
|
+
/** A circle as a many-sided polygon (survives temporal overlays; SVG arcs don't). */
|
|
54
|
+
function circlePolyLocal(cx, cy, rr, sides = 28) {
|
|
55
|
+
let d = "";
|
|
56
|
+
for (let k = 0; k < sides; k++) {
|
|
57
|
+
const a = (k / sides) * Math.PI * 2;
|
|
58
|
+
d += `${k === 0 ? "M" : "L"} ${r2(cx + Math.cos(a) * rr)} ${r2(cy + Math.sin(a) * rr)} `;
|
|
59
|
+
}
|
|
60
|
+
return d + "Z";
|
|
61
|
+
}
|
|
62
|
+
// ---------------------------------------------------------------------------
|
|
63
|
+
// Template
|
|
64
|
+
// ---------------------------------------------------------------------------
|
|
65
|
+
const propsSchema = (0, template_utils_1.definePropsSchema)({
|
|
66
|
+
values: { type: "number[]", required: true, description: "Numeric series driving the line (left→right).", meta: { constraints: { minItems: 1 }, control: { flavor: "numberList" }, ui: { label: "Values", order: 1 } } },
|
|
67
|
+
labels: { type: "string[]", required: false, description: "Category labels (index-aligned to values) along the x-axis.", meta: { ui: { label: "Category Labels", order: 2, primary: true } } },
|
|
68
|
+
title: { type: "string", required: false, description: "Card title.", meta: { control: { placeholder: "e.g., LINE CHART" }, ui: { label: "Title", order: 3 } } },
|
|
69
|
+
subtitle: { type: "string", required: false, description: "Card subtitle.", meta: { control: { placeholder: "e.g., Monthly Active Users" }, ui: { label: "Subtitle", order: 4 } } },
|
|
70
|
+
curve: { type: "string", required: false, description: "Interpolation between points.", meta: { constraints: { oneOf: ["smooth", "linear", "stepped"] }, ui: { label: "Curve", order: 5 } } },
|
|
71
|
+
preset: { type: "string", required: false, description: "Alpine theme variant.", meta: { constraints: { oneOf: ["light", "dark"] }, ui: { label: "Preset", order: 6 } } },
|
|
72
|
+
lineColor: { type: "string", required: false, description: "Line + marker color. Defaults to the resolved theme primary.", meta: { constraints: { isColor: true }, control: { placeholder: "theme primary", colorPicker: true, defaultColor: "#2563EB" }, ui: { label: "Line Color", order: 7 } } },
|
|
73
|
+
grid: {
|
|
74
|
+
type: "group", required: false, description: "Gridlines + value ticks behind the line.",
|
|
75
|
+
meta: { ui: { label: "Grid", order: 8, collapsedByDefault: true } },
|
|
76
|
+
fields: { show: (0, alpine_anim_1.fBool)("Show", "Draw horizontal gridlines + value ticks."), count: (0, alpine_anim_1.fNum)("Tick count", "Number of horizontal gridlines/ticks.", { flavor: "slider", step: 1 }, { min: 2, max: 8 }) },
|
|
77
|
+
},
|
|
78
|
+
area: {
|
|
79
|
+
type: "group", required: false, description: "Soft area fill under the line.",
|
|
80
|
+
meta: { ui: { label: "Area", order: 9, collapsedByDefault: true } },
|
|
81
|
+
fields: { show: (0, alpine_anim_1.fBool)("Show", "Fill under the line."), opacity: (0, alpine_anim_1.fFrac)("Opacity", "Area fill opacity (0..1).") },
|
|
82
|
+
},
|
|
83
|
+
points: {
|
|
84
|
+
type: "group", required: false, description: "Point markers at each data vertex.",
|
|
85
|
+
meta: { ui: { label: "Points", order: 10, collapsedByDefault: true } },
|
|
86
|
+
fields: { show: (0, alpine_anim_1.fBool)("Show", "Draw a dot at each data vertex.") },
|
|
87
|
+
},
|
|
88
|
+
showTicks: { type: "boolean", required: false, description: "Small vertical ticks on the x-axis at each labeled data point (classic chart look). Default true.", meta: { ui: { label: "Axis ticks", order: 10 } } },
|
|
89
|
+
domain: {
|
|
90
|
+
type: "group", required: false, description: "Value-axis domain overrides — leave unset to auto-fit to nice round numbers.",
|
|
91
|
+
meta: { ui: { label: "Domain", order: 11, collapsedByDefault: true } },
|
|
92
|
+
fields: {
|
|
93
|
+
minValue: (0, alpine_anim_1.fNum)("Min Value", "Explicit domain minimum. Auto-derived when unset.", { placeholder: "data min" }),
|
|
94
|
+
maxValue: (0, alpine_anim_1.fNum)("Max Value", "Explicit domain maximum. Auto-derived when unset.", { placeholder: "data max" }),
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
anim: {
|
|
98
|
+
type: "group", required: false, description: "Left→right draw-on intro.",
|
|
99
|
+
meta: { ui: { label: "Animation", order: 12, collapsedByDefault: true } },
|
|
100
|
+
fields: { reduceMotion: alpine_anim_1.ALPINE_ANIM_FIELDS.reduceMotion, introFrac: alpine_anim_1.ALPINE_ANIM_FIELDS.introFrac, ease: (0, alpine_anim_1.fEnum)("Easing", ["easeOut", "smoothstep", "easeInOut", "linear"], "Intro draw-on easing curve.") },
|
|
101
|
+
},
|
|
102
|
+
theme: {
|
|
103
|
+
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.",
|
|
104
|
+
meta: { ui: { label: "Theme", order: 13, collapsedByDefault: true } },
|
|
105
|
+
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.") },
|
|
106
|
+
},
|
|
107
|
+
debugLayout: { type: "boolean", required: false, description: "Dev-only layout contract view: renders the contract wireframe instead of the chart — x-axis ticks GREEN when each sits on its data point's x, offenders RED. Deterministic false default; production never sets it.", meta: { ui: { label: "Debug layout", order: 13 } } },
|
|
108
|
+
});
|
|
109
|
+
exports.AlpineLineChartV2 = {
|
|
110
|
+
id: (0, types_1.asTemplateId)("@m0saic/alpine/line-chart/v2"),
|
|
111
|
+
label: "Alpine Line Chart",
|
|
112
|
+
version: 2,
|
|
113
|
+
description: "Alpine line/area chart — friendly mobile-marketing card: soft area fill, rounded line, point markers, value rail, left→right draw-on. Standalone Alpine brand flavor. v2 rebuilds the geometry as a ratio layout (plot marks are masks filling a ratio plot cell in plot-local coords) so it composes at any canvas without the absolute-placement precision blowup.",
|
|
114
|
+
capabilities: { tier: "core" },
|
|
115
|
+
primitive: true,
|
|
116
|
+
tags: ["data-viz", "alpine", "line-chart", "animated", "analysts", "developers", "trend", "dashboard"],
|
|
117
|
+
outputHints: { format: { kind: "video", container: "mp4" }, width: 1280, height: 800, fps: 30, durationMs: 2000 },
|
|
118
|
+
propsSchema,
|
|
119
|
+
defaultProps: {
|
|
120
|
+
showTicks: true,
|
|
121
|
+
debugLayout: false,
|
|
122
|
+
theme: { forceFetch: false },
|
|
123
|
+
values: [12, 19, 15, 25, 22, 30, 28, 36],
|
|
124
|
+
labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug"],
|
|
125
|
+
title: "LINE CHART",
|
|
126
|
+
subtitle: "Monthly Active Users",
|
|
127
|
+
curve: DEFAULT_CURVE,
|
|
128
|
+
preset: DEFAULT_PRESET,
|
|
129
|
+
grid: DEFAULT_GRID,
|
|
130
|
+
area: DEFAULT_AREA,
|
|
131
|
+
points: DEFAULT_POINTS,
|
|
132
|
+
anim: DEFAULT_ANIM,
|
|
133
|
+
},
|
|
134
|
+
async render(props, ctx) {
|
|
135
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
136
|
+
const W = Math.max(1, Math.round(ctx.target.width));
|
|
137
|
+
const H = Math.max(1, Math.round(ctx.target.height));
|
|
138
|
+
const values = ((_a = props.values) !== null && _a !== void 0 ? _a : []).filter((v) => Number.isFinite(v));
|
|
139
|
+
if (values.length === 0) {
|
|
140
|
+
return (0, template_utils_1.makeErrorMosaic)("values[] must be non-empty", { title: `${this.id} props`, width: W, height: H });
|
|
141
|
+
}
|
|
142
|
+
const theme = await (0, alpine_theme_1.resolveAlpineTheme)((_b = props.preset) !== null && _b !== void 0 ? _b : DEFAULT_PRESET, ctx, props.theme);
|
|
143
|
+
const lineColor = (0, alpine_card_1.resolveColor)(props.lineColor, theme.primary);
|
|
144
|
+
const curve = (_c = props.curve) !== null && _c !== void 0 ? _c : DEFAULT_CURVE;
|
|
145
|
+
const grid = { ...DEFAULT_GRID, ...((_d = props.grid) !== null && _d !== void 0 ? _d : {}) };
|
|
146
|
+
const area = { ...DEFAULT_AREA, ...((_e = props.area) !== null && _e !== void 0 ? _e : {}) };
|
|
147
|
+
const points = { ...DEFAULT_POINTS, ...((_f = props.points) !== null && _f !== void 0 ? _f : {}) };
|
|
148
|
+
const anim = { ...DEFAULT_ANIM, ...((_g = props.anim) !== null && _g !== void 0 ? _g : {}) };
|
|
149
|
+
const labels = (_h = props.labels) !== null && _h !== void 0 ? _h : [];
|
|
150
|
+
const hasLabels = labels.length > 0;
|
|
151
|
+
const N = values.length;
|
|
152
|
+
// ── Domain (nice axis unless both bounds explicit) ──
|
|
153
|
+
const domain = (_j = props.domain) !== null && _j !== void 0 ? _j : {};
|
|
154
|
+
const dataMin = Math.min(...values);
|
|
155
|
+
const dataMax = Math.max(...values);
|
|
156
|
+
const explicit = domain.minValue != null && domain.maxValue != null;
|
|
157
|
+
let minValue, maxValue, gridCount;
|
|
158
|
+
if (explicit) {
|
|
159
|
+
minValue = domain.minValue;
|
|
160
|
+
maxValue = domain.maxValue;
|
|
161
|
+
gridCount = Math.max(1, grid.count);
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
const nice = niceAxis((_k = domain.minValue) !== null && _k !== void 0 ? _k : dataMin, (_l = domain.maxValue) !== null && _l !== void 0 ? _l : dataMax, grid.count + 1);
|
|
165
|
+
minValue = nice.min;
|
|
166
|
+
maxValue = nice.max;
|
|
167
|
+
gridCount = Math.max(1, nice.ticks.length - 1);
|
|
168
|
+
}
|
|
169
|
+
const denom = maxValue - minValue || 1;
|
|
170
|
+
// ── Card chrome → content rect ──
|
|
171
|
+
const card = (0, alpine_card_1.alpineCard)({ theme, W, H, title: props.title, subtitle: props.subtitle });
|
|
172
|
+
const cr = card.contentRect;
|
|
173
|
+
const tickFont = Math.max(10, Math.round(H * 0.019));
|
|
174
|
+
const catFont = Math.max(10, Math.round(H * 0.02));
|
|
175
|
+
const hasTicks = grid.show;
|
|
176
|
+
const tickRailWpx = hasTicks ? Math.max(Math.round(cr.w * 0.07), tickFont * 3) : Math.round(cr.w * 0.01);
|
|
177
|
+
const catBandHpx = hasLabels ? Math.round(catFont * 2) : 0;
|
|
178
|
+
// Mark sizing.
|
|
179
|
+
const strokeW = Math.max(2, Math.round(Math.min(cr.w, cr.h) * 0.009));
|
|
180
|
+
const markerR = Math.max(3, Math.round(strokeW * 1.5));
|
|
181
|
+
const haloR = markerR + Math.max(1, Math.round(strokeW * 0.6));
|
|
182
|
+
const topPadPx = Math.max(Math.round(H * 0.03), (points.show ? haloR : strokeW) + 3);
|
|
183
|
+
// ── Plot cell px dims (the ratio cell the marks fill; used for plot-local coords) ──
|
|
184
|
+
const plotW = Math.max(1, cr.w - tickRailWpx);
|
|
185
|
+
const showTicks = props.showTicks !== false;
|
|
186
|
+
const plotH = Math.max(1, cr.h - topPadPx - catBandHpx);
|
|
187
|
+
if (plotW < 24 || plotH < 24) {
|
|
188
|
+
return Promise.resolve((0, template_utils_1.makeErrorMosaic)("plot area too small", { title: `${this.id}`, width: W, height: H }));
|
|
189
|
+
}
|
|
190
|
+
// ── Data → PLOT-LOCAL px points. y inset by the marker halo so end markers stay
|
|
191
|
+
// inside the plot-cell mask bounds; x inset so first/last markers don't clip. ──
|
|
192
|
+
const marginY = points.show ? haloR + 1 : strokeW;
|
|
193
|
+
const xInset = Math.min((points.show ? haloR : strokeW) + 2, plotW * 0.45);
|
|
194
|
+
const xAt = (i) => (N === 1 ? plotW / 2 : xInset + (i / (N - 1)) * (plotW - 2 * xInset));
|
|
195
|
+
const yAt = (v) => marginY + (1 - Math.max(0, Math.min(1, (v - minValue) / denom))) * (plotH - 2 * marginY);
|
|
196
|
+
const pts = values.map((v, i) => ({ x: xAt(i), y: yAt(v) }));
|
|
197
|
+
const baselineY = yAt(minValue);
|
|
198
|
+
const { poly: rawPoly } = (0, geometry_1.curvePolyline)(pts, curve);
|
|
199
|
+
const poly = rawPoly.map((p) => ({ x: p.x, y: Math.max(marginY, Math.min(baselineY, p.y)) }));
|
|
200
|
+
const hasLine = poly.length >= 2;
|
|
201
|
+
const clipSec = Math.max(0.1, ((_m = ctx.target.durationMs) !== null && _m !== void 0 ? _m : 2000) / 1000);
|
|
202
|
+
const introSec = Math.max(0.1, Math.min(1, anim.introFrac) * clipSec);
|
|
203
|
+
const animate = !anim.reduceMotion;
|
|
204
|
+
// ── A plot-cell mask: fills the plot cell, path authored in plot-local coords ──
|
|
205
|
+
const bounds = { x: 0, y: 0, width: plotW, height: plotH };
|
|
206
|
+
const plotMask = (color, localPath, overlayObj) => (0, template_utils_1.makeColorTile)(color, { mask: { kind: "inline-mask", localPath, bounds }, ...(overlayObj ? { overlay: overlayObj } : {}) });
|
|
207
|
+
const gw = Math.max(1, Math.round(H * 0.0016));
|
|
208
|
+
const axisW = Math.max(1, Math.round(H * 0.0022));
|
|
209
|
+
const op = Math.max(0, Math.min(1, area.opacity));
|
|
210
|
+
// ── Plot overlay layers (all fill the plot cell; one shared coordinate system) ──
|
|
211
|
+
const plotLayers = [];
|
|
212
|
+
// Gridlines — one mask, all rows (at the tick y's).
|
|
213
|
+
if (grid.show && gridCount >= 1) {
|
|
214
|
+
const gys = Array.from({ length: gridCount + 1 }, (_, k) => yAt(minValue + (k / gridCount) * (maxValue - minValue)));
|
|
215
|
+
plotLayers.push((0, alpine_card_1.paint)(plotMask(theme.grid, gys.map((gy) => rectLocal(0, gy - gw / 2, plotW, gw)).join(" "), theme.gridAlpha < 1 ? { alpha: `${theme.gridAlpha}` } : undefined)));
|
|
216
|
+
}
|
|
217
|
+
// Axis baseline — one mask.
|
|
218
|
+
plotLayers.push((0, alpine_card_1.paint)(plotMask(theme.axis, rectLocal(0, baselineY - axisW / 2, plotW, axisW), theme.axisAlpha < 1 ? { alpha: `${theme.axisAlpha}` } : undefined)));
|
|
219
|
+
// Every mask painted with `lineColor` (area fill, line, marker dots) binds it —
|
|
220
|
+
// Make's color picker on double-click (1:N; the halos are card-colored, the
|
|
221
|
+
// grid / axis theme-colored → unbound). Values stay unbound: the marks are
|
|
222
|
+
// combined masks, no per-value rect.
|
|
223
|
+
// Area fill.
|
|
224
|
+
if (area.show && hasLine) {
|
|
225
|
+
plotLayers.push((0, alpine_card_1.paint)((0, template_utils_1.bindProp)(plotMask(lineColor, (0, geometry_1.areaPolygonPath)(poly, baselineY), { alpha: `${op}` }), "lineColor")));
|
|
226
|
+
}
|
|
227
|
+
// Line.
|
|
228
|
+
if (hasLine) {
|
|
229
|
+
plotLayers.push((0, alpine_card_1.paint)((0, template_utils_1.bindProp)(plotMask(lineColor, (0, geometry_1.polylineStrokePath)(poly, strokeW)), "lineColor")));
|
|
230
|
+
}
|
|
231
|
+
// Point markers — halos then dots (2 masks total, not 2 per point).
|
|
232
|
+
if (points.show && pts.length > 0) {
|
|
233
|
+
plotLayers.push((0, alpine_card_1.paint)(plotMask(theme.card, pts.map((p) => circlePolyLocal(p.x, p.y, haloR)).join(" "))));
|
|
234
|
+
plotLayers.push((0, alpine_card_1.paint)((0, template_utils_1.bindProp)(plotMask(lineColor, pts.map((p) => circlePolyLocal(p.x, p.y, markerR)).join(" ")), "lineColor")));
|
|
235
|
+
}
|
|
236
|
+
// Curtain — one card-colored tile that slides right off the plot (left→right reveal).
|
|
237
|
+
if (animate) {
|
|
238
|
+
const reveal = (0, template_utils_1.easingExpr)(anim.ease, `min(1,max(0,t/${introSec}))`);
|
|
239
|
+
plotLayers.push((0, alpine_card_1.paint)((0, template_utils_1.makeColorTile)(theme.card, { overlay: { xExpr: `(w)*(${reveal})` } })));
|
|
240
|
+
}
|
|
241
|
+
// Kept (decimated) label indices — computed early so the TICKS render at
|
|
242
|
+
// exactly the labeled positions (a tick per data point broke the flat
|
|
243
|
+
// tile-count invariant at high N, and served nothing: the ticks exist to
|
|
244
|
+
// anchor the LABELS to their points).
|
|
245
|
+
const keptIdx = [];
|
|
246
|
+
if (hasLabels) {
|
|
247
|
+
const baseSpacingK = N > 1 ? (plotW - 2 * xInset) / (N - 1) : plotW;
|
|
248
|
+
const maxLabelCharsK = labels.reduce((m, l) => (l ? Math.max(m, l.length) : m), 0);
|
|
249
|
+
const approxLabelWK = maxLabelCharsK * catFont * 0.72 + catFont; // 0.72em = CLI rasterizer width
|
|
250
|
+
const labelStepK = Math.max(1, Math.ceil((approxLabelWK + catFont * 0.5) / Math.max(1, baseSpacingK)));
|
|
251
|
+
for (let i = 0; i < N; i++)
|
|
252
|
+
if (i % labelStepK === 0 && labels[i])
|
|
253
|
+
keptIdx.push(i);
|
|
254
|
+
}
|
|
255
|
+
// ── X-axis ticks: slim VERTICAL strokes hanging from the axis line
|
|
256
|
+
// INSIDE the plot (the founder-ruled classic look; the earlier separate
|
|
257
|
+
// band floated as horizontal dashes). One REAL rect per LABELED point,
|
|
258
|
+
// authored at the serializer's 120 basis (emitted = intended); the tile
|
|
259
|
+
// slims to ~3px via a SYMMETRIC x inset, which cannot move its center —
|
|
260
|
+
// so the contract's span-frac lock measures the true position. ──
|
|
261
|
+
const TICK_BASIS = 120;
|
|
262
|
+
const tickCenterU = [];
|
|
263
|
+
const tickNodes = [];
|
|
264
|
+
if (showTicks && keptIdx.length >= 2) {
|
|
265
|
+
const tickHpx = Math.max(6, Math.round(H * 0.012));
|
|
266
|
+
const topU = Math.max(0, Math.min(TICK_BASIS - 2, Math.round(((baselineY + axisW / 2) / plotH) * TICK_BASIS)));
|
|
267
|
+
const tickHU = Math.max(2, Math.round((tickHpx / plotH) * TICK_BASIS));
|
|
268
|
+
const cellWpx = plotW / TICK_BASIS;
|
|
269
|
+
const slimInsetX = Math.max(0, Math.min(0.45, (1 - 3 / Math.max(3, cellWpx)) / 2));
|
|
270
|
+
for (const i of keptIdx) {
|
|
271
|
+
const leftU = Math.max(0, Math.min(TICK_BASIS - 1, Math.round((xAt(i) / plotW) * TICK_BASIS - 0.5)));
|
|
272
|
+
tickCenterU.push(leftU + 0.5);
|
|
273
|
+
const tickTile = (0, template_utils_1.makeColorTile)(theme.axis, {
|
|
274
|
+
overlay: { alpha: `${theme.axisAlpha}` },
|
|
275
|
+
...(slimInsetX > 0 ? { placement: { inset: { x: slimInsetX } } } : {}),
|
|
276
|
+
});
|
|
277
|
+
// "x-tick" tag = the layout contract's join key (span-frac position lock).
|
|
278
|
+
tickTile.editor = { label: "x-tick" };
|
|
279
|
+
const col = (0, alpine_card_1.colSplit)([
|
|
280
|
+
...(leftU > 0 ? [{ weight: leftU, node: alpine_card_1.EMPTY }] : []),
|
|
281
|
+
{ weight: 1, node: (0, alpine_card_1.paint)(tickTile) },
|
|
282
|
+
...(TICK_BASIS - 1 - leftU > 0 ? [{ weight: TICK_BASIS - 1 - leftU, node: alpine_card_1.EMPTY }] : []),
|
|
283
|
+
]);
|
|
284
|
+
tickNodes.push((0, alpine_card_1.rowSplit)([
|
|
285
|
+
...(topU > 0 ? [{ weight: topU, node: alpine_card_1.EMPTY }] : []),
|
|
286
|
+
{ weight: tickHU, node: col },
|
|
287
|
+
...(TICK_BASIS - topU - tickHU > 0 ? [{ weight: TICK_BASIS - topU - tickHU, node: alpine_card_1.EMPTY }] : []),
|
|
288
|
+
]));
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
for (const t of tickNodes)
|
|
292
|
+
plotLayers.push(t);
|
|
293
|
+
const plotCell = (0, alpine_card_1.overlay)(plotLayers);
|
|
294
|
+
// ── Value rail (y ticks): each label inset to the SAME plot fraction as its
|
|
295
|
+
// gridline, so ticks line up with the lines. ──
|
|
296
|
+
const railLabelH = Math.round(tickFont * 1.8);
|
|
297
|
+
const tickRail = hasTicks
|
|
298
|
+
? (0, alpine_card_1.overlay)(Array.from({ length: gridCount + 1 }, (_, k) => {
|
|
299
|
+
const tv = minValue + (k / gridCount) * (maxValue - minValue);
|
|
300
|
+
const cy = yAt(tv); // plot-local center (rail shares the plot cell's height)
|
|
301
|
+
const top = Math.max(0, Math.min(plotH - railLabelH, Math.round(cy - railLabelH / 2)));
|
|
302
|
+
return (0, alpine_card_1.insetNode)((0, alpine_card_1.paint)((0, alpine_card_1.tag)((0, alpine_card_1.textCell)(formatCompact(tv), tickFont, theme.muted, "right"), "y-tick-label")), top, Math.round(tickRailWpx * 0.16), plotH - top - railLabelH, 0, tickRailWpx, plotH);
|
|
303
|
+
}))
|
|
304
|
+
: alpine_card_1.EMPTY;
|
|
305
|
+
// ── Category band (x labels): decimate so kept labels never overlap; each inset
|
|
306
|
+
// to its point's plot fraction so labels sit under the markers. ──
|
|
307
|
+
let catBand = alpine_card_1.EMPTY;
|
|
308
|
+
if (hasLabels) {
|
|
309
|
+
const baseSpacing = N > 1 ? (plotW - 2 * xInset) / (N - 1) : plotW;
|
|
310
|
+
const maxLabelChars = labels.reduce((m, l) => (l ? Math.max(m, l.length) : m), 0);
|
|
311
|
+
const approxLabelW = maxLabelChars * catFont * 0.72 + catFont; // 0.72em = CLI rasterizer width
|
|
312
|
+
const labelStep = Math.max(1, Math.ceil((approxLabelW + catFont * 0.5) / Math.max(1, baseSpacing)));
|
|
313
|
+
// Cells span the KEPT pitch (labelStep × spacing), NOT the per-point
|
|
314
|
+
// spacing — the old cells passed the app's narrow rasterizer but the
|
|
315
|
+
// CLI's wider metrics clipped "W11"→"N11" at 40 points (gate-8
|
|
316
|
+
// founder catch: Make-vs-render diff).
|
|
317
|
+
const colW = Math.max(catFont * 2, Math.round(baseSpacing * labelStep));
|
|
318
|
+
const kept = [];
|
|
319
|
+
for (let i = 0; i < N; i++) {
|
|
320
|
+
if (i % labelStep !== 0 || !labels[i])
|
|
321
|
+
continue;
|
|
322
|
+
const cx = xAt(i); // plot-local (cat band shares the plot cell's width)
|
|
323
|
+
// Interior labels center ON their point. EDGE labels align INWARD
|
|
324
|
+
// (first left-aligned at the plot edge, last right-aligned) with a
|
|
325
|
+
// full-width cell — the classic chart treatment: an edge-shrunk cell
|
|
326
|
+
// kept the center on the point but left less room than the text
|
|
327
|
+
// needs (the text-fit contract caught 25px cells for 40px labels);
|
|
328
|
+
// the axis TICK carries the exact point anchor either way.
|
|
329
|
+
const cellW = colW;
|
|
330
|
+
const nearLeft = cx < cellW / 2;
|
|
331
|
+
const nearRight = cx > plotW - cellW / 2;
|
|
332
|
+
const left = nearLeft ? 0 : nearRight ? plotW - cellW : Math.max(0, Math.min(plotW - cellW, Math.round(cx - cellW / 2)));
|
|
333
|
+
const align = nearLeft ? "left" : nearRight ? "right" : "center";
|
|
334
|
+
const labelSrc = (0, alpine_card_1.textCell)(labels[i], catFont, theme.label, align);
|
|
335
|
+
// "x-label" tag = the layout contract's join key (text-fit lock).
|
|
336
|
+
labelSrc.editor = { label: "x-label" };
|
|
337
|
+
// The kept label IS labels[i] → bound at its ORIGINAL index (decimation
|
|
338
|
+
// skips indices, never renumbers them) so Make edits the right element.
|
|
339
|
+
kept.push((0, alpine_card_1.insetNode)((0, alpine_card_1.paint)((0, template_utils_1.bindProp)(labelSrc, "labels", i)), 0, plotW - left - cellW, 0, left, plotW, catBandHpx));
|
|
340
|
+
}
|
|
341
|
+
catBand = kept.length ? (0, alpine_card_1.overlay)(kept) : alpine_card_1.EMPTY;
|
|
342
|
+
}
|
|
343
|
+
// ── X-axis ticks: one REAL rect per data point, centered at xAt(i). The
|
|
344
|
+
// points themselves are mask-drawn (unmeasurable) — the ticks are the
|
|
345
|
+
// contract's measurable proxy for the whole x alignment. ──
|
|
346
|
+
// ── Assemble: [topPad] / [tickRail | plotCell] / [catRail-gap | catBand] ──
|
|
347
|
+
const wH = (px) => Math.max(1, Math.round((px / cr.h) * 100));
|
|
348
|
+
const bodyNode = hasTicks
|
|
349
|
+
? (0, alpine_card_1.colSplit)([
|
|
350
|
+
{ weight: Math.max(1, Math.round((tickRailWpx / cr.w) * 100)), node: tickRail },
|
|
351
|
+
{ weight: Math.max(1, 100 - Math.round((tickRailWpx / cr.w) * 100)), node: plotCell },
|
|
352
|
+
])
|
|
353
|
+
: plotCell;
|
|
354
|
+
const catRow = hasLabels
|
|
355
|
+
? (0, alpine_card_1.colSplit)([
|
|
356
|
+
{ weight: Math.max(1, Math.round((tickRailWpx / cr.w) * 100)), node: alpine_card_1.EMPTY },
|
|
357
|
+
{ weight: Math.max(1, 100 - Math.round((tickRailWpx / cr.w) * 100)), node: catBand },
|
|
358
|
+
])
|
|
359
|
+
: alpine_card_1.EMPTY;
|
|
360
|
+
const contentBands = [{ weight: wH(topPadPx), node: alpine_card_1.EMPTY }, { weight: wH(plotH), node: bodyNode }];
|
|
361
|
+
if (catBandHpx > 0)
|
|
362
|
+
contentBands.push({ weight: wH(catBandHpx), node: catRow });
|
|
363
|
+
const content = (0, alpine_card_1.rowSplit)(contentBands);
|
|
364
|
+
const root = card.compose(content);
|
|
365
|
+
const doc = {
|
|
366
|
+
kind: "mosaic_document",
|
|
367
|
+
version: 1,
|
|
368
|
+
assets: {},
|
|
369
|
+
m0: root.m0,
|
|
370
|
+
sources: root.sources,
|
|
371
|
+
backgroundColor: card.backgroundColor,
|
|
372
|
+
fps: ctx.target.fps,
|
|
373
|
+
durationMs: ctx.target.durationMs,
|
|
374
|
+
};
|
|
375
|
+
// Dev tripwire — the founder-ruled alignment guarantee: every x-tick sits
|
|
376
|
+
// on its data point's x. GROUP-RELATIVE (span fractions of the tick row
|
|
377
|
+
// itself): the ticks share their rail-offset weights with the plot cell,
|
|
378
|
+
// so the group's origin is structurally aligned with the dots; the only
|
|
379
|
+
// possible failure is a tick displaced WITHIN the band — exactly what the
|
|
380
|
+
// frac lock catches, with no canvas-space origin model to drift.
|
|
381
|
+
const expectedTickFracs = tickCenterU.length >= 2
|
|
382
|
+
? tickCenterU.map((u) => (u - tickCenterU[0]) / Math.max(1e-6, tickCenterU[tickCenterU.length - 1] - tickCenterU[0]))
|
|
383
|
+
: [];
|
|
384
|
+
return Promise.resolve((0, template_utils_1.withLayoutContract)(doc, ctx, {
|
|
385
|
+
templateId: "@m0saic/alpine/line-chart/v2",
|
|
386
|
+
relations: [],
|
|
387
|
+
// 0.06, not 0.02: with points/area OFF the contract's frames↔sources
|
|
388
|
+
// zip mis-pairs boxes by up to ~0.04 of span at small canvases (the
|
|
389
|
+
// measurement-channel candidate, the internal contract-frame-zip-misalignment
|
|
390
|
+
// notes). The class this guards — a tick a full
|
|
391
|
+
// spacing off its point — is ≥0.14 of span, still 2.3× the tolerance.
|
|
392
|
+
constraints: [
|
|
393
|
+
...(expectedTickFracs.length
|
|
394
|
+
? [{ label: "x-tick", xCentersFrac: expectedTickFracs, centerToleranceFrac: 0.06 }]
|
|
395
|
+
: []),
|
|
396
|
+
// Text-fit tripwires: a kept category label, rail value, or header
|
|
397
|
+
// that clips at the CLI's wider metrics reds the debug wireframe
|
|
398
|
+
// (the Make-passes-render-breaks class, caught statically).
|
|
399
|
+
...card.constraints,
|
|
400
|
+
...(hasLabels && keptIdx.length > 0 ? [{ label: "x-label", textFits: {} }] : []),
|
|
401
|
+
...(hasTicks ? [{ label: "y-tick-label", textFits: { charWidthEm: 0.62 } }] : []),
|
|
402
|
+
],
|
|
403
|
+
debug: props.debugLayout === true,
|
|
404
|
+
}));
|
|
405
|
+
},
|
|
406
|
+
// Editor-only first-open cover — the mosaic-branding theme; hero = the
|
|
407
|
+
// template's own static default render, INLINED flat (gate-15/21 keeper).
|
|
408
|
+
async renderCover(_props, ctx) {
|
|
409
|
+
const heroBox = (0, onboarding_cover_1.brandedCoverHeroBox)(ctx, "band");
|
|
410
|
+
const heroCtx = {
|
|
411
|
+
...ctx,
|
|
412
|
+
target: { ...ctx.target, width: heroBox.width, height: heroBox.height },
|
|
413
|
+
output: { ...ctx.output, width: heroBox.width, height: heroBox.height },
|
|
414
|
+
};
|
|
415
|
+
const hero = (await exports.AlpineLineChartV2.render({
|
|
416
|
+
...exports.AlpineLineChartV2.defaultProps,
|
|
417
|
+
anim: { ...DEFAULT_ANIM, reduceMotion: true },
|
|
418
|
+
}, heroCtx));
|
|
419
|
+
return (0, onboarding_cover_1.buildBrandedCover)({
|
|
420
|
+
ctx,
|
|
421
|
+
// Band variant (founder ruling 08-30): basic viz needs no
|
|
422
|
+
// explanation — hero full-bleed + brand band, nothing else.
|
|
423
|
+
variant: "band",
|
|
424
|
+
copy: {
|
|
425
|
+
productName: "Line Chart",
|
|
426
|
+
title: "A line chart.",
|
|
427
|
+
},
|
|
428
|
+
hero: (theme) => (0, onboarding_cover_1.onboardingFrame)((0, onboarding_cover_1.inlineHeroDoc)(hero), theme.borderStrong),
|
|
429
|
+
heroAssets: hero.assets,
|
|
430
|
+
children: hero.children,
|
|
431
|
+
});
|
|
432
|
+
},
|
|
433
|
+
};
|
|
434
|
+
(0, template_utils_1.registerTemplate)(exports.AlpineLineChartV2);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AlpineProgressCard } from "./progress-card";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AlpineProgressCard = void 0;
|
|
4
|
+
var progress_card_1 = require("./progress-card");
|
|
5
|
+
Object.defineProperty(exports, "AlpineProgressCard", { enumerable: true, get: function () { return progress_card_1.AlpineProgressCard; } });
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ============================================================================
|
|
3
|
+
* @m0saic/alpine/progress-card/v1 — Alpine Progress Card (friendly mobile-marketing)
|
|
4
|
+
* ============================================================================
|
|
5
|
+
*
|
|
6
|
+
* A goal-tracker card: a vertical list of progress rows, each a label + value
|
|
7
|
+
* over a rounded TRACK with a colored FILL grown to its fraction. STANDALONE
|
|
8
|
+
* Alpine brand flavor (white rounded card chrome + soft palette).
|
|
9
|
+
*
|
|
10
|
+
* Construction follows the bar-graph model — real m0 cells via row/col splits +
|
|
11
|
+
* rounded `makeColorTile`s, NO inline-mask geometry. The fill grows left→right
|
|
12
|
+
* via an overlay translate clipped by a plot child doc (the proven bar-graph
|
|
13
|
+
* grow); the value counts up. `anim.reduceMotion` → the static final card.
|
|
14
|
+
* ============================================================================
|
|
15
|
+
*/
|
|
16
|
+
import type { MosaicColor, MosaicTemplate } from "@m0saic/types";
|
|
17
|
+
import { type EaseName, type ThemeSourceConfig } from "@m0saic/template-utils";
|
|
18
|
+
import { type AlpinePreset } from "../../_shared/alpine-theme";
|
|
19
|
+
type ProgressItem = {
|
|
20
|
+
label: string;
|
|
21
|
+
value: number;
|
|
22
|
+
max?: number;
|
|
23
|
+
valueLabel?: string;
|
|
24
|
+
color?: MosaicColor;
|
|
25
|
+
};
|
|
26
|
+
type AnimConfig = {
|
|
27
|
+
introFrac: number;
|
|
28
|
+
countUp: boolean;
|
|
29
|
+
easing: EaseName;
|
|
30
|
+
reduceMotion: boolean;
|
|
31
|
+
};
|
|
32
|
+
type AlpineProgressCardProps = {
|
|
33
|
+
items: ProgressItem[];
|
|
34
|
+
title?: string;
|
|
35
|
+
subtitle?: string;
|
|
36
|
+
preset?: AlpinePreset;
|
|
37
|
+
showValue?: boolean;
|
|
38
|
+
/** Override the per-item bar color for ALL rows (per-item `color` still wins). */
|
|
39
|
+
barColor?: MosaicColor;
|
|
40
|
+
trackColor?: MosaicColor;
|
|
41
|
+
/** Bar/track rounding (0..1). */
|
|
42
|
+
bars?: {
|
|
43
|
+
cornerRadius?: number;
|
|
44
|
+
};
|
|
45
|
+
anim?: AnimConfig;
|
|
46
|
+
/** Opt-in producer theming (mirrors the charts). Preset is the fallback; a
|
|
47
|
+
* producer's published tokens override it. Explicit color props still win. */
|
|
48
|
+
theme?: ThemeSourceConfig;
|
|
49
|
+
/** Dev-only layout contract: assert tracks equal-size + text fits its slot. */
|
|
50
|
+
debugLayout?: boolean;
|
|
51
|
+
};
|
|
52
|
+
export declare const AlpineProgressCard: MosaicTemplate<AlpineProgressCardProps>;
|
|
53
|
+
export {};
|