MCPcopy
hub / github.com/shzlw/zeu / push

Method push

src/message-queue.js:59–73  ·  view source on GitHub ↗
(param = {})

Source from the content-addressed store, hash-verified

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) {

Callers 12

saveHexMethod · 0.80
beatMethod · 0.80
drawSecondsMethod · 0.80
addToAnimationQueueMethod · 0.80
moveToMethod · 0.80
drawObjectMethod · 0.80
addNodesMethod · 0.80
addNeighborMethod · 0.80
signalMethod · 0.80
addMethod · 0.80
generateGradientColorMethod · 0.80
menu.jsFile · 0.80

Calls 1

popMethod · 0.95

Tested by

no test coverage detected