vendor/assets/javascripts/vega-lite.js in vega-0.1.1 vs vendor/assets/javascripts/vega-lite.js in vega-0.1.2
- old
+ new
@@ -1,12 +1,12 @@
(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vega')) :
- typeof define === 'function' && define.amd ? define(['exports', 'vega'], factory) :
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.vegaLite = {}));
}(this, (function (exports) { 'use strict';
- var version = "4.16.2";
+ var version = "4.17.0";
function accessor(fn, fields, name) {
fn.fields = fields || [];
fn.fname = name;
return fn;
@@ -14635,11 +14635,11 @@
return undefined;
}
function defaultLabelOverlap(type, scaleType, hasTimeUnit, sort) {
// do not prevent overlap for nominal data because there is no way to infer what the missing labels are
if (hasTimeUnit && !isObject(sort) || type !== 'nominal' && type !== 'ordinal') {
- if (scaleType === 'log') {
+ if (scaleType === 'log' || scaleType === 'symlog') {
return 'greedy';
}
return true;
}
@@ -15645,11 +15645,11 @@
signal: "clamp(".concat(sizeSignal, ", ").concat(min, ", ").concat(max, ")")
};
}
function defaultLabelOverlap$1(scaleType) {
- if (contains(['quantile', 'threshold', 'log'], scaleType)) {
+ if (contains(['quantile', 'threshold', 'log', 'symlog'], scaleType)) {
return 'greedy';
}
return undefined;
}
@@ -17916,10 +17916,10 @@
* Facet nodes are needed for the row or column domains.
*/
class RemoveUnusedSubtrees extends BottomUpOptimizer {
run(node) {
- if (node instanceof OutputNode || node.numChildren() > 0 || node instanceof FacetNode) ; else {
+ if (node instanceof OutputNode || node.numChildren() > 0 || node instanceof FacetNode) ; else if (node instanceof SourceNode) ; else {
this.setModified();
node.remove();
}
}