MCPcopy
hub / github.com/twitter/labella.js / positionBefore

Method positionBefore

src/core/node.js:38–40  ·  view source on GitHub ↗
(node, buffer=0)

Source from the content-addressed store, hash-verified

36 }
37
38 positionBefore(node, buffer=0){
39 return node.currentLeft() - this.width/2 - buffer;
40 }
41
42 positionAfter(node, buffer=0){
43 return node.currentRight() + this.width/2 + buffer;

Callers 2

node.spec.jsFile · 0.80
eFunction · 0.80

Calls 1

currentLeftMethod · 0.80

Tested by

no test coverage detected