Debian Codegraph @

opts/calendar.go

raw symbols SCIP
1 package opts
2
3 import "github.com/go-echarts/go-echarts/v2/types"
4
5 // Calendar is the option set for a calendar component.
6 // This works with the calendar coordinate system, and it is a heatmap calendar.
7 type Calendar struct {
8 ID string `json:"id,omitempty"`
9 Zlevel int `json:"zlevel,omitempty"`
10 Z int `json:"z,omitempty"`
11 // Distance between grid component and the left side of the container.
12 Left string `json:"left,omitempty"`
13
14 // Distance between grid component and the right side of the container.
15 Right string `json:"right,omitempty"`
16
17 // Distance between grid component and the top side of the container.
18 Top string `json:"top,omitempty"`
19
20 // Distance between grid component and the bottom side of the container.
21 Bottom string `json:"bottom,omitempty"`
22
23 // Width of grid component.
24 Width string `json:"width,omitempty"`
25
26 // Height of grid component. Adaptive by default.
27 Height string `json:"height,omitempty"`
28
29 // Required, range of Calendar coordinates, support multiple formats.
30 Range []string `json:"range,omitempty"`
31
32 // The size of each rect of calendar coordinates.
33 CellSize string `json:"cellSize,omitempty"`
34
35 // The layout orientation of legend.
36 // Options: 'horizontal', 'vertical'
37 Orient string `json:"orient,omitempty"`
38
39 // Split line of X axis in grid area.
40 SplitLine *SplitLine `json:"splitLine,omitempty"`
41
42 // Graphic style of Map Area Border, emphasis is the style when it is highlighted,
43 // like being hovered by mouse, or highlighted via legend connect.
44 ItemStyle *ItemStyle `json:"itemStyle,omitempty"`
45
46 // Day Label
47 DayLabel *CalendarLabel `json:"dayLabel,omitempty"`
48
49 // Month Label
50 MonthLabel *CalendarLabel `json:"monthLabel,omitempty"`
51
52 // Year Label
53 YearLabel *CalendarLabel `json:"yearLabel,omitempty"`
54
55 // Whether to ignore mouse events. Default value is false, for triggering and responding to mouse events.
56 Silent types.Bool `json:"silent,omitempty"`
57 }
58
59 // CalendarLabel is the option set for a calendar label: DayLabel, MonthLabel, YearLabel.
60 type CalendarLabel struct {
61 // Whether to show the label.
62 Show types.Bool `json:"show,omitempty"`
63
64 FirstDay int `json:"firstDay,omitempty"`
65
66 // The margin between the month label and the axis line.
67 Margin float64 `json:"margin,omitempty"`
68
69 // Position of year.
70 // Default: when orient is set as horizontal, position is left when orient is set as vertical, position is top.
71 // Options: 'left', 'right', 'top', 'bottom'
72 Position string `json:"position,omitempty"`
73
74 // Text color.
75 Color string `json:"color,omitempty"`
76
77 // Font style.
78 // Options: 'normal', 'italic', 'oblique'
79 FontStyle string `json:"fontStyle,omitempty"`
80
81 // Font weight.
82 // Options: 'normal', 'bold', 'bolder', 'lighter', 100 | 200 | 300 | 400...
83 FontWeight string `json:"fontWeight,omitempty"`
84
85 // Font family.
86 FontFamily string `json:"fontFamily,omitempty"`
87
88 // Font size.
89 FontSize int `json:"fontSize,omitempty"`
90
91 // Horizontal alignment of text, automatic by default.
92 // Options: 'left', 'center', 'right'
93 Align string `json:"align,omitempty"`
94
95 // Vertical alignment of text, automatic by default.
96 // Options: 'top', 'middle', 'bottom'
97 VerticalAlign string `json:"verticalAlign,omitempty"`
98
99 // Line height of text.
100 LineHeight int `json:"lineHeight,omitempty"`
101
102 // Background color of label, which is transparent by default.
103 BackgroundColor string `json:"backgroundColor,omitempty"`
104
105 // Border color of label.
106 BorderColor string `json:"borderColor,omitempty"`
107
108 // Border width of label.
109 BorderWidth int `json:"borderWidth,omitempty"`
110
111 // Border radius of label.
112 BorderRadius int `json:"borderRadius,omitempty"`
113
114 // Border type of label.
115 // Options: 'solid', 'dashed', 'dotted'
116 BorderType string `json:"borderType,omitempty"`
117
118 // Border dash offset of label.
119 BorderDashOffset int `json:"borderDashOffset,omitempty"`
120
121 // Padding
122 Padding int `json:"padding,omitempty"`
123
124 // Shadow blur of text block.
125 ShadowBlur int `json:"shadowBlur,omitempty"`
126
127 // Shadow color of text block.
128 ShadowColor string `json:"shadowColor,omitempty"`
129
130 // Shadow X offset of text block.
131 ShadowOffsetX int `json:"shadowOffsetX,omitempty"`
132
133 // Shadow Y offset of text block.
134 ShadowOffsetY int `json:"shadowOffsetY,omitempty"`
135
136 // Width
137 Width int `json:"width,omitempty"`
138
139 // Height
140 Height int `json:"height,omitempty"`
141
142 // Text border color.
143 TextBorderColor string `json:"textBorderColor,omitempty"`
144
145 // Text border width.
146 TextBorderWidth int `json:"textBorderWidth,omitempty"`
147
148 // Text border type
149 // Options: 'solid', 'dashed', 'dotted'
150 TextBorderType string `json:"textBorderType,omitempty"`
151
152 // Text border dash offset.
153 TextBorderDashOffset int `json:"textBorderDashOffset,omitempty"`
154
155 // Text shadow color.
156 TextShadowColor string `json:"textShadowColor,omitempty"`
157
158 // Text shadow blur.
159 TextShadowBlur int `json:"textShadowBlur,omitempty"`
160
161 // Text shadow X offset.
162 TextShadowOffsetX int `json:"textShadowOffsetX,omitempty"`
163
164 // Text shadow Y offset.
165 TextShadowOffsetY int `json:"textShadowOffsetY,omitempty"`
166
167 // Overflow
168 Overflow string `json:"overflow,omitempty"`
169
170 // Ellipsis
171 Ellipsis types.Bool `json:"ellipsis,omitempty"`
172
173 // Silent
174 Silent types.Bool `json:"silent,omitempty"`
175 }