xlsxrb 0.1.17 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +256 -1
  3. data/README.md +111 -28
  4. data/lib/ruby_lsp/xlsxrb/completion_listener.rb +439 -139
  5. data/lib/xlsxrb/chart_builder.rb +540 -193
  6. data/lib/xlsxrb/dsl_helpers.rb +178 -73
  7. data/lib/xlsxrb/elements/cell.rb +197 -130
  8. data/lib/xlsxrb/elements/column.rb +88 -7
  9. data/lib/xlsxrb/elements/coordinate_access.rb +86 -59
  10. data/lib/xlsxrb/elements/image.rb +18 -19
  11. data/lib/xlsxrb/elements/metadata.rb +2379 -0
  12. data/lib/xlsxrb/elements/row.rb +84 -118
  13. data/lib/xlsxrb/elements/styles.rb +140 -90
  14. data/lib/xlsxrb/elements/types.rb +164 -22
  15. data/lib/xlsxrb/elements/workbook.rb +122 -140
  16. data/lib/xlsxrb/elements/worksheet.rb +451 -226
  17. data/lib/xlsxrb/elements.rb +1 -0
  18. data/lib/xlsxrb/ooxml/reader/listeners/core_listeners.rb +16 -5
  19. data/lib/xlsxrb/ooxml/reader/listeners/drawing_listeners.rb +14 -9
  20. data/lib/xlsxrb/ooxml/reader/listeners/feature_listeners.rb +296 -34
  21. data/lib/xlsxrb/ooxml/reader/listeners/style_listeners.rb +17 -3
  22. data/lib/xlsxrb/ooxml/reader.rb +52 -50
  23. data/lib/xlsxrb/ooxml/styles_parser.rb +36 -5
  24. data/lib/xlsxrb/ooxml/utils.rb +2 -2
  25. data/lib/xlsxrb/ooxml/workbook_parser.rb +0 -1
  26. data/lib/xlsxrb/ooxml/workbook_writer.rb +242 -109
  27. data/lib/xlsxrb/ooxml/worksheet_parser.rb +63 -31
  28. data/lib/xlsxrb/ooxml/worksheet_writer.rb +119 -56
  29. data/lib/xlsxrb/ooxml/writer/drawing_xml.rb +33 -13
  30. data/lib/xlsxrb/ooxml/writer/features_xml.rb +75 -15
  31. data/lib/xlsxrb/ooxml/writer/styles_xml.rb +18 -8
  32. data/lib/xlsxrb/ooxml/writer.rb +124 -44
  33. data/lib/xlsxrb/ooxml/xml_parser.rb +78 -5
  34. data/lib/xlsxrb/ooxml/zip_generator.rb +2 -0
  35. data/lib/xlsxrb/ooxml/zip_reader.rb +112 -25
  36. data/lib/xlsxrb/ooxml/zip_writer.rb +119 -30
  37. data/lib/xlsxrb/stream_row.rb +56 -81
  38. data/lib/xlsxrb/stream_sheet.rb +542 -273
  39. data/lib/xlsxrb/stream_writer.rb +1536 -870
  40. data/lib/xlsxrb/style_builder.rb +667 -221
  41. data/lib/xlsxrb/version.rb +1 -1
  42. data/lib/xlsxrb/workbook_builder.rb +406 -143
  43. data/lib/xlsxrb/worksheet_builder.rb +1009 -900
  44. data/lib/xlsxrb.rb +1179 -1056
  45. data/sig/generated/xlsxrb/chart_builder.rbs +385 -159
  46. data/sig/generated/xlsxrb/dsl_helpers.rbs +81 -15
  47. data/sig/generated/xlsxrb/elements/cell.rbs +78 -70
  48. data/sig/generated/xlsxrb/elements/column.rbs +55 -3
  49. data/sig/generated/xlsxrb/elements/coordinate_access.rbs +35 -29
  50. data/sig/generated/xlsxrb/elements/image.rbs +7 -11
  51. data/sig/generated/xlsxrb/elements/metadata.rbs +1574 -0
  52. data/sig/generated/xlsxrb/elements/row.rbs +39 -42
  53. data/sig/generated/xlsxrb/elements/styles.rbs +66 -66
  54. data/sig/generated/xlsxrb/elements/types.rbs +27 -0
  55. data/sig/generated/xlsxrb/elements/workbook.rbs +46 -99
  56. data/sig/generated/xlsxrb/elements/worksheet.rbs +121 -96
  57. data/sig/generated/xlsxrb/ooxml/reader/listeners/feature_listeners.rbs +61 -4
  58. data/sig/generated/xlsxrb/ooxml/reader.rbs +2 -2
  59. data/sig/generated/xlsxrb/ooxml/styles_parser.rbs +1 -1
  60. data/sig/generated/xlsxrb/ooxml/utils.rbs +3 -3
  61. data/sig/generated/xlsxrb/ooxml/workbook_writer.rbs +13 -1
  62. data/sig/generated/xlsxrb/ooxml/worksheet_parser.rbs +16 -0
  63. data/sig/generated/xlsxrb/ooxml/worksheet_writer.rbs +6 -4
  64. data/sig/generated/xlsxrb/ooxml/writer/features_xml.rbs +7 -0
  65. data/sig/generated/xlsxrb/ooxml/writer.rbs +22 -13
  66. data/sig/generated/xlsxrb/ooxml/xml_parser.rbs +70 -0
  67. data/sig/generated/xlsxrb/ooxml/zip_generator.rbs +2 -0
  68. data/sig/generated/xlsxrb/ooxml/zip_reader.rbs +24 -9
  69. data/sig/generated/xlsxrb/ooxml/zip_writer.rbs +26 -1
  70. data/sig/generated/xlsxrb/stream_row.rbs +32 -33
  71. data/sig/generated/xlsxrb/stream_sheet.rbs +233 -181
  72. data/sig/generated/xlsxrb/stream_writer.rbs +961 -667
  73. data/sig/generated/xlsxrb/style_builder.rbs +402 -128
  74. data/sig/generated/xlsxrb/workbook_builder.rbs +223 -71
  75. data/sig/generated/xlsxrb/worksheet_builder.rbs +579 -453
  76. data/sig/generated/xlsxrb.rbs +205 -144
  77. data/sig/rexml.rbs +8 -0
  78. metadata +5 -5
  79. data/lib/xlsxrb/utils.rb +0 -291
  80. data/sig/generated/xlsxrb/utils.rbs +0 -184
