plottable 3.9.0-dev-75-g48a03107 → 3.9.0-dev-77-g85e05cc1
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-77-g85e05cc1";
|
package/build/src/plots/plot.js
CHANGED
|
@@ -120,7 +120,7 @@ var Plot = /** @class */ (function (_super) {
|
|
|
120
120
|
};
|
|
121
121
|
Plot.prototype.setBounds = function (width, height, originX, originY) {
|
|
122
122
|
_super.prototype.setBounds.call(this, width, height, originX, originY);
|
|
123
|
-
this.
|
|
123
|
+
this._resetEntityStore();
|
|
124
124
|
if (this._canvas != null) {
|
|
125
125
|
if (this._bufferCanvas && !this._bufferCanvasValid) {
|
|
126
126
|
// copy current canvas to buffer 1:1
|
|
@@ -25,22 +25,22 @@ var scale_1 = require("./scale");
|
|
|
25
25
|
var ImplicitSeriesTracker = /** @class */ (function () {
|
|
26
26
|
function ImplicitSeriesTracker() {
|
|
27
27
|
this.count = 0;
|
|
28
|
-
this.tracker =
|
|
28
|
+
this.tracker = new Map();
|
|
29
29
|
}
|
|
30
30
|
ImplicitSeriesTracker.prototype.getIndex = function (value) {
|
|
31
|
-
if (this.tracker
|
|
32
|
-
return this.tracker
|
|
31
|
+
if (this.tracker.has(value)) {
|
|
32
|
+
return this.tracker.get(value);
|
|
33
33
|
}
|
|
34
34
|
else {
|
|
35
35
|
var idx = this.count;
|
|
36
|
-
this.tracker
|
|
36
|
+
this.tracker.set(value, idx);
|
|
37
37
|
this.count += 1;
|
|
38
38
|
return idx;
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
ImplicitSeriesTracker.prototype.clear = function () {
|
|
42
42
|
this.count = 0;
|
|
43
|
-
this.tracker
|
|
43
|
+
this.tracker.clear();
|
|
44
44
|
};
|
|
45
45
|
return ImplicitSeriesTracker;
|
|
46
46
|
}());
|
package/package.json
CHANGED
package/plottable.js
CHANGED
|
@@ -522,7 +522,7 @@ var Plot = /** @class */ (function (_super) {
|
|
|
522
522
|
};
|
|
523
523
|
Plot.prototype.setBounds = function (width, height, originX, originY) {
|
|
524
524
|
_super.prototype.setBounds.call(this, width, height, originX, originY);
|
|
525
|
-
this.
|
|
525
|
+
this._resetEntityStore();
|
|
526
526
|
if (this._canvas != null) {
|
|
527
527
|
if (this._bufferCanvas && !this._bufferCanvasValid) {
|
|
528
528
|
// copy current canvas to buffer 1:1
|
|
@@ -3030,6 +3030,7 @@ var XYPlot = /** @class */ (function (_super) {
|
|
|
3030
3030
|
yScale.range([this.height(), 0]);
|
|
3031
3031
|
}
|
|
3032
3032
|
}
|
|
3033
|
+
this._updateExtents();
|
|
3033
3034
|
return this;
|
|
3034
3035
|
};
|
|
3035
3036
|
XYPlot.prototype._updateXExtentsAndAutodomain = function () {
|
|
@@ -16079,6 +16080,7 @@ var Pie = /** @class */ (function (_super) {
|
|
|
16079
16080
|
if (this.outerRadius().scale != null) {
|
|
16080
16081
|
this.outerRadius().scale.range([0, radiusLimit]);
|
|
16081
16082
|
}
|
|
16083
|
+
this._updateExtents();
|
|
16082
16084
|
return this;
|
|
16083
16085
|
};
|
|
16084
16086
|
Pie.prototype.addDataset = function (dataset) {
|
|
@@ -18064,22 +18066,22 @@ var scale_1 = __webpack_require__(18);
|
|
|
18064
18066
|
var ImplicitSeriesTracker = /** @class */ (function () {
|
|
18065
18067
|
function ImplicitSeriesTracker() {
|
|
18066
18068
|
this.count = 0;
|
|
18067
|
-
this.tracker =
|
|
18069
|
+
this.tracker = new Map();
|
|
18068
18070
|
}
|
|
18069
18071
|
ImplicitSeriesTracker.prototype.getIndex = function (value) {
|
|
18070
|
-
if (this.tracker
|
|
18071
|
-
return this.tracker
|
|
18072
|
+
if (this.tracker.has(value)) {
|
|
18073
|
+
return this.tracker.get(value);
|
|
18072
18074
|
}
|
|
18073
18075
|
else {
|
|
18074
18076
|
var idx = this.count;
|
|
18075
|
-
this.tracker
|
|
18077
|
+
this.tracker.set(value, idx);
|
|
18076
18078
|
this.count += 1;
|
|
18077
18079
|
return idx;
|
|
18078
18080
|
}
|
|
18079
18081
|
};
|
|
18080
18082
|
ImplicitSeriesTracker.prototype.clear = function () {
|
|
18081
18083
|
this.count = 0;
|
|
18082
|
-
this.tracker
|
|
18084
|
+
this.tracker.clear();
|
|
18083
18085
|
};
|
|
18084
18086
|
return ImplicitSeriesTracker;
|
|
18085
18087
|
}());
|