helper functions
This commit is contained in:
parent
47717e872b
commit
c38e4f7206
2 changed files with 8 additions and 1 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
export class Hap {
|
||||
/*
|
||||
Event class, representing a value active during the timespan
|
||||
|
|
@ -77,6 +76,10 @@ export class Hap {
|
|||
);
|
||||
}
|
||||
|
||||
showWhole() {
|
||||
return `${this.whole == undefined ? '~' : this.whole.show()}: ${this.value}`;
|
||||
}
|
||||
|
||||
combineContext(b) {
|
||||
const a = this;
|
||||
return { ...a.context, ...b.context, locations: (a.context.locations || []).concat(b.context.locations || []) };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue