@hpcc-js/tree 2.39.6 → 2.39.7
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.es6.js +28 -8
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +28 -8
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +2 -2
- package/src/Dendrogram.ts +10 -2
- package/src/Treemap.ts +12 -4
- package/src/__package__.ts +2 -2
- package/types/Dendrogram.d.ts.map +1 -1
- package/types/Treemap.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
})(this, (function (exports, api, common) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var PKG_NAME = "@hpcc-js/tree";
|
|
8
|
-
var PKG_VERSION = "2.39.
|
|
9
|
-
var BUILD_VERSION = "2.103.
|
|
8
|
+
var PKG_VERSION = "2.39.7";
|
|
9
|
+
var BUILD_VERSION = "2.103.6";
|
|
10
10
|
|
|
11
11
|
/*! *****************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1498,7 +1498,12 @@
|
|
|
1498
1498
|
tmp = tmp.children[0];
|
|
1499
1499
|
}
|
|
1500
1500
|
if (d.depth > 0) {
|
|
1501
|
-
|
|
1501
|
+
if (tmp.origRows) {
|
|
1502
|
+
context.click(context.rowToObj(tmp.origRows[0]), context.mappings()[d.depth - 1].column(), true);
|
|
1503
|
+
}
|
|
1504
|
+
else {
|
|
1505
|
+
context.click(tmp.data, context.mappings()[d.depth - 1].column(), true);
|
|
1506
|
+
}
|
|
1502
1507
|
}
|
|
1503
1508
|
})
|
|
1504
1509
|
.on("dblclick", function (d) {
|
|
@@ -1507,7 +1512,12 @@
|
|
|
1507
1512
|
tmp = tmp.children[0];
|
|
1508
1513
|
}
|
|
1509
1514
|
if (d.depth > 0) {
|
|
1510
|
-
|
|
1515
|
+
if (tmp.origRows) {
|
|
1516
|
+
context.dblclick(context.rowToObj(tmp.origRows[0]), context.mappings()[d.depth - 1].column(), true);
|
|
1517
|
+
}
|
|
1518
|
+
else {
|
|
1519
|
+
context.dblclick(tmp.data, context.mappings()[d.depth - 1].column(), true);
|
|
1520
|
+
}
|
|
1511
1521
|
}
|
|
1512
1522
|
})
|
|
1513
1523
|
.each(function () {
|
|
@@ -2673,25 +2683,35 @@
|
|
|
2673
2683
|
.attr("class", "node")
|
|
2674
2684
|
.call(this._selection.enter.bind(this._selection))
|
|
2675
2685
|
.on("click", function (d) {
|
|
2676
|
-
if (d
|
|
2686
|
+
if (d) {
|
|
2677
2687
|
var columnLabel_1 = "";
|
|
2678
2688
|
context.mappings().forEach(function (mapping) {
|
|
2679
2689
|
if (mapping.column()) {
|
|
2680
2690
|
columnLabel_1 = mapping.column();
|
|
2681
2691
|
}
|
|
2682
2692
|
});
|
|
2683
|
-
|
|
2693
|
+
if (d.origRows) {
|
|
2694
|
+
context.click(context.rowToObj(d.origRows[0]), columnLabel_1, context._selection.selected(this));
|
|
2695
|
+
}
|
|
2696
|
+
else {
|
|
2697
|
+
context.click(d.data, columnLabel_1, context._selection.selected(this));
|
|
2698
|
+
}
|
|
2684
2699
|
}
|
|
2685
2700
|
})
|
|
2686
2701
|
.on("dblclick", function (d) {
|
|
2687
|
-
if (d
|
|
2702
|
+
if (d) {
|
|
2688
2703
|
var columnLabel_2 = "";
|
|
2689
2704
|
context.mappings().forEach(function (mapping) {
|
|
2690
2705
|
if (mapping.column()) {
|
|
2691
2706
|
columnLabel_2 = mapping.column();
|
|
2692
2707
|
}
|
|
2693
2708
|
});
|
|
2694
|
-
|
|
2709
|
+
if (d.origRows) {
|
|
2710
|
+
context.dblclick(context.rowToObj(d.origRows[0]), columnLabel_2, context._selection.selected(this));
|
|
2711
|
+
}
|
|
2712
|
+
else {
|
|
2713
|
+
context.dblclick(d.data, columnLabel_2, context._selection.selected(this));
|
|
2714
|
+
}
|
|
2695
2715
|
}
|
|
2696
2716
|
})
|
|
2697
2717
|
.merge(node)
|