graphology-gexf
Advanced tools
Comparing version 0.13.0 to 0.13.1
@@ -455,3 +455,3 @@ /* eslint no-self-compare: 0 */ | ||
//-- 2) Size | ||
if ('size' in viz) { | ||
if (viz.size !== undefined) { | ||
writer.startElementNS('viz', 'size'); | ||
@@ -463,10 +463,10 @@ writer.writeAttribute('value', viz.size); | ||
//-- 3) Position | ||
if ('x' in viz || 'y' in viz || 'z' in viz) { | ||
if (viz.x !== undefined || viz.y !== undefined || viz.z !== undefined) { | ||
writer.startElementNS('viz', 'position'); | ||
if ('x' in viz) writer.writeAttribute('x', viz.x); | ||
if (viz.x !== undefined) writer.writeAttribute('x', viz.x); | ||
if ('y' in viz) writer.writeAttribute('y', viz.y); | ||
if (viz.y !== undefined) writer.writeAttribute('y', viz.y); | ||
if ('z' in viz) writer.writeAttribute('z', viz.z); | ||
if (viz.z !== undefined) writer.writeAttribute('z', viz.z); | ||
@@ -484,3 +484,3 @@ writer.endElement(); | ||
//-- 5) Thickness | ||
if ('thickness' in viz) { | ||
if (viz.thickness !== undefined) { | ||
writer.startElementNS('viz', 'thickness'); | ||
@@ -487,0 +487,0 @@ writer.writeAttribute('value', viz.thickness); |
{ | ||
"name": "graphology-gexf", | ||
"version": "0.13.0", | ||
"version": "0.13.1", | ||
"description": "GEXF parser & writer for graphology.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40750