plottable 3.9.0-dev-80-g90701cde → 3.9.0-dev-82-g8324c0ef
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,4 +10,4 @@ exports.version = void 0;
|
|
|
10
10
|
* real version number during the dist phase for for npm module publishing. Modifying this line should
|
|
11
11
|
* be accompanied by modifying the "sed-version" task in package.json accordingly.
|
|
12
12
|
*/
|
|
13
|
-
exports.version = "3.9.0-dev-
|
|
13
|
+
exports.version = "3.9.0-dev-82-g8324c0ef";
|
|
@@ -9,6 +9,7 @@ var tslib_1 = require("tslib");
|
|
|
9
9
|
var d3 = require("d3");
|
|
10
10
|
var Utils = require("../utils");
|
|
11
11
|
var scale_1 = require("./scale");
|
|
12
|
+
var UNKNOWN_COLOR = "rgb(0, 0, 0)";
|
|
12
13
|
var InterpolatedColor = /** @class */ (function (_super) {
|
|
13
14
|
tslib_1.__extends(InterpolatedColor, _super);
|
|
14
15
|
/**
|
|
@@ -21,16 +22,16 @@ var InterpolatedColor = /** @class */ (function (_super) {
|
|
|
21
22
|
var _this = _super.call(this) || this;
|
|
22
23
|
switch (scaleType) {
|
|
23
24
|
case "linear":
|
|
24
|
-
_this._colorScale = d3.scaleLinear();
|
|
25
|
+
_this._colorScale = d3.scaleLinear().unknown(UNKNOWN_COLOR);
|
|
25
26
|
break;
|
|
26
27
|
case "log":
|
|
27
|
-
_this._colorScale = d3.scaleLog();
|
|
28
|
+
_this._colorScale = d3.scaleLog().unknown(UNKNOWN_COLOR);
|
|
28
29
|
break;
|
|
29
30
|
case "sqrt":
|
|
30
|
-
_this._colorScale = d3.scaleSqrt();
|
|
31
|
+
_this._colorScale = d3.scaleSqrt().unknown(UNKNOWN_COLOR);
|
|
31
32
|
break;
|
|
32
33
|
case "pow":
|
|
33
|
-
_this._colorScale = d3.scalePow();
|
|
34
|
+
_this._colorScale = d3.scalePow().unknown(UNKNOWN_COLOR);
|
|
34
35
|
break;
|
|
35
36
|
}
|
|
36
37
|
if (_this._colorScale == null) {
|
package/package.json
CHANGED
package/plottable.css
CHANGED
|
@@ -112,9 +112,10 @@
|
|
|
112
112
|
fill: #32313F;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
.plottable .
|
|
117
|
-
.plottable .
|
|
115
|
+
/* No label-12 rule, so consumer CSS can override the default size */
|
|
116
|
+
.plottable .tick-label-container text,
|
|
117
|
+
.plottable .bar-label-text-area text,
|
|
118
|
+
.plottable .scatter-label-text-area text {
|
|
118
119
|
font-size: 12px;
|
|
119
120
|
}
|
|
120
121
|
|
package/plottable.js
CHANGED
|
@@ -18309,6 +18309,7 @@ var tslib_1 = __webpack_require__(0);
|
|
|
18309
18309
|
var d3 = __webpack_require__(2);
|
|
18310
18310
|
var Utils = __webpack_require__(1);
|
|
18311
18311
|
var scale_1 = __webpack_require__(18);
|
|
18312
|
+
var UNKNOWN_COLOR = "rgb(0, 0, 0)";
|
|
18312
18313
|
var InterpolatedColor = /** @class */ (function (_super) {
|
|
18313
18314
|
tslib_1.__extends(InterpolatedColor, _super);
|
|
18314
18315
|
/**
|
|
@@ -18321,16 +18322,16 @@ var InterpolatedColor = /** @class */ (function (_super) {
|
|
|
18321
18322
|
var _this = _super.call(this) || this;
|
|
18322
18323
|
switch (scaleType) {
|
|
18323
18324
|
case "linear":
|
|
18324
|
-
_this._colorScale = d3.scaleLinear();
|
|
18325
|
+
_this._colorScale = d3.scaleLinear().unknown(UNKNOWN_COLOR);
|
|
18325
18326
|
break;
|
|
18326
18327
|
case "log":
|
|
18327
|
-
_this._colorScale = d3.scaleLog();
|
|
18328
|
+
_this._colorScale = d3.scaleLog().unknown(UNKNOWN_COLOR);
|
|
18328
18329
|
break;
|
|
18329
18330
|
case "sqrt":
|
|
18330
|
-
_this._colorScale = d3.scaleSqrt();
|
|
18331
|
+
_this._colorScale = d3.scaleSqrt().unknown(UNKNOWN_COLOR);
|
|
18331
18332
|
break;
|
|
18332
18333
|
case "pow":
|
|
18333
|
-
_this._colorScale = d3.scalePow();
|
|
18334
|
+
_this._colorScale = d3.scalePow().unknown(UNKNOWN_COLOR);
|
|
18334
18335
|
break;
|
|
18335
18336
|
}
|
|
18336
18337
|
if (_this._colorScale == null) {
|