1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! The Solid/Diagram frame pipeline both apps drive.
//!
//! Plan a design into a plane
//! arrangement and a facet style, then rasterize it (solid, "Both" edges layer,
//! or the 2D diagram) with hover/selection overlays.
//!
//! Everything here moved from the desktop's `gui::solid_preview::preview_state`
//! (types, requests, the planner, the request-resolution state machine and the
//! render step) or is a new pure helper around it, so the desktop's worker
//! threads and the web app's main thread run the very same functions:
//!
//! - [`build_planned_frame`] (the planner, around [`crate::live_update::plan_preview`],
//! with an injected [`crate::live_update::Clock`]);
//! - [`render_request`] (resolve one [`RedrawRequest`] against [`WorkerMemory`],
//! rasterize, build the diagram) returning a [`RenderedFrame`];
//! - [`PreviewPipeline`], the two run back to back on one thread (the web app);
//! - [`camera`]'s orbit/zoom/pose math and [`view`]'s hit testing, raster sizing,
//! selection stepping and dirty-tier diff.
//!
//! The desktop keeps its threads, its `RedrawGate` coalescing and the Slint
//! pixel-buffer conversion, and re-exports the moved items at their old paths.
//! The identity pins recorded before the move (`preview_state::tests::pins` in the
//! desktop) are asserted again by this module's own tests through
//! [`PreviewPipeline`].
pub use PreviewPipeline;
pub use build_planned_frame;
pub use ;
pub use ;
pub use ;
pub use ;