add showWhole

This commit is contained in:
Felix Roos 2022-05-01 22:22:07 +02:00
parent f469e48970
commit 3eebccd566

View File

@ -82,6 +82,10 @@ export class Hap {
'(' + (this.whole == undefined ? '~' : this.whole.show()) + ', ' + this.part.show() + ', ' + this.value + ')'
);
}
showWhole() {
return `${this.whole == undefined ? '~' : this.whole.show()}: ${this.value}`;
}
combineContext(b) {
const a = this;