plottable 3.9.0-dev-59-g2db30e4 → 3.9.0-dev-64-g2f0b189
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.
- package/build/src/animators/easingAnimator.d.ts +2 -2
- package/build/src/animators/easingAnimator.js +3 -2
- package/build/src/animators/index.js +2 -2
- package/build/src/animators/nullAnimator.js +2 -1
- package/build/src/axes/axis.d.ts +9 -5
- package/build/src/axes/axis.js +4 -3
- package/build/src/axes/categoryAxis.d.ts +9 -5
- package/build/src/axes/categoryAxis.js +13 -11
- package/build/src/axes/index.js +3 -3
- package/build/src/axes/numericAxis.d.ts +9 -5
- package/build/src/axes/numericAxis.js +2 -1
- package/build/src/axes/timeAxis.d.ts +18 -14
- package/build/src/axes/timeAxis.js +6 -5
- package/build/src/components/component.d.ts +2 -2
- package/build/src/components/component.js +7 -6
- package/build/src/components/componentContainer.js +3 -2
- package/build/src/components/dragBoxLayer.d.ts +4 -4
- package/build/src/components/dragBoxLayer.js +3 -2
- package/build/src/components/dragLineLayer.js +2 -1
- package/build/src/components/gridlines.d.ts +2 -2
- package/build/src/components/gridlines.js +2 -1
- package/build/src/components/group.js +2 -1
- package/build/src/components/guideLineLayer.d.ts +1 -1
- package/build/src/components/guideLineLayer.js +2 -1
- package/build/src/components/index.js +14 -14
- package/build/src/components/interpolatedColorLegend.d.ts +7 -3
- package/build/src/components/interpolatedColorLegend.js +4 -3
- package/build/src/components/label.js +4 -3
- package/build/src/components/legend.d.ts +5 -1
- package/build/src/components/legend.js +2 -1
- package/build/src/components/plotGroup.js +2 -1
- package/build/src/components/selectionBoxLayer.d.ts +4 -4
- package/build/src/components/selectionBoxLayer.js +2 -1
- package/build/src/components/table.d.ts +10 -6
- package/build/src/components/table.js +4 -3
- package/build/src/components/wrappedLabel.js +2 -1
- package/build/src/components/xDragBoxLayer.js +2 -1
- package/build/src/components/yDragBoxLayer.js +2 -1
- package/build/src/core/config.js +1 -0
- package/build/src/core/dataset.d.ts +5 -1
- package/build/src/core/dataset.js +1 -0
- package/build/src/core/formatters.d.ts +4 -0
- package/build/src/core/formatters.js +1 -0
- package/build/src/core/renderController.d.ts +1 -1
- package/build/src/core/renderController.js +2 -1
- package/build/src/core/renderPolicy.d.ts +4 -0
- package/build/src/core/renderPolicy.js +1 -0
- package/build/src/core/symbolFactories.d.ts +4 -0
- package/build/src/core/symbolFactories.js +1 -0
- package/build/src/core/version.d.ts +4 -0
- package/build/src/core/version.js +2 -1
- package/build/src/core/version.js.bak +1 -0
- package/build/src/dispatchers/dispatcher.d.ts +7 -3
- package/build/src/dispatchers/dispatcher.js +2 -1
- package/build/src/dispatchers/index.js +3 -3
- package/build/src/dispatchers/keyDispatcher.d.ts +2 -2
- package/build/src/dispatchers/keyDispatcher.js +2 -1
- package/build/src/dispatchers/mouseDispatcher.d.ts +1 -1
- package/build/src/dispatchers/mouseDispatcher.js +2 -1
- package/build/src/dispatchers/touchDispatcher.d.ts +1 -1
- package/build/src/dispatchers/touchDispatcher.js +2 -1
- package/build/src/drawers/arcDrawer.js +2 -1
- package/build/src/drawers/arcOutlineDrawer.js +2 -1
- package/build/src/drawers/areaDrawer.js +6 -5
- package/build/src/drawers/canvasBuffer.js +1 -0
- package/build/src/drawers/canvasDrawer.js +1 -0
- package/build/src/drawers/drawer.js +1 -0
- package/build/src/drawers/index.js +11 -10
- package/build/src/drawers/lineDrawer.js +4 -3
- package/build/src/drawers/rectangleDrawer.js +7 -5
- package/build/src/drawers/segmentDrawer.js +2 -1
- package/build/src/drawers/svgDrawer.d.ts +2 -2
- package/build/src/drawers/svgDrawer.js +1 -0
- package/build/src/drawers/symbolDrawer.js +6 -6
- package/build/src/index.d.ts +1 -1
- package/build/src/index.js +17 -14
- package/build/src/interactions/clickInteraction.d.ts +4 -4
- package/build/src/interactions/clickInteraction.js +2 -1
- package/build/src/interactions/dragInteraction.d.ts +4 -4
- package/build/src/interactions/dragInteraction.js +2 -1
- package/build/src/interactions/index.js +7 -6
- package/build/src/interactions/interaction.d.ts +2 -2
- package/build/src/interactions/interaction.js +1 -0
- package/build/src/interactions/keyInteraction.d.ts +2 -2
- package/build/src/interactions/keyInteraction.js +2 -1
- package/build/src/interactions/panZoomConstraints.js +1 -0
- package/build/src/interactions/panZoomInteraction.d.ts +13 -9
- package/build/src/interactions/panZoomInteraction.js +4 -3
- package/build/src/interactions/pointerInteraction.d.ts +3 -3
- package/build/src/interactions/pointerInteraction.js +2 -1
- package/build/src/memoize/index.js +5 -4
- package/build/src/memoize/memThunk.js +2 -1
- package/build/src/memoize/memoize.d.ts +5 -0
- package/build/src/memoize/memoize.js +2 -1
- package/build/src/memoize/memoizeProjectors.js +3 -2
- package/build/src/memoize/signature.d.ts +14 -0
- package/build/src/memoize/signature.js +4 -3
- package/build/src/plots/areaPlot.d.ts +9 -5
- package/build/src/plots/areaPlot.js +4 -3
- package/build/src/plots/barPlot.d.ts +16 -22
- package/build/src/plots/barPlot.js +6 -5
- package/build/src/plots/clusteredBarPlot.d.ts +3 -5
- package/build/src/plots/clusteredBarPlot.js +2 -1
- package/build/src/plots/commons.js +1 -0
- package/build/src/plots/deferredRenderer.d.ts +1 -1
- package/build/src/plots/deferredRenderer.js +1 -0
- package/build/src/plots/index.js +12 -12
- package/build/src/plots/linePlot.d.ts +6 -6
- package/build/src/plots/linePlot.js +5 -4
- package/build/src/plots/piePlot.d.ts +9 -5
- package/build/src/plots/piePlot.js +3 -2
- package/build/src/plots/plot.d.ts +5 -5
- package/build/src/plots/plot.js +7 -6
- package/build/src/plots/rectanglePlot.d.ts +10 -6
- package/build/src/plots/rectanglePlot.js +2 -1
- package/build/src/plots/scatterPlot.d.ts +8 -9
- package/build/src/plots/scatterPlot.js +3 -2
- package/build/src/plots/segmentPlot.d.ts +7 -3
- package/build/src/plots/segmentPlot.js +3 -2
- package/build/src/plots/stackedAreaPlot.d.ts +6 -2
- package/build/src/plots/stackedAreaPlot.js +4 -3
- package/build/src/plots/stackedBarPlot.d.ts +5 -4
- package/build/src/plots/stackedBarPlot.js +5 -4
- package/build/src/plots/waterfallPlot.d.ts +4 -6
- package/build/src/plots/waterfallPlot.js +2 -1
- package/build/src/plots/xyPlot.d.ts +5 -5
- package/build/src/plots/xyPlot.js +2 -1
- package/build/src/scales/categoryScale.d.ts +7 -3
- package/build/src/scales/categoryScale.js +3 -2
- package/build/src/scales/colorScale.d.ts +5 -1
- package/build/src/scales/colorScale.js +2 -1
- package/build/src/scales/index.d.ts +1 -1
- package/build/src/scales/index.js +8 -7
- package/build/src/scales/interpolatedColorScale.d.ts +7 -3
- package/build/src/scales/interpolatedColorScale.js +5 -4
- package/build/src/scales/linearScale.d.ts +4 -0
- package/build/src/scales/linearScale.js +2 -1
- package/build/src/scales/logScale.d.ts +4 -0
- package/build/src/scales/logScale.js +2 -1
- package/build/src/scales/modifiedLogScale.d.ts +8 -4
- package/build/src/scales/modifiedLogScale.js +2 -1
- package/build/src/scales/quantitativeScale.d.ts +5 -1
- package/build/src/scales/quantitativeScale.js +3 -2
- package/build/src/scales/scale.d.ts +4 -0
- package/build/src/scales/scale.js +1 -0
- package/build/src/scales/tickGenerators.js +1 -0
- package/build/src/scales/timeScale.js +2 -1
- package/build/src/utils/addD3SelectionMulti.d.ts +8 -0
- package/build/src/utils/arrayUtils.d.ts +4 -0
- package/build/src/utils/arrayUtils.js +1 -0
- package/build/src/utils/bucket.js +1 -0
- package/build/src/utils/callbackSet.js +2 -1
- package/build/src/utils/coerceD3.js +1 -0
- package/build/src/utils/colorUtils.d.ts +4 -0
- package/build/src/utils/colorUtils.js +1 -0
- package/build/src/utils/domUtils.d.ts +3 -10
- package/build/src/utils/domUtils.js +1 -0
- package/build/src/utils/entityStore.js +1 -0
- package/build/src/utils/index.d.ts +1 -1
- package/build/src/utils/index.js +9 -8
- package/build/src/utils/makeEnum.js +1 -0
- package/build/src/utils/map.d.ts +4 -0
- package/build/src/utils/map.js +1 -0
- package/build/src/utils/mathUtils.d.ts +4 -0
- package/build/src/utils/mathUtils.js +3 -2
- package/build/src/utils/objectUtils.js +1 -0
- package/build/src/utils/rTree.d.ts +1 -1
- package/build/src/utils/rTree.js +1 -0
- package/build/src/utils/rTreeSplitStrategies.d.ts +2 -2
- package/build/src/utils/rTreeSplitStrategies.js +1 -0
- package/build/src/utils/set.js +1 -0
- package/build/src/utils/stackingUtils.d.ts +5 -1
- package/build/src/utils/stackingUtils.js +6 -5
- package/build/src/utils/transformAwareTranslator.d.ts +4 -0
- package/build/src/utils/transformAwareTranslator.js +1 -0
- package/build/src/utils/windowUtils.d.ts +4 -0
- package/build/src/utils/windowUtils.js +1 -0
- package/package.json +6 -5
- package/plottable.js +10858 -26477
- package/plottable.js.map +1 -1
|
@@ -7,8 +7,8 @@ import { AttributeToAppliedProjector, SimpleSelection } from "../core/interfaces
|
|
|
7
7
|
import { IAnimator } from "./animator";
|
|
8
8
|
export declare type EaseFn = (normalizedTime: number) => number;
|
|
9
9
|
export declare const EaseName: {
|
|
10
|
-
circle: "circle";
|
|
11
10
|
linear: "linear";
|
|
11
|
+
circle: "circle";
|
|
12
12
|
quad: "quad";
|
|
13
13
|
quadIn: "quadIn";
|
|
14
14
|
quadOut: "quadOut";
|
|
@@ -163,5 +163,5 @@ export declare class Easing implements IAnimator {
|
|
|
163
163
|
/**
|
|
164
164
|
* Adjust the iterative delay, such that it takes into account the maxTotalDuration constraint
|
|
165
165
|
*/
|
|
166
|
-
private _getAdjustedIterativeDelay
|
|
166
|
+
private _getAdjustedIterativeDelay;
|
|
167
167
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.Easing = exports.EaseName = void 0;
|
|
7
8
|
var d3Ease = require("d3-ease");
|
|
8
9
|
var coerceD3_1 = require("../utils/coerceD3");
|
|
9
10
|
var makeEnum_1 = require("../utils/makeEnum");
|
|
@@ -46,7 +47,7 @@ var EASE_NAME_MAPPING = {
|
|
|
46
47
|
elasticOut: d3Ease.easeElasticOut,
|
|
47
48
|
elasticInOut: d3Ease.easeElasticInOut,
|
|
48
49
|
};
|
|
49
|
-
exports.EaseName = makeEnum_1.makeEnum([
|
|
50
|
+
exports.EaseName = (0, makeEnum_1.makeEnum)([
|
|
50
51
|
"linear",
|
|
51
52
|
"quad",
|
|
52
53
|
"quadIn",
|
|
@@ -107,7 +108,7 @@ var Easing = /** @class */ (function () {
|
|
|
107
108
|
};
|
|
108
109
|
Easing.prototype.animate = function (selection, attrToAppliedProjector) {
|
|
109
110
|
var _this = this;
|
|
110
|
-
selection = coerceD3_1.coerceExternalD3(selection);
|
|
111
|
+
selection = (0, coerceD3_1.coerceExternalD3)(selection);
|
|
111
112
|
var numberOfSteps = selection.size();
|
|
112
113
|
var adjustedIterativeDelay = this._getAdjustedIterativeDelay(numberOfSteps);
|
|
113
114
|
return selection.transition()
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
var tslib_1 = require("tslib");
|
|
8
|
-
tslib_1.__exportStar(require("./easingAnimator"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./nullAnimator"), exports);
|
|
8
|
+
(0, tslib_1.__exportStar)(require("./easingAnimator"), exports);
|
|
9
|
+
(0, tslib_1.__exportStar)(require("./nullAnimator"), exports);
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.Null = void 0;
|
|
7
8
|
var coerceD3_1 = require("../utils/coerceD3");
|
|
8
9
|
/**
|
|
9
10
|
* An animator implementation with no animation. The attributes are
|
|
@@ -16,7 +17,7 @@ var Null = /** @class */ (function () {
|
|
|
16
17
|
return 0;
|
|
17
18
|
};
|
|
18
19
|
Null.prototype.animate = function (selection, attrToAppliedProjector) {
|
|
19
|
-
selection = coerceD3_1.coerceExternalD3(selection);
|
|
20
|
+
selection = (0, coerceD3_1.coerceExternalD3)(selection);
|
|
20
21
|
return selection.attrs(attrToAppliedProjector);
|
|
21
22
|
};
|
|
22
23
|
return Null;
|
package/build/src/axes/axis.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2014-present Palantir Technologies
|
|
3
|
+
* @license MIT
|
|
4
|
+
*/
|
|
1
5
|
import { Component } from "../components/component";
|
|
2
6
|
import { LabelFontSizePx } from "../components/label";
|
|
3
7
|
import { Formatter } from "../core/formatters";
|
|
@@ -5,9 +9,9 @@ import { Point, SimpleSelection, SpaceRequest } from "../core/interfaces";
|
|
|
5
9
|
import { Scale } from "../scales/scale";
|
|
6
10
|
export declare const AxisOrientation: {
|
|
7
11
|
left: "left";
|
|
8
|
-
right: "right";
|
|
9
12
|
top: "top";
|
|
10
13
|
bottom: "bottom";
|
|
14
|
+
right: "right";
|
|
11
15
|
};
|
|
12
16
|
export declare type AxisOrientation = keyof typeof AxisOrientation;
|
|
13
17
|
export declare class Axis<D> extends Component {
|
|
@@ -79,7 +83,7 @@ export declare class Axis<D> extends Component {
|
|
|
79
83
|
*
|
|
80
84
|
* @param {Element} element
|
|
81
85
|
*/
|
|
82
|
-
tickLabelDataOnElement(element: Element):
|
|
86
|
+
tickLabelDataOnElement(element: Element): unknown;
|
|
83
87
|
/**
|
|
84
88
|
* Get the label font size in px.
|
|
85
89
|
*/
|
|
@@ -100,7 +104,7 @@ export declare class Axis<D> extends Component {
|
|
|
100
104
|
height: number;
|
|
101
105
|
};
|
|
102
106
|
protected _setup(): void;
|
|
103
|
-
private _configureTickLabelContainer
|
|
107
|
+
private _configureTickLabelContainer;
|
|
104
108
|
protected _getTickValues(): D[];
|
|
105
109
|
/**
|
|
106
110
|
* Render tick marks, baseline, and annotations. Should be super called by subclasses and then overridden to draw
|
|
@@ -150,7 +154,7 @@ export declare class Axis<D> extends Component {
|
|
|
150
154
|
*/
|
|
151
155
|
annotationTierCount(annotationTierCount: number): this;
|
|
152
156
|
protected _drawAnnotations(): void;
|
|
153
|
-
private _annotatedTicksToRender
|
|
157
|
+
private _annotatedTicksToRender;
|
|
154
158
|
/**
|
|
155
159
|
* Retrieves the size of the core pieces.
|
|
156
160
|
*
|
|
@@ -158,7 +162,7 @@ export declare class Axis<D> extends Component {
|
|
|
158
162
|
*/
|
|
159
163
|
protected _coreSize(): number;
|
|
160
164
|
protected _annotationTierHeight(): number;
|
|
161
|
-
private _annotationToTier
|
|
165
|
+
private _annotationToTier;
|
|
162
166
|
protected _removeAnnotations(): void;
|
|
163
167
|
protected _generateBaselineAttrHash(): {
|
|
164
168
|
[key: string]: number;
|
package/build/src/axes/axis.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.Axis = exports.AxisOrientation = void 0;
|
|
7
8
|
var tslib_1 = require("tslib");
|
|
8
9
|
var d3 = require("d3");
|
|
9
10
|
var Typesettable = require("typesettable");
|
|
@@ -12,9 +13,9 @@ var label_1 = require("../components/label");
|
|
|
12
13
|
var Formatters = require("../core/formatters");
|
|
13
14
|
var Utils = require("../utils");
|
|
14
15
|
var makeEnum_1 = require("../utils/makeEnum");
|
|
15
|
-
exports.AxisOrientation = makeEnum_1.makeEnum(["bottom", "left", "right", "top"]);
|
|
16
|
+
exports.AxisOrientation = (0, makeEnum_1.makeEnum)(["bottom", "left", "right", "top"]);
|
|
16
17
|
var Axis = /** @class */ (function (_super) {
|
|
17
|
-
tslib_1.__extends(Axis, _super);
|
|
18
|
+
(0, tslib_1.__extends)(Axis, _super);
|
|
18
19
|
/**
|
|
19
20
|
* Constructs an Axis.
|
|
20
21
|
* An Axis is a visual representation of a Scale.
|
|
@@ -112,7 +113,7 @@ var Axis = /** @class */ (function (_super) {
|
|
|
112
113
|
requestedHeight += tierHeight * this.annotationTierCount();
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
|
-
else {
|
|
116
|
+
else { // vertical
|
|
116
117
|
requestedWidth = this._computeWidth() + this._margin;
|
|
117
118
|
if (this.annotationsEnabled()) {
|
|
118
119
|
var tierHeight = this._annotationMeasurer.measure().height + 2 * Axis._ANNOTATION_LABEL_PADDING;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2014-present Palantir Technologies
|
|
3
|
+
* @license MIT
|
|
4
|
+
*/
|
|
1
5
|
import { LabelFontSizePx } from "../components/label";
|
|
2
6
|
import { Point, SpaceRequest } from "../core/interfaces";
|
|
3
7
|
import * as Scales from "../scales";
|
|
@@ -33,12 +37,12 @@ export declare class Category extends Axis<string> {
|
|
|
33
37
|
* A Wrapper configured according to the other properties on this axis.
|
|
34
38
|
* @returns {Typesettable.Wrapper}
|
|
35
39
|
*/
|
|
36
|
-
private
|
|
40
|
+
private get _wrapper();
|
|
37
41
|
/**
|
|
38
42
|
* A Writer attached to this measurer and wrapper.
|
|
39
43
|
* @returns {Typesettable.Writer}
|
|
40
44
|
*/
|
|
41
|
-
private
|
|
45
|
+
private get _writer();
|
|
42
46
|
/**
|
|
43
47
|
* Constructs a Category Axis.
|
|
44
48
|
*
|
|
@@ -127,13 +131,13 @@ export declare class Category extends Axis<string> {
|
|
|
127
131
|
* Return the space required by the ticks, padding included.
|
|
128
132
|
* @returns {number}
|
|
129
133
|
*/
|
|
130
|
-
private _tickSpaceRequired
|
|
134
|
+
private _tickSpaceRequired;
|
|
131
135
|
/**
|
|
132
136
|
* Write ticks to the DOM.
|
|
133
137
|
* @param {Plottable.Scales.Category} scale The scale this axis is representing.
|
|
134
138
|
* @param {d3.Selection} ticks The tick elements to write.
|
|
135
139
|
*/
|
|
136
|
-
private _drawTicks
|
|
140
|
+
private _drawTicks;
|
|
137
141
|
tickLabelFontSize(): LabelFontSizePx;
|
|
138
142
|
tickLabelFontSize(fontSize: LabelFontSizePx): this;
|
|
139
143
|
/**
|
|
@@ -144,7 +148,7 @@ export declare class Category extends Axis<string> {
|
|
|
144
148
|
* @param {Plottable.Scales.Category} scale The scale this axis is representing.
|
|
145
149
|
* @param {string[]} ticks The strings that will be printed on the ticks.
|
|
146
150
|
*/
|
|
147
|
-
private _measureTickLabels
|
|
151
|
+
private _measureTickLabels;
|
|
148
152
|
renderImmediately(): this;
|
|
149
153
|
computeLayout(origin?: Point, availableWidth?: number, availableHeight?: number): this;
|
|
150
154
|
invalidateCache(): void;
|
|
@@ -4,14 +4,16 @@
|
|
|
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 Typesettable = require("typesettable");
|
|
10
11
|
var component_1 = require("../components/component");
|
|
12
|
+
var label_1 = require("../components/label");
|
|
11
13
|
var Utils = require("../utils");
|
|
12
14
|
var axis_1 = require("./axis");
|
|
13
15
|
var Category = /** @class */ (function (_super) {
|
|
14
|
-
tslib_1.__extends(Category, _super);
|
|
16
|
+
(0, tslib_1.__extends)(Category, _super);
|
|
15
17
|
/**
|
|
16
18
|
* Constructs a Category Axis.
|
|
17
19
|
*
|
|
@@ -47,7 +49,7 @@ var Category = /** @class */ (function (_super) {
|
|
|
47
49
|
}
|
|
48
50
|
return wrapper;
|
|
49
51
|
},
|
|
50
|
-
enumerable:
|
|
52
|
+
enumerable: false,
|
|
51
53
|
configurable: true
|
|
52
54
|
});
|
|
53
55
|
Object.defineProperty(Category.prototype, "_writer", {
|
|
@@ -58,7 +60,7 @@ var Category = /** @class */ (function (_super) {
|
|
|
58
60
|
get: function () {
|
|
59
61
|
return new Typesettable.Writer(this._measurer, this._typesetterContext, this._wrapper);
|
|
60
62
|
},
|
|
61
|
-
enumerable:
|
|
63
|
+
enumerable: false,
|
|
62
64
|
configurable: true
|
|
63
65
|
});
|
|
64
66
|
Category.prototype._setup = function () {
|
|
@@ -133,7 +135,7 @@ var Category = /** @class */ (function (_super) {
|
|
|
133
135
|
if (domain === void 0) { domain = scale.invertRange(); }
|
|
134
136
|
// account for how shearing tightens the space between vertically oriented ticks
|
|
135
137
|
var shearFactor = this._tickLabelAngle === 0 ? 1 : 1 / Math.cos(this._tickLabelShearAngle / 180 * Math.PI);
|
|
136
|
-
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);
|
|
137
139
|
var downsampleRatio = Math.ceil(shearedMinimumWidth / scale.stepWidth());
|
|
138
140
|
return {
|
|
139
141
|
domain: domain.filter(function (d, i) { return i % downsampleRatio === 0; }),
|
|
@@ -250,18 +252,19 @@ var Category = /** @class */ (function (_super) {
|
|
|
250
252
|
* @param {string[]} ticks The strings that will be printed on the ticks.
|
|
251
253
|
*/
|
|
252
254
|
Category.prototype._measureTickLabels = function (axisWidth, axisHeight) {
|
|
255
|
+
var _a;
|
|
253
256
|
var _this = this;
|
|
254
257
|
var thisScale = this._scale;
|
|
255
258
|
// set up a test scale to simulate rendering ticks with the given width and height.
|
|
256
259
|
var scale = thisScale.cloneWithoutProviders()
|
|
257
260
|
.range([0, this.isHorizontal() ? axisWidth : axisHeight]);
|
|
258
|
-
var
|
|
261
|
+
var _b = this.getDownsampleInfo(scale), domain = _b.domain, stepWidth = _b.stepWidth;
|
|
259
262
|
// HACKHACK: https://github.com/palantir/svg-typewriter/issues/25
|
|
260
263
|
// the width (x-axis specific) available to a single tick label.
|
|
261
264
|
var width = axisWidth - this._tickSpaceRequired(); // default for left/right
|
|
262
|
-
if (this.isHorizontal()) {
|
|
265
|
+
if (this.isHorizontal()) { // case for top/bottom
|
|
263
266
|
width = stepWidth; // defaults to the band width
|
|
264
|
-
if (this._tickLabelAngle !== 0) {
|
|
267
|
+
if (this._tickLabelAngle !== 0) { // rotated label
|
|
265
268
|
width = axisHeight - this._tickSpaceRequired(); // use the axis height
|
|
266
269
|
}
|
|
267
270
|
// HACKHACK: Wrapper fails under negative circumstances
|
|
@@ -270,9 +273,9 @@ var Category = /** @class */ (function (_super) {
|
|
|
270
273
|
// HACKHACK: https://github.com/palantir/svg-typewriter/issues/25
|
|
271
274
|
// the height (y-axis specific) available to a single tick label.
|
|
272
275
|
var height = stepWidth; // default for left/right
|
|
273
|
-
if (this.isHorizontal()) {
|
|
276
|
+
if (this.isHorizontal()) { // case for top/bottom
|
|
274
277
|
height = axisHeight - this._tickSpaceRequired();
|
|
275
|
-
if (this._tickLabelAngle !== 0) {
|
|
278
|
+
if (this._tickLabelAngle !== 0) { // rotated label
|
|
276
279
|
height = axisWidth - this._tickSpaceRequired();
|
|
277
280
|
}
|
|
278
281
|
// HACKHACK: Wrapper fails under negative circumstances
|
|
@@ -292,13 +295,12 @@ var Category = /** @class */ (function (_super) {
|
|
|
292
295
|
// If the tick labels are rotated, reverse usedWidth and usedHeight
|
|
293
296
|
// HACKHACK: https://github.com/palantir/svg-typewriter/issues/25
|
|
294
297
|
if (this._tickLabelAngle !== 0) {
|
|
295
|
-
|
|
298
|
+
_a = [usedHeight, usedWidth], usedWidth = _a[0], usedHeight = _a[1];
|
|
296
299
|
}
|
|
297
300
|
return {
|
|
298
301
|
usedWidth: usedWidth,
|
|
299
302
|
usedHeight: usedHeight,
|
|
300
303
|
};
|
|
301
|
-
var _b;
|
|
302
304
|
};
|
|
303
305
|
Category.prototype.renderImmediately = function () {
|
|
304
306
|
var _this = this;
|
package/build/src/axes/index.js
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
var tslib_1 = require("tslib");
|
|
8
|
-
tslib_1.__exportStar(require("./categoryAxis"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./numericAxis"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./timeAxis"), exports);
|
|
8
|
+
(0, tslib_1.__exportStar)(require("./categoryAxis"), exports);
|
|
9
|
+
(0, tslib_1.__exportStar)(require("./numericAxis"), exports);
|
|
10
|
+
(0, tslib_1.__exportStar)(require("./timeAxis"), exports);
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2014-present Palantir Technologies
|
|
3
|
+
* @license MIT
|
|
4
|
+
*/
|
|
1
5
|
import { QuantitativeScale } from "../scales/quantitativeScale";
|
|
2
6
|
import { Axis, AxisOrientation } from "./axis";
|
|
3
7
|
export declare class Numeric extends Axis<number> {
|
|
@@ -17,8 +21,8 @@ export declare class Numeric extends Axis<number> {
|
|
|
17
21
|
constructor(scale: QuantitativeScale<number>, orientation: AxisOrientation);
|
|
18
22
|
protected _setup(): void;
|
|
19
23
|
protected _computeWidth(): number;
|
|
20
|
-
private _computeExactTextWidth
|
|
21
|
-
private _computeApproximateTextWidth
|
|
24
|
+
private _computeExactTextWidth;
|
|
25
|
+
private _computeApproximateTextWidth;
|
|
22
26
|
protected _computeHeight(): number;
|
|
23
27
|
protected _getTickValues(): number[];
|
|
24
28
|
protected _rescale(): void;
|
|
@@ -53,8 +57,8 @@ export declare class Numeric extends Axis<number> {
|
|
|
53
57
|
* @returns {Axes.Numeric} The calling Axes.Numeric.
|
|
54
58
|
*/
|
|
55
59
|
usesTextWidthApproximation(enable: boolean): this;
|
|
56
|
-
private _hideEndTickLabels
|
|
57
|
-
private _hideOverlappingTickLabels
|
|
60
|
+
private _hideEndTickLabels;
|
|
61
|
+
private _hideOverlappingTickLabels;
|
|
58
62
|
/**
|
|
59
63
|
* The method is responsible for evenly spacing the labels on the axis.
|
|
60
64
|
* @return test to see if taking every `interval` recrangle from `rects`
|
|
@@ -65,6 +69,6 @@ export declare class Numeric extends Axis<number> {
|
|
|
65
69
|
* from the tick and 2 * `padding` distance (or more) from the next tick:
|
|
66
70
|
* see https://github.com/palantir/plottable/pull/1812
|
|
67
71
|
*/
|
|
68
|
-
private _hasOverlapWithInterval
|
|
72
|
+
private _hasOverlapWithInterval;
|
|
69
73
|
invalidateCache(): void;
|
|
70
74
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.Numeric = void 0;
|
|
7
8
|
var tslib_1 = require("tslib");
|
|
8
9
|
var d3 = require("d3");
|
|
9
10
|
var Typesettable = require("typesettable");
|
|
@@ -11,7 +12,7 @@ var Formatters = require("../core/formatters");
|
|
|
11
12
|
var Utils = require("../utils");
|
|
12
13
|
var axis_1 = require("./axis");
|
|
13
14
|
var Numeric = /** @class */ (function (_super) {
|
|
14
|
-
tslib_1.__extends(Numeric, _super);
|
|
15
|
+
(0, tslib_1.__extends)(Numeric, _super);
|
|
15
16
|
/**
|
|
16
17
|
* Constructs a Numeric Axis.
|
|
17
18
|
*
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2014-present Palantir Technologies
|
|
3
|
+
* @license MIT
|
|
4
|
+
*/
|
|
1
5
|
import { Formatter } from "../core/formatters";
|
|
2
6
|
import * as Scales from "../scales";
|
|
3
7
|
import { LabelFontSizePx } from "../components/label";
|
|
@@ -133,33 +137,33 @@ export declare class Time extends Axis<Date> {
|
|
|
133
137
|
/**
|
|
134
138
|
* Gets the index of the most precise TimeAxisConfiguration that will fit in the current width.
|
|
135
139
|
*/
|
|
136
|
-
private _getMostPreciseConfigurationIndex
|
|
140
|
+
private _getMostPreciseConfigurationIndex;
|
|
137
141
|
orientation(): TimeAxisOrientation;
|
|
138
142
|
orientation(orientation: TimeAxisOrientation): this;
|
|
139
143
|
protected _computeHeight(): number;
|
|
140
|
-
private _getIntervalLength
|
|
141
|
-
private _maxWidthForInterval
|
|
144
|
+
private _getIntervalLength;
|
|
145
|
+
private _maxWidthForInterval;
|
|
142
146
|
/**
|
|
143
147
|
* Check if tier configuration fits in the current width and satisfied the
|
|
144
148
|
* max TimeInterval precision limit.
|
|
145
149
|
*/
|
|
146
|
-
private _checkTimeAxisTierConfiguration
|
|
150
|
+
private _checkTimeAxisTierConfiguration;
|
|
147
151
|
protected _sizeFromOffer(availableWidth: number, availableHeight: number): {
|
|
148
152
|
width: number;
|
|
149
153
|
height: number;
|
|
150
154
|
};
|
|
151
155
|
protected _setup(): void;
|
|
152
|
-
private _setupDomElements
|
|
153
|
-
private _getTickIntervalValues
|
|
156
|
+
private _setupDomElements;
|
|
157
|
+
private _getTickIntervalValues;
|
|
154
158
|
protected _getTickValues(): any[];
|
|
155
|
-
private _cleanTiers
|
|
156
|
-
private _getTickValuesForConfiguration
|
|
157
|
-
private _renderTierLabels
|
|
158
|
-
private _renderTickMarks
|
|
159
|
-
private _renderLabellessTickMarks
|
|
160
|
-
private _generateLabellessTicks
|
|
159
|
+
private _cleanTiers;
|
|
160
|
+
private _getTickValuesForConfiguration;
|
|
161
|
+
private _renderTierLabels;
|
|
162
|
+
private _renderTickMarks;
|
|
163
|
+
private _renderLabellessTickMarks;
|
|
164
|
+
private _generateLabellessTicks;
|
|
161
165
|
renderImmediately(): this;
|
|
162
|
-
private _hideOverflowingTiers
|
|
163
|
-
private _hideOverlappingAndCutOffLabels
|
|
166
|
+
private _hideOverflowingTiers;
|
|
167
|
+
private _hideOverlappingAndCutOffLabels;
|
|
164
168
|
invalidateCache(): void;
|
|
165
169
|
}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
* Copyright 2014-present Palantir Technologies
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
+
var _a;
|
|
6
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Time = exports.TierLabelPosition = exports.TimeAxisOrientation = exports.TimeInterval = void 0;
|
|
7
9
|
var tslib_1 = require("tslib");
|
|
8
10
|
var d3 = require("d3");
|
|
9
11
|
var Typesettable = require("typesettable");
|
|
@@ -12,7 +14,7 @@ var Scales = require("../scales");
|
|
|
12
14
|
var Utils = require("../utils");
|
|
13
15
|
var makeEnum_1 = require("../utils/makeEnum");
|
|
14
16
|
var axis_1 = require("./axis");
|
|
15
|
-
exports.TimeInterval = makeEnum_1.makeEnum([
|
|
17
|
+
exports.TimeInterval = (0, makeEnum_1.makeEnum)([
|
|
16
18
|
"second",
|
|
17
19
|
"minute",
|
|
18
20
|
"hour",
|
|
@@ -24,10 +26,10 @@ exports.TimeInterval = makeEnum_1.makeEnum([
|
|
|
24
26
|
/**
|
|
25
27
|
* Possible orientations for a Time Axis.
|
|
26
28
|
*/
|
|
27
|
-
exports.TimeAxisOrientation = makeEnum_1.makeEnum(["top", "bottom"]);
|
|
28
|
-
exports.TierLabelPosition = makeEnum_1.makeEnum(["between", "center"]);
|
|
29
|
+
exports.TimeAxisOrientation = (0, makeEnum_1.makeEnum)(["top", "bottom"]);
|
|
30
|
+
exports.TierLabelPosition = (0, makeEnum_1.makeEnum)(["between", "center"]);
|
|
29
31
|
var Time = /** @class */ (function (_super) {
|
|
30
|
-
tslib_1.__extends(Time, _super);
|
|
32
|
+
(0, tslib_1.__extends)(Time, _super);
|
|
31
33
|
/**
|
|
32
34
|
* Constructs a Time Axis.
|
|
33
35
|
*
|
|
@@ -570,4 +572,3 @@ var Time = /** @class */ (function (_super) {
|
|
|
570
572
|
return Time;
|
|
571
573
|
}(axis_1.Axis));
|
|
572
574
|
exports.Time = Time;
|
|
573
|
-
var _a;
|
|
@@ -11,9 +11,9 @@ export declare type IResizeHandler = (size: {
|
|
|
11
11
|
width: number;
|
|
12
12
|
}) => void;
|
|
13
13
|
export declare const XAlignment: {
|
|
14
|
+
center: "center";
|
|
14
15
|
left: "left";
|
|
15
16
|
right: "right";
|
|
16
|
-
center: "center";
|
|
17
17
|
};
|
|
18
18
|
export declare type XAlignment = keyof typeof XAlignment;
|
|
19
19
|
export declare const YAlignment: {
|
|
@@ -164,7 +164,7 @@ export declare class Component {
|
|
|
164
164
|
*/
|
|
165
165
|
render(): this;
|
|
166
166
|
renderLowPriority(): this;
|
|
167
|
-
private _scheduleComputeLayout
|
|
167
|
+
private _scheduleComputeLayout;
|
|
168
168
|
/**
|
|
169
169
|
* Sets a callback that gets called when the component resizes. The size change
|
|
170
170
|
* is not guaranteed to be reflected by the DOM at the time the callback is fired.
|
|
@@ -4,14 +4,15 @@
|
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.Component = exports.YAlignment = exports.XAlignment = void 0;
|
|
7
8
|
var d3 = require("d3");
|
|
8
9
|
var RenderController = require("../core/renderController");
|
|
9
10
|
var Utils = require("../utils");
|
|
10
|
-
var
|
|
11
|
+
var isElement_1 = require("lodash-es/isElement");
|
|
11
12
|
var coerceD3_1 = require("../utils/coerceD3");
|
|
12
13
|
var makeEnum_1 = require("../utils/makeEnum");
|
|
13
|
-
exports.XAlignment = makeEnum_1.makeEnum(["left", "center", "right"]);
|
|
14
|
-
exports.YAlignment = makeEnum_1.makeEnum(["top", "center", "bottom"]);
|
|
14
|
+
exports.XAlignment = (0, makeEnum_1.makeEnum)(["left", "center", "right"]);
|
|
15
|
+
exports.YAlignment = (0, makeEnum_1.makeEnum)(["top", "center", "bottom"]);
|
|
15
16
|
/**
|
|
16
17
|
* Components are the core logical units that build Plottable visualizations.
|
|
17
18
|
*
|
|
@@ -48,7 +49,7 @@ var Component = /** @class */ (function () {
|
|
|
48
49
|
* @returns {Component} The calling Component.
|
|
49
50
|
*/
|
|
50
51
|
Component.prototype.anchor = function (selection) {
|
|
51
|
-
selection = coerceD3_1.coerceExternalD3(selection);
|
|
52
|
+
selection = (0, coerceD3_1.coerceExternalD3)(selection);
|
|
52
53
|
if (this._destroyed) {
|
|
53
54
|
throw new Error("Can't reuse destroy()-ed Components!");
|
|
54
55
|
}
|
|
@@ -287,11 +288,11 @@ var Component = /** @class */ (function () {
|
|
|
287
288
|
if (typeof (element) === "string") {
|
|
288
289
|
selection = d3.select(element);
|
|
289
290
|
}
|
|
290
|
-
else if (
|
|
291
|
+
else if ((0, isElement_1.default)(element)) {
|
|
291
292
|
selection = d3.select(element);
|
|
292
293
|
}
|
|
293
294
|
else {
|
|
294
|
-
selection = coerceD3_1.coerceExternalD3(element);
|
|
295
|
+
selection = (0, coerceD3_1.coerceExternalD3)(element);
|
|
295
296
|
}
|
|
296
297
|
if (!selection.node() || selection.node().nodeName == null) {
|
|
297
298
|
throw new Error("Plottable requires a valid Element to renderTo");
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.ComponentContainer = void 0;
|
|
7
8
|
var tslib_1 = require("tslib");
|
|
8
9
|
var coerceD3_1 = require("../utils/coerceD3");
|
|
9
10
|
var component_1 = require("./component");
|
|
@@ -12,7 +13,7 @@ var component_1 = require("./component");
|
|
|
12
13
|
* It will not do anything if instantiated directly.
|
|
13
14
|
*/
|
|
14
15
|
var ComponentContainer = /** @class */ (function (_super) {
|
|
15
|
-
tslib_1.__extends(ComponentContainer, _super);
|
|
16
|
+
(0, tslib_1.__extends)(ComponentContainer, _super);
|
|
16
17
|
function ComponentContainer() {
|
|
17
18
|
var _this = _super.call(this) || this;
|
|
18
19
|
_this._detachCallback = function (component) { return _this.remove(component); };
|
|
@@ -20,7 +21,7 @@ var ComponentContainer = /** @class */ (function (_super) {
|
|
|
20
21
|
}
|
|
21
22
|
ComponentContainer.prototype.anchor = function (selection) {
|
|
22
23
|
var _this = this;
|
|
23
|
-
selection = coerceD3_1.coerceExternalD3(selection);
|
|
24
|
+
selection = (0, coerceD3_1.coerceExternalD3)(selection);
|
|
24
25
|
_super.prototype.anchor.call(this, selection);
|
|
25
26
|
this._forEach(function (c) { return c.anchor(_this.element()); });
|
|
26
27
|
return this;
|
|
@@ -35,9 +35,9 @@ export declare class DragBoxLayer extends SelectionBoxLayer {
|
|
|
35
35
|
* @constructor
|
|
36
36
|
*/
|
|
37
37
|
constructor();
|
|
38
|
-
private _setUpCallbacks
|
|
38
|
+
private _setUpCallbacks;
|
|
39
39
|
protected _setup(): void;
|
|
40
|
-
private _getResizingEdges
|
|
40
|
+
private _getResizingEdges;
|
|
41
41
|
renderImmediately(): this;
|
|
42
42
|
/**
|
|
43
43
|
* Gets the detection radius of the drag box in pixels.
|
|
@@ -73,7 +73,7 @@ export declare class DragBoxLayer extends SelectionBoxLayer {
|
|
|
73
73
|
* @return {DragBoxLayer} The calling DragBoxLayer.
|
|
74
74
|
*/
|
|
75
75
|
movable(movable: boolean): this;
|
|
76
|
-
private _setMovableClass
|
|
76
|
+
private _setMovableClass;
|
|
77
77
|
/**
|
|
78
78
|
* Sets the callback to be called when dragging starts.
|
|
79
79
|
*
|
|
@@ -131,5 +131,5 @@ export declare class DragBoxLayer extends SelectionBoxLayer {
|
|
|
131
131
|
destroy(): void;
|
|
132
132
|
detach(): this;
|
|
133
133
|
anchor(selection: d3.Selection<HTMLElement, any, any, any>): this;
|
|
134
|
-
private _resetState
|
|
134
|
+
private _resetState;
|
|
135
135
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.DragBoxLayer = void 0;
|
|
7
8
|
var tslib_1 = require("tslib");
|
|
8
9
|
var Interactions = require("../interactions");
|
|
9
10
|
var Utils = require("../utils");
|
|
@@ -11,7 +12,7 @@ var coerceD3_1 = require("../utils/coerceD3");
|
|
|
11
12
|
var _1 = require("./");
|
|
12
13
|
var selectionBoxLayer_1 = require("./selectionBoxLayer");
|
|
13
14
|
var DragBoxLayer = /** @class */ (function (_super) {
|
|
14
|
-
tslib_1.__extends(DragBoxLayer, _super);
|
|
15
|
+
(0, tslib_1.__extends)(DragBoxLayer, _super);
|
|
15
16
|
/**
|
|
16
17
|
* Constructs a DragBoxLayer.
|
|
17
18
|
*
|
|
@@ -360,7 +361,7 @@ var DragBoxLayer = /** @class */ (function (_super) {
|
|
|
360
361
|
return this;
|
|
361
362
|
};
|
|
362
363
|
DragBoxLayer.prototype.anchor = function (selection) {
|
|
363
|
-
selection = coerceD3_1.coerceExternalD3(selection);
|
|
364
|
+
selection = (0, coerceD3_1.coerceExternalD3)(selection);
|
|
364
365
|
this._dragInteraction.attachTo(this);
|
|
365
366
|
_super.prototype.anchor.call(this, selection);
|
|
366
367
|
return this;
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.DragLineLayer = void 0;
|
|
7
8
|
var tslib_1 = require("tslib");
|
|
8
9
|
var guideLineLayer_1 = require("../components/guideLineLayer");
|
|
9
10
|
var Interactions = require("../interactions");
|
|
10
11
|
var Utils = require("../utils");
|
|
11
12
|
var DragLineLayer = /** @class */ (function (_super) {
|
|
12
|
-
tslib_1.__extends(DragLineLayer, _super);
|
|
13
|
+
(0, tslib_1.__extends)(DragLineLayer, _super);
|
|
13
14
|
function DragLineLayer(orientation) {
|
|
14
15
|
var _this = _super.call(this, orientation) || this;
|
|
15
16
|
_this._detectionRadius = 3;
|
|
@@ -53,6 +53,6 @@ export declare class Gridlines extends Component {
|
|
|
53
53
|
protected _setup(): void;
|
|
54
54
|
renderImmediately(): this;
|
|
55
55
|
computeLayout(origin?: Point, availableWidth?: number, availableHeight?: number): this;
|
|
56
|
-
private _redrawXLines
|
|
57
|
-
private _redrawYLines
|
|
56
|
+
private _redrawXLines;
|
|
57
|
+
private _redrawYLines;
|
|
58
58
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.Gridlines = void 0;
|
|
7
8
|
var tslib_1 = require("tslib");
|
|
8
9
|
var component_1 = require("./component");
|
|
9
10
|
/**
|
|
@@ -38,7 +39,7 @@ function gridPositionFactory(scale, between, orderedTicks) {
|
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
var Gridlines = /** @class */ (function (_super) {
|
|
41
|
-
tslib_1.__extends(Gridlines, _super);
|
|
42
|
+
(0, tslib_1.__extends)(Gridlines, _super);
|
|
42
43
|
/**
|
|
43
44
|
* @constructor
|
|
44
45
|
* @param {Scale} xScale The scale to base the x gridlines on. Pass null if no gridlines are desired.
|
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.Group = void 0;
|
|
7
8
|
var tslib_1 = require("tslib");
|
|
8
9
|
var Utils = require("../utils");
|
|
9
10
|
var componentContainer_1 = require("./componentContainer");
|
|
10
11
|
var Group = /** @class */ (function (_super) {
|
|
11
|
-
tslib_1.__extends(Group, _super);
|
|
12
|
+
(0, tslib_1.__extends)(Group, _super);
|
|
12
13
|
/**
|
|
13
14
|
* Constructs a Group.
|
|
14
15
|
*
|