Home / Function/ getPointerType() — react Function Reference

getPointerType() — react Function Reference

Architecture documentation for the getPointerType() function in domEventSequences.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  1819405c_be2c_2496_d31b_ddd53ba73ba9["getPointerType()"]
  d4066e75_dcea_2912_73ff_88e30b9530d2["domEventSequences.js"]
  1819405c_be2c_2496_d31b_ddd53ba73ba9 -->|defined in| d4066e75_dcea_2912_73ff_88e30b9530d2
  1ce81e05_e892_8647_aba7_5d63c17ca494["pointercancel()"]
  1ce81e05_e892_8647_aba7_5d63c17ca494 -->|calls| 1819405c_be2c_2496_d31b_ddd53ba73ba9
  9d0dad3b_5733_de1f_1a31_75b5db0ccd25["pointerdown()"]
  9d0dad3b_5733_de1f_1a31_75b5db0ccd25 -->|calls| 1819405c_be2c_2496_d31b_ddd53ba73ba9
  3bc8e903_1c8d_e20a_7fe0_4f403cb2c5d3["pointermove()"]
  3bc8e903_1c8d_e20a_7fe0_4f403cb2c5d3 -->|calls| 1819405c_be2c_2496_d31b_ddd53ba73ba9
  5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae["pointerup()"]
  5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae -->|calls| 1819405c_be2c_2496_d31b_ddd53ba73ba9
  style 1819405c_be2c_2496_d31b_ddd53ba73ba9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/dom-event-testing-library/domEventSequences.js lines 81–87

function getPointerType(payload) {
  let pointerType = 'mouse';
  if (payload != null && payload.pointerType != null) {
    pointerType = payload.pointerType;
  }
  return pointerType;
}

Domain

Subdomains

Frequently Asked Questions

What does getPointerType() do?
getPointerType() is a function in the react codebase, defined in packages/dom-event-testing-library/domEventSequences.js.
Where is getPointerType() defined?
getPointerType() is defined in packages/dom-event-testing-library/domEventSequences.js at line 81.
What calls getPointerType()?
getPointerType() is called by 4 function(s): pointercancel, pointerdown, pointermove, pointerup.

Analyze Your Own Codebase

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

Try Supermodel Free