@wcardinal/wcardinal-ui 0.294.0 → 0.296.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/types/wcardinal/ui/d-chart-axis-base-tick-container.d.ts +6 -1
- package/dist/types/wcardinal/ui/d-chart-coordinate-base.d.ts +2 -0
- package/dist/types/wcardinal/ui/d-table-data-tree-item-accessor.d.ts +9 -4
- package/dist/types/wcardinal/ui/d-table-data-tree-selection-impl.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-table-data-tree.d.ts +2 -2
- package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js +22 -15
- package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-base.js +12 -3
- package/dist/wcardinal/ui/d-chart-coordinate-base.js.map +1 -1
- package/dist/wcardinal/ui/d-table-data-tree-filter.js +12 -8
- package/dist/wcardinal/ui/d-table-data-tree-filter.js.map +1 -1
- package/dist/wcardinal/ui/d-table-data-tree-item-accessor.js +13 -3
- package/dist/wcardinal/ui/d-table-data-tree-item-accessor.js.map +1 -1
- package/dist/wcardinal/ui/d-table-data-tree-selection-impl.js +7 -5
- package/dist/wcardinal/ui/d-table-data-tree-selection-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-table-data-tree.js +5 -4
- package/dist/wcardinal/ui/d-table-data-tree.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +1 -1
- package/dist/wcardinal-ui-theme-dark.min.js +1 -1
- package/dist/wcardinal-ui-theme-white.js +1 -1
- package/dist/wcardinal-ui-theme-white.min.js +1 -1
- package/dist/wcardinal-ui.cjs.js +106 -74
- package/dist/wcardinal-ui.js +106 -74
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.296.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -54947,6 +54947,41 @@
|
|
|
54947
54947
|
return DChartAxisBaseTickMinor;
|
|
54948
54948
|
}());
|
|
54949
54949
|
|
|
54950
|
+
/*
|
|
54951
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
54952
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
54953
|
+
*/
|
|
54954
|
+
var DChartRegionImpl = /** @class */ (function () {
|
|
54955
|
+
function DChartRegionImpl(from, to) {
|
|
54956
|
+
this.from = from;
|
|
54957
|
+
this.to = to;
|
|
54958
|
+
}
|
|
54959
|
+
DChartRegionImpl.prototype.set = function (from, to) {
|
|
54960
|
+
if (from != null) {
|
|
54961
|
+
this.from = from;
|
|
54962
|
+
}
|
|
54963
|
+
if (to != null) {
|
|
54964
|
+
this.to = to;
|
|
54965
|
+
}
|
|
54966
|
+
return this;
|
|
54967
|
+
};
|
|
54968
|
+
DChartRegionImpl.prototype.add = function (from, to) {
|
|
54969
|
+
if (!isNaN$1(from)) {
|
|
54970
|
+
this.from = isNaN$1(this.from) ? from : Math.min(this.from, from);
|
|
54971
|
+
}
|
|
54972
|
+
if (!isNaN$1(to)) {
|
|
54973
|
+
this.to = isNaN$1(this.to) ? to : Math.max(this.to, to);
|
|
54974
|
+
}
|
|
54975
|
+
return this;
|
|
54976
|
+
};
|
|
54977
|
+
DChartRegionImpl.prototype.clear = function () {
|
|
54978
|
+
this.from = NaN;
|
|
54979
|
+
this.to = NaN;
|
|
54980
|
+
return this;
|
|
54981
|
+
};
|
|
54982
|
+
return DChartRegionImpl;
|
|
54983
|
+
}());
|
|
54984
|
+
|
|
54950
54985
|
var DChartAxisBaseTickContainer = /** @class */ (function () {
|
|
54951
54986
|
function DChartAxisBaseTickContainer(parser, options) {
|
|
54952
54987
|
this._parser = parser;
|
|
@@ -54955,6 +54990,7 @@
|
|
|
54955
54990
|
this._minor = this.newMinor(parser, options);
|
|
54956
54991
|
this._majorTicks = [];
|
|
54957
54992
|
this._minorTicks = [];
|
|
54993
|
+
this._work = new DChartRegionImpl(0, 0);
|
|
54958
54994
|
}
|
|
54959
54995
|
Object.defineProperty(DChartAxisBaseTickContainer.prototype, "major", {
|
|
54960
54996
|
get: function () {
|
|
@@ -54994,7 +55030,6 @@
|
|
|
54994
55030
|
var minorShapes = this._minor.shapes;
|
|
54995
55031
|
if (container != null && majorShapes && minorShapes) {
|
|
54996
55032
|
var plotArea = container.plotArea;
|
|
54997
|
-
var bounds = plotArea.getBoundsInContainer();
|
|
54998
55033
|
var transform = plotArea.container.transform.localTransform;
|
|
54999
55034
|
var gridlineShapes = this._major.gridline.shapes;
|
|
55000
55035
|
var parser = this._parser;
|
|
@@ -55004,43 +55039,49 @@
|
|
|
55004
55039
|
case DChartAxisPosition.TOP:
|
|
55005
55040
|
coordinate = plotArea.coordinate.x.get(parser.coordinate);
|
|
55006
55041
|
if (coordinate) {
|
|
55007
|
-
var
|
|
55008
|
-
var domainTo = coordinate.unmap(coordinate.transform.unmap(bounds.x + bounds.width));
|
|
55042
|
+
var domain = this.getDomain(plotArea, coordinate, this._work);
|
|
55009
55043
|
var plotAreaHeight = plotArea.height;
|
|
55010
|
-
return this.updateX(
|
|
55044
|
+
return this.updateX(domain.from, domain.to, coordinate, majorShapes, minorShapes, gridlineShapes, 0 - offset, transform, plotAreaHeight);
|
|
55011
55045
|
}
|
|
55012
55046
|
break;
|
|
55013
55047
|
case DChartAxisPosition.BOTTOM:
|
|
55014
55048
|
coordinate = plotArea.coordinate.x.get(parser.coordinate);
|
|
55015
55049
|
if (coordinate) {
|
|
55016
|
-
var
|
|
55017
|
-
var domainTo = coordinate.unmap(coordinate.transform.unmap(bounds.x + bounds.width));
|
|
55050
|
+
var domain = this.getDomain(plotArea, coordinate, this._work);
|
|
55018
55051
|
var plotAreaHeight = plotArea.height;
|
|
55019
|
-
return this.updateX(
|
|
55052
|
+
return this.updateX(domain.from, domain.to, coordinate, majorShapes, minorShapes, gridlineShapes, plotAreaHeight + offset, transform, plotAreaHeight);
|
|
55020
55053
|
}
|
|
55021
55054
|
break;
|
|
55022
55055
|
case DChartAxisPosition.LEFT:
|
|
55023
55056
|
coordinate = plotArea.coordinate.y.get(parser.coordinate);
|
|
55024
55057
|
if (coordinate) {
|
|
55025
|
-
var
|
|
55026
|
-
var domainTo = coordinate.unmap(coordinate.transform.unmap(bounds.y + bounds.height));
|
|
55058
|
+
var range = this.getRange(plotArea, coordinate, this._work);
|
|
55027
55059
|
var plotAreaWidth = plotArea.width;
|
|
55028
|
-
return this.updateY(
|
|
55060
|
+
return this.updateY(range.from, range.to, coordinate, majorShapes, minorShapes, gridlineShapes, 0 - offset, transform, plotAreaWidth);
|
|
55029
55061
|
}
|
|
55030
55062
|
break;
|
|
55031
55063
|
case DChartAxisPosition.RIGHT:
|
|
55032
55064
|
coordinate = plotArea.coordinate.y.get(parser.coordinate);
|
|
55033
55065
|
if (coordinate) {
|
|
55034
|
-
var
|
|
55035
|
-
var domainTo = coordinate.unmap(coordinate.transform.unmap(bounds.y + bounds.height));
|
|
55066
|
+
var range = this.getRange(plotArea, coordinate, this._work);
|
|
55036
55067
|
var plotAreaWidth = plotArea.width;
|
|
55037
|
-
return this.updateY(
|
|
55068
|
+
return this.updateY(range.from, range.to, coordinate, majorShapes, minorShapes, gridlineShapes, plotAreaWidth + offset, transform, plotAreaWidth);
|
|
55038
55069
|
}
|
|
55039
55070
|
break;
|
|
55040
55071
|
}
|
|
55041
55072
|
}
|
|
55042
55073
|
return false;
|
|
55043
55074
|
};
|
|
55075
|
+
DChartAxisBaseTickContainer.prototype.getDomain = function (plotArea, coordinate, result) {
|
|
55076
|
+
var bounds = plotArea.getBoundsInContainer();
|
|
55077
|
+
var transform = coordinate.transform;
|
|
55078
|
+
return result.set(coordinate.unmap(transform.unmap(bounds.x)), coordinate.unmap(transform.unmap(bounds.x + bounds.width)));
|
|
55079
|
+
};
|
|
55080
|
+
DChartAxisBaseTickContainer.prototype.getRange = function (plotArea, coordinate, result) {
|
|
55081
|
+
var bounds = plotArea.getBoundsInContainer();
|
|
55082
|
+
var transform = coordinate.transform;
|
|
55083
|
+
return result.set(coordinate.unmap(transform.unmap(bounds.y)), coordinate.unmap(transform.unmap(bounds.y + bounds.height)));
|
|
55084
|
+
};
|
|
55044
55085
|
DChartAxisBaseTickContainer.prototype.updateX = function (domainMin, domainMax, coordinate, majorShapes, minorShapes, gridlineShapes, shapePositionY, transform, plotAreaHeight) {
|
|
55045
55086
|
var tick = this._parser.tick;
|
|
55046
55087
|
var majorTick = tick.major;
|
|
@@ -55094,7 +55135,7 @@
|
|
|
55094
55135
|
}
|
|
55095
55136
|
return true;
|
|
55096
55137
|
};
|
|
55097
|
-
DChartAxisBaseTickContainer.prototype.updateY = function (
|
|
55138
|
+
DChartAxisBaseTickContainer.prototype.updateY = function (rangeMin, rangeMax, coordinate, majorShapes, minorShapes, gridlineShapes, shapePositionX, transform, plotAreaWidth) {
|
|
55098
55139
|
var tick = this._parser.tick;
|
|
55099
55140
|
var majorTick = tick.major;
|
|
55100
55141
|
var majorCount = majorTick.count;
|
|
@@ -55108,7 +55149,7 @@
|
|
|
55108
55149
|
var minorFormatter = minorTick.formatter;
|
|
55109
55150
|
var majorTicks = this._majorTicks;
|
|
55110
55151
|
var minorTicks = this._minorTicks;
|
|
55111
|
-
this.newTicks(coordinate,
|
|
55152
|
+
this.newTicks(coordinate, rangeMin, rangeMax, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorTicks, minorTicks);
|
|
55112
55153
|
var d = transform.d;
|
|
55113
55154
|
var ty = transform.ty;
|
|
55114
55155
|
for (var i = 0; i < majorCapacity; ++i) {
|
|
@@ -55609,41 +55650,6 @@
|
|
|
55609
55650
|
return DChartCoordinateTransformMarkImpl;
|
|
55610
55651
|
}());
|
|
55611
55652
|
|
|
55612
|
-
/*
|
|
55613
|
-
* Copyright (C) 2019 Toshiba Corporation
|
|
55614
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
55615
|
-
*/
|
|
55616
|
-
var DChartRegionImpl = /** @class */ (function () {
|
|
55617
|
-
function DChartRegionImpl(from, to) {
|
|
55618
|
-
this.from = from;
|
|
55619
|
-
this.to = to;
|
|
55620
|
-
}
|
|
55621
|
-
DChartRegionImpl.prototype.set = function (from, to) {
|
|
55622
|
-
if (from != null) {
|
|
55623
|
-
this.from = from;
|
|
55624
|
-
}
|
|
55625
|
-
if (to != null) {
|
|
55626
|
-
this.to = to;
|
|
55627
|
-
}
|
|
55628
|
-
return this;
|
|
55629
|
-
};
|
|
55630
|
-
DChartRegionImpl.prototype.add = function (from, to) {
|
|
55631
|
-
if (!isNaN$1(from)) {
|
|
55632
|
-
this.from = isNaN$1(this.from) ? from : Math.min(this.from, from);
|
|
55633
|
-
}
|
|
55634
|
-
if (!isNaN$1(to)) {
|
|
55635
|
-
this.to = isNaN$1(this.to) ? to : Math.max(this.to, to);
|
|
55636
|
-
}
|
|
55637
|
-
return this;
|
|
55638
|
-
};
|
|
55639
|
-
DChartRegionImpl.prototype.clear = function () {
|
|
55640
|
-
this.from = NaN;
|
|
55641
|
-
this.to = NaN;
|
|
55642
|
-
return this;
|
|
55643
|
-
};
|
|
55644
|
-
return DChartRegionImpl;
|
|
55645
|
-
}());
|
|
55646
|
-
|
|
55647
55653
|
/*
|
|
55648
55654
|
* Copyright (C) 2019 Toshiba Corporation
|
|
55649
55655
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -55715,18 +55721,27 @@
|
|
|
55715
55721
|
var container = this._container;
|
|
55716
55722
|
if (container) {
|
|
55717
55723
|
var plotArea = container.container.plotArea;
|
|
55718
|
-
var padding = plotArea.padding;
|
|
55719
55724
|
var work = this._work;
|
|
55720
55725
|
switch (this._direction) {
|
|
55721
55726
|
case DChartCoordinateDirection.X:
|
|
55722
|
-
this.
|
|
55727
|
+
this.getPixelDomain(plotArea, work);
|
|
55728
|
+
this.doFit_(work.from, work.to, this.toFitDomain(from, to, plotArea, work), result);
|
|
55723
55729
|
break;
|
|
55724
55730
|
case DChartCoordinateDirection.Y:
|
|
55725
|
-
this.
|
|
55731
|
+
this.getPixelRange(plotArea, work);
|
|
55732
|
+
this.doFit_(work.from, work.to, this.toFitRange(from, to, plotArea, work), result);
|
|
55726
55733
|
break;
|
|
55727
55734
|
}
|
|
55728
55735
|
}
|
|
55729
55736
|
};
|
|
55737
|
+
DChartCoordinateBase.prototype.getPixelDomain = function (plotArea, result) {
|
|
55738
|
+
var padding = plotArea.padding;
|
|
55739
|
+
return result.set(padding.getLeft(), plotArea.width - padding.getRight());
|
|
55740
|
+
};
|
|
55741
|
+
DChartCoordinateBase.prototype.getPixelRange = function (plotArea, result) {
|
|
55742
|
+
var padding = plotArea.padding;
|
|
55743
|
+
return result.set(plotArea.height - padding.getBottom(), padding.getTop());
|
|
55744
|
+
};
|
|
55730
55745
|
DChartCoordinateBase.prototype.toFitDomain = function (from, to, plotArea, result) {
|
|
55731
55746
|
if (from == null) {
|
|
55732
55747
|
from = this._from;
|
|
@@ -69661,43 +69676,47 @@
|
|
|
69661
69676
|
}
|
|
69662
69677
|
};
|
|
69663
69678
|
DTableDataTreeFilter.prototype.hasFiltered = function (parent, nodes, filter) {
|
|
69664
|
-
var
|
|
69679
|
+
var accessor = this._parent.accessor;
|
|
69680
|
+
var toChildren = accessor.toChildren;
|
|
69681
|
+
var hasChildren = accessor.hasChildren;
|
|
69665
69682
|
for (var i = 0, imax = nodes.length; i < imax; ++i) {
|
|
69666
69683
|
var node = nodes[i];
|
|
69667
69684
|
if (this.isFiltered(node, -1, filter)) {
|
|
69668
69685
|
return true;
|
|
69669
69686
|
}
|
|
69670
69687
|
var children = toChildren(node);
|
|
69671
|
-
if (children
|
|
69672
|
-
0 < children.length &&
|
|
69673
|
-
this.hasFiltered(parent, children, filter)) {
|
|
69688
|
+
if (hasChildren(node, children) && this.hasFiltered(parent, children, filter)) {
|
|
69674
69689
|
return true;
|
|
69675
69690
|
}
|
|
69676
69691
|
}
|
|
69677
69692
|
return false;
|
|
69678
69693
|
};
|
|
69679
69694
|
DTableDataTreeFilter.prototype.addAllToFiltered = function (parent, nodes, filtered, cursor) {
|
|
69680
|
-
var
|
|
69695
|
+
var accessor = this._parent.accessor;
|
|
69696
|
+
var toChildren = accessor.toChildren;
|
|
69697
|
+
var hasChildren = accessor.hasChildren;
|
|
69681
69698
|
for (var i = 0, imax = nodes.length; i < imax; ++i) {
|
|
69682
69699
|
var node = nodes[i];
|
|
69683
69700
|
filtered.push(cursor[0]);
|
|
69684
69701
|
cursor[0] += 1;
|
|
69685
69702
|
var children = toChildren(node);
|
|
69686
|
-
if (
|
|
69703
|
+
if (hasChildren(node, children) && parent.isOpened(node)) {
|
|
69687
69704
|
this.addAllToFiltered(parent, children, filtered, cursor);
|
|
69688
69705
|
}
|
|
69689
69706
|
}
|
|
69690
69707
|
};
|
|
69691
69708
|
DTableDataTreeFilter.prototype.newFilteredSub = function (parent, nodes, filter, filtered, cursor) {
|
|
69692
69709
|
var result = false;
|
|
69693
|
-
var
|
|
69710
|
+
var accessor = this._parent.accessor;
|
|
69711
|
+
var toChildren = accessor.toChildren;
|
|
69712
|
+
var hasChildren = accessor.hasChildren;
|
|
69694
69713
|
for (var i = 0, imax = nodes.length; i < imax; ++i) {
|
|
69695
69714
|
var node = nodes[i];
|
|
69696
69715
|
var index = cursor[0];
|
|
69697
69716
|
cursor[0] += 1;
|
|
69698
69717
|
var isFiltered = this.isFiltered(node, index, filter);
|
|
69699
69718
|
var children = toChildren(node);
|
|
69700
|
-
if (
|
|
69719
|
+
if (hasChildren(node, children)) {
|
|
69701
69720
|
if (parent.isOpened(node)) {
|
|
69702
69721
|
if (isFiltered) {
|
|
69703
69722
|
filtered.push(index);
|
|
@@ -69805,11 +69824,21 @@
|
|
|
69805
69824
|
var toChildren$1 = function (node) {
|
|
69806
69825
|
return node.children;
|
|
69807
69826
|
};
|
|
69827
|
+
var hasChildren = function (node, children) {
|
|
69828
|
+
return children != null && 0 < children.length;
|
|
69829
|
+
};
|
|
69808
69830
|
var DTableDataTreeItemAccessor = /** @class */ (function () {
|
|
69809
69831
|
function DTableDataTreeItemAccessor(options) {
|
|
69810
|
-
|
|
69811
|
-
|
|
69812
|
-
|
|
69832
|
+
if (options != null) {
|
|
69833
|
+
this.toParent = options.toParent || toParent;
|
|
69834
|
+
this.toChildren = options.toChildren || toChildren$1;
|
|
69835
|
+
this.hasChildren = options.hasChildren || hasChildren;
|
|
69836
|
+
}
|
|
69837
|
+
else {
|
|
69838
|
+
this.toParent = toParent;
|
|
69839
|
+
this.toChildren = toChildren$1;
|
|
69840
|
+
this.hasChildren = hasChildren;
|
|
69841
|
+
}
|
|
69813
69842
|
}
|
|
69814
69843
|
return DTableDataTreeItemAccessor;
|
|
69815
69844
|
}());
|
|
@@ -69851,9 +69880,11 @@
|
|
|
69851
69880
|
});
|
|
69852
69881
|
DTableDataTreeSelectionImpl.prototype.onNodeChange = function (nodes) {
|
|
69853
69882
|
if (nodes != null) {
|
|
69854
|
-
var
|
|
69883
|
+
var accessor = this._parent.accessor;
|
|
69884
|
+
var toChildren = accessor.toChildren;
|
|
69885
|
+
var hasChildren = accessor.hasChildren;
|
|
69855
69886
|
var oldRows = this._rows;
|
|
69856
|
-
var newRows = this.newRows(nodes, toChildren, oldRows, new Set());
|
|
69887
|
+
var newRows = this.newRows(nodes, toChildren, hasChildren, oldRows, new Set());
|
|
69857
69888
|
if (oldRows.size !== newRows.size) {
|
|
69858
69889
|
this._rows = newRows;
|
|
69859
69890
|
this.onChange();
|
|
@@ -69867,15 +69898,15 @@
|
|
|
69867
69898
|
}
|
|
69868
69899
|
}
|
|
69869
69900
|
};
|
|
69870
|
-
DTableDataTreeSelectionImpl.prototype.newRows = function (nodes, toChildren, rows, result) {
|
|
69901
|
+
DTableDataTreeSelectionImpl.prototype.newRows = function (nodes, toChildren, hasChildren, rows, result) {
|
|
69871
69902
|
for (var i = 0, imax = nodes.length; i < imax; ++i) {
|
|
69872
69903
|
var node = nodes[i];
|
|
69873
69904
|
if (rows.has(node)) {
|
|
69874
69905
|
result.add(node);
|
|
69875
69906
|
}
|
|
69876
69907
|
var children = toChildren(node);
|
|
69877
|
-
if (children
|
|
69878
|
-
this.newRows(children, toChildren, rows, result);
|
|
69908
|
+
if (hasChildren(node, children)) {
|
|
69909
|
+
this.newRows(children, toChildren, hasChildren, rows, result);
|
|
69879
69910
|
}
|
|
69880
69911
|
}
|
|
69881
69912
|
return result;
|
|
@@ -70314,7 +70345,8 @@
|
|
|
70314
70345
|
var supplimentals = this._supplimentals;
|
|
70315
70346
|
var flags = this._flags;
|
|
70316
70347
|
if (nodes != null) {
|
|
70317
|
-
var
|
|
70348
|
+
var accessor = this._accessor;
|
|
70349
|
+
var irows = this.newRows(nodes, 0, 0, rows, supplimentals, flags, this._reverse, accessor.toChildren, accessor.hasChildren);
|
|
70318
70350
|
if (irows !== rows.length) {
|
|
70319
70351
|
rows.length = irows;
|
|
70320
70352
|
supplimentals.length = irows;
|
|
@@ -70328,7 +70360,7 @@
|
|
|
70328
70360
|
DTableDataTree.prototype.toSupplimental = function (ilevel, hasChildren, isOpened) {
|
|
70329
70361
|
return (ilevel << 2) | (hasChildren ? 2 : 0) | (isOpened ? 1 : 0);
|
|
70330
70362
|
};
|
|
70331
|
-
DTableDataTree.prototype.newRows = function (nodes, irows, ilevel, rows, supplimentals, flags, reverse, toChildren) {
|
|
70363
|
+
DTableDataTree.prototype.newRows = function (nodes, irows, ilevel, rows, supplimentals, flags, reverse, toChildren, hasChildren) {
|
|
70332
70364
|
var nodesLength = nodes.length;
|
|
70333
70365
|
var istart = reverse ? nodesLength - 1 : 0;
|
|
70334
70366
|
var idelta = reverse ? -1 : +1;
|
|
@@ -70336,7 +70368,7 @@
|
|
|
70336
70368
|
var node = nodes[i];
|
|
70337
70369
|
var children = toChildren(node);
|
|
70338
70370
|
var isOpened = flags.has(node);
|
|
70339
|
-
var supplimental = this.toSupplimental(ilevel,
|
|
70371
|
+
var supplimental = this.toSupplimental(ilevel, hasChildren(node, children), isOpened);
|
|
70340
70372
|
if (irows < rows.length) {
|
|
70341
70373
|
rows[irows] = node;
|
|
70342
70374
|
supplimentals[irows] = supplimental;
|
|
@@ -70347,7 +70379,7 @@
|
|
|
70347
70379
|
}
|
|
70348
70380
|
irows += 1;
|
|
70349
70381
|
if (isOpened && children) {
|
|
70350
|
-
irows = this.newRows(children, irows, ilevel + 1, rows, supplimentals, flags, reverse, toChildren);
|
|
70382
|
+
irows = this.newRows(children, irows, ilevel + 1, rows, supplimentals, flags, reverse, toChildren, hasChildren);
|
|
70351
70383
|
}
|
|
70352
70384
|
}
|
|
70353
70385
|
return irows;
|