cad-editor/src/io
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 6996343e84 feat(wasm): open files in the browser
Wire up file open for the web build:

- `io::pick_and_load_web`: browser file picker → read bytes → parse via
  `load_bytes` → build caches, returning the same payload as the native
  loader so it feeds the shared `Message::FileOpened` handler.
- `Message::OpenFile` cfg-dispatches: native picks a path then loads on a
  worker thread; web picks + parses in one async step. The web branch also
  sets `opening` (the handler drops results when no open is in progress).
- Disable the cosmic-text shaping / fallback paths on wasm: the web has no
  system fonts, so cosmic-text panics with "no default font found". LFF
  stroke fonts (embedded) still render; LFF-missing glyphs are skipped.

Native build + 75 tests unchanged. Hatches still don't draw on the web.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-16 18:08:57 +03:00
..
file_association.rs fix(windows): cast COINIT_APARTMENTTHREADED to u32 for windows-sys 0.61.2 2026-06-12 11:47:52 +00:00
mod.rs feat(wasm): open files in the browser 2026-06-16 18:08:57 +03:00
obj.rs refactor(scene): group modules into role-based subfolders 2026-06-16 11:33:46 +03:00
pdf_export.rs feat(wasm): compile the library for wasm32 (issue #45 groundwork) 2026-06-16 13:01:19 +03:00
plot_style.rs perf(hash): swap std HashMap/HashSet for rustc-hash FxHash 2026-06-05 00:35:53 +03:00
print_to_printer.rs refactor(scene): group modules into role-based subfolders 2026-06-16 11:33:46 +03:00
step.rs refactor(scene): group modules into role-based subfolders 2026-06-16 11:33:46 +03:00
stl.rs refactor(scene): group modules into role-based subfolders 2026-06-16 11:33:46 +03:00
xref.rs perf(hash): swap std HashMap/HashSet for rustc-hash FxHash 2026-06-05 00:35:53 +03:00