Home / File/ BackgroundColorView.js — react Source File

BackgroundColorView.js — react Source File

Architecture documentation for BackgroundColorView.js, a javascript file in the react codebase. 2 imports, 0 dependents.

File javascript BabelCompiler Validation 2 imports 1 classes

Entity Profile

Dependency Diagram

graph LR
  da063ca4_e129_a295_ece0_9e03b13577cf["BackgroundColorView.js"]
  82f60adf_9325_5735_ba06_dcbbfcf32cc9["View.js"]
  da063ca4_e129_a295_ece0_9e03b13577cf --> 82f60adf_9325_5735_ba06_dcbbfcf32cc9
  eab2f8f4_2e4c_8e75_87d9_c7d9b524affb["constants.js"]
  da063ca4_e129_a295_ece0_9e03b13577cf --> eab2f8f4_2e4c_8e75_87d9_c7d9b524affb
  style da063ca4_e129_a295_ece0_9e03b13577cf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 */

import {View} from './View';
import {COLORS} from '../content-views/constants';

/**
 * View that fills its visible area with a CSS color.
 */
export class BackgroundColorView extends View {
  draw(context: CanvasRenderingContext2D) {
    const {visibleArea} = this;

    context.fillStyle = COLORS.BACKGROUND;
    context.fillRect(
      visibleArea.origin.x,
      visibleArea.origin.y,
      visibleArea.size.width,
      visibleArea.size.height,
    );
  }
}

Domain

Subdomains

Dependencies

Frequently Asked Questions

What does BackgroundColorView.js do?
BackgroundColorView.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What does BackgroundColorView.js depend on?
BackgroundColorView.js imports 2 module(s): View.js, constants.js.
Where is BackgroundColorView.js in the architecture?
BackgroundColorView.js is located at packages/react-devtools-timeline/src/view-base/BackgroundColorView.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-devtools-timeline/src/view-base).

Analyze Your Own Codebase

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

Try Supermodel Free