Skip to content

Commit

Permalink
Prep v0.7.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
cpettitt committed Dec 17, 2014
1 parent f5dcd8b commit 71f628d
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dagre",
"version": "0.7.0",
"version": "0.7.1",
"main": [
"dist/dagre.core.js",
"dist/dagre.core.min.js"
Expand Down
18 changes: 9 additions & 9 deletions dist/dagre.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ function removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {
var weight = g.edge(edge),
w = edge.w,
wEntry = g.node(w);
wEntry.in -= weight;
wEntry["in"] -= weight;
assignBucket(buckets, zeroIdx, wEntry);
});

Expand All @@ -413,7 +413,7 @@ function buildState(g, weightFn) {
maxOut = 0;

_.each(g.nodes(), function(v) {
fasGraph.setNode(v, { v: v, in: 0, out: 0 });
fasGraph.setNode(v, { v: v, "in": 0, out: 0 });
});

// Aggregate weights on nodes, but also sum the weights across multi-edges
Expand All @@ -424,7 +424,7 @@ function buildState(g, weightFn) {
edgeWeight = prevWeight + weight;
fasGraph.setEdge(e.v, e.w, edgeWeight);
maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);
maxIn = Math.max(maxIn, fasGraph.node(e.w).in += weight);
maxIn = Math.max(maxIn, fasGraph.node(e.w)["in"] += weight);
});

var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });
Expand All @@ -440,10 +440,10 @@ function buildState(g, weightFn) {
function assignBucket(buckets, zeroIdx, entry) {
if (!entry.out) {
buckets[0].enqueue(entry);
} else if (!entry.in) {
} else if (!entry["in"]) {
buckets[buckets.length - 1].enqueue(entry);
} else {
buckets[entry.out - entry.in + zeroIdx].enqueue(entry);
buckets[entry.out - entry["in"] + zeroIdx].enqueue(entry);
}
}

Expand Down Expand Up @@ -1474,7 +1474,7 @@ function resolveConflicts(entries, cg) {
_.each(entries, function(entry, i) {
var tmp = mappedEntries[entry.v] = {
indegree: 0,
in: [],
"in": [],
out: [],
vs: [entry.v],
i: i
Expand Down Expand Up @@ -1519,7 +1519,7 @@ function doResolveConflicts(sourceSet) {

function handleOut(vEntry) {
return function(wEntry) {
wEntry.in.push(vEntry);
wEntry["in"].push(vEntry);
if (--wEntry.indegree === 0) {
sourceSet.push(wEntry);
}
Expand All @@ -1529,7 +1529,7 @@ function doResolveConflicts(sourceSet) {
while (sourceSet.length) {
var entry = sourceSet.pop();
entries.push(entry);
_.each(entry.in.reverse(), handleIn(entry));
_.each(entry["in"].reverse(), handleIn(entry));
_.each(entry.out, handleOut(entry));
}

Expand Down Expand Up @@ -2897,7 +2897,7 @@ function notime(name, fn) {
}

},{"./graphlib":7,"./lodash":10}],30:[function(require,module,exports){
module.exports = "0.7.0";
module.exports = "0.7.1";

},{}]},{},[1])(1)
});
4 changes: 2 additions & 2 deletions dist/dagre.core.min.js

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions dist/dagre.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ function removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {
var weight = g.edge(edge),
w = edge.w,
wEntry = g.node(w);
wEntry.in -= weight;
wEntry["in"] -= weight;
assignBucket(buckets, zeroIdx, wEntry);
});

Expand All @@ -413,7 +413,7 @@ function buildState(g, weightFn) {
maxOut = 0;

_.each(g.nodes(), function(v) {
fasGraph.setNode(v, { v: v, in: 0, out: 0 });
fasGraph.setNode(v, { v: v, "in": 0, out: 0 });
});

// Aggregate weights on nodes, but also sum the weights across multi-edges
Expand All @@ -424,7 +424,7 @@ function buildState(g, weightFn) {
edgeWeight = prevWeight + weight;
fasGraph.setEdge(e.v, e.w, edgeWeight);
maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);
maxIn = Math.max(maxIn, fasGraph.node(e.w).in += weight);
maxIn = Math.max(maxIn, fasGraph.node(e.w)["in"] += weight);
});

var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });
Expand All @@ -440,10 +440,10 @@ function buildState(g, weightFn) {
function assignBucket(buckets, zeroIdx, entry) {
if (!entry.out) {
buckets[0].enqueue(entry);
} else if (!entry.in) {
} else if (!entry["in"]) {
buckets[buckets.length - 1].enqueue(entry);
} else {
buckets[entry.out - entry.in + zeroIdx].enqueue(entry);
buckets[entry.out - entry["in"] + zeroIdx].enqueue(entry);
}
}

Expand Down Expand Up @@ -1474,7 +1474,7 @@ function resolveConflicts(entries, cg) {
_.each(entries, function(entry, i) {
var tmp = mappedEntries[entry.v] = {
indegree: 0,
in: [],
"in": [],
out: [],
vs: [entry.v],
i: i
Expand Down Expand Up @@ -1519,7 +1519,7 @@ function doResolveConflicts(sourceSet) {

function handleOut(vEntry) {
return function(wEntry) {
wEntry.in.push(vEntry);
wEntry["in"].push(vEntry);
if (--wEntry.indegree === 0) {
sourceSet.push(wEntry);
}
Expand All @@ -1529,7 +1529,7 @@ function doResolveConflicts(sourceSet) {
while (sourceSet.length) {
var entry = sourceSet.pop();
entries.push(entry);
_.each(entry.in.reverse(), handleIn(entry));
_.each(entry["in"].reverse(), handleIn(entry));
_.each(entry.out, handleOut(entry));
}

Expand Down Expand Up @@ -2897,7 +2897,7 @@ function notime(name, fn) {
}

},{"./graphlib":7,"./lodash":10}],30:[function(require,module,exports){
module.exports = "0.7.0";
module.exports = "0.7.1";

},{}],31:[function(require,module,exports){
/**
Expand Down
4 changes: 2 additions & 2 deletions dist/dagre.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = "0.7.1-pre";
module.exports = "0.7.1";
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dagre",
"version": "0.7.1-pre",
"version": "0.7.1",
"description": "Graph layout for JavaScript",
"author": "Chris Pettitt <[email protected]>",
"main": "index.js",
Expand Down Expand Up @@ -36,4 +36,4 @@
"url": "https://github.com/cpettitt/dagre.git"
},
"license": "MIT"
}
}

0 comments on commit 71f628d

Please sign in to comment.