@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,607 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* The tiler — exact cover of the unit lattice by menu spans.
|
|
4
|
+
*
|
|
5
|
+
* Three stages, all deterministic under a seeded rng:
|
|
6
|
+
*
|
|
7
|
+
* 1. `planUpgrades` — every image starts at 1×1 and the extra area
|
|
8
|
+
* E = C·R − N is spent as span upgrades: cost-driven first (portraits buy
|
|
9
|
+
* 1×2, panoramas buy 3×1), then taste-driven (seeded picks among
|
|
10
|
+
* near-neutral upgrades — this is where the hero 2×2s come from). Every
|
|
11
|
+
* move preserves the BAND-FEASIBILITY invariant (`bandFeasible`): the
|
|
12
|
+
* aggregate shelf accounting 3·⌈W₃/C⌉ + 2·⌈W₂/C⌉ ≤ R must keep holding,
|
|
13
|
+
* so the plan never demands more tall bands than the lattice has rows —
|
|
14
|
+
* without this, portrait-heavy mixes plan themselves into unrepairable
|
|
15
|
+
* F2 loops.
|
|
16
|
+
* 2. Group split — the columns are cut into 1–3 vertical groups, each
|
|
17
|
+
* shelf-tiled independently. Bands never align across groups, which is the
|
|
18
|
+
* staggered-masonry look the seed collage has (plain shelves cannot
|
|
19
|
+
* produce it: the seed crosses EVERY interior row boundary).
|
|
20
|
+
* 3. Shelf tiling per group with a bounded repair loop: on a packing failure
|
|
21
|
+
* the culprit downgrades one step — FAILURE-AWARE (F2 prefers shorter
|
|
22
|
+
* replacement spans, F1/F3 narrower ones) — and the freed area re-spends
|
|
23
|
+
* on untouched images under the same band-feasibility filter (never
|
|
24
|
+
* re-upgrading a downgraded image), so the touched set only grows and
|
|
25
|
+
* every image's area only shrinks after first touch. The terminal state
|
|
26
|
+
* (all 1×1 + fillers) always tiles row-major; under the soft crop budget
|
|
27
|
+
* fillers should never survive the candidate search (tests assert zero on
|
|
28
|
+
* realistic densities).
|
|
29
|
+
*/
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
exports.bandFeasible = bandFeasible;
|
|
32
|
+
exports.planUpgrades = planUpgrades;
|
|
33
|
+
exports.groupPlans = groupPlans;
|
|
34
|
+
exports.downgradeOf = downgradeOf;
|
|
35
|
+
exports.tileStaggered = tileStaggered;
|
|
36
|
+
const classify_1 = require("./classify");
|
|
37
|
+
// ── band feasibility (the invariant that keeps plans shelvable) ──
|
|
38
|
+
/** Width totals by span height (h1 is implied by area conservation). */
|
|
39
|
+
function heightWidths(spans) {
|
|
40
|
+
let W2 = 0, W3 = 0;
|
|
41
|
+
for (const s of spans) {
|
|
42
|
+
const { c, r } = classify_1.SPAN_MENU[s];
|
|
43
|
+
if (r === 2)
|
|
44
|
+
W2 += c;
|
|
45
|
+
else if (r === 3)
|
|
46
|
+
W3 += c;
|
|
47
|
+
}
|
|
48
|
+
return { W2, W3 };
|
|
49
|
+
}
|
|
50
|
+
/** Aggregate shelf accounting: the tall bands demanded must fit the rows. */
|
|
51
|
+
function bandFeasible(W2, W3, cols, rows) {
|
|
52
|
+
const n3 = W3 > 0 ? Math.ceil(W3 / cols) : 0;
|
|
53
|
+
const n2 = W2 > 0 ? Math.ceil(W2 / cols) : 0;
|
|
54
|
+
return 3 * n3 + 2 * n2 <= rows;
|
|
55
|
+
}
|
|
56
|
+
const heightDelta = (from, to) => {
|
|
57
|
+
const d = { dW2: 0, dW3: 0 };
|
|
58
|
+
const f = classify_1.SPAN_MENU[from], t = classify_1.SPAN_MENU[to];
|
|
59
|
+
if (f.r === 2)
|
|
60
|
+
d.dW2 -= f.c;
|
|
61
|
+
if (f.r === 3)
|
|
62
|
+
d.dW3 -= f.c;
|
|
63
|
+
if (t.r === 2)
|
|
64
|
+
d.dW2 += t.c;
|
|
65
|
+
if (t.r === 3)
|
|
66
|
+
d.dW3 += t.c;
|
|
67
|
+
return d;
|
|
68
|
+
};
|
|
69
|
+
function makeCostLookup(menus) {
|
|
70
|
+
const maps = menus.map((m) => new Map(m.options.map((o) => [o.span, o.cost])));
|
|
71
|
+
return (i, s) => {
|
|
72
|
+
const c = maps[i].get(s);
|
|
73
|
+
if (c == null)
|
|
74
|
+
throw new Error(`no cost for image ${i} span ${s} (span does not fit the lattice)`);
|
|
75
|
+
return c;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
const moveOrder = (a, b) => b.gain - a.gain ||
|
|
79
|
+
a.delta - b.delta ||
|
|
80
|
+
a.imageIndex - b.imageIndex ||
|
|
81
|
+
classify_1.SPAN_CLASSES.indexOf(a.span) - classify_1.SPAN_CLASSES.indexOf(b.span);
|
|
82
|
+
/** All upgrade moves from `span` for one image, best-first. Static per (image, span). */
|
|
83
|
+
function upgradesFrom(imageIndex, span, fitting, costOf) {
|
|
84
|
+
const curArea = (0, classify_1.spanArea)(span);
|
|
85
|
+
const curCost = costOf(imageIndex, span);
|
|
86
|
+
const moves = [];
|
|
87
|
+
for (const s of fitting) {
|
|
88
|
+
const delta = (0, classify_1.spanArea)(s) - curArea;
|
|
89
|
+
if (delta <= 0)
|
|
90
|
+
continue;
|
|
91
|
+
moves.push({ imageIndex, span: s, delta, gain: (curCost - costOf(imageIndex, s)) / delta });
|
|
92
|
+
}
|
|
93
|
+
return moves.sort(moveOrder);
|
|
94
|
+
}
|
|
95
|
+
/** Near-neutral gain window for the taste phase (seeded hero picking). */
|
|
96
|
+
const TASTE_GAIN_FLOOR = -0.02;
|
|
97
|
+
const TASTE_POOL = 4;
|
|
98
|
+
/**
|
|
99
|
+
* Spend E = cols·rows − count as upgrades, keeping band feasibility. The rng
|
|
100
|
+
* only picks among near-equivalent taste upgrades. O(E·N·menu).
|
|
101
|
+
*/
|
|
102
|
+
function planUpgrades(cols, rows, menus, rng) {
|
|
103
|
+
const count = menus.length;
|
|
104
|
+
const fitting = (0, classify_1.fittingSpans)(cols, rows);
|
|
105
|
+
const costOf = makeCostLookup(menus);
|
|
106
|
+
const current = new Array(count).fill("1x1");
|
|
107
|
+
const moveLists = current.map((s, i) => upgradesFrom(i, s, fitting, costOf));
|
|
108
|
+
let { W2, W3 } = heightWidths(current);
|
|
109
|
+
let E = cols * rows - count;
|
|
110
|
+
if (E < 0)
|
|
111
|
+
throw new Error(`planUpgrades: lattice ${cols}×${rows} smaller than image count ${count}`);
|
|
112
|
+
/** Images excluded from further upgrades after a parity stuck-repair. */
|
|
113
|
+
const parked = new Set();
|
|
114
|
+
let stuckRepairs = 0;
|
|
115
|
+
const admissible = (i) => {
|
|
116
|
+
for (const m of moveLists[i]) {
|
|
117
|
+
if (m.delta > E)
|
|
118
|
+
continue;
|
|
119
|
+
const { dW2, dW3 } = heightDelta(current[i], m.span);
|
|
120
|
+
if (!bandFeasible(W2 + dW2, W3 + dW3, cols, rows))
|
|
121
|
+
continue;
|
|
122
|
+
return m;
|
|
123
|
+
}
|
|
124
|
+
return undefined;
|
|
125
|
+
};
|
|
126
|
+
const apply = (i, span, dE) => {
|
|
127
|
+
const { dW2, dW3 } = heightDelta(current[i], span);
|
|
128
|
+
W2 += dW2;
|
|
129
|
+
W3 += dW3;
|
|
130
|
+
current[i] = span;
|
|
131
|
+
moveLists[i] = upgradesFrom(i, span, fitting, costOf);
|
|
132
|
+
E -= dE;
|
|
133
|
+
};
|
|
134
|
+
while (E > 0) {
|
|
135
|
+
// Per-image best admissible move; global best + a small taste pool.
|
|
136
|
+
let best;
|
|
137
|
+
const pool = [];
|
|
138
|
+
for (let i = 0; i < count; i++) {
|
|
139
|
+
if (parked.has(i))
|
|
140
|
+
continue;
|
|
141
|
+
const m = admissible(i);
|
|
142
|
+
if (!m)
|
|
143
|
+
continue;
|
|
144
|
+
if (!best || moveOrder(m, best) < 0)
|
|
145
|
+
best = m;
|
|
146
|
+
if (m.gain >= TASTE_GAIN_FLOOR) {
|
|
147
|
+
pool.push(m);
|
|
148
|
+
pool.sort(moveOrder);
|
|
149
|
+
if (pool.length > TASTE_POOL)
|
|
150
|
+
pool.pop();
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
if (!best) {
|
|
154
|
+
// No single move fits (parity gap, or every path is band-blocked at the
|
|
155
|
+
// intermediate state — e.g. {1x2,1x2}→{1x3,1x3} on a 2×3). Search for a
|
|
156
|
+
// COORDINATED pair: two images change spans atomically, combined area
|
|
157
|
+
// delta exactly E, only the END state must be band-feasible.
|
|
158
|
+
let pair;
|
|
159
|
+
for (let i = 0; i < count; i++) {
|
|
160
|
+
for (let j = i + 1; j < count; j++) {
|
|
161
|
+
for (const si of fitting) {
|
|
162
|
+
if (si === current[i])
|
|
163
|
+
continue;
|
|
164
|
+
const di = (0, classify_1.spanArea)(si) - (0, classify_1.spanArea)(current[i]);
|
|
165
|
+
for (const sj of fitting) {
|
|
166
|
+
if (sj === current[j])
|
|
167
|
+
continue;
|
|
168
|
+
const dj = (0, classify_1.spanArea)(sj) - (0, classify_1.spanArea)(current[j]);
|
|
169
|
+
if (di + dj !== E)
|
|
170
|
+
continue;
|
|
171
|
+
const a = heightDelta(current[i], si);
|
|
172
|
+
const b = heightDelta(current[j], sj);
|
|
173
|
+
if (!bandFeasible(W2 + a.dW2 + b.dW2, W3 + a.dW3 + b.dW3, cols, rows))
|
|
174
|
+
continue;
|
|
175
|
+
const gain = costOf(i, current[i]) - costOf(i, si) + (costOf(j, current[j]) - costOf(j, sj));
|
|
176
|
+
if (!pair || gain > pair.gain)
|
|
177
|
+
pair = { i, si, j, sj, gain };
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
if (pair) {
|
|
183
|
+
apply(pair.i, pair.si, (0, classify_1.spanArea)(pair.si) - (0, classify_1.spanArea)(current[pair.i]));
|
|
184
|
+
apply(pair.j, pair.sj, (0, classify_1.spanArea)(pair.sj) - (0, classify_1.spanArea)(current[pair.j]));
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
// Last resort: step one image DOWN so a bigger move can close the gap;
|
|
188
|
+
// park it so it can't bounce back up.
|
|
189
|
+
if (++stuckRepairs > count)
|
|
190
|
+
throw new Error(`planUpgrades: cannot spend remaining ${E} units on ${cols}×${rows} (internal)`);
|
|
191
|
+
const candidates = current
|
|
192
|
+
.map((s, i) => ({ i, area: (0, classify_1.spanArea)(s) }))
|
|
193
|
+
.filter(({ area }) => area > 1)
|
|
194
|
+
.sort((a, b) => b.area - a.area || a.i - b.i);
|
|
195
|
+
if (candidates.length === 0)
|
|
196
|
+
throw new Error(`planUpgrades: stuck with E=${E} and all images at 1×1 (internal)`);
|
|
197
|
+
const victim = candidates[0];
|
|
198
|
+
const down = downgradeOf(current[victim.i], fitting, (s) => costOf(victim.i, s), {
|
|
199
|
+
feasible: (s) => {
|
|
200
|
+
const { dW2, dW3 } = heightDelta(current[victim.i], s);
|
|
201
|
+
return bandFeasible(W2 + dW2, W3 + dW3, cols, rows);
|
|
202
|
+
},
|
|
203
|
+
});
|
|
204
|
+
if (!down)
|
|
205
|
+
throw new Error(`planUpgrades: image ${victim.i} at ${current[victim.i]} cannot shrink (internal)`);
|
|
206
|
+
apply(victim.i, down, -(victim.area - (0, classify_1.spanArea)(down)));
|
|
207
|
+
parked.add(victim.i);
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
// Cost phase: clear positive-gain winner. Taste phase: seeded pick among
|
|
211
|
+
// the near-neutral top of the pool (which images become heroes).
|
|
212
|
+
let pick = best;
|
|
213
|
+
if (best.gain <= 0 && pool.length > 1)
|
|
214
|
+
pick = pool[Math.floor(rng() * pool.length)];
|
|
215
|
+
apply(pick.imageIndex, pick.span, pick.delta);
|
|
216
|
+
}
|
|
217
|
+
const assignments = current.map((span, imageIndex) => ({
|
|
218
|
+
imageIndex,
|
|
219
|
+
span,
|
|
220
|
+
cost: costOf(imageIndex, span),
|
|
221
|
+
}));
|
|
222
|
+
return { assignments, totalArea: assignments.reduce((a, x) => a + (0, classify_1.spanArea)(x.span), 0) };
|
|
223
|
+
}
|
|
224
|
+
// ── group plans ──────────────────────────────────────────────
|
|
225
|
+
/**
|
|
226
|
+
* Candidate column-group splits, stagger-first. G1 (no split) is always last:
|
|
227
|
+
* it always partitions, so the pipeline cannot dead-end.
|
|
228
|
+
*/
|
|
229
|
+
function groupPlans(cols, maxSpanWidth, rng) {
|
|
230
|
+
const plans = [];
|
|
231
|
+
const push = (widths) => {
|
|
232
|
+
if (widths.some((w) => w < 1))
|
|
233
|
+
return;
|
|
234
|
+
if (Math.max(...widths) < maxSpanWidth)
|
|
235
|
+
return; // widest span must fit somewhere
|
|
236
|
+
const key = widths.join(",");
|
|
237
|
+
if (!plans.some((p) => p.join(",") === key))
|
|
238
|
+
plans.push(widths);
|
|
239
|
+
};
|
|
240
|
+
if (cols >= 2 * Math.max(2, maxSpanWidth)) {
|
|
241
|
+
const lo = Math.ceil(cols * 0.38);
|
|
242
|
+
const hi = Math.floor(cols * 0.62);
|
|
243
|
+
const w1 = Math.min(hi, Math.max(lo, Math.round(cols * (0.38 + 0.24 * rng()))));
|
|
244
|
+
push([w1, cols - w1]);
|
|
245
|
+
}
|
|
246
|
+
if (cols >= 3 * Math.max(2, maxSpanWidth)) {
|
|
247
|
+
const third = Math.floor(cols / 3);
|
|
248
|
+
push([third, third, cols - 2 * third]);
|
|
249
|
+
}
|
|
250
|
+
if (cols >= 2 * Math.max(2, maxSpanWidth))
|
|
251
|
+
push([Math.ceil(cols / 2), Math.floor(cols / 2)]);
|
|
252
|
+
push([cols]);
|
|
253
|
+
return plans;
|
|
254
|
+
}
|
|
255
|
+
/** Greedy area partition of spans into groups. Returns per-group span lists, or null. */
|
|
256
|
+
function partitionToGroups(assignments, widths, rows) {
|
|
257
|
+
const remaining = widths.map((w) => w * rows);
|
|
258
|
+
const groups = widths.map(() => []);
|
|
259
|
+
const order = [...assignments].sort((a, b) => (0, classify_1.spanArea)(b.span) - (0, classify_1.spanArea)(a.span) || a.imageIndex - b.imageIndex);
|
|
260
|
+
for (const a of order) {
|
|
261
|
+
const area = (0, classify_1.spanArea)(a.span);
|
|
262
|
+
const { c, r } = classify_1.SPAN_MENU[a.span];
|
|
263
|
+
let best = -1;
|
|
264
|
+
for (let g = 0; g < widths.length; g++) {
|
|
265
|
+
if (c > widths[g] || r > rows || remaining[g] < area)
|
|
266
|
+
continue;
|
|
267
|
+
if (best === -1 || remaining[g] > remaining[best])
|
|
268
|
+
best = g;
|
|
269
|
+
}
|
|
270
|
+
if (best === -1)
|
|
271
|
+
return null;
|
|
272
|
+
groups[best].push(a);
|
|
273
|
+
remaining[best] -= area;
|
|
274
|
+
}
|
|
275
|
+
return remaining.every((r) => r === 0) ? groups : null;
|
|
276
|
+
}
|
|
277
|
+
/** Exact-sum run fill from a width-multiset pool. Mutates `pool` on success. */
|
|
278
|
+
function exactFill(pool, target) {
|
|
279
|
+
const widthOf = (a) => classify_1.SPAN_MENU[a.span].c;
|
|
280
|
+
const sorted = [...pool].sort((a, b) => widthOf(b) - widthOf(a) || a.imageIndex - b.imageIndex);
|
|
281
|
+
const picked = [];
|
|
282
|
+
const used = new Set();
|
|
283
|
+
let remaining = target;
|
|
284
|
+
let steps = 0;
|
|
285
|
+
let from = 0;
|
|
286
|
+
while (remaining > 0) {
|
|
287
|
+
if (++steps > 500)
|
|
288
|
+
return null;
|
|
289
|
+
let found = -1;
|
|
290
|
+
for (let i = from; i < sorted.length; i++) {
|
|
291
|
+
if (used.has(i))
|
|
292
|
+
continue;
|
|
293
|
+
if (widthOf(sorted[i]) <= remaining) {
|
|
294
|
+
found = i;
|
|
295
|
+
break;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
if (found === -1) {
|
|
299
|
+
const last = picked.pop();
|
|
300
|
+
if (last == null)
|
|
301
|
+
return null;
|
|
302
|
+
used.delete(last);
|
|
303
|
+
remaining += widthOf(sorted[last]);
|
|
304
|
+
from = last + 1;
|
|
305
|
+
continue;
|
|
306
|
+
}
|
|
307
|
+
picked.push(found);
|
|
308
|
+
used.add(found);
|
|
309
|
+
remaining -= widthOf(sorted[found]);
|
|
310
|
+
from = 0;
|
|
311
|
+
}
|
|
312
|
+
const chosen = picked.map((i) => sorted[i]);
|
|
313
|
+
for (const c of chosen)
|
|
314
|
+
pool.splice(pool.indexOf(c), 1);
|
|
315
|
+
return chosen;
|
|
316
|
+
}
|
|
317
|
+
/** First-fit-decreasing of spans into `bins` of capacity `width`. Null on overflow. */
|
|
318
|
+
function ffd(spans, bins, width) {
|
|
319
|
+
const packs = Array.from({ length: bins }, () => []);
|
|
320
|
+
const room = new Array(bins).fill(width);
|
|
321
|
+
const order = [...spans].sort((a, b) => classify_1.SPAN_MENU[b.span].c - classify_1.SPAN_MENU[a.span].c || a.imageIndex - b.imageIndex);
|
|
322
|
+
for (const s of order) {
|
|
323
|
+
const w = classify_1.SPAN_MENU[s.span].c;
|
|
324
|
+
const g = room.findIndex((r) => r >= w);
|
|
325
|
+
if (g === -1)
|
|
326
|
+
return null;
|
|
327
|
+
packs[g].push(s);
|
|
328
|
+
room[g] -= w;
|
|
329
|
+
}
|
|
330
|
+
return packs;
|
|
331
|
+
}
|
|
332
|
+
const shuffled = (xs, rng) => {
|
|
333
|
+
const out = [...xs];
|
|
334
|
+
for (let i = out.length - 1; i > 0; i--) {
|
|
335
|
+
const j = Math.floor(rng() * (i + 1));
|
|
336
|
+
[out[i], out[j]] = [out[j], out[i]];
|
|
337
|
+
}
|
|
338
|
+
return out;
|
|
339
|
+
};
|
|
340
|
+
/** Assemble bands + fill segments once, for a fixed band composition. */
|
|
341
|
+
function assembleBands(bins3, bins2, n1, h1, c0, width, rng) {
|
|
342
|
+
const bands = shuffled([
|
|
343
|
+
...bins3.map((b) => ({ h: 3, chunks: b })),
|
|
344
|
+
...bins2.map((b) => ({ h: 2, chunks: b })),
|
|
345
|
+
...Array.from({ length: n1 }, () => ({ h: 1, chunks: [] })),
|
|
346
|
+
], rng);
|
|
347
|
+
const pool = [...h1];
|
|
348
|
+
const placed = [];
|
|
349
|
+
let r0 = 0;
|
|
350
|
+
for (const band of bands) {
|
|
351
|
+
const chunkWidth = band.chunks.reduce((a, s) => a + classify_1.SPAN_MENU[s.span].c, 0);
|
|
352
|
+
const leftover = width - chunkWidth;
|
|
353
|
+
const runs = [];
|
|
354
|
+
for (let sub = 0; sub < (leftover > 0 ? band.h : 0); sub++) {
|
|
355
|
+
const run = exactFill(pool, leftover);
|
|
356
|
+
if (!run) {
|
|
357
|
+
for (const r of runs)
|
|
358
|
+
pool.push(...r);
|
|
359
|
+
return { pool };
|
|
360
|
+
}
|
|
361
|
+
runs.push(run);
|
|
362
|
+
}
|
|
363
|
+
const items = band.chunks.map((s) => ({
|
|
364
|
+
w: classify_1.SPAN_MENU[s.span].c,
|
|
365
|
+
place: (x) => placed.push({ imageIndex: s.imageIndex, span: s.span, c0: x, r0, cs: classify_1.SPAN_MENU[s.span].c, rs: band.h }),
|
|
366
|
+
}));
|
|
367
|
+
if (leftover > 0) {
|
|
368
|
+
items.push({
|
|
369
|
+
w: leftover,
|
|
370
|
+
place: (x) => {
|
|
371
|
+
runs.forEach((run, sub) => {
|
|
372
|
+
let rx = x;
|
|
373
|
+
for (const s of run) {
|
|
374
|
+
placed.push({ imageIndex: s.imageIndex, span: s.span, c0: rx, r0: r0 + sub, cs: classify_1.SPAN_MENU[s.span].c, rs: 1 });
|
|
375
|
+
rx += classify_1.SPAN_MENU[s.span].c;
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
},
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
let x = c0;
|
|
382
|
+
for (const item of shuffled(items, rng)) {
|
|
383
|
+
item.place(x);
|
|
384
|
+
x += item.w;
|
|
385
|
+
}
|
|
386
|
+
r0 += band.h;
|
|
387
|
+
}
|
|
388
|
+
return { placed };
|
|
389
|
+
}
|
|
390
|
+
function tileGroup(spans, c0, width, rows, rng) {
|
|
391
|
+
const h1 = spans.filter((s) => classify_1.SPAN_MENU[s.span].r === 1);
|
|
392
|
+
const h2 = spans.filter((s) => classify_1.SPAN_MENU[s.span].r === 2);
|
|
393
|
+
const h3 = spans.filter((s) => classify_1.SPAN_MENU[s.span].r === 3);
|
|
394
|
+
const W2 = h2.reduce((a, s) => a + classify_1.SPAN_MENU[s.span].c, 0);
|
|
395
|
+
const W3 = h3.reduce((a, s) => a + classify_1.SPAN_MENU[s.span].c, 0);
|
|
396
|
+
const n3min = W3 > 0 ? Math.ceil(W3 / width) : 0;
|
|
397
|
+
if (3 * n3min > rows)
|
|
398
|
+
return { failure: "F2", culprit: widest(h3) };
|
|
399
|
+
const n2min = W2 > 0 ? Math.ceil(W2 / width) : 0;
|
|
400
|
+
if (3 * n3min + 2 * n2min > rows)
|
|
401
|
+
return { failure: "F2", culprit: widest(h2.length > 0 ? h2 : h3) };
|
|
402
|
+
// Band counts are MINIMUMS: FFD may need extra bands (bin slack), and area
|
|
403
|
+
// conservation holds for any valid count (an extra 2-band trades two
|
|
404
|
+
// 1-bands for 2·width of stacked segment runs). Sweep upward before
|
|
405
|
+
// declaring failure; retry each composition under fresh seeded shuffles.
|
|
406
|
+
let failure = { failure: "F1", culprit: widest(h3.length > 0 ? h3 : h2) };
|
|
407
|
+
const n3max = W3 > 0 ? Math.floor(rows / 3) : 0;
|
|
408
|
+
for (let n3 = n3min; n3 <= n3max || (n3 === 0 && n3max === 0); n3++) {
|
|
409
|
+
const bins3 = n3 > 0 ? ffd(h3, n3, width) : h3.length > 0 ? null : [];
|
|
410
|
+
if (!bins3) {
|
|
411
|
+
if (n3 >= n3max)
|
|
412
|
+
break;
|
|
413
|
+
continue;
|
|
414
|
+
}
|
|
415
|
+
const n2cap = Math.floor((rows - 3 * n3) / 2);
|
|
416
|
+
const n2max = W2 > 0 ? n2cap : 0;
|
|
417
|
+
for (let n2 = n2min; n2 <= n2max || (n2 === 0 && n2max === 0); n2++) {
|
|
418
|
+
const bins2 = n2 > 0 ? ffd(h2, n2, width) : h2.length > 0 ? null : [];
|
|
419
|
+
if (!bins2) {
|
|
420
|
+
failure = { failure: "F1", culprit: widest(h2) };
|
|
421
|
+
if (n2 >= n2max)
|
|
422
|
+
break;
|
|
423
|
+
continue;
|
|
424
|
+
}
|
|
425
|
+
const n1 = rows - 3 * n3 - 2 * n2;
|
|
426
|
+
for (let retry = 0; retry < 3; retry++) {
|
|
427
|
+
const res = assembleBands(bins3, bins2, n1, h1, c0, width, rng);
|
|
428
|
+
if ("placed" in res)
|
|
429
|
+
return res;
|
|
430
|
+
failure = { failure: "F3", culprit: widest(res.pool) };
|
|
431
|
+
}
|
|
432
|
+
if (n2 >= n2max)
|
|
433
|
+
break;
|
|
434
|
+
}
|
|
435
|
+
if (n3 >= n3max)
|
|
436
|
+
break;
|
|
437
|
+
}
|
|
438
|
+
return failure;
|
|
439
|
+
}
|
|
440
|
+
const widest = (spans) => {
|
|
441
|
+
// Repair victims: real images only (fillers are already minimal 1×1s).
|
|
442
|
+
const real = spans.filter((s) => s.imageIndex >= 0);
|
|
443
|
+
return [...(real.length > 0 ? real : spans)].sort((a, b) => classify_1.SPAN_MENU[b.span].c - classify_1.SPAN_MENU[a.span].c || b.cost - a.cost || a.imageIndex - b.imageIndex)[0];
|
|
444
|
+
};
|
|
445
|
+
/** One step down the ladder: the largest strictly-smaller area with a fitting span. */
|
|
446
|
+
function downgradeOf(span, fitting, costOf, prefs = {}) {
|
|
447
|
+
const area = (0, classify_1.spanArea)(span);
|
|
448
|
+
for (let target = area - 1; target >= 1; target--) {
|
|
449
|
+
const opts = fitting
|
|
450
|
+
.filter((s) => (0, classify_1.spanArea)(s) === target)
|
|
451
|
+
.filter((s) => { var _a, _b; return (_b = (_a = prefs.feasible) === null || _a === void 0 ? void 0 : _a.call(prefs, s)) !== null && _b !== void 0 ? _b : true; })
|
|
452
|
+
.sort((a, b) => {
|
|
453
|
+
if (prefs.preferLowHeight && classify_1.SPAN_MENU[a].r !== classify_1.SPAN_MENU[b].r)
|
|
454
|
+
return classify_1.SPAN_MENU[a].r - classify_1.SPAN_MENU[b].r;
|
|
455
|
+
return costOf(a) - costOf(b) || classify_1.SPAN_CLASSES.indexOf(a) - classify_1.SPAN_CLASSES.indexOf(b);
|
|
456
|
+
});
|
|
457
|
+
if (opts.length > 0)
|
|
458
|
+
return opts[0];
|
|
459
|
+
}
|
|
460
|
+
return null;
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Tile the plan onto the lattice: try stagger-first group plans, shelf-tile
|
|
464
|
+
* each group, repair on failure (failure-aware downgrade + band-feasible
|
|
465
|
+
* group-local re-spend + fillers-as-last-resort), fall back to the single
|
|
466
|
+
* group. Total; the all-1×1 terminal always tiles.
|
|
467
|
+
*/
|
|
468
|
+
function tileStaggered(plan, cols, rows, menus, rng) {
|
|
469
|
+
const fitting = (0, classify_1.fittingSpans)(cols, rows);
|
|
470
|
+
const costOf = makeCostLookup(menus);
|
|
471
|
+
const repairs = [];
|
|
472
|
+
const maxSpanWidth = Math.max(1, ...plan.assignments.map((a) => classify_1.SPAN_MENU[a.span].c));
|
|
473
|
+
const plans = groupPlans(cols, maxSpanWidth, rng);
|
|
474
|
+
for (const widths of plans) {
|
|
475
|
+
// Fresh working copy per plan attempt; repairs are plan-local.
|
|
476
|
+
const work = plan.assignments.map((a) => ({ ...a }));
|
|
477
|
+
const touched = new Set();
|
|
478
|
+
// Each image may receive at most ONE re-spend upgrade per plan: unlimited
|
|
479
|
+
// re-spends let one image ladder 1x1→1x2→1x3→2x2 across repair rounds,
|
|
480
|
+
// rebuilding the exact tall/wide pressure each downgrade just released
|
|
481
|
+
// (observed as a 60-repair oscillation before this cap).
|
|
482
|
+
const respent = new Set();
|
|
483
|
+
// Per-image shapes already tried this plan — bounds the zero-delta swap
|
|
484
|
+
// repair (each image visits a span class at most once).
|
|
485
|
+
const visited = new Map();
|
|
486
|
+
for (const w of work)
|
|
487
|
+
visited.set(w.imageIndex, new Set([w.span]));
|
|
488
|
+
let fillers = 0;
|
|
489
|
+
const budget = 14 * work.length + 8; // downgrade steps + shape swaps
|
|
490
|
+
let attempts = 0;
|
|
491
|
+
attempt: while (attempts++ < budget) {
|
|
492
|
+
const withFillers = [
|
|
493
|
+
...work,
|
|
494
|
+
...Array.from({ length: fillers }, (_, k) => ({ imageIndex: -1 - k, span: "1x1", cost: 0 })),
|
|
495
|
+
];
|
|
496
|
+
const groups = partitionToGroups(withFillers, widths, rows);
|
|
497
|
+
if (!groups)
|
|
498
|
+
break; // this group plan can't partition — next plan
|
|
499
|
+
const placed = [];
|
|
500
|
+
let cOff = 0;
|
|
501
|
+
for (let g = 0; g < widths.length; g++) {
|
|
502
|
+
const res = tileGroup(groups[g], cOff, widths[g], rows, rng);
|
|
503
|
+
if ("failure" in res) {
|
|
504
|
+
const culprit = res.culprit && res.culprit.imageIndex >= 0 ? res.culprit : undefined;
|
|
505
|
+
if (!culprit)
|
|
506
|
+
break attempt; // filler-only failure: structurally impossible; be defensive
|
|
507
|
+
const idx = work.findIndex((w) => w.imageIndex === culprit.imageIndex);
|
|
508
|
+
const hw = () => heightWidths(work.map((w) => w.span));
|
|
509
|
+
// FIRST try a zero-delta SHAPE SWAP (2x1↔1x2, 3x1↔1x3, 2x2↔4x1):
|
|
510
|
+
// most small-lattice failures are shape mismatches, not area
|
|
511
|
+
// problems — a swap fixes them without freeing area that then needs
|
|
512
|
+
// re-spending. Bounded by the per-image visited-shapes set.
|
|
513
|
+
const seen = visited.get(culprit.imageIndex);
|
|
514
|
+
const swap = fitting
|
|
515
|
+
.filter((s) => s !== work[idx].span &&
|
|
516
|
+
(0, classify_1.spanArea)(s) === (0, classify_1.spanArea)(work[idx].span) &&
|
|
517
|
+
!seen.has(s) &&
|
|
518
|
+
(() => {
|
|
519
|
+
const cur = hw();
|
|
520
|
+
const { dW2, dW3 } = heightDelta(work[idx].span, s);
|
|
521
|
+
return bandFeasible(cur.W2 + dW2, cur.W3 + dW3, cols, rows);
|
|
522
|
+
})())
|
|
523
|
+
.sort((a, b) => {
|
|
524
|
+
if (res.failure !== "F1" && classify_1.SPAN_MENU[a].r !== classify_1.SPAN_MENU[b].r)
|
|
525
|
+
return classify_1.SPAN_MENU[a].r - classify_1.SPAN_MENU[b].r;
|
|
526
|
+
return (costOf(culprit.imageIndex, a) - costOf(culprit.imageIndex, b) ||
|
|
527
|
+
classify_1.SPAN_CLASSES.indexOf(a) - classify_1.SPAN_CLASSES.indexOf(b));
|
|
528
|
+
})[0];
|
|
529
|
+
if (swap) {
|
|
530
|
+
repairs.push({
|
|
531
|
+
kind: "swap",
|
|
532
|
+
imageIndex: culprit.imageIndex,
|
|
533
|
+
detail: `${res.failure}: ${work[idx].span} ⇄ ${swap}`,
|
|
534
|
+
});
|
|
535
|
+
work[idx].span = swap;
|
|
536
|
+
work[idx].cost = costOf(culprit.imageIndex, swap);
|
|
537
|
+
seen.add(swap);
|
|
538
|
+
continue attempt;
|
|
539
|
+
}
|
|
540
|
+
const down = downgradeOf(work[idx].span, fitting, (s) => costOf(culprit.imageIndex, s), {
|
|
541
|
+
preferLowHeight: res.failure !== "F1",
|
|
542
|
+
feasible: (s) => {
|
|
543
|
+
const cur = hw();
|
|
544
|
+
const { dW2, dW3 } = heightDelta(work[idx].span, s);
|
|
545
|
+
return bandFeasible(cur.W2 + dW2, cur.W3 + dW3, cols, rows);
|
|
546
|
+
},
|
|
547
|
+
});
|
|
548
|
+
if (!down)
|
|
549
|
+
break attempt; // already 1×1 — can't shrink; next plan
|
|
550
|
+
let freed = (0, classify_1.spanArea)(work[idx].span) - (0, classify_1.spanArea)(down);
|
|
551
|
+
repairs.push({
|
|
552
|
+
kind: "downgrade",
|
|
553
|
+
imageIndex: culprit.imageIndex,
|
|
554
|
+
detail: `${res.failure}: ${work[idx].span} → ${down} (freed ${freed})`,
|
|
555
|
+
});
|
|
556
|
+
work[idx].span = down;
|
|
557
|
+
work[idx].cost = costOf(culprit.imageIndex, down);
|
|
558
|
+
touched.add(culprit.imageIndex);
|
|
559
|
+
seen.add(down);
|
|
560
|
+
// Re-spend freed units on untouched images: best band-feasible gain.
|
|
561
|
+
respend: while (freed > 0) {
|
|
562
|
+
const cur = hw();
|
|
563
|
+
let best;
|
|
564
|
+
for (let i = 0; i < work.length; i++) {
|
|
565
|
+
if (touched.has(work[i].imageIndex) || respent.has(work[i].imageIndex))
|
|
566
|
+
continue;
|
|
567
|
+
for (const m of upgradesFrom(i, work[i].span, fitting, (ii, s) => costOf(work[ii].imageIndex, s))) {
|
|
568
|
+
if (m.delta > freed)
|
|
569
|
+
continue;
|
|
570
|
+
const { dW2, dW3 } = heightDelta(work[i].span, m.span);
|
|
571
|
+
if (!bandFeasible(cur.W2 + dW2, cur.W3 + dW3, cols, rows))
|
|
572
|
+
continue;
|
|
573
|
+
if (!best || moveOrder(m, best) < 0)
|
|
574
|
+
best = m;
|
|
575
|
+
break; // move lists are best-first per image
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
if (!best)
|
|
579
|
+
break respend;
|
|
580
|
+
repairs.push({
|
|
581
|
+
kind: "respend",
|
|
582
|
+
imageIndex: work[best.imageIndex].imageIndex,
|
|
583
|
+
detail: `${work[best.imageIndex].span} → ${best.span}`,
|
|
584
|
+
});
|
|
585
|
+
work[best.imageIndex].span = best.span;
|
|
586
|
+
work[best.imageIndex].cost = costOf(work[best.imageIndex].imageIndex, best.span);
|
|
587
|
+
respent.add(work[best.imageIndex].imageIndex);
|
|
588
|
+
freed -= best.delta;
|
|
589
|
+
}
|
|
590
|
+
if (freed > 0) {
|
|
591
|
+
fillers += freed;
|
|
592
|
+
repairs.push({ kind: "filler", imageIndex: -1, detail: `minted ${freed} filler unit(s)` });
|
|
593
|
+
}
|
|
594
|
+
continue attempt;
|
|
595
|
+
}
|
|
596
|
+
placed.push(...res.placed);
|
|
597
|
+
cOff += widths[g];
|
|
598
|
+
}
|
|
599
|
+
// Success.
|
|
600
|
+
const assignments = work.map((w) => ({ ...w })).sort((a, b) => a.imageIndex - b.imageIndex);
|
|
601
|
+
return { placed, assignments, repairs, fillerCount: fillers };
|
|
602
|
+
}
|
|
603
|
+
if (widths.length > 1)
|
|
604
|
+
repairs.push({ kind: "group-collapse", imageIndex: -1, detail: `plan [${widths.join(",")}] abandoned` });
|
|
605
|
+
}
|
|
606
|
+
throw new Error("tileStaggered: no group plan tiled — the G1 terminal state should be total (internal)");
|
|
607
|
+
}
|