@@ -5,12 +5,12 @@ module Xlsxrb
5
5
  #
6
6
  # @example Create a chart definition
7
7
  # builder = ChartBuilder.new
8
- # builder.type(:bar)
9
- # builder.title("Quarterly Sales")
8
+ # builder.type = :bar
9
+ # builder.title = "Quarterly Sales"
10
10
  # builder.series do |s|
11
- # s.name("2026")
12
- # s.categories("Sheet1!$A$2:$A$5")
13
- # s.values("Sheet1!$B$2:$B$5")
11
+ # s.name = "2026"
12
+ # s.categories = "Sheet1!$A$2:$A$5"
13
+ # s.values = "Sheet1!$B$2:$B$5"
14
14
  # end
15
15
  #
16
16
  # @api public
@@ -23,148 +23,285 @@ module Xlsxrb
23
23
  # : Hash[Symbol, untyped]
24
24
  attr_reader options: untyped
25
25
 
26
- # Sets the chart type (e.g. :line, :bar, :pie, :area, :radar, :scatter).
26
+ # Gets the chart type (e.g. :line, :bar, :pie, :area, :radar, :scatter).
27
27
  #
28
- # @param value [Symbol, String] Chart type.
29
- # @return [Symbol, String]
28
+ # @return [Symbol, String, nil]
30
29
  # @api public
31
- # : (Symbol | String value) -> (Symbol | String)
32
- def type: (Symbol | String value) -> (Symbol | String)
30
+ # : () -> (Symbol | String | nil)
31
+ def type: () -> (Symbol | String | nil)
32
+
33
+ # Sets the chart type.
34
+ #
35
+ # @param value [Symbol, String, nil]
36
+ # @return [Symbol, String, nil]
37
+ # @api public
38
+ # : (Symbol | String | nil value) -> (Symbol | String | nil)
39
+ def type=: (Symbol | String | nil value) -> (Symbol | String | nil)
40
+
41
+ # Gets or configures the chart title.
42
+ #
43
+ # @overload title
44
+ # Returns the configured title options or text.
45
+ # @return [String, Hash{Symbol => Object}, nil]
46
+ # @overload title(**kwargs)
47
+ # Configures title using keyword arguments.
48
+ # @return [void]
49
+ # @api public
50
+ # : (**untyped kwargs) -> (String | Hash[Symbol, untyped] | nil)
51
+ def title: (**untyped kwargs) -> (String | Hash[Symbol, untyped] | nil)
33
52
 
34
53
  # Sets the chart title.
35
54
  #
36
- # @param value [String, Hash, nil] Chart title text or options hash.
37
- # @return [String, Hash, nil]
55
+ # @param value [String, Hash{Symbol => Object}, nil]
56
+ # @return [String, Hash{Symbol => Object}, nil]
38
57
  # @api public
