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

Function createIsInSelfByPointerCheckerEl

src/component/helper/roamHelper.ts:129–137  ·  view source on GitHub ↗
(
    pointerCheckerEl: Group
)

Source from the content-addressed store, hash-verified

127}
128
129export function createIsInSelfByPointerCheckerEl(
130 pointerCheckerEl: Group
131): RoamOption['triggerInfo']['isInSelf'] {
132 return function (e, x, y) {
133 tmpRectCII.copy(pointerCheckerEl.getBoundingRect());
134 tmpRectCII.applyTransform(pointerCheckerEl.getComputedTransform());
135 return tmpRectCII.contain(x, y);
136 };
137}
138const tmpRectCII = new BoundingRect(0, 0, 0, 0);
139
140export function registerRoamActionSimply(

Callers 2

renderMethod · 0.90
renderMethod · 0.90

Calls 2

containMethod · 0.65
getBoundingRectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…