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-75-g48a03107";
13
+ exports.version = "3.9.0-dev-77-g85e05cc1";
@@ -55,6 +55,7 @@ var Pie = /** @class */ (function (_super) {
55
55
  if (this.outerRadius().scale != null) {
56
56
  this.outerRadius().scale.range([0, radiusLimit]);
57
57
  }
58
+ this._updateExtents();
58
59
  return this;
59
60
  };
60
61
  Pie.prototype.addDataset = function (dataset) {
@@ -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._updateExtents();
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
@@ -196,6 +196,7 @@ var XYPlot = /** @class */ (function (_super) {
196
196
  yScale.range([this.height(), 0]);
197
197
  }
198
198
  }
199
+ this._updateExtents();
199
200
  return this;
200
201
  };
201
202
  XYPlot.prototype._updateXExtentsAndAutodomain = function () {
@@ -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[value] != null) {
32
- return this.tracker[value];
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[value] = idx;
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "plottable",
3
3
  "description": "A modular charting library built on D3",
4
- "version": "3.9.0-dev-75-g48a03107",
4
+ "version": "3.9.0-dev-77-g85e05cc1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
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._updateExtents();
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[value] != null) {
18071
- return this.tracker[value];
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[value] = idx;
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
  }());