axlsx 1.0.8 → 1.0.9
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.
- data/CHANGELOG.md +14 -0
- data/README.md +22 -21
- data/Rakefile +1 -1
- data/axlsx.gemspec +36 -0
- data/doc/Axlsx.html +373 -559
- data/doc/Axlsx/App.html +257 -360
- data/doc/Axlsx/Axis.html +113 -144
- data/doc/Axlsx/Bar3DChart.html +122 -152
- data/doc/Axlsx/BarSeries.html +67 -81
- data/doc/Axlsx/Border.html +96 -119
- data/doc/Axlsx/BorderPr.html +89 -114
- data/doc/Axlsx/CatAxis.html +79 -104
- data/doc/Axlsx/CatAxisData.html +40 -54
- data/doc/Axlsx/Cell.html +193 -679
- data/doc/Axlsx/CellAlignment.html +116 -157
- data/doc/Axlsx/CellProtection.html +50 -68
- data/doc/Axlsx/CellStyle.html +78 -106
- data/doc/Axlsx/Chart.html +361 -432
- data/doc/Axlsx/Color.html +56 -78
- data/doc/Axlsx/ContentType.html +28 -41
- data/doc/Axlsx/Core.html +43 -55
- data/doc/Axlsx/DataTypeValidator.html +34 -43
- data/doc/Axlsx/Default.html +55 -81
- data/doc/Axlsx/Drawing.html +322 -412
- data/doc/Axlsx/Fill.html +34 -47
- data/doc/Axlsx/Font.html +157 -207
- data/doc/Axlsx/GradientFill.html +90 -122
- data/doc/Axlsx/GradientStop.html +36 -50
- data/doc/Axlsx/GraphicFrame.html +106 -130
- data/doc/Axlsx/Line3DChart.html +108 -134
- data/doc/Axlsx/LineSeries.html +58 -67
- data/doc/Axlsx/Marker.html +84 -111
- data/doc/Axlsx/NumFmt.html +83 -102
- data/doc/Axlsx/OneCellAnchor.html +158 -196
- data/doc/Axlsx/Override.html +60 -92
- data/doc/Axlsx/Package.html +190 -759
- data/doc/Axlsx/PatternFill.html +78 -99
- data/doc/Axlsx/Pic.html +451 -405
- data/doc/Axlsx/Pie3DChart.html +33 -42
- data/doc/Axlsx/PieSeries.html +68 -80
- data/doc/Axlsx/RegexValidator.html +15 -20
- data/doc/Axlsx/Relationship.html +49 -66
- data/doc/Axlsx/Relationships.html +28 -41
- data/doc/Axlsx/RestrictionValidator.html +23 -32
- data/doc/Axlsx/Row.html +132 -161
- data/doc/Axlsx/Scaling.html +71 -90
- data/doc/Axlsx/SerAxis.html +61 -79
- data/doc/Axlsx/Series.html +125 -201
- data/doc/Axlsx/SeriesTitle.html +26 -31
- data/doc/Axlsx/Styles.html +286 -355
- data/doc/Axlsx/TableStyle.html +62 -87
- data/doc/Axlsx/TableStyleElement.html +84 -104
- data/doc/Axlsx/TableStyles.html +59 -82
- data/doc/Axlsx/Title.html +58 -155
- data/doc/Axlsx/TwoCellAnchor.html +165 -204
- data/doc/Axlsx/ValAxis.html +39 -53
- data/doc/Axlsx/ValAxisData.html +29 -39
- data/doc/Axlsx/View3D.html +93 -122
- data/doc/Axlsx/Workbook.html +359 -362
- data/doc/Axlsx/Worksheet.html +471 -816
- data/doc/Axlsx/Xf.html +341 -296
- data/doc/_index.html +7 -11
- data/doc/class_list.html +1 -1
- data/doc/file.LICENSE.html +86 -0
- data/doc/file.README.html +105 -107
- data/doc/file_list.html +3 -0
- data/doc/frames.html +1 -1
- data/doc/index.html +105 -107
- data/doc/method_list.html +426 -602
- data/doc/top-level-namespace.html +3 -3
- data/examples/example.rb +20 -1
- data/lib/axlsx.rb +20 -15
- data/lib/axlsx/content_type/default.rb +8 -3
- data/lib/axlsx/content_type/override.rb +11 -4
- data/lib/axlsx/doc_props/app.rb +53 -23
- data/lib/axlsx/drawing/axis.rb +16 -5
- data/lib/axlsx/drawing/bar_3D_chart.rb +15 -7
- data/lib/axlsx/drawing/bar_series.rb +7 -5
- data/lib/axlsx/drawing/cat_axis.rb +10 -3
- data/lib/axlsx/drawing/chart.rb +21 -15
- data/lib/axlsx/drawing/drawing.rb +16 -30
- data/lib/axlsx/drawing/graphic_frame.rb +2 -4
- data/lib/axlsx/drawing/line_3D_chart.rb +5 -2
- data/lib/axlsx/drawing/line_series.rb +6 -5
- data/lib/axlsx/drawing/marker.rb +9 -5
- data/lib/axlsx/drawing/one_cell_anchor.rb +7 -7
- data/lib/axlsx/drawing/pic.rb +29 -37
- data/lib/axlsx/drawing/pie_series.rb +7 -5
- data/lib/axlsx/drawing/scaling.rb +11 -5
- data/lib/axlsx/drawing/ser_axis.rb +6 -2
- data/lib/axlsx/drawing/series.rb +11 -11
- data/lib/axlsx/drawing/series_title.rb +1 -1
- data/lib/axlsx/drawing/title.rb +5 -12
- data/lib/axlsx/drawing/two_cell_anchor.rb +2 -3
- data/lib/axlsx/drawing/val_axis.rb +2 -2
- data/lib/axlsx/drawing/view_3D.rb +16 -9
- data/lib/axlsx/package.rb +25 -27
- data/lib/axlsx/rels/relationship.rb +4 -2
- data/lib/axlsx/stylesheet/border.rb +9 -4
- data/lib/axlsx/stylesheet/border_pr.rb +7 -4
- data/lib/axlsx/stylesheet/cell_alignment.rb +18 -9
- data/lib/axlsx/stylesheet/cell_protection.rb +5 -2
- data/lib/axlsx/stylesheet/cell_style.rb +12 -7
- data/lib/axlsx/stylesheet/color.rb +8 -6
- data/lib/axlsx/stylesheet/fill.rb +2 -1
- data/lib/axlsx/stylesheet/font.rb +24 -13
- data/lib/axlsx/stylesheet/gradient_fill.rb +16 -10
- data/lib/axlsx/stylesheet/gradient_stop.rb +5 -3
- data/lib/axlsx/stylesheet/num_fmt.rb +4 -2
- data/lib/axlsx/stylesheet/pattern_fill.rb +6 -4
- data/lib/axlsx/stylesheet/styles.rb +12 -12
- data/lib/axlsx/stylesheet/table_style.rb +6 -3
- data/lib/axlsx/stylesheet/table_style_element.rb +9 -4
- data/lib/axlsx/stylesheet/table_styles.rb +4 -4
- data/lib/axlsx/stylesheet/xf.rb +52 -31
- data/lib/axlsx/util/validators.rb +3 -3
- data/lib/axlsx/version.rb +1 -1
- data/lib/axlsx/workbook/workbook.rb +8 -9
- data/lib/axlsx/workbook/worksheet/cell.rb +25 -16
- data/lib/axlsx/workbook/worksheet/row.rb +2 -4
- data/lib/axlsx/workbook/worksheet/worksheet.rb +23 -32
- data/test/drawing/tc_one_cell_anchor.rb +1 -1
- metadata +135 -165
- data/doc/Axlsx/SimpleTypedList.html +0 -1686
- data/lib/schema/dc.xsd~ +0 -118
- data/lib/schema/dcterms.xsd~ +0 -331
- data/lib/schema/opc-coreProperties.xsd~ +0 -50
- data/test/drawing/tc_line_series.tc~ +0 -34
data/doc/Axlsx/GradientFill.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::GradientFill
|
|
8
8
|
|
|
9
|
-
—
|
|
9
|
+
— AXLSX
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -94,9 +94,8 @@
|
|
|
94
94
|
|
|
95
95
|
<h2>Overview</h2><div class="docstring">
|
|
96
96
|
<div class="discussion">
|
|
97
|
-
|
|
98
|
-
A GradientFill defines the color and positioning for gradiant cell fill
|
|
99
|
-
</p>
|
|
97
|
+
|
|
98
|
+
<p>A GradientFill defines the color and positioning for gradiant cell fill.</p>
|
|
100
99
|
|
|
101
100
|
|
|
102
101
|
</div>
|
|
@@ -135,9 +134,8 @@ A GradientFill defines the color and positioning for gradiant cell fill.
|
|
|
135
134
|
|
|
136
135
|
|
|
137
136
|
|
|
138
|
-
<span class="summary_desc"><div class='inline'
|
|
139
|
-
Percentage format bottom
|
|
140
|
-
</p>
|
|
137
|
+
<span class="summary_desc"><div class='inline'>
|
|
138
|
+
<p>Percentage format bottom.</p>
|
|
141
139
|
</div></span>
|
|
142
140
|
|
|
143
141
|
</li>
|
|
@@ -162,9 +160,8 @@ Percentage format bottom.
|
|
|
162
160
|
|
|
163
161
|
|
|
164
162
|
|
|
165
|
-
<span class="summary_desc"><div class='inline'
|
|
166
|
-
Angle of the linear gradient
|
|
167
|
-
</p>
|
|
163
|
+
<span class="summary_desc"><div class='inline'>
|
|
164
|
+
<p>Angle of the linear gradient.</p>
|
|
168
165
|
</div></span>
|
|
169
166
|
|
|
170
167
|
</li>
|
|
@@ -189,9 +186,8 @@ Angle of the linear gradient.
|
|
|
189
186
|
|
|
190
187
|
|
|
191
188
|
|
|
192
|
-
<span class="summary_desc"><div class='inline'
|
|
193
|
-
Percentage format left
|
|
194
|
-
</p>
|
|
189
|
+
<span class="summary_desc"><div class='inline'>
|
|
190
|
+
<p>Percentage format left.</p>
|
|
195
191
|
</div></span>
|
|
196
192
|
|
|
197
193
|
</li>
|
|
@@ -216,9 +212,8 @@ Percentage format left.
|
|
|
216
212
|
|
|
217
213
|
|
|
218
214
|
|
|
219
|
-
<span class="summary_desc"><div class='inline'
|
|
220
|
-
Percentage format right
|
|
221
|
-
</p>
|
|
215
|
+
<span class="summary_desc"><div class='inline'>
|
|
216
|
+
<p>Percentage format right.</p>
|
|
222
217
|
</div></span>
|
|
223
218
|
|
|
224
219
|
</li>
|
|
@@ -243,9 +238,8 @@ Percentage format right.
|
|
|
243
238
|
|
|
244
239
|
|
|
245
240
|
|
|
246
|
-
<span class="summary_desc"><div class='inline'
|
|
247
|
-
Collection of stop objects
|
|
248
|
-
</p>
|
|
241
|
+
<span class="summary_desc"><div class='inline'>
|
|
242
|
+
<p>Collection of stop objects.</p>
|
|
249
243
|
</div></span>
|
|
250
244
|
|
|
251
245
|
</li>
|
|
@@ -270,9 +264,8 @@ Collection of stop objects.
|
|
|
270
264
|
|
|
271
265
|
|
|
272
266
|
|
|
273
|
-
<span class="summary_desc"><div class='inline'
|
|
274
|
-
Percentage format top
|
|
275
|
-
</p>
|
|
267
|
+
<span class="summary_desc"><div class='inline'>
|
|
268
|
+
<p>Percentage format top.</p>
|
|
276
269
|
</div></span>
|
|
277
270
|
|
|
278
271
|
</li>
|
|
@@ -297,9 +290,8 @@ Percentage format top.
|
|
|
297
290
|
|
|
298
291
|
|
|
299
292
|
|
|
300
|
-
<span class="summary_desc"><div class='inline'
|
|
301
|
-
The type of gradient
|
|
302
|
-
</p>
|
|
293
|
+
<span class="summary_desc"><div class='inline'>
|
|
294
|
+
<p>The type of gradient.</p>
|
|
303
295
|
</div></span>
|
|
304
296
|
|
|
305
297
|
</li>
|
|
@@ -336,9 +328,8 @@ The type of gradient.
|
|
|
336
328
|
|
|
337
329
|
|
|
338
330
|
|
|
339
|
-
<span class="summary_desc"><div class='inline'
|
|
340
|
-
Creates a new GradientFill object
|
|
341
|
-
</p>
|
|
331
|
+
<span class="summary_desc"><div class='inline'>
|
|
332
|
+
<p>Creates a new GradientFill object.</p>
|
|
342
333
|
</div></span>
|
|
343
334
|
|
|
344
335
|
</li>
|
|
@@ -360,9 +351,8 @@ Creates a new GradientFill object.
|
|
|
360
351
|
|
|
361
352
|
|
|
362
353
|
|
|
363
|
-
<span class="summary_desc"><div class='inline'
|
|
364
|
-
Serializes the gradientFill
|
|
365
|
-
</p>
|
|
354
|
+
<span class="summary_desc"><div class='inline'>
|
|
355
|
+
<p>Serializes the gradientFill.</p>
|
|
366
356
|
</div></span>
|
|
367
357
|
|
|
368
358
|
</li>
|
|
@@ -383,9 +373,8 @@ Serializes the gradientFill.
|
|
|
383
373
|
|
|
384
374
|
</p><div class="docstring">
|
|
385
375
|
<div class="discussion">
|
|
386
|
-
|
|
387
|
-
Creates a new GradientFill object
|
|
388
|
-
</p>
|
|
376
|
+
|
|
377
|
+
<p>Creates a new GradientFill object</p>
|
|
389
378
|
|
|
390
379
|
|
|
391
380
|
</div>
|
|
@@ -406,9 +395,8 @@ Creates a new GradientFill object
|
|
|
406
395
|
|
|
407
396
|
|
|
408
397
|
—
|
|
409
|
-
<div class='inline'
|
|
410
|
-
a customizable set of options
|
|
411
|
-
</p>
|
|
398
|
+
<div class='inline'>
|
|
399
|
+
<p>a customizable set of options</p>
|
|
412
400
|
</div>
|
|
413
401
|
|
|
414
402
|
</li>
|
|
@@ -496,14 +484,13 @@ a customizable set of options
|
|
|
496
484
|
<td>
|
|
497
485
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/gradient_fill.rb', line 46</span>
|
|
498
486
|
|
|
499
|
-
<span class='
|
|
500
|
-
<span class='options
|
|
501
|
-
<span class='options
|
|
502
|
-
<span class='
|
|
503
|
-
<span class='
|
|
504
|
-
<span class='
|
|
505
|
-
<span class='
|
|
506
|
-
</pre>
|
|
487
|
+
<span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
488
|
+
<span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='symbol'>:linear</span>
|
|
489
|
+
<span class='id options'>options</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id o'>o</span><span class='op'>|</span>
|
|
490
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id respond_to?'>respond_to?</span> <span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
|
491
|
+
<span class='kw'>end</span>
|
|
492
|
+
<span class='ivar'>@stop</span> <span class='op'>=</span> <span class='const'>SimpleTypedList</span><span class='period'>.</span><span class='id new'>new</span> <span class='const'>GradientStop</span>
|
|
493
|
+
<span class='kw'>end</span></pre>
|
|
507
494
|
</td>
|
|
508
495
|
</tr>
|
|
509
496
|
</table>
|
|
@@ -526,9 +513,8 @@ a customizable set of options
|
|
|
526
513
|
|
|
527
514
|
</p><div class="docstring">
|
|
528
515
|
<div class="discussion">
|
|
529
|
-
|
|
530
|
-
Percentage format bottom
|
|
531
|
-
</p>
|
|
516
|
+
|
|
517
|
+
<p>Percentage format bottom</p>
|
|
532
518
|
|
|
533
519
|
|
|
534
520
|
</div>
|
|
@@ -562,10 +548,9 @@ Percentage format bottom
|
|
|
562
548
|
<td>
|
|
563
549
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/gradient_fill.rb', line 33</span>
|
|
564
550
|
|
|
565
|
-
<span class='
|
|
566
|
-
<span class='
|
|
567
|
-
<span class='
|
|
568
|
-
</pre>
|
|
551
|
+
<span class='kw'>def</span> <span class='id bottom'>bottom</span>
|
|
552
|
+
<span class='ivar'>@bottom</span>
|
|
553
|
+
<span class='kw'>end</span></pre>
|
|
569
554
|
</td>
|
|
570
555
|
</tr>
|
|
571
556
|
</table>
|
|
@@ -583,9 +568,8 @@ Percentage format bottom
|
|
|
583
568
|
|
|
584
569
|
</p><div class="docstring">
|
|
585
570
|
<div class="discussion">
|
|
586
|
-
|
|
587
|
-
Angle of the linear gradient
|
|
588
|
-
</p>
|
|
571
|
+
|
|
572
|
+
<p>Angle of the linear gradient</p>
|
|
589
573
|
|
|
590
574
|
|
|
591
575
|
</div>
|
|
@@ -619,10 +603,9 @@ Angle of the linear gradient
|
|
|
619
603
|
<td>
|
|
620
604
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/gradient_fill.rb', line 17</span>
|
|
621
605
|
|
|
622
|
-
<span class='
|
|
623
|
-
<span class='
|
|
624
|
-
<span class='
|
|
625
|
-
</pre>
|
|
606
|
+
<span class='kw'>def</span> <span class='id degree'>degree</span>
|
|
607
|
+
<span class='ivar'>@degree</span>
|
|
608
|
+
<span class='kw'>end</span></pre>
|
|
626
609
|
</td>
|
|
627
610
|
</tr>
|
|
628
611
|
</table>
|
|
@@ -640,9 +623,8 @@ Angle of the linear gradient
|
|
|
640
623
|
|
|
641
624
|
</p><div class="docstring">
|
|
642
625
|
<div class="discussion">
|
|
643
|
-
|
|
644
|
-
Percentage format left
|
|
645
|
-
</p>
|
|
626
|
+
|
|
627
|
+
<p>Percentage format left</p>
|
|
646
628
|
|
|
647
629
|
|
|
648
630
|
</div>
|
|
@@ -676,10 +658,9 @@ Percentage format left
|
|
|
676
658
|
<td>
|
|
677
659
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/gradient_fill.rb', line 21</span>
|
|
678
660
|
|
|
679
|
-
<span class='
|
|
680
|
-
<span class='
|
|
681
|
-
<span class='
|
|
682
|
-
</pre>
|
|
661
|
+
<span class='kw'>def</span> <span class='id left'>left</span>
|
|
662
|
+
<span class='ivar'>@left</span>
|
|
663
|
+
<span class='kw'>end</span></pre>
|
|
683
664
|
</td>
|
|
684
665
|
</tr>
|
|
685
666
|
</table>
|
|
@@ -697,9 +678,8 @@ Percentage format left
|
|
|
697
678
|
|
|
698
679
|
</p><div class="docstring">
|
|
699
680
|
<div class="discussion">
|
|
700
|
-
|
|
701
|
-
Percentage format right
|
|
702
|
-
</p>
|
|
681
|
+
|
|
682
|
+
<p>Percentage format right</p>
|
|
703
683
|
|
|
704
684
|
|
|
705
685
|
</div>
|
|
@@ -733,10 +713,9 @@ Percentage format right
|
|
|
733
713
|
<td>
|
|
734
714
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/gradient_fill.rb', line 25</span>
|
|
735
715
|
|
|
736
|
-
<span class='
|
|
737
|
-
<span class='
|
|
738
|
-
<span class='
|
|
739
|
-
</pre>
|
|
716
|
+
<span class='kw'>def</span> <span class='id right'>right</span>
|
|
717
|
+
<span class='ivar'>@right</span>
|
|
718
|
+
<span class='kw'>end</span></pre>
|
|
740
719
|
</td>
|
|
741
720
|
</tr>
|
|
742
721
|
</table>
|
|
@@ -754,9 +733,8 @@ Percentage format right
|
|
|
754
733
|
|
|
755
734
|
</p><div class="docstring">
|
|
756
735
|
<div class="discussion">
|
|
757
|
-
|
|
758
|
-
Collection of stop objects
|
|
759
|
-
</p>
|
|
736
|
+
|
|
737
|
+
<p>Collection of stop objects</p>
|
|
760
738
|
|
|
761
739
|
|
|
762
740
|
</div>
|
|
@@ -790,10 +768,9 @@ Collection of stop objects
|
|
|
790
768
|
<td>
|
|
791
769
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/gradient_fill.rb', line 37</span>
|
|
792
770
|
|
|
793
|
-
<span class='
|
|
794
|
-
<span class='
|
|
795
|
-
<span class='
|
|
796
|
-
</pre>
|
|
771
|
+
<span class='kw'>def</span> <span class='id stop'>stop</span>
|
|
772
|
+
<span class='ivar'>@stop</span>
|
|
773
|
+
<span class='kw'>end</span></pre>
|
|
797
774
|
</td>
|
|
798
775
|
</tr>
|
|
799
776
|
</table>
|
|
@@ -811,9 +788,8 @@ Collection of stop objects
|
|
|
811
788
|
|
|
812
789
|
</p><div class="docstring">
|
|
813
790
|
<div class="discussion">
|
|
814
|
-
|
|
815
|
-
Percentage format top
|
|
816
|
-
</p>
|
|
791
|
+
|
|
792
|
+
<p>Percentage format top</p>
|
|
817
793
|
|
|
818
794
|
|
|
819
795
|
</div>
|
|
@@ -847,10 +823,9 @@ Percentage format top
|
|
|
847
823
|
<td>
|
|
848
824
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/gradient_fill.rb', line 29</span>
|
|
849
825
|
|
|
850
|
-
<span class='
|
|
851
|
-
<span class='
|
|
852
|
-
<span class='
|
|
853
|
-
</pre>
|
|
826
|
+
<span class='kw'>def</span> <span class='id top'>top</span>
|
|
827
|
+
<span class='ivar'>@top</span>
|
|
828
|
+
<span class='kw'>end</span></pre>
|
|
854
829
|
</td>
|
|
855
830
|
</tr>
|
|
856
831
|
</table>
|
|
@@ -871,19 +846,16 @@ Percentage format top
|
|
|
871
846
|
|
|
872
847
|
<div class="note notetag">
|
|
873
848
|
<strong>Note:</strong>
|
|
874
|
-
<div class='inline'
|
|
875
|
-
valid options are
|
|
876
|
-
|
|
877
|
-
<pre class="code">
|
|
878
|
-
|
|
879
|
-
<span class='symbol val'>:path</span>
|
|
880
|
-
</pre>
|
|
849
|
+
<div class='inline'>
|
|
850
|
+
<p>valid options are</p>
|
|
851
|
+
|
|
852
|
+
<pre class="code"><span class='symbol'>:linear</span>
|
|
853
|
+
<span class='symbol'>:path</span></pre>
|
|
881
854
|
</div>
|
|
882
855
|
</div>
|
|
883
856
|
|
|
884
|
-
|
|
885
|
-
The type of gradient
|
|
886
|
-
</p>
|
|
857
|
+
|
|
858
|
+
<p>The type of gradient.</p>
|
|
887
859
|
|
|
888
860
|
|
|
889
861
|
</div>
|
|
@@ -917,10 +889,9 @@ The type of gradient.
|
|
|
917
889
|
<td>
|
|
918
890
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/gradient_fill.rb', line 13</span>
|
|
919
891
|
|
|
920
|
-
<span class='
|
|
921
|
-
<span class='
|
|
922
|
-
<span class='
|
|
923
|
-
</pre>
|
|
892
|
+
<span class='kw'>def</span> <span class='id type'>type</span>
|
|
893
|
+
<span class='ivar'>@type</span>
|
|
894
|
+
<span class='kw'>end</span></pre>
|
|
924
895
|
</td>
|
|
925
896
|
</tr>
|
|
926
897
|
</table>
|
|
@@ -942,9 +913,8 @@ The type of gradient.
|
|
|
942
913
|
|
|
943
914
|
</p><div class="docstring">
|
|
944
915
|
<div class="discussion">
|
|
945
|
-
|
|
946
|
-
Serializes the gradientFill
|
|
947
|
-
</p>
|
|
916
|
+
|
|
917
|
+
<p>Serializes the gradientFill</p>
|
|
948
918
|
|
|
949
919
|
|
|
950
920
|
</div>
|
|
@@ -963,9 +933,8 @@ Serializes the gradientFill
|
|
|
963
933
|
|
|
964
934
|
|
|
965
935
|
—
|
|
966
|
-
<div class='inline'
|
|
967
|
-
The document builder instance this objects xml will be added to
|
|
968
|
-
</p>
|
|
936
|
+
<div class='inline'>
|
|
937
|
+
<p>The document builder instance this objects xml will be added to.</p>
|
|
969
938
|
</div>
|
|
970
939
|
|
|
971
940
|
</li>
|
|
@@ -992,21 +961,20 @@ The document builder instance this objects xml will be added to.
|
|
|
992
961
|
<pre class="lines">
|
|
993
962
|
|
|
994
963
|
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
964
|
+
70
|
|
965
|
+
71
|
|
966
|
+
72
|
|
967
|
+
73
|
|
968
|
+
74</pre>
|
|
1000
969
|
</td>
|
|
1001
970
|
<td>
|
|
1002
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/gradient_fill.rb', line
|
|
1003
|
-
|
|
1004
|
-
<span class='
|
|
1005
|
-
<span class='xml
|
|
1006
|
-
<span class='
|
|
1007
|
-
<span class='rbrace
|
|
1008
|
-
<span class='
|
|
1009
|
-
</pre>
|
|
971
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/gradient_fill.rb', line 70</span>
|
|
972
|
+
|
|
973
|
+
<span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span>
|
|
974
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id gradientFill'>gradientFill</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id instance_values'>instance_values</span><span class='period'>.</span><span class='id reject'>reject</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id k'>k</span><span class='comma'>,</span><span class='id v'>v</span><span class='op'>|</span> <span class='id k'>k</span><span class='period'>.</span><span class='id to_sym'>to_sym</span> <span class='op'>==</span> <span class='symbol'>:stop</span> <span class='rbrace'>}</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
975
|
+
<span class='ivar'>@stop</span><span class='period'>.</span><span class='id each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id s'>s</span><span class='op'>|</span> <span class='id s'>s</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
|
976
|
+
<span class='rbrace'>}</span>
|
|
977
|
+
<span class='kw'>end</span></pre>
|
|
1010
978
|
</td>
|
|
1011
979
|
</tr>
|
|
1012
980
|
</table>
|
|
@@ -1017,9 +985,9 @@ The document builder instance this objects xml will be added to.
|
|
|
1017
985
|
</div>
|
|
1018
986
|
|
|
1019
987
|
<div id="footer">
|
|
1020
|
-
Generated on
|
|
988
|
+
Generated on Sat Nov 26 13:16:39 2011 by
|
|
1021
989
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1022
|
-
0.7.3 (ruby-1.
|
|
990
|
+
0.7.3 (ruby-1.9.3).
|
|
1023
991
|
</div>
|
|
1024
992
|
|
|
1025
993
|
</body>
|
data/doc/Axlsx/GradientStop.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::GradientStop
|
|
8
8
|
|
|
9
|
-
—
|
|
9
|
+
— AXLSX
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -94,9 +94,8 @@
|
|
|
94
94
|
|
|
95
95
|
<h2>Overview</h2><div class="docstring">
|
|
96
96
|
<div class="discussion">
|
|
97
|
-
|
|
98
|
-
The GradientStop object represents a color point in a gradient
|
|
99
|
-
</p>
|
|
97
|
+
|
|
98
|
+
<p>The GradientStop object represents a color point in a gradient.</p>
|
|
100
99
|
|
|
101
100
|
|
|
102
101
|
</div>
|
|
@@ -135,9 +134,8 @@ The GradientStop object represents a color point in a gradient.
|
|
|
135
134
|
|
|
136
135
|
|
|
137
136
|
|
|
138
|
-
<span class="summary_desc"><div class='inline'
|
|
139
|
-
The color for this gradient stop
|
|
140
|
-
</p>
|
|
137
|
+
<span class="summary_desc"><div class='inline'>
|
|
138
|
+
<p>The color for this gradient stop.</p>
|
|
141
139
|
</div></span>
|
|
142
140
|
|
|
143
141
|
</li>
|
|
@@ -162,9 +160,8 @@ The color for this gradient stop.
|
|
|
162
160
|
|
|
163
161
|
|
|
164
162
|
|
|
165
|
-
<span class="summary_desc"><div class='inline'
|
|
166
|
-
The position of the color
|
|
167
|
-
</p>
|
|
163
|
+
<span class="summary_desc"><div class='inline'>
|
|
164
|
+
<p>The position of the color.</p>
|
|
168
165
|
</div></span>
|
|
169
166
|
|
|
170
167
|
</li>
|
|
@@ -201,9 +198,8 @@ The position of the color.
|
|
|
201
198
|
|
|
202
199
|
|
|
203
200
|
|
|
204
|
-
<span class="summary_desc"><div class='inline'
|
|
205
|
-
Creates a new GradientStop object
|
|
206
|
-
</p>
|
|
201
|
+
<span class="summary_desc"><div class='inline'>
|
|
202
|
+
<p>Creates a new GradientStop object.</p>
|
|
207
203
|
</div></span>
|
|
208
204
|
|
|
209
205
|
</li>
|
|
@@ -225,9 +221,8 @@ Creates a new GradientStop object.
|
|
|
225
221
|
|
|
226
222
|
|
|
227
223
|
|
|
228
|
-
<span class="summary_desc"><div class='inline'
|
|
229
|
-
Serializes the gradientStop
|
|
230
|
-
</p>
|
|
224
|
+
<span class="summary_desc"><div class='inline'>
|
|
225
|
+
<p>Serializes the gradientStop.</p>
|
|
231
226
|
</div></span>
|
|
232
227
|
|
|
233
228
|
</li>
|
|
@@ -248,9 +243,8 @@ Serializes the gradientStop.
|
|
|
248
243
|
|
|
249
244
|
</p><div class="docstring">
|
|
250
245
|
<div class="discussion">
|
|
251
|
-
|
|
252
|
-
Creates a new GradientStop object
|
|
253
|
-
</p>
|
|
246
|
+
|
|
247
|
+
<p>Creates a new GradientStop object</p>
|
|
254
248
|
|
|
255
249
|
|
|
256
250
|
</div>
|
|
@@ -298,11 +292,10 @@ Creates a new GradientStop object
|
|
|
298
292
|
<td>
|
|
299
293
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/gradient_stop.rb', line 18</span>
|
|
300
294
|
|
|
301
|
-
<span class='
|
|
302
|
-
<span class='
|
|
303
|
-
<span class='
|
|
304
|
-
<span class='
|
|
305
|
-
</pre>
|
|
295
|
+
<span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id color'>color</span><span class='comma'>,</span> <span class='id position'>position</span><span class='rparen'>)</span>
|
|
296
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id color'>color</span> <span class='op'>=</span> <span class='id color'>color</span>
|
|
297
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id position'>position</span> <span class='op'>=</span> <span class='id position'>position</span>
|
|
298
|
+
<span class='kw'>end</span></pre>
|
|
306
299
|
</td>
|
|
307
300
|
</tr>
|
|
308
301
|
</table>
|
|
@@ -325,9 +318,8 @@ Creates a new GradientStop object
|
|
|
325
318
|
|
|
326
319
|
</p><div class="docstring">
|
|
327
320
|
<div class="discussion">
|
|
328
|
-
|
|
329
|
-
The color for this gradient stop
|
|
330
|
-
</p>
|
|
321
|
+
|
|
322
|
+
<p>The color for this gradient stop</p>
|
|
331
323
|
|
|
332
324
|
|
|
333
325
|
</div>
|
|
@@ -368,10 +360,9 @@ The color for this gradient stop
|
|
|
368
360
|
<td>
|
|
369
361
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/gradient_stop.rb', line 9</span>
|
|
370
362
|
|
|
371
|
-
<span class='
|
|
372
|
-
<span class='
|
|
373
|
-
<span class='
|
|
374
|
-
</pre>
|
|
363
|
+
<span class='kw'>def</span> <span class='id color'>color</span>
|
|
364
|
+
<span class='ivar'>@color</span>
|
|
365
|
+
<span class='kw'>end</span></pre>
|
|
375
366
|
</td>
|
|
376
367
|
</tr>
|
|
377
368
|
</table>
|
|
@@ -389,9 +380,8 @@ The color for this gradient stop
|
|
|
389
380
|
|
|
390
381
|
</p><div class="docstring">
|
|
391
382
|
<div class="discussion">
|
|
392
|
-
|
|
393
|
-
The position of the color
|
|
394
|
-
</p>
|
|
383
|
+
|
|
384
|
+
<p>The position of the color</p>
|
|
395
385
|
|
|
396
386
|
|
|
397
387
|
</div>
|
|
@@ -425,10 +415,9 @@ The position of the color
|
|
|
425
415
|
<td>
|
|
426
416
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/gradient_stop.rb', line 13</span>
|
|
427
417
|
|
|
428
|
-
<span class='
|
|
429
|
-
<span class='
|
|
430
|
-
<span class='
|
|
431
|
-
</pre>
|
|
418
|
+
<span class='kw'>def</span> <span class='id position'>position</span>
|
|
419
|
+
<span class='ivar'>@position</span>
|
|
420
|
+
<span class='kw'>end</span></pre>
|
|
432
421
|
</td>
|
|
433
422
|
</tr>
|
|
434
423
|
</table>
|
|
@@ -450,9 +439,8 @@ The position of the color
|
|
|
450
439
|
|
|
451
440
|
</p><div class="docstring">
|
|
452
441
|
<div class="discussion">
|
|
453
|
-
|
|
454
|
-
Serializes the gradientStop
|
|
455
|
-
</p>
|
|
442
|
+
|
|
443
|
+
<p>Serializes the gradientStop</p>
|
|
456
444
|
|
|
457
445
|
|
|
458
446
|
</div>
|
|
@@ -471,9 +459,8 @@ Serializes the gradientStop
|
|
|
471
459
|
|
|
472
460
|
|
|
473
461
|
—
|
|
474
|
-
<div class='inline'
|
|
475
|
-
The document builder instance this objects xml will be added to
|
|
476
|
-
</p>
|
|
462
|
+
<div class='inline'>
|
|
463
|
+
<p>The document builder instance this objects xml will be added to.</p>
|
|
477
464
|
</div>
|
|
478
465
|
|
|
479
466
|
</li>
|
|
@@ -500,13 +487,12 @@ The document builder instance this objects xml will be added to.
|
|
|
500
487
|
<pre class="lines">
|
|
501
488
|
|
|
502
489
|
|
|
503
|
-
|
|
490
|
+
31</pre>
|
|
504
491
|
</td>
|
|
505
492
|
<td>
|
|
506
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/gradient_stop.rb', line
|
|
493
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/gradient_stop.rb', line 31</span>
|
|
507
494
|
|
|
508
|
-
<span class='
|
|
509
|
-
</pre>
|
|
495
|
+
<span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span> <span class='id xml'>xml</span><span class='period'>.</span><span class='id stop'>stop</span><span class='lparen'>(</span><span class='symbol'>:position</span> <span class='op'>=></span> <span class='kw'>self</span><span class='period'>.</span><span class='id position'>position</span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='kw'>self</span><span class='period'>.</span><span class='id color'>color</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span><span class='rbrace'>}</span> <span class='kw'>end</span></pre>
|
|
510
496
|
</td>
|
|
511
497
|
</tr>
|
|
512
498
|
</table>
|
|
@@ -517,9 +503,9 @@ The document builder instance this objects xml will be added to.
|
|
|
517
503
|
</div>
|
|
518
504
|
|
|
519
505
|
<div id="footer">
|
|
520
|
-
Generated on
|
|
506
|
+
Generated on Sat Nov 26 13:16:39 2011 by
|
|
521
507
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
522
|
-
0.7.3 (ruby-1.
|
|
508
|
+
0.7.3 (ruby-1.9.3).
|
|
523
509
|
</div>
|
|
524
510
|
|
|
525
511
|
</body>
|