@contrail/document-generation
Advanced tools
Comparing version 2.0.14 to 2.0.15
@@ -10,3 +10,3 @@ "use strict"; | ||
div.id = '__textMeasure'; | ||
div.innerHTML = text; | ||
div.innerHTML = (property.includeLabel ? (property.propertyDefinition.label + ': ') : '') + text; | ||
div.style.position = 'absolute'; | ||
@@ -17,2 +17,3 @@ div.style.top = '-500px'; | ||
div.style.lineHeight = 'normal'; | ||
div.style.overflowWrap = 'break-word'; | ||
div.style.fontFamily = ((_b = (_a = property.style) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.family) || 'Roboto'; | ||
@@ -23,3 +24,3 @@ div.style.fontWeight = property.style.font.weight ? 'bold' : 'normal'; | ||
document.body.appendChild(div); | ||
height = div.offsetHeight + 5; | ||
height = div.offsetHeight; | ||
document.body.removeChild(div); | ||
@@ -26,0 +27,0 @@ div = null; |
{ | ||
"name": "@contrail/document-generation", | ||
"version": "2.0.14", | ||
"version": "2.0.15", | ||
"description": "Utilities for automatic generation of documents.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
783624
1770