Skip to content

Commit

Permalink
update dist v0.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Oct 13, 2016
1 parent 7900d6c commit 8e411c7
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 15 deletions.
18 changes: 16 additions & 2 deletions dist/LineUpJS.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/LineUpJS.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/LineUpJS.min.js

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions dist/LineUpJS_bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1911,14 +1911,20 @@ return /******/ (function(modules) { // webpackBootstrap
var cats = [], cols = this.colors.range(), labels = d3.map();
desc.categories.forEach(function (cat, i) {
if (typeof cat === 'string') {
//just the category value
cats.push(cat);
}
else {
cats.push(cat.name);
//the name or value of the category
cats.push(cat.name || cat.value);
//optional label mapping
if (cat.label) {
labels.set(cat.name, cat.label);
}
cols[i] = cat.color;
//optional color
if (cat.color) {
cols[i] = cat.color;
}
}
});
this.catLabels = labels;
Expand Down Expand Up @@ -2008,14 +2014,22 @@ return /******/ (function(modules) { // webpackBootstrap
range: this.colors.range(),
separator: this.separator
};
if (this.catLabels !== null && !this.catLabels.empty()) {
r.labels = this.catLabels.entries();
}
return r;
};
CategoricalColumn.prototype.restore = function (dump, factory) {
var _this = this;
_super.prototype.restore.call(this, dump, factory);
this.currentFilter = dump.filter || null;
if (dump.colors) {
this.colors.domain(dump.colors.domain).range(dump.colors.range);
}
if (dump.labels) {
this.catLabels = d3.map();
dump.labels.forEach(function (e) { return _this.catLabels.set(e.key, e.value); });
}
this.separator = dump.separator || this.separator;
};
CategoricalColumn.prototype.isFiltered = function () {
Expand Down
2 changes: 1 addition & 1 deletion dist/LineUpJS_bundle.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/LineUpJS_bundle.min.js

Large diffs are not rendered by default.

0 comments on commit 8e411c7

Please sign in to comment.