GetClientRectsCase.js — react Source File
Architecture documentation for GetClientRectsCase.js, a javascript file in the react codebase. 7 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR c11d06f9_6e63_2442_30c7_d2c58390ccf3["GetClientRectsCase.js"] 14dde3c9_48ef_6e34_3667_978d06aff15d["TestCase.js"] c11d06f9_6e63_2442_30c7_d2c58390ccf3 --> 14dde3c9_48ef_6e34_3667_978d06aff15d e1e356f5_b085_dad5_a81f_4b4844381311["TestCase"] c11d06f9_6e63_2442_30c7_d2c58390ccf3 --> e1e356f5_b085_dad5_a81f_4b4844381311 bc8ae172_cc20_3692_943c_bbdb1ad34855["Fixture.js"] c11d06f9_6e63_2442_30c7_d2c58390ccf3 --> bc8ae172_cc20_3692_943c_bbdb1ad34855 2851624d_a736_f3f6_2132_5a20630983fe["Fixture"] c11d06f9_6e63_2442_30c7_d2c58390ccf3 --> 2851624d_a736_f3f6_2132_5a20630983fe a3aeab4c_4f93_b8d8_01c2_7a351a28a3fb["Fixture"] c11d06f9_6e63_2442_30c7_d2c58390ccf3 --> a3aeab4c_4f93_b8d8_01c2_7a351a28a3fb e1fc4cb7_9af0_fc19_09e0_092ad843fb85["PrintRectsFragmentContainer.js"] c11d06f9_6e63_2442_30c7_d2c58390ccf3 --> e1fc4cb7_9af0_fc19_09e0_092ad843fb85 6e1d3843_7f9f_b8e5_9dc1_fbfc8c3f4e4d["PrintRectsFragmentContainer"] c11d06f9_6e63_2442_30c7_d2c58390ccf3 --> 6e1d3843_7f9f_b8e5_9dc1_fbfc8c3f4e4d 463c662d_adfd_912e_a87b_b390bc35e100["index.js"] 463c662d_adfd_912e_a87b_b390bc35e100 --> c11d06f9_6e63_2442_30c7_d2c58390ccf3 style c11d06f9_6e63_2442_30c7_d2c58390ccf3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import TestCase from '../../TestCase';
import Fixture from '../../Fixture';
import PrintRectsFragmentContainer from './PrintRectsFragmentContainer';
const React = window.React;
export default function GetClientRectsCase() {
return (
<TestCase title="getClientRects">
<TestCase.Steps>
<li>
Click the "Print Rects" button to get the client rects of the
elements.
</li>
</TestCase.Steps>
<TestCase.ExpectedResult>
Calling getClientRects on the fragment instance will return a list of a
DOMRectList for each child node.
</TestCase.ExpectedResult>
<Fixture>
<Fixture.Controls>
<PrintRectsFragmentContainer>
<span
style={{
width: '300px',
height: '250px',
backgroundColor: 'lightblue',
fontSize: 20,
border: '1px solid black',
marginBottom: '10px',
}}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
</span>
<div
style={{
width: '150px',
height: '100px',
backgroundColor: 'lightgreen',
border: '1px solid black',
}}></div>
<div
style={{
width: '500px',
height: '50px',
backgroundColor: 'lightpink',
border: '1px solid black',
}}></div>
</PrintRectsFragmentContainer>
</Fixture.Controls>
</Fixture>
</TestCase>
);
}
Domain
Subdomains
Functions
Dependencies
Source
Frequently Asked Questions
What does GetClientRectsCase.js do?
GetClientRectsCase.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Entrypoint subdomain.
What functions are defined in GetClientRectsCase.js?
GetClientRectsCase.js defines 1 function(s): GetClientRectsCase.
What does GetClientRectsCase.js depend on?
GetClientRectsCase.js imports 7 module(s): Fixture, Fixture, Fixture.js, PrintRectsFragmentContainer, PrintRectsFragmentContainer.js, TestCase, TestCase.js.
What files import GetClientRectsCase.js?
GetClientRectsCase.js is imported by 1 file(s): index.js.
Where is GetClientRectsCase.js in the architecture?
GetClientRectsCase.js is located at fixtures/dom/src/components/fixtures/fragment-refs/GetClientRectsCase.js (domain: BabelCompiler, subdomain: Entrypoint, directory: fixtures/dom/src/components/fixtures/fragment-refs).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free