(pos)
| 31 | } |
| 32 | |
| 33 | overlapWithPoint(pos){ |
| 34 | const halfWidth = this.width/2; |
| 35 | return (pos >= this.currentPos - halfWidth) && (pos <= this.currentPos + halfWidth); |
| 36 | } |
| 37 | |
| 38 | positionBefore(node, buffer=0){ |
| 39 | return node.currentLeft() - this.width/2 - buffer; |