MCPcopy
hub / github.com/timqian/chart.xkcd / _getUpLeftX

Method _getUpLeftX

src/components/Tooltip.js:154–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152 }
153
154 _getUpLeftX() {
155 if (this.position.type === config.positionType.upRight
156 || this.position.type === config.positionType.downRight) {
157 return this.position.x;
158 }
159 return this.position.x - this._getBackgroundWidth() - 20;
160 }
161
162 _getUpLeftY() {
163 if (this.position.type === config.positionType.downLeft

Callers 2

constructorMethod · 0.95
updateMethod · 0.95

Calls 1

_getBackgroundWidthMethod · 0.95

Tested by

no test coverage detected