DOMEventProperties.js — react Source File
Architecture documentation for DOMEventProperties.js, a javascript file in the react codebase. 4 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 658d2068_647d_6a17_8bb9_0fcce1aac5fc["DOMEventProperties.js"] 4e9925e9_ca97_8d79_6ffa_a9347d262615["DOMEventNames.js"] 658d2068_647d_6a17_8bb9_0fcce1aac5fc --> 4e9925e9_ca97_8d79_6ffa_a9347d262615 e1c602b7_5988_fa00_bb9f_269d66d38107["EventRegistry.js"] 658d2068_647d_6a17_8bb9_0fcce1aac5fc --> e1c602b7_5988_fa00_bb9f_269d66d38107 db2a0ac3_1faf_8e02_55e8_f299ce8da5e9["registerTwoPhaseEvent"] 658d2068_647d_6a17_8bb9_0fcce1aac5fc --> db2a0ac3_1faf_8e02_55e8_f299ce8da5e9 8344de1b_978c_be0f_eebd_38ccc4962a93["ReactFeatureFlags"] 658d2068_647d_6a17_8bb9_0fcce1aac5fc --> 8344de1b_978c_be0f_eebd_38ccc4962a93 43bccccc_6fb9_1e3f_9c97_ea90d6d01475["SimpleEventPlugin.js"] 43bccccc_6fb9_1e3f_9c97_ea90d6d01475 --> 658d2068_647d_6a17_8bb9_0fcce1aac5fc style 658d2068_647d_6a17_8bb9_0fcce1aac5fc 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 {DOMEventName} from './DOMEventNames';
import {registerTwoPhaseEvent} from './EventRegistry';
import {
ANIMATION_END,
ANIMATION_ITERATION,
ANIMATION_START,
TRANSITION_RUN,
TRANSITION_START,
TRANSITION_CANCEL,
TRANSITION_END,
} from './DOMEventNames';
import {
enableCreateEventHandleAPI,
enableScrollEndPolyfill,
} from 'shared/ReactFeatureFlags';
export const topLevelEventsToReactNames: Map<DOMEventName, string | null> =
new Map();
// NOTE: Capitalization is important in this list!
//
// E.g. it needs "pointerDown", not "pointerdown".
// This is because we derive both React name ("onPointerDown")
// and DOM name ("pointerdown") from the same list.
//
// Exceptions that don't match this convention are listed separately.
//
// prettier-ignore
const simpleEventPluginEvents = [
'abort',
'auxClick',
'beforeToggle',
'cancel',
'canPlay',
'canPlayThrough',
'click',
'close',
'contextMenu',
'copy',
'cut',
'drag',
'dragEnd',
'dragEnter',
'dragExit',
'dragLeave',
'dragOver',
'dragStart',
'drop',
'durationChange',
// ... (88 more lines)
Domain
Subdomains
Dependencies
- DOMEventNames.js
- EventRegistry.js
- ReactFeatureFlags
- registerTwoPhaseEvent
Source
Frequently Asked Questions
What does DOMEventProperties.js do?
DOMEventProperties.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in DOMEventProperties.js?
DOMEventProperties.js defines 2 function(s): registerSimpleEvent, registerSimpleEvents.
What does DOMEventProperties.js depend on?
DOMEventProperties.js imports 4 module(s): DOMEventNames.js, EventRegistry.js, ReactFeatureFlags, registerTwoPhaseEvent.
What files import DOMEventProperties.js?
DOMEventProperties.js is imported by 1 file(s): SimpleEventPlugin.js.
Where is DOMEventProperties.js in the architecture?
DOMEventProperties.js is located at packages/react-dom-bindings/src/events/DOMEventProperties.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-dom-bindings/src/events).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free