We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b38a60 commit 8c83466Copy full SHA for 8c83466
1 file changed
Eplant/views/eFP/svg.tsx
@@ -96,7 +96,8 @@ export function getColor(
96
colorMode: ColorMode,
97
tissueStd?: number,
98
maskThreshold?: number,
99
- maskingEnabled?: boolean
+ maskingEnabled?: boolean,
100
+ absoluteMax?: number
101
): string {
102
const extremum = Math.max(
103
Math.abs(Math.log2(group.min / control)),
@@ -118,7 +119,7 @@ export function getColor(
118
119
return mix(
120
theme.palette.neutral.main,
121
theme.palette.hot.main,
- value / group.max
122
+ value / (absoluteMax ?? group.max)
123
)
124
}
125
@@ -145,7 +146,8 @@ export function useStyles(
145
146
colorMode,
147
tissue.std,
148
maskThreshold,
- maskingEnabled
149
+ maskingEnabled,
150
+ data.max
151
)} !important; }`
152
153
0 commit comments