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.es.js CHANGED
@@ -10139,6 +10139,9 @@ var AxisScaleSwitch = /** @class */ (function (_super) {
10139
10139
  fontWeight: this.props.selectedScale === scale
10140
10140
  ? 'bolder'
10141
10141
  : 'normal',
10142
+ color: this.props.selectedScale === scale ? '#fff' : '#6c757d',
10143
+ backgroundColor: this.props.selectedScale === scale ? '#6c757d' : '#fff',
10144
+ borderColor: '#6c757d',
10142
10145
  }, onClick: onClick }, scale));
10143
10146
  }
10144
10147
  });
@@ -12059,7 +12062,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
12059
12062
  var _this = this;
12060
12063
  return this.groupedMutationsByPosition.map(function (groupedMutations) { return ({
12061
12064
  group: groupedMutations.group,
12062
- counts: _this.countUniqueMutationsByPosition(groupedMutations.mutations),
12065
+ counts: _this.countUniqueMutationsByPosition(groupedMutations.mutations, groupedMutations.group),
12063
12066
  }); });
12064
12067
  },
12065
12068
  enumerable: false,
@@ -12076,7 +12079,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
12076
12079
  enumerable: false,
12077
12080
  configurable: true,
12078
12081
  writable: true,
12079
- value: function (mutationsByPosition) {
12082
+ value: function (mutationsByPosition, group) {
12080
12083
  var _this = this;
12081
12084
  var map = {};
12082
12085
  Object.keys(mutationsByPosition).forEach(function (pos) {
@@ -12084,7 +12087,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
12084
12087
  // for each position multiple mutations for the same patient is counted only once
12085
12088
  var mutations = mutationsByPosition[position];
12086
12089
  if (mutations) {
12087
- map[position] = _this.countUniqueMutations(mutations);
12090
+ map[position] = _this.countUniqueMutations(mutations, group);
12088
12091
  }
12089
12092
  });
12090
12093
  return map;
@@ -12094,7 +12097,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
12094
12097
  enumerable: false,
12095
12098
  configurable: true,
12096
12099
  writable: true,
12097
- value: function (mutations) {
12100
+ value: function (mutations, group) {
12098
12101
  // assume by default all mutations are unique
12099
12102
  // child classes need to override this method to have a custom way of counting unique mutations
12100
12103
  return this.config.getMutationCount