plottable 3.9.0-dev-56-geb1f7fd → 3.9.0-dev-60-g2ae4d07

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.
Files changed (182) hide show
  1. package/build/src/animators/easingAnimator.d.ts +2 -2
  2. package/build/src/animators/easingAnimator.js +3 -2
  3. package/build/src/animators/index.js +2 -2
  4. package/build/src/animators/nullAnimator.js +2 -1
  5. package/build/src/axes/axis.d.ts +23 -4
  6. package/build/src/axes/axis.js +35 -6
  7. package/build/src/axes/categoryAxis.d.ts +12 -5
  8. package/build/src/axes/categoryAxis.js +22 -11
  9. package/build/src/axes/index.js +3 -3
  10. package/build/src/axes/numericAxis.d.ts +9 -5
  11. package/build/src/axes/numericAxis.js +2 -1
  12. package/build/src/axes/timeAxis.d.ts +21 -14
  13. package/build/src/axes/timeAxis.js +30 -7
  14. package/build/src/components/component.d.ts +2 -2
  15. package/build/src/components/component.js +7 -6
  16. package/build/src/components/componentContainer.js +3 -2
  17. package/build/src/components/dragBoxLayer.d.ts +4 -4
  18. package/build/src/components/dragBoxLayer.js +3 -2
  19. package/build/src/components/dragLineLayer.js +2 -1
  20. package/build/src/components/gridlines.d.ts +2 -2
  21. package/build/src/components/gridlines.js +2 -1
  22. package/build/src/components/group.js +2 -1
  23. package/build/src/components/guideLineLayer.d.ts +1 -1
  24. package/build/src/components/guideLineLayer.js +2 -1
  25. package/build/src/components/index.js +14 -14
  26. package/build/src/components/interpolatedColorLegend.d.ts +7 -3
  27. package/build/src/components/interpolatedColorLegend.js +4 -3
  28. package/build/src/components/label.d.ts +4 -0
  29. package/build/src/components/label.js +7 -3
  30. package/build/src/components/legend.d.ts +5 -1
  31. package/build/src/components/legend.js +2 -1
  32. package/build/src/components/plotGroup.js +2 -1
  33. package/build/src/components/selectionBoxLayer.d.ts +4 -4
  34. package/build/src/components/selectionBoxLayer.js +2 -1
  35. package/build/src/components/table.d.ts +10 -6
  36. package/build/src/components/table.js +4 -3
  37. package/build/src/components/wrappedLabel.js +2 -1
  38. package/build/src/components/xDragBoxLayer.js +2 -1
  39. package/build/src/components/yDragBoxLayer.js +2 -1
  40. package/build/src/core/config.js +1 -0
  41. package/build/src/core/dataset.d.ts +5 -1
  42. package/build/src/core/dataset.js +1 -0
  43. package/build/src/core/formatters.d.ts +4 -0
  44. package/build/src/core/formatters.js +1 -0
  45. package/build/src/core/renderController.d.ts +1 -1
  46. package/build/src/core/renderController.js +2 -1
  47. package/build/src/core/renderPolicy.d.ts +4 -0
  48. package/build/src/core/renderPolicy.js +1 -0
  49. package/build/src/core/symbolFactories.d.ts +4 -0
  50. package/build/src/core/symbolFactories.js +1 -0
  51. package/build/src/core/version.d.ts +4 -0
  52. package/build/src/core/version.js +2 -1
  53. package/build/src/core/version.js.bak +1 -0
  54. package/build/src/dispatchers/dispatcher.d.ts +7 -3
  55. package/build/src/dispatchers/dispatcher.js +2 -1
  56. package/build/src/dispatchers/index.js +3 -3
  57. package/build/src/dispatchers/keyDispatcher.d.ts +2 -2
  58. package/build/src/dispatchers/keyDispatcher.js +2 -1
  59. package/build/src/dispatchers/mouseDispatcher.d.ts +1 -1
  60. package/build/src/dispatchers/mouseDispatcher.js +2 -1
  61. package/build/src/dispatchers/touchDispatcher.d.ts +1 -1
  62. package/build/src/dispatchers/touchDispatcher.js +2 -1
  63. package/build/src/drawers/arcDrawer.js +2 -1
  64. package/build/src/drawers/arcOutlineDrawer.js +2 -1
  65. package/build/src/drawers/areaDrawer.js +6 -5
  66. package/build/src/drawers/canvasBuffer.js +1 -0
  67. package/build/src/drawers/canvasDrawer.js +1 -0
  68. package/build/src/drawers/drawer.js +1 -0
  69. package/build/src/drawers/index.js +11 -10
  70. package/build/src/drawers/lineDrawer.js +4 -3
  71. package/build/src/drawers/rectangleDrawer.js +7 -5
  72. package/build/src/drawers/segmentDrawer.js +2 -1
  73. package/build/src/drawers/svgDrawer.d.ts +2 -2
  74. package/build/src/drawers/svgDrawer.js +1 -0
  75. package/build/src/drawers/symbolDrawer.js +6 -6
  76. package/build/src/index.d.ts +1 -1
  77. package/build/src/index.js +17 -14
  78. package/build/src/interactions/clickInteraction.d.ts +4 -4
  79. package/build/src/interactions/clickInteraction.js +2 -1
  80. package/build/src/interactions/dragInteraction.d.ts +4 -4
  81. package/build/src/interactions/dragInteraction.js +2 -1
  82. package/build/src/interactions/index.js +7 -6
  83. package/build/src/interactions/interaction.d.ts +2 -2
  84. package/build/src/interactions/interaction.js +1 -0
  85. package/build/src/interactions/keyInteraction.d.ts +2 -2
  86. package/build/src/interactions/keyInteraction.js +2 -1
  87. package/build/src/interactions/panZoomConstraints.js +1 -0
  88. package/build/src/interactions/panZoomInteraction.d.ts +13 -9
  89. package/build/src/interactions/panZoomInteraction.js +4 -3
  90. package/build/src/interactions/pointerInteraction.d.ts +3 -3
  91. package/build/src/interactions/pointerInteraction.js +2 -1
  92. package/build/src/memoize/index.js +5 -4
  93. package/build/src/memoize/memThunk.js +2 -1
  94. package/build/src/memoize/memoize.d.ts +5 -0
  95. package/build/src/memoize/memoize.js +2 -1
  96. package/build/src/memoize/memoizeProjectors.js +3 -2
  97. package/build/src/memoize/signature.d.ts +14 -0
  98. package/build/src/memoize/signature.js +4 -3
  99. package/build/src/plots/areaPlot.d.ts +9 -5
  100. package/build/src/plots/areaPlot.js +4 -3
  101. package/build/src/plots/barPlot.d.ts +26 -22
  102. package/build/src/plots/barPlot.js +35 -7
  103. package/build/src/plots/clusteredBarPlot.d.ts +3 -5
  104. package/build/src/plots/clusteredBarPlot.js +2 -1
  105. package/build/src/plots/commons.js +1 -0
  106. package/build/src/plots/deferredRenderer.d.ts +1 -1
  107. package/build/src/plots/deferredRenderer.js +1 -0
  108. package/build/src/plots/index.js +12 -12
  109. package/build/src/plots/linePlot.d.ts +6 -6
  110. package/build/src/plots/linePlot.js +5 -4
  111. package/build/src/plots/piePlot.d.ts +9 -5
  112. package/build/src/plots/piePlot.js +3 -2
  113. package/build/src/plots/plot.d.ts +5 -5
  114. package/build/src/plots/plot.js +7 -6
  115. package/build/src/plots/rectanglePlot.d.ts +10 -6
  116. package/build/src/plots/rectanglePlot.js +2 -1
  117. package/build/src/plots/scatterPlot.d.ts +19 -9
  118. package/build/src/plots/scatterPlot.js +35 -3
  119. package/build/src/plots/segmentPlot.d.ts +7 -3
  120. package/build/src/plots/segmentPlot.js +3 -2
  121. package/build/src/plots/stackedAreaPlot.d.ts +6 -2
  122. package/build/src/plots/stackedAreaPlot.js +4 -3
  123. package/build/src/plots/stackedBarPlot.d.ts +8 -4
  124. package/build/src/plots/stackedBarPlot.js +27 -6
  125. package/build/src/plots/waterfallPlot.d.ts +4 -6
  126. package/build/src/plots/waterfallPlot.js +2 -1
  127. package/build/src/plots/xyPlot.d.ts +5 -5
  128. package/build/src/plots/xyPlot.js +2 -1
  129. package/build/src/scales/categoryScale.d.ts +7 -3
  130. package/build/src/scales/categoryScale.js +3 -2
  131. package/build/src/scales/colorScale.d.ts +5 -1
  132. package/build/src/scales/colorScale.js +2 -1
  133. package/build/src/scales/index.d.ts +1 -1
  134. package/build/src/scales/index.js +8 -7
  135. package/build/src/scales/interpolatedColorScale.d.ts +7 -3
  136. package/build/src/scales/interpolatedColorScale.js +5 -4
  137. package/build/src/scales/linearScale.d.ts +4 -0
  138. package/build/src/scales/linearScale.js +2 -1
  139. package/build/src/scales/logScale.d.ts +4 -0
  140. package/build/src/scales/logScale.js +2 -1
  141. package/build/src/scales/modifiedLogScale.d.ts +8 -4
  142. package/build/src/scales/modifiedLogScale.js +2 -1
  143. package/build/src/scales/quantitativeScale.d.ts +5 -1
  144. package/build/src/scales/quantitativeScale.js +3 -2
  145. package/build/src/scales/scale.d.ts +4 -0
  146. package/build/src/scales/scale.js +1 -0
  147. package/build/src/scales/tickGenerators.js +1 -0
  148. package/build/src/scales/timeScale.js +2 -1
  149. package/build/src/utils/addD3SelectionMulti.d.ts +8 -0
  150. package/build/src/utils/arrayUtils.d.ts +4 -0
  151. package/build/src/utils/arrayUtils.js +1 -0
  152. package/build/src/utils/bucket.js +1 -0
  153. package/build/src/utils/callbackSet.js +2 -1
  154. package/build/src/utils/coerceD3.js +1 -0
  155. package/build/src/utils/colorUtils.d.ts +4 -0
  156. package/build/src/utils/colorUtils.js +1 -0
  157. package/build/src/utils/domUtils.d.ts +3 -10
  158. package/build/src/utils/domUtils.js +1 -0
  159. package/build/src/utils/entityStore.js +1 -0
  160. package/build/src/utils/index.d.ts +1 -1
  161. package/build/src/utils/index.js +9 -8
  162. package/build/src/utils/makeEnum.js +1 -0
  163. package/build/src/utils/map.d.ts +4 -0
  164. package/build/src/utils/map.js +1 -0
  165. package/build/src/utils/mathUtils.d.ts +4 -0
  166. package/build/src/utils/mathUtils.js +3 -2
  167. package/build/src/utils/objectUtils.js +1 -0
  168. package/build/src/utils/rTree.d.ts +1 -1
  169. package/build/src/utils/rTree.js +1 -0
  170. package/build/src/utils/rTreeSplitStrategies.d.ts +2 -2
  171. package/build/src/utils/rTreeSplitStrategies.js +1 -0
  172. package/build/src/utils/set.js +1 -0
  173. package/build/src/utils/stackingUtils.d.ts +5 -1
  174. package/build/src/utils/stackingUtils.js +6 -5
  175. package/build/src/utils/transformAwareTranslator.d.ts +4 -0
  176. package/build/src/utils/transformAwareTranslator.js +1 -0
  177. package/build/src/utils/windowUtils.d.ts +4 -0
  178. package/build/src/utils/windowUtils.js +1 -0
  179. package/package.json +6 -5
  180. package/plottable.css +75 -2
  181. package/plottable.js +38050 -26170
  182. package/plottable.js.map +1 -1
