code: function(value, type) {
        type = type || "current";
        var pos;
        if(type == "current") {
          pos = this.pos;
        } else if(type == "end") {
          pos = this.endPos;
        } else if(type == "start") {
          pos = this.startPos;
        }
        pos.set(value);
    }
docs: /*
  Method: setPos
  
  Sets the node's position.
  
  Parameters:
  
  value - (object) A <Complex> or <Polar> instance.
  type - (string) Default's *current*. Possible values are "start", "end" or "current".
  
  Example:
  (start code js)
  node.setPos(new $jit.Complex(0, 0), 'end');
  (end code)