39
58
  # : (String | Hash[Symbol, untyped] | nil value) -> (String | Hash[Symbol, untyped] | nil)
40
- def title: (String | Hash[Symbol, untyped] | nil value) -> (String | Hash[Symbol, untyped] | nil)
59
+ def title=: (String | Hash[Symbol, untyped] | nil value) -> (String | Hash[Symbol, untyped] | nil)
41
60
 
42
- # Adds a data series to the chart.
61
+ # Adds a data series to the chart or returns the configured series list.
43
62
  #
44
- # @overload series(value)
45
- # Adds a pre-built series options hash.
46
- # @param value [Hash{Symbol => Object}] Series options hash.
63
+ # @overload series
64
+ # Returns the configured series options list.
47
65
  # @return [Array<Hash{Symbol => Object}>]
48
- #
66
+ # @overload series(**kwargs)
67
+ # Adds a series configured via keyword arguments.
68
+ # @return [void]
49
69
  # @overload series(&block)
50
70
  # Configures a series using a block.
51
71
  # @yield [series_builder]
52
72
  # @yieldparam series_builder [SeriesBuilder]
53
- # @return [Array<Hash{Symbol => Object}>]
73
+ # @return [void]
74
+ # @api public
75
+ # : (**untyped kwargs) ?{ (SeriesBuilder) -> void } -> (Array[Hash[Symbol, untyped]] | nil)
76
+ def series: (**untyped kwargs) ?{ (SeriesBuilder) -> void } -> (Array[Hash[Symbol, untyped]] | nil)
77
+
78
+ # Sets series array.
54
79
  #
80
+ # @param value [Array<Hash{Symbol => Object}>, Hash{Symbol => Object}]
81
+ # @return [Array<Hash{Symbol => Object}>]
55
82
  # @api public
56
- # : (?Hash[Symbol, untyped]? value) ?{ (SeriesBuilder) -> void } -> Array[Hash[Symbol, untyped]]
57
- def series: (?Hash[Symbol, untyped]? value) ?{ (SeriesBuilder) -> void } -> Array[Hash[Symbol, untyped]]
83
+ # : (Array[Hash[Symbol, untyped]] | Hash[Symbol, untyped] value) -> (Array[Hash[Symbol, untyped]] | Hash[Symbol, untyped])
84
+ def series=: (Array[Hash[Symbol, untyped]] | Hash[Symbol, untyped] value) -> (Array[Hash[Symbol, untyped]] | Hash[Symbol, untyped])
58
85
 
59
- # Configures the legend property for this chart.
86
+ # Gets or configures the legend property for this chart.
60
87
  #
61
- # @param args [Array] Positional arguments (e.g. position string).
62
- # @param kwargs [Hash] Keyword arguments for legend styling/layout.
63
- # @return [Object] The configured legend property.
88
+ # @overload legend
89
+ # Returns the configured legend property.
90
+ # @return [Object]
91
+ # @overload legend(**kwargs)
92
+ # Configures legend using keyword arguments.
93
+ # @return [void]
64
94
  # @api public
