positioningScaleFactor() — react Function Reference
Architecture documentation for the positioningScaleFactor() function in positioning.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 6fe722ba_3051_6ecf_abe3_62a190c3ad25["positioningScaleFactor()"] e39a99ae_faf3_afd9_4fc8_fa9a6210f1d3["positioning.js"] 6fe722ba_3051_6ecf_abe3_62a190c3ad25 -->|defined in| e39a99ae_faf3_afd9_4fc8_fa9a6210f1d3 a2777e3e_5de8_64fd_2831_e7d1431e9806["draw()"] a2777e3e_5de8_64fd_2831_e7d1431e9806 -->|calls| 6fe722ba_3051_6ecf_abe3_62a190c3ad25 2048ceb7_6a90_62bc_935c_4b6ddcb44285["_handleMouseMove()"] 2048ceb7_6a90_62bc_935c_4b6ddcb44285 -->|calls| 6fe722ba_3051_6ecf_abe3_62a190c3ad25 7898c7fb_c4a8_d5bd_a78e_878f99079dcc["draw()"] 7898c7fb_c4a8_d5bd_a78e_878f99079dcc -->|calls| 6fe722ba_3051_6ecf_abe3_62a190c3ad25 81aa7ce8_ea82_55e8_c236_fdad49700b6a["_handleMouseMove()"] 81aa7ce8_ea82_55e8_c236_fdad49700b6a -->|calls| 6fe722ba_3051_6ecf_abe3_62a190c3ad25 bdfbce96_aa1e_92d9_4ef5_88d5170201a6["draw()"] bdfbce96_aa1e_92d9_4ef5_88d5170201a6 -->|calls| 6fe722ba_3051_6ecf_abe3_62a190c3ad25 c595d935_d7b4_ffea_37fb_def998a35c5d["_handleMouseMove()"] c595d935_d7b4_ffea_37fb_def998a35c5d -->|calls| 6fe722ba_3051_6ecf_abe3_62a190c3ad25 163e5c39_dcbb_032a_57e9_b189e6dff0f8["_findClosestSnapshot()"] 163e5c39_dcbb_032a_57e9_b189e6dff0f8 -->|calls| 6fe722ba_3051_6ecf_abe3_62a190c3ad25 f2dac41f_c6ba_b398_a87d_c07c5219fab2["draw()"] f2dac41f_c6ba_b398_a87d_c07c5219fab2 -->|calls| 6fe722ba_3051_6ecf_abe3_62a190c3ad25 b54f8f29_d27e_011a_c427_25d53fdaa0d6["_handleMouseMove()"] b54f8f29_d27e_011a_c427_25d53fdaa0d6 -->|calls| 6fe722ba_3051_6ecf_abe3_62a190c3ad25 8fb2b889_7666_0d3e_cc95_b3ddad42b164["draw()"] 8fb2b889_7666_0d3e_cc95_b3ddad42b164 -->|calls| 6fe722ba_3051_6ecf_abe3_62a190c3ad25 style 6fe722ba_3051_6ecf_abe3_62a190c3ad25 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-timeline/src/content-views/utils/positioning.js lines 12–17
export function positioningScaleFactor(
intrinsicWidth: number,
frame: Rect,
): number {
return frame.size.width / intrinsicWidth;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does positioningScaleFactor() do?
positioningScaleFactor() is a function in the react codebase, defined in packages/react-devtools-timeline/src/content-views/utils/positioning.js.
Where is positioningScaleFactor() defined?
positioningScaleFactor() is defined in packages/react-devtools-timeline/src/content-views/utils/positioning.js at line 12.
What calls positioningScaleFactor()?
positioningScaleFactor() is called by 10 function(s): _findClosestSnapshot, _handleMouseMove, _handleMouseMove, _handleMouseMove, _handleMouseMove, draw, draw, draw, and 2 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free