@types/pdfkit
Advanced tools
| MIT License | ||
| Copyright (c) Microsoft Corporation. All rights reserved. | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE |
+16
-6
@@ -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" | ||
| } |
+2
-2
@@ -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 |
16781
11.48%4
33.33%359
2.28%