65
- # : (*(Hash[Symbol, String | Numeric | bool | nil] | String) args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
66
- def legend: (*Hash[Symbol, String | Numeric | bool | nil] | String args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
95
+ # : (**untyped kwargs) -> untyped
96
+ def legend: (**untyped kwargs) -> untyped
67
97
 
68
- # Configures the plot_area property for this chart.
98
+ # Sets the legend property.
69
99
  #
70
- # @param args [Array] Positional arguments.
71
- # @param kwargs [Hash] Keyword arguments for plot area configuration.
72
- # @return [Object] The configured plot_area property.
100
+ # @param value [Object]
101
+ # @return [Object]
73
102
  # @api public
74
- # : (*(Hash[Symbol, String | Numeric | bool | nil] | String) args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
75
- def plot_area: (*Hash[Symbol, String | Numeric | bool | nil] | String args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
103
+ # : (untyped value) -> untyped
104
+ def legend=: (untyped value) -> untyped
76
105
 
77
- # Configures the chart_space property for this chart.
106
+ # Gets or configures the plot_area property for this chart.
78
107
  #
79
- # @param args [Array] Positional arguments.
80
- # @param kwargs [Hash] Keyword arguments.
81
- # @return [Object] The configured chart_space property.
108
+ # @overload plot_area
109
+ # Returns the configured plot_area property.
110
+ # @return [Object]
111
+ # @overload plot_area(**kwargs)
112
+ # Configures plot_area using keyword arguments.
113
+ # @return [void]
82
114
  # @api public
83
- # : (*(Hash[Symbol, String | Numeric | bool | nil] | String) args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
84
- def chart_space: (*Hash[Symbol, String | Numeric | bool | nil] | String args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
115
+ # : (**untyped kwargs) -> untyped
116
+ def plot_area: (**untyped kwargs) -> untyped
85
117
 
86
- # Configures the style index/id for this chart.
118
+ # Sets the plot_area property.
87
119
  #
88
- # @param args [Array] Positional arguments.
89
- # @param kwargs [Hash] Keyword arguments.
90
- # @return [Object] The configured style property.
120
+ # @param value [Object]
121
+ # @return [Object]
91
122
  # @api public
92
- # : (*(Hash[Symbol, String | Numeric | bool | nil] | String | Integer) args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String | Integer)
93
- def style: (*Hash[Symbol, String | Numeric | bool | nil] | String | Integer args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String | Integer)
123
+ # : (untyped value) -> untyped
124
+ def plot_area=: (untyped value) -> untyped
94
125
 
95
- # Configures data labels for this chart.
126
+ # Gets or configures the chart_space property for this chart.
96
127
  #
97
- # @param args [Array] Positional arguments.
98
- # @param kwargs [Hash] Keyword arguments.
99
- # @return [Object] The configured data_labels property.
128
+ # @overload chart_space
129
+ # Returns the configured chart_space property.
130
+ # @return [Object]
131
+ # @overload chart_space(**kwargs)
132
+ # Configures chart_space using keyword arguments.
133
+ # @return [void]
100
134
  # @api public
101
- # : (*(Hash[Symbol, String | Numeric | bool | nil] | String) args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
102
- def data_labels: (*Hash[Symbol, String | Numeric | bool | nil] | String args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
135
+ # : (**untyped kwargs) -> untyped
136
+ def chart_space: (**untyped kwargs) -> untyped
103
137
 
104
- # Configures whether to plot visible cells only.
138
+ # Sets the chart_space property.
105
139
  #
106
- # @param args [Array] Positional arguments.
107
- # @param kwargs [Hash] Keyword arguments.
108
- # @return [Boolean, String]
140
+ # @param value [Object]
141
+ # @return [Object]
109
142
  # @api public
110
- # : (*(bool | String) args, **String | Numeric | bool | nil kwargs) -> (bool | String)
111
- def plot_visible_only: (*bool | String args, **String | Numeric | bool | nil kwargs) -> (bool | String)
143
+ # : (untyped value) -> untyped
144
+ def chart_space=: (untyped value) -> untyped
112
145
 
113
- # Configures how blank cells are displayed in the chart.
146
+ # Gets the style index/id for this chart.
114
147
  #
115
- # @param args [Array] Positional arguments.
116
- # @param kwargs [Hash] Keyword arguments.
117
- # @return [String]
148
+ # @return [Integer, String, Hash, nil] The configured style property.
118
149
  # @api public
119
- # : (*(String) args, **String | Numeric | bool | nil kwargs) -> String
120
- def display_blanks_as: (*String args, **String | Numeric | bool | nil kwargs) -> String
150
+ # : () -> untyped
151
+ def style: () -> untyped
121
152
 
122
- # Configures 3D view properties for 3D charts.
153
+ # Sets the style property.
123
154
  #
124
- # @param args [Array] Positional arguments.
125
- # @param kwargs [Hash] Keyword arguments.
155
+ # @param value [Object]
126
156
  # @return [Object]
127
157
  # @api public
128
- # : (*(Hash[Symbol, String | Numeric | bool | nil] | String) args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
129
- def view3d: (*Hash[Symbol, String | Numeric | bool | nil] | String args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
158
+ # : (untyped value) -> untyped
159
+ def style=: (untyped value) -> untyped
160
+
161
+ # Gets or configures data labels for this chart.
162
+ #
163
+ # @overload data_labels
164
+ # Returns the configured data_labels property.
165
+ # @return [Object]
166
+ # @overload data_labels(**kwargs)
167
+ # Configures data_labels using keyword arguments.
168
+ # @return [void]
169
+ # @api public
170
+ # : (**untyped kwargs) -> untyped
171
+ def data_labels: (**untyped kwargs) -> untyped
130
172
 
131
- # Configures the category axis properties for this chart.
173
+ # Sets data labels.
132
174
  #
133
- # @param args [Array] Positional arguments.
134
- # @param kwargs [Hash] Keyword arguments.
175
+ # @param value [Object]
135
176
  # @return [Object]
136
177
  # @api public
137
- # : (*(Hash[Symbol, String | Numeric | bool | nil] | String) args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
138
- def category_axis: (*Hash[Symbol, String | Numeric | bool | nil] | String args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
178
+ # : (untyped value) -> untyped
179
+ def data_labels=: (untyped value) -> untyped
180
+
181
+ # Returns whether to plot visible cells only.
182
+ #
183
+ # @return [Boolean]
184
+ # @api public
185
+ # : () -> bool
186
+ def plot_visible_only?: () -> bool
187
+
188
+ # Sets whether to plot visible cells only.
189
+ #
190
+ # @param value [Boolean, nil]
191
+ # @return [Boolean, nil]
192
+ # @api public
193
+ # : (bool? value) -> bool?
194
+ def plot_visible_only=: (bool? value) -> bool?
195
+
196
+ # Gets how blank cells are displayed in the chart.
197
+ #
198
+ # @return [String, nil]
199
+ # @api public
200
+ # : () -> String?
201
+ def display_blanks_as: () -> String?
202
+
203
+ # Sets display blanks as mode.
204
+ #
205
+ # @param value [String, nil]
206
+ # @return [String, nil]
207
+ # @api public
208
+ # : (String? value) -> String?
209
+ def display_blanks_as=: (String? value) -> String?
210
+
211
+ # Gets or configures 3D view properties for 3D charts.
212
+ #
213
+ # @overload view3d
214
+ # Returns the configured view3d property.
215
+ # @return [Object]
216
+ # @overload view3d(**kwargs)
217
+ # Configures view3d using keyword arguments.
218
+ # @return [void]
219
+ # @api public
220
+ # : (**untyped kwargs) -> untyped
221
+ def view3d: (**untyped kwargs) -> untyped
222
+
223
+ # Sets 3D view properties.
224
+ #
225
+ # @param value [Object]
226
+ # @return [Object]
227
+ # @api public
228
+ # : (untyped value) -> untyped
229
+ def view3d=: (untyped value) -> untyped
230
+
231
+ # Gets or configures the category axis properties for this chart.
232
+ #
233
+ # @overload category_axis
234
+ # Returns the configured category axis property.
235
+ # @return [Object]
236
+ # @overload category_axis(**kwargs)
237
+ # Configures category axis using keyword arguments.
238
+ # @return [void]
239
+ # @api public
240
+ # : (**untyped kwargs) -> untyped
241
+ def category_axis: (**untyped kwargs) -> untyped
242
+
243
+ # Sets category axis properties.
244
+ #
245
+ # @param value [Object]
246
+ # @return [Object]
247
+ # @api public
248
+ # : (untyped value) -> untyped
249
+ def category_axis=: (untyped value) -> untyped
250
+
251
+ # Gets or configures the value axis properties for this chart.
252
+ #
253
+ # @overload value_axis
254
+ # Returns the configured value axis property.
255
+ # @return [Object]
256
+ # @overload value_axis(**kwargs)
257
+ # Configures value axis using keyword arguments.
258
+ # @return [void]
259
+ # @api public
260
+ # : (**untyped kwargs) -> untyped
261
+ def value_axis: (**untyped kwargs) -> untyped
139
262
 
140
- # Configures the value axis properties for this chart.
263
+ # Sets value axis properties.
141
264
  #
142
- # @param args [Array] Positional arguments.
143
- # @param kwargs [Hash] Keyword arguments.
265
+ # @param value [Object]
144
266
  # @return [Object]
145
267
  # @api public
146
- # : (*(Hash[Symbol, String | Numeric | bool | nil] | String) args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
147
- def value_axis: (*Hash[Symbol, String | Numeric | bool | nil] | String args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
268
+ # : (untyped value) -> untyped
269
+ def value_axis=: (untyped value) -> untyped
270
+
271
+ # Gets or configures the secondary value axis properties for combo charts.
272
+ #
273
+ # @overload secondary_value_axis
274
+ # Returns the configured secondary value axis property.
275
+ # @return [Object]
276
+ # @overload secondary_value_axis(**kwargs)
277
+ # Configures secondary value axis using keyword arguments.
278
+ # @return [void]
279
+ # @api public
280
+ # : (**untyped kwargs) -> untyped
281
+ def secondary_value_axis: (**untyped kwargs) -> untyped
148
282
 
149
- # Configures the secondary value axis properties for combo charts.
283
+ # Sets secondary value axis properties.
150
284
  #
151
- # @param args [Array] Positional arguments.
152
- # @param kwargs [Hash] Keyword arguments.
285
+ # @param value [Object]
153
286
  # @return [Object]
154
287
  # @api public
155
- # : (*(Hash[Symbol, String | Numeric | bool | nil] | String) args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
156
- def secondary_value_axis: (*Hash[Symbol, String | Numeric | bool | nil] | String args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
288
+ # : (untyped value) -> untyped
289
+ def secondary_value_axis=: (untyped value) -> untyped
157
290
 
158
- alias secondary_axis secondary_value_axis
291
+ # Returns whether to show the legend key in data labels.
292
+ #
293
+ # @return [Boolean]
294
+ # @api public
295
+ # : () -> bool
296
+ def show_legend_key?: () -> bool
159
297
 
160
- # Configures whether to show the legend key in data labels.
298
+ # Sets whether to show the legend key in data labels.
161
299
  #
162
- # @param args [Array] Positional arguments.
163
- # @param kwargs [Hash] Keyword arguments.
164
- # @return [Boolean, String]
300
+ # @param value [Boolean, nil]
301
+ # @return [Boolean, nil]
165
302
  # @api public
166
- # : (*(bool | String) args, **String | Numeric | bool | nil kwargs) -> (bool | String)
167
- def show_legend_key: (*bool | String args, **String | Numeric | bool | nil kwargs) -> (bool | String)
303
+ # : (bool? value) -> bool?
304
+ def show_legend_key=: (bool? value) -> bool?
168
305
 
169
306
  # Builder for a single series entry in block-style chart definitions.
170
307
  #
@@ -177,121 +314,210 @@ module Xlsxrb
177
314
  # : Hash[Symbol, untyped]
178
315
  attr_reader options: untyped
179
316
 
180
- # Configures categories reference for this series (e.g. "Sheet1!$A$2:$A$10").
317
+ # Gets categories reference for this series (e.g. "Sheet1!$A$2:$A$10").
318
+ #
319
+ # @return [Object]
320
+ # @api public
321
+ # : () -> untyped
322
+ def categories: () -> untyped
323
+
324
+ # Sets categories reference for this series.
181
325
  #
182
- # @param args [Array] Positional arguments.
183
- # @param kwargs [Hash] Keyword arguments.
326
+ # @param value [Object]
184
327
  # @return [Object]
185
328
  # @api public
186
- # : (*untyped args, **untyped kwargs) -> untyped
187
- def categories: (*untyped args, **untyped kwargs) -> untyped
329
+ # : (untyped value) -> untyped
330
+ def categories=: (untyped value) -> untyped
188
331
 
189
- # Configures values reference for this series (e.g. "Sheet1!$B$2:$B$10").
332
+ # Gets values reference for this series (e.g. "Sheet1!$B$2:$B$10").
190
333
  #
191
- # @param args [Array] Positional arguments.
192
- # @param kwargs [Hash] Keyword arguments.
193
334
  # @return [Object]
194
335
  # @api public
195
- # : (*untyped args, **untyped kwargs) -> untyped
196
- def values: (*untyped args, **untyped kwargs) -> untyped
336
+ # : () -> untyped
337
+ def values: () -> untyped
197
338
 
198
- # Configures the name for this series (e.g. "Total Sales" or cell reference "Sheet1!$B$1").
339
+ # Sets values reference for this series.
199
340
  #
200
- # @param args [Array] Positional arguments.
201
- # @param kwargs [Hash] Keyword arguments.
341
+ # @param value [Object]
202
342
  # @return [Object]
203
343
  # @api public
204
- # : (*untyped args, **untyped kwargs) -> untyped
205
- def name: (*untyped args, **untyped kwargs) -> untyped
344
+ # : (untyped value) -> untyped
345
+ def values=: (untyped value) -> untyped
206
346
 
207
- # Configures data markers for this series.
347
+ # Gets the name for this series (e.g. "Total Sales" or cell reference "Sheet1!$B$1").
208
348
  #
209
- # @param args [Array] Positional arguments.
210
- # @param kwargs [Hash] Keyword arguments.
211
349
  # @return [Object]
212
350
  # @api public
213
- # : (*untyped args, **untyped kwargs) -> untyped
214
- def marker: (*untyped args, **untyped kwargs) -> untyped
351
+ # : () -> untyped
352
+ def name: () -> untyped
215
353
 
216
- # Configures fill color/pattern for this series.
354
+ # Sets name for this series.
217
355
  #
218
- # @param args [Array] Positional arguments.
219
- # @param kwargs [Hash] Keyword arguments.
356
+ # @param value [Object]
220
357
  # @return [Object]
221
358
  # @api public
222
- # : (*(Hash[Symbol, String | Numeric | bool | nil] | String) args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
223
- def fill: (*Hash[Symbol, String | Numeric | bool | nil] | String args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
359
+ # : (untyped value) -> untyped
360
+ def name=: (untyped value) -> untyped
224
361
 
225
- # Configures line color/thickness for this series.
362
+ # Gets or configures data markers for this series.
226
363
  #
227
- # @param args [Array] Positional arguments.
228
- # @param kwargs [Hash] Keyword arguments.
364
+ # @overload marker
365
+ # Returns the configured marker property.
366
+ # @return [Object]
367
+ # @overload marker(**kwargs)
368
+ # Configures marker using keyword arguments.
369
+ # @return [void]
370
+ # @api public
371
+ # : (**untyped kwargs) -> untyped
372
+ def marker: (**untyped kwargs) -> untyped
373
+
374
+ # Sets marker for this series.
375
+ #
376
+ # @param value [Object]
229
377
  # @return [Object]
230
378
  # @api public
231
- # : (*(Hash[Symbol, String | Numeric | bool | nil] | String) args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
232
- def line: (*Hash[Symbol, String | Numeric | bool | nil] | String args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
379
+ # : (untyped value) -> untyped
380
+ def marker=: (untyped value) -> untyped
381
+
382
+ # Gets or configures fill color/pattern for this series.
383
+ #
384
+ # @overload fill
385
+ # Returns the configured fill property.
386
+ # @return [Object]
387
+ # @overload fill(**kwargs)
388
+ # Configures fill using keyword arguments.
389
+ # @return [void]
390
+ # @api public
391
+ # : (**untyped kwargs) -> untyped
392
+ def fill: (**untyped kwargs) -> untyped
233
393
 
234
- # Configures trendline for this series.
394
+ # Sets fill for this series.
235
395
  #
236
- # @param args [Array] Positional arguments.
237
- # @param kwargs [Hash] Keyword arguments.
396
+ # @param value [Object]
238
397
  # @return [Object]
239
398
  # @api public
240
- # : (*(Hash[Symbol, String | Numeric | bool | nil] | String) args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
241
- def trendline: (*Hash[Symbol, String | Numeric | bool | nil] | String args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
399
+ # : (untyped value) -> untyped
400
+ def fill=: (untyped value) -> untyped
242
401
 
243
- # Configures data labels for this series.
402
+ # Gets or configures line color/thickness for this series.
244
403
  #
245
- # @param args [Array] Positional arguments.
246
- # @param kwargs [Hash] Keyword arguments.
404
+ # @overload line
405
+ # Returns the configured line property.
406
+ # @return [Object]
407
+ # @overload line(**kwargs)
408
+ # Configures line using keyword arguments.
409
+ # @return [void]
410
+ # @api public
411
+ # : (**untyped kwargs) -> untyped
412
+ def line: (**untyped kwargs) -> untyped
413
+
414
+ # Sets line for this series.
415
+ #
416
+ # @param value [Object]
247
417
  # @return [Object]
248
418
  # @api public
249
- # : (*(Hash[Symbol, String | Numeric | bool | nil] | String) args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
250
- def data_labels: (*Hash[Symbol, String | Numeric | bool | nil] | String args, **String | Numeric | bool | nil kwargs) -> (Hash[Symbol, String | Numeric | bool | nil] | String)
419
+ # : (untyped value) -> untyped
420
+ def line=: (untyped value) -> untyped
421
+
422
+ # Gets or configures trendline for this series.
423
+ #
424
+ # @overload trendline
425
+ # Returns the configured trendline property.
426
+ # @return [Object]
427
+ # @overload trendline(**kwargs)
428
+ # Configures trendline using keyword arguments.
429
+ # @return [void]
430
+ # @api public
431
+ # : (**untyped kwargs) -> untyped
432
+ def trendline: (**untyped kwargs) -> untyped
433
+
434
+ # Sets trendline for this series.
435
+ #
436
+ # @param value [Object]
437
+ # @return [Object]
438
+ # @api public
439
+ # : (untyped value) -> untyped
440
+ def trendline=: (untyped value) -> untyped
441
+
442
+ # Gets or configures data labels for this series.
443
+ #
444
+ # @overload data_labels
445
+ # Returns the configured data_labels property.
446
+ # @return [Object]
447
+ # @overload data_labels(**kwargs)
448
+ # Configures data_labels using keyword arguments.
449
+ # @return [void]
450
+ # @api public
451
+ # : (**untyped kwargs) -> untyped
452
+ def data_labels: (**untyped kwargs) -> untyped
453
+
454
+ # Sets data labels for this series.
455
+ #
456
+ # @param value [Object]
457
+ # @return [Object]
458
+ # @api public
459
+ # : (untyped value) -> untyped
460
+ def data_labels=: (untyped value) -> untyped
461
+
462
+ # Returns line smoothing for this series.
463
+ #
464
+ # @return [Boolean]
465
+ # @api public
466
+ # : () -> bool
467
+ def smooth?: () -> bool
468
+
469
+ # Sets line smoothing for this series.
470
+ #
471
+ # @param value [Boolean, nil]
472
+ # @return [Boolean, nil]
473
+ # @api public
474
+ # : (bool? value) -> bool?
475
+ def smooth=: (bool? value) -> bool?
476
+
477
+ # Gets 3D bar/column shape (e.g. "cylinder", "cone", "pyramid").
478
+ #
479
+ # @return [String, nil]
480
+ # @api public
481
+ # : () -> String?
482
+ def shape: () -> String?
251
483
 
252
- # Configures line smoothing for this series.
484
+ # Sets 3D bar/column shape for this series.
253
485
  #
254
- # @param args [Array] Positional arguments.
255
- # @param kwargs [Hash] Keyword arguments.
256
- # @return [Boolean, String]
486
+ # @param value [String, nil]
487
+ # @return [String, nil]
257
488
  # @api public
258
- # : (*(bool | String) args, **String | Numeric | bool | nil kwargs) -> (bool | String)
259
- def smooth: (*bool | String args, **String | Numeric | bool | nil kwargs) -> (bool | String)
489
+ # : (String? value) -> String?
490
+ def shape=: (String? value) -> String?
260
491
 
261
- # Configures 3D bar/column shape (e.g. "cylinder", "cone", "pyramid").
492
+ # Gets individual series chart type override in combo charts.
262
493
  #
263
- # @param args [Array] Positional arguments.
264
- # @param kwargs [Hash] Keyword arguments.
265
- # @return [String]
494
+ # @return [Symbol, String, nil]
266
495
  # @api public
267
- # : (*(String) args, **String | Numeric | bool | nil kwargs) -> String
268
- def shape: (*String args, **String | Numeric | bool | nil kwargs) -> String
496
+ # : () -> (Symbol | String | nil)
497
+ def type: () -> (Symbol | String | nil)
269
498
 
270
- # Configures individual series chart type override in combo charts.
499
+ # Sets individual series chart type override.
271
500
  #
272
- # @param args [Array] Positional arguments.
273
- # @param kwargs [Hash] Keyword arguments.
274
- # @return [Symbol, String, Hash, nil]
501
+ # @param value [Symbol, String, nil]
502
+ # @return [Symbol, String, nil]
275
503
  # @api public
276
- # : (*(String | Symbol) args, **String | Numeric | bool | nil kwargs) -> (String | Symbol | Hash[Symbol, untyped] | nil)
277
- def type: (*String | Symbol args, **String | Numeric | bool | nil kwargs) -> (String | Symbol | Hash[Symbol, untyped] | nil)
504
+ # : (Symbol | String | nil value) -> (Symbol | String | nil)
505
+ def type=: (Symbol | String | nil value) -> (Symbol | String | nil)
278
506
 
279
- # Configures whether this series uses the secondary value axis.
507
+ # Gets the axis (:primary or :secondary) for this series.
280
508
  #
281
- # @param args [Array] Positional arguments.
282
- # @param kwargs [Hash] Keyword arguments.
283
- # @return [Boolean, Hash]
509
+ # @return [Symbol, String, nil]
284
510
  # @api public
285
- # : (*bool args, **bool kwargs) -> (bool | Hash[Symbol, bool])
286
- def secondary_axis: (*bool args, **bool kwargs) -> (bool | Hash[Symbol, bool])
511
+ # : () -> (Symbol | String | nil)
512
+ def axis: () -> (Symbol | String | nil)
287
513
 
288
- # Configures the axis (:primary or :secondary) for this series.
514
+ # Sets the axis for this series.
289
515
  #
290
- # @param value [Symbol, String]
291
- # @return [Symbol, String]
516
+ # @param value [Symbol, String, nil]
517
+ # @return [Symbol, String, nil]
292
518
  # @api public
293
- # : (Symbol | String value) -> (Symbol | String)
294
- def axis: (Symbol | String value) -> (Symbol | String)
519
+ # : (Symbol | String | nil value) -> (Symbol | String | nil)
520
+ def axis=: (Symbol | String | nil value) -> (Symbol | String | nil)
295
521
  end
296
522
  end
297
523
  end