MCPcopy Create free account
hub / github.com/DTStack/molecule / getEventPosition

Function getEventPosition

src/common/dom.ts:77–82  ·  view source on GitHub ↗
(e: React.MouseEvent)

Source from the content-addressed store, hash-verified

75}
76
77export function getEventPosition(e: React.MouseEvent) {
78 return {
79 x: e.clientX,
80 y: e.clientY,
81 };
82}
83
84export function findParentByClassName<T>(element, className): T | null {
85 try {

Callers 4

handleRightClickFunction · 0.90
handleHeaderRightClickFunction · 0.90
handleRightClickFunction · 0.90
handleTabContextMenuFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected