* @function LevelRenderer.Painter.prototype.refresh * @description 刷新。 * * @param {function} callback - 刷新结束后的回调函数。 * @param {boolean} paintAll - 强制绘制所有 shape。 * @return {LevelRenderer.Painter} this。
(callback, paintAll)
| 170 | * @return {LevelRenderer.Painter} this。 |
| 171 | */ |
| 172 | refresh(callback, paintAll) { |
| 173 | var list = this.storage.getShapeList(true); |
| 174 | this._paintList(list, paintAll); |
| 175 | |
| 176 | if (typeof callback == 'function') { |
| 177 | callback(); |
| 178 | } |
| 179 | |
| 180 | return this; |
| 181 | } |
| 182 | |
| 183 | |
| 184 | /** |
no test coverage detected