@types/pdfkit
Advanced tools
Comparing version 0.7.35 to 0.7.36
@@ -61,5 +61,12 @@ // Type definitions for Pdfkit v0.7.2 | ||
// The color forms accepted by PDFKit: | ||
// example: "red" [R, G, B] [C, M, Y, K] | ||
type ColorValue = string | PDFGradient | [number, number, number] | [number, number, number, number]; | ||
// The winding / filling rule accepted by PDFKit: | ||
type RuleValue = "even-odd" | "evenodd" | "non-zero" | "nonzero"; | ||
interface PDFColor<TDocument> { | ||
fillColor(color: string|PDFGradient, opacity?: number): TDocument; | ||
strokeColor(color: string, opacity?: number): TDocument; | ||
fillColor(color: ColorValue, opacity?: number): TDocument; | ||
strokeColor(color: ColorValue, opacity?: number): TDocument; | ||
opacity(opacity: number): TDocument; | ||
@@ -170,6 +177,9 @@ fillOpacity(opacity: number): TDocument; | ||
path(path: string): TDocument; | ||
fill(color: string|PDFKit.PDFGradient, rule?: string): TDocument; | ||
stroke(color?: string|PDFKit.PDFGradient): TDocument; | ||
fillAndStroke(fillColor: string, strokeColor?: string, rule?: string): TDocument; | ||
clip(rule?: string): TDocument; | ||
fill(color?: ColorValue, rule?: RuleValue): TDocument; | ||
fill(rule: RuleValue): TDocument; | ||
stroke(color?: ColorValue): TDocument; | ||
fillAndStroke(fillColor?: ColorValue, strokeColor?: ColorValue, rule?: RuleValue): TDocument; | ||
fillAndStroke(fillColor: ColorValue, rule?: RuleValue): TDocument; | ||
fillAndStroke(rule: RuleValue): TDocument; | ||
clip(rule?: RuleValue): TDocument; | ||
transform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): TDocument; | ||
@@ -176,0 +186,0 @@ translate(x: number, y: number): TDocument; |
{ | ||
"name": "@types/pdfkit", | ||
"version": "0.7.35", | ||
"version": "0.7.36", | ||
"description": "TypeScript definitions for Pdfkit", | ||
@@ -9,3 +9,4 @@ "license": "MIT", | ||
"name": "Eric Hillah", | ||
"url": "https://github.com/erichillah" | ||
"url": "https://github.com/erichillah", | ||
"githubUsername": "erichillah" | ||
} | ||
@@ -22,5 +23,4 @@ ], | ||
}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "72308e6d4c5a2f421147946859d99b6994451911061e36c076caaf74712f9ad2", | ||
"typesPublisherContentHash": "7a5fe68390494365dceb018ed5a3a00dbb4cf95f929247d659eaa57e8281e465", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/pdfkit | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pdfkit | ||
Additional Details | ||
* Last updated: Sat, 11 Mar 2017 00:13:28 GMT | ||
* Last updated: Tue, 03 Oct 2017 13:52:13 GMT | ||
* Dependencies: node | ||
@@ -14,0 +14,0 @@ * Global values: PDFKit |
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
16781
4
359