@@ -52,6 +52,12 @@ export const Component = defineComponent({
ctx.fillStyle = bColor;
ctx.fill();
}
+
+ if (store.isEditMode) {
+ ctx.fillStyle = 'red';
+ // start point
+ ctx.fillRect(width * data.value.cp1-5, 0, 10, 10);
+ }
@@ -78,8 +78,8 @@ export const Form = createAttrsForm([
component: Slider,
props: {
defaultValue: 0.5,
- min: 0,
- max: 1,
+ min: -0.5,
+ max: 1.5,
step: 0.01,
},