svf-lib 1.0.2627 → 1.0.2629

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.
@@ -178,7 +178,13 @@ public:
178
178
 
179
179
  if (!DTraits.renderGraphFromBottomUp())
180
180
  {
181
- O << DOT::EscapeStr(DTraits.getNodeLabel(Node, G));
181
+ std::string label = DTraits.getNodeLabel(Node, G);
182
+ if (label.length() > Options::MaxNodeLabelLength())
183
+ {
184
+ label = label.substr(0, Options::MaxNodeLabelLength()) + "...";
185
+ }
186
+
187
+ O << DOT::EscapeStr(label);
182
188
 
183
189
  // If we should include the address of the node in the label, do so now.
184
190
  std::string Id = DTraits.getNodeIdentifierLabel(Node, G);
@@ -178,7 +178,13 @@ public:
178
178
 
179
179
  if (!DTraits.renderGraphFromBottomUp())
180
180
  {
181
- O << DOT::EscapeStr(DTraits.getNodeLabel(Node, G));
181
+ std::string label = DTraits.getNodeLabel(Node, G);
182
+ if (label.length() > Options::MaxNodeLabelLength())
183
+ {
184
+ label = label.substr(0, Options::MaxNodeLabelLength()) + "...";
185
+ }
186
+
187
+ O << DOT::EscapeStr(label);
182
188
 
183
189
  // If we should include the address of the node in the label, do so now.
184
190
  std::string Id = DTraits.getNodeIdentifierLabel(Node, G);
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.2627",
3
+ "version": "1.0.2629",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {