This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/vuetify/lib/services/application/index.js
2019-08-11 20:48:02 +02:00

41 lines
No EOL
910 B
JavaScript

// Extensions
import { Service } from '../service';
export class Application extends Service {
constructor() {
super(...arguments);
this.bar = 0;
this.top = 0;
this.left = 0;
this.insetFooter = 0;
this.right = 0;
this.bottom = 0;
this.footer = 0;
this.application = {
bar: {},
top: {},
left: {},
insetFooter: {},
right: {},
bottom: {},
footer: {}
};
}
register(uid, location, size) {
this.application[location][uid] = size;
this.update(location);
}
unregister(uid, location) {
if (this.application[location][uid] == null) return;
delete this.application[location][uid];
this.update(location);
}
update(location) {
this[location] = Object.values(this.application[location]).reduce((acc, cur) => acc + cur, 0);
}
}
Application.property = 'application';
//# sourceMappingURL=index.js.map