Version: 1.0.01.0.11.0.21.0.31.0.41.0.51.0.61.0.71.0.81.0.91.1.01.1.11.2.01.2.12.0.02.0.12.0.22.0.32.0.42.0.52.0.62.0.72.0.82.0.92.1.02.1.12.1.22.1.32.1.42.1.52.1.62.1.72.1.82.1.92.2.02.2.12.2.22.2.32.2.42.2.52.2.62.2.72.2.82.2.92.3.02.3.12.3.22.3.32.3.42.3.52.3.62.3.72.3.82.3.92.4.02.4.12.4.22.4.32.4.42.4.52.4.62.4.72.4.82.4.92.5.02.5.12.5.22.5.32.5.42.5.52.5.62.5.72.5.82.5.92.6.02.6.12.6.22.6.32.7.02.7.12.7.22.7.32.7.42.7.52.7.62.7.72.7.82.7.92.7.102.7.112.8.02.8.12.8.22.8.32.8.42.8.52.8.62.8.72.8.82.8.102.8.112.8.122.8.132.8.142.8.152.8.163.0.1-03.0.1-13.0.1-23.0.1-33.0.1-43.0.1-53.0.23.0.33.0.43.0.53.0.63.0.73.0.83.0.93.0.103.0.113.0.123.0.133.0.143.0.153.0.163.0.173.0.183.0.193.0.203.0.213.0.223.0.233.0.243.0.253.0.263.0.273.0.283.0.293.0.303.0.313.0.323.0.333.0.343.0.353.0.363.0.373.0.383.0.393.0.403.0.413.0.423.0.433.0.443.0.453.0.463.1.03.1.13.1.23.1.33.1.43.1.53.2.03.2.13.2.23.2.33.2.43.2.53.2.63.2.73.2.83.2.9-13.2.93.2.103.2.113.2.123.2.133.2.143.2.153.2.163.2.173.2.183.2.193.2.203.2.213.2.223.2.233.2.24-test.03.2.24-test.13.2.24-test.23.2.24-test.33.2.244.0.0-beta.14.0.0-beta.24.0.0-beta.34.0.0-beta.44.0.0-beta.54.0.0-beta.64.0.0-beta.74.0.0-beta.84.0.0-beta.94.1.0-beta.04.1.0-beta.14.1.0-beta.24.1.0-beta.34.1.0-beta.44.1.0-beta.54.1.0-beta.64.1.0-beta.7
export default class State {
constructor(map) {
this.states = 0;
this.map = map;
}
add(state) {
this.states |= state;
delete(state) {
this.states &= ~state;
toggle(state) {
if (this.has(state)) {
this.delete(state);
else {
this.add(state);
has(state) {
return !!(this.states & state);
//# sourceMappingURL=state.js.map