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