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

Method _getUpLeftY

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

Source from the content-addressed store, hash-verified

160 }
161
162 _getUpLeftY() {
163 if (this.position.type === config.positionType.downLeft
164 || this.position.type === config.positionType.downRight) {
165 return this.position.y;
166 }
167 return this.position.y - this._getBackgroundHeight() - 20;
168 }
169}
170
171export default Tooltip;

Callers 2

constructorMethod · 0.95
updateMethod · 0.95

Calls 1

_getBackgroundHeightMethod · 0.95

Tested by

no test coverage detected