preliminary-changes-2

This commit is contained in:
Dmitriy Antipov
2023-05-10 10:43:28 +03:00
parent 73768bb236
commit d6d4479889
6 changed files with 33 additions and 82 deletions

View File

@ -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];

View File

@ -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})`