@contrail/document-generation
Advanced tools
Comparing version 2.0.23 to 2.0.24
@@ -180,4 +180,4 @@ "use strict"; | ||
const heading = documents_1.DocumentElementFactory.createTextElement("Placeholder", {}); | ||
heading.style = { border: { width: 1, color: "rgba(0,0,0,0)" }, color: "#000000", backgroundColor: template.frameGroupHeaderTemplate.style.backgroundColor || 'black' }; | ||
heading.text = `<p><span style=\"font-size: ${template.frameGroupHeaderTemplate.style.font.size}pt;\"><strong><span style=\"color: ${template.frameGroupHeaderTemplate.style.color};\">${document_util_1.DocumentUtil.sanitizeHTML(dataGroup.name)}</span></strong></span></p>`; | ||
heading.style = { border: { width: 1, color: "rgba(0,0,0,0)" }, color: "#000000", backgroundColor: template.secondaryFrameGroupHeaderTemplate.style.backgroundColor || 'black' }; | ||
heading.text = `<p><span style=\"font-size: ${template.secondaryFrameGroupHeaderTemplate.style.font.size}pt;\"><strong><span style=\"color: ${template.secondaryFrameGroupHeaderTemplate.style.color};\">${document_util_1.DocumentUtil.sanitizeHTML(dataGroup.name)}</span></strong></span></p>`; | ||
heading.position = position; | ||
@@ -189,3 +189,3 @@ if (template.frameOrientation === interfaces_1.Orientation.VERTICAL) { | ||
} | ||
heading.size = { width: sizeDim, height: template.frameGroupHeaderTemplate.size.height }; | ||
heading.size = { width: sizeDim, height: template.secondaryFrameGroupHeaderTemplate.size.height }; | ||
heading.rotate = { angle: 270 }; | ||
@@ -201,3 +201,3 @@ heading.position.x = heading.position.x - (heading.size.width / 2) + (heading.size.height / 2); | ||
heading.rotate = { angle: 0 }; | ||
heading.size = { width: sizeDim, height: template.frameGroupHeaderTemplate.size.height }; | ||
heading.size = { width: sizeDim, height: template.secondaryFrameGroupHeaderTemplate.size.height }; | ||
} | ||
@@ -204,0 +204,0 @@ elements.push(heading); |
@@ -22,2 +22,3 @@ import { DataGroupStructure } from "@contrail/data-grouping"; | ||
frameGroupHeaderTemplate: DocumentElement; | ||
secondaryFrameGroupHeaderTemplate?: DocumentElement; | ||
frameHeaderTemplate?: DocumentElement; | ||
@@ -24,0 +25,0 @@ frameInfoPanelTemplate?: FrameInfoPanelTemplate; |
{ | ||
"name": "@contrail/document-generation", | ||
"version": "2.0.23", | ||
"version": "2.0.24", | ||
"description": "Utilities for automatic generation of documents.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
793389
1935