react-mutation-mapper 0.8.62 → 0.8.63

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.
@@ -25,7 +25,7 @@ export declare type LollipopMutationPlotProps<T extends Mutation> = {
25
25
  bottomYAxisDefaultMax?: number;
26
26
  bottomYAxisDefaultMin?: number;
27
27
  yAxisLabelPadding?: number;
28
- lollipopTooltipCountInfo?: (count: number, mutations?: Partial<T>[], axisMode?: AxisScale) => JSX.Element;
28
+ lollipopTooltipCountInfo?: (count: number, mutations?: Partial<T>[], axisMode?: AxisScale, group?: string) => JSX.Element;
29
29
  yAxisLabelFormatter?: (symbol?: string, groupName?: string) => string;
30
30
  axisMode?: AxisScale;
31
31
  customControls?: JSX.Element;
package/dist/index.es.js CHANGED
@@ -7854,10 +7854,10 @@ var LollipopMutationPlot = /** @class */ (function (_super) {
7854
7854
  enumerable: false,
7855
7855
  configurable: true,
7856
7856
  writable: true,
7857
- value: function (mutationsAtPosition, countsByPosition) {
7857
+ value: function (mutationsAtPosition, countsByPosition, group) {
7858
7858
  var codon = mutationsAtPosition[0].proteinPosStart;
7859
7859
  var count = countsByPosition[codon];
7860
- var countInfo = this.props.lollipopTooltipCountInfo ? (this.props.lollipopTooltipCountInfo(count, mutationsAtPosition, this.props.axisMode)) : (React.createElement("strong", null,
7860
+ var countInfo = this.props.lollipopTooltipCountInfo ? (this.props.lollipopTooltipCountInfo(count, mutationsAtPosition, this.props.axisMode, group)) : (React.createElement("strong", null,
7861
7861
  count,
7862
7862
  " mutation", "" + (count !== 1 ? 's' : '')));
7863
7863
  var label = lollipopLabelText(mutationsAtPosition);
@@ -7955,7 +7955,7 @@ var LollipopMutationPlot = /** @class */ (function (_super) {
7955
7955
  group: group,
7956
7956
  placement: placement,
7957
7957
  count: mutationCount,
7958
- tooltip: _this.lollipopTooltip(mutations, countsByPosition),
7958
+ tooltip: _this.lollipopTooltip(mutations, countsByPosition, group),
7959
7959
  color: _this.props.getLollipopColor
7960
7960
  ? _this.props.getLollipopColor(mutations)
7961
7961
  : getColorForProteinImpactType(mutations, DEFAULT_PROTEIN_IMPACT_TYPE_COLORS, _this.props.getMutationCount, _this.props.isPutativeDriver),