@hpcc-js/chart 2.76.1 → 2.77.0

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/dist/index.js CHANGED
@@ -5,8 +5,8 @@
5
5
  })(this, (function (exports, api, common, util) { 'use strict';
6
6
 
7
7
  var PKG_NAME = "@hpcc-js/chart";
8
- var PKG_VERSION = "2.76.1";
9
- var BUILD_VERSION = "2.102.4";
8
+ var PKG_VERSION = "2.77.0";
9
+ var BUILD_VERSION = "2.102.11";
10
10
 
11
11
  /*! *****************************************************************************
12
12
  Copyright (c) Microsoft Corporation.
@@ -2466,7 +2466,6 @@
2466
2466
  var currSel = common.brushSelection(this.focusChart.svgBrush.node());
2467
2467
  if (currSel) {
2468
2468
  if (this.focusChart.xAxisType() !== "ordinal") {
2469
- console.log(JSON.stringify([this.focusChart.xAxis.invert(currSel[0]), this.focusChart.xAxis.invert(currSel[1])]));
2470
2469
  this.xAxis.domain([this.focusChart.xAxis.invert(currSel[0]), this.focusChart.xAxis.invert(currSel[1])]);
2471
2470
  }
2472
2471
  else {
@@ -2562,7 +2561,7 @@
2562
2561
  };
2563
2562
  // Events ---
2564
2563
  XYAxis.prototype.click = function (row, column, selected) {
2565
- console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
2564
+ // console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
2566
2565
  };
2567
2566
  return XYAxis;
2568
2567
  }(common.SVGWidget));
@@ -4459,10 +4458,10 @@
4459
4458
  };
4460
4459
  // Events ---
4461
4460
  Bullet.prototype.click = function (row, column, selected) {
4462
- console.log("Click: " + JSON.stringify(row) + ", " + column + "," + selected);
4461
+ // console.log("Click: " + JSON.stringify(row) + ", " + column + "," + selected);
4463
4462
  };
4464
4463
  Bullet.prototype.dblclick = function (row, column, selected) {
4465
- console.log("Double click: " + JSON.stringify(row) + ", " + column + "," + selected);
4464
+ // console.log("Double click: " + JSON.stringify(row) + ", " + column + "," + selected);
4466
4465
  };
4467
4466
  __decorate([
4468
4467
  common.publish(null, "set", "Title Column", function () { return this.columns(); }, { optional: true }),
@@ -8565,6 +8564,26 @@
8565
8564
  }
8566
8565
  return label;
8567
8566
  };
8567
+ Pie.prototype.selection = function (_) {
8568
+ var _a;
8569
+ if (!arguments.length) {
8570
+ try {
8571
+ return (_a = this._selection.selection2()[0]) === null || _a === void 0 ? void 0 : _a.data;
8572
+ }
8573
+ catch (e) {
8574
+ return undefined;
8575
+ }
8576
+ }
8577
+ // Stringify to enable a deep equal
8578
+ var strRow = JSON.stringify(_);
8579
+ this._selection.selection2(function (d) { return strRow === JSON.stringify(d.data); });
8580
+ };
8581
+ Pie.prototype.selectByLabel = function (_) {
8582
+ var row = this.data().filter(function (row) { return row[0] === _; })[0];
8583
+ if (row) {
8584
+ this.selection(row);
8585
+ }
8586
+ };
8568
8587
  Pie.prototype.enter = function (_domNode, element) {
8569
8588
  _super.prototype.enter.call(this, _domNode, element);
8570
8589
  this._selection.widgetElement(element);
@@ -9276,10 +9295,10 @@
9276
9295
  };
9277
9296
  // Events ---
9278
9297
  HexBin.prototype.click = function (row, column, selected) {
9279
- console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
9298
+ // console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
9280
9299
  };
9281
9300
  HexBin.prototype.dblclick = function (row, column, selected) {
9282
- console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
9301
+ // console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
9283
9302
  };
9284
9303
  HexBin.__inputs = [{
9285
9304
  id: "x",