MCPcopy
hub / github.com/nhn/tui.chart / setTooltipPosition

Method setTooltipPosition

apps/chart/src/component/tooltip.ts:88–91  ·  view source on GitHub ↗
(model: TooltipModel)

Source from the content-addressed store, hash-verified

86 }
87
88 setTooltipPosition(model: TooltipModel) {
89 const { x, y } = this.getPositionInRect(model);
90 this.tooltipContainerEl.style.transform = getTranslateString(x, y);
91 }
92
93 getTooltipInfoModels() {
94 return Object.values(this.tooltipInfoModels).flatMap((item) => item);

Callers 1

renderTooltipMethod · 0.95

Calls 2

getPositionInRectMethod · 0.95
getTranslateStringFunction · 0.90

Tested by

no test coverage detected