Skip to content

Commit 1a2f9d8

Browse files
committed
feat(website): add a new control for non-uniform border-radius
1 parent 4bd869e commit 1a2f9d8

File tree

8 files changed

+409
-34
lines changed

8 files changed

+409
-34
lines changed

website/src/components/controls/ControlsGroup.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
AngleControlConfig,
77
AnnotationsControlConfig,
88
BlendModeControlConfig,
9+
BorderRadiusControlConfig,
910
BoxAnchorControlConfig,
1011
BulletColorsControlConfig,
1112
CartesianOrientationControlConfig,
@@ -46,6 +47,7 @@ import {
4647
import {
4748
AngleControl,
4849
AnnotationsControl,
50+
BorderRadiusControl,
4951
BoxAnchorControl,
5052
CartesianOrientationControl,
5153
LineWidthControl,
@@ -514,6 +516,19 @@ const ControlSwitcher = memo(
514516
/>
515517
)
516518

519+
case 'borderRadius':
520+
return (
521+
<BorderRadiusControl
522+
id={id}
523+
property={property as ChartPropertyWithControl<BorderRadiusControlConfig>}
524+
flavors={flavors}
525+
currentFlavor={currentFlavor}
526+
value={value}
527+
onChange={handleChange}
528+
context={context}
529+
/>
530+
)
531+
517532
default:
518533
throw new Error(
519534
// @ts-expect-error this can happen at runtime.

0 commit comments

Comments
 (0)