export default function(nodes, v) {

  var shiftX, shiftY;

  nodes.forEach(function(n, i) {

    if(v.orient == "bottom") {

      shiftX = v.size[0] / (2 * nodes.length);
      shiftY = v.size[1] / (2 * nodes.length);

      n[v.__x] = 0 + v.offset[0] + shiftX * i;
      n[v.__y] = 0 + v.offset[1] + shiftY * i * 2;

      n[v.__width] = v.size[0] - shiftX * i * 2;
      n[v.__height] = v.size[1] - shiftY * i * 2;

      n[v.__cx] = n[v.__x] + n[v.__width] / 2;
      n[v.__cy] = n[v.__y] + shiftY;

    } else if(v.orient == "top") {

      shiftX = v.size[0] / (2 * nodes.length);
      shiftY = v.size[1] / (2 * nodes.length);

      n[v.__x] = 0 + v.offset[0] + shiftX * i;
      n[v.__y] = 0 + v.offset[1];

      n[v.__width] = v.size[0] - shiftX * i * 2;
      n[v.__height] = v.size[1] - shiftY * i * 2;

      n[v.__cx] = n[v.__x] + n[v.__width] / 2;
      n[v.__cy] = n[v.__y] + shiftY * i * 2 + shiftY;

    } else { // central default

      shiftX = v.size[0] / (2 * nodes.length);
      shiftY = v.size[1] / (2 * nodes.length);

      n[v.__x] = 0 + v.offset[0] + shiftX * i;
      n[v.__y] = 0 + v.offset[1] + shiftY * i;

      n[v.__width] = v.size[0] - shiftX * i * 2;
      n[v.__height] = v.size[1] - shiftY * i * 2;

      n[v.__cx] = n[v.__x] + n[v.__width] / 2;
      n[v.__cy] = n[v.__y] + n[v.__height] / 2;

    }
  });

  return nodes;
}

@@ -1,8 +1,47 @@
+import rotate from %22../utils/rotate%22;%0A%0A
 export d
@@ -1367,24 +1367,562 @@
 ight%5D / 2;%0A%0A
+      if(v.rotate !==null) %7B%0A        n%5B%22__p%22%5D = %5B%5D;%0A        n%5B%22__p%22%5D.push(rotate(n%5Bv.__cx%5D, n%5Bv.__cy%5D, n%5Bv.__x%5D, n%5Bv.__y%5D, v.rotate));%0A        n%5B%22__p%22%5D.push(rotate(n%5Bv.__cx%5D, n%5Bv.__cy%5D, n%5Bv.__x%5D + n%5Bv.__width%5D, n%5Bv.__y%5D, v.rotate));%0A        n%5B%22__p%22%5D.push(rotate(n%5Bv.__cx%5D, n%5Bv.__cy%5D, n%5Bv.__x%5D + n%5Bv.__width%5D, n%5Bv.__y%5D + n%5Bv.__height%5D, v.rotate));%0A        n%5B%22__p%22%5D.push(rotate(n%5Bv.__cx%5D, n%5Bv.__cy%5D, n%5Bv.__x%5D, n%5Bv.__y%5D + n%5Bv.__height%5D, v.rotate));%0A        n%5B%22__p%22%5D.push(rotate(n%5Bv.__cx%5D, n%5Bv.__cy%5D, n%5Bv.__x%5D, n%5Bv.__y%5D, v.rotate));%0A      %7D%0A%0A
     %7D%0A  %7D);%0A

Support for rotate