preliminary-changes-2
This commit is contained in:
@ -33,7 +33,7 @@ namespace pxsim.visuals {
|
||||
}
|
||||
|
||||
private getMaxValue() {
|
||||
return 512;
|
||||
return 511;
|
||||
}
|
||||
|
||||
private mapValue(x: number, inMin: number, inMax: number, outMin: number, outMax: number) {
|
||||
@ -45,7 +45,7 @@ namespace pxsim.visuals {
|
||||
const node = this.state;
|
||||
const values = node.getValues();
|
||||
//console.log("values: ");
|
||||
console.log(values);
|
||||
//console.log(values);
|
||||
let inverseValue: number[] = [];
|
||||
for (let i = 0; i < 3; i++) {
|
||||
inverseValue[i] = this.getMaxValue() - values[i];
|
||||
|
@ -74,8 +74,6 @@ namespace pxsim.visuals {
|
||||
|
||||
const rect = pxsim.svg.child(sliderGroup, "rect",
|
||||
{
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": this.getSliderWidth(),
|
||||
"height": this.getSliderHeight(),
|
||||
"style": `fill: url(#${gc})`
|
||||
|
Reference in New Issue
Block a user