MCPcopy
hub / github.com/apache/echarts / moveTo

Method moveTo

src/component/tooltip/TooltipHTMLContent.ts:486–500  ·  view source on GitHub ↗
(zrX: number, zrY: number)

Source from the content-addressed store, hash-verified

484 }
485
486 moveTo(zrX: number, zrY: number) {
487 if (!this.el) {
488 return;
489 }
490 const styleCoord = this._styleCoord;
491 makeStyleCoord(styleCoord, this._zr, this._container, zrX, zrY);
492
493 if (styleCoord[0] != null && styleCoord[1] != null) {
494 const style = this.el.style;
495 const transforms = assembleTransform(styleCoord[0], styleCoord[1]) as string[][];
496 each(transforms, (transform) => {
497 style[transform[0] as any] = transform[1];
498 });
499 }
500 }
501
502 /**
503 * when `alwaysShowContent` is true,

Callers 13

_moveIfResizedMethod · 0.95
buildPathMethod · 0.45
buildPathMethod · 0.45
buildPathMethod · 0.45
buildPathMethod · 0.45
buildPathMethod · 0.45
buildPathMethod · 0.45
buildPathMethod · 0.45
buildPathMethod · 0.45
_updatePositionMethod · 0.45
buildLabelLinePathFunction · 0.45
symbol.tsFile · 0.45

Calls 3

assembleTransformFunction · 0.85
makeStyleCoordFunction · 0.70
eachFunction · 0.50

Tested by

no test coverage detected