updatePosition() — react Function Reference
Architecture documentation for the updatePosition() function in Overlay.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD ab13de00_6746_2dd9_e898_ab5ca4196895["updatePosition()"] 408e1017_1239_4514_a7fe_1640babfc1dd["OverlayTip"] ab13de00_6746_2dd9_e898_ab5ca4196895 -->|defined in| 408e1017_1239_4514_a7fe_1640babfc1dd ca452625_274e_0064_ef00_337501859e94["inspect()"] ca452625_274e_0064_ef00_337501859e94 -->|calls| ab13de00_6746_2dd9_e898_ab5ca4196895 27b5d491_c8bd_065d_271e_bc41a1c63d73["findTipPos()"] ab13de00_6746_2dd9_e898_ab5ca4196895 -->|calls| 27b5d491_c8bd_065d_271e_bc41a1c63d73 style ab13de00_6746_2dd9_e898_ab5ca4196895 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-shared/src/backend/views/Highlighter/Overlay.js lines 140–147
updatePosition(dims: Box, bounds: Box) {
const tipRect = this.tip.getBoundingClientRect();
const tipPos = findTipPos(dims, bounds, {
width: tipRect.width,
height: tipRect.height,
});
assign(this.tip.style, tipPos.style);
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does updatePosition() do?
updatePosition() is a function in the react codebase, defined in packages/react-devtools-shared/src/backend/views/Highlighter/Overlay.js.
Where is updatePosition() defined?
updatePosition() is defined in packages/react-devtools-shared/src/backend/views/Highlighter/Overlay.js at line 140.
What does updatePosition() call?
updatePosition() calls 1 function(s): findTipPos.
What calls updatePosition()?
updatePosition() is called by 1 function(s): inspect.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free