/
const.go
57 lines (50 loc) · 1.01 KB
/
const.go
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package tableimage
const (
// DefaultLineHeight default row space
DefaultLineHeight = 1.2
// DefaultFontSize default font size
DefaultFontSize = 13
// DefaultPadding default padding
DefaultPadding = 10
// DefaultWrapWords default wrap words count
DefaultWrapWords = 20
// DefaultColor default text color
DefaultColor = "#212121"
// DefaultBorderWidth default stroke line width
DefaultBorderWidth = 1
// DefaultDPI default font dpi
DefaultDPI = 72
)
// ImageType image type for writer
type ImageType int
const (
_ ImageType = iota
// JPEG jpeg image
JPEG
// PNG png image
PNG
)
// Align Alignment
type Align int
const (
// UnknownAlign unknown alignment
UnknownAlign Align = iota
// LEFT align left
LEFT
// RIGHT align right
RIGHT
// CENTER align center
CENTER
)
// VAlign vertical alignment
type VAlign int
const (
// UnknownVAlign unknown alignment
UnknownVAlign VAlign = iota
// TOP vertical align top
TOP
// BOTTOM vertical align bottom
BOTTOM
// MIDDLE vertical align bottom
MIDDLE
)