refactor(ui-egui): move cursors, frame_labels, frame_stats, guides, handles, measure_overlay, proto_canvas, render_worker, selection_spacing, live_text, comments, board_bar, board_facilitate, widget_bar to canvas/

This commit is contained in:
aiongg committed 2026-10-26 20:17:48 +00:00
1 parent e1b0ea2c1d
commit 3e23a0f884
16 files changed
+28 -14

No files matched your search

+14
View File
@@ -13,6 +13,20 @@ use crate::FigApp;
use crate::i18n::{tr, trf, trn};
use crate::render_worker::{Done, Job, Worker};
use crate::theme::{COMPONENT, Tokens, doc_c32, regular, semibold};
pub mod board_bar;
pub mod board_facilitate;
pub mod comments;
pub mod cursors;
pub mod frame_labels;
pub mod frame_stats;
pub mod guides;
pub mod handles;
pub mod live_text;
pub mod measure_overlay;
pub mod proto_canvas;
pub mod render_worker;
pub(crate) mod selection_spacing;
pub mod widget_bar;
pub struct CanvasState {
pub rect: Rect,
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+14 -14
View File
@@ -8,29 +8,21 @@
pub mod a11y;
pub mod assets_panel;
pub mod bidi;
pub mod board_bar;
pub mod board_facilitate;
mod board_picker;
pub mod branch_ui;
pub mod canvas;
pub mod cjk;
pub mod colorpicker;
pub mod comments;
pub mod component_panel;
pub mod control;
pub mod credits;
pub mod cursors;
pub mod dev_compare;
pub mod dev_mode;
pub mod dialogs;
pub mod export_panel;
pub mod field_math;
pub mod font_preview;
pub mod frame_labels;
pub mod frame_presets;
pub mod frame_stats;
pub mod guides;
pub mod handles;
pub mod home;
pub mod home_recents;
pub mod i18n;
@@ -40,23 +32,18 @@ pub mod layers;
pub mod layout_panel;
pub mod list_drag;
pub mod live;
pub mod live_text;
pub mod measure_overlay;
pub mod menus;
pub mod missing_fonts;
pub mod online;
pub mod pending_open;
pub mod plugins_ui;
pub mod present;
pub mod proto_canvas;
pub mod proto_editor;
pub mod proto_panel;
pub mod render_worker;
pub mod right;
pub mod scale_panel;
pub mod section_panel;
pub mod selection_colors;
mod selection_spacing;
pub mod shortcuts;
pub mod shortcuts_panel;
pub mod style_picker;
@@ -70,7 +57,6 @@ pub mod variable_ui;
pub mod variables_panel;
pub mod vector_panel;
pub mod versions;
pub mod widget_bar;
pub mod widgets;
pub mod windows;
@@ -259,6 +245,20 @@ mod web_save_tests;
mod windows_qa_tests;
#[cfg(test)]
mod windows_tests;
pub use canvas::board_bar;
pub use canvas::board_facilitate;
pub use canvas::comments;
pub use canvas::cursors;
pub use canvas::frame_labels;
pub use canvas::frame_stats;
pub use canvas::guides;
pub use canvas::handles;
pub use canvas::live_text;
pub use canvas::measure_overlay;
pub use canvas::proto_canvas;
pub use canvas::render_worker;
use canvas::selection_spacing;
pub use canvas::widget_bar;
use std::collections::BTreeSet;
use std::ffi::OsStr;