@@ -999,6 +999,7 @@ class ShapeCollectionView {
999
999
this . _labelsContent = $ ( '#labelsContent' ) ;
1000
1000
this . _showAllInterpolationBox = $ ( '#showAllInterBox' ) ;
1001
1001
this . _fillOpacityRange = $ ( '#fillOpacityRange' ) ;
1002
+ this . _selectedFillOpacityRange = $ ( '#selectedFillOpacityRange' ) ;
1002
1003
this . _blackStrokeCheckbox = $ ( '#blackStrokeCheckbox' ) ;
1003
1004
this . _colorByInstanceRadio = $ ( '#colorByInstanceRadio' ) ;
1004
1005
this . _colorByGroupRadio = $ ( '#colorByGroupRadio' ) ;
@@ -1020,7 +1021,7 @@ class ShapeCollectionView {
1020
1021
let value = Math . clamp ( + e . target . value , + e . target . min , + e . target . max ) ;
1021
1022
e . target . value = value ;
1022
1023
if ( value >= 0 ) {
1023
- this . _colorSettings [ "fill-opacity" ] = value / 5 ;
1024
+ this . _colorSettings [ "fill-opacity" ] = value ;
1024
1025
delete this . _colorSettings [ 'white-opacity' ] ;
1025
1026
1026
1027
for ( let view of this . _currentViews ) {
@@ -1029,14 +1030,24 @@ class ShapeCollectionView {
1029
1030
}
1030
1031
else {
1031
1032
value *= - 1 ;
1032
- this . _colorSettings [ "white-opacity" ] = value / 5 ;
1033
+ this . _colorSettings [ "white-opacity" ] = value ;
1033
1034
1034
1035
for ( let view of this . _currentViews ) {
1035
1036
view . updateColorSettings ( this . _colorSettings ) ;
1036
1037
}
1037
1038
}
1038
1039
} ) ;
1039
1040
1041
+ this . _selectedFillOpacityRange . on ( 'input' , ( e ) => {
1042
+ let value = Math . clamp ( + e . target . value , + e . target . min , + e . target . max ) ;
1043
+ e . target . value = value ;
1044
+ this . _colorSettings [ "selected-fill-opacity" ] = value ;
1045
+
1046
+ for ( let view of this . _currentViews ) {
1047
+ view . updateColorSettings ( this . _colorSettings ) ;
1048
+ }
1049
+ } ) ;
1050
+
1040
1051
this . _blackStrokeCheckbox . on ( 'click' , ( e ) => {
1041
1052
this . _colorSettings [ "black-stroke" ] = e . target . checked ;
1042
1053
0 commit comments