Skip to content

Commit 71f628d

Browse files
committed
Prep v0.7.1 release
1 parent f5dcd8b commit 71f628d

File tree

7 files changed

+26
-26
lines changed

7 files changed

+26
-26
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dagre",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"main": [
55
"dist/dagre.core.js",
66
"dist/dagre.core.min.js"

dist/dagre.core.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ function removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {
398398
var weight = g.edge(edge),
399399
w = edge.w,
400400
wEntry = g.node(w);
401-
wEntry.in -= weight;
401+
wEntry["in"] -= weight;
402402
assignBucket(buckets, zeroIdx, wEntry);
403403
});
404404

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

415415
_.each(g.nodes(), function(v) {
416-
fasGraph.setNode(v, { v: v, in: 0, out: 0 });
416+
fasGraph.setNode(v, { v: v, "in": 0, out: 0 });
417417
});
418418

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

430430
var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });
@@ -440,10 +440,10 @@ function buildState(g, weightFn) {
440440
function assignBucket(buckets, zeroIdx, entry) {
441441
if (!entry.out) {
442442
buckets[0].enqueue(entry);
443-
} else if (!entry.in) {
443+
} else if (!entry["in"]) {
444444
buckets[buckets.length - 1].enqueue(entry);
445445
} else {
446-
buckets[entry.out - entry.in + zeroIdx].enqueue(entry);
446+
buckets[entry.out - entry["in"] + zeroIdx].enqueue(entry);
447447
}
448448
}
449449

@@ -1474,7 +1474,7 @@ function resolveConflicts(entries, cg) {
14741474
_.each(entries, function(entry, i) {
14751475
var tmp = mappedEntries[entry.v] = {
14761476
indegree: 0,
1477-
in: [],
1477+
"in": [],
14781478
out: [],
14791479
vs: [entry.v],
14801480
i: i
@@ -1519,7 +1519,7 @@ function doResolveConflicts(sourceSet) {
15191519

15201520
function handleOut(vEntry) {
15211521
return function(wEntry) {
1522-
wEntry.in.push(vEntry);
1522+
wEntry["in"].push(vEntry);
15231523
if (--wEntry.indegree === 0) {
15241524
sourceSet.push(wEntry);
15251525
}
@@ -1529,7 +1529,7 @@ function doResolveConflicts(sourceSet) {
15291529
while (sourceSet.length) {
15301530
var entry = sourceSet.pop();
15311531
entries.push(entry);
1532-
_.each(entry.in.reverse(), handleIn(entry));
1532+
_.each(entry["in"].reverse(), handleIn(entry));
15331533
_.each(entry.out, handleOut(entry));
15341534
}
15351535

@@ -2897,7 +2897,7 @@ function notime(name, fn) {
28972897
}
28982898

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

29022902
},{}]},{},[1])(1)
29032903
});

dist/dagre.core.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dagre.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ function removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {
398398
var weight = g.edge(edge),
399399
w = edge.w,
400400
wEntry = g.node(w);
401-
wEntry.in -= weight;
401+
wEntry["in"] -= weight;
402402
assignBucket(buckets, zeroIdx, wEntry);
403403
});
404404

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

415415
_.each(g.nodes(), function(v) {
416-
fasGraph.setNode(v, { v: v, in: 0, out: 0 });
416+
fasGraph.setNode(v, { v: v, "in": 0, out: 0 });
417417
});
418418

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

430430
var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });
@@ -440,10 +440,10 @@ function buildState(g, weightFn) {
440440
function assignBucket(buckets, zeroIdx, entry) {
441441
if (!entry.out) {
442442
buckets[0].enqueue(entry);
443-
} else if (!entry.in) {
443+
} else if (!entry["in"]) {
444444
buckets[buckets.length - 1].enqueue(entry);
445445
} else {
446-
buckets[entry.out - entry.in + zeroIdx].enqueue(entry);
446+
buckets[entry.out - entry["in"] + zeroIdx].enqueue(entry);
447447
}
448448
}
449449

@@ -1474,7 +1474,7 @@ function resolveConflicts(entries, cg) {
14741474
_.each(entries, function(entry, i) {
14751475
var tmp = mappedEntries[entry.v] = {
14761476
indegree: 0,
1477-
in: [],
1477+
"in": [],
14781478
out: [],
14791479
vs: [entry.v],
14801480
i: i
@@ -1519,7 +1519,7 @@ function doResolveConflicts(sourceSet) {
15191519

15201520
function handleOut(vEntry) {
15211521
return function(wEntry) {
1522-
wEntry.in.push(vEntry);
1522+
wEntry["in"].push(vEntry);
15231523
if (--wEntry.indegree === 0) {
15241524
sourceSet.push(wEntry);
15251525
}
@@ -1529,7 +1529,7 @@ function doResolveConflicts(sourceSet) {
15291529
while (sourceSet.length) {
15301530
var entry = sourceSet.pop();
15311531
entries.push(entry);
1532-
_.each(entry.in.reverse(), handleIn(entry));
1532+
_.each(entry["in"].reverse(), handleIn(entry));
15331533
_.each(entry.out, handleOut(entry));
15341534
}
15351535

@@ -2897,7 +2897,7 @@ function notime(name, fn) {
28972897
}
28982898

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

29022902
},{}],31:[function(require,module,exports){
29032903
/**

dist/dagre.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = "0.7.1-pre";
1+
module.exports = "0.7.1";

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dagre",
3-
"version": "0.7.1-pre",
3+
"version": "0.7.1",
44
"description": "Graph layout for JavaScript",
55
"author": "Chris Pettitt <[email protected]>",
66
"main": "index.js",
@@ -36,4 +36,4 @@
3636
"url": "https://github.com/cpettitt/dagre.git"
3737
},
3838
"license": "MIT"
39-
}
39+
}

0 commit comments

Comments
 (0)