()
| 99 | } |
| 100 | |
| 101 | update () |
| 102 | { |
| 103 | //console.log(step); |
| 104 | let winShape = this.getWinShape(); |
| 105 | |
| 106 | //console.log(winShape.x, winShape.y); |
| 107 | |
| 108 | if (winShape.x != this.#winData.shape.x || |
| 109 | winShape.y != this.#winData.shape.y || |
| 110 | winShape.w != this.#winData.shape.w || |
| 111 | winShape.h != this.#winData.shape.h) |
| 112 | { |
| 113 | |
| 114 | this.#winData.shape = winShape; |
| 115 | |
| 116 | let index = this.getWindowIndexFromId(this.#id); |
| 117 | this.#windows[index].shape = winShape; |
| 118 | |
| 119 | //console.log(windows); |
| 120 | if (this.#winShapeChangeCallback) this.#winShapeChangeCallback(); |
| 121 | this.updateWindowsLocalStorage(); |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | setWinShapeChangeCallback (callback) |
| 126 | { |
no test coverage detected