|
|
|
@ -999,6 +999,7 @@ class ShapeCollectionView {
|
|
|
|
this._labelsContent = $('#labelsContent');
|
|
|
|
this._labelsContent = $('#labelsContent');
|
|
|
|
this._showAllInterpolationBox = $('#showAllInterBox');
|
|
|
|
this._showAllInterpolationBox = $('#showAllInterBox');
|
|
|
|
this._fillOpacityRange = $('#fillOpacityRange');
|
|
|
|
this._fillOpacityRange = $('#fillOpacityRange');
|
|
|
|
|
|
|
|
this._selectedFillOpacityRange = $('#selectedFillOpacityRange');
|
|
|
|
this._blackStrokeCheckbox = $('#blackStrokeCheckbox');
|
|
|
|
this._blackStrokeCheckbox = $('#blackStrokeCheckbox');
|
|
|
|
this._colorByInstanceRadio = $('#colorByInstanceRadio');
|
|
|
|
this._colorByInstanceRadio = $('#colorByInstanceRadio');
|
|
|
|
this._colorByGroupRadio = $('#colorByGroupRadio');
|
|
|
|
this._colorByGroupRadio = $('#colorByGroupRadio');
|
|
|
|
@ -1020,7 +1021,7 @@ class ShapeCollectionView {
|
|
|
|
let value = Math.clamp(+e.target.value, +e.target.min, +e.target.max);
|
|
|
|
let value = Math.clamp(+e.target.value, +e.target.min, +e.target.max);
|
|
|
|
e.target.value = value;
|
|
|
|
e.target.value = value;
|
|
|
|
if (value >= 0) {
|
|
|
|
if (value >= 0) {
|
|
|
|
this._colorSettings["fill-opacity"] = value / 5;
|
|
|
|
this._colorSettings["fill-opacity"] = value;
|
|
|
|
delete this._colorSettings['white-opacity'];
|
|
|
|
delete this._colorSettings['white-opacity'];
|
|
|
|
|
|
|
|
|
|
|
|
for (let view of this._currentViews) {
|
|
|
|
for (let view of this._currentViews) {
|
|
|
|
@ -1029,7 +1030,7 @@ class ShapeCollectionView {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
value *= -1;
|
|
|
|
value *= -1;
|
|
|
|
this._colorSettings["white-opacity"] = value / 5;
|
|
|
|
this._colorSettings["white-opacity"] = value;
|
|
|
|
|
|
|
|
|
|
|
|
for (let view of this._currentViews) {
|
|
|
|
for (let view of this._currentViews) {
|
|
|
|
view.updateColorSettings(this._colorSettings);
|
|
|
|
view.updateColorSettings(this._colorSettings);
|
|
|
|
@ -1037,6 +1038,16 @@ class ShapeCollectionView {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this._selectedFillOpacityRange.on('input', (e) => {
|
|
|
|
|
|
|
|
let value = Math.clamp(+e.target.value, +e.target.min, +e.target.max);
|
|
|
|
|
|
|
|
e.target.value = value;
|
|
|
|
|
|
|
|
this._colorSettings["selected-fill-opacity"] = value;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (let view of this._currentViews) {
|
|
|
|
|
|
|
|
view.updateColorSettings(this._colorSettings);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
this._blackStrokeCheckbox.on('click', (e) => {
|
|
|
|
this._blackStrokeCheckbox.on('click', (e) => {
|
|
|
|
this._colorSettings["black-stroke"] = e.target.checked;
|
|
|
|
this._colorSettings["black-stroke"] = e.target.checked;
|
|
|
|
|
|
|
|
|
|
|
|
|