@pmndrs/uikit
Version:
Build performant 3D user interfaces with Three.js and yoga.
29 lines (28 loc) • 1.34 kB
TypeScript
import type { FontWeight, GlyphProperties, WhiteSpace } from '../text/index.js';
import { alignmentXMap, alignmentYMap, type VisibilityProperties } from '../utils.js';
import type { PanelGroupProperties } from '../panel/instance/properties.js';
import type { NumberValue, AbsoluteLengthValue, NumberOrPercentageValue } from './values.js';
export declare const componentDefaults: {
scrollbarWidth: AbsoluteLengthValue;
visibility: Required<VisibilityProperties>["visibility"];
opacity: NumberOrPercentageValue;
depthTest: boolean;
renderOrder: NumberValue;
fontSize: Required<GlyphProperties>["fontSize"];
letterSpacing: Required<GlyphProperties>["letterSpacing"];
lineHeight: Required<GlyphProperties>["lineHeight"];
wordBreak: Required<GlyphProperties>["wordBreak"];
verticalAlign: keyof typeof alignmentYMap;
textAlign: keyof typeof alignmentXMap | "justify";
fontWeight: FontWeight;
caretWidth: AbsoluteLengthValue;
receiveShadow: boolean;
castShadow: boolean;
panelMaterialClass: NonNullable<PanelGroupProperties["panelMaterialClass"]>;
pixelSize: NumberValue;
anchorX: keyof typeof alignmentXMap;
anchorY: keyof typeof alignmentYMap;
tabSize: NumberValue;
whiteSpace: WhiteSpace;
};
export type ComponentDefaultsProperties = typeof componentDefaults;