UNPKG

pixi-reactive

Version:

A library to help integrate PIXI into a React project

80 lines (79 loc) 1.95 kB
import { LineJoin } from './GraphicsTypes'; export declare enum TextAlign { Left = "left", Center = "center", Right = "right" } export declare enum TextGradient { LinearVertical = 0, LinearHorizontal = 1 } export declare enum TextBaseline { Alphabetic = "alphabetic", Top = "top", Hanging = "hanging", Middle = "middle", Ideographic = "ideographic", Bottom = "bottom" } export declare enum TextWhiteLine { Normal = "normal", Pre = "pre", PreLine = "pre-line" } export declare enum FontStyle { Normal = "normal", Italic = "italic", Oblique = "oblique" } export declare enum FontVariant { Normal = "normal", SmallCaps = "small-caps" } export declare enum FontWeight { Normal = "Normal", Bold = "Bold", Bolder = "Bolder", Lighter = "Lighter", W100 = "100", W200 = "200", W300 = "300", W400 = "400", W500 = "500", W600 = "600", W700 = "700", W800 = "800", W900 = "900" } export declare type TextStyle = { align?: TextAlign; breakWords?: boolean; dropShadow?: boolean; dropShadowAlpha?: number; dropShadowAngle?: number; dropShadowBlur?: number; dropShadowColor?: string; dropShadowDistance?: number; fill?: string; fillGradientType?: TextGradient; fillGradientStops?: string[]; fontFamily?: string; fontSize?: number; fontStyle?: FontStyle; fontVariant?: FontVariant; fontWeight?: FontWeight; letterSpacing?: number; lineHeight?: number; lineJoin?: LineJoin; miterLimit?: number; padding?: number; stroke?: string; strokeThickness?: number; textBaseline?: TextBaseline; trim?: boolean; whiteSpace?: TextWhiteLine; wordWrap?: boolean; wordWrapWidth?: number; leading?: number; }; export declare const defaultTextStyle: TextStyle;