@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,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ============================================================================
|
|
3
|
+
* @m0saic/charts/line-chart — line-series data sources (the draw-on layer)
|
|
4
|
+
* ============================================================================
|
|
5
|
+
*
|
|
6
|
+
* Builds the data layer for every series as STATIC mask atlases + ONE reveal —
|
|
7
|
+
* the R6 idiom (perf rule R6: "for a masked line draw-on, use a curtain wipe
|
|
8
|
+
* over the static art, not a per-sliver cascade").
|
|
9
|
+
*
|
|
10
|
+
* - Per series, per role (area / line / marker-border / marker-fill), the
|
|
11
|
+
* finished silhouette is ONE full-canvas `maskAtlasSource` (absolute-coord
|
|
12
|
+
* SVG subpaths, `bounds = W×H`). One source, one overlay layer, at any
|
|
13
|
+
* subpath count — no per-sliver shards, no time-varying alpha (no geq fold).
|
|
14
|
+
* - The draw-on is a single reveal, chosen by background opacity:
|
|
15
|
+
* · opaque (preset/solid) → ONE `curtainSource`: hide-colored columns
|
|
16
|
+
* over the plot, each disabling (`enable=lt(t,revealAt)`, a free scalar
|
|
17
|
+
* gate) as the sweep reaches its x. Depth O(1); no alpha expr.
|
|
18
|
+
* · transparent/image → a group `overlay.alpha` fade on the atlases (a
|
|
19
|
+
* few full-canvas layers — the accepted perf cost; the deep chain is
|
|
20
|
+
* gone either way).
|
|
21
|
+
* · reduceMotion → static atlases, no reveal.
|
|
22
|
+
* - Value labels stay one `type:"text"` per point, painted ABOVE the curtain,
|
|
23
|
+
* popped in with `overlay.enable = gte(t, …)` (R4-clean) — never animated
|
|
24
|
+
* alpha. Each one DISPLAYS a single raw data leaf, so when the parent passes
|
|
25
|
+
* `valuesBinding` it is bound for Make inline edit (`editor.binding` only —
|
|
26
|
+
* the m0 is untouched): `[j]` for a flat series, `[i, j]` for nested.
|
|
27
|
+
*
|
|
28
|
+
* `geometry.ts` is unchanged: its existing path builders are fed ABSOLUTE points
|
|
29
|
+
* (no `local()`), and the atlas bounds are the full canvas.
|
|
30
|
+
*
|
|
31
|
+
* Returned as `{ m0, sources }` (contract unchanged); the parent overlays it on
|
|
32
|
+
* the card + chrome. The atlases + curtain are full-frame overlapping layers, so
|
|
33
|
+
* `placeRects` packs them one-per-layer (base→top = area → line → markers →
|
|
34
|
+
* curtain → labels) — the same emission order the composed m0 expects.
|
|
35
|
+
* ============================================================================
|
|
36
|
+
*/
|
|
37
|
+
import type { MosaicColor, MosaicSource } from "@m0saic/types";
|
|
38
|
+
import type { LineChartModel } from "../../_shared/line";
|
|
39
|
+
import type { AnimConfig, BackgroundMode, ResolvedSeriesStyle, ResolvedValueLabels } from "./types";
|
|
40
|
+
export type DataLayer = {
|
|
41
|
+
m0: string;
|
|
42
|
+
sources: MosaicSource[];
|
|
43
|
+
};
|
|
44
|
+
/** Background context the reveal needs: opaque bgs get a curtain, others a fade. */
|
|
45
|
+
export type PlotBg = {
|
|
46
|
+
mode: BackgroundMode;
|
|
47
|
+
color: MosaicColor;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Build the data layer for every series as static full-canvas atlases plus one
|
|
51
|
+
* reveal. Paint order: areas (bottom) → lines → marker-borders → marker-fills →
|
|
52
|
+
* curtain (opaque animated path only) → value labels (top). Returns null when
|
|
53
|
+
* there's nothing to draw.
|
|
54
|
+
*/
|
|
55
|
+
export declare function buildLineSeriesSources(model: LineChartModel, styles: ResolvedSeriesStyle[], anim: AnimConfig, opts?: {
|
|
56
|
+
highlightIndex?: number;
|
|
57
|
+
valueLabels?: ResolvedValueLabels;
|
|
58
|
+
plotBg?: PlotBg;
|
|
59
|
+
/** Make inline-edit binding for the value labels: the PARENT names the
|
|
60
|
+
* structured prop the series came from and whether it is nested
|
|
61
|
+
* (`number[][]` → path `[seriesIdx, pointIdx]`) or flat (`number[]` →
|
|
62
|
+
* `[pointIdx]`). Indices are the ORIGINAL data positions — the model
|
|
63
|
+
* never filters, sorts or truncates `values`; a null/non-finite point
|
|
64
|
+
* simply draws no label (and so binds nothing). */
|
|
65
|
+
valuesBinding?: {
|
|
66
|
+
propKey: string;
|
|
67
|
+
nested: boolean;
|
|
68
|
+
};
|
|
69
|
+
}): DataLayer | null;
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ============================================================================
|
|
4
|
+
* @m0saic/charts/line-chart — line-series data sources (the draw-on layer)
|
|
5
|
+
* ============================================================================
|
|
6
|
+
*
|
|
7
|
+
* Builds the data layer for every series as STATIC mask atlases + ONE reveal —
|
|
8
|
+
* the R6 idiom (perf rule R6: "for a masked line draw-on, use a curtain wipe
|
|
9
|
+
* over the static art, not a per-sliver cascade").
|
|
10
|
+
*
|
|
11
|
+
* - Per series, per role (area / line / marker-border / marker-fill), the
|
|
12
|
+
* finished silhouette is ONE full-canvas `maskAtlasSource` (absolute-coord
|
|
13
|
+
* SVG subpaths, `bounds = W×H`). One source, one overlay layer, at any
|
|
14
|
+
* subpath count — no per-sliver shards, no time-varying alpha (no geq fold).
|
|
15
|
+
* - The draw-on is a single reveal, chosen by background opacity:
|
|
16
|
+
* · opaque (preset/solid) → ONE `curtainSource`: hide-colored columns
|
|
17
|
+
* over the plot, each disabling (`enable=lt(t,revealAt)`, a free scalar
|
|
18
|
+
* gate) as the sweep reaches its x. Depth O(1); no alpha expr.
|
|
19
|
+
* · transparent/image → a group `overlay.alpha` fade on the atlases (a
|
|
20
|
+
* few full-canvas layers — the accepted perf cost; the deep chain is
|
|
21
|
+
* gone either way).
|
|
22
|
+
* · reduceMotion → static atlases, no reveal.
|
|
23
|
+
* - Value labels stay one `type:"text"` per point, painted ABOVE the curtain,
|
|
24
|
+
* popped in with `overlay.enable = gte(t, …)` (R4-clean) — never animated
|
|
25
|
+
* alpha. Each one DISPLAYS a single raw data leaf, so when the parent passes
|
|
26
|
+
* `valuesBinding` it is bound for Make inline edit (`editor.binding` only —
|
|
27
|
+
* the m0 is untouched): `[j]` for a flat series, `[i, j]` for nested.
|
|
28
|
+
*
|
|
29
|
+
* `geometry.ts` is unchanged: its existing path builders are fed ABSOLUTE points
|
|
30
|
+
* (no `local()`), and the atlas bounds are the full canvas.
|
|
31
|
+
*
|
|
32
|
+
* Returned as `{ m0, sources }` (contract unchanged); the parent overlays it on
|
|
33
|
+
* the card + chrome. The atlases + curtain are full-frame overlapping layers, so
|
|
34
|
+
* `placeRects` packs them one-per-layer (base→top = area → line → markers →
|
|
35
|
+
* curtain → labels) — the same emission order the composed m0 expects.
|
|
36
|
+
* ============================================================================
|
|
37
|
+
*/
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.buildLineSeriesSources = buildLineSeriesSources;
|
|
40
|
+
const template_utils_1 = require("@m0saic/template-utils");
|
|
41
|
+
const dsl_stdlib_1 = require("@m0saic/dsl-stdlib");
|
|
42
|
+
const format_1 = require("./format");
|
|
43
|
+
const geometry_1 = require("./geometry");
|
|
44
|
+
const frame_1 = require("./frame");
|
|
45
|
+
const anim_1 = require("./anim");
|
|
46
|
+
/** Bbox padding (px) so anti-aliased edges never clip at the cell boundary. */
|
|
47
|
+
const EDGE_PAD = 1.5;
|
|
48
|
+
const clampInt = (v, lo, hi) => Math.max(lo, Math.min(hi, Math.round(v)));
|
|
49
|
+
/** Rough text width estimate (avg glyph ≈ 0.6em). */
|
|
50
|
+
const estTextW = (s, size) => s.length * size * 0.6;
|
|
51
|
+
/** The whole-canvas cell (basis units) every full-frame atlas / curtain occupies. */
|
|
52
|
+
const fullRect = () => ({ x: 0, y: 0, w: frame_1.BASIS_COL, h: frame_1.BASIS_ROW, claimant: "F" });
|
|
53
|
+
/**
|
|
54
|
+
* Snap a bbox OUTWARD to the frame basis grid (so the cell ⊇ the content, never
|
|
55
|
+
* clipping it) and let the caller build a source sized to the resulting cell px.
|
|
56
|
+
* Used for the per-point value labels (tight text cells).
|
|
57
|
+
*/
|
|
58
|
+
function snapAndPlace(W, H, bbox, makeSource) {
|
|
59
|
+
const qx = clampInt(Math.floor(((bbox.minX - EDGE_PAD) / W) * frame_1.BASIS_COL), 0, frame_1.BASIS_COL - 1);
|
|
60
|
+
const qy = clampInt(Math.floor(((bbox.minY - EDGE_PAD) / H) * frame_1.BASIS_ROW), 0, frame_1.BASIS_ROW - 1);
|
|
61
|
+
const qx2 = clampInt(Math.ceil(((bbox.maxX + EDGE_PAD) / W) * frame_1.BASIS_COL), qx + 1, frame_1.BASIS_COL);
|
|
62
|
+
const qy2 = clampInt(Math.ceil(((bbox.maxY + EDGE_PAD) / H) * frame_1.BASIS_ROW), qy + 1, frame_1.BASIS_ROW);
|
|
63
|
+
const qw = qx2 - qx;
|
|
64
|
+
const qh = qy2 - qy;
|
|
65
|
+
const cellX = (qx / frame_1.BASIS_COL) * W;
|
|
66
|
+
const cellY = (qy / frame_1.BASIS_ROW) * H;
|
|
67
|
+
const cellW = (qw / frame_1.BASIS_COL) * W;
|
|
68
|
+
const cellH = (qh / frame_1.BASIS_ROW) * H;
|
|
69
|
+
return { rect: { x: qx, y: qy, w: qw, h: qh, claimant: "F" }, source: makeSource(cellX, cellY, cellW, cellH) };
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* One full-canvas mask atlas: the given ABSOLUTE-coord subpaths joined into a
|
|
73
|
+
* single silhouette filled with `color`. Returns null when there's nothing to
|
|
74
|
+
* draw. Caps the subpath list to {@link MASK_SUBPATH_BUDGET} (the resolver's
|
|
75
|
+
* argv wall) — the line is subsampled upstream; markers/dashes stride-decimate.
|
|
76
|
+
*/
|
|
77
|
+
function atlasPiece(paths, color, W, H, overlay) {
|
|
78
|
+
const subs = capStride(paths.filter(Boolean), template_utils_1.MASK_SUBPATH_BUDGET);
|
|
79
|
+
if (subs.length === 0)
|
|
80
|
+
return null;
|
|
81
|
+
const src = (0, template_utils_1.maskAtlasSource)(subs, color, { width: W, height: H });
|
|
82
|
+
return { rect: fullRect(), source: overlay ? { ...src, overlay } : src };
|
|
83
|
+
}
|
|
84
|
+
/** Even-stride a subpath list down to `cap` when it would overflow the atlas budget. */
|
|
85
|
+
function capStride(paths, cap) {
|
|
86
|
+
if (paths.length <= cap)
|
|
87
|
+
return paths;
|
|
88
|
+
const out = [];
|
|
89
|
+
const stride = paths.length / cap;
|
|
90
|
+
for (let i = 0; i < cap; i++)
|
|
91
|
+
out.push(paths[Math.floor(i * stride)]);
|
|
92
|
+
return out;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The line as a list of ribbon-quad subpaths (one per polyline segment). A dense
|
|
96
|
+
* flattened curve past the atlas budget is resampled to even arc-length chords
|
|
97
|
+
* (reusing `buildSweepSlivers`) so the silhouette stays smooth and in-budget.
|
|
98
|
+
*/
|
|
99
|
+
function lineQuadPaths(poly, strokeWidth) {
|
|
100
|
+
if (poly.length < 2)
|
|
101
|
+
return [];
|
|
102
|
+
if (poly.length - 1 > template_utils_1.MASK_SUBPATH_BUDGET) {
|
|
103
|
+
return (0, geometry_1.buildSweepSlivers)(poly, strokeWidth, { maxSlivers: template_utils_1.MASK_SUBPATH_BUDGET }).map((s) => (0, geometry_1.ribbonQuadPath)(s.a, s.b, strokeWidth));
|
|
104
|
+
}
|
|
105
|
+
const out = [];
|
|
106
|
+
for (let i = 0; i < poly.length - 1; i++)
|
|
107
|
+
out.push((0, geometry_1.ribbonQuadPath)(poly[i], poly[i + 1], strokeWidth));
|
|
108
|
+
return out;
|
|
109
|
+
}
|
|
110
|
+
/** Place a value label (centered text) in a tight cell whose bottom sits at `topY`. */
|
|
111
|
+
function placeValueLabel(W, H, cx, topY, text, fontSize, color, overlay) {
|
|
112
|
+
const w = Math.max(fontSize * 1.4, estTextW(text, fontSize));
|
|
113
|
+
const h = fontSize * 1.5;
|
|
114
|
+
const bbox = { minX: cx - w / 2, minY: topY - h, maxX: cx + w / 2, maxY: topY };
|
|
115
|
+
return snapAndPlace(W, H, bbox, () => {
|
|
116
|
+
const src = {
|
|
117
|
+
type: "text",
|
|
118
|
+
visual: { backgroundColor: "black@0" },
|
|
119
|
+
layers: [
|
|
120
|
+
{
|
|
121
|
+
content: { kind: "literal", text },
|
|
122
|
+
style: { fontSize, fontColor: color },
|
|
123
|
+
placement: { fit: "contain", hAlign: "center", vAlign: "middle" },
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
...(overlay ? { overlay } : {}),
|
|
127
|
+
};
|
|
128
|
+
return (0, template_utils_1.tag)(src, "value-label");
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Build the data layer for every series as static full-canvas atlases plus one
|
|
133
|
+
* reveal. Paint order: areas (bottom) → lines → marker-borders → marker-fills →
|
|
134
|
+
* curtain (opaque animated path only) → value labels (top). Returns null when
|
|
135
|
+
* there's nothing to draw.
|
|
136
|
+
*/
|
|
137
|
+
function buildLineSeriesSources(model, styles, anim, opts = {}) {
|
|
138
|
+
var _a, _b, _c, _d;
|
|
139
|
+
const highlightIndex = (_a = opts.highlightIndex) !== null && _a !== void 0 ? _a : -1;
|
|
140
|
+
const valueLabels = opts.valueLabels;
|
|
141
|
+
const valuesBinding = opts.valuesBinding;
|
|
142
|
+
const plotBg = opts.plotBg;
|
|
143
|
+
const { width: W, height: H, plot } = model.layout;
|
|
144
|
+
const reduce = anim.reduceMotion;
|
|
145
|
+
const seriesCount = model.series.length;
|
|
146
|
+
// Opaque card (preset/solid) ⇒ curtain wipe. Transparent/image (or a bare
|
|
147
|
+
// standalone call with no plotBg) ⇒ group alpha-fade. reduceMotion ⇒ static.
|
|
148
|
+
const opaque = !!plotBg && (plotBg.mode === "preset" || plotBg.mode === "solid");
|
|
149
|
+
const useCurtain = !reduce && opaque;
|
|
150
|
+
const useGroupFade = !reduce && !opaque;
|
|
151
|
+
const areas = [];
|
|
152
|
+
const lines = [];
|
|
153
|
+
const markerBorders = [];
|
|
154
|
+
const markerFills = [];
|
|
155
|
+
const labels = [];
|
|
156
|
+
let maxOverhangPx = 0; // marker radius / stroke half-width that overhangs the plot edge
|
|
157
|
+
for (let i = 0; i < seriesCount; i++) {
|
|
158
|
+
const st = styles[i];
|
|
159
|
+
const pts = model.points[i];
|
|
160
|
+
if (!st || !pts || pts.length === 0)
|
|
161
|
+
continue;
|
|
162
|
+
// The line/area trace this (possibly densified) polyline per `curve`;
|
|
163
|
+
// markers stay on the original data points, revealing at `vertexFracs`.
|
|
164
|
+
const { poly, vertexFracs } = (0, geometry_1.curvePolyline)(pts, st.curve);
|
|
165
|
+
// Group fade (transparent/image animated path) — the same overlay on every
|
|
166
|
+
// atlas so they ramp in together; opaque path leaves them static (curtain).
|
|
167
|
+
const groupOverlay = useGroupFade
|
|
168
|
+
? { startAtSec: anim.intro.delaySec, alpha: (0, template_utils_1.fadeInExpr)(anim.intro.delaySec, anim.intro.durationSec * 0.85) }
|
|
169
|
+
: undefined;
|
|
170
|
+
// ---- area fill (behind the line) ----
|
|
171
|
+
// Opacity rides overlay.alpha (a constant expr), NOT a color@alpha: the
|
|
172
|
+
// inline-mask's coverage REPLACES the tile's color alpha, so "@0.2"
|
|
173
|
+
// rendered fully opaque and buried the series beneath it.
|
|
174
|
+
if (st.area.show) {
|
|
175
|
+
const a = clamp01(st.area.opacity);
|
|
176
|
+
const areaOverlay = a >= 1
|
|
177
|
+
? groupOverlay
|
|
178
|
+
: (groupOverlay === null || groupOverlay === void 0 ? void 0 : groupOverlay.alpha)
|
|
179
|
+
? { ...groupOverlay, alpha: `(${groupOverlay.alpha})*${a}` }
|
|
180
|
+
: { ...(groupOverlay !== null && groupOverlay !== void 0 ? groupOverlay : {}), alpha: String(a) };
|
|
181
|
+
const p = atlasPiece([(0, geometry_1.areaPolygonPath)(poly, plot.bottom)], ((_b = st.area.color) !== null && _b !== void 0 ? _b : st.color), W, H, areaOverlay);
|
|
182
|
+
if (p)
|
|
183
|
+
areas.push(p);
|
|
184
|
+
}
|
|
185
|
+
// ---- line (solid = ribbon quads; dashed/dotted = filled dash marks) ----
|
|
186
|
+
const linePaths = st.lineStyle === "dashed" || st.lineStyle === "dotted"
|
|
187
|
+
? (0, geometry_1.buildDashMarks)(poly, st.strokeWidth, st.lineStyle, { maxMarks: template_utils_1.MASK_SUBPATH_BUDGET - 8 }).map((m) => (0, geometry_1.dashMarkPath)(m, st.strokeWidth, 0, 0))
|
|
188
|
+
: lineQuadPaths(poly, st.strokeWidth);
|
|
189
|
+
const lp = atlasPiece(linePaths, st.color, W, H, groupOverlay);
|
|
190
|
+
if (lp)
|
|
191
|
+
lines.push(lp);
|
|
192
|
+
maxOverhangPx = Math.max(maxOverhangPx, st.strokeWidth / 2);
|
|
193
|
+
// ---- markers (one border atlas + one fill atlas, per series) ----
|
|
194
|
+
if (st.showPoints) {
|
|
195
|
+
const borderPaths = [];
|
|
196
|
+
const fillPaths = [];
|
|
197
|
+
const hasBorder = !!st.pointBorder.color && st.pointBorder.width > 0;
|
|
198
|
+
for (let j = 0; j < pts.length; j++) {
|
|
199
|
+
const r = j === highlightIndex ? st.pointRadius * 1.7 : st.pointRadius;
|
|
200
|
+
if (hasBorder)
|
|
201
|
+
borderPaths.push((0, geometry_1.markerPath)(pts[j], r + st.pointBorder.width, st.pointShape));
|
|
202
|
+
fillPaths.push((0, geometry_1.markerPath)(pts[j], r, st.pointShape));
|
|
203
|
+
maxOverhangPx = Math.max(maxOverhangPx, r + (hasBorder ? st.pointBorder.width : 0));
|
|
204
|
+
}
|
|
205
|
+
if (hasBorder) {
|
|
206
|
+
const bp = atlasPiece(borderPaths, st.pointBorder.color, W, H, groupOverlay);
|
|
207
|
+
if (bp)
|
|
208
|
+
markerBorders.push(bp);
|
|
209
|
+
}
|
|
210
|
+
const fp = atlasPiece(fillPaths, ((_c = st.pointColor) !== null && _c !== void 0 ? _c : st.color), W, H, groupOverlay);
|
|
211
|
+
if (fp)
|
|
212
|
+
markerFills.push(fp);
|
|
213
|
+
}
|
|
214
|
+
// ---- per-point value labels (above the curtain, pop via enable-gate) ----
|
|
215
|
+
if (valueLabels === null || valueLabels === void 0 ? void 0 : valueLabels.show) {
|
|
216
|
+
for (let j = 0; j < pts.length; j++) {
|
|
217
|
+
const raw = model.series[i].values[j];
|
|
218
|
+
if (raw == null || !Number.isFinite(raw))
|
|
219
|
+
continue;
|
|
220
|
+
const markerR = st.showPoints ? (j === highlightIndex ? st.pointRadius * 1.7 : st.pointRadius) : 0;
|
|
221
|
+
const text = (0, format_1.formatValueLabel)(raw, valueLabels.format, valueLabels.decimals);
|
|
222
|
+
const lc = ((_d = valueLabels.color) !== null && _d !== void 0 ? _d : st.color);
|
|
223
|
+
const overlay = reduce ? undefined : { enable: `gte(t,${(0, anim_1.pointStartSec)(vertexFracs[j], anim).toFixed(3)})` };
|
|
224
|
+
const label = placeValueLabel(W, H, pts[j].x, pts[j].y - markerR - 4, text, valueLabels.fontSize, lc, overlay);
|
|
225
|
+
// The rect shows a FORMATTED rendering of one raw leaf — still that
|
|
226
|
+
// leaf's display (Make seeds the editor from the raw number).
|
|
227
|
+
if (valuesBinding)
|
|
228
|
+
(0, template_utils_1.bindPropPath)(label.source, valuesBinding.propKey, valuesBinding.nested ? [i, j] : [j], "number");
|
|
229
|
+
labels.push(label);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
// Assemble bottom→top. The curtain sits ABOVE the data atlases (hides them)
|
|
234
|
+
// and BELOW the value labels (which pop in independently).
|
|
235
|
+
const dataPieces = [...areas, ...lines, ...markerBorders, ...markerFills];
|
|
236
|
+
const pieces = [...dataPieces];
|
|
237
|
+
if (useCurtain && plotBg && dataPieces.length > 0) {
|
|
238
|
+
const cols = (0, anim_1.buildCurtainColumns)(plot, anim, { padPx: Math.ceil(maxOverhangPx + EDGE_PAD) });
|
|
239
|
+
const curtain = (0, template_utils_1.curtainSource)(cols, plotBg.color);
|
|
240
|
+
if (curtain)
|
|
241
|
+
pieces.push({ rect: fullRect(), source: curtain });
|
|
242
|
+
}
|
|
243
|
+
pieces.push(...labels);
|
|
244
|
+
if (pieces.length === 0)
|
|
245
|
+
return null;
|
|
246
|
+
const placed = (0, dsl_stdlib_1.placeRects)({ rootW: frame_1.BASIS_COL, rootH: frame_1.BASIS_ROW, rects: pieces.map((p) => p.rect) });
|
|
247
|
+
// Source order must match the composed m0's emission: per layer (base→top),
|
|
248
|
+
// each rect occupies exactly one band, so sort by (y, x).
|
|
249
|
+
const sources = [];
|
|
250
|
+
for (const layer of placed.layers) {
|
|
251
|
+
const ordered = [...layer.rectIndices].sort((a, b) => pieces[a].rect.y - pieces[b].rect.y || pieces[a].rect.x - pieces[b].rect.x);
|
|
252
|
+
for (const idx of ordered)
|
|
253
|
+
sources.push(pieces[idx].source);
|
|
254
|
+
}
|
|
255
|
+
return { m0: String(placed.m0), sources };
|
|
256
|
+
}
|
|
257
|
+
function clamp01(v) {
|
|
258
|
+
return Math.max(0, Math.min(1, v));
|
|
259
|
+
}
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ============================================================================
|
|
3
|
+
* @m0saic/charts/line-chart — Shared Types
|
|
4
|
+
* ============================================================================
|
|
5
|
+
*
|
|
6
|
+
* Single source of truth for every TypeScript type shared across the
|
|
7
|
+
* line-chart template family (public + all internals).
|
|
8
|
+
*
|
|
9
|
+
* RULE (mirrors bar-graph):
|
|
10
|
+
* - Public props (LineChartProps) are PERMISSIVE — unions, single-or-array,
|
|
11
|
+
* px shorthands. The top-level template resolves them.
|
|
12
|
+
* - Internals receive fully-RESOLVED types (no unions, fractions/px decided).
|
|
13
|
+
* - Keep types PURE — no runtime values. Type-only imports are erased at
|
|
14
|
+
* compile, so `import type` from template-utils (e.g. ThemeSourceConfig) is fine.
|
|
15
|
+
* ============================================================================
|
|
16
|
+
*/
|
|
17
|
+
import type { MosaicColor } from "@m0saic/types";
|
|
18
|
+
import type { ThemeSourceConfig } from "@m0saic/template-utils";
|
|
19
|
+
/**
|
|
20
|
+
* The canonical line-chart look is LIGHT (white card, light grid, dark text,
|
|
21
|
+
* blue line) — the default Chart.js baseline. `neutral` is therefore light,
|
|
22
|
+
* unlike bar-graph's dark `neutral`. Dark variants are opt-in.
|
|
23
|
+
*/
|
|
24
|
+
export type LineChartPreset = "neutral" | "dark" | "terminal" | "glass" | "paper";
|
|
25
|
+
/** How the card surface behind the plot is painted. */
|
|
26
|
+
export type BackgroundMode = "preset" | "solid" | "image" | "none";
|
|
27
|
+
export type Padding = number | {
|
|
28
|
+
top: number;
|
|
29
|
+
right: number;
|
|
30
|
+
bottom: number;
|
|
31
|
+
left: number;
|
|
32
|
+
};
|
|
33
|
+
export type ResolvedPadding = {
|
|
34
|
+
top: number;
|
|
35
|
+
right: number;
|
|
36
|
+
bottom: number;
|
|
37
|
+
left: number;
|
|
38
|
+
};
|
|
39
|
+
export type AxisTickFormat = "raw" | "compact" | "percent";
|
|
40
|
+
/** Public per-axis config group (xAxis / yAxis). All fields optional. */
|
|
41
|
+
export type AxisConfigInput = {
|
|
42
|
+
/** Draw the axis line itself. */
|
|
43
|
+
show?: boolean;
|
|
44
|
+
color?: MosaicColor;
|
|
45
|
+
thickness?: number;
|
|
46
|
+
/** Tick labels. */
|
|
47
|
+
showLabels?: boolean;
|
|
48
|
+
labelColor?: MosaicColor;
|
|
49
|
+
fontSize?: number;
|
|
50
|
+
format?: AxisTickFormat;
|
|
51
|
+
decimals?: number;
|
|
52
|
+
prefix?: string;
|
|
53
|
+
suffix?: string;
|
|
54
|
+
/** Tick marks (the little ticks on the axis line). */
|
|
55
|
+
tickCount?: number;
|
|
56
|
+
showTicks?: boolean;
|
|
57
|
+
tickLength?: number;
|
|
58
|
+
tickColor?: MosaicColor;
|
|
59
|
+
/** x-label rotation in degrees (x axis only). */
|
|
60
|
+
rotation?: number;
|
|
61
|
+
/** Gridlines for this axis. */
|
|
62
|
+
showGrid?: boolean;
|
|
63
|
+
gridCount?: number;
|
|
64
|
+
gridColor?: MosaicColor;
|
|
65
|
+
gridOpacity?: number;
|
|
66
|
+
gridDash?: LineStyle;
|
|
67
|
+
};
|
|
68
|
+
/** Fully-resolved per-axis config consumed by the renderer. */
|
|
69
|
+
export type ResolvedAxis = {
|
|
70
|
+
show: boolean;
|
|
71
|
+
color: MosaicColor;
|
|
72
|
+
thickness: number;
|
|
73
|
+
showLabels: boolean;
|
|
74
|
+
labelColor: MosaicColor;
|
|
75
|
+
fontSize: number;
|
|
76
|
+
format: AxisTickFormat;
|
|
77
|
+
decimals: number;
|
|
78
|
+
prefix: string;
|
|
79
|
+
suffix: string;
|
|
80
|
+
tickCount: number;
|
|
81
|
+
showTicks: boolean;
|
|
82
|
+
tickLength: number;
|
|
83
|
+
tickColor: MosaicColor;
|
|
84
|
+
rotation: number;
|
|
85
|
+
showGrid: boolean;
|
|
86
|
+
gridCount: number;
|
|
87
|
+
gridColor: MosaicColor;
|
|
88
|
+
gridOpacity: number;
|
|
89
|
+
gridDash: LineStyle;
|
|
90
|
+
};
|
|
91
|
+
export type LineStyle = "solid" | "dashed" | "dotted";
|
|
92
|
+
export type Curve = "linear" | "smooth" | "stepped";
|
|
93
|
+
export type LineCap = "butt" | "round" | "square";
|
|
94
|
+
export type LineJoin = "miter" | "round" | "bevel";
|
|
95
|
+
export type PointShape = "circle" | "square" | "diamond";
|
|
96
|
+
export type AreaConfig = {
|
|
97
|
+
show?: boolean;
|
|
98
|
+
color?: MosaicColor;
|
|
99
|
+
opacity?: number;
|
|
100
|
+
};
|
|
101
|
+
export type ResolvedArea = {
|
|
102
|
+
show: boolean;
|
|
103
|
+
color?: MosaicColor;
|
|
104
|
+
opacity: number;
|
|
105
|
+
};
|
|
106
|
+
export type PointBorder = {
|
|
107
|
+
color?: MosaicColor;
|
|
108
|
+
width?: number;
|
|
109
|
+
};
|
|
110
|
+
/** Public line config (single value OR per-series array where noted). */
|
|
111
|
+
export type LineConfigInput = {
|
|
112
|
+
lineColor?: MosaicColor | MosaicColor[];
|
|
113
|
+
strokeWidth?: number | number[];
|
|
114
|
+
lineStyle?: LineStyle;
|
|
115
|
+
curve?: Curve;
|
|
116
|
+
lineCap?: LineCap;
|
|
117
|
+
lineJoin?: LineJoin;
|
|
118
|
+
area?: AreaConfig;
|
|
119
|
+
};
|
|
120
|
+
export type PointsConfigInput = {
|
|
121
|
+
showPoints?: boolean;
|
|
122
|
+
pointRadius?: number;
|
|
123
|
+
pointColor?: MosaicColor;
|
|
124
|
+
pointShape?: PointShape;
|
|
125
|
+
pointBorder?: PointBorder;
|
|
126
|
+
highlightIndex?: number;
|
|
127
|
+
highlightLast?: boolean;
|
|
128
|
+
};
|
|
129
|
+
/** Fully-resolved per-series style (the renderer iterates these). */
|
|
130
|
+
export type ResolvedSeriesStyle = {
|
|
131
|
+
color: MosaicColor;
|
|
132
|
+
strokeWidth: number;
|
|
133
|
+
lineStyle: LineStyle;
|
|
134
|
+
curve: Curve;
|
|
135
|
+
lineCap: LineCap;
|
|
136
|
+
lineJoin: LineJoin;
|
|
137
|
+
area: ResolvedArea;
|
|
138
|
+
showPoints: boolean;
|
|
139
|
+
pointRadius: number;
|
|
140
|
+
pointColor: MosaicColor;
|
|
141
|
+
pointShape: PointShape;
|
|
142
|
+
pointBorder: {
|
|
143
|
+
color?: MosaicColor;
|
|
144
|
+
width: number;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
export type TextAlign = "left" | "center" | "right";
|
|
148
|
+
export type LegendPosition = "top" | "bottom";
|
|
149
|
+
export type LegendConfig = {
|
|
150
|
+
show?: boolean;
|
|
151
|
+
position?: LegendPosition;
|
|
152
|
+
color?: MosaicColor;
|
|
153
|
+
fontSize?: number;
|
|
154
|
+
};
|
|
155
|
+
export type ResolvedLegend = {
|
|
156
|
+
show: boolean;
|
|
157
|
+
position: LegendPosition;
|
|
158
|
+
color: MosaicColor;
|
|
159
|
+
fontSize: number;
|
|
160
|
+
};
|
|
161
|
+
export type ValueLabelFormat = "raw" | "compact" | "percent";
|
|
162
|
+
export type ValueLabelsConfig = {
|
|
163
|
+
show?: boolean;
|
|
164
|
+
format?: ValueLabelFormat;
|
|
165
|
+
decimals?: number;
|
|
166
|
+
color?: MosaicColor;
|
|
167
|
+
fontSize?: number;
|
|
168
|
+
};
|
|
169
|
+
export type ResolvedValueLabels = {
|
|
170
|
+
show: boolean;
|
|
171
|
+
format: ValueLabelFormat;
|
|
172
|
+
decimals: number;
|
|
173
|
+
color?: MosaicColor;
|
|
174
|
+
fontSize: number;
|
|
175
|
+
};
|
|
176
|
+
export type EaseName = "linear" | "smoothstep" | "easeInOut";
|
|
177
|
+
export type AnimIntroConfig = {
|
|
178
|
+
durationSec: number;
|
|
179
|
+
delaySec: number;
|
|
180
|
+
staggerSec: number;
|
|
181
|
+
ease: EaseName;
|
|
182
|
+
};
|
|
183
|
+
export type AnimConfig = {
|
|
184
|
+
intro: AnimIntroConfig;
|
|
185
|
+
reduceMotion: boolean;
|
|
186
|
+
};
|
|
187
|
+
export type BorderConfig = {
|
|
188
|
+
color?: MosaicColor;
|
|
189
|
+
alpha?: number;
|
|
190
|
+
};
|
|
191
|
+
export type ResolvedBorder = {
|
|
192
|
+
color: MosaicColor;
|
|
193
|
+
alpha: number;
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* The canonical props interface for @m0saic/charts/line-chart/v1.
|
|
197
|
+
*
|
|
198
|
+
* Required:
|
|
199
|
+
* values — one series (number[]) OR many series (number[][]).
|
|
200
|
+
*
|
|
201
|
+
* Everything else is optional with defaults in defaults.ts.
|
|
202
|
+
*/
|
|
203
|
+
/**
|
|
204
|
+
* FLAT internal prop shape — what the render pipeline (line-series / geometry /
|
|
205
|
+
* card / frame …) consumes. The PUBLIC `LineChartProps` (below) groups these into
|
|
206
|
+
* collapsible sections for the Make panel; `render` flattens grouped → flat once
|
|
207
|
+
* up front (`flattenLineChartProps`), so the machinery stays flat + untouched.
|
|
208
|
+
*/
|
|
209
|
+
export type LineChartFlat = {
|
|
210
|
+
/** One series, or many (multi-series core). */
|
|
211
|
+
values: number[] | number[][];
|
|
212
|
+
seriesLabels?: string[];
|
|
213
|
+
labels?: string[];
|
|
214
|
+
xValues?: number[];
|
|
215
|
+
minValue?: number;
|
|
216
|
+
maxValue?: number;
|
|
217
|
+
minX?: number;
|
|
218
|
+
maxX?: number;
|
|
219
|
+
preset?: LineChartPreset;
|
|
220
|
+
backgroundColor?: MosaicColor | "none";
|
|
221
|
+
backgroundImage?: string;
|
|
222
|
+
cornerRadius?: number;
|
|
223
|
+
border?: BorderConfig;
|
|
224
|
+
padding?: Padding;
|
|
225
|
+
xAxis?: AxisConfigInput;
|
|
226
|
+
yAxis?: AxisConfigInput;
|
|
227
|
+
lineColor?: MosaicColor | MosaicColor[];
|
|
228
|
+
strokeWidth?: number | number[];
|
|
229
|
+
lineStyle?: LineStyle;
|
|
230
|
+
curve?: Curve;
|
|
231
|
+
lineCap?: LineCap;
|
|
232
|
+
lineJoin?: LineJoin;
|
|
233
|
+
area?: AreaConfig;
|
|
234
|
+
showPoints?: boolean;
|
|
235
|
+
pointRadius?: number;
|
|
236
|
+
pointColor?: MosaicColor;
|
|
237
|
+
pointShape?: PointShape;
|
|
238
|
+
pointBorder?: PointBorder;
|
|
239
|
+
highlightIndex?: number;
|
|
240
|
+
highlightLast?: boolean;
|
|
241
|
+
title?: string;
|
|
242
|
+
subtitle?: string;
|
|
243
|
+
titleColor?: MosaicColor;
|
|
244
|
+
titleSize?: number;
|
|
245
|
+
titleAlign?: TextAlign;
|
|
246
|
+
legend?: LegendConfig;
|
|
247
|
+
valueLabels?: ValueLabelsConfig;
|
|
248
|
+
anim?: AnimConfig;
|
|
249
|
+
reduceMotion?: boolean;
|
|
250
|
+
debugLayout?: boolean;
|
|
251
|
+
theme?: ThemeSourceConfig;
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* PUBLIC props — grouped into collapsible sections (flat props first would still
|
|
255
|
+
* read as a wall; the Make panel only nests via `type:"group"`). Data stays up
|
|
256
|
+
* top (values / series / x-labels); everything else lives under a labeled group.
|
|
257
|
+
* `render` maps this onto `LineChartFlat` via `flattenLineChartProps`.
|
|
258
|
+
*/
|
|
259
|
+
export type LineChartProps = {
|
|
260
|
+
/** One series, or many (multi-series core). Required. */
|
|
261
|
+
values: number[] | number[][];
|
|
262
|
+
/** Legend names (index-aligned to series). */
|
|
263
|
+
seriesLabels?: string[];
|
|
264
|
+
/** Categorical x tick labels. */
|
|
265
|
+
labels?: string[];
|
|
266
|
+
/** Axis domain overrides + explicit numeric x values. */
|
|
267
|
+
domain?: {
|
|
268
|
+
xValues?: number[];
|
|
269
|
+
minValue?: number;
|
|
270
|
+
maxValue?: number;
|
|
271
|
+
minX?: number;
|
|
272
|
+
maxX?: number;
|
|
273
|
+
};
|
|
274
|
+
/** Line stroke (single or per-series) + area fill. */
|
|
275
|
+
line?: {
|
|
276
|
+
lineColor?: MosaicColor | MosaicColor[];
|
|
277
|
+
strokeWidth?: number | number[];
|
|
278
|
+
lineStyle?: LineStyle;
|
|
279
|
+
curve?: Curve;
|
|
280
|
+
lineCap?: LineCap;
|
|
281
|
+
lineJoin?: LineJoin;
|
|
282
|
+
area?: AreaConfig;
|
|
283
|
+
};
|
|
284
|
+
/** Vertex markers + highlight. */
|
|
285
|
+
points?: {
|
|
286
|
+
showPoints?: boolean;
|
|
287
|
+
pointRadius?: number;
|
|
288
|
+
pointColor?: MosaicColor;
|
|
289
|
+
pointShape?: PointShape;
|
|
290
|
+
pointBorder?: PointBorder;
|
|
291
|
+
highlightIndex?: number;
|
|
292
|
+
highlightLast?: boolean;
|
|
293
|
+
};
|
|
294
|
+
/** X + Y axis lines, labels, grid, ticks. */
|
|
295
|
+
axes?: {
|
|
296
|
+
xAxis?: AxisConfigInput;
|
|
297
|
+
yAxis?: AxisConfigInput;
|
|
298
|
+
};
|
|
299
|
+
/** Color scheme (preset) + card surface. */
|
|
300
|
+
appearance?: {
|
|
301
|
+
preset?: LineChartPreset;
|
|
302
|
+
backgroundColor?: MosaicColor | "none";
|
|
303
|
+
backgroundImage?: string;
|
|
304
|
+
cornerRadius?: number;
|
|
305
|
+
padding?: Padding;
|
|
306
|
+
border?: BorderConfig;
|
|
307
|
+
};
|
|
308
|
+
/** Chart title + subtitle. */
|
|
309
|
+
titles?: {
|
|
310
|
+
title?: string;
|
|
311
|
+
subtitle?: string;
|
|
312
|
+
titleColor?: MosaicColor;
|
|
313
|
+
titleSize?: number;
|
|
314
|
+
titleAlign?: TextAlign;
|
|
315
|
+
};
|
|
316
|
+
legend?: LegendConfig;
|
|
317
|
+
valueLabels?: ValueLabelsConfig;
|
|
318
|
+
/** Intro draw-on animation (+ reduceMotion). */
|
|
319
|
+
anim?: AnimConfig;
|
|
320
|
+
/** Dev-only: draw the layout contract instead of the chart. */
|
|
321
|
+
debugLayout?: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* Opt into a theme SOURCE. Omit → reads the default "theme" namespace off ctx
|
|
324
|
+
* and falls back to the resolved preset's tokens (auto-themes as a child,
|
|
325
|
+
* byte-identical standalone). Provide a `slug` to self-seed from a producer.
|
|
326
|
+
*/
|
|
327
|
+
theme?: ThemeSourceConfig;
|
|
328
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ============================================================================
|
|
4
|
+
* @m0saic/charts/line-chart — Shared Types
|
|
5
|
+
* ============================================================================
|
|
6
|
+
*
|
|
7
|
+
* Single source of truth for every TypeScript type shared across the
|
|
8
|
+
* line-chart template family (public + all internals).
|
|
9
|
+
*
|
|
10
|
+
* RULE (mirrors bar-graph):
|
|
11
|
+
* - Public props (LineChartProps) are PERMISSIVE — unions, single-or-array,
|
|
12
|
+
* px shorthands. The top-level template resolves them.
|
|
13
|
+
* - Internals receive fully-RESOLVED types (no unions, fractions/px decided).
|
|
14
|
+
* - Keep types PURE — no runtime values. Type-only imports are erased at
|
|
15
|
+
* compile, so `import type` from template-utils (e.g. ThemeSourceConfig) is fine.
|
|
16
|
+
* ============================================================================
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
// ---------------------------------------------------------------------------
|
|
20
|
+
// Internal template props
|
|
21
|
+
// ---------------------------------------------------------------------------
|
|
22
|
+
// Internal-template props (ChromeProps) live next to their template in
|
|
23
|
+
// chrome.ts; the data layer + card surface are plain builders, not nested
|
|
24
|
+
// templates, so they need no prop types here.
|