-
- this.setState({ currentColorPicker: null })
- }
- />
- this.changeStrokeColor(color.hex)}
- />
-
- )}
-
Stroke Color
+
+
+ }}
+ onClick={() =>
+ this.setState(s => ({
+ currentColorPicker:
+ s.currentColorPicker === ColorPicker.SHAPE_STROKE
+ ? null
+ : ColorPicker.SHAPE_STROKE
+ }))
+ }
+ />
+ {this.state.currentColorPicker === ColorPicker.SHAPE_STROKE && (
+
+
+ this.setState({ currentColorPicker: null })
+ }
+ />
+ this.changeStrokeColor(color.hex)}
+ />
+
+ )}
+
this.changeStrokeColor(e.target.value)}
+ />
{hasBackground() && (
-
-
Shape Background Color
+ <>
+
Background Color
-
+ >
)}
{hasBackground() && (
<>
-
Fill
-
-
-
-
-
-
-
-
-
+
Fill
+
{
+ this.changeProperty(element => {
+ element.fillStyle = value;
+ });
+ }}
+ />
>
)}
{hasStroke() && (
<>
- Stroke width
-
-
-
+ Stroke Width
+ {
+ this.changeProperty(element => {
+ element.strokeWidth = value;
+ });
+ }}
+ />
- Roughness
-
-
-
+ Slopiness
+
+ this.changeProperty(element => {
+ element.roughness = value;
+ })
+ }
+ />
>
)}
- Opacity
+ Opacity
- >
+
+
+
)}
diff --git a/src/styles.scss b/src/styles.scss
index a8f7f99721..8fed5efe78 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -53,6 +53,14 @@ body {
h5:first-of-type {
margin-top: 0;
}
+
+ .buttonList {
+ flex-wrap: wrap;
+
+ button {
+ margin-right: 4px;
+ }
+ }
}
}