Home / Function/ constructor() — react Function Reference

constructor() — react Function Reference

Architecture documentation for the constructor() function in VerticalScrollOverflowView.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  c14bc79d_a240_8e4b_ea22_b67a585c3646["constructor()"]
  96270b29_2ae0_8efa_5613_43274b8ffeec["VerticalScrollOverflowView"]
  c14bc79d_a240_8e4b_ea22_b67a585c3646 -->|defined in| 96270b29_2ae0_8efa_5613_43274b8ffeec
  b0f106a1_bb84_aee5_9341_31d5c96a7c75["constructor()"]
  b0f106a1_bb84_aee5_9341_31d5c96a7c75 -->|calls| c14bc79d_a240_8e4b_ea22_b67a585c3646
  4ef6a5e7_70e0_d9c3_fb33_e11b123f2e96["onChange()"]
  c14bc79d_a240_8e4b_ea22_b67a585c3646 -->|calls| 4ef6a5e7_70e0_d9c3_fb33_e11b123f2e96
  37f0fa7a_a424_f502_b9ca_72177675b329["constructor()"]
  c14bc79d_a240_8e4b_ea22_b67a585c3646 -->|calls| 37f0fa7a_a424_f502_b9ca_72177675b329
  style c14bc79d_a240_8e4b_ea22_b67a585c3646 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-timeline/src/view-base/vertical-scroll-overflow/VerticalScrollOverflowView.js lines 28–50

  constructor(
    surface: Surface,
    frame: Rect,
    contentView: View,
    viewState: ViewState,
  ) {
    super(surface, frame, withVerticalScrollbarLayout);

    this._contentView = contentView;
    this._verticalScrollView = new VerticalScrollView(
      surface,
      frame,
      contentView,
      viewState,
      'VerticalScrollOverflowView',
    );
    this._verticalScrollView.onChange(this._onVerticalScrollViewChange);

    this._scrollBarView = new VerticalScrollBarView(surface, frame, this);

    this.addSubview(this._verticalScrollView);
    this.addSubview(this._scrollBarView);
  }

Domain

Subdomains

Called By

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the react codebase, defined in packages/react-devtools-timeline/src/view-base/vertical-scroll-overflow/VerticalScrollOverflowView.js.
Where is constructor() defined?
constructor() is defined in packages/react-devtools-timeline/src/view-base/vertical-scroll-overflow/VerticalScrollOverflowView.js at line 28.
What does constructor() call?
constructor() calls 2 function(s): constructor, onChange.
What calls constructor()?
constructor() is called by 1 function(s): constructor.

Analyze Your Own Codebase

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

Try Supermodel Free