From 3588df04990c5b6459df1595c28597358c2a7e86 Mon Sep 17 00:00:00 2001 From: Michael Mauderer Date: Fri, 3 Mar 2023 14:21:25 +0000 Subject: [PATCH] Changelog update. --- CHANGELOG.md | 4 ++++ app/gui/view/examples/text-grid-visualization/src/lib.rs | 1 + .../native/text_visualization/grid_view_entry.rs | 2 +- .../visualization/native/text_visualization/text_provider.rs | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 78cf66dcc1fe2..9443f3cf89bc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -106,6 +106,9 @@ - [The Component Browser icons are cached on texture][5779] improving its performance on slower machines. - [Fixed missing result preview when editing nodes.][5757] +- [A new table visualisation is added.][5806] It has a new visual design and + loads data lazily from the backend, which allows it to handle larger datasets + without freezing the IDE. #### EnsoGL (rendering engine) @@ -505,6 +508,7 @@ [5721]: https://github.com/enso-org/enso/pull/5721 [5779]: https://github.com/enso-org/enso/pull/5779 [5757]: https://github.com/enso-org/enso/pull/5757 +[5806]: https://github.com/enso-org/enso/pull/5806 #### Enso Compiler diff --git a/app/gui/view/examples/text-grid-visualization/src/lib.rs b/app/gui/view/examples/text-grid-visualization/src/lib.rs index be61172d27d34..e1a49e282c115 100644 --- a/app/gui/view/examples/text-grid-visualization/src/lib.rs +++ b/app/gui/view/examples/text-grid-visualization/src/lib.rs @@ -30,6 +30,7 @@ use ide_view::graph_editor::builtin::visualization::native::text_visualization:: use ide_view::graph_editor::builtin::visualization::native::text_visualization::CHARS_PER_CHUNK; + fn sample_text() -> String { let mut text = String::new(); for n in (0..1001).rev() { diff --git a/app/gui/view/graph-editor/src/builtin/visualization/native/text_visualization/grid_view_entry.rs b/app/gui/view/graph-editor/src/builtin/visualization/native/text_visualization/grid_view_entry.rs index 4163ac6117be3..997a53b7167bb 100644 --- a/app/gui/view/graph-editor/src/builtin/visualization/native/text_visualization/grid_view_entry.rs +++ b/app/gui/view/graph-editor/src/builtin/visualization/native/text_visualization/grid_view_entry.rs @@ -60,7 +60,7 @@ impl Model { pub fn text(&self, width: usize) -> String { match &self.content { Content::Text { content, .. } => content.to_string(), - _ => " ".repeat(width), + Content::Divider { top, bottom, left, right } => {} } } } diff --git a/app/gui/view/graph-editor/src/builtin/visualization/native/text_visualization/text_provider.rs b/app/gui/view/graph-editor/src/builtin/visualization/native/text_visualization/text_provider.rs index 63d0246d4d185..ac11474984901 100644 --- a/app/gui/view/graph-editor/src/builtin/visualization/native/text_visualization/text_provider.rs +++ b/app/gui/view/graph-editor/src/builtin/visualization/native/text_visualization/text_provider.rs @@ -18,6 +18,7 @@ use super::GridWindow; use enso_prelude::serde_reexports::Deserialize; + /// Width of a divider (e.g., space between columns) in the table in characters. const DIVIDER_WIDTH_IN_CHARS: usize = 3;