@react-pdf/types
Advanced tools
Comparing version 2.4.0 to 2.4.1
# @react-pdf/types | ||
## 2.4.1 | ||
### Patch Changes | ||
- [#2573](https://github.com/diegomura/react-pdf/pull/2573) [`9af07fe`](https://github.com/diegomura/react-pdf/commit/9af07feb59c2fe9c1d8960ac95f6fa6e03d16235) Thanks [@davbrito](https://github.com/davbrito)! - feat: add support for resolving blob images | ||
## 2.4.0 | ||
@@ -4,0 +10,0 @@ |
@@ -0,19 +1,18 @@ | ||
// instance.registerFont = vi.fn().mockReturnValue(instance); | ||
// instance.note = vi.fn().mockReturnValue(instance); | ||
// instance.rotate = vi.fn().mockReturnValue(instance); | ||
// instance.scale = vi.fn().mockReturnValue(instance); | ||
// instance.translate = vi.fn().mockReturnValue(instance); | ||
// instance.link = vi.fn().mockReturnValue(instance); | ||
// instance.goTo = vi.fn().mockReturnValue(instance); | ||
// instance.addNamedDestination = vi.fn().mockReturnValue(instance); | ||
// instance.clip = vi.fn().mockReturnValue(instance); | ||
// instance.closePath = vi.fn().mockReturnValue(instance); | ||
// instance.path = vi.fn().mockReturnValue(instance); | ||
// instance.radialGradient = vi.fn().mockReturnValue(instance); | ||
// instance.linearGradient = vi.fn().mockReturnValue(instance); | ||
// instance.fontSize = vi.fn().mockReturnValue(instance); | ||
// instance.text = vi.fn().mockReturnValue(instance); | ||
// instance.font = vi.fn().mockReturnValue(instance); | ||
// instance.registerFont = jest.fn().mockReturnValue(instance); | ||
// instance.note = jest.fn().mockReturnValue(instance); | ||
// instance.rotate = jest.fn().mockReturnValue(instance); | ||
// instance.scale = jest.fn().mockReturnValue(instance); | ||
// instance.translate = jest.fn().mockReturnValue(instance); | ||
// instance.link = jest.fn().mockReturnValue(instance); | ||
// instance.goTo = jest.fn().mockReturnValue(instance); | ||
// instance.addNamedDestination = jest.fn().mockReturnValue(instance); | ||
// instance.clip = jest.fn().mockReturnValue(instance); | ||
// instance.closePath = jest.fn().mockReturnValue(instance); | ||
// instance.path = jest.fn().mockReturnValue(instance); | ||
// instance.radialGradient = jest.fn().mockReturnValue(instance); | ||
// instance.linearGradient = jest.fn().mockReturnValue(instance); | ||
// instance.fontSize = jest.fn().mockReturnValue(instance); | ||
// instance.text = jest.fn().mockReturnValue(instance); | ||
// instance.font = jest.fn().mockReturnValue(instance); | ||
interface DocumentInfo { | ||
@@ -69,3 +68,10 @@ Producer?: string; | ||
roundedRect(x: number, y: number, w: number, h: number, r?: number): this; | ||
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): this; | ||
bezierCurveTo( | ||
cp1x: number, | ||
cp1y: number, | ||
cp2x: number, | ||
cp2y: number, | ||
x: number, | ||
y: number, | ||
): this; | ||
} |
type HTTPMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'; | ||
type SourceURL = string | ||
type SourceURL = string; | ||
type SourceBuffer = Buffer | ||
type SourceBuffer = Buffer; | ||
type SourceBlob = Blob | ||
type SourceDataBuffer = { data: Buffer; format: 'png' | 'jpg' } | ||
type SourceURLObject = { uri: string; method: HTTPMethod; body: any; headers: any; credentials?: 'omit' | 'same-origin' | 'include' } | ||
type SourceURLObject = { | ||
uri: string; | ||
method: HTTPMethod; | ||
body: any; | ||
headers: any; | ||
credentials?: 'omit' | 'same-origin' | 'include'; | ||
}; | ||
@@ -14,12 +22,17 @@ type Source = | ||
| SourceBuffer | ||
| SourceBlob | ||
| SourceDataBuffer | ||
| SourceURLObject | ||
| undefined | ||
| undefined; | ||
type SourceFactory = () => Source | ||
type SourceFactory = () => Source; | ||
type SourceAsync = Promise<Source> | ||
type SourceAsync = Promise<Source>; | ||
type SourceAsyncFactory = () => Promise<Source> | ||
type SourceAsyncFactory = () => Promise<Source>; | ||
export type SourceObject = Source | SourceFactory | SourceAsync | SourceAsyncFactory | ||
export type SourceObject = | ||
| Source | ||
| SourceFactory | ||
| SourceAsync | ||
| SourceAsyncFactory; |
{ | ||
"name": "@react-pdf/types", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "React-pdf TypeScript definitions", |
@@ -54,4 +54,3 @@ export type Orientation = 'portrait' | 'landscape'; | ||
| 'TABLOID' | ||
| 'ID1' | ||
; | ||
| 'ID1'; | ||
@@ -58,0 +57,0 @@ type StaticSize = 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
19998
540