File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import {
2727export 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 {
3536export 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 }
Original file line number Diff line number Diff line change 1717export 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
2425export 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
You can’t perform that action at this time.
0 commit comments