pdfkit-table
Advanced tools
Comparing version 0.1.97 to 0.1.98
@@ -52,15 +52,23 @@ declare module 'pdfkit-table' | ||
interface DividerOptions { | ||
disabled: boolean; | ||
width: number; | ||
opacity: number; | ||
disabled?: boolean; | ||
width?: number; | ||
opacity?: number; | ||
} | ||
interface Divider { | ||
header: DividerOptions; | ||
horizontal: DividerOptions; | ||
header?: DividerOptions; | ||
horizontal?: DividerOptions; | ||
} | ||
interface Title | ||
{ | ||
label: string; | ||
fontSize?: number; | ||
fontFamily?: string; | ||
color?: string; | ||
} | ||
interface Options { | ||
title?: string; | ||
subtitle?: string; | ||
title?: string | Title ; | ||
subtitle?: string | Title; | ||
width?: number; | ||
@@ -67,0 +75,0 @@ x?: number; //default doc.x |
{ | ||
"name": "pdfkit-table", | ||
"version": "0.1.97", | ||
"version": "0.1.98", | ||
"description": "PdfKit Table. Helps to draw informations in simple tables using pdfkit. #server-side. Generate pdf tables with javascript (PDFKIT plugin) ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -56,3 +56,3 @@ <p align="center"> | ||
// the magic (async/await) | ||
await doc.table(table, { /* options */ }, () => { /* callback */ } ); | ||
await doc.table(table, { /* options */ }); | ||
// -- or -- | ||
@@ -244,4 +244,4 @@ // doc.table(table).then(() => { doc.end() }).catch((err) => { }) | ||
- headerAlign <code>String</code> | ||
- columnColor or backgroundColor <code>String</code> | ||
- columnOpacity or backgroundOpacity: <code>Number</code> | ||
- columnColor or ~~backgroundColor~~: <code>String</code> | ||
- columnOpacity or ~~backgroundOpacity~~: <code>Number</code> | ||
- renderer <code>Function</code> function( value, indexColumn, indexRow, row, rectRow, rectCell ) { return value } | ||
@@ -510,3 +510,3 @@ - datas <code>Array.<object></code> | ||
```js | ||
doc.table(table, options, callback); | ||
~~doc.table(table, options, callback)~~; | ||
``` | ||
@@ -513,0 +513,0 @@ |
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
55818
823