@contrail/document-generation
Advanced tools
Comparing version 2.0.35 to 2.0.36
@@ -0,0 +0,0 @@ import { DocumentElement, PositionDefinition } from '@contrail/documents'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { DocumentElement } from '@contrail/documents'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { DocumentElement, PositionDefinition, SizeDefinition } from '@contrail/documents'; |
@@ -32,2 +32,3 @@ "use strict"; | ||
const componentPadding = gridTemplate.componentPadding || 20; | ||
const maxComponentHeight = (idealSize.height - template.gridDimensions.rows * componentPadding * 2) / template.gridDimensions.rows; | ||
componentPosition.x += componentPadding; | ||
@@ -48,3 +49,3 @@ componentPosition.y += componentPadding; | ||
} | ||
componentPosition.y += componentSize.height + componentPadding * 2; | ||
componentPosition.y += Math.min(componentSize.height, maxComponentHeight) + componentPadding * 2; | ||
componentPosition.x = startingPosition.x + componentPadding; | ||
@@ -51,0 +52,0 @@ } |
@@ -0,0 +0,0 @@ import { DocumentElement, SizeDefinition } from '@contrail/documents'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { DocumentElement } from '@contrail/documents'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { DocumentElement, PositionDefinition, SizeDefinition } from '@contrail/documents'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { DocumentElement, PositionDefinition, SizeDefinition, StyleDefinition } from '@contrail/documents'; |
@@ -0,0 +0,0 @@ "use strict"; |
export * from './frame'; | ||
export * from './frame-generator'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export * from './document-generator'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { DocumentElement, PositionDefinition, SizeDefinition } from '@contrail/documents'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { DataGroupStructure } from '@contrail/data-grouping'; |
@@ -0,0 +0,0 @@ "use strict"; |
export {}; |
@@ -0,0 +0,0 @@ "use strict"; |
export {}; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { DocumentGenerationOptions } from './interfaces'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { DataGroupStructure } from '@contrail/data-grouping'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { DocumentPropertyDefinition } from '../interfaces'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { DocumentElement, StyleDefinition } from '@contrail/documents'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { PositionDefinition } from '@contrail/documents'; |
@@ -0,0 +0,0 @@ "use strict"; |
export * from './document-text-element-util'; | ||
export * from './document-property-util'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { DocumentPropertyDefinition } from '../interfaces'; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "@contrail/document-generation", | ||
"version": "2.0.35", | ||
"version": "2.0.36", | ||
"description": "Utilities for automatic generation of documents.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Library for use with @contrail/documents that allows for the quick/automation generation of | ||
documents based on templates and layout options. |
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1127853
27976
3