-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a36224
commit 31de394
Showing
5 changed files
with
91 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
export const FONT_SIZE = 14; | ||
export const ROW_PADDING = 10; | ||
export const LEVEL_INDENTATION = 20; // Indentation per level in nested view | ||
export const COLLAPSE_ICON_X = 5; // X position of the collapse icon | ||
export const FIELD_NAME_X_OFFSET = 20; // Initial X offset for the field name | ||
export const FIELD_TYPE_X = 160; // X position for the field type | ||
export const TABLE_WIDTH = 300; // Width of the table rectangle | ||
export const HEADER_HEIGHT = FONT_SIZE + ROW_PADDING; // Height of the table header | ||
export const DEFAULT_TABLE_WIDTH = 300; | ||
export const ROW_HEIGHT = FONT_SIZE + ROW_PADDING; // Height of the table line | ||
const FONT_SIZE = 14; | ||
const ROW_PADDING = 10; | ||
const LEVEL_INDENTATION = 20; // Indentation per level in nested view | ||
const COLLAPSE_ICON_X = 5; // X position of the collapse icon | ||
const FIELD_NAME_X_OFFSET = 20; // Initial X offset for the field name | ||
const FIELD_TYPE_X = 160; // X position for the field type | ||
const TABLE_WIDTH = 300; // Width of the table rectangle | ||
const HEADER_HEIGHT = FONT_SIZE + ROW_PADDING; // Height of the table header | ||
const DEFAULT_TABLE_WIDTH = 300; | ||
const ROW_HEIGHT = FONT_SIZE + ROW_PADDING; // Height of the table line | ||
|
||
export const TABLE_CONST = { | ||
FONT_SIZE, | ||
ROW_PADDING, | ||
LEVEL_INDENTATION, | ||
COLLAPSE_ICON_X, | ||
FIELD_NAME_X_OFFSET, | ||
FIELD_TYPE_X, | ||
TABLE_WIDTH, | ||
HEADER_HEIGHT, | ||
DEFAULT_TABLE_WIDTH, | ||
ROW_HEIGHT, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters