Skip to content

Commit 4b70cf5

Browse files
committed
v1.7.1
1 parent ddb033f commit 4b70cf5

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

src/models/grid.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
export const transformGridToJSON = function (value: Grid): any {
2828
return {
2929
horizontal_offset: value.horizontalOffset,
30+
vertical_offset: value.verticalOffset,
3031
vertical: value.vertical && transformVerticalGridToJSON(value.vertical),
3132
horizontal: value.horizontal && transformHorizontalGridToJSON(value.horizontal)
3233
}
@@ -35,6 +36,7 @@ export const transformGridToJSON = function (value: Grid): any {
3536
export const transformJSONToGrid = function (value: any): Grid {
3637
return {
3738
horizontalOffset: value.horizontal_offset,
39+
verticalOffset: value.vertical_offset,
3840
vertical: value.vertical && transformJSONToVerticalGrid(value.vertical),
3941
horizontal: value.horizontal && transformJSONToHorizontalGrid(value.horizontal)
4042
}
@@ -52,6 +54,12 @@ export interface Grid {
5254
* @memberof Grid
5355
*/
5456
horizontalOffset?: number;
57+
/**
58+
*
59+
* @type {number}
60+
* @memberof Grid
61+
*/
62+
verticalOffset?: number;
5563
/**
5664
*
5765
* @type {VerticalGrid}

src/models/horizontal-grid.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@
1717
export const transformHorizontalGridToJSON = function (value: HorizontalGrid): any {
1818
return {
1919
gutter_height: value.gutterHeight,
20-
row_height: value.rowHeight
20+
row_height: value.rowHeight,
21+
number_of_rows: value.numberOfRows
2122
}
2223
}
2324

2425
export const transformJSONToHorizontalGrid = function (value: any): HorizontalGrid {
2526
return {
2627
gutterHeight: value.gutter_height,
27-
rowHeight: value.row_height
28+
rowHeight: value.row_height,
29+
numberOfRows: value.number_of_rows
2830
}
2931
}
3032

@@ -46,6 +48,12 @@ export interface HorizontalGrid {
4648
* @memberof HorizontalGrid
4749
*/
4850
rowHeight: number;
51+
/**
52+
*
53+
* @type {number}
54+
* @memberof HorizontalGrid
55+
*/
56+
numberOfRows?: number;
4957
}
5058

5159

0 commit comments

Comments
 (0)