Skip to content

Commit c8b6607

Browse files
committed
Update CompoundQualityVisualization.tsx
1 parent 325ffe9 commit c8b6607

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

website/src/components/VisualElements/CompoundQualityVisualization.tsx

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -232,38 +232,26 @@ export default function CompoundQualityVisualization({
232232
Time / Iterations →
233233
</text>
234234

235-
{/* Starting point (left side where both curves begin) */}
236-
<circle
237-
cx={startX}
238-
cy={centerY}
239-
r="7"
240-
className={homepageMode ? styles.homepageStartPoint : undefined}
241-
fill={homepageMode ? undefined : 'var(--ifm-color-emphasis-700)'}
242-
stroke="var(--ifm-background-color)"
243-
strokeWidth="2"
235+
{/* Negative curve fill area */}
236+
<path
237+
d={`${negativeCurvePath} L ${endX} ${centerY} L ${startX} ${centerY} Z`}
238+
fill="url(#negativeFill)"
244239
/>
245-
<text
246-
x={startX - 35}
247-
y={centerY + 5}
248-
className={`${styles.startLabel} ${homepageMode ? styles.homepageStartPoint : ''}`}
249-
textAnchor="middle"
250-
fontSize="11"
251-
fontWeight="600"
252-
fill={homepageMode ? undefined : 'var(--ifm-color-emphasis-700)'}
253-
>
254-
Start
255-
</text>
256240

257241
{/* Positive curve fill area */}
258242
<path
259243
d={`${positiveCurvePath} L ${endX} ${centerY} L ${startX} ${centerY} Z`}
260244
fill="url(#positiveFill)"
261245
/>
262246

263-
{/* Negative curve fill area */}
247+
{/* Negative curve path */}
264248
<path
265-
d={`${negativeCurvePath} L ${endX} ${centerY} L ${startX} ${centerY} Z`}
266-
fill="url(#negativeFill)"
249+
d={negativeCurvePath}
250+
className={styles.curvePathNegative}
251+
fill="none"
252+
stroke="url(#negativeGradient)"
253+
strokeWidth="4"
254+
strokeLinecap="round"
267255
/>
268256

269257
{/* Positive curve path */}
@@ -276,15 +264,27 @@ export default function CompoundQualityVisualization({
276264
strokeLinecap="round"
277265
/>
278266

279-
{/* Negative curve path */}
280-
<path
281-
d={negativeCurvePath}
282-
className={styles.curvePathNegative}
283-
fill="none"
284-
stroke="url(#negativeGradient)"
285-
strokeWidth="4"
286-
strokeLinecap="round"
267+
{/* Starting point (left side where both curves begin) */}
268+
<circle
269+
cx={startX}
270+
cy={centerY}
271+
r="7"
272+
className={homepageMode ? styles.homepageStartPoint : undefined}
273+
fill={homepageMode ? undefined : 'var(--ifm-color-emphasis-700)'}
274+
stroke="var(--ifm-background-color)"
275+
strokeWidth="2"
287276
/>
277+
<text
278+
x={startX - 35}
279+
y={centerY + 5}
280+
className={`${styles.startLabel} ${homepageMode ? styles.homepageStartPoint : ''}`}
281+
textAnchor="middle"
282+
fontSize="11"
283+
fontWeight="600"
284+
fill={homepageMode ? undefined : 'var(--ifm-color-emphasis-700)'}
285+
>
286+
Start
287+
</text>
288288

289289
{/* Positive feedback label (upper area) */}
290290
<text

0 commit comments

Comments
 (0)