diff --git a/plugins/diopser/src/editor.rs b/plugins/diopser/src/editor.rs index cbb16419..9f1fbab1 100644 --- a/plugins/diopser/src/editor.rs +++ b/plugins/diopser/src/editor.rs @@ -29,6 +29,9 @@ mod button; /// VIZIA uses points instead of pixels for text const POINT_SCALE: f32 = 0.75; +const EDITOR_WIDTH: u32 = 600; +const EDITOR_HEIGHT: u32 = 490; + #[derive(Lens)] struct Data { params: Arc, @@ -42,7 +45,7 @@ impl Model for Data {} // Makes sense to also define this here, makes it a bit easier to keep track of pub(crate) fn default_state() -> Arc { - ViziaState::from_size(600, 490) + ViziaState::from_size(EDITOR_WIDTH, EDITOR_HEIGHT) } pub(crate) fn create(