Skip to content

Commit f8bb363

Browse files
y0
1 parent 4dce894 commit f8bb363

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/components/StateRoute/ComponentMap/ComponentMap.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,11 @@ export default function ComponentMap({
255255
}
256256
// go to https://en.wikipedia.org/wiki/Logistic_function
257257
// for an explanation of Logistic functions and parameters used
258-
const yshift = -3;
258+
const y0 = -3;
259259
const x0 = 5;
260260
const L = 25;
261261
const k = .4;
262-
const strokeWidthIndex = yshift + L / (1 + Math.exp(-k * (childPropsLength - x0)));
262+
const strokeWidthIndex = y0 + L / (1 + Math.exp(-k * (childPropsLength - x0)));
263263
// const strokeWidthIndex = childPropsLength * 2.5 + 1;
264264
console.log('strokeWidthIndex: ', strokeWidthIndex);
265265

@@ -271,7 +271,7 @@ export default function ComponentMap({
271271
}
272272

273273
//testing hover functionality
274-
const [isHovered, setIsHovered] = React.useState(false);
274+
// const [isHovered, setIsHovered] = React.useState(false);
275275

276276
//hover state
277277
const [isHovered, setIsHovered] = useState(false);

0 commit comments

Comments
 (0)