This repository has been archived by the owner on Aug 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
img_kinds.go
52 lines (46 loc) · 1.45 KB
/
img_kinds.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
package blocks
// ImgArrangement is an enumeration of possible Img internal arrangements.
//
// Keywords:
// column ImgArrangementColumn
// grid ImgArrangementGrid
type ImgArrangement int
const (
// ImgArrangementColumn is the default arrangement. Images are in one column, text is below the images.
ImgArrangementColumn ImgArrangement = iota
// ImgArrangementGrid places the images in a grid. The grid size is unspecified.
ImgArrangementGrid
)
func (arrangement ImgArrangement) String() string {
switch arrangement {
case ImgArrangementGrid:
return "grid"
default:
return "column"
}
}
// ImgPosition is an enumeration of possible Img external placements.
//
// Keywords:
// stretch ImgPositionStretch
// start ImgPositionStart
// end ImgPositionEnd
type ImgPosition int
const (
// ImgPositionStretch is the default placement. The gallery is stretched horizontally.
ImgPositionStretch ImgPosition = iota
// ImgPositionStart places the gallery to the ‘start’. For LTR environments, that would be the left side. For RTL environments, that would be the right side.
ImgPositionStart
// ImgPositionEnd places the gallery to the ‘end’. For LTR environments, that would be the right side. For RTL environments, that would be the left side.
ImgPositionEnd
)
func (pos ImgPosition) String() string {
switch pos {
case ImgPositionStart:
return "start"
case ImgPositionEnd:
return "end"
default:
return "stretch"
}
}