[100][101][102] Schraffur-Strichmuster mit Musterskala (Druck/Bildschirm/DXF), Strichrhythmus fest im Modell-Raum, Bodenbeläge im Grundriss, Dachaufsicht nur von oben, Ansichtsmuster im 3D, Rückmeldung „Standards laden“
This commit is contained in:
38 files changed
+879
-60
No files matched your search
@@ -205,14 +205,14 @@ fn native2d_texts(app: tauri::AppHandle, upsert: serde_json::Value, remove: Vec<
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
fn native2d_frame(app: tauri::AppHandle, view: serde_json::Value, paper_scale: f64, clear: Option<[f64; 3]>) -> Result<(), String> {
|
||||
fn native2d_frame(app: tauri::AppHandle, view: serde_json::Value, paper_scale: f64, clear: Option<[f64; 3]>, dash_scale: Option<f64>) -> Result<(), String> {
|
||||
#[cfg(all(feature = "native2d", target_os = "macos"))]
|
||||
{
|
||||
let view = serde_json::from_value(view).map_err(|e| e.to_string())?;
|
||||
native_embed::frame(&app, view, paper_scale, clear);
|
||||
native_embed::frame(&app, view, paper_scale, clear, dash_scale);
|
||||
}
|
||||
#[cfg(not(all(feature = "native2d", target_os = "macos")))]
|
||||
let _ = (app, view, paper_scale, clear);
|
||||
let _ = (app, view, paper_scale, clear, dash_scale);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
@@ -199,10 +199,12 @@ pub fn set_layout(app: &AppHandle, layout: Vec<ChunkGeom>, delete: Vec<u32>) {
|
||||
}
|
||||
|
||||
/// Ausschnitt (Pan/Zoom) setzen und zeichnen — der einzige Pro-Frame-Aufruf.
|
||||
pub fn frame(app: &AppHandle, view: View, paper_scale: f64, clear: Option<[f64; 3]>) {
|
||||
pub fn frame(app: &AppHandle, view: View, paper_scale: f64, clear: Option<[f64; 3]>, dash_scale: Option<f64>) {
|
||||
if let Some(e) = app.state::<EmbedState>().0.lock().unwrap().as_mut() {
|
||||
e.view = view;
|
||||
e.paper_scale = paper_scale;
|
||||
// Strichmuster im Plot-Massstab (fest im Modell-Raum, s. `render2d::ortho::dash_scale`).
|
||||
e.renderer.dash_scale_n = dash_scale.unwrap_or(0.0);
|
||||
if let Some(c) = clear {
|
||||
e.renderer.clear = c;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user