addon/utils/graph-view.js
function transform(animate) {
    var base = animate ? g.transition().duration(DURATION) : g;
    base.attr('transform', `translate(${panX}, ${panY}) scale(${scale})`);
  }
function transform(animate) {
    var base = animate ? g.transition().duration(DURATION) : g;
    base.attr('transform', `translate(${panX}, ${panY}) scale(${scale})`);
  }
function transform ( animate ) { var base = animate ? g . transition ( ) . duration ( DURATION ) : g ; base . attr ( 'transform' , ` ${ panX } ${ panY } ${ scale } ` ) ; }
Transform g to current panX, panY and scale.
@param animate {Boolean} Animate the transformation in DURATION time.
Transform g to current panX panY and scale .