Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

voilab-pdf-table

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

voilab-pdf-table - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

package.json
{
"name": "voilab-pdf-table",
"version": "0.1.3",
"version": "0.1.4",
"description": "PdfKit wrapper that helps to draw informations in simple tables.",

@@ -5,0 +5,0 @@ "main": "voilab-table.js",

@@ -70,16 +70,19 @@ /*jslint node: true, unparam: true, nomen: true */

var width = column.width,
padding_left = 0,
padding_top = 0,
data = row._renderedContent.data[column.id] || '';
padding = {
left: 0,
top: 0
},
data = row._renderedContent.data[column.id] || '',
renderer = isHeader ? column.headerRenderer : column.renderer;
if (!isHeader && column.padding) {
padding_left = getPaddingValue('left', column.padding);
padding_top = getPaddingValue('top', column.padding);
padding.left = getPaddingValue('left', column.padding);
padding.top = getPaddingValue('top', column.padding);
width -= getPaddingValue('horizontal', column.padding);
}
// if specified, cache is not used and renderer is called one more time
if (column.cache === false) {
data = (isHeader ? column.headerRenderer : column.renderer)(self, row, true);
if (renderer && column.cache === false) {
data = renderer(self, row, true, column, lodash.clone(pos), padding);
}
self.pdf.text(data, pos.x + padding_left, pos.y + padding_top, lodash.assign({
self.pdf.text(data, pos.x + padding.left, pos.y + padding.top, lodash.assign({
height: row._renderedContent.height,

@@ -86,0 +89,0 @@ width: width

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc