plugins/sigma.parsers.gexf/gexf-parser.js
function _nodeViz(node) {
      var viz = {};

      // Color
      var color_el = _helpers.getFirstElementByTagNS(node, 'viz', 'color');

      if (color_el) {
        var color = ['r', 'g', 'b', 'a'].map(function(c) {
          return color_el.getAttribute(c);
        });

        viz.color = _helpers.getRGB(color);
      }

      // Position
      var pos_el = _helpers.getFirstElementByTagNS(node, 'viz', 'position');

      if (pos_el) {
        viz.position = {};

        ['x', 'y', 'z'].map(function(p) {
          viz.position[p] = +pos_el.getAttribute(p);
        });
      }

      // Size
      var size_el = _helpers.getFirstElementByTagNS(node, 'viz', 'size');
      if (size_el)
        viz.size = +size_el.getAttribute('value');

      // Shape
      var shape_el = _helpers.getFirstElementByTagNS(node, 'viz', 'shape');
      if (shape_el)
        viz.shape = shape_el.getAttribute('value');

      return viz;
    }
function _nodeViz(node) {
      var viz = {};

      // Color
      var color_el = _helpers.getFirstElementByTagNS(node, 'viz', 'color');

      if (color_el) {
        var color = ['r', 'g', 'b', 'a'].map(function(c) {
          return color_el.getAttribute(c);
        });

        viz.color = _helpers.getRGB(color);
      }

      // Position
      var pos_el = _helpers.getFirstElementByTagNS(node, 'viz', 'position');

      if (pos_el) {
        viz.position = {};

        ['x', 'y', 'z'].map(function(p) {
          viz.position[p] = +pos_el.getAttribute(p);
        });
      }

      // Size
      var size_el = _helpers.getFirstElementByTagNS(node, 'viz', 'size');
      if (size_el)
        viz.size = +size_el.getAttribute('value');

      // Shape
      var shape_el = _helpers.getFirstElementByTagNS(node, 'viz', 'shape');
      if (shape_el)
        viz.shape = shape_el.getAttribute('value');

      return viz;
    }
function _nodeViz ( node ) { var viz = { } ; // Color var color_el = _helpers . getFirstElementByTagNS ( node , 'viz' , 'color' ) ; if ( color_el ) { var color = [ 'r' , 'g' , 'b' , 'a' ] . map ( function ( c ) { return color_el . getAttribute ( c ) ; } ) ; viz . color = _helpers . getRGB ( color ) ; } // Position var pos_el = _helpers . getFirstElementByTagNS ( node , 'viz' , 'position' ) ; if ( pos_el ) { viz . position = { } ; [ 'x' , 'y' , 'z' ] . map ( function ( p ) { viz . position [ p ] = + pos_el . getAttribute ( p ) ; } ) ; } // Size var size_el = _helpers . getFirstElementByTagNS ( node , 'viz' , 'size' ) ; if ( size_el ) viz . size = + size_el . getAttribute ( 'value' ) ; // Shape var shape_el = _helpers . getFirstElementByTagNS ( node , 'viz' , 'shape' ) ; if ( shape_el ) viz . shape = shape_el . getAttribute ( 'value' ) ; return viz ; }
Viz information from nodes
Viz information from nodes