-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.py
More file actions
34 lines (26 loc) · 1017 Bytes
/
Copy pathconstants.py
File metadata and controls
34 lines (26 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Shared constants
HTML_BREAK_PATTERN = r"<br/?>"
HTML_BREAK = "<br>"
# TODO save to user-editable file for customizability
# Renders images sized to the bounding box of this layer
BG_LAYER_NAME: str = "BG"
PNG_IMAGE_EXTENSION = "png"
GIF_IMAGE_EXTENSION = "gif"
# For generating image filenames, the separator between alphanumeric chars, e.g. "s_mplay_123"
SHORT_NAME_INFIX_SEPARATOR = "_"
THREADS_PER_CPU = 0.8
# For reading the pattern text files
COMMENT_KEY = "#"
SEPARATOR_VALUE_WRAPPER = "\"" # just a quote, for later stripping of the quoted string values
SEPARATOR_KEY = "__separator__"
TABLE_HEADER_KEY = "__header__"
PATTERN_FILE_DELIMITER = "="
DIGITS_MACRO_NAME = "%digits%"
# For reading the imageset CSV text files - (single-quoted for string interpolation, please)
Y_POS_CSV_HEADER = 'y_pos'
X_POS_CSV_HEADER = 'x_pos'
LAYER_NAME_CSV_HEADER = 'layer_name'
IMAGE_FILE_CSV_HEADER = 'image_file'
GIF_BEGIN_FRAME_DURATION_MS = 1000
GIF_MID_FRAME_DURATION_MS = 400
GIF_END_FRAME_DURATION_MS = 2000