Home / Function/ GetClientRectsTextOnly() — react Function Reference

GetClientRectsTextOnly() — react Function Reference

Architecture documentation for the GetClientRectsTextOnly() function in TextNodesCase.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  e8b5846f_5698_2f8b_2adc_06e975fd9cf2["GetClientRectsTextOnly()"]
  f361f511_643d_fef8_84d3_4e38e9129616["TextNodesCase.js"]
  e8b5846f_5698_2f8b_2adc_06e975fd9cf2 -->|defined in| f361f511_643d_fef8_84d3_4e38e9129616
  style e8b5846f_5698_2f8b_2adc_06e975fd9cf2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

fixtures/dom/src/components/fixtures/fragment-refs/TextNodesCase.js lines 11–30

function GetClientRectsTextOnly() {
  return (
    <TestCase title="getClientRects - Text Only">
      <TestCase.Steps>
        <li>Click the "Print Rects" button</li>
      </TestCase.Steps>
      <TestCase.ExpectedResult>
        The fragment contains only text nodes. getClientRects should return
        bounding rectangles for the text content using the Range API.
      </TestCase.ExpectedResult>
      <Fixture>
        <Fixture.Controls>
          <PrintRectsFragmentContainer>
            This is text content inside a fragment with no element children.
          </PrintRectsFragmentContainer>
        </Fixture.Controls>
      </Fixture>
    </TestCase>
  );
}

Domain

Subdomains

Frequently Asked Questions

What does GetClientRectsTextOnly() do?
GetClientRectsTextOnly() is a function in the react codebase, defined in fixtures/dom/src/components/fixtures/fragment-refs/TextNodesCase.js.
Where is GetClientRectsTextOnly() defined?
GetClientRectsTextOnly() is defined in fixtures/dom/src/components/fixtures/fragment-refs/TextNodesCase.js at line 11.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free