Home / Function/ getSelectionInformation() — react Function Reference

getSelectionInformation() — react Function Reference

Architecture documentation for the getSelectionInformation() function in ReactInputSelection.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  4cfcf5ec_fe17_9b20_94a6_11e3787af2e1["getSelectionInformation()"]
  61ae92ed_59ee_0d03_f7cc_6c7bd8c060f5["ReactInputSelection.js"]
  4cfcf5ec_fe17_9b20_94a6_11e3787af2e1 -->|defined in| 61ae92ed_59ee_0d03_f7cc_6c7bd8c060f5
  7330d54b_88aa_2185_79a9_d580cfe8f0ac["getActiveElementDeep()"]
  4cfcf5ec_fe17_9b20_94a6_11e3787af2e1 -->|calls| 7330d54b_88aa_2185_79a9_d580cfe8f0ac
  a96fa181_7474_eda8_7c38_1e173c424b26["hasSelectionCapabilities()"]
  4cfcf5ec_fe17_9b20_94a6_11e3787af2e1 -->|calls| a96fa181_7474_eda8_7c38_1e173c424b26
  15b961e4_5bdf_3cdf_6282_36a44dfc92b2["getSelection()"]
  4cfcf5ec_fe17_9b20_94a6_11e3787af2e1 -->|calls| 15b961e4_5bdf_3cdf_6282_36a44dfc92b2
  style 4cfcf5ec_fe17_9b20_94a6_11e3787af2e1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-dom-bindings/src/client/ReactInputSelection.js lines 105–113

export function getSelectionInformation(containerInfo) {
  const focusedElem = getActiveElementDeep(containerInfo);
  return {
    focusedElem: focusedElem,
    selectionRange: hasSelectionCapabilities(focusedElem)
      ? getSelection(focusedElem)
      : null,
  };
}

Domain

Subdomains

Frequently Asked Questions

What does getSelectionInformation() do?
getSelectionInformation() is a function in the react codebase, defined in packages/react-dom-bindings/src/client/ReactInputSelection.js.
Where is getSelectionInformation() defined?
getSelectionInformation() is defined in packages/react-dom-bindings/src/client/ReactInputSelection.js at line 105.
What does getSelectionInformation() call?
getSelectionInformation() calls 3 function(s): getActiveElementDeep, getSelection, hasSelectionCapabilities.

Analyze Your Own Codebase

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

Try Supermodel Free