diff --git a/.gitattributes b/.gitattributes
index 6418a28b..c9c9118f 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,2 +1,7 @@
tests/assets/performance/**/*.3mf filter=lfs diff=lfs merge=lfs -text
src-tauri/linux/*.sh text eol=lf
+# Preserve the byte hashes of archived benchmark evidence on every platform.
+tests/benchmark/results/cats-exact/** -text whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol
+# Keep committed bytes of hashed text fixtures; CRLF checkouts change their SHA-256.
+*.kfil -text
+tests/assets/performance/**/*.json -text
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..c2d1ae3a
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,193 @@
+name: CI
+
+# Fork pull requests run with a read-only token and no secrets. Keep this on pull_request, never
+# pull_request_target, so PR code never runs with write access.
+on:
+ pull_request:
+ branches:
+ - develop
+ - main
+ # Runs on the base branches also seed the npm, Playwright, and cargo caches that PRs can restore.
+ push:
+ branches:
+ - develop
+ - main
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+concurrency:
+ group: ci-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
+# Runners are pinned rather than ubuntu-latest: Playwright cannot install Chromium on Ubuntu 26.04.
+jobs:
+ checks:
+ name: Lint, build, and unit tests
+ runs-on: ubuntu-24.04
+ timeout-minutes: 30
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ persist-credentials: false
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '22'
+ cache: 'npm'
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Lint
+ run: npm run lint
+
+ - name: Build
+ run: npm run build
+
+ - name: Unit tests
+ run: npm test
+
+ - name: Check that test:e2e:all runs every e2e test
+ run: npm run check:e2e
+
+ e2e_suites:
+ name: List e2e suites
+ runs-on: ubuntu-24.04
+ timeout-minutes: 5
+ outputs:
+ suites: ${{ steps.list.outputs.suites }}
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ persist-credentials: false
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '22'
+
+ # The same list test:e2e:all runs, so new suites reach CI without editing this file.
+ - name: List suites
+ id: list
+ run: echo "suites=$(node scripts/run-e2e-suites.mjs --list)" >> "$GITHUB_OUTPUT"
+
+ e2e:
+ name: E2E (${{ matrix.suite.script }})
+ needs: e2e_suites
+ runs-on: ubuntu-24.04
+ timeout-minutes: 60
+ strategy:
+ fail-fast: false
+ matrix:
+ suite: ${{ fromJSON(needs.e2e_suites.outputs.suites) }}
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ persist-credentials: false
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '22'
+ cache: 'npm'
+
+ - name: Install dependencies
+ run: npm ci
+
+ # ImageOS (for example ubuntu24) keys the browser cache by runner image, so a cache built on
+ # another Ubuntu release is never restored here.
+ - name: Read Playwright version
+ id: playwright
+ run: |
+ echo "version=$(node -p "require('@playwright/test/package.json').version")" >> "$GITHUB_OUTPUT"
+ echo "image=$ImageOS" >> "$GITHUB_OUTPUT"
+
+ - name: Cache Playwright browsers
+ id: browsers
+ uses: actions/cache@v4
+ with:
+ path: ~/.cache/ms-playwright
+ key: playwright-${{ steps.playwright.outputs.image }}-${{ steps.playwright.outputs.version }}-chromium
+
+ - name: Install Playwright Chromium
+ if: steps.browsers.outputs.cache-hit != 'true'
+ run: npx playwright install --with-deps chromium
+
+ - name: Install Playwright system dependencies
+ if: steps.browsers.outputs.cache-hit == 'true'
+ run: npx playwright install-deps chromium
+
+ - name: Run ${{ matrix.suite.script }}
+ env:
+ SUITE_SCRIPT: ${{ matrix.suite.script }}
+ run: npm run "$SUITE_SCRIPT"
+
+ - name: Upload Playwright results
+ if: failure()
+ uses: actions/upload-artifact@v4
+ with:
+ name: playwright-${{ matrix.suite.name }}
+ path: |
+ playwright-report/
+ test-results/
+ if-no-files-found: ignore
+ retention-days: 7
+
+ rust_tests:
+ name: Rust tests (${{ matrix.os }})
+ runs-on: ${{ matrix.os }}
+ timeout-minutes: 45
+ strategy:
+ fail-fast: false
+ matrix:
+ # Each OS compiles different native code (GIO, Launch Services, ShellExecuteEx)
+ # and runs different tests, so one runner cannot cover the others. ubuntu-22.04
+ # matches the release build and still has libwebkit2gtk-4.0-dev.
+ os: [ubuntu-22.04, macos-latest, windows-latest]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ persist-credentials: false
+
+ - name: Install Rust stable
+ uses: dtolnay/rust-toolchain@stable
+
+ # The same packages release.yml installs to build the Linux app.
+ - name: Install Linux dependencies
+ if: runner.os == 'Linux'
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf zsync
+
+ # Caches the cargo registry and src-tauri/target. Pull request runs only restore, so
+ # they do not each fill the repository's cache quota.
+ - name: Cache cargo
+ uses: Swatinem/rust-cache@v2
+ with:
+ workspaces: src-tauri -> target
+ save-if: ${{ github.event_name != 'pull_request' }}
+
+ - name: cargo test
+ working-directory: src-tauri
+ run: cargo test --locked
+
+ # One stable check to require in branch protection, however many suites the matrix has.
+ ci_passed:
+ name: CI passed
+ if: always()
+ needs: [checks, rust_tests, e2e_suites, e2e]
+ runs-on: ubuntu-24.04
+ permissions: {}
+ steps:
+ - name: Require every CI job to pass
+ if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped')
+ run: |
+ echo "Some CI jobs did not pass: ${{ join(needs.*.result, ', ') }}"
+ exit 1
diff --git a/AGENTS.md b/AGENTS.md
index 370205af..4bc235e6 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -76,6 +76,18 @@ Run the focused tests when touching:
For UI-only edits, lint/build is usually enough. For geometry, export, or auto-paint changes, prefer
adding a small regression test over relying on screenshots.
+Browser tests use Playwright. `npm run test:e2e` runs only the `@smoke` tests against the production
+build. Pages such as docs, landing, privacy, terms, 404, and i18n each have their own
+`playwright.*.config.ts` and `test:e2e:*` script, because they need a different server or port. Run
+an area spec only through its own script; under another config it fails with a message naming the
+right one. Before a change lands, run `npm run test:e2e:all`. It runs `@smoke` and then every area
+suite, always on fresh servers, and fails if any suite fails or if any test is outside every suite.
+The pull request workflow (`.github/workflows/ci.yml`) runs the same suites. The `@full` export
+matrix in `kromacut-flow.spec.ts` is too slow for every change (its large-image cases allow 90
+minutes each), so it is excluded; run it with `test:e2e:matrix`, `test:e2e:stress`, or
+`test:e2e:full` when changing the main export flow. A new e2e test must be tagged `@smoke` or
+matched by an area config, and a new area config must be added to `scripts/run-e2e-suites.mjs`.
+
## Changelog Guidance
Update `CHANGELOG.md` under the current unreleased version for most completed changes. In general,
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 987c4b70..cef20364 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,44 @@ All notable changes to Kromacut are documented in this file.
## Unreleased
+## v4.3.0 - 2026-11-22
+
+### Upgrade notes
+
+- **Check the first color's height when rebuilding older work.** When First Layer Height is not a multiple of Layer Height, 4.2.0 could lower the first color by one layer after resizing or Undo/Redo. 4.3.0 keeps the height you set, so a rebuilt model can have a taller first color than an earlier export. Check the color heights and the slicer preview before printing.
+- **Existing profiles and palettes remain compatible.** Check new prints in your slicer as usual.
+
+### Added
+
+- **2D history shortcuts (#163)** - Ctrl/Cmd+Z undoes and Ctrl/Cmd+Shift+Z redoes image edits in 2D. The shortcuts are ignored in editable fields, dialogs, popovers, menus and open select lists, in 3D mode, while cropping, and during processing, and they follow the physical Z key on non-Latin keyboard layouts. Documented in the image adjustments guide, with Playwright regressions for keyboard behavior.
+- **Auto-paint search guidance and cancellation (#103)** - Enhanced matching pauses before searching 1,024 or more distinct target colors, with guidance to quantize photos to 16–32 colors in 2D, disable repeats, or use a Fast / Compact shortcut. The advisory threshold comes from fixed-seed Balanced / Detailed measurements with repeats rather than image dimensions; deeper searches and more filaments can still be slow below it. Running filament searches now have **Cancel Auto-paint**, which terminates the worker and stays stopped until restarted or settings change; debounced requests and late worker messages cannot restart cancelled work. Changing settings invalidates previous Run/Cancel choices, including when returning to earlier values. All 12 languages include the controls, Auto-paint guide, and troubleshooting advice. Regression coverage checks the threshold, worker cancellation and restart, settings round-trips, and exact baseline final stacks and scores for existing image/profile fixtures with seed 12345.
+- **Open in Slicer (desktop)** - The 3D download menu in the desktop app adds **Open in Slicer**, which builds the same 3MF as **Download 3MF** and opens it in a slicer without a Save As dialog. It first asks which app should open the model: **System default** (the system's `.3mf` app), or Bambu Studio, Orca Slicer, PrusaSlicer, and UltiMaker Cura when they are installed in their usual locations: `/Applications` or `~/Applications` on macOS; Program Files or `%LOCALAPPDATA%\Programs` on Windows, including the newest versioned Cura folder (a saved older Cura stays usable after a newer version is installed next to it, #200); and `PATH` commands or Flatpak installs on Linux. **Browse** picks any other app with the native file dialog; only app bundles, `.exe` files, or executables are accepted, and Kromacut remembers up to 16 picked apps, always keeping the saved slicer among them. With **System default**, make your slicer the default app for `.3mf` files first. **Always use this slicer** saves the choice under `kromacut:desktop-slicer`, so later clicks open the model straight away, and the menu shows the saved slicer's name when it is a specific app. When you choose a specific app, Kromacut only launches it if it was detected or picked with **Browse**, never a program named by the web view. **Choose Slicer** in the menu changes or forgets the saved slicer, and so does the **Open in Slicer** row in the desktop Settings dialog, which shows the saved choice (**Ask every time**, **System default**, or the slicer's name and path), works without an image or model, and saves a new choice without exporting or opening anything. Settings and the download menu share one saved choice, so a change in either shows up in the other straight away. Changing or forgetting the saved slicer while Open in Slicer is still checking the previous one does not let that check clear the new choice or open the model in the previous slicer, and a rebuild that finishes during the check is exported with its own head count, pause schedule, and layer heights instead of those of the build shown when **Open in Slicer** was clicked. A slicer chooser opened during the check, for example from **Settings → Change**, is also left alone: the late result does not turn that chooser's **Save** into **Open**, open the model over it, or forget the saved slicer. A saved slicer that was moved or uninstalled is forgotten and the chooser explains why. Closing the chooser returns keyboard focus to the download button or the Settings button. Each model is written to a new file in Kromacut's cache folder, so a slicer that still has an earlier copy open is never overwritten, and copies older than a day are removed on the next handoff. Flatpak slicers receive the model through Flatpak file forwarding, so their sandbox can read it. Failures to write or launch the file, including a missing default app, show a localized error that points to **Download 3MF**; Kromacut does not wait for the slicer to close. Like the rest of the download menu, **Open in Slicer** is disabled while Kromacut rebuilds the 3D preview. The browser version is unchanged. The chooser, menu, Settings row, and export guides are localized into all 12 languages. Added native tests for file naming, collisions, invalid data, cache cleanup, per-platform slicer detection, newest-version selection, a saved older Cura staying launchable after an upgrade, launchable-app validation, the detected-or-picked launch rule, picked-app storage, launch commands, and launcher failures; unit tests for the saved preference, including a slow saved-slicer check that finishes after Settings saves or forgets a slicer, a chooser opens or closes, or a new build finishes; and browser regressions for the desktop handoff, choosing, remembering, changing, browsing, and forgetting a slicer from the menu and Settings, a missing saved slicer, a found, missing, or failed check that finishes while the Settings chooser is open, the browser build without the Settings row, and focus after closing the chooser.
+- **Pull request CI and `test:e2e:all`** - Pull requests into `develop` and `main`, and pushes to them, now run lint, the build, unit tests, the desktop app's Rust tests (`cargo test` on Linux, macOS, and Windows, where the test binary embeds the app's Windows manifest so it can start), and every Playwright e2e suite in parallel jobs, with cached npm packages, Chromium, and cargo builds. The other Linux jobs run on Ubuntu 24.04 rather than `ubuntu-latest` (Ubuntu 26.04), where Playwright cannot install Chromium, and the Chromium cache is keyed by runner image. One `CI passed` check summarizes the result. Fork pull requests get a read-only token and no secrets. `npm run test:e2e:all` runs the same suites locally one after another: the `@smoke` tests, then the docs, landing, privacy, terms, 404, i18n, and i18n build suites, each on a fresh server. It fails if any suite fails, if a Playwright config isn't in the suite list, or if a test isn't run by any suite; the long `@full` export matrix stays on demand. Area specs now refuse to run under the wrong Playwright config and name the script to use. Palette Proof, the Settings legal links, and the adaptive Stack Matrix round trip were not in any suite and now run with `@smoke`.
+- **Multi-head printing guide** - New in-app documentation page explaining Multi-head printing: prerequisites, how layers become color runs and windows, the Head Schedule, the combination search space, Color grouping, and what Fast, Balanced, and Thorough search depth change, with four explanatory diagrams. The guide, navigation metadata, and diagrams are available in all 12 languages, with measured translated labels and reciprocal Auto-paint links. Covers routed preview colors, 3MF head assignments and M600 checkpoints, single-head fallback, and cancellation when the image changes. Regression checks require matching guide metadata and complete diagram catalogs and label bounds; browser coverage loads the guide and all four illustrations in every language.
+- **Multi-head printing** - Auto-paint can analyze per-pixel filament orders across 2–8 heads in a background worker. Successful builds route every color region through its per-layer filament path and scheduled physical head; the preview shows each region’s predicted blend, corrected by the same calibration evidence as single-head builds, and can display its physical filament instead. All smoothing strengths share conforming region boundaries and closed layer geometry, with chunked generation to keep builds responsive. Multi-head 3MFs retain that geometry and physical filament colors, use the selected head count and head assignments, and insert M600 pause markers at exactly the Head Schedule’s swap checkpoints. The download menu offers only 3MF for multi-head builds, as it does for Flat Paint, because STL can't carry head routing; single-head fallback builds still offer STL. Multi-head export progress has no idle stretch reserved for unused work. The Head Schedule takes filament requirements from each region's final path on the layers that region can print, including zero-weight visible regions, so abandoned filaments and unprinted layers above a region do not cause reloads, while useful preloads and idle-head carryover are still allowed; height dithering is resolved on the preview's cropped block grid so the schedule matches the printed surfaces. Selected heads beyond the filament count remain EMPTY, and filaments are assigned to heads so the Head Schedule needs as few swaps as possible. Center/Edge priorities use the same weighted targets as normal Auto-paint; colors with zero regional weight retain printable surfaces through palette matching and finite routing groups without changing weighted centroids. Fast/Balanced/Thorough controls search effort with bounded deterministic sampling. A **Color grouping** control chooses the search targets: Layer-based merges colors sharing a printer layer; Color-based keeps hues separate within a bounded group budget while preserving every member’s original print layer. At least one group is retained per occupied layer, including visible regions with zero regional weight, so capped palettes keep every printable color assigned without changing scoring weights. Color-based can produce more printed colors, but does not guarantee lower color error. Fast fitted-optics simulation nominates a bounded shortlist; windows and final region paths are scored with the full appearance model and usage-weighted CIEDE2000 on the original grouped colors. Fully scored assignments are reused when their physical context is unchanged, avoiding repeated broad searches during reconciliation. The current order remains available during reconciliation, and calibrated preview colors and the 0.25 minimum predicted gain gate are retained. Head count, search depth, color grouping, and the mode toggle persist through fallback builds and retain edits made during analysis; Multi-head and Flat Paint are mutually exclusive. Worker errors, unusable or non-improving plans, and plans whose predicted usage-weighted mean CIEDE2000 gain over the normal stack is below 0.25 retain the normal single-head model, with a notice and its original start color and swaps. Instructions follow the built snapshot, and before the first multi-head build **Copy** gives the same build prompt the panel shows, not single-head swaps; fallback builds copy their single-head plan. Image changes cancel pending analysis and discard obsolete builds. Controls, notices, schedules, copied text, and usage guides are localized into all 12 languages. Added region/filament routing, head/extruder, pause, smoothing/topology, fallback, predicted gain, async lifecycle, worker failure, browser settings-persistence, and 3MF-only download menu regression coverage. Color-group regressions cover capped palettes crossing physical layer boundaries, and calibrated image measurements use final-stack surfaces with CIEDE2000. Added full-model shortlist, proof-anchor, weighted reconciliation, seeded corrected multi-window routing, and bounded-evaluation regressions plus reproducible measured-profile cats/Rocco benchmarks. Head Schedule regressions cover unused loads, active-layer head coverage, shared-block dithering, cropped-pixel scheduling, swap counts, copied instructions, and physical 3MF output.
+- **Awards page and Snapmaker Innovation Fund winner badge** - A new Awards page shows Kromacut's Snapmaker Innovation Fund Winner medal, linked to the Snapmaker Innovation Fund page. It is available in all 12 languages, prerendered for search engines, and listed in the sitemap. The website footer and the Settings links open it; the desktop app opens it in the system browser. The website and the README each gain an Awards section near the bottom. The badges embed Snapmaker's official logo files unaltered. Pages show PNG renders of the badges so Safari and other WebKit views draw the lettering at the right weight. Added route, static-page, Settings-link, and landing browser coverage. Privacy and Terms browser tests cover all eight footer links, and the Privacy suite checks keyboard focus through Awards.
+
+### Changed
+
+- **Auto-paint scoring (#103)** - Reuse the winning CIEDE2000 error and precompute unchanged chroma, uncertainty, and segment values while preserving all target colors, arithmetic, tie breaking, and final stacks. The fixed-seed benchmark records a modest 6.1% reduction in median scoring time at 142,066 targets, with mixed results on smaller palettes; large repeated searches remain expensive. No target approximation or HD/TD storage or rounding change is involved.
+- **Image decoding (#140, #141, #153)** - Imported images are decoded once: the decode that checks an import also supplies the 2D preview, image colors, and build-warning dimensions, and Stack Matrix draws the validated photo with its existing color sampling instead of decoding it again. Edits and Undo/Redo share one decoded snapshot instead of loading the same image separately for each consumer, and Manual 3D geometry, Auto-paint analysis, and Palette Proof image targets read those same pixels. Imported color-profiled images, including translucent and 8-/16-bit Display P3 files, keep their pixel values, swatches, and chosen color order through Undo/Redo, and closely spaced profiled colors stay consistent with the layers that are built and exported. Decoded bitmaps are released once their pixels are copied. While an image is still loading after Undo/Redo, Build waits for it and edits and downloads cannot use the previous image; image panels keep their size and show updating feedback. Large images show their size before color scanning finishes, and a localized checking indicator appears only when checking takes longer than 150 ms. Added browser regressions for one-decode imports, shared edit and history decodes, obsolete loads, bitmap cleanup, delayed import feedback, Display P3 import/history fidelity, chosen layer-order preservation, profiled 3D layers and watertight 3MF regions, shared Auto-paint and Palette Proof pixels without additional decodes, builds disabled during pending history loads, and EXIF-rotated Stack Matrix photos.
+
+### Fixed
+
+- **Exporting during a rebuild** - Downloading an STL or 3MF, or using **Open in Slicer**, in the moment after **Build** is clicked could export the previous build's mesh with the new build's settings. For example, a routed multi-head model rebuilt as single-head could export the old head assignments without their swap pause. The old model is no longer offered for export once a new build starts. The 3D download menu stays disabled until the build finishes, and the preview actions behind the build overlay can no longer be reached by keyboard or screen reader. Added a browser regression that holds a multi-head to single-head rebuild open and checks that the keyboard cannot reach the export controls, and that the finished export matches the new build.
+- **Concurrent 2D edits (#163)** - Quantize and dedither now block competing image edits, imports and undo/redo until they finish, and stale asynchronous results (resize, crop, bake, swatch apply, imports) are discarded once the image or processing state changes. An open text draft is kept if processing produces no output. Brush, eraser and text edits not yet saved to history when processing starts are rolled back instead of staying on the canvas without an undo step, and a pending slider adjustment (from the keyboard or a just-released drag) is committed as soon as focus moves to another control instead of being refused by processing that starts on the same click. Playwright regressions cover each race.
+- **Touch-up history (#153)** - Cropping right after a brush, eraser, or text touch-up keeps the visible edit instead of cropping the image from before it. Undo restores each of several rapid touch-ups even when their saves finish before the preview redraws. A touch-up that cannot be saved to history returns the preview to the latest saved edit, cancels later unsaved strokes, and lets new strokes be saved. Added browser regressions for cropping live touch-ups, batched saves, and failed saves.
+- **First color height stability** - Preserve the first-layer offset when image changes recompute swatches, so valid color heights do not drift by a layer when the first-layer height is not a multiple of the normal layer height. Keep user-selected color order and heights when resizing adds or removes colors, keep the order chosen by the height reset, apply a First Layer Height change made without an image when the image returns, and keep other colors on normal layer increments. Added repeated-reconciliation, swap-plan and browser history, reset and no-image regression tests.
+- **Oversized image imports** - Choosing or dropping an image beyond a conservative canvas budget now shows a localized error that names the image size and keeps the current image, undo history, and swatches. iPhone and iPad, including desktop browsing mode, use a lower pixel budget for compatibility with older Safari versions; the resize advice follows that budget. Thin panoramas beyond 32767 pixels still load when the browser supports their dimensions. Browsers with lower dimension limits are checked without allocating a full-size test canvas. Images remain importable when browser fingerprinting protection adds small amounts of canvas noise. The Loading Images and Troubleshooting guides explain recovery. Added unit coverage for dimension and area budgets, plus browser regressions for file-picker and drag-drop area rejection, iPhone/iPad limits, silent and throwing canvas failures, privacy noise on working and blank canvases, and valid panoramas.
+- **Unreadable image imports** - Choosing or dropping a file that cannot be decoded as an image, including a truncated or partly damaged one, now shows a localized error in the 2D preview instead of failing silently or loading only part of the image. Truncated PNG, JPEG, and WebP files are detected from their file structure, so the macOS and Linux desktop apps, whose WebView otherwise decodes them partially, catch them too. The current image, its undo history, and its swatches are kept; previously the broken file replaced the current image in history. Image files that the platform reports without a file type are recognized by their extension. Non-image files use the same dismissible notice instead of a browser alert, and it closes when the image changes, including the next successful import, undo, edits, or removing the image. New imports are refused while quantize or dedither is running, so a finishing result cannot silently discard a newly chosen file. Stack Matrix photos go through the same check: a truncated or unreadable photo now reports that it could not be opened and keeps the photo already loaded, instead of loading only part of it. The Loading Images and Calibration Workflows guides describe this behavior. Added browser regression coverage for corrupt, truncated, and non-image files, for imports with no current image or no file type, for the notice closing after undo and redo, for drops during quantize, and for truncated and corrupt Stack Matrix photos, plus unit coverage for truncation detection and image file validation.
+- **3D camera inside the model** - The 3D preview camera now stops at the model's surface instead of moving inside it, where the view went empty or clipped. Zooming in Perspective, panning in either projection, and zooming in Orthographic before switching back to Perspective all keep the camera just outside the model's bounding box, so flat prints can still be inspected up close. Close-ups also reduce an enlarged near clipping plane after an Orthographic zoom-out and projection switch, keeping nearby surfaces visible. Rebuilding a model now frames it the same way in Perspective and Orthographic view; Orthographic previously framed it about 15% tighter. The 3D guide describes the camera limits. Added framing, keep-out, orthographic-panning, near-clipping, and projection-switch regression coverage.
+- **3D camera zoom when switching projections** - Returning from Orthographic to Perspective now keeps the zoom level set in Orthographic view, instead of jumping back to the distance the camera had before the switch. The camera keeps its viewing direction and target, and the visible depth range moves with it so zooming out does not clip the model or make stacked layers flicker. Rebuilding while in Orthographic view now frames the new model even after zooming. Added projection round-trip regression coverage.
+- **Relief layer keyboard controls** - Arrow keys now move each Layer Preview handle by one physical print layer, including the first-layer boundary, without adding a rounding sliver at the top of taller models. Home/End and larger keyboard steps respect the selected range. Pointer positioning remains proportional to height. Added physical-boundary regression coverage and browser coverage for both handles, exact ten-layer moves, and rebuild recovery.
+- **Reloading image files** - Choosing the same source image again reloads its original pixels after crop, resize, or other edits, instead of silently retaining the edited image. Added a browser regression for same-path reloads after resizing.
+- **Desktop palette exports** - Save `.kpal` palettes through the native Save As dialog instead of WebView browser downloads, preserving browser downloads and surfacing write failures without changing saved palettes. Retry partial writes and treat stalled writes as failures with localized feedback; this applies to every desktop export saved through **Save As**, including images, models, profiles, and calibration files. Desktop saves write to a temporary file beside the chosen one and replace it only after the whole file is written, so a failed overwrite of an existing palette, profile, image, or model leaves the old file intact and removes the temporary file. Added cancellation, error, partial-write, overwrite-failure, and export-content regressions plus native replace/discard tests; recovery checks exclude automatic feedback dismissal.
+- **Diagnostics folder (desktop)** - **Open folder** for Auto-paint diagnostics in Settings now shows its error when the system cannot open the folder, instead of counting as success as soon as the launcher started.
+- **Cats Exact benchmark reproducibility** - The calibrated cats Exact benchmark from v4.2.0 passes again: an audit traced its stale replay expectation to intended prediction changes before refreshing it, and its fixture check now passes on fresh checkouts on every platform.
+
## v4.2.0 - 2026-10-19
### Upgrade notes
diff --git a/README.md b/README.md
index e7cfe85a..a2982769 100644
--- a/README.md
+++ b/README.md
@@ -138,6 +138,10 @@ Read [AGENTS.md](AGENTS.md) for repository guidance and testing expectations. Th
+## Awards
+
+
+
## License
[GNU Affero General Public License v3.0 only](LICENSE) (`AGPL-3.0-only`). Copyright (C) 2025 vycdev.
diff --git a/content/badges/innovation-fund-badge.png b/content/badges/innovation-fund-badge.png
new file mode 100644
index 00000000..f5aaa295
Binary files /dev/null and b/content/badges/innovation-fund-badge.png differ
diff --git a/content/badges/innovation-fund-badge.svg b/content/badges/innovation-fund-badge.svg
new file mode 100644
index 00000000..eafe96bb
--- /dev/null
+++ b/content/badges/innovation-fund-badge.svg
@@ -0,0 +1,15 @@
+
diff --git a/content/badges/innovation-fund-medal.png b/content/badges/innovation-fund-medal.png
new file mode 100644
index 00000000..ea069691
Binary files /dev/null and b/content/badges/innovation-fund-medal.png differ
diff --git a/content/badges/innovation-fund-medal.svg b/content/badges/innovation-fund-medal.svg
new file mode 100644
index 00000000..87ed9eb9
--- /dev/null
+++ b/content/badges/innovation-fund-medal.svg
@@ -0,0 +1,18 @@
+
diff --git a/content/badges/logo/snapmaker-icon-white.svg b/content/badges/logo/snapmaker-icon-white.svg
new file mode 100644
index 00000000..d07a853b
--- /dev/null
+++ b/content/badges/logo/snapmaker-icon-white.svg
@@ -0,0 +1,18 @@
+
+
\ No newline at end of file
diff --git a/content/badges/logo/snapmaker-logo.svg b/content/badges/logo/snapmaker-logo.svg
new file mode 100644
index 00000000..10ca7f01
--- /dev/null
+++ b/content/badges/logo/snapmaker-logo.svg
@@ -0,0 +1,18 @@
+
diff --git a/package-lock.json b/package-lock.json
index 93c805d1..6ecf815f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "kromacut",
- "version": "4.2.0",
+ "version": "4.3.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "kromacut",
- "version": "4.2.0",
+ "version": "4.3.0",
"license": "AGPL-3.0-only",
"dependencies": {
"@dnd-kit/core": "^6.3.1",
diff --git a/package.json b/package.json
index 597c07b7..a4dc9aac 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "kromacut",
"private": true,
- "version": "4.2.0",
+ "version": "4.3.0",
"license": "AGPL-3.0-only",
"type": "module",
"scripts": {
@@ -16,10 +16,13 @@
"benchmark:calibrated-exact": "node --expose-gc --no-warnings --experimental-strip-types tests/benchmark/calibratedOptimizer.ts",
"benchmark:calibrated-series": "node scripts/benchmark-calibrated-series.mjs",
"benchmark:hotpaths": "node --no-warnings --experimental-strip-types tests/benchmark/performanceHotPaths.ts",
+ "benchmark:multi-head": "node --no-warnings --experimental-strip-types tests/benchmark/multiHeadAppearance.ts",
"benchmark:meshing": "node --no-warnings --experimental-strip-types tests/benchmark/smoothMeshing.ts",
"profile:calibrated": "node scripts/profile-calibrated.mjs",
"profile:compare": "node scripts/compare-calibrated-profiles.mjs",
"test:e2e": "playwright test --grep @smoke",
+ "test:e2e:all": "node scripts/run-e2e-suites.mjs",
+ "check:e2e": "node scripts/run-e2e-suites.mjs --check",
"test:docs": "node --no-warnings --experimental-strip-types --test tests/docsContent.test.ts",
"test:e2e:docs": "playwright test --config playwright.docs.config.ts",
"test:e2e:not-found": "playwright test --config playwright.not-found.config.ts",
diff --git a/playwright.config.ts b/playwright.config.ts
index 04d165c2..a4c1d589 100644
--- a/playwright.config.ts
+++ b/playwright.config.ts
@@ -1,5 +1,8 @@
import { defineConfig, devices } from '@playwright/test';
+const port = Number(process.env.KROMACUT_E2E_PORT ?? 5173);
+const baseURL = `http://127.0.0.1:${port}`;
+
export default defineConfig({
testDir: './tests/e2e',
fullyParallel: false,
@@ -10,7 +13,7 @@ export default defineConfig({
},
reporter: [['list'], ['html', { open: 'never' }]],
use: {
- baseURL: 'http://127.0.0.1:5173',
+ baseURL,
acceptDownloads: true,
actionTimeout: 30 * 1000,
navigationTimeout: 60 * 1000,
@@ -19,9 +22,10 @@ export default defineConfig({
video: 'off',
},
webServer: {
- command: 'npm run build && npm run preview -- --host 127.0.0.1 --port 5173 --strictPort',
- url: 'http://127.0.0.1:5173',
- reuseExistingServer: !process.env.CI,
+ command: `npm run build && npm run preview -- --host 127.0.0.1 --port ${port} --strictPort`,
+ url: baseURL,
+ // test:e2e:all never reuses a server, which may be serving another checkout.
+ reuseExistingServer: !process.env.CI && !process.env.KROMACUT_E2E_FRESH_SERVERS,
timeout: 180 * 1000,
},
projects: [
diff --git a/playwright.i18n.config.ts b/playwright.i18n.config.ts
index 66c59837..2730ce43 100644
--- a/playwright.i18n.config.ts
+++ b/playwright.i18n.config.ts
@@ -14,7 +14,8 @@ export default defineConfig({
webServer: {
command: 'npm run dev -- --host 127.0.0.1 --port 5192 --strictPort',
url: 'http://127.0.0.1:5192',
- reuseExistingServer: !process.env.CI,
+ // test:e2e:all never reuses a server, which may be serving another checkout.
+ reuseExistingServer: !process.env.CI && !process.env.KROMACUT_E2E_FRESH_SERVERS,
timeout: 60000,
},
projects: [
diff --git a/public/version.json b/public/version.json
index 0f011c3d..41a577b1 100644
--- a/public/version.json
+++ b/public/version.json
@@ -1,19 +1,19 @@
{
- "version": "4.2.0",
- "download_url": "https://github.com/vycdev/Kromacut/releases/tag/v4.2.0",
- "release_notes": "Kromacut 4.2.0 adds Smooth Meshing strengths (None, Minimal, Medium, and Aggressive), which now also work with Flat Paint, and lets the desktop app open .kfil, .kapp, and .kpal files directly. Height dithering in Auto-paint works again, Flat Paint and Layer Preview are more reliable, and Settings now links to Privacy and Terms. Saved smoothing settings carry over as Medium or None; existing profiles and palettes remain compatible. Rebuild Height dithering and Flat Paint models before printing, back up important profiles, and check new prints in your slicer.",
+ "version": "4.3.0",
+ "download_url": "https://github.com/vycdev/Kromacut/releases/tag/v4.3.0",
+ "release_notes": "Kromacut 4.3.0 adds Multi-head printing: Auto-paint can plan filament orders across 2–8 heads, build the matching model and Head Schedule, and export 3MF files with head assignments and M600 pause markers at swap checkpoints, explained in a new in-app guide. In the desktop app, Open in Slicer sends models straight to your slicer and can remember which one to use. Ctrl/Cmd+Z and Ctrl/Cmd+Shift+Z undo and redo 2D edits, long Auto-paint searches can be cancelled, and oversized or unreadable images now show a clear error while keeping your current image. A failed desktop save now leaves the file it was replacing intact. The 3D camera no longer moves inside the model, and a new Awards page celebrates Kromacut's Snapmaker Innovation Fund win. Existing profiles and palettes remain compatible. If your First Layer Height isn't a multiple of your Layer Height, check the first color's height when you rebuild older work. Check new prints in your slicer.",
"release_notes_localized": {
- "en": "Kromacut 4.2.0 adds Smooth Meshing strengths (None, Minimal, Medium, and Aggressive), which now also work with Flat Paint, and lets the desktop app open .kfil, .kapp, and .kpal files directly. Height dithering in Auto-paint works again, Flat Paint and Layer Preview are more reliable, and Settings now links to Privacy and Terms. Saved smoothing settings carry over as Medium or None; existing profiles and palettes remain compatible. Rebuild Height dithering and Flat Paint models before printing, back up important profiles, and check new prints in your slicer.",
- "fr": "Kromacut 4.2.0 ajoute des niveaux de Maillage lissé (Aucun, Minimal, Moyen et Intensif), désormais compatibles avec la Peinture à plat, et permet à l’application de bureau d’ouvrir directement les fichiers .kfil, .kapp et .kpal. Le Tramage en hauteur de la Peinture automatique fonctionne de nouveau, la Peinture à plat et l’Aperçu des couches sont plus fiables, et les Paramètres renvoient désormais vers les pages Confidentialité et Conditions d’utilisation. Les réglages de lissage enregistrés deviennent Moyen ou Aucun ; les profils et palettes existants restent compatibles. Reconstruisez les modèles utilisant le Tramage en hauteur ou la Peinture à plat avant d’imprimer, sauvegardez vos profils importants et vérifiez les nouvelles impressions dans votre logiciel de découpage.",
- "de": "Kromacut 4.2.0 bietet Stärkestufen für Geglättetes Netz (Keine, Minimal, Mittel und Stark), die jetzt auch mit Flat Paint funktionieren, und die Desktop-App öffnet .kfil-, .kapp- und .kpal-Dateien direkt. Höhen-Dithering in Auto-paint funktioniert wieder, Flat Paint und die Schichtvorschau arbeiten zuverlässiger, und die Einstellungen verlinken jetzt auf Datenschutz und Nutzungsbedingungen. Gespeicherte Glättungseinstellungen werden als Mittel oder Keine übernommen; bestehende Profile und Paletten bleiben kompatibel. Erstellen Sie Modelle mit Höhen-Dithering oder Flat Paint vor dem Drucken neu, sichern Sie wichtige Profile und prüfen Sie neue Drucke im Slicer.",
- "it": "Kromacut 4.2.0 aggiunge i livelli di Mesh levigata (Nessuna, Minima, Media e Intensa), ora compatibili anche con Flat Paint, e consente all’app desktop di aprire direttamente i file .kfil, .kapp e .kpal. Il Dithering dell’altezza in Auto-paint funziona di nuovo, Flat Paint e l’Anteprima degli strati sono più affidabili e le Impostazioni ora rimandano a Privacy e Termini e condizioni. Le impostazioni di levigatura salvate diventano Media o Nessuna; i profili e le palette esistenti restano compatibili. Ricostruisci i modelli con Dithering dell’altezza o Flat Paint prima di stampare, esegui una copia di sicurezza dei profili importanti e verifica le nuove stampe nello slicer.",
- "ro": "Kromacut 4.2.0 adaugă niveluri pentru Geometrie netezită (Fără, Minimă, Medie și Intensă), care funcționează acum și cu Flat Paint, iar aplicația desktop poate deschide direct fișierele .kfil, .kapp și .kpal. Opțiunea Dithering al înălțimii din Auto-paint funcționează din nou, Flat Paint și Previzualizarea straturilor sunt mai fiabile, iar Setările includ acum linkuri către Confidențialitate și Termeni și condiții. Setările de netezire salvate devin Medie sau Fără; profilurile și paletele existente rămân compatibile. Reconstruiește modelele cu Dithering al înălțimii sau Flat Paint înainte de imprimare, fă copii de siguranță ale profilurilor importante și verifică imprimările noi în slicer.",
- "es": "Kromacut 4.2.0 añade niveles de Malla suavizada (Ninguno, Mínimo, Medio e Intenso), que ahora también funcionan con Pintura plana, y permite que la aplicación de escritorio abra directamente archivos .kfil, .kapp y .kpal. El Tramado de altura de la Pintura automática vuelve a funcionar, la Pintura plana y la Vista previa de capas son más fiables, y los Ajustes ahora enlazan a Privacidad y Términos y condiciones. Los ajustes de suavizado guardados pasan a Medio o Ninguno; los perfiles y paletas existentes siguen siendo compatibles. Reconstruye los modelos con Tramado de altura o Pintura plana antes de imprimir, haz copias de seguridad de los perfiles importantes y revisa las nuevas impresiones en tu laminador.",
- "ja": "Kromacut 4.2.0では、滑らかなメッシュの強さ(なし、最小、中、強)を選べるようになり、フラット印刷でも使用できます。デスクトップアプリで.kfil、.kapp、.kpalファイルを直接開けるようになりました。自動ペイントの高さディザリングが再び機能し、フラット印刷とレイヤープレビューの信頼性が向上し、設定からプライバシーと利用規約を開けるようになりました。保存済みのスムージング設定は「中」または「なし」として引き継がれ、既存のプロファイルとパレットの互換性は維持されます。高さディザリングまたはフラット印刷を使うモデルは印刷前に再ビルドし、重要なプロファイルをバックアップして、新しい印刷データをスライサーで確認してください。",
- "zh-CN": "Kromacut 4.2.0 新增平滑网格强度(无、轻度、中度、强度),现在也可用于平面打印模式;桌面应用现可直接打开 .kfil、.kapp 和 .kpal 文件。自动配色中的高度抖动已恢复正常,平面打印模式和层预览更加可靠,设置中现已提供隐私与使用条款链接。已保存的平滑设置将转换为“中度”或“无”;现有配置文件和调色板仍然兼容。使用高度抖动或平面打印模式的模型请在打印前重新生成,请备份重要配置文件,并在切片软件中检查新的打印模型。",
- "hi": "Kromacut 4.2.0 में चिकनी मेशिंग के स्तर (कोई नहीं, न्यूनतम, मध्यम और तीव्र) जोड़े गए हैं, जो अब समतल प्रिंट मोड के साथ भी काम करते हैं, और डेस्कटॉप ऐप अब .kfil, .kapp और .kpal फ़ाइलें सीधे खोल सकता है। स्वचालित रंगाई में ऊँचाई डिथरिंग फिर से काम करती है, समतल प्रिंट मोड और परत पूर्वावलोकन अधिक भरोसेमंद हैं, और सेटिंग्स में अब गोपनीयता और नियम व शर्तों के लिंक हैं। सहेजी गई स्मूदिंग सेटिंग्स मध्यम या कोई नहीं के रूप में बनी रहती हैं; मौजूदा प्रोफ़ाइल और पैलेट संगत बने रहते हैं। ऊँचाई डिथरिंग या समतल प्रिंट मोड वाले मॉडल प्रिंट से पहले फिर से बनाएँ, महत्वपूर्ण प्रोफ़ाइल का बैकअप लें और नए प्रिंट को अपने स्लाइसर में जाँचें।",
- "pt-PT": "O Kromacut 4.2.0 adiciona níveis de Malha suavizada (Nenhuma, Mínima, Média e Intensa), que agora também funcionam com a Pintura plana, e permite que a aplicação de computador abra diretamente ficheiros .kfil, .kapp e .kpal. O Pontilhamento em altura da Pintura automática volta a funcionar, a Pintura plana e a Pré-visualização de camadas estão mais fiáveis, e as Definições incluem agora ligações para Privacidade e Termos e condições. As definições de suavização guardadas passam a Média ou Nenhuma; os perfis e as paletas existentes continuam compatíveis. Reconstrua os modelos com Pontilhamento em altura ou Pintura plana antes de imprimir, faça cópias de segurança dos perfis importantes e verifique as novas impressões no seu programa de corte.",
- "uk": "Kromacut 4.2.0 додає рівні параметра «Згладжена сітка» (Без згладжування, Мінімальне, Середнє та Інтенсивне), які тепер працюють і з Flat Paint, а настільний застосунок може безпосередньо відкривати файли .kfil, .kapp і .kpal. Дизеринг висоти в Auto-paint знову працює, Flat Paint і Перегляд шарів стали надійнішими, а в Налаштуваннях з’явилися посилання на Конфіденційність і Умови користування. Збережені налаштування згладжування переходять у Середнє або Без згладжування; наявні профілі та палітри залишаються сумісними. Перед друком перебудуйте моделі з дизерингом висоти або Flat Paint, створіть резервні копії важливих профілів і перевіряйте нові моделі для друку у слайсері.",
- "bn": "Kromacut 4.2.0-তে মসৃণ মেশের স্তর (কোনোটিই নয়, ন্যূনতম, মাঝারি ও তীব্র) যোগ করা হয়েছে, যা এখন সমতল প্রিন্ট মোডেও কাজ করে, এবং ডেস্কটপ অ্যাপ এখন সরাসরি .kfil, .kapp ও .kpal ফাইল খুলতে পারে। স্বয়ংক্রিয় রং-এর উচ্চতার ডিথারিং আবার কাজ করে, সমতল প্রিন্ট মোড ও স্তরের প্রিভিউ আরও নির্ভরযোগ্য হয়েছে, এবং সেটিংসে এখন গোপনীয়তা ও নিয়ম ও শর্তাবলির লিংক রয়েছে। সংরক্ষিত মসৃণকরণ সেটিং মাঝারি বা কোনোটিই নয় হিসেবে বহাল থাকে; বিদ্যমান প্রোফাইল ও প্যালেট সামঞ্জস্যপূর্ণ থাকে। উচ্চতার ডিথারিং বা সমতল প্রিন্ট মোড ব্যবহার করা মডেল প্রিন্টের আগে আবার তৈরি করুন, গুরুত্বপূর্ণ প্রোফাইলের ব্যাকআপ নিন এবং নতুন প্রিন্টগুলো আপনার স্লাইসারে পরীক্ষা করুন।"
+ "en": "Kromacut 4.3.0 adds Multi-head printing: Auto-paint can plan filament orders across 2–8 heads, build the matching model and Head Schedule, and export 3MF files with head assignments and M600 pause markers at swap checkpoints, explained in a new in-app guide. In the desktop app, Open in Slicer sends models straight to your slicer and can remember which one to use. Ctrl/Cmd+Z and Ctrl/Cmd+Shift+Z undo and redo 2D edits, long Auto-paint searches can be cancelled, and oversized or unreadable images now show a clear error while keeping your current image. A failed desktop save now leaves the file it was replacing intact. The 3D camera no longer moves inside the model, and a new Awards page celebrates Kromacut's Snapmaker Innovation Fund win. Existing profiles and palettes remain compatible. If your First Layer Height isn't a multiple of your Layer Height, check the first color's height when you rebuild older work. Check new prints in your slicer.",
+ "fr": "Kromacut 4.3.0 ajoute l’Impression multi-têtes : la Peinture automatique peut planifier l’ordre des filaments sur 2 à 8 têtes, générer le modèle et le Planning des têtes correspondants, et exporter des fichiers 3MF avec les affectations des têtes et des marqueurs de pause M600 aux points de changement, le tout expliqué dans un nouveau guide intégré. Dans l’application de bureau, Ouvrir dans le logiciel de découpe envoie les modèles directement à votre logiciel de découpe et peut mémoriser celui à utiliser. Ctrl/Cmd+Z et Ctrl/Cmd+Maj+Z annulent et rétablissent les modifications 2D, les longues recherches de la Peinture automatique peuvent être annulées, et les images trop grandes ou illisibles affichent désormais une erreur claire tout en conservant l’image actuelle. Dans l’application de bureau, un enregistrement qui échoue laisse désormais intact le fichier qu’il devait remplacer. La caméra 3D ne pénètre plus dans le modèle, et une nouvelle page Récompenses célèbre la victoire de Kromacut au Snapmaker Innovation Fund. Les profils et palettes existants restent compatibles. Si votre Hauteur de première couche n’est pas un multiple de votre Hauteur de couche, vérifiez la hauteur de la première couleur lorsque vous reconstruisez d’anciens travaux. Vérifiez les nouvelles impressions dans votre logiciel de découpe.",
+ "de": "Kromacut 4.3.0 bietet Mehrkopfdruck: Auto-paint kann Filamentreihenfolgen für 2–8 Druckköpfe planen, das passende Modell samt Druckkopfplan erstellen und 3MF-Dateien mit Druckkopfzuweisungen und M600-Pausenmarkierungen an den Wechselpunkten exportieren; eine neue Anleitung in der App erklärt den Ablauf. In der Desktop-App sendet „Im Slicer öffnen“ Modelle direkt an Ihren Slicer und kann sich den gewählten Slicer merken. Strg/Cmd+Z und Strg/Cmd+Umschalt+Z machen 2D-Bearbeitungen rückgängig bzw. stellen sie wieder her, lange Auto-paint-Suchen lassen sich abbrechen, und zu große oder nicht lesbare Bilder zeigen jetzt eine klare Fehlermeldung, während das aktuelle Bild erhalten bleibt. In der Desktop-App lässt ein fehlgeschlagenes Speichern die zu ersetzende Datei jetzt unverändert. Die 3D-Kamera bewegt sich nicht mehr in das Modell hinein, und eine neue Seite „Auszeichnungen“ würdigt Kromacuts Gewinn beim Snapmaker Innovation Fund. Bestehende Profile und Paletten bleiben kompatibel. Wenn Ihre „Höhe der ersten Schicht“ kein Vielfaches der „Schichthöhe“ ist, prüfen Sie beim Neuaufbau älterer Arbeiten die Höhe der ersten Farbe. Prüfen Sie neue Drucke im Slicer.",
+ "it": "Kromacut 4.3.0 aggiunge la Stampa multitesta: Auto-paint può pianificare l’ordine dei filamenti su 2–8 teste, generare il modello e il Programma delle teste corrispondenti ed esportare file 3MF con le assegnazioni delle teste e i marcatori di pausa M600 ai punti di cambio, il tutto spiegato in una nuova guida nell’app. Nell’app desktop, Apri nello slicer invia i modelli direttamente al tuo slicer e può ricordare quale usare. Ctrl/Cmd+Z e Ctrl/Cmd+Maiusc+Z annullano e ripristinano le modifiche 2D, le ricerche lunghe di Auto-paint si possono annullare e le immagini troppo grandi o illeggibili ora mostrano un errore chiaro mantenendo l’immagine attuale. Nell’app desktop, un salvataggio non riuscito ora lascia intatto il file che doveva sostituire. La fotocamera 3D non entra più all’interno del modello e una nuova pagina Premi celebra la vittoria di Kromacut allo Snapmaker Innovation Fund. I profili e le palette esistenti restano compatibili. Se l’Altezza del primo strato non è un multiplo dell’Altezza dello strato, controlla l’altezza del primo colore quando ricostruisci lavori precedenti. Verifica le nuove stampe nello slicer.",
+ "ro": "Kromacut 4.3.0 adaugă Imprimarea cu mai multe capete: Auto-paint poate planifica ordinea filamentelor pe 2–8 capete, poate genera modelul și Programul capetelor corespunzătoare și poate exporta fișiere 3MF cu atribuirea capetelor și marcaje de pauză M600 la punctele de schimbare, totul explicat într-un ghid nou din aplicație. În aplicația desktop, Deschide în slicer trimite modelele direct în slicerul tău și poate reține ce slicer să folosească. Ctrl/Cmd+Z și Ctrl/Cmd+Shift+Z anulează și refac editările 2D, căutările lungi Auto-paint pot fi anulate, iar imaginile prea mari sau care nu pot fi citite afișează acum o eroare clară și păstrează imaginea curentă. În aplicația desktop, o salvare eșuată lasă acum intact fișierul pe care trebuia să-l înlocuiască. Camera 3D nu mai intră în interiorul modelului, iar o nouă pagină Premii marchează câștigarea Snapmaker Innovation Fund de către Kromacut. Profilurile și paletele existente rămân compatibile. Dacă Înălțimea primului strat nu este un multiplu al Înălțimii stratului, verifică înălțimea primei culori când reconstruiești lucrări mai vechi. Verifică imprimările noi în slicer.",
+ "es": "Kromacut 4.3.0 añade la Impresión multicabezal: la Pintura automática puede planificar el orden de los filamentos en 2–8 cabezales, generar el modelo y el Programa de cabezales correspondientes y exportar archivos 3MF con la asignación de cabezales y marcadores de pausa M600 en los puntos de cambio, todo explicado en una nueva guía de la aplicación. En la aplicación de escritorio, Abrir en el laminador envía los modelos directamente a tu laminador y puede recordar cuál usar. Ctrl/Cmd+Z y Ctrl/Cmd+Mayús+Z deshacen y rehacen las ediciones 2D, las búsquedas largas de la Pintura automática se pueden cancelar, y las imágenes demasiado grandes o ilegibles ahora muestran un error claro y conservan la imagen actual. En la aplicación de escritorio, un guardado fallido ahora deja intacto el archivo que iba a reemplazar. La cámara 3D ya no entra dentro del modelo, y una nueva página de Premios celebra que Kromacut ganó el Snapmaker Innovation Fund. Los perfiles y paletas existentes siguen siendo compatibles. Si tu Altura de la primera capa no es múltiplo de tu Altura de capa, revisa la altura del primer color al reconstruir trabajos anteriores. Revisa las nuevas impresiones en tu laminador.",
+ "ja": "Kromacut 4.3.0ではマルチヘッド印刷に対応しました。自動ペイントで2〜8個のヘッドにわたるフィラメントの順序を計画し、対応するモデルとヘッドスケジュールを作成して、ヘッドの割り当てと交換地点のM600一時停止マーカーを含む3MFファイルを書き出せます。使い方は新しいアプリ内ガイドで説明しています。デスクトップアプリでは「スライサーで開く」でモデルをスライサーに直接送り、使用するスライサーを記憶できます。Ctrl/Cmd+ZとCtrl/Cmd+Shift+Zで2D編集を元に戻す・やり直すことができ、時間のかかる自動ペイントの検索はキャンセルでき、大きすぎる画像や読み込めない画像は現在の画像を保ったまま分かりやすいエラーを表示するようになりました。デスクトップアプリでは、保存に失敗しても置き換え先の既存ファイルが損なわれなくなりました。3Dカメラがモデルの内部に入り込まなくなり、新しい受賞歴ページではKromacutのSnapmaker Innovation Fund受賞を紹介しています。既存のプロファイルとパレットの互換性は維持されます。「初層の高さ」が「レイヤー高さ」の倍数でない場合は、以前の作品を再構築するときに最初の色の高さを確認してください。新しい印刷データはスライサーで確認してください。",
+ "zh-CN": "Kromacut 4.3.0 新增多打印头打印:自动配色可为 2–8 个打印头规划耗材顺序,生成相应的模型和打印头计划,并导出包含打印头分配和换料检查点 M600 暂停标记的 3MF 文件,新的应用内指南提供了详细说明。在桌面应用中,“在切片软件中打开”可将模型直接发送到切片软件,并可记住要使用的切片软件。Ctrl/Cmd+Z 和 Ctrl/Cmd+Shift+Z 可撤销和重做 2D 编辑,耗时较长的自动配色搜索可以取消,过大或无法读取的图像现在会显示明确的错误并保留当前图像。在桌面应用中,保存失败时将不再损坏原本要替换的文件。3D 相机不再进入模型内部,新的奖项页面展示了 Kromacut 荣获 Snapmaker Innovation Fund 的成果。现有配置文件和调色板仍然兼容。如果“首层高度”不是“层高”的整数倍,重新构建旧作品时请检查第一种颜色的高度。请在切片软件中检查新的打印模型。",
+ "hi": "Kromacut 4.3.0 में मल्टी-हेड प्रिंटिंग जोड़ी गई है: स्वचालित रंगाई 2–8 हेड के लिए फ़िलामेंट का क्रम तय कर सकती है, उससे मेल खाता मॉडल और हेड का कार्यक्रम बना सकती है, और हेड आवंटन तथा बदलाव चेकपॉइंट पर M600 विराम मार्कर वाली 3MF फ़ाइलें निर्यात कर सकती है; एक नई इन-ऐप गाइड इसे समझाती है। डेस्कटॉप ऐप में, स्लाइसर में खोलें मॉडल को सीधे आपके स्लाइसर में भेजता है और याद रख सकता है कि कौन-सा स्लाइसर इस्तेमाल करना है। Ctrl/Cmd+Z और Ctrl/Cmd+Shift+Z से 2D संपादन पूर्ववत और फिर से किए जा सकते हैं, स्वचालित रंगाई की लंबी खोजें रद्द की जा सकती हैं, और बहुत बड़े या न पढ़े जा सकने वाले चित्र अब मौजूदा चित्र को बनाए रखते हुए स्पष्ट त्रुटि दिखाते हैं। डेस्कटॉप ऐप में, सहेजना विफल होने पर अब वह फ़ाइल सुरक्षित रहती है जिसे बदला जाना था। 3D कैमरा अब मॉडल के अंदर नहीं जाता, और नया पुरस्कार पेज Kromacut की Snapmaker Innovation Fund जीत को दर्शाता है। मौजूदा प्रोफ़ाइल और पैलेट संगत बने रहते हैं। अगर पहली परत की ऊँचाई परत की ऊँचाई का गुणज नहीं है, तो पुराने काम को दोबारा बनाते समय पहले रंग की ऊँचाई जाँचें। नए प्रिंट को अपने स्लाइसर में जाँचें।",
+ "pt-PT": "O Kromacut 4.3.0 adiciona a Impressão multicabeças: a Pintura automática pode planear a ordem dos filamentos em 2–8 cabeças, gerar o modelo e o Plano das cabeças correspondentes e exportar ficheiros 3MF com a atribuição das cabeças e marcadores de pausa M600 nos pontos de mudança, tudo explicado num novo guia na aplicação. Na aplicação de computador, Abrir no laminador envia os modelos diretamente para o seu laminador e pode memorizar qual utilizar. Ctrl/Cmd+Z e Ctrl/Cmd+Shift+Z anulam e refazem as edições 2D, as pesquisas longas da Pintura automática podem ser canceladas, e as imagens demasiado grandes ou ilegíveis mostram agora um erro claro e mantêm a imagem atual. Na aplicação de computador, uma gravação falhada deixa agora intacto o ficheiro que ia substituir. A câmara 3D já não entra no interior do modelo, e uma nova página de Prémios celebra a vitória do Kromacut no Snapmaker Innovation Fund. Os perfis e as paletas existentes continuam compatíveis. Se a Altura da primeira camada não for múltipla da Altura de camada, verifique a altura da primeira cor ao reconstruir trabalhos anteriores. Verifique as novas impressões no seu laminador.",
+ "uk": "Kromacut 4.3.0 додає Багатоголовковий друк: Auto-paint може планувати порядок філаментів для 2–8 головок, створювати відповідну модель і Розклад головок та експортувати файли 3MF із призначенням головок і маркерами паузи M600 у точках заміни, а новий посібник у застосунку пояснює, як це працює. У настільному застосунку «Відкрити в слайсері» надсилає моделі просто у ваш слайсер і може запам’ятати, який слайсер використовувати. Ctrl/Cmd+Z і Ctrl/Cmd+Shift+Z скасовують і повторюють редагування у 2D, тривалі пошуки Auto-paint можна скасувати, а завеликі чи нечитабельні зображення тепер показують зрозумілу помилку й зберігають поточне зображення. У настільному застосунку невдале збереження тепер не пошкоджує файл, який мало замінити. 3D-камера більше не заходить усередину моделі, а нова сторінка «Нагороди» розповідає про перемогу Kromacut у Snapmaker Innovation Fund. Наявні профілі та палітри залишаються сумісними. Якщо «Висота першого шару» не кратна значенню «Висота шару», під час повторної побудови старих робіт перевірте висоту першого кольору. Нові моделі для друку перевіряйте у слайсері.",
+ "bn": "Kromacut 4.3.0-তে মাল্টি-হেড প্রিন্টিং যোগ করা হয়েছে: স্বয়ংক্রিয় রং 2–8টি হেডে ফিলামেন্টের ক্রম পরিকল্পনা করতে, মিলিয়ে মডেল ও হেডের সময়সূচি তৈরি করতে এবং হেড বরাদ্দ ও বদলানোর চেকপয়েন্টে M600 বিরতি চিহ্নসহ 3MF ফাইল রপ্তানি করতে পারে; একটি নতুন ইন-অ্যাপ গাইড এটি ব্যাখ্যা করে। ডেস্কটপ অ্যাপে স্লাইসারে খুলুন মডেলকে সরাসরি আপনার স্লাইসারে পাঠায় এবং কোন স্লাইসার ব্যবহার করতে হবে তা মনে রাখতে পারে। Ctrl/Cmd+Z ও Ctrl/Cmd+Shift+Z দিয়ে 2D সম্পাদনা পূর্বাবস্থায় ফেরানো ও আবার করা যায়, স্বয়ংক্রিয় রং-এর দীর্ঘ অনুসন্ধান বাতিল করা যায়, এবং অতিরিক্ত বড় বা পড়া যায় না এমন ছবি এখন বর্তমান ছবি রেখে একটি স্পষ্ট ত্রুটি দেখায়। ডেস্কটপ অ্যাপে সংরক্ষণ ব্যর্থ হলে এখন যে ফাইলটি প্রতিস্থাপন করার কথা ছিল সেটি অক্ষত থাকে। 3D ক্যামেরা আর মডেলের ভেতরে ঢোকে না, এবং নতুন পুরস্কার পেজে Kromacut-এর Snapmaker Innovation Fund জয় তুলে ধরা হয়েছে। বিদ্যমান প্রোফাইল ও প্যালেট সামঞ্জস্যপূর্ণ থাকে। প্রথম স্তরের উচ্চতা যদি স্তরের উচ্চতার গুণিতক না হয়, তবে পুরোনো কাজ আবার তৈরি করার সময় প্রথম রঙের উচ্চতা পরীক্ষা করুন। নতুন প্রিন্টগুলো আপনার স্লাইসারে পরীক্ষা করুন।"
}
}
diff --git a/scripts/build-winner-badges.mjs b/scripts/build-winner-badges.mjs
new file mode 100644
index 00000000..b7159d82
--- /dev/null
+++ b/scripts/build-winner-badges.mjs
@@ -0,0 +1,211 @@
+// Maintenance-only generator for the Snapmaker Innovation Fund winner badges.
+// Snapmaker's rules: use their official logo files unaltered, and state only
+// "Snapmaker Innovation Fund Winner". Their dark wordmark goes in content/badges/logo/
+// as snapmaker-logo.(svg|png); until then a dashed placeholder marks the logo slot. An
+// optional snapmaker-icon-white.(svg|png|jpg) (the white "ʃ" mark) fills the small badge's
+// medal. Both badges carry their own light card, so one version suits any page background.
+// Each SVG is also rendered to a 2x PNG with Playwright Chromium. WebKit (Safari, GitHub's
+// iOS app, the macOS/Linux desktop webviews) ignores variable-font weights inside SVG images
+// and draws the lettering at Oxanium's thinnest weight, so the README, website and app show
+// the PNGs to look the same everywhere.
+import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+import { chromium } from '@playwright/test';
+
+const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
+const output = path.join(root, 'content/badges');
+const logoDir = path.join(output, 'logo');
+mkdirSync(logoDir, { recursive: true });
+
+const font = readFileSync(path.join(root, 'public/fonts/oxanium-v21-latin.woff2')).toString('base64');
+const fontStyle = ``;
+
+// Clockwise from 12 o'clock, sampled from the Kromacut K so the rim reads as the same spectrum.
+const SPECTRUM = [
+ '#dfd13b',
+ '#f0a21f',
+ '#ff6b1f',
+ '#ff2a3a',
+ '#ff1f85',
+ '#c01784',
+ '#5c1a93',
+ '#33137f',
+ '#0b238c',
+ '#0066b8',
+ '#009bcb',
+ '#00a07a',
+ '#4ab548',
+ '#bfcd35',
+];
+const INK = '#121530';
+// viewBox of the official wordmark files.
+const LOGO_ASPECT = 171.762 / 34;
+
+const hexToRgb = (hex) => [1, 3, 5].map((i) => parseInt(hex.slice(i, i + 2), 16));
+const rgbToHex = (rgb) =>
+ `#${rgb.map((v) => Math.round(Math.min(255, Math.max(0, v))).toString(16).padStart(2, '0')).join('')}`;
+const mix = (a, b, t) => {
+ const [ra, rb] = [hexToRgb(a), hexToRgb(b)];
+ return rgbToHex(ra.map((v, i) => v + (rb[i] - v) * t));
+};
+const spectrumAt = (u) => {
+ const x = (((u % 1) + 1) % 1) * SPECTRUM.length;
+ const i = Math.floor(x);
+ return mix(SPECTRUM[i], SPECTRUM[(i + 1) % SPECTRUM.length], x - i);
+};
+const polar = (cx, cy, r, turn) => {
+ const a = turn * Math.PI * 2 - Math.PI / 2;
+ return [cx + r * Math.cos(a), cy + r * Math.sin(a)];
+};
+const pt = ([x, y]) => `${x.toFixed(2)},${y.toFixed(2)}`;
+
+function loadLogo(name) {
+ const mimes = { svg: 'image/svg+xml', png: 'image/png', jpg: 'image/jpeg', jpeg: 'image/jpeg' };
+ for (const [ext, mime] of Object.entries(mimes)) {
+ const file = path.join(logoDir, `${name}.${ext}`);
+ if (existsSync(file)) {
+ return `data:${mime};base64,${readFileSync(file).toString('base64')}`;
+ }
+ }
+ return null;
+}
+
+// The logo is embedded byte-for-byte and only scaled, never redrawn or recolored.
+function logoSlot(x, y, width) {
+ const height = width / LOGO_ASPECT;
+ const href = loadLogo('snapmaker-logo');
+ if (href) {
+ return `