Home / Function/ getTargetTouches() — react Function Reference

getTargetTouches() — react Function Reference

Architecture documentation for the getTargetTouches() function in touchStore.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  c60368a7_eb49_f54c_e28d_e69ee6980432["getTargetTouches()"]
  56f57e4a_fc42_037d_ee3b_9463227d15f3["touchStore.js"]
  c60368a7_eb49_f54c_e28d_e69ee6980432 -->|defined in| 56f57e4a_fc42_037d_ee3b_9463227d15f3
  0dab3578_90b3_815b_5690_5f9eec1a66ca["createTouchEventPayload()"]
  0dab3578_90b3_815b_5690_5f9eec1a66ca -->|calls| c60368a7_eb49_f54c_e28d_e69ee6980432
  e820e617_c2f2_597a_8dd9_eafb2c1afa65["getTouches()"]
  e820e617_c2f2_597a_8dd9_eafb2c1afa65 -->|calls| c60368a7_eb49_f54c_e28d_e69ee6980432
  style c60368a7_eb49_f54c_e28d_e69ee6980432 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/dom-event-testing-library/touchStore.js lines 73–78

export function getTargetTouches(target) {
  if (activeTouches.get(target) != null) {
    return Array.from(activeTouches.get(target).values());
  }
  return [];
}

Domain

Subdomains

Frequently Asked Questions

What does getTargetTouches() do?
getTargetTouches() is a function in the react codebase, defined in packages/dom-event-testing-library/touchStore.js.
Where is getTargetTouches() defined?
getTargetTouches() is defined in packages/dom-event-testing-library/touchStore.js at line 73.
What calls getTargetTouches()?
getTargetTouches() is called by 2 function(s): createTouchEventPayload, getTouches.

Analyze Your Own Codebase

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

Try Supermodel Free