react-mutation-mapper 0.8.58 → 0.8.60

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
@@ -10176,6 +10176,9 @@ var AxisScaleSwitch = /** @class */ (function (_super) {
10176
10176
  fontWeight: this.props.selectedScale === scale
10177
10177
  ? 'bolder'
10178
10178
  : 'normal',
10179
+ color: this.props.selectedScale === scale ? '#fff' : '#6c757d',
10180
+ backgroundColor: this.props.selectedScale === scale ? '#6c757d' : '#fff',
10181
+ borderColor: '#6c757d',
10179
10182
  }, onClick: onClick }, scale));
10180
10183
  }
10181
10184
  });
@@ -12096,7 +12099,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
12096
12099
  var _this = this;
12097
12100
  return this.groupedMutationsByPosition.map(function (groupedMutations) { return ({
12098
12101
  group: groupedMutations.group,
12099
- counts: _this.countUniqueMutationsByPosition(groupedMutations.mutations),
12102
+ counts: _this.countUniqueMutationsByPosition(groupedMutations.mutations, groupedMutations.group),
12100
12103
  }); });
12101
12104
  },
12102
12105
  enumerable: false,
@@ -12113,7 +12116,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
12113
12116
  enumerable: false,
12114
12117
  configurable: true,
12115
12118
  writable: true,
12116
- value: function (mutationsByPosition) {
12119
+ value: function (mutationsByPosition, group) {
12117
12120
  var _this = this;
12118
12121
  var map = {};
12119
12122
  Object.keys(mutationsByPosition).forEach(function (pos) {
@@ -12121,7 +12124,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
12121
12124
  // for each position multiple mutations for the same patient is counted only once
12122
12125
  var mutations = mutationsByPosition[position];
12123
12126
  if (mutations) {
12124
- map[position] = _this.countUniqueMutations(mutations);
12127
+ map[position] = _this.countUniqueMutations(mutations, group);
12125
12128
  }
12126
12129
  });
12127
12130
  return map;
@@ -12131,7 +12134,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
12131
12134
  enumerable: false,
12132
12135
  configurable: true,
12133
12136
  writable: true,
12134
- value: function (mutations) {
12137
+ value: function (mutations, group) {
12135
12138
  // assume by default all mutations are unique
12136
12139
  // child classes need to override this method to have a custom way of counting unique mutations
12137
12140
  return this.config.getMutationCount