feat: correct viewport scale calculation with correct dimension and text scaling

This commit is contained in:
Hakan Seven committed 2026-05-19 00:26:08 +03:00
1 parent a0aa0f3c51
commit 66243e53ca
6 files changed
+326 -71

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ const COMMON_SCALES: &[(&str, f32, f64)] = &[
///
/// - `is_model`: true = model space (dispatches SetAnnotationScale), false = paper space (SetViewportScale).
/// - `current_anno_scale`: current annotation_scale from Scene (used to highlight active row in model space).
/// - `viewport_scale`: current vp.custom_scale (used to highlight in paper space).
/// - `viewport_scale`: current effective vp scale, view_height-first (used to highlight in paper space).
pub fn scale_popup_overlay(
is_model: bool,
current_anno_scale: f32,