Permalink
Commits on Oct 20, 2013
  1. Merge pull request #1 from philogb/master

    pombredanne committed Oct 20, 2013
    latest from upstream
Commits on Jun 30, 2013
  1. updating bower file

    philogb committed Jun 30, 2013
  2. oopswq

    philogb committed Jun 30, 2013
Commits on Jun 26, 2013
  1. Merge pull request #152 from alesdotio/patch-1

    philogb committed Jun 26, 2013
    fixed missing touch event raising an exception
Commits on May 31, 2013
Commits on May 28, 2013
  1. Merge pull request #149 from bor0/master

    philogb committed May 28, 2013
    Added optional parameter 'id' to JSON
Commits on May 22, 2013
  1. Added optional parameter 'id' to JSON for BarChart

    bor0 committed May 22, 2013
    Added optional parameter 'id' to Jit BarChart, because the previous implementation was not allowing two or more same labels.
    If an id is not specified, it is using key => value, where key is the label, and for two same labels it would not count the second one.
    If an id is specified, it will use id => value.
Commits on Apr 29, 2013
  1. Merge pull request #148 from stavarotti/master

    philogb committed Apr 29, 2013
    Updated offset calculation
  2. Updated offset calculation

    stavarotti committed Apr 29, 2013
    Updated the offset calculation for the clicked node to ensure that the
    canvas translation is considered.  For example with this change, when
    Navigation.panning is true, and the graph is panned, the canvas
    translation offsets will be considered when positioning the graph in
    respect to the clicked node.  This change was derived from the following
    post:
    https://groups.google.com/d/topic/javascript-information-visualization-toolkit/1ElZw19VaXM/discussion.
Commits on Mar 28, 2013
  1. Merge pull request #146 from Sly1024/master

    philogb committed Mar 28, 2013
    Fixing IE7 style issues
Commits on Mar 27, 2013
  1. Merge pull request #144 from ScottYeadon/master

    philogb committed Mar 27, 2013
    Add Prefuse force directed layout computation
  2. Add Prefuse Force Directed layout computation for faster rendering of…

    ScottYeadon committed Mar 27, 2013
    … large force directed graphs
Commits on Feb 22, 2013
  1. Update LICENSE

    philogb committed Feb 22, 2013
Commits on Feb 21, 2013
  1. Add `levelSpacing` option that if nodes in the tree have different

    philogb committed Feb 21, 2013
    widths it won't align the nodes on each level of the tree.
