(param = {})
| 57 | } |
| 58 | |
| 59 | push(param = {}) { |
| 60 | const barColor = param.color || COLOR.blue; |
| 61 | const barSpace = param.space || 0; |
| 62 | |
| 63 | if (this._queue.length >= this._maxQueueCapacity) { |
| 64 | this.pop(); |
| 65 | } |
| 66 | |
| 67 | this._queue.push({ |
| 68 | x: this._arcWidth + barSpace, |
| 69 | y: this._viewHeight + this._barHeight, |
| 70 | color: barColor, |
| 71 | space: barSpace |
| 72 | }); |
| 73 | } |
| 74 | |
| 75 | pop() { |
| 76 | if (this._queue.length > 0) { |
no test coverage detected