Skip to content

Commit c4150d1

Browse files
committed
point-controls: initial commit
1 parent 99cbba6 commit c4150d1

18 files changed

+672
-111
lines changed

app/build/mojs-curve-editor.js

Lines changed: 363 additions & 50 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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,15 @@
6363

6464
&__anchor-buttons {
6565
margin-top: calc( 10*$PX );
66+
/*display: none;*/
6667

6768
& icon-button {
6869
margin-bottom: calc( 5*$PX );
6970
}
71+
72+
/*&.is-show {
73+
display: block;
74+
}*/
7075
}
7176

7277
&__mojs-logo {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +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"}
1+
{"curve-editor":"_curve-editor_8alet_4","curve-editor__left":"_curve-editor__left_8alet_1","curve-editor__right":"_curve-editor__right_8alet_1","curve-editor__anchor-buttons":"_curve-editor__anchor-buttons_8alet_1","curve-editor__mojs-logo":"_curve-editor__mojs-logo_8alet_1"}

app/css/blocks/curve.postcss.css

Lines changed: 5 additions & 2 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_adube_5","curve__svg-wrapper":"_curve__svg-wrapper_adube_1","curve__svg":"_curve__svg_adube_1","curve__svg-path":"_curve__svg-path_adube_1"}
1+
{"curve":"_curve_1471c_5","curve__svg-wrapper":"_curve__svg-wrapper_1471c_1","curve__svg":"_curve__svg_1471c_1","curve__svg-segment":"_curve__svg-segment_1471c_1"}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
@import '../assets/globals.postcss.css';
3+
4+
.point-controls {
5+
display: none;
6+
7+
&.is-show {
8+
display: block;
9+
}
10+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"point-controls":"_point-controls_1j5f4_4","is-show":"_is-show_1j5f4_7"}

app/css/blocks/point.postcss.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ $size: 10;
2525
margin-top: calc( -$size*$PX );
2626
}
2727

28-
&:hover {
29-
opacity: .85;
28+
&:hover,
29+
&.is-selected {
30+
border: calc( 2*$PX ) solid #8C6D8B;
3031
}
3132
}
3233

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_ubp0t_5"}
1+
{"point":"_point_1bj5r_5","is-selected":"_is-selected_1bj5r_29"}

0 commit comments

Comments
 (0)