@contrail/document-generation 2.1.8 → 2.1.9
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.
|
@@ -31,7 +31,6 @@ class ComponentGridGenerator {
|
|
|
31
31
|
const componentPadding = gridTemplate.componentPadding || 20;
|
|
32
32
|
const alignment = template.alignment || 'left';
|
|
33
33
|
let startingY = componentPosition.y + componentPadding;
|
|
34
|
-
console.log('STARTING Y', startingY);
|
|
35
34
|
const rowGap = componentPadding * 3;
|
|
36
35
|
const colGap = componentPadding * 2;
|
|
37
36
|
const maxComponentHeight = (idealSize.height - template.gridDimensions.rows * colGap) / template.gridDimensions.rows;
|
|
@@ -138,7 +138,7 @@ class FrameGenerator {
|
|
|
138
138
|
documentElement.elementIds = [elementMapping[documentElement.elementIds[0]]];
|
|
139
139
|
}
|
|
140
140
|
if (documentElement.type === 'table') {
|
|
141
|
-
const oldChildElements = templateElements.filter(e => e.tableId === origElementId && ['cell', 'column', 'row'].indexOf(e.type) !== -1);
|
|
141
|
+
const oldChildElements = templateElements.filter((e) => e.tableId === origElementId && ['cell', 'column', 'row'].indexOf(e.type) !== -1);
|
|
142
142
|
let newTableElement, newChildElements = [];
|
|
143
143
|
try {
|
|
144
144
|
[newTableElement, ...newChildElements] = document_table_1.TableCopyService.copy(documentElement, oldChildElements);
|