isUnitlessNumber.js — react Source File
Architecture documentation for isUnitlessNumber.js, a javascript file in the react codebase. 0 imports, 2 dependents.
Entity Profile
Dependency Diagram
graph LR 200282dc_1ea2_631c_36a1_33723aacca7f["isUnitlessNumber.js"] e3e314a2_4cee_1a10_2d68_791d5d66f89e["CSSPropertyOperations.js"] e3e314a2_4cee_1a10_2d68_791d5d66f89e --> 200282dc_1ea2_631c_36a1_33723aacca7f 4ae326e8_2c2e_2843_d5a5_16edbddd103a["ReactFizzConfigDOM.js"] 4ae326e8_2c2e_2843_d5a5_16edbddd103a --> 200282dc_1ea2_631c_36a1_33723aacca7f style 200282dc_1ea2_631c_36a1_33723aacca7f 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
*/
/**
* CSS properties which accept numbers but are not in units of "px".
*/
const unitlessNumbers = new Set([
'animationIterationCount',
'aspectRatio',
'borderImageOutset',
'borderImageSlice',
'borderImageWidth',
'boxFlex',
'boxFlexGroup',
'boxOrdinalGroup',
'columnCount',
'columns',
'flex',
'flexGrow',
'flexPositive',
'flexShrink',
'flexNegative',
'flexOrder',
'gridArea',
'gridRow',
'gridRowEnd',
'gridRowSpan',
'gridRowStart',
'gridColumn',
'gridColumnEnd',
'gridColumnSpan',
'gridColumnStart',
'fontWeight',
'lineClamp',
'lineHeight',
'opacity',
'order',
'orphans',
'scale',
'tabSize',
'widows',
'zIndex',
'zoom',
'fillOpacity', // SVG-related properties
'floodOpacity',
'stopOpacity',
'strokeDasharray',
'strokeDashoffset',
'strokeMiterlimit',
'strokeOpacity',
'strokeWidth',
'MozAnimationIterationCount', // Known Prefixed Properties
'MozBoxFlex', // TODO: Remove these since they shouldn't be used in modern code
'MozBoxFlexGroup',
'MozLineClamp',
'msAnimationIterationCount',
'msFlex',
'msZoom',
'msFlexGrow',
'msFlexNegative',
'msFlexOrder',
'msFlexPositive',
'msFlexShrink',
'msGridColumn',
'msGridColumnSpan',
'msGridRow',
'msGridRowSpan',
'WebkitAnimationIterationCount',
'WebkitBoxFlex',
'WebKitBoxFlexGroup',
'WebkitBoxOrdinalGroup',
'WebkitColumnCount',
'WebkitColumns',
'WebkitFlex',
'WebkitFlexGrow',
'WebkitFlexPositive',
'WebkitFlexShrink',
'WebkitLineClamp',
]);
export default function (name: string): boolean {
return unitlessNumbers.has(name);
}
Domain
Imported By
Source
Frequently Asked Questions
What does isUnitlessNumber.js do?
isUnitlessNumber.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What files import isUnitlessNumber.js?
isUnitlessNumber.js is imported by 2 file(s): CSSPropertyOperations.js, ReactFizzConfigDOM.js.
Where is isUnitlessNumber.js in the architecture?
isUnitlessNumber.js is located at packages/react-dom-bindings/src/shared/isUnitlessNumber.js (domain: BabelCompiler, directory: packages/react-dom-bindings/src/shared).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free