@contrail/document-generation 1.0.17 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,7 +13,10 @@ class DocumentPropertyUtil {
|
|
|
13
13
|
const formatter = new types_1.PropertyValueFormatter();
|
|
14
14
|
for (let property of properties) {
|
|
15
15
|
const fontSize = ((_b = (_a = property.style) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.size) || 12;
|
|
16
|
-
|
|
16
|
+
const PT_TO_PX = 1.3;
|
|
17
|
+
const LINE_HEIGHT = 1.4;
|
|
18
|
+
let height = fontSize * PT_TO_PX * LINE_HEIGHT;
|
|
19
|
+
console.log("derived height: ", fontSize, height);
|
|
17
20
|
options.size = options.size || {};
|
|
18
21
|
options.size.height = height;
|
|
19
22
|
let element = DocumentPropertyUtil.generatePropertyTextElement(data, property, options, formatter, { x: xPosition, y: yPosition }, isComponent);
|