@@ -4,12 +4,13 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.Waterfall = void 0;
7
8
  var tslib_1 = require("tslib");
8
9
  var Utils = require("../utils");
9
10
  var barPlot_1 = require("./barPlot");
10
11
  var plot_1 = require("./plot");
11
12
  var Waterfall = /** @class */ (function (_super) {
12
- tslib_1.__extends(Waterfall, _super);
13
+ (0, tslib_1.__extends)(Waterfall, _super);
13
14
  function Waterfall() {
14
15
  var _this = _super.call(this) || this;
15
16
  _this._connectorsEnabled = false;
@@ -83,7 +83,7 @@ export declare class XYPlot<X, Y> extends Plot {
83
83
  */
84
84
  y(y: Y | IAccessor<Y>, yScale: Scale<Y, number>, postScale?: IRangeProjector<number>): this;
85
85
  protected _filterForProperty(property: string): IAccessor<boolean>;
86
- private _makeFilterByProperty(property);
86
+ private _makeFilterByProperty;
87
87
  private _applyDeferredRenderingTransform;
88
88
  protected _uninstallScaleForKey(scale: Scale<any, any>, key: string): void;
89
89
  protected _installScaleForKey(scale: Scale<any, any>, key: string): void;
@@ -104,8 +104,8 @@ export declare class XYPlot<X, Y> extends Plot {
104
104
  */
105
105
  autorangeMode(autorangeMode: string): this;
106
106
  computeLayout(origin?: Point, availableWidth?: number, availableHeight?: number): this;
107
- private _updateXExtentsAndAutodomain();
108
- private _updateYExtentsAndAutodomain();
107
+ private _updateXExtentsAndAutodomain;
108
+ private _updateYExtentsAndAutodomain;
109
109
  /**
110
110
  * Adjusts the domains of both X and Y scales to show all data.
111
111
  * This call does not override the autorange() behavior.
@@ -113,8 +113,8 @@ export declare class XYPlot<X, Y> extends Plot {
113
113
  * @returns {XYPlot} The calling XYPlot.
114
114
  */
115
115
  showAllData(): this;
116
- private _adjustYDomainOnChangeFromX();
117
- private _adjustXDomainOnChangeFromY();
116
+ private _adjustYDomainOnChangeFromX;
117
+ private _adjustXDomainOnChangeFromY;
118
118
  protected _projectorsReady(): boolean;
119
119
  protected _pixelPoint(datum: any, index: number, dataset: Dataset): Point;
120
120
  protected _getDataToDraw(): Utils.Map<Dataset, any[]>;
@@ -4,13 +4,14 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.XYPlot = void 0;
7
8
  var tslib_1 = require("tslib");
8
9
  var Scales = require("../scales");
9
10
  var Utils = require("../utils");
10
11
  var deferredRenderer_1 = require("./deferredRenderer");
11
12
  var plot_1 = require("./plot");
12
13
  var XYPlot = /** @class */ (function (_super) {
13
- tslib_1.__extends(XYPlot, _super);
14
+ (0, tslib_1.__extends)(XYPlot, _super);
14
15
  /**
15
16
  * An XYPlot is a Plot that displays data along two primary directions, X and Y.
16
17
  *
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Copyright 2014-present Palantir Technologies
3
+ * @license MIT
4
+ */
1
5
  import { ITransformableScale } from "./";
2
6
  import { Scale } from "./scale";
3
7
  export declare class Category extends Scale<string, number> implements ITransformableScale {
@@ -44,9 +48,9 @@ export declare class Category extends Scale<string, number> implements ITransfor
44
48
  invertRange(range?: [number, number]): string[];
45
49
  range(): [number, number];
46
50
  range(values: [number, number]): this;
47
- private static _convertToPlottableInnerPadding(d3InnerPadding);
48
- private static _convertToPlottableOuterPadding(d3OuterPadding, d3InnerPadding);
49
- private _setBands();
51
+ private static _convertToPlottableInnerPadding;
52
+ private static _convertToPlottableOuterPadding;
53
+ private _setBands;
50
54
  /**
51
55
  * Returns the width of the range band.
52
56
  *
@@ -4,6 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.Category = void 0;
7
8
  var tslib_1 = require("tslib");
8
9
  var d3 = require("d3");
9
10
  var panZoomConstraints_1 = require("../interactions/panZoomConstraints");
@@ -11,7 +12,7 @@ var Utils = require("../utils");
11
12
  var scale_1 = require("./scale");
12
13
  var TRANSFORMATION_SPACE = [0, 1];
13
14
  var Category = /** @class */ (function (_super) {
14
- tslib_1.__extends(Category, _super);
15
+ (0, tslib_1.__extends)(Category, _super);
15
16
  /**
16
17
  * A Category Scale maps strings to numbers.
17
18
  *
@@ -134,7 +135,7 @@ var Category = /** @class */ (function (_super) {
134
135
  Category.prototype.zoom = function (magnifyAmount, centerValue) {
135
136
  var _this = this;
136
137
  var magnifyTransform = function (rangeValue) {
137
- return _this._d3TransformationScale.invert(panZoomConstraints_1.zoomOut(rangeValue, magnifyAmount, centerValue));
138
+ return _this._d3TransformationScale.invert((0, panZoomConstraints_1.zoomOut)(rangeValue, magnifyAmount, centerValue));
138
139
  };
139
140
  this._d3TransformationScale.domain(this._d3TransformationScale.range().map(magnifyTransform));
140
141
  this._dispatchUpdate();
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Copyright 2014-present Palantir Technologies
3
+ * @license MIT
4
+ */
1
5
  import { Scale } from "./scale";
2
6
  export declare class Color extends Scale<string, string> {
3
7
  private static _LOOP_LIGHTEN_FACTOR;
@@ -18,7 +22,7 @@ export declare class Color extends Scale<string, string> {
18
22
  extentOfValues(values: string[]): string[];
19
23
  protected _getExtent(): string[];
20
24
  static invalidateColorCache(): void;
21
- private static _getPlottableColors();
25
+ private static _getPlottableColors;
22
26
  /**
23
27
  * Returns the color-string corresponding to a given string.
24
28
  *
@@ -4,6 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.Color = void 0;
7
8
  var tslib_1 = require("tslib");
8
9
  var d3 = require("d3");
9
10
  var Utils = require("../utils");
@@ -44,7 +45,7 @@ var ImplicitSeriesTracker = /** @class */ (function () {
44
45
  return ImplicitSeriesTracker;
45
46
  }());
46
47
  var Color = /** @class */ (function (_super) {
47
- tslib_1.__extends(Color, _super);
48
+ (0, tslib_1.__extends)(Color, _super);
48
49
  /**
49
50
  * A Color Scale maps string values to color hex values expressed as a string.
50
51
  *
@@ -3,7 +3,7 @@
3
3
  * @license MIT
4
4
  */
5
5
  import * as TickGenerators from "./tickGenerators";
6
- export { TickGenerators };
6
+ export { TickGenerators, };
7
7
  export * from "./categoryScale";
8
8
  export * from "./colorScale";
9
9
  export * from "./interpolatedColorScale";
@@ -4,16 +4,17 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.isTransformable = exports.TickGenerators = void 0;
7
8
  var tslib_1 = require("tslib");
8
9
  var TickGenerators = require("./tickGenerators");
9
10
  exports.TickGenerators = TickGenerators;
10
- tslib_1.__exportStar(require("./categoryScale"), exports);
11
- tslib_1.__exportStar(require("./colorScale"), exports);
12
- tslib_1.__exportStar(require("./interpolatedColorScale"), exports);
13
- tslib_1.__exportStar(require("./linearScale"), exports);
14
- tslib_1.__exportStar(require("./logScale"), exports);
15
- tslib_1.__exportStar(require("./modifiedLogScale"), exports);
16
- tslib_1.__exportStar(require("./timeScale"), exports);
11
+ (0, tslib_1.__exportStar)(require("./categoryScale"), exports);
12
+ (0, tslib_1.__exportStar)(require("./colorScale"), exports);
13
+ (0, tslib_1.__exportStar)(require("./interpolatedColorScale"), exports);
14
+ (0, tslib_1.__exportStar)(require("./linearScale"), exports);
15
+ (0, tslib_1.__exportStar)(require("./logScale"), exports);
16
+ (0, tslib_1.__exportStar)(require("./modifiedLogScale"), exports);
17
+ (0, tslib_1.__exportStar)(require("./timeScale"), exports);
17
18
  // ---------------------------------------------------------
18
19
  var categoryScale_1 = require("./categoryScale");
19
20
  var quantitativeScale_1 = require("./quantitativeScale");
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Copyright 2014-present Palantir Technologies
3
+ * @license MIT
4
+ */
1
5
  import { Scale } from "./scale";
2
6
  export declare class InterpolatedColor extends Scale<number, string> {
3
7
  static REDS: string[];
@@ -16,12 +20,12 @@ export declare class InterpolatedColor extends Scale<number, string> {
16
20
  /**
17
21
  * Generates the converted QuantitativeScale.
18
22
  */
19
- private _d3InterpolatedScale();
23
+ private _d3InterpolatedScale;
20
24
  /**
21
25
  * Generates the d3 interpolator for colors.
22
26
  */
23
- private _interpolateColors();
24
- private _resetScale();
27
+ private _interpolateColors;
28
+ private _resetScale;
25
29
  autoDomain(): this;
26
30
  scale(value: number): string;
27
31
  protected _getDomain(): number[];
@@ -4,12 +4,13 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.InterpolatedColor = void 0;
7
8
  var tslib_1 = require("tslib");
8
9
  var d3 = require("d3");
9
10
  var Utils = require("../utils");
10
11
  var scale_1 = require("./scale");
11
12
  var InterpolatedColor = /** @class */ (function (_super) {
12
- tslib_1.__extends(InterpolatedColor, _super);
13
+ (0, tslib_1.__extends)(InterpolatedColor, _super);
13
14
  /**
14
15
  * An InterpolatedColor Scale maps numbers to color hex values, expressed as strings.
15
16
  *
@@ -119,7 +120,7 @@ var InterpolatedColor = /** @class */ (function (_super) {
119
120
  "#FD8D3C",
120
121
  "#FC4E2A",
121
122
  "#E31A1C",
122
- "#B10026",
123
+ "#B10026", // red
123
124
  ];
124
125
  InterpolatedColor.BLUES = [
125
126
  "#FFFFFF",
@@ -130,7 +131,7 @@ var InterpolatedColor = /** @class */ (function (_super) {
130
131
  "#55A7E0",
131
132
  "#417FD0",
132
133
  "#2545D3",
133
- "#0B02E1",
134
+ "#0B02E1", // blue
134
135
  ];
135
136
  InterpolatedColor.POSNEG = [
136
137
  "#0B02E1",
@@ -149,7 +150,7 @@ var InterpolatedColor = /** @class */ (function (_super) {
149
150
  "#FD8D3C",
150
151
  "#FC4E2A",
151
152
  "#E31A1C",
152
- "#B10026",
153
+ "#B10026", // red
153
154
  ];
154
155
  return InterpolatedColor;
155
156
  }(scale_1.Scale));
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Copyright 2014-present Palantir Technologies
3
+ * @license MIT
4
+ */
1
5
  import { QuantitativeScale } from "./quantitativeScale";
2
6
  export declare class Linear extends QuantitativeScale<number> {
3
7
  private _d3Scale;
@@ -4,11 +4,12 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.Linear = void 0;
7
8
  var tslib_1 = require("tslib");
8
9
  var d3 = require("d3");
9
10
  var quantitativeScale_1 = require("./quantitativeScale");
10
11
  var Linear = /** @class */ (function (_super) {
11
- tslib_1.__extends(Linear, _super);
12
+ (0, tslib_1.__extends)(Linear, _super);
12
13
  /**
13
14
  * @constructor
14
15
  */
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Copyright 2014-present Palantir Technologies
3
+ * @license MIT
4
+ */
1
5
  import { QuantitativeScale } from "./quantitativeScale";
2
6
  export declare class Log extends QuantitativeScale<number> {
3
7
  private _d3Scale;
@@ -4,11 +4,12 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.Log = void 0;
7
8
  var tslib_1 = require("tslib");
8
9
  var d3 = require("d3");
9
10
  var quantitativeScale_1 = require("./quantitativeScale");
10
11
  var Log = /** @class */ (function (_super) {
11
- tslib_1.__extends(Log, _super);
12
+ (0, tslib_1.__extends)(Log, _super);
12
13
  /**
13
14
  * @constructor
14
15
  */
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Copyright 2014-present Palantir Technologies
3
+ * @license MIT
4
+ */
1
5
  import { QuantitativeScale } from "./quantitativeScale";
2
6
  export declare class ModifiedLog extends QuantitativeScale<number> {
3
7
  private _base;
@@ -41,8 +45,8 @@ export declare class ModifiedLog extends QuantitativeScale<number> {
41
45
  * (0 to 1) scaling factor is added such that at 0 the value is
42
46
  * adjusted to 1, resulting in a returned result of 0.
43
47
  */
44
- private _adjustedLog(x);
45
- private _invertedAdjustedLog(x);
48
+ private _adjustedLog;
49
+ private _invertedAdjustedLog;
46
50
  scale(x: number): number;
47
51
  invert(x: number): number;
48
52
  scaleTransformation(value: number): number;
@@ -68,7 +72,7 @@ export declare class ModifiedLog extends QuantitativeScale<number> {
68
72
  * This function will generate clusters as large as it can while not
69
73
  * drastically exceeding its number of ticks.
70
74
  */
71
- private _logTicks(lower, upper);
75
+ private _logTicks;
72
76
  /**
73
77
  * How many ticks does the range [lower, upper] deserve?
74
78
  *
@@ -76,7 +80,7 @@ export declare class ModifiedLog extends QuantitativeScale<number> {
76
80
  * I would get 1/2 of the ticks. The range 10, 100 takes up 1/2 of the
77
81
  * distance when plotted.
78
82
  */
79
- private _howManyTicks(lower, upper);
83
+ private _howManyTicks;
80
84
  protected _niceDomain(domain: number[], count?: number): number[];
81
85
  protected _defaultExtent(): number[];
82
86
  protected _expandSingleValueDomain(singleValueDomain: number[]): number[];
@@ -4,13 +4,14 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.ModifiedLog = void 0;
7
8
  var tslib_1 = require("tslib");
8
9
  var d3 = require("d3");
9
10
  var Utils = require("../utils");
10
11
  var Scales = require("./");
11
12
  var quantitativeScale_1 = require("./quantitativeScale");
12
13
  var ModifiedLog = /** @class */ (function (_super) {
13
- tslib_1.__extends(ModifiedLog, _super);
14
+ (0, tslib_1.__extends)(ModifiedLog, _super);
14
15
  /**
15
16
  * A ModifiedLog Scale acts as a regular log scale for large numbers.
16
17
  * As it approaches 0, it gradually becomes linear.
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Copyright 2014-present Palantir Technologies
3
+ * @license MIT
4
+ */
1
5
  import * as Scales from "./";
2
6
  import { ITransformableScale } from "./";
3
7
  import { Scale } from "./scale";
@@ -49,7 +53,7 @@ export declare class QuantitativeScale<D> extends Scale<D, number> implements IT
49
53
  * @returns {QuantitativeScale} The calling QuantitativeScale.
50
54
  */
51
55
  padProportion(padProportion: number): this;
52
- private _padDomain(domain);
56
+ private _padDomain;
53
57
  /**
54
58
  * Gets whether or not the scale snaps its domain to nice values.
55
59
  */
@@ -4,13 +4,14 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.QuantitativeScale = void 0;
7
8
  var tslib_1 = require("tslib");
8
9
  var d3 = require("d3");
9
10
  var panZoomConstraints_1 = require("../interactions/panZoomConstraints");
10
11
  var Utils = require("../utils");
11
12
  var scale_1 = require("./scale");
12
13
  var QuantitativeScale = /** @class */ (function (_super) {
13
- tslib_1.__extends(QuantitativeScale, _super);
14
+ (0, tslib_1.__extends)(QuantitativeScale, _super);
14
15
  /**
15
16
  * A QuantitativeScale is a Scale that maps number-like values to numbers.
16
17
  * It is invertible and continuous.
@@ -202,7 +203,7 @@ var QuantitativeScale = /** @class */ (function (_super) {
202
203
  };
203
204
  QuantitativeScale.prototype.zoom = function (magnifyAmount, centerValue) {
204
205
  var _this = this;
205
- var magnifyTransform = function (rangeValue) { return _this.invert(panZoomConstraints_1.zoomOut(rangeValue, magnifyAmount, centerValue)); };
206
+ var magnifyTransform = function (rangeValue) { return _this.invert((0, panZoomConstraints_1.zoomOut)(rangeValue, magnifyAmount, centerValue)); };
206
207
  this.domain(this.range().map(magnifyTransform));
207
208
  };
208
209
  QuantitativeScale.prototype.pan = function (translateAmount) {
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Copyright 2014-present Palantir Technologies
3
+ * @license MIT
4
+ */
1
5
  import * as Scales from "./";
2
6
  export declare type TransformableScale<D, R> = Scale<D, R> & Scales.ITransformableScale;
3
7
  export interface IScaleCallback<S extends Scale<any, any>> {
@@ -4,6 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.Scale = void 0;
7
8
  var Utils = require("../utils");
8
9
  var Scale = /** @class */ (function () {
9
10
  /**
@@ -4,6 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.integerTickGenerator = exports.intervalTickGenerator = void 0;
7
8
  var Utils = require("../utils");
8
9
  /**
9
10
  * Creates a TickGenerator using the specified interval.
@@ -4,12 +4,13 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.Time = void 0;
7
8
  var tslib_1 = require("tslib");
8
9
  var d3 = require("d3");
9
10
  var timeAxis_1 = require("../axes/timeAxis");
10
11
  var quantitativeScale_1 = require("./quantitativeScale");
11
12
  var Time = /** @class */ (function (_super) {
12
- tslib_1.__extends(Time, _super);
13
+ (0, tslib_1.__extends)(Time, _super);
13
14
  /**
14
15
  * A Time Scale maps Date objects to numbers.
15
16
  *
@@ -1 +1,9 @@
1
+ /**
2
+ * Copyright 2014-present Palantir Technologies
3
+ * @license MIT
4
+ *
5
+ * @fileoverview manually add d3-selection-multi to d3 default bundle. Most of this code is
6
+ * copied from d3-selection-multi@1.0.0.
7
+ * See https://github.com/d3/d3-selection-multi/issues/11 for why we have to do this
8
+ */
1
9
  export {};
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Copyright 2014-present Palantir Technologies
3
+ * @license MIT
4
+ */
1
5
  /**
2
6
  * Takes two arrays of numbers and adds them together
3
7
  *
@@ -4,6 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.createFilledArray = exports.flatten = exports.uniq = exports.add = void 0;
7
8
  var d3 = require("d3");
8
9
  var nativeArray = window.Array;
9
10
  /**
@@ -4,6 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.Bucket = void 0;
7
8
  /**
8
9
  * This class keeps track of bucketing state while collapsing dense line
9
10
  * geometry in a line and area plots.
@@ -4,6 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.CallbackSet = void 0;
7
8
  var tslib_1 = require("tslib");
8
9
  var set_1 = require("./set");
9
10
  /**
@@ -12,7 +13,7 @@ var set_1 = require("./set");
12
13
  * All callbacks should have the same signature.
13
14
  */
14
15
  var CallbackSet = /** @class */ (function (_super) {
15
- tslib_1.__extends(CallbackSet, _super);
16
+ (0, tslib_1.__extends)(CallbackSet, _super);
16
17
  function CallbackSet() {
17
18
  return _super !== null && _super.apply(this, arguments) || this;
18
19
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.coerceExternalD3 = void 0;
3
4
  var d3 = require("d3");
4
5
  /**
5
6
  * Coerce possibly external d3 instance into our own instance of d3 so we can use d3-selection-multi.
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Copyright 2014-present Palantir Technologies
3
+ * @license MIT
4
+ */
1
5
  import { SimpleSelection } from "../core/interfaces";
2
6
  /**
3
7
  * Return contrast ratio between two colors
@@ -4,6 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.colorTest = exports.lightenColor = exports.contrast = void 0;
7
8
  var d3 = require("d3");
8
9
  var nativeMath = window.Math;
9
10
  /**
@@ -14,7 +14,7 @@ export declare function contains(parent: Element, child: Element): boolean;
14
14
  * @param {d3.Selection} element
15
15
  * @returns {SVGRed} The bounding box.
16
16
  */
17
- export declare function elementBBox(element: SimpleSelection<any>): SVGRect;
17
+ export declare function elementBBox(element: SimpleSelection<any>): Pick<SVGRect, "x" | "y" | "width" | "height">;
18
18
  export declare function entityBounds(element: Element): IEntityBounds;
19
19
  /**
20
20
  * Screen refresh rate which is assumed to be 60fps
@@ -66,14 +66,7 @@ export declare function clientRectsOverlap(clientRectA: ClientRect, clientRectB:
66
66
  * @param rect
67
67
  * @param amount
68
68
  */
69
- export declare function expandRect(rect: ClientRect, amount: number): {
70
- left: number;
71
- top: number;
72
- right: number;
73
- bottom: number;
74
- width: number;
75
- height: number;
76
- };
69
+ export declare function expandRect(rect: ClientRect, amount: number): ClientRect;
77
70
  /**
78
71
  * Returns true if and only if innerClientRect is inside outerClientRect.
79
72
  *
@@ -94,7 +87,7 @@ export declare function clientRectInside(innerClientRect: ClientRect, outerClien
94
87
  * @returns {boolean} True if the supplied coordinates or Ranges intersect or are
95
88
  * contained by bbox, false otherwise.
96
89
  */
97
- export declare function intersectsBBox(xValOrRange: number | Range, yValOrRange: number | Range, bbox: SVGRect, tolerance?: number): boolean;
90
+ export declare function intersectsBBox(xValOrRange: number | Range, yValOrRange: number | Range, bbox: Pick<SVGRect, "x" | "y" | "width" | "height">, tolerance?: number): boolean;
98
91
  /**
99
92
  * Returns an array containing all ancestor `HTMLElement`s, starting at the
100
93
  * provided element and usually ending with the `<body>` element.
@@ -4,6 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.getElementTransform = exports.getHtmlElementAncestors = exports.intersectsBBox = exports.clientRectInside = exports.expandRect = exports.clientRectsOverlap = exports.getScaleValues = exports.getRotate = exports.getTranslateValues = exports.elementHeight = exports.elementWidth = exports.requestAnimationFramePolyfill = exports.SCREEN_REFRESH_RATE_MILLISECONDS = exports.entityBounds = exports.elementBBox = exports.contains = void 0;
7
8
  var d3 = require("d3");
8
9
  var nativeMath = window.Math;
9
10
  /**
@@ -4,6 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.EntityStore = void 0;
7
8
  var rTree_1 = require("./rTree");
8
9
  /**
9
10
  * Implementation of {IEntityStore} that uses an array for easy iteration as
@@ -9,7 +9,7 @@ import * as Math from "./mathUtils";
9
9
  import * as RTree from "./rTree";
10
10
  import * as Stacking from "./stackingUtils";
11
11
  import * as Window from "./windowUtils";
12
- export { Array, Color, DOM, Math, RTree, Stacking, Window };
12
+ export { Array, Color, DOM, Math, RTree, Stacking, Window, };
13
13
  export * from "./bucket";
14
14
  export * from "./callbackSet";
15
15
  export * from "./coerceD3";
@@ -4,6 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.Window = exports.Stacking = exports.RTree = exports.Math = exports.DOM = exports.Color = exports.Array = void 0;
7
8
  var tslib_1 = require("tslib");
8
9
  var Array = require("./arrayUtils");
9
10
  exports.Array = Array;
@@ -19,11 +20,11 @@ var Stacking = require("./stackingUtils");
19
20
  exports.Stacking = Stacking;
20
21
  var Window = require("./windowUtils");
21
22
  exports.Window = Window;
22
- tslib_1.__exportStar(require("./bucket"), exports);
23
- tslib_1.__exportStar(require("./callbackSet"), exports);
24
- tslib_1.__exportStar(require("./coerceD3"), exports);
25
- tslib_1.__exportStar(require("./entityStore"), exports);
26
- tslib_1.__exportStar(require("./map"), exports);
27
- tslib_1.__exportStar(require("./objectUtils"), exports);
28
- tslib_1.__exportStar(require("./set"), exports);
29
- tslib_1.__exportStar(require("./transformAwareTranslator"), exports);
23
+ (0, tslib_1.__exportStar)(require("./bucket"), exports);
24
+ (0, tslib_1.__exportStar)(require("./callbackSet"), exports);
25
+ (0, tslib_1.__exportStar)(require("./coerceD3"), exports);
26
+ (0, tslib_1.__exportStar)(require("./entityStore"), exports);
27
+ (0, tslib_1.__exportStar)(require("./map"), exports);
28
+ (0, tslib_1.__exportStar)(require("./objectUtils"), exports);
29
+ (0, tslib_1.__exportStar)(require("./set"), exports);
30
+ (0, tslib_1.__exportStar)(require("./transformAwareTranslator"), exports);
@@ -4,6 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.makeEnum = void 0;
7
8
  function makeEnum(values) {
8
9
  return values.reduce(function (obj, v) {
9
10
  obj[v] = v;
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Copyright 2014-present Palantir Technologies
3
+ * @license MIT
4
+ */
1
5
  /**
2
6
  * Shim for ES6 map.
3
7
  * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
@@ -4,6 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.Map = void 0;
7
8
  var Math = require("./mathUtils");
8
9
  /**
9
10
  * Shim for ES6 map.
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Copyright 2014-present Palantir Technologies
3
+ * @license MIT
4
+ */
1
5
  import { Bounds, Point } from "../core/interfaces";
2
6
  /**
3
7
  * Represents the affine transformation of the computed css transform property.