diff --git a/ide/CHANGELOG.md b/ide/CHANGELOG.md index 2d47d791c92b..43b850bbc31a 100644 --- a/ide/CHANGELOG.md +++ b/ide/CHANGELOG.md @@ -1,5 +1,15 @@ # Next Release +
![New Features](/docs/assets/tags/new_features.svg) + +#### Visual Environment + +- [Visualization previews are disabled.][1817] Previously, hovering over a + node's output port for more than four seconds would temporarily reveal the + node's visualization. This behavior is disabled now. + +[1817]: https://github.com/enso-org/ide/pull/1817 + # Enso 2.0.0-alpha.13 (2021-08-27)
![New Features](/docs/assets/tags/new_features.svg) @@ -16,7 +26,7 @@
![New Features](/docs/assets/tags/new_features.svg) -#### Enso Compiler +#### Visual Environment - [Improvements to visualization handling][1804]. These improvements are fixing possible performance issues around attaching and detaching visualizations. diff --git a/ide/src/rust/ide/view/graph-editor/src/component/node.rs b/ide/src/rust/ide/view/graph-editor/src/component/node.rs index 93ae7d4f5198..c159e4c361ca 100644 --- a/ide/src/rust/ide/view/graph-editor/src/component/node.rs +++ b/ide/src/rust/ide/view/graph-editor/src/component/node.rs @@ -63,10 +63,11 @@ pub const COMMENT_MARGIN : f32 = 10.0; const INFINITE : f32 = 99999.0; const ERROR_VISUALIZATION_SIZE : (f32,f32) = visualization::container::DEFAULT_SIZE; -const VISUALIZATION_OFFSET_Y : f32 = -120.0; +const VISUALIZATION_OFFSET_Y : f32 = -120.0; -const VIS_PREVIEW_ONSET_MS : f32 = 4000.0; -const ERROR_PREVIEW_ONSET_MS : f32 = 0000.0; +const ENABLE_VIS_PREVIEW : bool = false; +const VIS_PREVIEW_ONSET_MS : f32 = 4000.0; +const ERROR_PREVIEW_ONSET_MS : f32 = 0000.0; /// A type of unresolved methods. We filter them out, because we don't want to treat them as types /// for ports and edges coloring (due to bad UX otherwise). const UNRESOLVED_SYMBOL_TYPE : &str = "Builtins.Main.Unresolved_Symbol"; @@ -745,7 +746,9 @@ impl Node { preview_visible <- preview_visible && has_expression; preview_visible <- preview_visible.on_change(); - visualization_visible <- visualization_enabled || preview_visible; + visualization_visible <- all_with(&visualization_enabled,&preview_visible, + |&visualization_enabled,&preview_visible| + visualization_enabled || (preview_visible && ENABLE_VIS_PREVIEW)); visualization_visible <- visualization_visible && no_error_set; visualization_visible_on_change <- visualization_visible.on_change(); frp.source.visualization_visible <+ visualization_visible_on_change;