plottable 3.9.0-dev-78-gfb876e95 → 3.9.0-dev-79-g98c2e10e
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/core/version.js +1 -1
- package/build/src/plots/barPlot.d.ts +5 -0
- package/build/src/plots/barPlot.js +11 -0
- package/build/src/plots/rectanglePlot.d.ts +5 -0
- package/build/src/plots/rectanglePlot.js +11 -0
- package/package.json +1 -1
- package/plottable.js +22 -0
- package/plottable.js.map +1 -1
|
@@ -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-79-g98c2e10e";
|
|
@@ -243,6 +243,11 @@ export declare class Bar<X, Y> extends XYPlot<X, Y> {
|
|
|
243
243
|
protected _updateThicknessAttr(): void;
|
|
244
244
|
private _barPixelThickness;
|
|
245
245
|
entities(datasets?: Dataset[]): IPlotEntity[];
|
|
246
|
+
/**
|
|
247
|
+
* Undrawn bars stay in `_getDataToDraw` as null placeholders, so the drawer
|
|
248
|
+
* indexes each bar's element by its dataset index
|
|
249
|
+
*/
|
|
250
|
+
protected _buildLightweightPlotEntities(datasets: Dataset[]): Plots.ILightweightPlotEntity[];
|
|
246
251
|
protected _entityBounds(entity: Plots.IPlotEntity | Plots.ILightweightPlotEntity): Pick<DOMRect, "height" | "width" | "x" | "y">;
|
|
247
252
|
/**
|
|
248
253
|
* The rectangular bounds of a bar. Note that the x/y coordinates are not the
|
|
@@ -631,6 +631,17 @@ var Bar = /** @class */ (function (_super) {
|
|
|
631
631
|
var entities = _super.prototype.entities.call(this, datasets);
|
|
632
632
|
return entities;
|
|
633
633
|
};
|
|
634
|
+
/**
|
|
635
|
+
* Undrawn bars stay in `_getDataToDraw` as null placeholders, so the drawer
|
|
636
|
+
* indexes each bar's element by its dataset index
|
|
637
|
+
*/
|
|
638
|
+
Bar.prototype._buildLightweightPlotEntities = function (datasets) {
|
|
639
|
+
var lightweightPlotEntities = _super.prototype._buildLightweightPlotEntities.call(this, datasets);
|
|
640
|
+
lightweightPlotEntities.forEach(function (lightweightPlotEntity) {
|
|
641
|
+
lightweightPlotEntity.validDatumIndex = lightweightPlotEntity.index;
|
|
642
|
+
});
|
|
643
|
+
return lightweightPlotEntities;
|
|
644
|
+
};
|
|
634
645
|
Bar.prototype._entityBounds = function (entity) {
|
|
635
646
|
var datum = entity.datum, index = entity.index, dataset = entity.dataset;
|
|
636
647
|
return this._pixelBounds(datum, index, dataset);
|
|
@@ -101,6 +101,11 @@ export declare class Rectangle<X, Y> extends XYPlot<X, Y> {
|
|
|
101
101
|
* @returns {PlotEntity[]} The PlotEntities at the particular point
|
|
102
102
|
*/
|
|
103
103
|
entitiesAt(point: Point): Plots.IPlotEntity[];
|
|
104
|
+
/**
|
|
105
|
+
* Undrawn rectangles stay in `_getDataToDraw` as null placeholders, so the
|
|
106
|
+
* drawer indexes each rectangle's element by its dataset index
|
|
107
|
+
*/
|
|
108
|
+
protected _buildLightweightPlotEntities(datasets: Dataset[]): Plots.ILightweightPlotEntity[];
|
|
104
109
|
protected _entityBounds(entity: Plots.IPlotEntity | Plots.ILightweightPlotEntity): Pick<DOMRect, "height" | "width" | "x" | "y">;
|
|
105
110
|
private _entityBBox;
|
|
106
111
|
/**
|
|
@@ -170,6 +170,17 @@ var Rectangle = /** @class */ (function (_super) {
|
|
|
170
170
|
return x <= point.x && point.x <= x + width && y <= point.y && point.y <= y + height;
|
|
171
171
|
});
|
|
172
172
|
};
|
|
173
|
+
/**
|
|
174
|
+
* Undrawn rectangles stay in `_getDataToDraw` as null placeholders, so the
|
|
175
|
+
* drawer indexes each rectangle's element by its dataset index
|
|
176
|
+
*/
|
|
177
|
+
Rectangle.prototype._buildLightweightPlotEntities = function (datasets) {
|
|
178
|
+
var lightweightPlotEntities = _super.prototype._buildLightweightPlotEntities.call(this, datasets);
|
|
179
|
+
lightweightPlotEntities.forEach(function (lightweightPlotEntity) {
|
|
180
|
+
lightweightPlotEntity.validDatumIndex = lightweightPlotEntity.index;
|
|
181
|
+
});
|
|
182
|
+
return lightweightPlotEntities;
|
|
183
|
+
};
|
|
173
184
|
Rectangle.prototype._entityBounds = function (entity) {
|
|
174
185
|
var datum = entity.datum, index = entity.index, dataset = entity.dataset;
|
|
175
186
|
return this._entityBBox(datum, index, dataset, this._getAttrToProjector());
|
package/package.json
CHANGED
package/plottable.js
CHANGED
|
@@ -5315,6 +5315,17 @@ var Bar = /** @class */ (function (_super) {
|
|
|
5315
5315
|
var entities = _super.prototype.entities.call(this, datasets);
|
|
5316
5316
|
return entities;
|
|
5317
5317
|
};
|
|
5318
|
+
/**
|
|
5319
|
+
* Undrawn bars stay in `_getDataToDraw` as null placeholders, so the drawer
|
|
5320
|
+
* indexes each bar's element by its dataset index
|
|
5321
|
+
*/
|
|
5322
|
+
Bar.prototype._buildLightweightPlotEntities = function (datasets) {
|
|
5323
|
+
var lightweightPlotEntities = _super.prototype._buildLightweightPlotEntities.call(this, datasets);
|
|
5324
|
+
lightweightPlotEntities.forEach(function (lightweightPlotEntity) {
|
|
5325
|
+
lightweightPlotEntity.validDatumIndex = lightweightPlotEntity.index;
|
|
5326
|
+
});
|
|
5327
|
+
return lightweightPlotEntities;
|
|
5328
|
+
};
|
|
5318
5329
|
Bar.prototype._entityBounds = function (entity) {
|
|
5319
5330
|
var datum = entity.datum, index = entity.index, dataset = entity.dataset;
|
|
5320
5331
|
return this._pixelBounds(datum, index, dataset);
|
|
@@ -16705,6 +16716,17 @@ var Rectangle = /** @class */ (function (_super) {
|
|
|
16705
16716
|
return x <= point.x && point.x <= x + width && y <= point.y && point.y <= y + height;
|
|
16706
16717
|
});
|
|
16707
16718
|
};
|
|
16719
|
+
/**
|
|
16720
|
+
* Undrawn rectangles stay in `_getDataToDraw` as null placeholders, so the
|
|
16721
|
+
* drawer indexes each rectangle's element by its dataset index
|
|
16722
|
+
*/
|
|
16723
|
+
Rectangle.prototype._buildLightweightPlotEntities = function (datasets) {
|
|
16724
|
+
var lightweightPlotEntities = _super.prototype._buildLightweightPlotEntities.call(this, datasets);
|
|
16725
|
+
lightweightPlotEntities.forEach(function (lightweightPlotEntity) {
|
|
16726
|
+
lightweightPlotEntity.validDatumIndex = lightweightPlotEntity.index;
|
|
16727
|
+
});
|
|
16728
|
+
return lightweightPlotEntities;
|
|
16729
|
+
};
|
|
16708
16730
|
Rectangle.prototype._entityBounds = function (entity) {
|
|
16709
16731
|
var datum = entity.datum, index = entity.index, dataset = entity.dataset;
|
|
16710
16732
|
return this._entityBBox(datum, index, dataset, this._getAttrToProjector());
|