MCPcopy Create free account
hub / github.com/witheve/Eve / getFocusPath

Function getFocusPath

src/renderer.ts:641–651  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

639});
640
641function getFocusPath(target) {
642 let root = activeElements.root;
643 let current = target;
644 let path:string[] = [];
645 while(current !== root && current && current.parentElement) {
646 let parent = current.parentElement;
647 path.unshift(Array.prototype.indexOf.call(parent.children, current));
648 current = parent;
649 }
650 return path;
651}
652
653function handleBasicEventWithTarget(name) {
654 return (event) => {

Callers 1

renderer.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected