SchedulingEventsView.js — react Source File
Architecture documentation for SchedulingEventsView.js, a javascript file in the react codebase. 8 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 25e4583e_f456_f560_39a0_cd2c2a2ed857["SchedulingEventsView.js"] 20cc2065_4b5b_fd6b_be12_28f36b0ff4cf["types.js"] 25e4583e_f456_f560_39a0_cd2c2a2ed857 --> 20cc2065_4b5b_fd6b_be12_28f36b0ff4cf bbc225e1_d450_ae58_6679_9240ebe54628["index.js"] 25e4583e_f456_f560_39a0_cd2c2a2ed857 --> bbc225e1_d450_ae58_6679_9240ebe54628 e39a99ae_faf3_afd9_4fc8_fa9a6210f1d3["positioning.js"] 25e4583e_f456_f560_39a0_cd2c2a2ed857 --> e39a99ae_faf3_afd9_4fc8_fa9a6210f1d3 6fe722ba_3051_6ecf_abe3_62a190c3ad25["positioningScaleFactor"] 25e4583e_f456_f560_39a0_cd2c2a2ed857 --> 6fe722ba_3051_6ecf_abe3_62a190c3ad25 83465e3e_5308_9ddc_a12b_a84d78f1c10a["timestampToPosition"] 25e4583e_f456_f560_39a0_cd2c2a2ed857 --> 83465e3e_5308_9ddc_a12b_a84d78f1c10a a1e0fb75_d73e_2a52_2e38_23e1f70979f8["positionToTimestamp"] 25e4583e_f456_f560_39a0_cd2c2a2ed857 --> a1e0fb75_d73e_2a52_2e38_23e1f70979f8 25b9c762_593d_45b1_d8ca_eb9b3db001b9["widthToDuration"] 25e4583e_f456_f560_39a0_cd2c2a2ed857 --> 25b9c762_593d_45b1_d8ca_eb9b3db001b9 eab2f8f4_2e4c_8e75_87d9_c7d9b524affb["constants.js"] 25e4583e_f456_f560_39a0_cd2c2a2ed857 --> eab2f8f4_2e4c_8e75_87d9_c7d9b524affb style 25e4583e_f456_f560_39a0_cd2c2a2ed857 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 type {SchedulingEvent, TimelineData} from '../types';
import type {
ClickInteraction,
Interaction,
MouseMoveInteraction,
Rect,
Size,
ViewRefs,
} from '../view-base';
import {
positioningScaleFactor,
timestampToPosition,
positionToTimestamp,
widthToDuration,
} from './utils/positioning';
import {
View,
Surface,
rectContainsPoint,
rectIntersectsRect,
intersectionOfRects,
} from '../view-base';
import {
COLORS,
TOP_ROW_PADDING,
REACT_EVENT_DIAMETER,
BORDER_SIZE,
} from './constants';
const EVENT_ROW_HEIGHT_FIXED =
TOP_ROW_PADDING + REACT_EVENT_DIAMETER + TOP_ROW_PADDING;
export class SchedulingEventsView extends View {
_profilerData: TimelineData;
_intrinsicSize: Size;
_hoveredEvent: SchedulingEvent | null = null;
onHover: ((event: SchedulingEvent | null) => void) | null = null;
onClick:
| ((event: SchedulingEvent | null, eventIndex: number | null) => void)
| null = null;
constructor(surface: Surface, frame: Rect, profilerData: TimelineData) {
super(surface, frame);
this._profilerData = profilerData;
this._intrinsicSize = {
width: this._profilerData.duration,
height: EVENT_ROW_HEIGHT_FIXED,
};
// ... (229 more lines)
Domain
Subdomains
Classes
Dependencies
Source
Frequently Asked Questions
What does SchedulingEventsView.js do?
SchedulingEventsView.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What does SchedulingEventsView.js depend on?
SchedulingEventsView.js imports 8 module(s): constants.js, index.js, positionToTimestamp, positioning.js, positioningScaleFactor, timestampToPosition, types.js, widthToDuration.
Where is SchedulingEventsView.js in the architecture?
SchedulingEventsView.js is located at packages/react-devtools-timeline/src/content-views/SchedulingEventsView.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-devtools-timeline/src/content-views).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free