Commits on Feb 12, 2013
  1. Merge pull request #140 from siq/master

    philogb committed Feb 12, 2013
    Fix for [issue 139](philogb#139)
  2. This fixes a 0/0 bug in IE8

    ralphsmith80 committed Feb 12, 2013
    The 0/0 results in NaN which other browser handle fine but IE8
    and probably IE8- choke on.
Commits on Feb 7, 2013
  1. Merge pull request #136 from shinaisan/master

    philogb committed Feb 7, 2013
    Force Directed Graph:Edges cannot be dragged when Navigation is enabled
Commits on Jan 7, 2013
  1. Merge pull request #138 from KurtPreston/master

    philogb committed Jan 7, 2013
    Fix nodeFx bug
Commits on Jan 1, 2013
  1. Fixing nodeFx bug

    KurtPreston committed Jan 1, 2013
Commits on Dec 9, 2012
  1. Merge pull request #137 from stavarotti/master

    philogb committed Dec 9, 2012
    Added check for existence of preventDefault()
Commits on Dec 8, 2012
Commits on Nov 21, 2012
  1. Avoid also edges at a mousedown event if the panning setting is 'avoi…

    shinaisan committed Nov 21, 2012
    …d nodes' so that we can move an edge by dragging it.
Commits on Nov 19, 2012
  1. Merge pull request #133 from shex/master

    philogb committed Nov 19, 2012
    Bugs in RGraph's morph (directed graph), and a feature (positioning the arrow in middle of edge)
  2. Test Morph on Directed Graphs

    shex committed Nov 19, 2012
    Testing morph operations on a directed Graph, where edges are change
    direction.
    The edges' direction should be taken into considered when traversing the
    Graph I.E., the BFS search should NOT follow a removed edge or a
    reveresed edges (one that changes direction in the morph).
    Running the tests: for each example, load the example clicking the
    'Load' button followed by clicking the 'Run' button.
Commits on Nov 13, 2012
  1. Fixed bugs related to morphing with directed graphs (specifically in …

    shex committed Nov 13, 2012
    …RGraph)
    
    The bugs appear when morphing from Graph A to Graph B, where A!=B, i.e.,
    Where Edges in A either do not apear in B or in the reveres direction.
    
    All bugs stem from the fact that rGraph is actually not-directed, and
    the edge has a data memeber which holds the directions. Much of the
    traversal operations used for calculations did not introspect this field
    (either for deletion of edges nor for their reversal)
    Example of bugs fixed:
    * A comprises 2 nodes (x,y), and we morph from x->y to y->x., and back
    (checking several morphs is a must since another bug was since must
    operation traverse each edge twice, from each node).
    
    Note that example only covers one of the bugs fixed in this commit.
Commits on Nov 12, 2012
  1. Trying to repair CRLF commits

    shex committed Nov 12, 2012
  2. Arrow positioning

    shex committed Nov 12, 2012
  3. Sorry for the big diff (damn window's ending).

    shex committed Nov 12, 2012
    The changes are:
    RGraph.js:
    'arrow': {
    'render': function(adj, canvas) {
    var from = adj.nodeFrom.pos.getc(true),
    to = adj.nodeTo.pos.getc(true),
    dim = adj.getData('dim'),
    direction = adj.data.$direction,
    inv = (direction && direction.length>1 && direction[0] !=
    adj.nodeFrom.id),
    arrowPosition = this.edge.arrowPosition || 'end';
    this.edgeHelper.arrow.render(from, to, dim, inv, canvas, arrowPosition);
    },
    
    Helpers.js
    'render': function(from, to, dim, swap, canvas, arrowPosition){
    var ctx = canvas.getCtx();
    // invert edge direction
    if (swap) {
    var tmp = from;
    from = to;
    to = tmp;
    }
    var vect = new Complex(to.x - from.x, to.y - from.y);
    vect.$scale(dim / vect.norm());
    var posVect;
    switch (arrowPosition) {
    case 'end':    posVect = vect; break;
    case 'center': posVect = new Complex((to.x - from.x)/2, (to.y -
    from.y)/2); break;
    }
    var intermediatePoint = new Complex(to.x - posVect.x, to.y - posVect.y),
    normal = new Complex(-vect.y / 2, vect.x / 2),
    endPoint = intermediatePoint.add(vect),
    v1 = intermediatePoint.add(normal),
    v2 = intermediatePoint.$add(normal.$scale(-1));
  4. Arrow position in different places

    shex committed Nov 12, 2012
    Usage:
    arrowPosition param in Edge's Option. Enum values are 'end' (default)
    and 'center'.
    
    Edge: {
    epsilon: 14,
    color: '#fff',
    
    arrowPosition: 'center'
    }
    
    Other positions can be added easily now:
    e.g.
    case 'start':  posVect = new Complex(to.x, to.y); break;
    
    TODO: Allow percentages instead of enum value
  5. Merge pull request #131 from shex/master

    philogb committed Nov 12, 2012
    This allows changing the crusor while draging
Commits on Nov 11, 2012
  1. Adding grabbing class on canvas while draging

    shex committed Nov 11, 2012
    This allows changing the crusor while draging, e.g.
    
    #infovisContainer-canvaswidget.grabbing {
    cursor: -webkit-grab;
    }
    
    #infovisContainer-canvaswidget.grabbing {
    cursor: -webkit-grabbing;
    }
    
    e.preventDefault() is needed for some browsers (e.g. webkit based) which
    default operation of dragging is selection (hence the corsor shown).
Commits on Nov 1, 2012
  1. Merge pull request #127 from dcabasson/master

    philogb committed Nov 1, 2012
    Adding a detection of the HTMLDocument for IE7/8 compatibility