-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
align_v.go
34 lines (29 loc) · 827 Bytes
/
align_v.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
// Copyright (c) 2017 Andrey Gayvoronsky <plandem@gmail.com>
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package styles
import (
"github.com/plandem/xlsx/internal/ml/primitives"
)
//List of all possible values for VAlignType
const (
_ primitives.VAlignType = iota
VAlignTop
VAlignCenter
VAlignBottom
VAlignJustify
VAlignDistributed
)
func init() {
primitives.FromVAlignType = map[primitives.VAlignType]string{
VAlignTop: "top",
VAlignCenter: "center",
VAlignBottom: "bottom",
VAlignJustify: "justify",
VAlignDistributed: "distributed",
}
primitives.ToVAlignType = make(map[string]primitives.VAlignType, len(primitives.FromVAlignType))
for k, v := range primitives.FromVAlignType {
primitives.ToVAlignType[v] = k
}
}