From ff176e92c7bb3a669726a22f5e03a45ba2698530 Mon Sep 17 00:00:00 2001 From: chubakueno Date: Thu, 15 May 2025 17:18:48 -0500 Subject: [PATCH 01/15] DYN-8576 - change autocomplete popup to a Window to improve behavior (#16208) --- .../NodeAutoCompleteSearchControl.xaml | 19 +++++--- .../NodeAutoCompleteSearchControl.xaml.cs | 34 +++++++++++---- .../ViewModels/Core/NodeViewModel.cs | 6 +-- .../ViewModels/Core/PortViewModel.cs | 36 ++-------------- .../ViewModels/Core/WorkspaceViewModel.cs | 6 +-- .../Search/NodeAutoCompleteSearchViewModel.cs | 1 + .../Views/Core/DynamoView.xaml.cs | 1 - src/DynamoCoreWpf/Views/Core/NodeView.xaml.cs | 28 +++++++++--- .../Views/Core/WorkspaceView.xaml | 9 ---- .../Views/Core/WorkspaceView.xaml.cs | 43 ++++++++----------- .../NodeAutoCompleteSearchTests.cs | 16 +++---- 11 files changed, 95 insertions(+), 104 deletions(-) diff --git a/src/DynamoCoreWpf/Controls/NodeAutoCompleteSearchControl.xaml b/src/DynamoCoreWpf/Controls/NodeAutoCompleteSearchControl.xaml index 9db860bfaf4..627a8d3b591 100644 --- a/src/DynamoCoreWpf/Controls/NodeAutoCompleteSearchControl.xaml +++ b/src/DynamoCoreWpf/Controls/NodeAutoCompleteSearchControl.xaml @@ -1,4 +1,4 @@ - - + @@ -40,7 +45,7 @@ - + - + @@ -374,4 +379,4 @@ - + diff --git a/src/DynamoCoreWpf/Controls/NodeAutoCompleteSearchControl.xaml.cs b/src/DynamoCoreWpf/Controls/NodeAutoCompleteSearchControl.xaml.cs index ce9af598a2a..23534e9e135 100644 --- a/src/DynamoCoreWpf/Controls/NodeAutoCompleteSearchControl.xaml.cs +++ b/src/DynamoCoreWpf/Controls/NodeAutoCompleteSearchControl.xaml.cs @@ -57,6 +57,23 @@ public NodeAutoCompleteSearchControl() HomeWorkspaceModel.WorkspaceClosed += this.CloseAutoCompletion; } + internal NodeAutoCompleteSearchControl(Window window, NodeAutoCompleteSearchViewModel viewModel) + { + Owner = window; + DataContext = viewModel; + ViewModel.IsOpen = true; + InitializeComponent(); + if (string.IsNullOrEmpty(DynamoModel.HostAnalyticsInfo.HostName) && Application.Current != null) + { + Application.Current.Deactivated += CurrentApplicationDeactivated; + if (Application.Current?.MainWindow != null) + { + Application.Current.MainWindow.Closing += NodeAutoCompleteSearchControl_Unloaded; + } + } + HomeWorkspaceModel.WorkspaceClosed += this.CloseAutoCompletion; + } + private void NodeAutoCompleteSearchControl_Unloaded(object sender, System.ComponentModel.CancelEventArgs e) { if (string.IsNullOrEmpty(DynamoModel.HostAnalyticsInfo.HostName) && Application.Current != null) @@ -72,12 +89,13 @@ private void NodeAutoCompleteSearchControl_Unloaded(object sender, System.Compon private void CurrentApplicationDeactivated(object sender, EventArgs e) { - OnRequestShowNodeAutoCompleteSearch(ShowHideFlags.Hide); + OnRequestHideNodeAutoCompleteSearch(); } - private void OnRequestShowNodeAutoCompleteSearch(ShowHideFlags flags) + private void OnRequestHideNodeAutoCompleteSearch() { - RequestShowNodeAutoCompleteSearch?.Invoke(flags); + this.ViewModel.IsOpen = false; + this.Close(); } private void OnSearchTextBoxTextChanged(object sender, TextChangedEventArgs e) @@ -101,7 +119,7 @@ private void OnMouseLeftButtonDown(object sender, MouseButtonEventArgs e) if (!(sender is ListBoxItem listBoxItem) || e.OriginalSource is Thumb) return; ExecuteSearchElement(listBoxItem); - OnRequestShowNodeAutoCompleteSearch(ShowHideFlags.Hide); + OnRequestHideNodeAutoCompleteSearch(); e.Handled = true; } @@ -236,7 +254,7 @@ private void OnParentNodeRemoved(NodeModel node) NodeModel parent_node = ViewModel.PortViewModel?.PortModel.Owner; if (node == parent_node) { - OnRequestShowNodeAutoCompleteSearch(ShowHideFlags.Hide); + OnRequestHideNodeAutoCompleteSearch(); ViewModel.ParentNodeRemoved -= OnParentNodeRemoved; } } @@ -307,13 +325,13 @@ private void OnInCanvasSearchKeyDown(object sender, KeyEventArgs e) switch (key) { case Key.Escape: - OnRequestShowNodeAutoCompleteSearch(ShowHideFlags.Hide); + OnRequestHideNodeAutoCompleteSearch(); break; case Key.Enter: if (HighlightedItem != null && ViewModel.CurrentMode != SearchViewModel.ViewMode.LibraryView) { ExecuteSearchElement(HighlightedItem); - OnRequestShowNodeAutoCompleteSearch(ShowHideFlags.Hide); + OnRequestHideNodeAutoCompleteSearch(); } break; case Key.Up: @@ -382,7 +400,7 @@ internal void CloseAutocompletionWindow(object sender, RoutedEventArgs e) internal void CloseAutoCompletion() { - OnRequestShowNodeAutoCompleteSearch(ShowHideFlags.Hide); + OnRequestHideNodeAutoCompleteSearch(); ViewModel?.OnNodeAutoCompleteWindowClosed(); } diff --git a/src/DynamoCoreWpf/ViewModels/Core/NodeViewModel.cs b/src/DynamoCoreWpf/ViewModels/Core/NodeViewModel.cs index 40cf1461824..f15f7613d51 100644 --- a/src/DynamoCoreWpf/ViewModels/Core/NodeViewModel.cs +++ b/src/DynamoCoreWpf/ViewModels/Core/NodeViewModel.cs @@ -39,7 +39,7 @@ public partial class NodeViewModel : ViewModelBase public delegate void SnapInputEventHandler(PortViewModel portViewModel); public delegate void PreviewPinStatusHandler(bool pinned); - internal delegate void NodeAutoCompletePopupEventHandler(Popup popup); + internal delegate void NodeAutoCompletePopupEventHandler(Window window, PortModel portType, double spacing); internal delegate void NodeClusterAutoCompletePopupEventHandler(Window window, double spacing); internal delegate void PortContextMenuPopupEventHandler(Popup popup); #endregion @@ -831,9 +831,9 @@ internal bool IsWatchNode internal event NodeAutoCompletePopupEventHandler RequestAutoCompletePopupPlacementTarget; internal event PortContextMenuPopupEventHandler RequestPortContextMenuPopupPlacementTarget; - internal void OnRequestAutoCompletePopupPlacementTarget(Popup popup) + internal void OnRequestAutoCompletePopupPlacementTarget(Window window, PortModel portModel, double spacing) { - RequestAutoCompletePopupPlacementTarget?.Invoke(popup); + RequestAutoCompletePopupPlacementTarget?.Invoke(window, portModel, spacing); } internal void OnClusterRequestAutoCompletePopupPlacementTarget(Window window, double spacing) diff --git a/src/DynamoCoreWpf/ViewModels/Core/PortViewModel.cs b/src/DynamoCoreWpf/ViewModels/Core/PortViewModel.cs index 02058a9cbb7..e8ba37500c3 100644 --- a/src/DynamoCoreWpf/ViewModels/Core/PortViewModel.cs +++ b/src/DynamoCoreWpf/ViewModels/Core/PortViewModel.cs @@ -330,11 +330,10 @@ private T FindChild(DependencyObject parent, Func predicate) where T /// /// Sets up the node autocomplete window to be placed relative to the node. /// - /// Node autocomplete popup. - internal void SetupNodeAutoCompleteWindowPlacement(Popup popup) + /// Node autocomplete popup. + internal void SetupNodeAutoCompleteWindowPlacement(Window window) { - node.OnRequestAutoCompletePopupPlacementTarget(popup); - popup.CustomPopupPlacementCallback = PlaceAutocompletePopup; + node.OnRequestAutoCompletePopupPlacementTarget(window, PortModel, autocompletePopupSpacing); } /// @@ -394,33 +393,6 @@ private void ConfigurePopupPlacement(Popup popup, double zoom) }; } - private CustomPopupPlacement[] PlaceAutocompletePopup(Size popupSize, Size targetSize, Point offset) - { - var zoom = node.WorkspaceViewModel.Zoom; - - double x; - var scaledSpacing = autocompletePopupSpacing * targetSize.Width / node.ActualWidth; - if (PortModel.PortType == PortType.Input) - { - // Offset popup to the left by its width from left edge of node and spacing. - x = -scaledSpacing - popupSize.Width; - } - else - { - // Offset popup to the right by node width and spacing from left edge of node. - x = scaledSpacing + targetSize.Width; - } - // Offset popup down from the upper edge of the node by the node header and corresponding to the respective port. - // Scale the absolute heights by the target height (passed to the callback) and the actual height of the node. - var scaledHeight = targetSize.Height / node.ActualHeight; - var absoluteHeight = NodeModel.HeaderHeight + (PortModel.Index * PortModel.Height); - var y = absoluteHeight * scaledHeight; - - var placement = new CustomPopupPlacement(new Point(x, y), PopupPrimaryAxis.None); - - return new[] { placement }; - } - private CustomPopupPlacement[] PlacePortContextMenu(Size popupSize, Size targetSize, Point offset) { // The actual zoom here is confusing @@ -575,7 +547,7 @@ private void AutoComplete(object parameter) wsViewModel.NodeAutoCompleteSearchViewModel.PortViewModel = this; - wsViewModel.OnRequestNodeAutoCompleteSearch(ShowHideFlags.Show); + wsViewModel.OnRequestNodeAutoCompleteSearch(); } // Handler to invoke Node autocomplete cluster diff --git a/src/DynamoCoreWpf/ViewModels/Core/WorkspaceViewModel.cs b/src/DynamoCoreWpf/ViewModels/Core/WorkspaceViewModel.cs index 8b83d0d8090..d2052eaa91d 100644 --- a/src/DynamoCoreWpf/ViewModels/Core/WorkspaceViewModel.cs +++ b/src/DynamoCoreWpf/ViewModels/Core/WorkspaceViewModel.cs @@ -170,14 +170,14 @@ private void OnRequestHideAllPopup(object param) RequestHideAllPopup?.Invoke(param); } - internal event Action RequestNodeAutoCompleteSearch; + internal event Action RequestNodeAutoCompleteSearch; internal event Action RequestNodeAutoCompleteBar; internal event Action RequestPortContextMenu; internal static event Action RequestNodeAutoCompleteViewExtension; - internal void OnRequestNodeAutoCompleteSearch(ShowHideFlags flag, bool ClusterNodeAutocomplete = false) + internal void OnRequestNodeAutoCompleteSearch() { - RequestNodeAutoCompleteSearch?.Invoke(flag); + RequestNodeAutoCompleteSearch?.Invoke(); } internal void OnRequestNodeAutocompleteBar(PortViewModel viewModel) diff --git a/src/DynamoCoreWpf/ViewModels/Search/NodeAutoCompleteSearchViewModel.cs b/src/DynamoCoreWpf/ViewModels/Search/NodeAutoCompleteSearchViewModel.cs index 2b1a7563d5f..e2180896c3f 100644 --- a/src/DynamoCoreWpf/ViewModels/Search/NodeAutoCompleteSearchViewModel.cs +++ b/src/DynamoCoreWpf/ViewModels/Search/NodeAutoCompleteSearchViewModel.cs @@ -45,6 +45,7 @@ public class NodeAutoCompleteSearchViewModel : SearchViewModel private bool displayLowConfidence; private const string nodeAutocompleteMLEndpoint = "MLNodeAutocomplete"; private const string nodeClusterAutocompleteMLEndpoint = "MLNodeClusterAutocomplete"; + internal bool IsOpen { get; set; } // Lucene search utility to perform indexing operations just for NodeAutocomplete. internal LuceneSearchUtility LuceneUtility diff --git a/src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs b/src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs index eabb81cd8cf..a9d0838ad2a 100644 --- a/src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs +++ b/src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs @@ -3147,7 +3147,6 @@ public void Dispose() //TODO code smell. var workspaceView = this.ChildOfType(); workspaceView?.Dispose(); - (workspaceView?.NodeAutoCompleteSearchBar?.Child as IDisposable)?.Dispose(); } } } diff --git a/src/DynamoCoreWpf/Views/Core/NodeView.xaml.cs b/src/DynamoCoreWpf/Views/Core/NodeView.xaml.cs index 6383a6afeb4..4d804c2ee1f 100644 --- a/src/DynamoCoreWpf/Views/Core/NodeView.xaml.cs +++ b/src/DynamoCoreWpf/Views/Core/NodeView.xaml.cs @@ -292,19 +292,33 @@ private void CachedValueChanged() })); } - private void ViewModel_RequestAutoCompletePopupPlacementTarget(Popup popup) + private Point PointToLocal(double x, double y, UIElement target) { - popup.PlacementTarget = this; + Point positionFromScreen = target.PointToScreen(new Point(x, y)); + PresentationSource source = PresentationSource.FromVisual(target); + Point targetPoints = source.CompositionTarget.TransformFromDevice.Transform(positionFromScreen); + return targetPoints; + } - ViewModel.ActualHeight = ActualHeight; - ViewModel.ActualWidth = ActualWidth; + private void ViewModel_RequestAutoCompletePopupPlacementTarget(Window window, PortModel portModel, double spacing) + { + if (portModel.PortType == PortType.Input) + { + var portView = inputPortControl.ItemContainerGenerator.ContainerFromIndex(portModel.Index) as FrameworkElement; + window.Top = PointToLocal(0, 0, portView).Y; + window.Left = PointToLocal(0, 0, this).X - window.Width - spacing; + } + else + { + var portView = outputPortControl.ItemContainerGenerator.ContainerFromIndex(portModel.Index) as FrameworkElement; + window.Top = PointToLocal(0, 0, portView).Y; + window.Left = PointToLocal(ActualWidth, 0, this).X + spacing; + } } private void ViewModel_RequestClusterAutoCompletePopupPlacementTarget(Window window, double spacing) { - Point positionFromScreen = PointToScreen(new Point(0, this.ActualHeight)); - PresentationSource source = PresentationSource.FromVisual(this); - Point targetPoints = source.CompositionTarget.TransformFromDevice.Transform(positionFromScreen); + Point targetPoints = PointToLocal(0, ActualHeight, this); window.Left = targetPoints.X; window.Top = targetPoints.Y + spacing; diff --git a/src/DynamoCoreWpf/Views/Core/WorkspaceView.xaml b/src/DynamoCoreWpf/Views/Core/WorkspaceView.xaml index 7d3f61daa72..1bfdf4a4244 100644 --- a/src/DynamoCoreWpf/Views/Core/WorkspaceView.xaml +++ b/src/DynamoCoreWpf/Views/Core/WorkspaceView.xaml @@ -369,15 +369,6 @@ - - - - Crea una malla a partir de una colección de puntos y una colección de IndexGroups que hacen referencia a la colección de puntos. Lista de puntos - Index groups for points + Grupos de índice para puntos Malla mesh,meshes @@ -4852,10 +4852,10 @@ un objeto LibG. de los tres puntos de un triángulo. - Create a new Mesh from supplied points and indices. Points should - not overlap. Indices should be sets of three integers - indicating the three locations in the points array - of the three points of a triangle + Crea una nueva malla a partir de los puntos e índices proporcionados. Los puntos no deben + solaparse. Los índices deben ser conjuntos de tres enteros + que indican las tres ubicaciones de la matriz de puntos + de los tres puntos de un triángulo. Crea un plano de malla basado en la configuración actual. @@ -5611,10 +5611,10 @@ Básicamente, la malla está llena de innumerables cuadros diminutos y se crea u Busca una cadena localizada similar a {0} es menor que cero. - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[]) instead. + Busca una cadena localizada similar a Este método se ha dejado de usar y se eliminará en una versión futura de Dynamo. En su lugar, utilice Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[]). - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndices (Point[] points, Indices : int[]) instead. + Busca una cadena localizada similar a Este método se ha dejado de usar y se eliminará en una versión futura de Dynamo. En su lugar, utilice Mesh.ByPointsIndices (Point[] points, Indices : int[]). Busca una cadena localizada similar a Los nodos de malla utilizan una precisión de 32 bits (7 decimales), lo que puede provocar errores de redondeo con números grandes o con números con más de 7 decimales. Para obtener una mayor precisión (64 bits, 15 decimales), utilice nodos de la biblioteca de geometría. diff --git a/doc/distrib/xml/fr-FR/DSCoreNodes.xml b/doc/distrib/xml/fr-FR/DSCoreNodes.xml index df3f813662f..2afaa6d8fa1 100644 --- a/doc/distrib/xml/fr-FR/DSCoreNodes.xml +++ b/doc/distrib/xml/fr-FR/DSCoreNodes.xml @@ -1608,16 +1608,16 @@ Recherchez "Chaînes de format de date et d'heure personnalisées MSDN" pour obt Recherche une chaîne localisée similaire à Les données de couleur fournies sont trop grandes pour tenir dans les limites de l'image. - Looks up a localized string similar to • Min and Max values must be different.. + Recherche une chaîne localisée similaire à • Les valeurs Min et Max doivent être différentes. - Looks up a localized string similar to • Values must be a list of numbers or a single number ≥ 2.. + Recherche une chaîne localisée similaire à • Les valeurs doivent être indiquées sous forme de liste de nombres ou en un seul nombre ≥ 2. - Looks up a localized string similar to • Control points for the selected curve are not valid.. + Recherche une chaîne localisée semblable à • Les points de contrôle de la courbe sélectionnée ne sont pas valides. - Looks up a localized string similar to • X and Y inputs must be single numbers (not lists).. + Recherche une chaîne localisée similaire à • Les entrées X et Y doivent être des nombres uniques (et non des listes). Recherche une chaîne localisée similaire à "L'entrée doit être une valeur unique ou une liste non imbriquée.". diff --git a/doc/distrib/xml/fr-FR/ProtoGeometry.xml b/doc/distrib/xml/fr-FR/ProtoGeometry.xml index fd46b505e21..19f24e922c4 100644 --- a/doc/distrib/xml/fr-FR/ProtoGeometry.xml +++ b/doc/distrib/xml/fr-FR/ProtoGeometry.xml @@ -4820,7 +4820,7 @@ Créer un maillage à partir d'un ensemble de points et un ensemble d'IndexGroups référençant l'ensemble de points Liste de points - Index groups for points + Groupes d'index pour les points Maillage mesh,meshes @@ -4853,10 +4853,10 @@ des trois points d’un triangle - Create a new Mesh from supplied points and indices. Points should - not overlap. Indices should be sets of three integers - indicating the three locations in the points array - of the three points of a triangle + Créez un maillage à partir de points et d'index fournis. Les points ne doivent + pas se chevaucher. Les index doivent être des ensembles de trois entiers + indiquant les trois emplacements dans le réseau de points + des trois pointes d'un triangle Créez un plan de maillage basé sur les paramètres actuels. @@ -5611,10 +5611,10 @@ Fondamentalement, le maillage est rempli d’un tas de petites boîtes, et un no Recherche une chaîne localisée similaire à {0} est inférieur à zéro. - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[]) instead. + Recherche une chaîne localisée similaire à Cette méthode est obsolète et sera supprimée dans une prochaine version de Dynamo. Utilisez Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[]) à la place. - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndices (Point[] points, Indices : int[]) instead. + Recherche une chaîne localisée similaire à Cette méthode est obsolète et sera supprimée dans une prochaine version de Dynamo. Utilisez Mesh.ByPointsIndices (Point[] points, Indices : int[]) à la place. Recherche une chaîne similaire aux noeuds maillés qui utilisent la précision de 32 bits (7 décimales), ce qui peut entraîner des erreurs d'arrondi avec de grands nombres ou des nombres comportant plus de 7 décimales. Pour une précision plus élevée (64 bits, 15 décimales), utilisez des noeuds de la Bibliothèque de géométrie. diff --git a/doc/distrib/xml/it-IT/DSCoreNodes.xml b/doc/distrib/xml/it-IT/DSCoreNodes.xml index 1b956e660c6..7bf7e714cae 100644 --- a/doc/distrib/xml/it-IT/DSCoreNodes.xml +++ b/doc/distrib/xml/it-IT/DSCoreNodes.xml @@ -1595,16 +1595,16 @@ tale elemento nell'elenco. Se l'elemento non viene trovato nell'elenco, restitui Cerca una stringa localizzata simile a I dati del colore forniti sono troppo grandi per essere adattati ai limiti dell'immagine. - Looks up a localized string similar to • Min and Max values must be different.. + Cerca una stringa localizzata simile a • I valori min e max devono essere diversi. - Looks up a localized string similar to • Values must be a list of numbers or a single number ≥ 2.. + Cerca una stringa localizzata simile a • I valori devono essere un elenco di numeri o un numero singolo ≥ 2. - Looks up a localized string similar to • Control points for the selected curve are not valid.. + Cerca una stringa localizzata simile a • I punti di controllo per la curva selezionata non sono validi. - Looks up a localized string similar to • X and Y inputs must be single numbers (not lists).. + Cerca una stringa localizzata simile a • Gli input X e Y devono essere numeri singoli (non elenchi). Cerca una stringa localizzata simile a L'input deve essere un valore singolo o un elenco non nidificato. diff --git a/doc/distrib/xml/it-IT/ProtoGeometry.xml b/doc/distrib/xml/it-IT/ProtoGeometry.xml index 958315ef17d..8f688684b3a 100644 --- a/doc/distrib/xml/it-IT/ProtoGeometry.xml +++ b/doc/distrib/xml/it-IT/ProtoGeometry.xml @@ -4796,7 +4796,7 @@ Ottiene una rappresentazione stringa della mesh - Crea una mesh da una raccolta di punti e una raccolta di IndexGroup che fanno riferimento alla raccolta di punti + Crea una mesh da una raccolta di punti e una raccolta di IndexGroup che fanno riferimento alla raccolta di punti. Elenco di punti che determinano le posizioni dei vertici Indici per vertici Mesh creata da punti @@ -4805,10 +4805,10 @@ - Crea una mesh da una raccolta di punti e una raccolta di IndexGroup che fanno riferimento alla raccolta di punti + Crea una mesh da una raccolta di punti e una raccolta di IndexGroup che fanno riferimento alla raccolta di punti. Elenco di punti - Index groups for points - Retino + Gruppi di indici per punti + Mesh mesh,meshes @@ -4840,10 +4840,10 @@ dei tre punti di un triangolo. - Create a new Mesh from supplied points and indices. Points should - not overlap. Indices should be sets of three integers - indicating the three locations in the points array - of the three points of a triangle + Crea una nuova mesh dai punti e dagli indici forniti. I punti non devono + sovrapporsi. Gli indici devono essere gruppi di tre numeri interi + che indicano le tre posizioni nella matrice di punti + dei tre punti di un triangolo. Crea un piano mesh in base alle impostazioni correnti. @@ -5597,10 +5597,10 @@ Cerca una stringa localizzata simile a L'elemento {0} è minore di zero. - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[]) instead. + Cerca una stringa localizzata simile a Questo metodo è obsoleto e verrà rimosso in una versione futura di Dynamo. Utilizzare Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[]). - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndices (Point[] points, Indices : int[]) instead. + Cerca una stringa localizzata simile a Questo metodo è obsoleto e verrà rimosso in una versione futura di Dynamo. Utilizzare Mesh.ByPointsIndices (Point[] points, Indices : int[]). Cerca una stringa localizzata simile a I nodi della mesh utilizzano una precisione di 32 bit (7 cifre decimali), che può portare a errori di arrotondamento con numeri grandi o con più di 7 cifre decimali. Per una precisione maggiore (64 bit, 15 cifre decimali), utilizzare i nodi della libreria della geometria. diff --git a/doc/distrib/xml/ja-JP/DSCoreNodes.xml b/doc/distrib/xml/ja-JP/DSCoreNodes.xml index fcfa9964289..45cb6d603b9 100644 --- a/doc/distrib/xml/ja-JP/DSCoreNodes.xml +++ b/doc/distrib/xml/ja-JP/DSCoreNodes.xml @@ -1605,16 +1605,16 @@ 「指定されたカラー データは大きすぎるため、イメージの境界に収まりません」に類似するローカライズされた文字列を検索します。 - Looks up a localized string similar to • Min and Max values must be different.. + 「• 最小値と最大値は異なる値である必要があります。」に類似するローカライズされた文字列を検索します。 - Looks up a localized string similar to • Values must be a list of numbers or a single number ≥ 2.. + 「• 値は数値のリストまたは ≥ 2 の単一の数値である必要があります。」に類似するローカライズされた文字列を検索します。 - Looks up a localized string similar to • Control points for the selected curve are not valid.. + 「• 選択した曲線の制御点が無効です。」に類似するローカライズされた文字列を検索します。 - Looks up a localized string similar to • X and Y inputs must be single numbers (not lists).. + 「• X と Y の入力値は(リストではなく)単一の数値である必要があります。」に類似するローカライズされた文字列を検索します。 「入力は単一の値またはネストされていないリストである必要があります」に類似するローカライズされた文字列を検索します。 diff --git a/doc/distrib/xml/ja-JP/ProtoGeometry.xml b/doc/distrib/xml/ja-JP/ProtoGeometry.xml index 1920ced757f..8140df8e6e3 100644 --- a/doc/distrib/xml/ja-JP/ProtoGeometry.xml +++ b/doc/distrib/xml/ja-JP/ProtoGeometry.xml @@ -4815,10 +4815,10 @@ - 点群の集合と、点群の集合を参照する IndexGroup の集合からメッシュを作成します。 - ポイントのリスト - Index groups for points - Mesh + 点群の集合と、点群の集合を参照する IndexGroup の集合からメッシュを作成します + 点群のリスト + 点群のインデックス グループ + メッシュ mesh,meshes @@ -4850,10 +4850,10 @@ 3 つの位置を示します。 - Create a new Mesh from supplied points and indices. Points should - not overlap. Indices should be sets of three integers - indicating the three locations in the points array - of the three points of a triangle + 与えられた点とインデックスから新しいメッシュを作成します。点は + 重複しないようにする必要があります。インデックスは + 三角形の 3 点の点群配列の 3 つの位置を示す + 3 つの整数のセットである必要があります 現在の設定に基づいてメッシュ平面を作成します。 @@ -5608,10 +5608,10 @@ 「{0} はゼロ未満です」に類似するローカライズされた文字列を検索します。 - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[]) instead. + 「このメソッドは廃止され、Dynamo の今後のバージョンで削除される予定です。代わりに Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[])を使用してください」に類似するローカライズされた文字列を検索します。 - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndices (Point[] points, Indices : int[]) instead. + 「このメソッドは廃止され、Dynamo の今後のバージョンで削除される予定です。代わりに Mesh.ByPointsIndices (Point[] points, Indices : int[])を使用してください」に類似するローカライズされた文字列を検索します。 「メッシュ ノードは 32 ビット精度(小数点以下 7 桁)を使用するため、大きな数値や小数点以下 7 桁を超える数値では、丸めエラーが発生する可能性があります。より高い精度(64 ビット、小数点以下 15 桁)を必要とする場合は、Geometry ライブラリのノードを使用してください。」に類似するローカライズされた文字列を検索します。 diff --git a/doc/distrib/xml/ko-KR/DSCoreNodes.xml b/doc/distrib/xml/ko-KR/DSCoreNodes.xml index 0f096fada48..d0e4f351b6e 100644 --- a/doc/distrib/xml/ko-KR/DSCoreNodes.xml +++ b/doc/distrib/xml/ko-KR/DSCoreNodes.xml @@ -1596,16 +1596,16 @@ "제공된 색상 데이터가 너무 커서 이미지 경계에 맞지 않습니다."와 유사한 현지화된 문자열을 조회합니다. - Looks up a localized string similar to • Min and Max values must be different.. + '• 최소값과 최대값은 달라야 합니다.'와 유사한 현지화된 문자열을 조회합니다. - Looks up a localized string similar to • Values must be a list of numbers or a single number ≥ 2.. + '• 값은 숫자 리스트이거나 2 이상의 단일 숫자여야 합니다.'와 유사한 현지화된 문자열을 조회합니다. - Looks up a localized string similar to • Control points for the selected curve are not valid.. + '• 선택한 곡선의 제어점이 유효하지 않습니다.'와 유사한 현지화된 문자열을 조회합니다. - Looks up a localized string similar to • X and Y inputs must be single numbers (not lists).. + '• X 및 Y 입력은 리스트가 아닌 단일 숫자여야 합니다.'와 유사한 현지화된 문자열을 조회합니다. "입력은 단일 값 또는 내포되지 않은 리스트여야 합니다."와 유사한 현지화된 문자열을 조회합니다. diff --git a/doc/distrib/xml/ko-KR/ProtoGeometry.xml b/doc/distrib/xml/ko-KR/ProtoGeometry.xml index c2f9edfed5a..1b3b387f820 100644 --- a/doc/distrib/xml/ko-KR/ProtoGeometry.xml +++ b/doc/distrib/xml/ko-KR/ProtoGeometry.xml @@ -4812,9 +4812,9 @@ - 점 모음 및 점 모음을 참조하는 IndexGroup 모음에서 메쉬를 만듭니다 + 점 모음 및 점 모음을 참조하는 IndexGroup 모음을 기반으로 메쉬를 작성합니다. 점 리스트 - Index groups for points + 점에 대한 색인 그룹 메쉬 mesh,meshes @@ -4847,10 +4847,10 @@ 세 개의 위치를 나타냅니다. - Create a new Mesh from supplied points and indices. Points should - not overlap. Indices should be sets of three integers - indicating the three locations in the points array - of the three points of a triangle + 제공된 점 및 색인을 기반으로 새 메쉬를 작성합니다. 점은 + 겹치지 않아야 합니다. 색인은 삼각형을 구성하는 세 점의 + 점 배열에서 3개의 위치를 나타내는 + 3개의 정수로 이루어진 집합이어야 합니다. 현재 설정을 기반으로 메쉬 평면을 작성합니다. @@ -5605,10 +5605,10 @@ '{0}이(가) 0보다 작습니다.'와 유사한 현지화된 문자열을 조회합니다. - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[]) instead. + '이 메서드는 더 이상 사용되지 않으며 이후 버전의 Dynamo에서 제거될 예정입니다. 대신 Mesh.ByPointsIndexGroups(Point[] points, IndexGroups : IndexGroup[])를 사용하십시오.'와 유사한 현지화된 문자열을 조회합니다. - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndices (Point[] points, Indices : int[]) instead. + '이 메서드는 더 이상 사용되지 않으며 이후 버전의 Dynamo에서 제거될 예정입니다. 대신 Mesh.ByPointsIndices(Point[] points, Indices : int[])를 사용하십시오.'와 유사한 현지화된 문자열을 조회합니다. '메시 노드는 32비트 정밀도(소수점 이하 7자리)를 사용하므로 숫자가 크거나 소수점 이하 7자리를 초과하는 숫자에서는 반올림 오류가 발생할 수 있습니다. 더 높은 정밀도(64비트, 소수점 이하 15자리)를 사용하려면 형상 라이브러리의 노드를 사용하십시오.'와 유사한 현지화된 문자열을 조회합니다. diff --git a/doc/distrib/xml/pl-PL/DSCoreNodes.xml b/doc/distrib/xml/pl-PL/DSCoreNodes.xml index 0318b5d9b27..442acc96af8 100644 --- a/doc/distrib/xml/pl-PL/DSCoreNodes.xml +++ b/doc/distrib/xml/pl-PL/DSCoreNodes.xml @@ -1604,16 +1604,16 @@ Obszerna lista opcji dostosowania formatu jest dostępna po wyszukaniu ciągu "N Wyszukuje zlokalizowany ciąg podobny do: Podane dane kolorów są zbyt duże, aby zmieściły się w granicach obrazu. - Looks up a localized string similar to • Min and Max values must be different.. + Wyszukuje zlokalizowany ciąg podobny do: • Wartości minimalne i maksymalne muszą się różnić. - Looks up a localized string similar to • Values must be a list of numbers or a single number ≥ 2.. + Wyszukuje zlokalizowany ciąg podobny do: • Wartości muszą być listą liczb lub pojedynczą liczbą ≥ 2. - Looks up a localized string similar to • Control points for the selected curve are not valid.. + Wyszukuje zlokalizowany ciąg podobny do: • Punkty sterowania dla wybranej krzywej nie są prawidłowe. - Looks up a localized string similar to • X and Y inputs must be single numbers (not lists).. + Wyszukuje zlokalizowany ciąg podobny do: • Dane wejściowe X i Y muszą być pojedynczymi liczbami (nie listami). Wyszukuje zlokalizowany ciąg podobny do: Dane wejściowe muszą być pojedynczą wartością lub listą niezagnieżdżoną. diff --git a/doc/distrib/xml/pl-PL/ProtoGeometry.xml b/doc/distrib/xml/pl-PL/ProtoGeometry.xml index 6c148d724ab..d3f7cc173c3 100644 --- a/doc/distrib/xml/pl-PL/ProtoGeometry.xml +++ b/doc/distrib/xml/pl-PL/ProtoGeometry.xml @@ -4818,9 +4818,9 @@ - Utwórz siatkę z kolekcji punktów oraz kolekcji IndexGroups odwołujących się do kolekcji punktów + Utwórz siatkę z kolekcji punktów oraz kolekcji elementów IndexGroup odwołujących się do kolekcji punktów Lista punktów - Index groups for points + Grupy indeksów dla punktów Siatka mesh,meshes @@ -4853,10 +4853,10 @@ trzech punktów trójkąta - Create a new Mesh from supplied points and indices. Points should - not overlap. Indices should be sets of three integers - indicating the three locations in the points array - of the three points of a triangle + Utwórz nową siatkę z podanych punktów i indeksów. Punkty nie powinny + się nakładać. Indeksy powinny być zestawami trzech liczb całkowitych + wskazujących trzy lokalizacje w szyku punktów + trzech punktów trójkąta Utwórz płaszczyznę siatki na podstawie bieżących ustawień. @@ -5610,10 +5610,10 @@ Wyszukuje zlokalizowany ciąg podobny do Wartość {0} jest mniejsza niż zero. - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[]) instead. + Wyszukuje zlokalizowany ciąg podobny do: Ta metoda została wycofana i zostanie usunięta w przyszłej wersji dodatku Dynamo. Zamiast tego użyj metody Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[]). - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndices (Point[] points, Indices : int[]) instead. + Wyszukuje zlokalizowany ciąg podobny do: Ta metoda została wycofana i zostanie usunięta w przyszłej wersji dodatku Dynamo. Zamiast tego użyj metody Mesh.ByPointsIndices (Point[] points, Indices : int[]). Wyszukuje zlokalizowany ciąg podobny do: Węzły Mesh korzystają z dokładności 32-bitowej (7 miejsc po przecinku), co może prowadzić do błędów zaokrągleń w przypadku dużych liczb lub liczb z więcej niż 7 miejscami po przecinku. Aby uzyskać większą dokładność (64-bitową, 15 miejsc po przecinku), użyj węzłów z biblioteki Geometry. diff --git a/doc/distrib/xml/pt-BR/DSCoreNodes.xml b/doc/distrib/xml/pt-BR/DSCoreNodes.xml index 9a7552abd75..d1ac953979d 100644 --- a/doc/distrib/xml/pt-BR/DSCoreNodes.xml +++ b/doc/distrib/xml/pt-BR/DSCoreNodes.xml @@ -1596,16 +1596,16 @@ Pesquise "Cadeias de caracteres de formato de data e hora personalizado" no MSDN Procura uma sequência de caracteres localizada, que seja semelhante a “Os dados de cor fornecidos são muito grandes para caber nos limites da imagem”. - Looks up a localized string similar to • Min and Max values must be different.. + Procura uma sequência de caracteres localizada semelhante a • “Os valores mínimo e máximo devem ser diferentes”. - Looks up a localized string similar to • Values must be a list of numbers or a single number ≥ 2.. + Procura uma sequência de caracteres localizada semelhante a •“ Os valores devem ser uma lista de números ou um número único ≥ 2”. - Looks up a localized string similar to • Control points for the selected curve are not valid.. + Procura uma sequência de caracteres localizada semelhante a • “Os pontos de controle da curva selecionada não são válidos”. - Looks up a localized string similar to • X and Y inputs must be single numbers (not lists).. + Procura uma sequência de caracteres localizada semelhante a • “As entradas X e Y devem ser números únicos (não listas)”. Procura uma sequência de caracteres localizada similar a “A entrada deve ser um valor único ou uma lista não aninhada”. diff --git a/doc/distrib/xml/pt-BR/ProtoGeometry.xml b/doc/distrib/xml/pt-BR/ProtoGeometry.xml index 0bdfd37e568..46d19bba84d 100644 --- a/doc/distrib/xml/pt-BR/ProtoGeometry.xml +++ b/doc/distrib/xml/pt-BR/ProtoGeometry.xml @@ -4793,9 +4793,9 @@ - Cria uma malha a partir de uma coleção de pontos e uma coleção de grupos de indexação referenciando a coleção de pontos + Crie uma malha com base em uma coleção de pontos e uma coleção de IndexGroups referenciando a coleção de pontos Lista de pontos - Index groups for points + Indexar grupos de pontos Malha mesh,meshes @@ -4828,10 +4828,10 @@ dos três pontos de um triângulo - Create a new Mesh from supplied points and indices. Points should - not overlap. Indices should be sets of three integers - indicating the three locations in the points array - of the three points of a triangle + Crie uma nova malha com base em pontos e índices fornecidos. Os pontos não devem + se sobrepor. Os índices devem ser conjuntos de três números inteiros + indicando as três localizações na matriz de pontos + dos três pontos de um triângulo Criar um plano de malha com base nas configurações atuais. @@ -5586,10 +5586,10 @@ Basicamente, a malha é preenchida com várias pequenas caixas, e uma nova A pesquisa de sequência de caracteres localizada similar a {0} é menor que zero. - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[]) instead. + Procura uma sequência de caracteres localizada semelhante a "Esse método está obsoleto e será removido em uma versão futura do Dynamo. Use Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[])”. - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndices (Point[] points, Indices : int[]) instead. + Procura uma sequência de caracteres localizada semelhante a "Esse método está obsoleto e será removido em uma versão futura do Dynamo. Use Mesh.ByPointsIndices (Point[] points, Indices : int[])”. Procura uma sequência de caracteres localizada similar a “Os nós de malha usam precisão de 32 bits (7 casas decimais), o que pode levar a erros de arredondamento com números grandes ou números com mais de 7 casas decimais. Para maior precisão (64 bits, 15 casas decimais), use nós da biblioteca Geometria”. diff --git a/doc/distrib/xml/ru-RU/DSCoreNodes.xml b/doc/distrib/xml/ru-RU/DSCoreNodes.xml index fd66fbef7ff..da969e1b655 100644 --- a/doc/distrib/xml/ru-RU/DSCoreNodes.xml +++ b/doc/distrib/xml/ru-RU/DSCoreNodes.xml @@ -1604,16 +1604,16 @@ Поиск локализованной строки, подобной строке «Предоставленные данные цвета слишком велики для вписывания в границы изображения». - Looks up a localized string similar to • Min and Max values must be different.. + Поиск локализованной строки, подобной строке «• Минимальное и максимальное значения должны отличаться». - Looks up a localized string similar to • Values must be a list of numbers or a single number ≥ 2.. + Поиск локализованной строки, подобной строке «• Значения должны быть списком чисел или одиночным числом ≥ 2». - Looks up a localized string similar to • Control points for the selected curve are not valid.. + Поиск локализованной строки, подобной строке «• Недопустимые управляющие точки для выбранной кривой». - Looks up a localized string similar to • X and Y inputs must be single numbers (not lists).. + Поиск локализованной строки, подобной строке «• Входные данные X и Y должны быть одиночными числами (не списками)». Поиск локализованной строки, подобной строке «Входное значение должно быть одним значением или не являться вложенным списком». diff --git a/doc/distrib/xml/ru-RU/ProtoGeometry.xml b/doc/distrib/xml/ru-RU/ProtoGeometry.xml index 0a7b2359fc8..5323a28458e 100644 --- a/doc/distrib/xml/ru-RU/ProtoGeometry.xml +++ b/doc/distrib/xml/ru-RU/ProtoGeometry.xml @@ -4819,9 +4819,9 @@ - Создание сетки на основе набора точек и набора элементов IndexGroups, ссылающихся на набор точек + Создание сети на основе коллекции точек и коллекции элементов IndexGroups, ссылающихся на коллекцию точек Список точек - Index groups for points + Группы индексов для точек Сеть mesh,meshes @@ -4854,10 +4854,10 @@ трех точек треугольника - Create a new Mesh from supplied points and indices. Points should - not overlap. Indices should be sets of three integers - indicating the three locations in the points array - of the three points of a triangle + Создание сети на основе заданных точек и индексов. Точки не должны + перекрываться. Индексы должны представлять собой множества из трех целых чисел, + указывающие на три расположения в массиве точек + из трех точек треугольника Создание плоскости сети на основе текущих параметров. @@ -5613,10 +5613,10 @@ Поиск локализованной строки, подобной строке «значение {0} меньше нуля». - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[]) instead. + Поиск локализованной строки, подобной строке «Этот метод исключен и будет удален в следующей версии Dynamo. Используйте вместо него Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[])». - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndices (Point[] points, Indices : int[]) instead. + Поиск локализованной строки, подобной строке «Этот метод исключен и будет удален в следующей версии Dynamo. Используйте вместо него Mesh.ByPointsIndices (Point[] points, Indices : int[])». Поиск локализованной строки, подобной строке «Узлы сетки используют 32-разрядную точность (до 7 десятичных знаков), что может привести к ошибкам при округлении больших значений или чисел с более чем 7 десятичными знаками. Для более высокой точности (64-разрядной, 15 десятичных знаков) используйте узлы из библиотеки геометрии.». diff --git a/doc/distrib/xml/zh-CN/DSCoreNodes.xml b/doc/distrib/xml/zh-CN/DSCoreNodes.xml index 7f83298d565..489a2eb4eff 100644 --- a/doc/distrib/xml/zh-CN/DSCoreNodes.xml +++ b/doc/distrib/xml/zh-CN/DSCoreNodes.xml @@ -940,7 +940,7 @@ 编辑距离是用于获取 2 个字符串之间距离的算法 - |<请参见>源 + | 在列表开头添加一项。 @@ -1607,16 +1607,16 @@ 查找类似“提供的颜色数据太大,无法适应图像边界。”的本地化字符串。 - Looks up a localized string similar to • Min and Max values must be different.. + 查找类似“• 最小值和最大值必须不同。”的本地化字符串。 - Looks up a localized string similar to • Values must be a list of numbers or a single number ≥ 2.. + 查找类似“• 值必须是数字列表或单个数字≥ 2。”的本地化字符串。 - Looks up a localized string similar to • Control points for the selected curve are not valid.. + 查找类似“• 选定曲线的控制点无效。”的本地化字符串。 - Looks up a localized string similar to • X and Y inputs must be single numbers (not lists).. + 查找类似“• X 和 Y 输入必须是单个数字(而非列表)。”的本地化字符串。 查找类似“输入必须是单个值或非嵌套列表。”的本地化字符串。 diff --git a/doc/distrib/xml/zh-CN/ProtoGeometry.xml b/doc/distrib/xml/zh-CN/ProtoGeometry.xml index 00f607f473e..4d0b2be44c7 100644 --- a/doc/distrib/xml/zh-CN/ProtoGeometry.xml +++ b/doc/distrib/xml/zh-CN/ProtoGeometry.xml @@ -4821,7 +4821,7 @@ 由点集和引用点集的 IndexGroups 集创建面片 点列表 - Index groups for points + 为点索引组 网格 mesh,meshes @@ -4854,10 +4854,10 @@ 的三个位置 - Create a new Mesh from supplied points and indices. Points should - not overlap. Indices should be sets of three integers - indicating the three locations in the points array - of the three points of a triangle + 从提供的点和索引创建新网格。点应该 + 不重叠。索引应为三个整数的集合, + 指示三角形三个点的 + 点阵列中的三个位置 根据当前设置创建网格平面。 @@ -5612,10 +5612,10 @@ 查找类似“{0} 小于零”的本地化字符串。 - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[]) instead. + 查找类似“此方法已弃用,将在未来版本的 Dynamo 中删除。”的本地化字符串。请改用“Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[])”。 - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndices (Point[] points, Indices : int[]) instead. + 查找类似“此方法已弃用,将在未来版本的 Dynamo 中删除。”的本地化字符串。请改用“Mesh.ByPointsIndices (Point[] points, Indices : int[])”。 查找类似“网格节点使用 32 位精度(7 位小数),对于非常大的数值或超过 7 位小数的数值,可能导致舍入错误。对于更高的精度(64 位,15 位小数),请使用几何图形库中的节点。”的本地化字符串。 diff --git a/doc/distrib/xml/zh-TW/DSCoreNodes.xml b/doc/distrib/xml/zh-TW/DSCoreNodes.xml index e8e6fff90c3..db7542e2937 100644 --- a/doc/distrib/xml/zh-TW/DSCoreNodes.xml +++ b/doc/distrib/xml/zh-TW/DSCoreNodes.xml @@ -1592,16 +1592,16 @@ 查找類似於「提供的顏色資料太大,無法佈滿影像邊界。」的本土化字串。 - Looks up a localized string similar to • Min and Max values must be different.. + 查找類似於「• 最小值和最大值必須不同。」的本土化字串。 - Looks up a localized string similar to • Values must be a list of numbers or a single number ≥ 2.. + 查找類似於「• 值必須是一個數字清單或一個 ≥ 2 的數字。」的本土化字串。 - Looks up a localized string similar to • Control points for the selected curve are not valid.. + 查找類似於「• 所選曲線的控制點無效。」的本土化字串。 - Looks up a localized string similar to • X and Y inputs must be single numbers (not lists).. + 查找類似於「• X 和 Y 輸入必須是一個數字 (不是清單)。」的本土化字串。 查找類似於「輸入必須是單一值或非巢狀清單。」的本土化字串。 diff --git a/doc/distrib/xml/zh-TW/ProtoGeometry.xml b/doc/distrib/xml/zh-TW/ProtoGeometry.xml index d180dfe9d22..3a0fd78d668 100644 --- a/doc/distrib/xml/zh-TW/ProtoGeometry.xml +++ b/doc/distrib/xml/zh-TW/ProtoGeometry.xml @@ -4810,9 +4810,9 @@ - 從點集合和參考點集合的 IndexGroups 集合建立網面 + 從點集合和參考點集合的 IndexGroups 集合建立網格 點清單 - Index groups for points + 點的索引群組 網格 mesh,meshes @@ -4845,10 +4845,10 @@ 頂點陣列中的三個位置 - Create a new Mesh from supplied points and indices. Points should - not overlap. Indices should be sets of three integers - indicating the three locations in the points array - of the three points of a triangle + 從提供的點和索引建立新網格。點不能 + 重疊。索引為一組三個整數, + 指出三角形三個點形成之 + 點陣列中的三個位置 根據目前設定建立網格平面。 @@ -5603,10 +5603,10 @@ 查找類似於「{0} 小於零」的本土化字串。 - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[]) instead. + 查找類似於「此方法已棄用,未來版本的 Dynamo 將移除。請改用 Mesh.ByPointsIndexGroups (Point[] points, IndexGroups : IndexGroup[])」的本土化字串。 - Looks up a localized string similar to This method is deprecated and will be removed in a future version of Dynamo. Use Mesh.ByPointsIndices (Point[] points, Indices : int[]) instead. + 查找類似於「此方法已棄用,未來版本的 Dynamo 將移除。請改用 Mesh.ByPointsIndices (Point[] points, Indices : int[])」的本土化字串。 查找類似於「Mesh 節點使用 32 位元的精確度 (7 位小數),很大或超過 7 位小數的數字可能會產生捨入誤差。如果需要較高精確度 (64 位元,15 位小數),請使用 Geometry 資源庫的節點。」的本土化字串。 diff --git a/src/DynamoCoreWpf/Properties/Resources.cs-CZ.resx b/src/DynamoCoreWpf/Properties/Resources.cs-CZ.resx index 0c7ed84f338..81ddc485c92 100644 --- a/src/DynamoCoreWpf/Properties/Resources.cs-CZ.resx +++ b/src/DynamoCoreWpf/Properties/Resources.cs-CZ.resx @@ -3230,7 +3230,7 @@ Tato umístění můžete spravovat v části Předvolby -> Zabezpečení.Vedle každého doporučeného uzlu se zobrazí úroveň spolehlivosti, která představuje odhadovanou pravděpodobnost, že uzel je vhodnou volbou. Pokud je tato možnost zapnuta, skryjí se doporučené uzly, které nesplňují zadanou úroveň spolehlivosti. Chcete-li takové uzly zobrazit, klikněte na záhlaví Nízká spolehlivost. - Počet výsledků + Number of results for Recommended Nodes Importovat @@ -3791,7 +3791,7 @@ Chcete-li vytvořit z tohoto souboru novou šablonu, uložte ho do jiné složky Zpět na výběr souboru - This group is frozen. Click to unfreeze. + Tato skupina je zmrazená. Kliknutím ji rozmrazíte. diff --git a/src/DynamoCoreWpf/Properties/Resources.de-DE.resx b/src/DynamoCoreWpf/Properties/Resources.de-DE.resx index 9a46b3f15a5..9766e485849 100644 --- a/src/DynamoCoreWpf/Properties/Resources.de-DE.resx +++ b/src/DynamoCoreWpf/Properties/Resources.de-DE.resx @@ -3229,7 +3229,7 @@ Sie können dies unter Voreinstellungen -> Sicherheit verwalten. Die Zuverlässigkeit wird neben jedem empfohlenen Block angezeigt und stellt die geschätzte Wahrscheinlichkeit dar, die aussagt, ob der Block eine gute Wahl ist. Wenn diese Option aktiviert ist, werden empfohlene Blöcke, die nicht die angegebene Zuverlässigkeit erfüllen, ausgeblendet. Sie können auf die Kopfzeile Niedrige Zuverlässigkeit klicken, um die Blöcke anzuzeigen. - Anzahl der Ergebnisse + Number of results for Recommended Nodes Importieren @@ -3790,7 +3790,7 @@ Führen Sie #Download und Installation=https://manage.autodesk.com/products/upda Zurück zur Dateiauswahl - This group is frozen. Click to unfreeze. + Diese Gruppe ist eingefroren. Klicken Sie, um sie freizugeben. diff --git a/src/DynamoCoreWpf/Properties/Resources.es-ES.resx b/src/DynamoCoreWpf/Properties/Resources.es-ES.resx index c17bc40aaa2..9fb992f3863 100644 --- a/src/DynamoCoreWpf/Properties/Resources.es-ES.resx +++ b/src/DynamoCoreWpf/Properties/Resources.es-ES.resx @@ -3231,7 +3231,7 @@ Puede administrar esto en Preferencias - > Seguridad. El nivel de confianza aparece junto a cada nodo recomendado y representa la probabilidad estimada de que el nodo sea una buena opción. Si se activa este parámetro, oculta los nodos recomendados que no cumplen el nivel de confianza especificado. Puede hacer clic en el encabezado Confianza baja para visualizar los nodos. - Número de resultados + Number of results for Recommended Nodes Importar @@ -3792,7 +3792,7 @@ Para convertir este archivo en una nueva plantilla, guárdelo en una carpeta dif Volver a la selección de archivos - This group is frozen. Click to unfreeze. + Este grupo está inutilizado. Haga clic para reutilizarlo. diff --git a/src/DynamoCoreWpf/Properties/Resources.fr-FR.resx b/src/DynamoCoreWpf/Properties/Resources.fr-FR.resx index 40fa0b8066d..7653ddf09c1 100644 --- a/src/DynamoCoreWpf/Properties/Resources.fr-FR.resx +++ b/src/DynamoCoreWpf/Properties/Resources.fr-FR.resx @@ -3229,7 +3229,7 @@ Vous pouvez gérer ce paramètre dans Préférences -> Sécurité. Le niveau de confiance apparaît en regard de chaque noeud recommandé et représente la probabilité estimée que le noeud soit un bon choix. Lorsque cette option est activée, ce paramètre masque les noeuds recommandés qui ne répondent pas au niveau de confiance spécifié. Vous pouvez cliquer sur l'en-tête Qualité faible pour afficher les noeuds. - Nombre de résultats + Number of results for Recommended Nodes Importer @@ -3786,7 +3786,7 @@ Pour transformer ce fichier en nouveau gabarit, enregistrez-le dans un autre dos Retour à la sélection de fichiers - This group is frozen. Click to unfreeze. + Ce groupe est bloqué. Cliquez pour le débloquer. diff --git a/src/DynamoCoreWpf/Properties/Resources.it-IT.resx b/src/DynamoCoreWpf/Properties/Resources.it-IT.resx index 1ca516eba9c..4756c51d7b8 100644 --- a/src/DynamoCoreWpf/Properties/Resources.it-IT.resx +++ b/src/DynamoCoreWpf/Properties/Resources.it-IT.resx @@ -3213,7 +3213,7 @@ Provare a posizionare il nodo **ByOrigin** evidenziato. Il livello di affidabilità viene visualizzato accanto a ciascun nodo consigliato e rappresenta la probabilità stimata che il nodo sia una buona scelta. Quando è attivata, questa impostazione nasconde i nodi consigliati che non soddisfano il livello di affidabilità specificato. È possibile fare clic sull'intestazione Bassa affidabilità per mostrare i nodi. - Numero di risultati + Number of results for Recommended Nodes Importa @@ -3774,7 +3774,7 @@ Per trasformare questo file in un nuovo modello, salvarlo in un'altra cartella e Torna alla selezione di file - This group is frozen. Click to unfreeze. + Questo gruppo è congelato. Fare clic per scongelare. diff --git a/src/DynamoCoreWpf/Properties/Resources.ja-JP.resx b/src/DynamoCoreWpf/Properties/Resources.ja-JP.resx index 76dd81e0934..8e3dd9633be 100644 --- a/src/DynamoCoreWpf/Properties/Resources.ja-JP.resx +++ b/src/DynamoCoreWpf/Properties/Resources.ja-JP.resx @@ -3231,7 +3231,7 @@ Dynamo を再起動してアンインストールを完了します。 信頼度レベルは、各推奨ノードの横に表示され、そのノードが適切な選択である推定確率を表します。この設定をオンにすると、指定した信頼度レベルを満たさない推奨ノードは非表示になります。それらのノードを表示するには、[低信頼度]ヘッダをクリックします。 - 結果数 + Number of results for Recommended Nodes 読み込み @@ -3792,7 +3792,7 @@ Dynamo を再起動してアンインストールを完了します。 ファイル選択に戻る - This group is frozen. Click to unfreeze. + このグループはフリーズされています。クリックすると、フリーズが解除されます。 diff --git a/src/DynamoCoreWpf/Properties/Resources.ko-KR.resx b/src/DynamoCoreWpf/Properties/Resources.ko-KR.resx index 9b8928613b4..37946f4c8c4 100644 --- a/src/DynamoCoreWpf/Properties/Resources.ko-KR.resx +++ b/src/DynamoCoreWpf/Properties/Resources.ko-KR.resx @@ -3229,7 +3229,7 @@ 신뢰도 수준은 각 권장 노드 옆에 표시되며 노드가 적절한 선택일 수 있는 예상 확률을 나타냅니다. 이 설정을 켜면 지정된 신뢰도 수준을 충족하지 않는 권장 노드가 숨겨집니다. 낮은 신뢰도 헤더를 클릭하여 노드를 표시할 수 있습니다. - 결과 수 + Number of results for Recommended Nodes 가져오기 @@ -3790,7 +3790,7 @@ 파일 선택으로 돌아가기 - This group is frozen. Click to unfreeze. + 이 그룹은 동결되었습니다. 동결을 해제하려면 클릭하십시오. diff --git a/src/DynamoCoreWpf/Properties/Resources.pl-PL.resx b/src/DynamoCoreWpf/Properties/Resources.pl-PL.resx index b19aa38f74e..87153c4e00f 100644 --- a/src/DynamoCoreWpf/Properties/Resources.pl-PL.resx +++ b/src/DynamoCoreWpf/Properties/Resources.pl-PL.resx @@ -3231,7 +3231,7 @@ Można tym zarządzać w obszarze Preferencje -> Zabezpieczenia. Poziom pewności jest wyświetlany obok każdego zalecanego węzła i oddaje szacowane prawdopodobieństwo, że węzeł jest dobrym wyborem. Po włączeniu to ustawienie ukrywa zalecane węzły, które nie spełniają określonego poziomu pewności. Można kliknąć nagłówek Niska pewność, aby wyświetlić te węzły. - Liczba wyników + Number of results for Recommended Nodes Importuj @@ -3792,7 +3792,7 @@ Aby ustawić ten plik jako nowy szablon, zapisz go w innym folderze, a następni Powrót do wyboru pliku - This group is frozen. Click to unfreeze. + Ta grupa jest zablokowana. Kliknij, aby odblokować. diff --git a/src/DynamoCoreWpf/Properties/Resources.pt-BR.resx b/src/DynamoCoreWpf/Properties/Resources.pt-BR.resx index 58dadc93f5c..128a3851654 100644 --- a/src/DynamoCoreWpf/Properties/Resources.pt-BR.resx +++ b/src/DynamoCoreWpf/Properties/Resources.pt-BR.resx @@ -3231,7 +3231,7 @@ Tente colocar o nó **ByOrigin** realçado. O nível de confiança aparece próximo a cada nó recomendado e representa a probabilidade estimada de que o nó seja uma boa escolha. Quando ativada, essa configuração oculta os nós recomendados que não atendem ao nível de confiança especificado. É possível clicar no cabeçalho Baixa confiança para mostrar os nós. - Número de resultados + Number of results for Recommended Nodes Importar @@ -3792,7 +3792,7 @@ Para transformar este arquivo em um novo modelo, salve-o em uma pasta diferente Voltar para Seleção de arquivos - This group is frozen. Click to unfreeze. + Esse grupo está congelado. Clique para descongelar. diff --git a/src/DynamoCoreWpf/Properties/Resources.ru-RU.resx b/src/DynamoCoreWpf/Properties/Resources.ru-RU.resx index d953c68d9b3..0a0d70ebd1a 100644 --- a/src/DynamoCoreWpf/Properties/Resources.ru-RU.resx +++ b/src/DynamoCoreWpf/Properties/Resources.ru-RU.resx @@ -3231,7 +3231,7 @@ Уровень надежности отображается рядом с каждым рекомендуемым узлом и представляет собой предполагаемую вероятность удачного выбора узла. При включении этого параметра рекомендуемые узлы, которые не соответствуют заданному уровню надежности, скрываются. Для отображения узлов можно щелкнуть заголовок «Низкая надежность». - Количество результатов + Number of results for Recommended Nodes Импорт @@ -3792,7 +3792,7 @@ Назад к выбору файлов - This group is frozen. Click to unfreeze. + Эта группа заморожена. Щелкните, чтобы разморозить. diff --git a/src/DynamoCoreWpf/Properties/Resources.zh-CN.resx b/src/DynamoCoreWpf/Properties/Resources.zh-CN.resx index 49b8f45db81..ad1442d31c6 100644 --- a/src/DynamoCoreWpf/Properties/Resources.zh-CN.resx +++ b/src/DynamoCoreWpf/Properties/Resources.zh-CN.resx @@ -3229,7 +3229,7 @@ 置信度会显示在每个建议节点的旁边,表示该节点是理想选择的估计概率。启用后,该设置会隐藏不符合指定置信度的建议节点。可以单击“低置信度”标题以显示相应节点。 - 结果数 + Number of results for Recommended Nodes 输入 @@ -3790,7 +3790,7 @@ 回到文件选择 - This group is frozen. Click to unfreeze. + 此组已冻结。单击以取消冻结。 diff --git a/src/DynamoCoreWpf/Properties/Resources.zh-TW.resx b/src/DynamoCoreWpf/Properties/Resources.zh-TW.resx index e02f2e56851..6b1d3b5c40b 100644 --- a/src/DynamoCoreWpf/Properties/Resources.zh-TW.resx +++ b/src/DynamoCoreWpf/Properties/Resources.zh-TW.resx @@ -3230,7 +3230,7 @@ 信賴水準會出現在每個建議的節點旁邊,表示適合使用該節點的預估機率。開啟時,此設定會隱藏未達到指定信賴水準的建議節點。您可以按一下「低信賴」標頭以顯示節點。 - 結果數 + Number of results for Recommended Nodes 匯入 @@ -3791,7 +3791,7 @@ 回到檔案選取 - This group is frozen. Click to unfreeze. + 此群組已凍結。按一下可解凍。 diff --git a/src/Libraries/CoreNodeModels/Properties/Resources.cs-CZ.resx b/src/Libraries/CoreNodeModels/Properties/Resources.cs-CZ.resx index 55522bdc2ba..44e6d22f098 100644 --- a/src/Libraries/CoreNodeModels/Properties/Resources.cs-CZ.resx +++ b/src/Libraries/CoreNodeModels/Properties/Resources.cs-CZ.resx @@ -694,6 +694,6 @@ double[] Vybraná barva - When mapping numbers along the curve, some Y values fall outside the specified Y-value domain range. + Při mapování čísel podél křivky spadají některé hodnoty Y mimo zadaný rozsah domény hodnoty Y. \ No newline at end of file diff --git a/src/Libraries/CoreNodeModels/Properties/Resources.de-DE.resx b/src/Libraries/CoreNodeModels/Properties/Resources.de-DE.resx index 64d1976a5b0..efecb4c7bba 100644 --- a/src/Libraries/CoreNodeModels/Properties/Resources.de-DE.resx +++ b/src/Libraries/CoreNodeModels/Properties/Resources.de-DE.resx @@ -694,6 +694,6 @@ double[] Ausgewählte Farbe - When mapping numbers along the curve, some Y values fall outside the specified Y-value domain range. + Beim Zuordnen von Zahlen entlang der Kurve liegen einige Y-Werte außerhalb des angegebenen Y-Wert-Domänenbereichs. \ No newline at end of file diff --git a/src/Libraries/CoreNodeModels/Properties/Resources.es-ES.resx b/src/Libraries/CoreNodeModels/Properties/Resources.es-ES.resx index 13472ad9051..7c01a6ea6a8 100644 --- a/src/Libraries/CoreNodeModels/Properties/Resources.es-ES.resx +++ b/src/Libraries/CoreNodeModels/Properties/Resources.es-ES.resx @@ -694,6 +694,6 @@ double[] Color seleccionado - When mapping numbers along the curve, some Y values fall outside the specified Y-value domain range. + Al asignar números a lo largo de la curva, algunos valores Y quedan fuera del intervalo del dominio del valor Y especificado. \ No newline at end of file diff --git a/src/Libraries/CoreNodeModels/Properties/Resources.fr-FR.resx b/src/Libraries/CoreNodeModels/Properties/Resources.fr-FR.resx index f15b8c658fd..cfaca36e53e 100644 --- a/src/Libraries/CoreNodeModels/Properties/Resources.fr-FR.resx +++ b/src/Libraries/CoreNodeModels/Properties/Resources.fr-FR.resx @@ -694,6 +694,6 @@ double[] Couleur sélectionnée - When mapping numbers along the curve, some Y values fall outside the specified Y-value domain range. + Lors du mappage de nombres le long de la courbe, certaines valeurs Y se situent en dehors de la plage de domaine de valeurs Y spécifiée. \ No newline at end of file diff --git a/src/Libraries/CoreNodeModels/Properties/Resources.it-IT.resx b/src/Libraries/CoreNodeModels/Properties/Resources.it-IT.resx index 5b40cee03e9..2cdeb3cb5bd 100644 --- a/src/Libraries/CoreNodeModels/Properties/Resources.it-IT.resx +++ b/src/Libraries/CoreNodeModels/Properties/Resources.it-IT.resx @@ -694,6 +694,6 @@ double[] Colore selezionato - When mapping numbers along the curve, some Y values fall outside the specified Y-value domain range. + Quando si mappano i numeri lungo la curva, alcuni valori Y non rientrano nell'intervallo di dominio del valore Y specificato. \ No newline at end of file diff --git a/src/Libraries/CoreNodeModels/Properties/Resources.ja-JP.resx b/src/Libraries/CoreNodeModels/Properties/Resources.ja-JP.resx index 3e083bf27e4..6b942b6cb8d 100644 --- a/src/Libraries/CoreNodeModels/Properties/Resources.ja-JP.resx +++ b/src/Libraries/CoreNodeModels/Properties/Resources.ja-JP.resx @@ -694,6 +694,6 @@ double[] 選択した色 - When mapping numbers along the curve, some Y values fall outside the specified Y-value domain range. + 曲線に沿って数値をマッピングすると、一部の Y 値が指定した Y 値の範囲外になります。 \ No newline at end of file diff --git a/src/Libraries/CoreNodeModels/Properties/Resources.ko-KR.resx b/src/Libraries/CoreNodeModels/Properties/Resources.ko-KR.resx index 357c2135dd9..5c83380ea0b 100644 --- a/src/Libraries/CoreNodeModels/Properties/Resources.ko-KR.resx +++ b/src/Libraries/CoreNodeModels/Properties/Resources.ko-KR.resx @@ -694,6 +694,6 @@ double[] 선택된 색상 - When mapping numbers along the curve, some Y values fall outside the specified Y-value domain range. + 곡선을 따라 숫자를 매핑할 때 일부 Y 값이 지정된 Y 값 도메인 범위를 벗어납니다. \ No newline at end of file diff --git a/src/Libraries/CoreNodeModels/Properties/Resources.pl-PL.resx b/src/Libraries/CoreNodeModels/Properties/Resources.pl-PL.resx index 2c15ab88535..eb9cf5ac2e5 100644 --- a/src/Libraries/CoreNodeModels/Properties/Resources.pl-PL.resx +++ b/src/Libraries/CoreNodeModels/Properties/Resources.pl-PL.resx @@ -694,6 +694,6 @@ double[] Wybrany kolor - When mapping numbers along the curve, some Y values fall outside the specified Y-value domain range. + Podczas odwzorowywania liczb wzdłuż krzywej niektóre wartości Y wykraczają poza określony zakres w dziedzinie wartości Y. \ No newline at end of file diff --git a/src/Libraries/CoreNodeModels/Properties/Resources.pt-BR.resx b/src/Libraries/CoreNodeModels/Properties/Resources.pt-BR.resx index a73807e3f84..add3bffcd65 100644 --- a/src/Libraries/CoreNodeModels/Properties/Resources.pt-BR.resx +++ b/src/Libraries/CoreNodeModels/Properties/Resources.pt-BR.resx @@ -694,6 +694,6 @@ double[] Cor selecionada - When mapping numbers along the curve, some Y values fall outside the specified Y-value domain range. + Ao mapear números ao longo da curva, alguns valores de Y ficam fora do intervalo de domínio dos valores de Y especificado. \ No newline at end of file diff --git a/src/Libraries/CoreNodeModels/Properties/Resources.ru-RU.resx b/src/Libraries/CoreNodeModels/Properties/Resources.ru-RU.resx index 454d5ce0849..f18d17eb31a 100644 --- a/src/Libraries/CoreNodeModels/Properties/Resources.ru-RU.resx +++ b/src/Libraries/CoreNodeModels/Properties/Resources.ru-RU.resx @@ -694,6 +694,6 @@ double[] Выбранный цвет - When mapping numbers along the curve, some Y values fall outside the specified Y-value domain range. + При сопоставлении чисел вдоль кривой некоторые значения Y оказались за пределами заданного диапазона области значений Y. \ No newline at end of file diff --git a/src/Libraries/CoreNodeModels/Properties/Resources.zh-CN.resx b/src/Libraries/CoreNodeModels/Properties/Resources.zh-CN.resx index a8cabf58cd5..171ebabaabd 100644 --- a/src/Libraries/CoreNodeModels/Properties/Resources.zh-CN.resx +++ b/src/Libraries/CoreNodeModels/Properties/Resources.zh-CN.resx @@ -694,6 +694,6 @@ double[] 选定的颜色 - When mapping numbers along the curve, some Y values fall outside the specified Y-value domain range. + 沿曲线映射数字时,某些 Y 值超出指定的 Y 值域范围。 \ No newline at end of file diff --git a/src/Libraries/CoreNodeModels/Properties/Resources.zh-TW.resx b/src/Libraries/CoreNodeModels/Properties/Resources.zh-TW.resx index dfe8caa4589..99fceece5cb 100644 --- a/src/Libraries/CoreNodeModels/Properties/Resources.zh-TW.resx +++ b/src/Libraries/CoreNodeModels/Properties/Resources.zh-TW.resx @@ -694,6 +694,6 @@ double[] 選取的顏色 - When mapping numbers along the curve, some Y values fall outside the specified Y-value domain range. + 沿著曲線對映數字時,某些 Y 值超出指定的 Y 值定義域範圍。 \ No newline at end of file diff --git a/src/Libraries/CoreNodes/Properties/Resources.cs-CZ.resx b/src/Libraries/CoreNodes/Properties/Resources.cs-CZ.resx index 317e6bb9f34..ac6c1ac543e 100644 --- a/src/Libraries/CoreNodes/Properties/Resources.cs-CZ.resx +++ b/src/Libraries/CoreNodes/Properties/Resources.cs-CZ.resx @@ -235,15 +235,15 @@ Vstup musí být jedna hodnota nebo nevnořený seznam. - • Min and Max values must be different. + • Minimální a maximální hodnoty se musí lišit. - • Values must be a list of numbers or a single number ≥ 2. + • Hodnoty musí být seznam čísel nebo jedno číslo ≥ 2. - • Control points for the selected curve are not valid. + • Řídicí body pro vybranou křivku nejsou platné. - • X and Y inputs must be single numbers (not lists). + • Vstupy X a Y musí být jednotlivá čísla (ne seznamy). \ No newline at end of file diff --git a/src/Libraries/CoreNodes/Properties/Resources.de-DE.resx b/src/Libraries/CoreNodes/Properties/Resources.de-DE.resx index dbe0c5cb450..95c2ab6db80 100644 --- a/src/Libraries/CoreNodes/Properties/Resources.de-DE.resx +++ b/src/Libraries/CoreNodes/Properties/Resources.de-DE.resx @@ -235,15 +235,15 @@ Eingabe muss ein einzelner Wert oder eine nicht verschachtelte Liste sein. - • Min and Max values must be different. + • Mindest- und Maximalwerte müssen unterschiedlich sein. - • Values must be a list of numbers or a single number ≥ 2. + • Werte müssen eine Liste von Zahlen oder eine einzelne Zahl ≥ 2 sein. - • Control points for the selected curve are not valid. + • Steuerpunkte für die ausgewählte Kurve sind nicht gültig. - • X and Y inputs must be single numbers (not lists). + • X- und Y-Eingaben müssen einzelne Zahlen sein (keine Listen). \ No newline at end of file diff --git a/src/Libraries/CoreNodes/Properties/Resources.es-ES.resx b/src/Libraries/CoreNodes/Properties/Resources.es-ES.resx index 66cc315689c..a5fb24400bf 100644 --- a/src/Libraries/CoreNodes/Properties/Resources.es-ES.resx +++ b/src/Libraries/CoreNodes/Properties/Resources.es-ES.resx @@ -235,15 +235,15 @@ La entrada debe ser un único valor o una lista no anidada. - • Min and Max values must be different. + • Los valores mínimo y máximo deben ser diferentes. - • Values must be a list of numbers or a single number ≥ 2. + • Los valores deben ser una lista de números o un solo número ≥ 2. - • Control points for the selected curve are not valid. + • Los puntos de control de la curva seleccionada no son válidos. - • X and Y inputs must be single numbers (not lists). + • Las entradas X e Y deben ser números únicos (no listas). \ No newline at end of file diff --git a/src/Libraries/CoreNodes/Properties/Resources.fr-FR.resx b/src/Libraries/CoreNodes/Properties/Resources.fr-FR.resx index b6abe654b34..ebd6409f1e5 100644 --- a/src/Libraries/CoreNodes/Properties/Resources.fr-FR.resx +++ b/src/Libraries/CoreNodes/Properties/Resources.fr-FR.resx @@ -235,15 +235,15 @@ L'entrée doit être une valeur unique ou une liste non imbriquée. - • Min and Max values must be different. + • Les valeurs Min et Max doivent être différentes. - • Values must be a list of numbers or a single number ≥ 2. + • Les valeurs doivent être indiquées sous forme de liste de nombres ou en un seul nombre ≥ 2. - • Control points for the selected curve are not valid. + • Les points de contrôle de la courbe sélectionnée ne sont pas valides. - • X and Y inputs must be single numbers (not lists). + • Les entrées X et Y doivent être des nombres uniques (et non des listes). \ No newline at end of file diff --git a/src/Libraries/CoreNodes/Properties/Resources.it-IT.resx b/src/Libraries/CoreNodes/Properties/Resources.it-IT.resx index 624f61ac9f4..cd6df8254f6 100644 --- a/src/Libraries/CoreNodes/Properties/Resources.it-IT.resx +++ b/src/Libraries/CoreNodes/Properties/Resources.it-IT.resx @@ -235,15 +235,15 @@ L'input deve essere un singolo valore o un elenco non nidificato. - • Min and Max values must be different. + • I valori minimo e massimo devono essere diversi. - • Values must be a list of numbers or a single number ≥ 2. + • I valori devono essere un elenco di numeri o un numero singolo ≥ 2. - • Control points for the selected curve are not valid. + • I punti di controllo per la curva selezionata non sono validi. - • X and Y inputs must be single numbers (not lists). + • Gli input X e Y devono essere numeri singoli (non elenchi). \ No newline at end of file diff --git a/src/Libraries/CoreNodes/Properties/Resources.ja-JP.resx b/src/Libraries/CoreNodes/Properties/Resources.ja-JP.resx index 7c802c1358e..5d52e241744 100644 --- a/src/Libraries/CoreNodes/Properties/Resources.ja-JP.resx +++ b/src/Libraries/CoreNodes/Properties/Resources.ja-JP.resx @@ -235,15 +235,15 @@ 入力は単一の値またはネストされていないリストである必要があります。 - • Min and Max values must be different. + • 最小値と最大値は異なる値である必要があります。 - • Values must be a list of numbers or a single number ≥ 2. + • 値は数値のリストまたは ≥ 2 の単一の数値である必要があります。 - • Control points for the selected curve are not valid. + • 選択した曲線の制御点が無効です。 - • X and Y inputs must be single numbers (not lists). + • X と Y の入力値は(リストではなく)単一の数値である必要があります。 \ No newline at end of file diff --git a/src/Libraries/CoreNodes/Properties/Resources.ko-KR.resx b/src/Libraries/CoreNodes/Properties/Resources.ko-KR.resx index 99fd8ac9d26..e0a10cb318a 100644 --- a/src/Libraries/CoreNodes/Properties/Resources.ko-KR.resx +++ b/src/Libraries/CoreNodes/Properties/Resources.ko-KR.resx @@ -235,15 +235,15 @@ 입력은 단일 값 또는 내포되지 않은 리스트여야 합니다. - • Min and Max values must be different. + • 최소값과 최대값은 달라야 합니다. - • Values must be a list of numbers or a single number ≥ 2. + • 값은 숫자 리스트이거나 2 이상의 단일 숫자여야 합니다. - • Control points for the selected curve are not valid. + • 선택한 곡선의 제어점이 유효하지 않습니다. - • X and Y inputs must be single numbers (not lists). + • X 및 Y 입력은 리스트가 아닌 단일 숫자여야 합니다. \ No newline at end of file diff --git a/src/Libraries/CoreNodes/Properties/Resources.pl-PL.resx b/src/Libraries/CoreNodes/Properties/Resources.pl-PL.resx index c92057e8839..5ba29f120c4 100644 --- a/src/Libraries/CoreNodes/Properties/Resources.pl-PL.resx +++ b/src/Libraries/CoreNodes/Properties/Resources.pl-PL.resx @@ -235,15 +235,15 @@ Dane wejściowe muszą być pojedynczą wartością lub listą niezagnieżdżoną. - • Min and Max values must be different. + • Wartości minimalne i maksymalne muszą się różnić. - • Values must be a list of numbers or a single number ≥ 2. + • Wartości muszą być listą liczb lub pojedynczą liczbą ≥ 2. - • Control points for the selected curve are not valid. + • Punkty sterowania dla wybranej krzywej nie są prawidłowe. - • X and Y inputs must be single numbers (not lists). + • Dane wejściowe X i Y muszą być pojedynczymi liczbami (nie listami). \ No newline at end of file diff --git a/src/Libraries/CoreNodes/Properties/Resources.pt-BR.resx b/src/Libraries/CoreNodes/Properties/Resources.pt-BR.resx index 7c2c7334147..95e0bcf9d09 100644 --- a/src/Libraries/CoreNodes/Properties/Resources.pt-BR.resx +++ b/src/Libraries/CoreNodes/Properties/Resources.pt-BR.resx @@ -235,15 +235,15 @@ A entrada deve ser um valor único ou uma lista não aninhada. - • Min and Max values must be different. + • Os valores mínimo e máximo devem ser diferentes. - • Values must be a list of numbers or a single number ≥ 2. + • Os valores devem ser uma lista de números ou um número único ≥ 2. - • Control points for the selected curve are not valid. + • Os pontos de controle da curva selecionada não são válidos. - • X and Y inputs must be single numbers (not lists). + • As entradas X e Y devem ser números únicos (não listas). \ No newline at end of file diff --git a/src/Libraries/CoreNodes/Properties/Resources.ru-RU.resx b/src/Libraries/CoreNodes/Properties/Resources.ru-RU.resx index 0d873a172f7..bf054b05771 100644 --- a/src/Libraries/CoreNodes/Properties/Resources.ru-RU.resx +++ b/src/Libraries/CoreNodes/Properties/Resources.ru-RU.resx @@ -235,15 +235,15 @@ Входное значение должно быть одним значением или не являться вложенным списком. - • Min and Max values must be different. + • Минимальное и максимальное значения должны отличаться. - • Values must be a list of numbers or a single number ≥ 2. + • Значения должны быть списком чисел или одиночным числом ≥ 2. - • Control points for the selected curve are not valid. + • Недопустимые управляющие точки для выбранной кривой. - • X and Y inputs must be single numbers (not lists). + • Входные данные X и Y должны быть одиночными числами (не списками). \ No newline at end of file diff --git a/src/Libraries/CoreNodes/Properties/Resources.zh-CN.resx b/src/Libraries/CoreNodes/Properties/Resources.zh-CN.resx index 4334a9c0902..2b3f6f39ea4 100644 --- a/src/Libraries/CoreNodes/Properties/Resources.zh-CN.resx +++ b/src/Libraries/CoreNodes/Properties/Resources.zh-CN.resx @@ -235,15 +235,15 @@ 输入必须是单个值或非嵌套列表。 - • Min and Max values must be different. + • 最小值和最大值必须不同。 - • Values must be a list of numbers or a single number ≥ 2. + • 值必须是数字列表或单个数字 ≥ 2。 - • Control points for the selected curve are not valid. + • 选定曲线的控制点无效。 - • X and Y inputs must be single numbers (not lists). + • X 和 Y 输入必须是单个数字(而不是列表)。 \ No newline at end of file diff --git a/src/Libraries/CoreNodes/Properties/Resources.zh-TW.resx b/src/Libraries/CoreNodes/Properties/Resources.zh-TW.resx index cc56da38a3b..b70dc8b6529 100644 --- a/src/Libraries/CoreNodes/Properties/Resources.zh-TW.resx +++ b/src/Libraries/CoreNodes/Properties/Resources.zh-TW.resx @@ -235,15 +235,15 @@ 輸入必須是單一值或非巢狀清單。 - • Min and Max values must be different. + • 最小值和最大值必須不同。 - • Values must be a list of numbers or a single number ≥ 2. + • 值必須是一個數字清單或一個 ≥ 2 的數字。 - • Control points for the selected curve are not valid. + • 所選曲線的控制點無效。 - • X and Y inputs must be single numbers (not lists). + • X 和 Y 輸入必須是一個數字 (不是清單)。 \ No newline at end of file diff --git a/src/NodeAutoCompleteViewExtension/Properties/Resources.cs-CZ.resx b/src/NodeAutoCompleteViewExtension/Properties/Resources.cs-CZ.resx index ffba7e34c4f..515f027380b 100644 --- a/src/NodeAutoCompleteViewExtension/Properties/Resources.cs-CZ.resx +++ b/src/NodeAutoCompleteViewExtension/Properties/Resources.cs-CZ.resx @@ -117,7 +117,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Cluster + Automatické dokončování uzlů rozšíření pohledu + + Shoda typů uzlů + + + Jeden + \ No newline at end of file diff --git a/src/NodeAutoCompleteViewExtension/Properties/Resources.de-DE.resx b/src/NodeAutoCompleteViewExtension/Properties/Resources.de-DE.resx index 179591e5541..170a275c50c 100644 --- a/src/NodeAutoCompleteViewExtension/Properties/Resources.de-DE.resx +++ b/src/NodeAutoCompleteViewExtension/Properties/Resources.de-DE.resx @@ -117,7 +117,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Cluster + Ansichtserweiterung der automatischen Blockvervollständigung + + Blocktypübereinstimmung + + + Einzeln + \ No newline at end of file diff --git a/src/NodeAutoCompleteViewExtension/Properties/Resources.es-ES.resx b/src/NodeAutoCompleteViewExtension/Properties/Resources.es-ES.resx index 9319fdd3ede..01143343ecd 100644 --- a/src/NodeAutoCompleteViewExtension/Properties/Resources.es-ES.resx +++ b/src/NodeAutoCompleteViewExtension/Properties/Resources.es-ES.resx @@ -117,7 +117,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Clúster + Extensión de vista de Autocompletar nodo + + Coincidencia de tipo de nodo + + + Simple + \ No newline at end of file diff --git a/src/NodeAutoCompleteViewExtension/Properties/Resources.fr-FR.resx b/src/NodeAutoCompleteViewExtension/Properties/Resources.fr-FR.resx index f377b9f680b..c7f0e59396b 100644 --- a/src/NodeAutoCompleteViewExtension/Properties/Resources.fr-FR.resx +++ b/src/NodeAutoCompleteViewExtension/Properties/Resources.fr-FR.resx @@ -117,7 +117,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Regroupements + Extension de vue de saisie automatique des noeuds + + Correspondance du type de noeud + + + Unique + \ No newline at end of file diff --git a/src/NodeAutoCompleteViewExtension/Properties/Resources.it-IT.resx b/src/NodeAutoCompleteViewExtension/Properties/Resources.it-IT.resx index 9114b496069..2a67bc9807c 100644 --- a/src/NodeAutoCompleteViewExtension/Properties/Resources.it-IT.resx +++ b/src/NodeAutoCompleteViewExtension/Properties/Resources.it-IT.resx @@ -117,7 +117,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Cluster + Estensione vista Completamento automatico nodi + + Corrispondenza tipo di nodo + + + Singolo + \ No newline at end of file diff --git a/src/NodeAutoCompleteViewExtension/Properties/Resources.ja-JP.resx b/src/NodeAutoCompleteViewExtension/Properties/Resources.ja-JP.resx index 8e6258fa69c..c371d04c757 100644 --- a/src/NodeAutoCompleteViewExtension/Properties/Resources.ja-JP.resx +++ b/src/NodeAutoCompleteViewExtension/Properties/Resources.ja-JP.resx @@ -117,7 +117,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + クラスター + ノード オートコンプリート ビュー拡張機能 + + ノード タイプ一致 + + + 単一 + \ No newline at end of file diff --git a/src/NodeAutoCompleteViewExtension/Properties/Resources.ko-KR.resx b/src/NodeAutoCompleteViewExtension/Properties/Resources.ko-KR.resx index c57ed73d759..907be594015 100644 --- a/src/NodeAutoCompleteViewExtension/Properties/Resources.ko-KR.resx +++ b/src/NodeAutoCompleteViewExtension/Properties/Resources.ko-KR.resx @@ -117,7 +117,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 클러스터 + 노드 자동 완성 뷰 확장 + + 노드 유형 일치 + + + 단일 + \ No newline at end of file diff --git a/src/NodeAutoCompleteViewExtension/Properties/Resources.pl-PL.resx b/src/NodeAutoCompleteViewExtension/Properties/Resources.pl-PL.resx index b6da7543ef9..e40208c6194 100644 --- a/src/NodeAutoCompleteViewExtension/Properties/Resources.pl-PL.resx +++ b/src/NodeAutoCompleteViewExtension/Properties/Resources.pl-PL.resx @@ -117,7 +117,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Podgrupa + Rozszerzenie widoku autouzupełniania węzłów + + Zgodność typu węzła + + + Jeden + \ No newline at end of file diff --git a/src/NodeAutoCompleteViewExtension/Properties/Resources.pt-BR.resx b/src/NodeAutoCompleteViewExtension/Properties/Resources.pt-BR.resx index f10edaacc46..87b32f7d3b1 100644 --- a/src/NodeAutoCompleteViewExtension/Properties/Resources.pt-BR.resx +++ b/src/NodeAutoCompleteViewExtension/Properties/Resources.pt-BR.resx @@ -117,7 +117,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Agrupamento + Extensão da vista de preenchimento automático de nós + + Correspondência do tipo nó + + + Único + \ No newline at end of file diff --git a/src/NodeAutoCompleteViewExtension/Properties/Resources.ru-RU.resx b/src/NodeAutoCompleteViewExtension/Properties/Resources.ru-RU.resx index ca07db7c170..5b3efcab89b 100644 --- a/src/NodeAutoCompleteViewExtension/Properties/Resources.ru-RU.resx +++ b/src/NodeAutoCompleteViewExtension/Properties/Resources.ru-RU.resx @@ -117,7 +117,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Кластер + Расширение вида «Автозаполнение узла» + + Соответствие типа узла + + + Один ВЭ + \ No newline at end of file diff --git a/src/NodeAutoCompleteViewExtension/Properties/Resources.zh-CN.resx b/src/NodeAutoCompleteViewExtension/Properties/Resources.zh-CN.resx index 223a7129d2e..134ec828279 100644 --- a/src/NodeAutoCompleteViewExtension/Properties/Resources.zh-CN.resx +++ b/src/NodeAutoCompleteViewExtension/Properties/Resources.zh-CN.resx @@ -117,7 +117,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 节点自动完成视图扩展 + + 节点类型匹配 + + + 单个 + \ No newline at end of file diff --git a/src/NodeAutoCompleteViewExtension/Properties/Resources.zh-TW.resx b/src/NodeAutoCompleteViewExtension/Properties/Resources.zh-TW.resx index b86669793b2..1af1128b88c 100644 --- a/src/NodeAutoCompleteViewExtension/Properties/Resources.zh-TW.resx +++ b/src/NodeAutoCompleteViewExtension/Properties/Resources.zh-TW.resx @@ -117,7 +117,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 組件 + 節點自動完成視圖延伸 + + 節點類型相符 + + + 單一 + \ No newline at end of file From 5fc3ed31093c98e937aadc812e959743a00ed1b2 Mon Sep 17 00:00:00 2001 From: Ashish Aggarwal Date: Tue, 27 May 2025 13:19:47 -0400 Subject: [PATCH 14/15] add missing trigger --- src/DynamoCoreWpf/Controls/InPorts.xaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/DynamoCoreWpf/Controls/InPorts.xaml.cs b/src/DynamoCoreWpf/Controls/InPorts.xaml.cs index 65fbcddfdf8..8ca5441b414 100644 --- a/src/DynamoCoreWpf/Controls/InPorts.xaml.cs +++ b/src/DynamoCoreWpf/Controls/InPorts.xaml.cs @@ -256,6 +256,9 @@ private void OnDataContextChanged(object sender, DependencyPropertyChangedEventA CommandParameter = viewModel }; + mouseRightButtonDownTrigger.Actions.Add(mouseRightButtonDownAction); + Dynamo.Microsoft.Xaml.Behaviors.Interaction.GetTriggers(MainGrid).Add(mouseRightButtonDownTrigger); + var previewMouseLeftDownTrigger = new Dynamo.UI.Views.HandlingEventTrigger() { EventName = "PreviewMouseLeftButtonDown", From 1ec82c8c7bad562ef7bdaeb044bd0d2105bb11ba Mon Sep 17 00:00:00 2001 From: Craig Long Date: Wed, 25 Jun 2025 08:18:37 -0400 Subject: [PATCH 15/15] Switch to writeable bitmap to add port state to bmp --- src/DynamoCoreWpf/Views/Core/NodeView.xaml.cs | 130 +++++++++++++++++- 1 file changed, 125 insertions(+), 5 deletions(-) diff --git a/src/DynamoCoreWpf/Views/Core/NodeView.xaml.cs b/src/DynamoCoreWpf/Views/Core/NodeView.xaml.cs index df2849d7f80..cae571674d8 100644 --- a/src/DynamoCoreWpf/Views/Core/NodeView.xaml.cs +++ b/src/DynamoCoreWpf/Views/Core/NodeView.xaml.cs @@ -318,6 +318,7 @@ static NodeView() _nodeButtonDotsSelected.Freeze(); _nodeButtonDots.Freeze(); _defaultNodeIcon.Freeze(); + LoadBmpPorts(); } public NodeView() @@ -1417,6 +1418,48 @@ private static Style GetCodeBlockPortItemControlStyle() return inOutPortControlStyle; } + //Set up pixel arrays for the port markers + static byte[] bluePixels = new byte[5 * 29 * 4]; + static byte[] bluePixelsDefault = new byte[4 * 27 * 4]; + static byte[] redPixels = new byte[5 * 29 * 4]; + static byte[] greyPixels = new byte[5 * 29 * 4]; + + //Initialize the port arrays + private static void LoadBmpPorts() + { + for (int i = 0; i < bluePixels.Length; i += 4) + { + bluePixels[i + 0] = 231; // Blue + bluePixels[i + 1] = 192; // Green + bluePixels[i + 2] = 106; // Red + bluePixels[i + 3] = 255; // Alpha + } + + for (int i = 0; i < bluePixelsDefault.Length; i += 4) + { + bluePixelsDefault[i + 0] = 231; // Blue + bluePixelsDefault[i + 1] = 192; // Green + bluePixelsDefault[i + 2] = 106; // Red + bluePixelsDefault[i + 3] = 255; // Alpha + } + + for (int i = 0; i < redPixels.Length; i += 4) + { + redPixels[i + 0] = 85; // Blue + redPixels[i + 1] = 85; // Green + redPixels[i + 2] = 235; // Red + redPixels[i + 3] = 255; // Alpha + } + + for (int i = 0; i < greyPixels.Length; i += 4) + { + greyPixels[i + 0] = 153; // Blue + greyPixels[i + 1] = 153; // Green + greyPixels[i + 2] = 153; // Red + greyPixels[i + 3] = 255; // Alpha + } + } + private void OnNodeViewUnloaded(object sender, RoutedEventArgs e) { ViewModel.NodeLogic.DispatchedToUI -= NodeLogic_DispatchedToUI; @@ -1497,18 +1540,95 @@ private void OnDataContextChanged(object sender, DependencyPropertyChangedEventA if (System.IO.File.Exists(path)) { var bitmap = new BitmapImage(new Uri(path, UriKind.Absolute)); + var writeableBitmap = new WriteableBitmap(bitmap); + + // Define rectangle position and size + int width = 5, height = 29; + int bytesPerPixel = (writeableBitmap.Format.BitsPerPixel + 7) / 8; + + int j = 0; + + foreach (var item in ViewModel.InPorts) + { + var model = item as InPortViewModel; + // Define the rectangle's position and size + int x = 0; // X coordinate + int y = 52 + j; // Y coordinate + + if (model.PortValueMarkerColor.Color.R == 106) + { + writeableBitmap.WritePixels( + new Int32Rect(x + 5, y, width, height), + bluePixels, + width * bytesPerPixel, + 0 + ); + } + else if(model.PortValueMarkerColor.Color.R == 235) + { + writeableBitmap.WritePixels( + new Int32Rect(x + 5, y, width, height), + redPixels, + width * bytesPerPixel, + 0 + ); + } + else + { + writeableBitmap.WritePixels( + new Int32Rect(x + 5, y, width, height), + greyPixels, + width * bytesPerPixel, + 0 + ); + } + + if (model.PortDefaultValueMarkerVisible) + { + writeableBitmap.WritePixels( + new Int32Rect(x, y + 1, width - 1, height - 2), + bluePixelsDefault, + (width-1) * bytesPerPixel, + 0 + ); + } + + j += 34; + } + + j = 0; + foreach (var item in ViewModel.OutPorts) + { + var model = item as OutPortViewModel; + // Define the rectangle's position and size + int x = (int)writeableBitmap.Width - 5; // X coordinate + int y = 53 + j; // Y coordinate + + if (model.PortDefaultValueMarkerVisible) + { + writeableBitmap.WritePixels( + new Int32Rect(x, y, width, height), + greyPixels, + width * bytesPerPixel, + 0 + ); + } + + j += 34; + } // Create the Image control imageControl = new Image { - Source = bitmap, - Width = bitmap.PixelWidth, // Set width to pixel width - Height = bitmap.PixelHeight, // Set height to pixel height + Source = writeableBitmap, + Margin = new Thickness(-5, 0, 0, 0), + Width = writeableBitmap.PixelWidth, // Set width to pixel width + Height = writeableBitmap.PixelHeight, // Set height to pixel height Stretch = System.Windows.Media.Stretch.None // Prevent scaling }; Grid.SetRow(imageControl, 1); - Grid.SetRowSpan(imageControl, 4); + Grid.SetRowSpan(imageControl, 3); Grid.SetColumnSpan(imageControl, 3); grid.Children.Add(imageControl); @@ -2028,7 +2148,7 @@ private void OnNodeViewMouseLeave(object sender, MouseEventArgs e) } // If it's condensed, then try to hide it. if (PreviewControl.IsCondensed && Mouse.Captured == null) - { + { PreviewControl.TransitionToState(PreviewControl.State.Hidden); } }