Skip to content

Commit 61a717b

Browse files
committed
path: add touch, hover state
1 parent d707e31 commit 61a717b

11 files changed

+232
-197
lines changed

app/build/mojs-curve-editor.js

Lines changed: 182 additions & 180 deletions
Large diffs are not rendered by default.

app/build/mojs-curve-editor.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/css/blocks/curve-editor.postcss.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
top: 0;
2121
bottom: 0;
2222
padding: calc( $gap * $PX );
23+
24+
& icon-divider {
25+
margin: calc( 10*$PX ) auto;
26+
}
2327
}
2428

2529
&__right {
@@ -65,10 +69,6 @@
6569
}
6670
}
6771

68-
& icon-divider {
69-
margin: calc( 10*$PX ) calc( 4*$PX );
70-
}
71-
7272
&__mojs-logo {
7373
position: absolute;
7474
bottom: calc( 1.7 * $gap * $PX );
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"curve-editor":"_curve-editor_seic3_4","curve-editor__left":"_curve-editor__left_seic3_1","curve-editor__right":"_curve-editor__right_seic3_1","curve-editor__anchor-buttons":"_curve-editor__anchor-buttons_seic3_1","curve-editor__mojs-logo":"_curve-editor__mojs-logo_seic3_1"}
1+
{"curve-editor":"_curve-editor_hshpo_4","curve-editor__left":"_curve-editor__left_hshpo_1","curve-editor__right":"_curve-editor__right_hshpo_1","curve-editor__anchor-buttons":"_curve-editor__anchor-buttons_hshpo_1","curve-editor__mojs-logo":"_curve-editor__mojs-logo_hshpo_1"}

app/css/blocks/curve.postcss.css

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/css/blocks/curve.postcss.css.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"curve":"_curve_n7tci_5","curve__svg-wrapper":"_curve__svg-wrapper_n7tci_1","curve__svg":"_curve__svg_n7tci_1"}
1+
{"curve":"_curve_adube_5","curve__svg-wrapper":"_curve__svg-wrapper_adube_1","curve__svg":"_curve__svg_adube_1","curve__svg-path":"_curve__svg-path_adube_1"}

app/css/blocks/point.postcss.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $size: 10;
1212
background: #FFF;
1313
border-radius: 50%;
1414
z-index: 3;
15-
box-shadow: calc(2*$PX) calc(2*$PX) 0 rgba(0,0,0,.5);
15+
box-shadow: calc(3*$PX) calc(3*$PX) 0 rgba(0,0,0,.5);
1616

1717
&:after {
1818
content: '';

app/css/blocks/point.postcss.css.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"point":"_point_waxms_5"}
1+
{"point":"_point_ubp0t_5"}

app/js/reducers/points-reducer.babel.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ const pointsReducer = (state = INITIAL_STATE, action) => {
3131

3232
return newState;
3333
}
34-
// just to save the store before any update
35-
// case 'POINT_TRANSLATE_START': { return [ ...state ]; }
34+
case 'POINT_DELETE': {
35+
const newState = [ state[0], state[2] ];
36+
37+
return newState;
38+
}
3639
}
3740
return state;
3841
}

app/js/tags/curve-editor.tag

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ require('./curve');
6666
switch (e.which) {
6767
case 90: { return store.dispatch(ActionCreators.undo()); }
6868
case 88: { return store.dispatch(ActionCreators.redo()); }
69+
case 68: { return store.dispatch({ type: 'POINT_DELETE' }); }
6970
}
7071
}
7172

0 commit comments

Comments
 (0)