MCPcopy Index your code
hub / github.com/apache/echarts / mirrorPos

Function mirrorPos

src/component/tooltip/TooltipHTMLContent.ts:50–59  ·  view source on GitHub ↗
(pos: string)

Source from the content-addressed store, hash-verified

48const gCssText = `position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;${env.transform3dSupported ? 'will-change:transform;' : ''}`;
49
50function mirrorPos(pos: string): string {
51 pos = pos === 'left'
52 ? 'right'
53 : pos === 'right'
54 ? 'left'
55 : pos === 'top'
56 ? 'bottom'
57 : 'top';
58 return pos;
59}
60
61function assembleArrow(
62 tooltipModel: Model<TooltipOption>,

Callers 1

assembleArrowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…