Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/hubmapconsortium/hra-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
bherr2 committed Dec 1, 2023
2 parents f126c08 + 9501945 commit 557b952
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ GradientLegendInfo:
text: Expression is scaled linearly to the range [0,1]. Scaling is done by designating the minimum value in the current view to 0 and the max is assigned to 1.
SizeLegendInfo:
type: text
text: The percentage of cells in the FTU is calculated by dividing the total number of cells in all FTUs by the number of all cells in that tissue section.
text: The percentage of cells in the FTU is calculated by dividing the total number of cells in the FTU by the number of all cells in that tissue section.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class BiomarkerDetailsComponent {
* Highlights cells matching the label
* @param event
*/
highlightCells(label: string) {
highlightCells(label?: string) {
this.highlightCell(label);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@
</ng-container>

<tr mat-header-row *matHeaderRowDef="columnsWithTypeAndCount; sticky: true"></tr>
<tr mat-row *matRowDef="let row; columns: columnsWithTypeAndCount" (mouseover)="rowHover.emit(row[0])"></tr>
<tr
mat-row
*matRowDef="let row; columns: columnsWithTypeAndCount"
(mouseover)="rowHover.emit(row[0])"
(mouseout)="rowHover.emit(undefined)"
></tr>
</table>

<ng-template #columnHover let-columnName>
Expand Down
2 changes: 1 addition & 1 deletion libs/state/src/lib/illustrator/illustrator.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class SetClicked extends Action('Set Selection on Clicked') {
*/
export class HighlightCellType extends Action('Highlight Cell Type Id') {
/** Initializes the Mapping Item */
constructor(readonly hoverLabel: string) {
constructor(readonly hoverLabel?: string) {
super();
}
}
Expand Down
2 changes: 1 addition & 1 deletion libs/state/src/lib/illustrator/illustrator.state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class IllustratorState {
*/
@Action(HighlightCellType)
HighlightCellType({ patchState, getState }: Context, { hoverLabel }: HighlightCellType): void {
const match = getState().mapping.find((entry) => entry.label.toLowerCase() === hoverLabel.toLowerCase());
const match = getState().mapping.find((entry) => entry.label.toLowerCase() === hoverLabel?.toLowerCase());
patchState({ hoveredCellTypeId: match ? match.ontologyId : undefined });
}
}

0 comments on commit 557b952

Please sign in to comment.