@stocksharp/diagram 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2911,7 +2911,9 @@ export class Diagram {
2911
2911
  text = n.description;
2912
2912
  }
2913
2913
  else {
2914
- text = n.typeId && n.typeId !== n.name ? `${n.name} [${n.typeId}]` : n.name;
2914
+ // A node given no type carries its id as one; an id is a key, not a word for the reader.
2915
+ const typed = n.typeId.length > 0 && n.typeId !== n.name && n.typeId !== n.id;
2916
+ text = typed ? `${n.name} [${n.typeId}]` : n.name;
2915
2917
  }
2916
2918
  }
2917
2919
  else {