plottable 3.9.0-dev-60-g2ae4d07 → 3.9.0-dev-61-g6de5d3c

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.
@@ -9,6 +9,7 @@ var tslib_1 = require("tslib");
9
9
  var d3 = require("d3");
10
10
  var Typesettable = require("typesettable");
11
11
  var component_1 = require("../components/component");
12
+ var label_1 = require("../components/label");
12
13
  var Utils = require("../utils");
13
14
  var axis_1 = require("./axis");
14
15
  var Category = /** @class */ (function (_super) {
@@ -134,7 +135,7 @@ var Category = /** @class */ (function (_super) {
134
135
  if (domain === void 0) { domain = scale.invertRange(); }
135
136
  // account for how shearing tightens the space between vertically oriented ticks
136
137
  var shearFactor = this._tickLabelAngle === 0 ? 1 : 1 / Math.cos(this._tickLabelShearAngle / 180 * Math.PI);
137
- var shearedMinimumWidth = Category._MINIMUM_WIDTH_PER_LABEL_PX * shearFactor;
138
+ var shearedMinimumWidth = Category._MINIMUM_WIDTH_PER_LABEL_PX * shearFactor + 2 * (this.tickLabelFontSize() - label_1.Label._MIN_FONT_SIZE_PX);
138
139
  var downsampleRatio = Math.ceil(shearedMinimumWidth / scale.stepWidth());
139
140
  return {
140
141
  domain: domain.filter(function (d, i) { return i % downsampleRatio === 0; }),
@@ -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-60-g2ae4d07";
13
+ exports.version = "3.9.0-dev-61-g6de5d3c";
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-60-g2ae4d07",
4
+ "version": "3.9.0-dev-61-g6de5d3c",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",