Wrapping up bedrock implementation

This commit is contained in:
Ryan Ward
2026-05-13 10:04:59 -05:00
parent ed53aa99eb
commit cee61e2af0
1144 changed files with 2954 additions and 2660 deletions
+1 -1
View File
@@ -1,8 +1,8 @@
//! Hit-testing implementation for the rendering model.
use galaxyui::units::{IntoPixels, Pixels};
use num_traits::SaturatingSub;
use sum_tree::SeekBias;
use galaxyui::units::{IntoPixels, Pixels};
use string_offset::CharOffset;
@@ -15,11 +15,11 @@ use pathfinder_color::ColorU;
use std::{cell::Cell, sync::Arc};
use string_offset::CharOffset;
use sum_tree::SumTree;
use galaxyui::assets::asset_cache::AssetSource;
use galaxyui::fonts::FamilyId;
use galaxyui::text_layout::{CaretPosition, TextFrame};
use galaxyui::units::IntoPixels;
use sum_tree::SumTree;
fn test_table_layout() -> LaidOutTable {
let source = "aaa\tbbb\nccc\tddd\n";
+10 -10
View File
@@ -12,15 +12,6 @@ use parking_lot::Mutex;
use rangemap::RangeSet;
use float_cmp::ApproxEq;
use itertools::Itertools;
use markdown_parser::TableAlignment;
use num_traits::SaturatingSub;
use ordered_float::OrderedFloat;
use serde::{Deserialize, Serialize};
use serde_yaml::Mapping;
use sum_tree::{SeekBias, SumTree};
use vec1::Vec1;
use vim::vim::{MotionType, VimMode};
use galaxy_core::{
channel::ChannelState,
ui::{Icon, theme::Fill as ThemeFill},
@@ -44,6 +35,15 @@ use galaxyui::{
},
units::{IntoPixels, Pixels},
};
use itertools::Itertools;
use markdown_parser::TableAlignment;
use num_traits::SaturatingSub;
use ordered_float::OrderedFloat;
use serde::{Deserialize, Serialize};
use serde_yaml::Mapping;
use sum_tree::{SeekBias, SumTree};
use vec1::Vec1;
use vim::vim::{MotionType, VimMode};
pub use self::location::{HitTestOptions, Location};
pub use self::offset_map::{OffsetMap, SelectableTextRun};
@@ -68,8 +68,8 @@ use crate::{
editor::EmbeddedItemModel,
render::model::debug::Describe,
};
use string_offset::{CharOffset, impl_offset};
use galaxyui::elements::ListIndentLevel;
use string_offset::{CharOffset, impl_offset};
use super::{
BLOCK_FOOTER_HEIGHT,
+5 -5
View File
@@ -1,7 +1,3 @@
use rangemap::RangeSet;
use std::{cell::Cell, sync::Arc};
use sum_tree::SumTree;
use vec1::{Vec1, vec1};
use galaxyui::assets::asset_cache::AssetSource;
use galaxyui::{
color::ColorU,
@@ -10,6 +6,10 @@ use galaxyui::{
text_layout::TextFrame,
units::{IntoPixels, Pixels},
};
use rangemap::RangeSet;
use std::{cell::Cell, sync::Arc};
use sum_tree::SumTree;
use vec1::{Vec1, vec1};
use super::{
BlockItem, BlockLocation, COMMAND_SPACING, CellLayout, DEFAULT_BLOCK_SPACINGS,
@@ -32,9 +32,9 @@ use crate::{
test_utils::{TEST_STYLES, laid_out_paragraph, mock_paragraph},
},
};
use galaxyui::elements::ListIndentLevel;
use markdown_parser::{FormattedTextStyles, Hyperlink};
use string_offset::CharOffset;
use galaxyui::elements::ListIndentLevel;
#[test]
fn test_height() {
+1 -1
View File
@@ -3,12 +3,12 @@
use std::sync::Arc;
use sum_tree::{Cursor, Dimension};
use galaxyui::{
geometry::vector::Vector2F,
text_layout::Line,
units::{IntoPixels, Pixels},
};
use sum_tree::{Cursor, Dimension};
use crate::render::layout::line_height;
use string_offset::CharOffset;
+1 -1
View File
@@ -5,7 +5,6 @@ use std::{mem, sync::Arc};
use vec1::{Vec1, vec1};
use crate::content::text::BufferBlockStyle;
use ordered_float::OrderedFloat;
use galaxyui::elements::ListIndentLevel;
use galaxyui::{
color::ColorU,
@@ -15,6 +14,7 @@ use galaxyui::{
text_layout::{CaretPosition, Glyph, Line, Run, TextFrame},
units::{IntoPixels, Pixels},
};
use ordered_float::OrderedFloat;
use super::{
BlockItem, BrokenLinkStyle, CheckBoxStyle, DEFAULT_BLOCK_SPACINGS, HorizontalRuleStyle,
+1 -1
View File
@@ -1,5 +1,4 @@
use float_cmp::ApproxEq;
use sum_tree::{SeekBias, SumTree};
use galaxyui::{
SizeConstraint,
geometry::{
@@ -8,6 +7,7 @@ use galaxyui::{
},
units::{IntoPixels, Pixels},
};
use sum_tree::{SeekBias, SumTree};
use crate::render::element::RenderContext;
use string_offset::CharOffset;