@react-pdf/types
Advanced tools
Comparing version 2.0.0-beta.16 to 2.0.0-beta.17
@@ -16,3 +16,2 @@ | ||
// instance.fontSize = jest.fn().mockReturnValue(instance); | ||
// instance.opacity = jest.fn().mockReturnValue(instance); | ||
// instance.text = jest.fn().mockReturnValue(instance); | ||
@@ -57,2 +56,3 @@ // instance.font = jest.fn().mockReturnValue(instance); | ||
lineTo(x: number, y: number): this; | ||
opacity(opacity: number): this; | ||
fillOpacity(opacity: number): this; | ||
@@ -59,0 +59,0 @@ addPage(options?: PageOption): this; |
@@ -0,1 +1,2 @@ | ||
export * from './svg'; | ||
export * from './node'; | ||
@@ -2,0 +3,0 @@ export * from './page'; |
{ | ||
"name": "@react-pdf/types", | ||
"version": "2.0.0-beta.16", | ||
"version": "2.0.0-beta.17", | ||
"license": "MIT", | ||
@@ -9,3 +9,3 @@ "author": "Diego Muracciole <diegomuracciole@gmail.com>", | ||
"main": "index.d.ts", | ||
"gitHead": "f0038752249e67453b292cd502598fbf06a32049" | ||
"gitHead": "db65b560de8295a41a5117e2b97ce68198e334c6" | ||
} |
191
style.d.ts
export interface Style { | ||
//Flexbox | ||
alignContent?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around', | ||
alignItems?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline', | ||
alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch', | ||
flex?: number, | ||
flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse', | ||
flexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse', | ||
flexFlow?: number, | ||
flexGrow?: number, | ||
flexShrink?: number, | ||
flexBasis?: number, | ||
justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-around' | 'space-between' | 'space-evenly', | ||
order?: number, | ||
alignContent?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around'; | ||
alignItems?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline'; | ||
alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch'; | ||
flex?: number; | ||
flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse'; | ||
flexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse'; | ||
flexFlow?: number; | ||
flexGrow?: number; | ||
flexShrink?: number; | ||
flexBasis?: number; | ||
justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-around' | 'space-between' | 'space-evenly'; | ||
order?: number; | ||
// Layout?:never, | ||
// Layout | ||
bottom?: number | string, | ||
display?: 'flex' | 'none', | ||
left?: number | string, | ||
position?: 'absolute' | 'relative', | ||
right?: number | string, | ||
top?: number | string, | ||
bottom?: number | string; | ||
display?: 'flex' | 'none'; | ||
left?: number | string; | ||
position?: 'absolute' | 'relative'; | ||
right?: number | string; | ||
top?: number | string; | ||
overflow?: 'hidden'; | ||
// Dimension?:never, | ||
// Dimension | ||
height?: number | string, | ||
maxHeight?: number | string, | ||
maxWidth?: number | string, | ||
minHeight?: number | string, | ||
minWidth?: number | string, | ||
width?: number | string, | ||
height?: number | string; | ||
maxHeight?: number | string; | ||
maxWidth?: number | string; | ||
minHeight?: number | string; | ||
minWidth?: number | string; | ||
width?: number | string; | ||
// Color?:never, | ||
// Color | ||
backgroundColor?: string, | ||
color?: string, | ||
opacity?: number, | ||
backgroundColor?: string; | ||
color?: string; | ||
opacity?: number; | ||
// Text?:never, | ||
// Text | ||
fontSize?: number | string, | ||
fontFamily?: string, | ||
fontStyle?: string | 'normal', | ||
fontWeight?: number | 'thin' | 'hairline' | 'ultralight' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'demibold' | 'bold' | 'ultrabold' | 'extrabold' | 'heavy' | 'black', | ||
letterSpacing?: number | string, | ||
lineHeight?: number | string, | ||
maxLines?: number, //? | ||
textAlign?: 'left' | 'right' | 'center' | 'justify', //? | ||
textDecoration?: 'line-through' | 'underline' | 'none', | ||
textDecorationColor?: string, | ||
textDecorationStyle?: "dashed" | "dotted" | "solid" | string, //? | ||
textIndent?: any, //? | ||
textOverflow?: any, //? | ||
textTransform?: 'capitalize' | 'lowercase' | 'uppercase', | ||
fontSize?: number | string; | ||
fontFamily?: string; | ||
fontStyle?: string | 'normal'; | ||
fontWeight?: number | 'thin' | 'hairline' | 'ultralight' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'demibold' | 'bold' | 'ultrabold' | 'extrabold' | 'heavy' | 'black'; | ||
letterSpacing?: number | string; | ||
lineHeight?: number | string; | ||
maxLines?: number; //? | ||
textAlign?: 'left' | 'right' | 'center' | 'justify'; //? | ||
textDecoration?: 'line-through' | 'underline' | 'none'; | ||
textDecorationColor?: string; | ||
textDecorationStyle?: "dashed" | "dotted" | "solid" | string; //? | ||
textIndent?: any; //? | ||
textOverflow?: 'ellipsis'; | ||
textTransform?: 'capitalize' | 'lowercase' | 'uppercase'; | ||
// Sizing/positioning?:never, | ||
// Sizing/positioning | ||
objectFit?: string, | ||
objectPosition?: number | string, | ||
objectPositionX?: number | string, | ||
objectPositionY?: number | string, | ||
objectFit?: string; | ||
objectPosition?: number | string; | ||
objectPositionX?: number | string; | ||
objectPositionY?: number | string; | ||
// Margin/padding?:never, | ||
// Margin/padding | ||
margin?: number | string, | ||
marginHorizontal?: number | string, | ||
marginVertical?: number | string, | ||
marginTop?: number | string, | ||
marginRight?: number | string, | ||
marginBottom?: number | string, | ||
marginLeft?: number | string, | ||
padding?: number | string, | ||
paddingHorizontal?: number | string, | ||
paddingVertical?: number | string, | ||
paddingTop?: number | string, | ||
paddingRight?: number | string, | ||
paddingBottom?: number | string, | ||
paddingLeft?: number | string, | ||
margin?: number | string; | ||
marginHorizontal?: number | string; | ||
marginVertical?: number | string; | ||
marginTop?: number | string; | ||
marginRight?: number | string; | ||
marginBottom?: number | string; | ||
marginLeft?: number | string; | ||
padding?: number | string; | ||
paddingHorizontal?: number | string; | ||
paddingVertical?: number | string; | ||
paddingTop?: number | string; | ||
paddingRight?: number | string; | ||
paddingBottom?: number | string; | ||
paddingLeft?: number | string; | ||
// Transformations?:never, | ||
// Transformations | ||
transform?: string, | ||
transformOrigin?: number | string, | ||
transformOriginX?: number | string, | ||
transformOriginY?: number | string, | ||
transform?: string; | ||
transformOrigin?: number | string; | ||
transformOriginX?: number | string; | ||
transformOriginY?: number | string; | ||
// Borders?:never, | ||
// Borders | ||
border?: number | string, | ||
borderWidth?: number, | ||
borderColor?: string, | ||
borderStyle?: "dashed" | "dotted" | "solid", | ||
borderTop?: number | string, | ||
borderTopColor?: string, | ||
borderTopStyle?: "dashed" | "dotted" | "solid", // ? | ||
borderTopWidth?: number | string, | ||
borderRight?: number | string, | ||
borderRightColor?: string, | ||
borderRightStyle?: "dashed" | "dotted" | "solid", //? | ||
borderRightWidth?: number | string, | ||
borderBottom?: number | string, | ||
borderBottomColor?: string, | ||
borderBottomStyle?: "dashed" | "dotted" | "solid", //? | ||
borderBottomWidth?: number | string, | ||
borderLeft?: number | string, | ||
borderLeftColor?: string, | ||
borderLeftStyle?: "dashed" | "dotted" | "solid", //? | ||
borderLeftWidth?: number | string, | ||
borderTopLeftRadius?: number | string, | ||
borderTopRightRadius?: number | string, | ||
borderBottomRightRadius?: number | string, | ||
borderBottomLeftRadius?: number | string, | ||
border?: number | string; | ||
borderWidth?: number; | ||
borderColor?: string; | ||
borderStyle?: "dashed" | "dotted" | "solid"; | ||
borderTop?: number | string; | ||
borderTopColor?: string; | ||
borderTopStyle?: "dashed" | "dotted" | "solid"; // ? | ||
borderTopWidth?: number | string; | ||
borderRight?: number | string; | ||
borderRightColor?: string; | ||
borderRightStyle?: "dashed" | "dotted" | "solid"; //? | ||
borderRightWidth?: number | string; | ||
borderBottom?: number | string; | ||
borderBottomColor?: string; | ||
borderBottomStyle?: "dashed" | "dotted" | "solid"; //? | ||
borderBottomWidth?: number | string; | ||
borderLeft?: number | string; | ||
borderLeftColor?: string; | ||
borderLeftStyle?: "dashed" | "dotted" | "solid"; //? | ||
borderLeftWidth?: number | string; | ||
borderTopLeftRadius?: number | string; | ||
borderTopRightRadius?: number | string; | ||
borderBottomRightRadius?: number | string; | ||
borderBottomLeftRadius?: number | string; | ||
borderRadius?: number | string | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13376
12
422