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