Home / Function/ constructor() — react Function Reference

constructor() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ba8a3f6a_b537_63fc_e5a1_452ad3c407fc["constructor()"]
  1c41caa2_9be5_5d0b_7a2d_ee4e7e896fab["FlamechartStackLayerView"]
  ba8a3f6a_b537_63fc_e5a1_452ad3c407fc -->|defined in| 1c41caa2_9be5_5d0b_7a2d_ee4e7e896fab
  style ba8a3f6a_b537_63fc_e5a1_452ad3c407fc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-timeline/src/content-views/FlamechartView.js lines 88–103

  constructor(
    surface: Surface,
    frame: Rect,
    stackLayer: FlamechartStackLayer,
    internalModuleSourceToRanges: InternalModuleSourceToRanges,
    duration: number,
  ) {
    super(surface, frame);
    this._stackLayer = stackLayer;
    this._stackFrameSet = new Set(stackLayer);
    this._internalModuleSourceToRanges = internalModuleSourceToRanges;
    this._intrinsicSize = {
      width: duration,
      height: FLAMECHART_FRAME_HEIGHT,
    };
  }

Domain

Subdomains

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the react codebase, defined in packages/react-devtools-timeline/src/content-views/FlamechartView.js.
Where is constructor() defined?
constructor() is defined in packages/react-devtools-timeline/src/content-views/FlamechartView.js at line 88.

Analyze Your Own Codebase

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

Try Supermodel Free