(view: View, height: number, width: number, cubeCount: number)
| 242 | } |
| 243 | |
| 244 | private isNewBounds(view: View, height: number, width: number, cubeCount: number) { |
| 245 | const lastBounds: IBounds = this.lastBounds(); |
| 246 | for (const prop in lastBounds) { |
| 247 | if (lastBounds[prop] === null) return true; |
| 248 | } |
| 249 | const newBounds: IBounds = { cubeCount, height, view, width }; |
| 250 | for (const prop in lastBounds) { |
| 251 | if (lastBounds[prop] !== newBounds[prop]) return true; |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | private lastBounds(): IBounds { |
| 256 | const { cubeCount, height, view, width } = this._last; |
no test coverage detected