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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +163 -0
- data/README.md +34 -11
- data/lib/ruby_lsp/xlsxrb/completion_listener.rb +410 -80
- data/lib/xlsxrb/chart_builder.rb +251 -386
- data/lib/xlsxrb/dsl_helpers.rb +120 -67
- data/lib/xlsxrb/elements/cell.rb +37 -157
- data/lib/xlsxrb/elements/column.rb +11 -19
- data/lib/xlsxrb/elements/coordinate_access.rb +15 -86
- data/lib/xlsxrb/elements/image.rb +5 -72
- data/lib/xlsxrb/elements/metadata.rb +463 -817
- data/lib/xlsxrb/elements/row.rb +27 -145
- data/lib/xlsxrb/elements/styles.rb +30 -88
- data/lib/xlsxrb/elements/types.rb +6 -99
- data/lib/xlsxrb/elements/workbook.rb +19 -126
- data/lib/xlsxrb/elements/worksheet.rb +43 -314
- data/lib/xlsxrb/ooxml/reader/listeners/core_listeners.rb +4 -1
- data/lib/xlsxrb/ooxml/reader/listeners/drawing_listeners.rb +7 -7
- data/lib/xlsxrb/ooxml/reader/listeners/feature_listeners.rb +32 -17
- data/lib/xlsxrb/ooxml/reader.rb +49 -51
- data/lib/xlsxrb/ooxml/styles_parser.rb +26 -2
- data/lib/xlsxrb/ooxml/utils.rb +2 -2
- data/lib/xlsxrb/ooxml/workbook_parser.rb +0 -1
- data/lib/xlsxrb/ooxml/workbook_writer.rb +172 -93
- data/lib/xlsxrb/ooxml/worksheet_parser.rb +61 -29
- data/lib/xlsxrb/ooxml/worksheet_writer.rb +65 -47
- data/lib/xlsxrb/ooxml/writer/drawing_xml.rb +28 -11
- data/lib/xlsxrb/ooxml/writer/features_xml.rb +53 -14
- data/lib/xlsxrb/ooxml/writer/styles_xml.rb +1 -1
- data/lib/xlsxrb/ooxml/writer.rb +105 -41
- data/lib/xlsxrb/ooxml/xml_parser.rb +78 -5
- data/lib/xlsxrb/ooxml/zip_reader.rb +65 -15
- data/lib/xlsxrb/ooxml/zip_writer.rb +119 -30
- data/lib/xlsxrb/stream_row.rb +12 -116
- data/lib/xlsxrb/stream_sheet.rb +14 -261
- data/lib/xlsxrb/stream_writer.rb +623 -1476
- data/lib/xlsxrb/style_builder.rb +376 -593
- data/lib/xlsxrb/version.rb +1 -1
- data/lib/xlsxrb/workbook_builder.rb +192 -226
- data/lib/xlsxrb/worksheet_builder.rb +456 -1324
- data/lib/xlsxrb.rb +266 -1083
- data/sig/generated/xlsxrb/chart_builder.rbs +202 -205
- data/sig/generated/xlsxrb/dsl_helpers.rbs +64 -16
- data/sig/generated/xlsxrb/elements/cell.rbs +12 -76
- data/sig/generated/xlsxrb/elements/column.rbs +0 -7
- data/sig/generated/xlsxrb/elements/coordinate_access.rbs +5 -41
- data/sig/generated/xlsxrb/elements/image.rbs +3 -29
- data/sig/generated/xlsxrb/elements/metadata.rbs +138 -151
- data/sig/generated/xlsxrb/elements/row.rbs +10 -53
- data/sig/generated/xlsxrb/elements/styles.rbs +1 -39
- data/sig/generated/xlsxrb/elements/workbook.rbs +14 -78
- data/sig/generated/xlsxrb/elements/worksheet.rbs +5 -121
- data/sig/generated/xlsxrb/ooxml/reader/listeners/feature_listeners.rbs +0 -4
- data/sig/generated/xlsxrb/ooxml/reader.rbs +0 -3
- data/sig/generated/xlsxrb/ooxml/styles_parser.rbs +1 -1
- data/sig/generated/xlsxrb/ooxml/utils.rbs +3 -3
- data/sig/generated/xlsxrb/ooxml/workbook_writer.rbs +12 -0
- data/sig/generated/xlsxrb/ooxml/worksheet_parser.rbs +16 -0
- data/sig/generated/xlsxrb/ooxml/worksheet_writer.rbs +5 -3
- data/sig/generated/xlsxrb/ooxml/writer/features_xml.rbs +7 -0
- data/sig/generated/xlsxrb/ooxml/writer.rbs +20 -14
- data/sig/generated/xlsxrb/ooxml/xml_parser.rbs +70 -0
- data/sig/generated/xlsxrb/ooxml/zip_reader.rbs +22 -7
- data/sig/generated/xlsxrb/ooxml/zip_writer.rbs +26 -1
- data/sig/generated/xlsxrb/stream_row.rbs +7 -42
- data/sig/generated/xlsxrb/stream_sheet.rbs +1 -158
- data/sig/generated/xlsxrb/stream_writer.rbs +457 -976
- data/sig/generated/xlsxrb/style_builder.rbs +206 -242
- data/sig/generated/xlsxrb/workbook_builder.rbs +84 -132
- data/sig/generated/xlsxrb/worksheet_builder.rbs +309 -685
- data/sig/generated/xlsxrb.rbs +43 -190
- data/sig/rexml.rbs +8 -0
- metadata +3 -5
- data/lib/xlsxrb/utils.rb +0 -251
- data/sig/generated/xlsxrb/utils.rbs +0 -200
|
@@ -22,9 +22,9 @@ module RubyLsp
|
|
|
22
22
|
documentation: "Registers a reusable named cell style (font, fill, border, alignment, number_format).\n\n```ruby\nwb.style(:bold_blue, font: { bold: true, color: \"0000FF\" })\n```"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
label: "
|
|
26
|
-
detail: "(
|
|
27
|
-
documentation: "
|
|
25
|
+
label: "workbook_properties",
|
|
26
|
+
detail: "(**opts) -> Elements::WorkbookProperties | void",
|
|
27
|
+
documentation: "Configures or queries workbook-level properties (e.g. `:update_links`).\n\n```ruby\nwb.workbook_properties(update_links: \"never\")\n```"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
label: "workbook_protection",
|
|
@@ -52,14 +52,14 @@ module RubyLsp
|
|
|
52
52
|
documentation: "Sets multiple core and application metadata properties at once."
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
label: "
|
|
56
|
-
detail: "(
|
|
57
|
-
documentation: "
|
|
55
|
+
label: "core_properties",
|
|
56
|
+
detail: "(**opts) -> Elements::CoreProperties | void",
|
|
57
|
+
documentation: "Configures or queries core document metadata (e.g. `:title`, `:creator`, `:subject`, `:keywords`)."
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
|
-
label: "
|
|
61
|
-
detail: "(
|
|
62
|
-
documentation: "
|
|
60
|
+
label: "app_properties",
|
|
61
|
+
detail: "(**opts) -> Elements::AppProperties | void",
|
|
62
|
+
documentation: "Configures or queries application document metadata (e.g. `:company`, `:manager`)."
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
label: "custom_property",
|
|
@@ -90,9 +90,9 @@ module RubyLsp
|
|
|
90
90
|
documentation: "Builds and returns the immutable `Elements::Workbook` DOM hierarchy."
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
label: "
|
|
94
|
-
detail: "(
|
|
95
|
-
documentation: "
|
|
93
|
+
label: "workbook_properties",
|
|
94
|
+
detail: "(**opts) -> Elements::WorkbookProperties | void",
|
|
95
|
+
documentation: "Configures or queries workbook properties."
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
label: "workbook_protection",
|
|
@@ -120,14 +120,14 @@ module RubyLsp
|
|
|
120
120
|
documentation: "Sets multiple metadata properties."
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
|
-
label: "
|
|
124
|
-
detail: "(
|
|
125
|
-
documentation: "
|
|
123
|
+
label: "core_properties",
|
|
124
|
+
detail: "(**opts) -> Elements::CoreProperties | void",
|
|
125
|
+
documentation: "Configures or queries core document metadata."
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
|
-
label: "
|
|
129
|
-
detail: "(
|
|
130
|
-
documentation: "
|
|
128
|
+
label: "app_properties",
|
|
129
|
+
detail: "(**opts) -> Elements::AppProperties | void",
|
|
130
|
+
documentation: "Configures or queries application document metadata."
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
label: "custom_property",
|
|
@@ -194,7 +194,7 @@ module RubyLsp
|
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
label: "comment",
|
|
197
|
-
detail: "(cell, text, author: nil) -> void",
|
|
197
|
+
detail: "(cell, text, author: nil, visible: false) -> void",
|
|
198
198
|
documentation: "Adds an author comment / note to a cell."
|
|
199
199
|
},
|
|
200
200
|
{
|
|
@@ -229,8 +229,8 @@ module RubyLsp
|
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
label: "print_options",
|
|
232
|
-
detail: "(
|
|
233
|
-
documentation: "Configures print options (e.g. `s.print_options(:
|
|
232
|
+
detail: "(**opts) -> void",
|
|
233
|
+
documentation: "Configures print options (e.g. `s.print_options(grid_lines: true)`)."
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
236
|
label: "sheet_protection",
|
|
@@ -239,13 +239,13 @@ module RubyLsp
|
|
|
239
239
|
},
|
|
240
240
|
{
|
|
241
241
|
label: "sheet_view",
|
|
242
|
-
detail: "(
|
|
243
|
-
documentation: "Sets view settings (e.g. `s.sheet_view(:
|
|
242
|
+
detail: "(**opts) -> void",
|
|
243
|
+
documentation: "Sets view settings (e.g. `s.sheet_view(show_grid_lines: false)`)."
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
246
|
label: "sheet_properties",
|
|
247
|
-
detail: "(
|
|
248
|
-
documentation: "Sets sheet properties (e.g. `s.sheet_properties(:
|
|
247
|
+
detail: "(**opts) -> void",
|
|
248
|
+
documentation: "Sets sheet properties (e.g. `s.sheet_properties(tab_color: \"FF0000\")`)."
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
label: "selection",
|
|
@@ -327,11 +327,6 @@ module RubyLsp
|
|
|
327
327
|
label: "valid?",
|
|
328
328
|
detail: "() -> Boolean",
|
|
329
329
|
documentation: "Returns true if all workbook elements and sheets are valid."
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
label: "validate",
|
|
333
|
-
detail: "() -> Array<String>",
|
|
334
|
-
documentation: "Validates workbook structure and returns any validation errors."
|
|
335
330
|
}
|
|
336
331
|
].freeze
|
|
337
332
|
|
|
@@ -341,11 +336,6 @@ module RubyLsp
|
|
|
341
336
|
detail: "(cell_ref) -> Elements::Cell?",
|
|
342
337
|
documentation: "Finds and returns a cell by A1 reference.\n\n```ruby\ncell = sheet[\"B2\"]\n```"
|
|
343
338
|
},
|
|
344
|
-
{
|
|
345
|
-
label: "cell_value",
|
|
346
|
-
detail: "(cell_ref) -> Object?",
|
|
347
|
-
documentation: "Returns the raw value of the cell at the given A1 reference."
|
|
348
|
-
},
|
|
349
339
|
{
|
|
350
340
|
label: "each_row",
|
|
351
341
|
detail: "() { |row| ... } -> void",
|
|
@@ -390,11 +380,6 @@ module RubyLsp
|
|
|
390
380
|
label: "valid?",
|
|
391
381
|
detail: "() -> Boolean",
|
|
392
382
|
documentation: "Returns true if all cells and rows in the worksheet are valid."
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
label: "validate",
|
|
396
|
-
detail: "() -> Array<String>",
|
|
397
|
-
documentation: "Returns any validation errors found in the worksheet."
|
|
398
383
|
}
|
|
399
384
|
].freeze
|
|
400
385
|
|
|
@@ -448,11 +433,6 @@ module RubyLsp
|
|
|
448
433
|
label: "valid?",
|
|
449
434
|
detail: "() -> Boolean",
|
|
450
435
|
documentation: "Returns true if all cells in this row are valid."
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
label: "validate",
|
|
454
|
-
detail: "() -> Array<String>",
|
|
455
|
-
documentation: "Validates all cells in this row and returns error messages."
|
|
456
436
|
}
|
|
457
437
|
].freeze
|
|
458
438
|
|
|
@@ -511,82 +491,432 @@ module RubyLsp
|
|
|
511
491
|
label: "valid?",
|
|
512
492
|
detail: "() -> Boolean",
|
|
513
493
|
documentation: "Returns true if row_index, column_index, and value are valid."
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
label: "validate",
|
|
517
|
-
detail: "() -> Array<String>",
|
|
518
|
-
documentation: "Returns validation errors if indices are negative or invalid."
|
|
519
494
|
}
|
|
520
495
|
].freeze
|
|
521
496
|
|
|
522
497
|
CHART_BUILDER_ITEMS = [
|
|
498
|
+
{
|
|
499
|
+
label: "type",
|
|
500
|
+
detail: "() -> Symbol | String | nil",
|
|
501
|
+
documentation: "Gets chart type (e.g. :line, :bar, :pie, :radar, :scatter)."
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
label: "type=",
|
|
505
|
+
detail: "(value) -> Symbol | String | nil",
|
|
506
|
+
documentation: "Sets chart type (e.g. :line, :bar, :pie, :radar, :scatter)."
|
|
507
|
+
},
|
|
523
508
|
{
|
|
524
509
|
label: "title",
|
|
525
|
-
detail: "(
|
|
526
|
-
documentation: "
|
|
510
|
+
detail: "(**kwargs) -> String | Hash | nil",
|
|
511
|
+
documentation: "Gets or configures chart title text or options."
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
label: "title=",
|
|
515
|
+
detail: "(value) -> String | Hash | nil",
|
|
516
|
+
documentation: "Sets chart title text or options hash."
|
|
527
517
|
},
|
|
528
518
|
{
|
|
529
519
|
label: "series",
|
|
530
|
-
detail: "(
|
|
531
|
-
documentation: "Adds data series value range."
|
|
520
|
+
detail: "(**kwargs) { |series_builder| ... } -> Array<Hash> | nil",
|
|
521
|
+
documentation: "Adds data series value range or yields a SeriesBuilder."
|
|
532
522
|
},
|
|
533
523
|
{
|
|
534
|
-
label: "
|
|
535
|
-
detail: "(
|
|
536
|
-
documentation: "Sets
|
|
524
|
+
label: "series=",
|
|
525
|
+
detail: "(value) -> Array<Hash> | Hash",
|
|
526
|
+
documentation: "Sets series array or configuration hash."
|
|
537
527
|
},
|
|
538
528
|
{
|
|
539
529
|
label: "legend",
|
|
540
|
-
detail: "(
|
|
541
|
-
documentation: "
|
|
530
|
+
detail: "(**kwargs) -> Object?",
|
|
531
|
+
documentation: "Gets or configures chart legend properties."
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
label: "legend=",
|
|
535
|
+
detail: "(value) -> Object?",
|
|
536
|
+
documentation: "Sets chart legend properties."
|
|
542
537
|
},
|
|
543
538
|
{
|
|
544
|
-
label: "
|
|
545
|
-
detail: "(
|
|
546
|
-
documentation: "
|
|
539
|
+
label: "plot_area",
|
|
540
|
+
detail: "(**kwargs) -> Object?",
|
|
541
|
+
documentation: "Gets or configures plot area properties."
|
|
547
542
|
},
|
|
548
543
|
{
|
|
549
|
-
label: "
|
|
550
|
-
detail: "(
|
|
551
|
-
documentation: "Sets
|
|
544
|
+
label: "plot_area=",
|
|
545
|
+
detail: "(value) -> Object?",
|
|
546
|
+
documentation: "Sets plot area properties."
|
|
552
547
|
},
|
|
553
548
|
{
|
|
554
|
-
label: "
|
|
555
|
-
detail: "(
|
|
556
|
-
documentation: "
|
|
549
|
+
label: "chart_space",
|
|
550
|
+
detail: "(**kwargs) -> Object?",
|
|
551
|
+
documentation: "Gets or configures chart space properties."
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
label: "chart_space=",
|
|
555
|
+
detail: "(value) -> Object?",
|
|
556
|
+
documentation: "Sets chart space properties."
|
|
557
557
|
},
|
|
558
558
|
{
|
|
559
559
|
label: "style",
|
|
560
|
-
detail: "(
|
|
560
|
+
detail: "() -> Object?",
|
|
561
|
+
documentation: "Gets built-in chart style number (1-48) or options."
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
label: "style=",
|
|
565
|
+
detail: "(value) -> Object?",
|
|
561
566
|
documentation: "Sets built-in chart style number (1-48)."
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
label: "data_labels",
|
|
570
|
+
detail: "(**kwargs) -> Object?",
|
|
571
|
+
documentation: "Gets or configures chart data labels."
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
label: "data_labels=",
|
|
575
|
+
detail: "(value) -> Object?",
|
|
576
|
+
documentation: "Sets chart data labels."
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
label: "plot_visible_only?",
|
|
580
|
+
detail: "() -> bool",
|
|
581
|
+
documentation: "Returns whether to plot visible cells only."
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
label: "plot_visible_only=",
|
|
585
|
+
detail: "(value) -> bool?",
|
|
586
|
+
documentation: "Sets whether to plot visible cells only."
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
label: "display_blanks_as",
|
|
590
|
+
detail: "() -> String?",
|
|
591
|
+
documentation: "Gets how blank cells are displayed in the chart."
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
label: "display_blanks_as=",
|
|
595
|
+
detail: "(value) -> String?",
|
|
596
|
+
documentation: "Sets how blank cells are displayed in the chart."
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
label: "view3d",
|
|
600
|
+
detail: "(**kwargs) -> Object?",
|
|
601
|
+
documentation: "Gets or configures 3D view properties."
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
label: "view3d=",
|
|
605
|
+
detail: "(value) -> Object?",
|
|
606
|
+
documentation: "Sets 3D view properties."
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
label: "category_axis",
|
|
610
|
+
detail: "(**kwargs) -> Object?",
|
|
611
|
+
documentation: "Gets or configures category axis properties."
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
label: "category_axis=",
|
|
615
|
+
detail: "(value) -> Object?",
|
|
616
|
+
documentation: "Sets category axis properties."
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
label: "value_axis",
|
|
620
|
+
detail: "(**kwargs) -> Object?",
|
|
621
|
+
documentation: "Gets or configures value axis properties."
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
label: "value_axis=",
|
|
625
|
+
detail: "(value) -> Object?",
|
|
626
|
+
documentation: "Sets value axis properties."
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
label: "secondary_value_axis",
|
|
630
|
+
detail: "(**kwargs) -> Object?",
|
|
631
|
+
documentation: "Gets or configures secondary value axis properties."
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
label: "secondary_value_axis=",
|
|
635
|
+
detail: "(value) -> Object?",
|
|
636
|
+
documentation: "Sets secondary value axis properties."
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
label: "show_legend_key?",
|
|
640
|
+
detail: "() -> bool",
|
|
641
|
+
documentation: "Returns whether to show the legend key in data labels."
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
label: "show_legend_key=",
|
|
645
|
+
detail: "(value) -> bool?",
|
|
646
|
+
documentation: "Sets whether to show the legend key in data labels."
|
|
562
647
|
}
|
|
563
648
|
].freeze
|
|
564
649
|
|
|
565
650
|
STYLE_BUILDER_ITEMS = [
|
|
651
|
+
{
|
|
652
|
+
label: "bold=",
|
|
653
|
+
detail: "(bool) -> bool",
|
|
654
|
+
documentation: "Sets whether font is bold."
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
label: "bold?",
|
|
658
|
+
detail: "() -> Boolean",
|
|
659
|
+
documentation: "Returns whether font is bold."
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
label: "italic=",
|
|
663
|
+
detail: "(bool) -> bool",
|
|
664
|
+
documentation: "Sets whether font is italic."
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
label: "italic?",
|
|
668
|
+
detail: "() -> Boolean",
|
|
669
|
+
documentation: "Returns whether font is italic."
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
label: "font_size=",
|
|
673
|
+
detail: "(Numeric) -> Numeric",
|
|
674
|
+
documentation: "Sets font size in points."
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
label: "font_size",
|
|
678
|
+
detail: "() -> Numeric?",
|
|
679
|
+
documentation: "Returns font size in points."
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
label: "font_name=",
|
|
683
|
+
detail: "(String) -> String",
|
|
684
|
+
documentation: "Sets font family name."
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
label: "font_name",
|
|
688
|
+
detail: "() -> String?",
|
|
689
|
+
documentation: "Returns font family name."
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
label: "font_color=",
|
|
693
|
+
detail: "(color) -> Object",
|
|
694
|
+
documentation: "Sets font text color."
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
label: "font_color",
|
|
698
|
+
detail: "() -> String?",
|
|
699
|
+
documentation: "Returns font text color."
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
label: "underline=",
|
|
703
|
+
detail: "(val) -> Object",
|
|
704
|
+
documentation: "Sets font underline style."
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
label: "underline",
|
|
708
|
+
detail: "() -> Object?",
|
|
709
|
+
documentation: "Returns font underline style."
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
label: "underline?",
|
|
713
|
+
detail: "() -> Boolean",
|
|
714
|
+
documentation: "Returns whether font underline is enabled."
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
label: "strike=",
|
|
718
|
+
detail: "(bool) -> bool",
|
|
719
|
+
documentation: "Sets whether font has strikethrough."
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
label: "strike?",
|
|
723
|
+
detail: "() -> Boolean",
|
|
724
|
+
documentation: "Returns whether font has strikethrough."
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
label: "vert_align=",
|
|
728
|
+
detail: "(val) -> Object",
|
|
729
|
+
documentation: "Sets font vertical alignment (superscript/subscript)."
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
label: "vert_align",
|
|
733
|
+
detail: "() -> String?",
|
|
734
|
+
documentation: "Returns font vertical alignment."
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
label: "superscript=",
|
|
738
|
+
detail: "(bool) -> Object",
|
|
739
|
+
documentation: "Sets font superscript."
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
label: "superscript?",
|
|
743
|
+
detail: "() -> Boolean",
|
|
744
|
+
documentation: "Returns whether font superscript is enabled."
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
label: "subscript=",
|
|
748
|
+
detail: "(bool) -> Object",
|
|
749
|
+
documentation: "Sets font subscript."
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
label: "subscript?",
|
|
753
|
+
detail: "() -> Boolean",
|
|
754
|
+
documentation: "Returns whether font subscript is enabled."
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
label: "fill_color=",
|
|
758
|
+
detail: "(color) -> Object",
|
|
759
|
+
documentation: "Sets solid background fill color."
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
label: "fill_color",
|
|
763
|
+
detail: "() -> String?",
|
|
764
|
+
documentation: "Returns background fill color."
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
label: "fill_pattern",
|
|
768
|
+
detail: "(?pattern, ?fg_color: nil, ?bg_color: nil) -> Object?",
|
|
769
|
+
documentation: "Gets or sets background fill pattern and colors."
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
label: "fill_gradient",
|
|
773
|
+
detail: "(?type: nil, ?degree: nil, ?stops: []) -> Hash?",
|
|
774
|
+
documentation: "Gets or sets gradient fill."
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
label: "align_horizontal=",
|
|
778
|
+
detail: "(val) -> Object",
|
|
779
|
+
documentation: "Sets horizontal text alignment."
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
label: "align_horizontal",
|
|
783
|
+
detail: "() -> Object?",
|
|
784
|
+
documentation: "Returns horizontal text alignment."
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
label: "align_vertical=",
|
|
788
|
+
detail: "(val) -> Object",
|
|
789
|
+
documentation: "Sets vertical text alignment."
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
label: "align_vertical",
|
|
793
|
+
detail: "() -> Object?",
|
|
794
|
+
documentation: "Returns vertical text alignment."
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
label: "wrap_text=",
|
|
798
|
+
detail: "(bool) -> bool",
|
|
799
|
+
documentation: "Sets text wrapping."
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
label: "wrap_text?",
|
|
803
|
+
detail: "() -> Boolean",
|
|
804
|
+
documentation: "Returns whether text wrapping is enabled."
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
label: "shrink_to_fit=",
|
|
808
|
+
detail: "(bool) -> bool",
|
|
809
|
+
documentation: "Sets shrink to fit."
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
label: "shrink_to_fit?",
|
|
813
|
+
detail: "() -> Boolean",
|
|
814
|
+
documentation: "Returns whether shrink to fit is enabled."
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
label: "text_rotation=",
|
|
818
|
+
detail: "(Numeric) -> Numeric",
|
|
819
|
+
documentation: "Sets text rotation in degrees."
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
label: "text_rotation",
|
|
823
|
+
detail: "() -> Numeric?",
|
|
824
|
+
documentation: "Returns text rotation in degrees."
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
label: "indent=",
|
|
828
|
+
detail: "(Numeric) -> Numeric",
|
|
829
|
+
documentation: "Sets text indentation level."
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
label: "indent",
|
|
833
|
+
detail: "() -> Integer?",
|
|
834
|
+
documentation: "Returns text indentation level."
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
label: "locked=",
|
|
838
|
+
detail: "(bool) -> bool",
|
|
839
|
+
documentation: "Sets whether cell is locked."
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
label: "locked?",
|
|
843
|
+
detail: "() -> Boolean",
|
|
844
|
+
documentation: "Returns whether cell is locked."
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
label: "hidden=",
|
|
848
|
+
detail: "(bool) -> bool",
|
|
849
|
+
documentation: "Sets whether cell formula is hidden."
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
label: "hidden?",
|
|
853
|
+
detail: "() -> Boolean",
|
|
854
|
+
documentation: "Returns whether cell formula is hidden."
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
label: "number_format=",
|
|
858
|
+
detail: "(code_or_id) -> Object",
|
|
859
|
+
documentation: "Sets custom number format code or built-in ID."
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
label: "number_format",
|
|
863
|
+
detail: "() -> Object?",
|
|
864
|
+
documentation: "Returns custom number format code or built-in ID."
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
label: "border_all",
|
|
868
|
+
detail: "(style: 'thin', color: nil) -> void",
|
|
869
|
+
documentation: "Sets all borders to the given style and color."
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
label: "border_top",
|
|
873
|
+
detail: "(style: 'thin', color: nil) -> void",
|
|
874
|
+
documentation: "Sets top border style and color."
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
label: "border_bottom",
|
|
878
|
+
detail: "(style: 'thin', color: nil) -> void",
|
|
879
|
+
documentation: "Sets bottom border style and color."
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
label: "border_left",
|
|
883
|
+
detail: "(style: 'thin', color: nil) -> void",
|
|
884
|
+
documentation: "Sets left border style and color."
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
label: "border_right",
|
|
888
|
+
detail: "(style: 'thin', color: nil) -> void",
|
|
889
|
+
documentation: "Sets right border style and color."
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
label: "border_diagonal",
|
|
893
|
+
detail: "(style: 'thin', color: nil, up: false, down: false) -> void",
|
|
894
|
+
documentation: "Sets diagonal border style and color."
|
|
895
|
+
},
|
|
566
896
|
{
|
|
567
897
|
label: "font",
|
|
568
|
-
detail: "(
|
|
569
|
-
documentation: "
|
|
898
|
+
detail: "(**opts) -> Hash | void",
|
|
899
|
+
documentation: "Configures font typography, size, weight, and color, or returns font properties."
|
|
570
900
|
},
|
|
571
901
|
{
|
|
572
902
|
label: "fill",
|
|
573
|
-
detail: "(
|
|
574
|
-
documentation: "
|
|
903
|
+
detail: "(**opts) -> Hash | void",
|
|
904
|
+
documentation: "Configures background fill pattern and foreground color, or returns fill properties."
|
|
575
905
|
},
|
|
576
906
|
{
|
|
577
907
|
label: "border",
|
|
578
|
-
detail: "(
|
|
579
|
-
documentation: "
|
|
908
|
+
detail: "(**opts) -> Hash | void",
|
|
909
|
+
documentation: "Configures cell border lines and colors, or returns border properties."
|
|
580
910
|
},
|
|
581
911
|
{
|
|
582
912
|
label: "alignment",
|
|
583
|
-
detail: "(
|
|
584
|
-
documentation: "
|
|
913
|
+
detail: "(**opts) -> Hash | void",
|
|
914
|
+
documentation: "Configures cell text alignment and text wrap, or returns alignment properties."
|
|
585
915
|
},
|
|
586
916
|
{
|
|
587
|
-
label: "
|
|
588
|
-
detail: "(
|
|
589
|
-
documentation: "
|
|
917
|
+
label: "protection",
|
|
918
|
+
detail: "(**opts) -> Hash | void",
|
|
919
|
+
documentation: "Configures cell protection (locked, hidden), or returns protection properties."
|
|
590
920
|
}
|
|
591
921
|
].freeze
|
|
592
922
|
|