logisheets 1.2.0 → 1.3.1
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.
- package/dist/index.js +17 -1
- package/dist/src/api/author.js +5 -1
- package/dist/src/api/block_manager.js +5 -1
- package/dist/src/api/calculator.js +7 -2
- package/dist/src/api/cell.js +7 -2
- package/dist/src/api/craft-calc.js +19 -14
- package/dist/src/api/index.js +31 -7
- package/dist/src/api/utils.js +6 -2
- package/dist/src/api/workbook.js +20 -16
- package/dist/src/api/worksheet.d.ts +8 -1
- package/dist/src/api/worksheet.js +20 -7
- package/dist/src/bindings/action_effect.js +5 -1
- package/dist/src/bindings/add_comment.js +5 -1
- package/dist/src/bindings/alignment.js +2 -1
- package/dist/src/bindings/app_data.js +2 -1
- package/dist/src/bindings/appendix.js +2 -1
- package/dist/src/bindings/appendix_with_cell.js +2 -1
- package/dist/src/bindings/async_func_result.js +5 -1
- package/dist/src/bindings/author_input.js +2 -1
- package/dist/src/bindings/bind_form_schema.js +5 -1
- package/dist/src/bindings/bind_random_schema.js +5 -1
- package/dist/src/bindings/block_cell_id.js +2 -1
- package/dist/src/bindings/block_cell_info.js +2 -1
- package/dist/src/bindings/block_data_row.js +2 -1
- package/dist/src/bindings/block_display_info.js +2 -1
- package/dist/src/bindings/block_field.js +2 -1
- package/dist/src/bindings/block_info.js +2 -1
- package/dist/src/bindings/block_input.js +5 -1
- package/dist/src/bindings/block_line_name_field_update.js +5 -1
- package/dist/src/bindings/block_line_style_update.js +5 -1
- package/dist/src/bindings/block_schema.js +2 -1
- package/dist/src/bindings/block_schema_field_entry.js +2 -1
- package/dist/src/bindings/block_schema_key_entry.js +2 -1
- package/dist/src/bindings/block_schema_random_entry.js +2 -1
- package/dist/src/bindings/block_schema_type.js +2 -1
- package/dist/src/bindings/block_style_update.js +5 -1
- package/dist/src/bindings/border.js +2 -1
- package/dist/src/bindings/border_pr.js +2 -1
- package/dist/src/bindings/cell_alignment.js +2 -1
- package/dist/src/bindings/cell_clear.js +5 -1
- package/dist/src/bindings/cell_coordinate.js +2 -1
- package/dist/src/bindings/cell_coordinate_with_sheet.js +2 -1
- package/dist/src/bindings/cell_format_brush.js +5 -1
- package/dist/src/bindings/cell_id.js +2 -1
- package/dist/src/bindings/cell_image_info.d.ts +7 -0
- package/dist/src/bindings/cell_image_info.js +2 -0
- package/dist/src/bindings/cell_info.js +2 -1
- package/dist/src/bindings/cell_input.js +5 -1
- package/dist/src/bindings/cell_position.js +2 -1
- package/dist/src/bindings/cell_protection.js +2 -1
- package/dist/src/bindings/cell_ref.js +2 -1
- package/dist/src/bindings/cell_style_update.js +5 -1
- package/dist/src/bindings/checkpoint_meta.js +2 -1
- package/dist/src/bindings/col_info.js +2 -1
- package/dist/src/bindings/color.js +2 -1
- package/dist/src/bindings/comment.js +2 -1
- package/dist/src/bindings/comment_mention.js +2 -1
- package/dist/src/bindings/comment_mention_info.js +2 -1
- package/dist/src/bindings/comment_note.js +2 -1
- package/dist/src/bindings/comment_person.js +2 -1
- package/dist/src/bindings/convert_block.js +5 -1
- package/dist/src/bindings/create_appendix.js +5 -1
- package/dist/src/bindings/create_block.js +5 -1
- package/dist/src/bindings/create_diy_cell.js +5 -1
- package/dist/src/bindings/create_diy_cell_by_id.js +5 -1
- package/dist/src/bindings/create_sheet.js +5 -1
- package/dist/src/bindings/ct_border.js +2 -1
- package/dist/src/bindings/ct_border_pr.js +2 -1
- package/dist/src/bindings/ct_color.js +2 -1
- package/dist/src/bindings/ct_fill.js +2 -1
- package/dist/src/bindings/ct_font.js +2 -1
- package/dist/src/bindings/ct_gradient_fill.js +2 -1
- package/dist/src/bindings/ct_gradient_stop.js +2 -1
- package/dist/src/bindings/ct_pattern_fill.js +2 -1
- package/dist/src/bindings/delete_cell_image.d.ts +18 -0
- package/dist/src/bindings/delete_cell_image.js +30 -0
- package/dist/src/bindings/delete_cols.js +5 -1
- package/dist/src/bindings/delete_cols_in_block.js +5 -1
- package/dist/src/bindings/delete_comment.js +5 -1
- package/dist/src/bindings/delete_rows.js +5 -1
- package/dist/src/bindings/delete_rows_in_block.js +5 -1
- package/dist/src/bindings/delete_sheet.js +5 -1
- package/dist/src/bindings/display_window.js +2 -1
- package/dist/src/bindings/display_window_request.js +2 -1
- package/dist/src/bindings/display_window_with_start_point.js +2 -1
- package/dist/src/bindings/edit_action.js +2 -1
- package/dist/src/bindings/edit_comment.js +5 -1
- package/dist/src/bindings/edit_payload.d.ts +8 -0
- package/dist/src/bindings/edit_payload.js +2 -1
- package/dist/src/bindings/ephemeral_cell_input.js +5 -1
- package/dist/src/bindings/ephemeral_cell_remove.js +5 -1
- package/dist/src/bindings/ephemeral_cell_style_update.js +5 -1
- package/dist/src/bindings/error_message.js +2 -1
- package/dist/src/bindings/field_render_entry.js +2 -1
- package/dist/src/bindings/fill.js +2 -1
- package/dist/src/bindings/font.js +2 -1
- package/dist/src/bindings/font_family.js +2 -1
- package/dist/src/bindings/font_name.js +2 -1
- package/dist/src/bindings/font_scheme.js +2 -1
- package/dist/src/bindings/font_size.js +2 -1
- package/dist/src/bindings/formula_display_info.js +2 -1
- package/dist/src/bindings/gradient_fill.js +2 -1
- package/dist/src/bindings/gradient_stop.js +2 -1
- package/dist/src/bindings/horizontal_alignment.js +2 -1
- package/dist/src/bindings/index.d.ts +4 -0
- package/dist/src/bindings/index.js +235 -215
- package/dist/src/bindings/insert_cols.js +5 -1
- package/dist/src/bindings/insert_cols_in_block.js +5 -1
- package/dist/src/bindings/insert_rows.js +5 -1
- package/dist/src/bindings/insert_rows_in_block.js +5 -1
- package/dist/src/bindings/int_property.js +2 -1
- package/dist/src/bindings/line_format_brush.js +5 -1
- package/dist/src/bindings/line_style_update.js +5 -1
- package/dist/src/bindings/merge_cell.js +2 -1
- package/dist/src/bindings/merge_cells.js +5 -1
- package/dist/src/bindings/modify_policy.js +2 -1
- package/dist/src/bindings/move_block.js +5 -1
- package/dist/src/bindings/move_block_line.js +5 -1
- package/dist/src/bindings/msg_edit.js +2 -1
- package/dist/src/bindings/msg_join.js +2 -1
- package/dist/src/bindings/msg_sequencer_action_invalid_message.js +2 -1
- package/dist/src/bindings/msg_sequencer_action_message.js +2 -1
- package/dist/src/bindings/msg_sequencer_init_workbook.js +2 -1
- package/dist/src/bindings/msg_sequencer_message.js +2 -1
- package/dist/src/bindings/msg_user_message.js +2 -1
- package/dist/src/bindings/normal_cell_id.js +2 -1
- package/dist/src/bindings/pattern_fill.js +2 -1
- package/dist/src/bindings/payloads_action.js +2 -1
- package/dist/src/bindings/random_schema_unit.js +5 -1
- package/dist/src/bindings/raw_style.js +2 -1
- package/dist/src/bindings/recalc_cell.js +2 -1
- package/dist/src/bindings/remove_appendix.js +5 -1
- package/dist/src/bindings/remove_block.js +5 -1
- package/dist/src/bindings/remove_diy_cell.js +5 -1
- package/dist/src/bindings/remove_diy_cell_by_id.js +5 -1
- package/dist/src/bindings/reorder_block_lines.js +2 -1
- package/dist/src/bindings/reproduce_cells.js +5 -1
- package/dist/src/bindings/reproducible_cell.js +2 -1
- package/dist/src/bindings/resize_block.js +5 -1
- package/dist/src/bindings/resolve_comment.js +5 -1
- package/dist/src/bindings/restore_checkpoint.js +5 -1
- package/dist/src/bindings/row_info.js +2 -1
- package/dist/src/bindings/rpc_batch_get_cell_coordinate_with_sheet_by_id_params.js +2 -1
- package/dist/src/bindings/rpc_batch_get_cell_info_by_id_params.js +2 -1
- package/dist/src/bindings/rpc_calc_condition_params.js +2 -1
- package/dist/src/bindings/rpc_check_formula_params.js +2 -1
- package/dist/src/bindings/rpc_delete_checkpoint_params.js +2 -1
- package/dist/src/bindings/rpc_direction.js +2 -1
- package/dist/src/bindings/rpc_export_block_data_params.js +2 -1
- package/dist/src/bindings/rpc_get_all_blocks_params.js +2 -1
- package/dist/src/bindings/rpc_get_available_block_id_params.js +2 -1
- package/dist/src/bindings/rpc_get_block_col_id_params.js +2 -1
- package/dist/src/bindings/rpc_get_block_display_window_params.js +2 -1
- package/dist/src/bindings/rpc_get_block_info_params.js +2 -1
- package/dist/src/bindings/rpc_get_block_row_id_params.js +2 -1
- package/dist/src/bindings/rpc_get_block_values_params.js +2 -1
- package/dist/src/bindings/rpc_get_cell_id_by_block_ref_params.js +2 -1
- package/dist/src/bindings/rpc_get_cell_id_params.js +2 -1
- package/dist/src/bindings/rpc_get_cell_images_params.d.ts +3 -0
- package/dist/src/bindings/rpc_get_cell_images_params.js +2 -0
- package/dist/src/bindings/rpc_get_cell_infos_params.js +2 -1
- package/dist/src/bindings/rpc_get_cell_params.js +2 -1
- package/dist/src/bindings/rpc_get_cell_position_params.js +2 -1
- package/dist/src/bindings/rpc_get_cells_except_window_params.js +2 -1
- package/dist/src/bindings/rpc_get_cells_params.js +2 -1
- package/dist/src/bindings/rpc_get_col_width_params.js +2 -1
- package/dist/src/bindings/rpc_get_comments_params.js +2 -1
- package/dist/src/bindings/rpc_get_data_boundary_params.js +2 -1
- package/dist/src/bindings/rpc_get_display_units_of_formula_params.js +2 -1
- package/dist/src/bindings/rpc_get_display_window_params.js +2 -1
- package/dist/src/bindings/rpc_get_display_window_with_start_point_params.js +2 -1
- package/dist/src/bindings/rpc_get_display_window_within_cell_params.js +2 -1
- package/dist/src/bindings/rpc_get_diy_cell_id_with_block_id_params.js +2 -1
- package/dist/src/bindings/rpc_get_merged_cells_params.js +2 -1
- package/dist/src/bindings/rpc_get_next_visible_cell_params.js +2 -1
- package/dist/src/bindings/rpc_get_reproducible_cell_params.js +2 -1
- package/dist/src/bindings/rpc_get_reproducible_cells_params.js +2 -1
- package/dist/src/bindings/rpc_get_row_height_params.js +2 -1
- package/dist/src/bindings/rpc_get_row_info_params.js +2 -1
- package/dist/src/bindings/rpc_get_shadow_cell_id_params.js +2 -1
- package/dist/src/bindings/rpc_get_shadow_cell_ids_params.js +2 -1
- package/dist/src/bindings/rpc_get_shadow_info_by_id_params.js +2 -1
- package/dist/src/bindings/rpc_get_sheet_dimension_params.js +2 -1
- package/dist/src/bindings/rpc_get_sheet_id_params.js +2 -1
- package/dist/src/bindings/rpc_get_sheet_idx_params.js +2 -1
- package/dist/src/bindings/rpc_get_sheet_name_by_idx_params.js +2 -1
- package/dist/src/bindings/rpc_handle_transaction_params.js +2 -1
- package/dist/src/bindings/rpc_load_workbook_params.js +2 -1
- package/dist/src/bindings/rpc_lookup_appendix_upward_params.js +2 -1
- package/dist/src/bindings/rpc_predict_fill_params.js +2 -1
- package/dist/src/bindings/rpc_save_checkpoint_params.js +2 -1
- package/dist/src/bindings/rpc_save_params.js +2 -1
- package/dist/src/bindings/rpc_toggle_status_params.js +2 -1
- package/dist/src/bindings/rpc_transaction.js +2 -1
- package/dist/src/bindings/rpc_workbook_methods.d.ts +3 -0
- package/dist/src/bindings/rpc_workbook_methods.js +2 -1
- package/dist/src/bindings/save_file_result.js +2 -1
- package/dist/src/bindings/set_cell_image.d.ts +30 -0
- package/dist/src/bindings/set_cell_image.js +51 -0
- package/dist/src/bindings/set_col_width.js +5 -1
- package/dist/src/bindings/set_row_height.js +5 -1
- package/dist/src/bindings/set_sheet_color.js +5 -1
- package/dist/src/bindings/set_sheet_visible.js +5 -1
- package/dist/src/bindings/set_visible.js +5 -1
- package/dist/src/bindings/shadow_cell_info.js +2 -1
- package/dist/src/bindings/shadow_kind.js +2 -1
- package/dist/src/bindings/sheet_cell_id.js +5 -1
- package/dist/src/bindings/sheet_col_id.js +5 -1
- package/dist/src/bindings/sheet_coordinate.js +2 -1
- package/dist/src/bindings/sheet_dimension.js +2 -1
- package/dist/src/bindings/sheet_info.js +2 -1
- package/dist/src/bindings/sheet_rename.js +5 -1
- package/dist/src/bindings/sheet_row_id.js +5 -1
- package/dist/src/bindings/split_merged_cells.js +5 -1
- package/dist/src/bindings/st_border_style.js +2 -1
- package/dist/src/bindings/st_font_scheme.js +2 -1
- package/dist/src/bindings/st_gradient_type.js +2 -1
- package/dist/src/bindings/st_horizontal_alignment.js +2 -1
- package/dist/src/bindings/st_pattern_type.js +2 -1
- package/dist/src/bindings/st_underline_values.js +2 -1
- package/dist/src/bindings/st_vertical_align_run.js +2 -1
- package/dist/src/bindings/st_vertical_alignment.js +2 -1
- package/dist/src/bindings/status_code.js +2 -1
- package/dist/src/bindings/style.js +2 -1
- package/dist/src/bindings/style_update_type.js +5 -1
- package/dist/src/bindings/task.js +2 -1
- package/dist/src/bindings/temp_cell_change.js +2 -1
- package/dist/src/bindings/temp_status_diff.js +2 -1
- package/dist/src/bindings/token_type.js +2 -1
- package/dist/src/bindings/token_unit.js +2 -1
- package/dist/src/bindings/underline_property.js +2 -1
- package/dist/src/bindings/upsert_field_formulas.js +5 -1
- package/dist/src/bindings/upsert_field_render_info.js +5 -1
- package/dist/src/bindings/upsert_person.js +5 -1
- package/dist/src/bindings/value.js +2 -1
- package/dist/src/bindings/vertical_align_font_property.js +2 -1
- package/dist/src/bindings/vertical_alignment.js +2 -1
- package/dist/src/bindings/workbook_file.js +2 -1
- package/dist/src/bindings/workbook_update_type.js +2 -1
- package/dist/src/client.js +2 -1
- package/dist/src/index.js +23 -7
- package/dist/src/layout.js +2 -1
- package/dist/src/payloads/index.js +2 -1
- package/dist/src/pure.js +28 -7
- package/dist/src/types.js +8 -3
- package/dist/src/utils.js +4 -1
- package/dist/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/dist/wasm/package.json +1 -1
- package/package.json +1 -1
- package/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/wasm/package.json +1 -1
- package/dist/src/payloads/set_block_line_name_field.d.ts +0 -34
- package/dist/src/payloads/set_block_line_name_field.js +0 -62
- package/dist/src/payloads/set_block_line_num_fmt.d.ts +0 -23
- package/dist/src/payloads/set_block_line_num_fmt.js +0 -54
- package/dist/src/payloads/set_cell_alignment.d.ts +0 -18
- package/dist/src/payloads/set_cell_alignment.js +0 -38
- package/dist/src/payloads/set_cell_border.d.ts +0 -48
- package/dist/src/payloads/set_cell_border.js +0 -96
- package/dist/src/payloads/set_cell_font.d.ts +0 -45
- package/dist/src/payloads/set_cell_font.js +0 -90
- package/dist/src/payloads/set_cell_num_fmt.d.ts +0 -17
- package/dist/src/payloads/set_cell_num_fmt.js +0 -38
- package/dist/src/payloads/set_cell_pattern_fill.d.ts +0 -24
- package/dist/src/payloads/set_cell_pattern_fill.js +0 -48
- package/dist/src/payloads/set_cell_wrap_text.d.ts +0 -17
- package/dist/src/payloads/set_cell_wrap_text.js +0 -38
- package/dist/src/payloads/set_field_num_fmt.d.ts +0 -14
- package/dist/src/payloads/set_field_num_fmt.js +0 -30
- package/dist/src/payloads/set_line_alignment.d.ts +0 -21
- package/dist/src/payloads/set_line_alignment.js +0 -46
- package/dist/src/payloads/set_line_border.d.ts +0 -48
- package/dist/src/payloads/set_line_border.js +0 -96
- package/dist/src/payloads/set_line_font.d.ts +0 -48
- package/dist/src/payloads/set_line_font.js +0 -98
- package/dist/src/payloads/set_line_num_fmt.d.ts +0 -20
- package/dist/src/payloads/set_line_num_fmt.js +0 -46
- package/dist/src/payloads/set_line_pattern_fill.d.ts +0 -27
- package/dist/src/payloads/set_line_pattern_fill.js +0 -56
- package/dist/src/payloads/set_line_wrap_text.d.ts +0 -20
- package/dist/src/payloads/set_line_wrap_text.js +0 -46
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export class SetBlockLineNumFmtBuilder {
|
|
2
|
-
_sheetIdx;
|
|
3
|
-
_blockId;
|
|
4
|
-
_from;
|
|
5
|
-
_to;
|
|
6
|
-
_isRow;
|
|
7
|
-
_numFmt;
|
|
8
|
-
sheetIdx(sheetIdx) {
|
|
9
|
-
this._sheetIdx = sheetIdx;
|
|
10
|
-
return this;
|
|
11
|
-
}
|
|
12
|
-
blockId(blockId) {
|
|
13
|
-
this._blockId = blockId;
|
|
14
|
-
return this;
|
|
15
|
-
}
|
|
16
|
-
from(from) {
|
|
17
|
-
this._from = from;
|
|
18
|
-
return this;
|
|
19
|
-
}
|
|
20
|
-
to(to) {
|
|
21
|
-
this._to = to;
|
|
22
|
-
return this;
|
|
23
|
-
}
|
|
24
|
-
isRow(isRow) {
|
|
25
|
-
this._isRow = isRow;
|
|
26
|
-
return this;
|
|
27
|
-
}
|
|
28
|
-
numFmt(numFmt) {
|
|
29
|
-
this._numFmt = numFmt;
|
|
30
|
-
return this;
|
|
31
|
-
}
|
|
32
|
-
build() {
|
|
33
|
-
if (this._sheetIdx === undefined)
|
|
34
|
-
throw Error('sheetIdx is undefined!');
|
|
35
|
-
if (this._blockId === undefined)
|
|
36
|
-
throw Error('blockId is undefined!');
|
|
37
|
-
if (this._from === undefined)
|
|
38
|
-
throw Error('from is undefined!');
|
|
39
|
-
if (this._to === undefined)
|
|
40
|
-
throw Error('to is undefined!');
|
|
41
|
-
if (this._isRow === undefined)
|
|
42
|
-
throw Error('isRow is undefined!');
|
|
43
|
-
if (this._numFmt === undefined)
|
|
44
|
-
throw Error('numFmt is undefined!');
|
|
45
|
-
return {
|
|
46
|
-
sheetIdx: this._sheetIdx,
|
|
47
|
-
blockId: this._blockId,
|
|
48
|
-
from: this._from,
|
|
49
|
-
to: this._to,
|
|
50
|
-
isRow: this._isRow,
|
|
51
|
-
numFmt: this._numFmt,
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Alignment } from '../bindings';
|
|
2
|
-
export interface SetCellAlignment {
|
|
3
|
-
readonly sheetIdx: number;
|
|
4
|
-
readonly row: number;
|
|
5
|
-
readonly col: number;
|
|
6
|
-
readonly alignment: Alignment;
|
|
7
|
-
}
|
|
8
|
-
export declare class SetCellAlignmentBuilder {
|
|
9
|
-
private _sheetIdx?;
|
|
10
|
-
private _row?;
|
|
11
|
-
private _col?;
|
|
12
|
-
private _alignment?;
|
|
13
|
-
sheetIdx(sheetIdx: number): this;
|
|
14
|
-
row(row: number): this;
|
|
15
|
-
col(col: number): this;
|
|
16
|
-
alignment(value: Alignment): this;
|
|
17
|
-
build(): SetCellAlignment;
|
|
18
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export class SetCellAlignmentBuilder {
|
|
2
|
-
_sheetIdx;
|
|
3
|
-
_row;
|
|
4
|
-
_col;
|
|
5
|
-
_alignment;
|
|
6
|
-
sheetIdx(sheetIdx) {
|
|
7
|
-
this._sheetIdx = sheetIdx;
|
|
8
|
-
return this;
|
|
9
|
-
}
|
|
10
|
-
row(row) {
|
|
11
|
-
this._row = row;
|
|
12
|
-
return this;
|
|
13
|
-
}
|
|
14
|
-
col(col) {
|
|
15
|
-
this._col = col;
|
|
16
|
-
return this;
|
|
17
|
-
}
|
|
18
|
-
alignment(value) {
|
|
19
|
-
this._alignment = value;
|
|
20
|
-
return this;
|
|
21
|
-
}
|
|
22
|
-
build() {
|
|
23
|
-
if (this._sheetIdx === undefined)
|
|
24
|
-
throw Error('sheetIdx is undefined!');
|
|
25
|
-
if (this._row === undefined)
|
|
26
|
-
throw Error('row is undefined!');
|
|
27
|
-
if (this._col === undefined)
|
|
28
|
-
throw Error('col is undefined!');
|
|
29
|
-
if (this._alignment === undefined)
|
|
30
|
-
throw Error('alignment is undefined!');
|
|
31
|
-
return {
|
|
32
|
-
sheetIdx: this._sheetIdx,
|
|
33
|
-
row: this._row,
|
|
34
|
-
col: this._col,
|
|
35
|
-
alignment: this._alignment,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { StBorderStyle } from '../bindings';
|
|
2
|
-
export interface SetCellBorder {
|
|
3
|
-
readonly sheetIdx: number;
|
|
4
|
-
readonly row: number;
|
|
5
|
-
readonly col: number;
|
|
6
|
-
readonly leftColor?: string;
|
|
7
|
-
readonly rightColor?: string;
|
|
8
|
-
readonly topColor?: string;
|
|
9
|
-
readonly bottomColor?: string;
|
|
10
|
-
readonly leftBorderType?: StBorderStyle;
|
|
11
|
-
readonly rightBorderType?: StBorderStyle;
|
|
12
|
-
readonly topBorderType?: StBorderStyle;
|
|
13
|
-
readonly bottomBorderType?: StBorderStyle;
|
|
14
|
-
readonly outline?: boolean;
|
|
15
|
-
readonly diagonalUp?: boolean;
|
|
16
|
-
readonly diagonalDown?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare class SetCellBorderBuilder {
|
|
19
|
-
private _sheetIdx?;
|
|
20
|
-
private _row?;
|
|
21
|
-
private _col?;
|
|
22
|
-
private _leftColor?;
|
|
23
|
-
private _rightColor?;
|
|
24
|
-
private _topColor?;
|
|
25
|
-
private _bottomColor?;
|
|
26
|
-
private _leftBorderType?;
|
|
27
|
-
private _rightBorderType?;
|
|
28
|
-
private _topBorderType?;
|
|
29
|
-
private _bottomBorderType?;
|
|
30
|
-
private _outline?;
|
|
31
|
-
private _diagonalUp?;
|
|
32
|
-
private _diagonalDown?;
|
|
33
|
-
sheetIdx(sheetIdx: number): this;
|
|
34
|
-
row(row: number): this;
|
|
35
|
-
col(col: number): this;
|
|
36
|
-
leftColor(leftColor: string): this;
|
|
37
|
-
rightColor(rightColor: string): this;
|
|
38
|
-
topColor(topColor: string): this;
|
|
39
|
-
bottomColor(bottomColor: string): this;
|
|
40
|
-
leftBorderType(leftBorderType: StBorderStyle): this;
|
|
41
|
-
rightBorderType(rightBorderType: StBorderStyle): this;
|
|
42
|
-
topBorderType(topBorderType: StBorderStyle): this;
|
|
43
|
-
bottomBorderType(bottomBorderType: StBorderStyle): this;
|
|
44
|
-
outline(outline: boolean): this;
|
|
45
|
-
diagonalUp(diagonalUp: boolean): this;
|
|
46
|
-
diagonalDown(diagonalDown: boolean): this;
|
|
47
|
-
build(): SetCellBorder;
|
|
48
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
export class SetCellBorderBuilder {
|
|
2
|
-
_sheetIdx;
|
|
3
|
-
_row;
|
|
4
|
-
_col;
|
|
5
|
-
_leftColor;
|
|
6
|
-
_rightColor;
|
|
7
|
-
_topColor;
|
|
8
|
-
_bottomColor;
|
|
9
|
-
_leftBorderType;
|
|
10
|
-
_rightBorderType;
|
|
11
|
-
_topBorderType;
|
|
12
|
-
_bottomBorderType;
|
|
13
|
-
_outline;
|
|
14
|
-
_diagonalUp;
|
|
15
|
-
_diagonalDown;
|
|
16
|
-
sheetIdx(sheetIdx) {
|
|
17
|
-
this._sheetIdx = sheetIdx;
|
|
18
|
-
return this;
|
|
19
|
-
}
|
|
20
|
-
row(row) {
|
|
21
|
-
this._row = row;
|
|
22
|
-
return this;
|
|
23
|
-
}
|
|
24
|
-
col(col) {
|
|
25
|
-
this._col = col;
|
|
26
|
-
return this;
|
|
27
|
-
}
|
|
28
|
-
leftColor(leftColor) {
|
|
29
|
-
this._leftColor = leftColor;
|
|
30
|
-
return this;
|
|
31
|
-
}
|
|
32
|
-
rightColor(rightColor) {
|
|
33
|
-
this._rightColor = rightColor;
|
|
34
|
-
return this;
|
|
35
|
-
}
|
|
36
|
-
topColor(topColor) {
|
|
37
|
-
this._topColor = topColor;
|
|
38
|
-
return this;
|
|
39
|
-
}
|
|
40
|
-
bottomColor(bottomColor) {
|
|
41
|
-
this._bottomColor = bottomColor;
|
|
42
|
-
return this;
|
|
43
|
-
}
|
|
44
|
-
leftBorderType(leftBorderType) {
|
|
45
|
-
this._leftBorderType = leftBorderType;
|
|
46
|
-
return this;
|
|
47
|
-
}
|
|
48
|
-
rightBorderType(rightBorderType) {
|
|
49
|
-
this._rightBorderType = rightBorderType;
|
|
50
|
-
return this;
|
|
51
|
-
}
|
|
52
|
-
topBorderType(topBorderType) {
|
|
53
|
-
this._topBorderType = topBorderType;
|
|
54
|
-
return this;
|
|
55
|
-
}
|
|
56
|
-
bottomBorderType(bottomBorderType) {
|
|
57
|
-
this._bottomBorderType = bottomBorderType;
|
|
58
|
-
return this;
|
|
59
|
-
}
|
|
60
|
-
outline(outline) {
|
|
61
|
-
this._outline = outline;
|
|
62
|
-
return this;
|
|
63
|
-
}
|
|
64
|
-
diagonalUp(diagonalUp) {
|
|
65
|
-
this._diagonalUp = diagonalUp;
|
|
66
|
-
return this;
|
|
67
|
-
}
|
|
68
|
-
diagonalDown(diagonalDown) {
|
|
69
|
-
this._diagonalDown = diagonalDown;
|
|
70
|
-
return this;
|
|
71
|
-
}
|
|
72
|
-
build() {
|
|
73
|
-
if (this._sheetIdx === undefined)
|
|
74
|
-
throw Error('sheetIdx is undefined');
|
|
75
|
-
if (this._row === undefined)
|
|
76
|
-
throw Error('row is undefined!');
|
|
77
|
-
if (this._col === undefined)
|
|
78
|
-
throw Error('col is undefined!');
|
|
79
|
-
return {
|
|
80
|
-
sheetIdx: this._sheetIdx,
|
|
81
|
-
row: this._row,
|
|
82
|
-
col: this._col,
|
|
83
|
-
leftColor: this._leftColor,
|
|
84
|
-
rightColor: this._rightColor,
|
|
85
|
-
topColor: this._topColor,
|
|
86
|
-
bottomColor: this._bottomColor,
|
|
87
|
-
leftBorderType: this._leftBorderType,
|
|
88
|
-
rightBorderType: this._rightBorderType,
|
|
89
|
-
topBorderType: this._topBorderType,
|
|
90
|
-
bottomBorderType: this._bottomBorderType,
|
|
91
|
-
outline: this._outline,
|
|
92
|
-
diagonalUp: this._diagonalUp,
|
|
93
|
-
diagonalDown: this._diagonalDown,
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { StUnderlineValues as UnderlineType } from '../bindings';
|
|
2
|
-
export interface SetCellFont {
|
|
3
|
-
readonly sheetIdx: number;
|
|
4
|
-
readonly row: number;
|
|
5
|
-
readonly col: number;
|
|
6
|
-
readonly bold?: boolean;
|
|
7
|
-
readonly italic?: boolean;
|
|
8
|
-
readonly name?: string;
|
|
9
|
-
readonly underline?: UnderlineType;
|
|
10
|
-
readonly color?: string;
|
|
11
|
-
readonly size?: number;
|
|
12
|
-
readonly outline?: boolean;
|
|
13
|
-
readonly shadow?: boolean;
|
|
14
|
-
readonly strike?: boolean;
|
|
15
|
-
readonly condense?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare class SetCellFontBuilder {
|
|
18
|
-
private _sheetIdx?;
|
|
19
|
-
private _row?;
|
|
20
|
-
private _col?;
|
|
21
|
-
private _bold?;
|
|
22
|
-
private _italic?;
|
|
23
|
-
private _name?;
|
|
24
|
-
private _underline?;
|
|
25
|
-
private _color?;
|
|
26
|
-
private _size?;
|
|
27
|
-
private _outline?;
|
|
28
|
-
private _shadow?;
|
|
29
|
-
private _strike?;
|
|
30
|
-
private _condense?;
|
|
31
|
-
sheetIdx(sheetIdx: number): this;
|
|
32
|
-
row(row: number): this;
|
|
33
|
-
col(col: number): this;
|
|
34
|
-
bold(bold: boolean): this;
|
|
35
|
-
italic(italic: boolean): this;
|
|
36
|
-
name(name: string): this;
|
|
37
|
-
underline(underline: UnderlineType): this;
|
|
38
|
-
color(color: string): this;
|
|
39
|
-
size(size: number): this;
|
|
40
|
-
outline(outline: boolean): this;
|
|
41
|
-
shadow(shadow: boolean): this;
|
|
42
|
-
strike(strike: boolean): this;
|
|
43
|
-
condense(condense: boolean): this;
|
|
44
|
-
build(): SetCellFont;
|
|
45
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
export class SetCellFontBuilder {
|
|
2
|
-
_sheetIdx;
|
|
3
|
-
_row;
|
|
4
|
-
_col;
|
|
5
|
-
_bold;
|
|
6
|
-
_italic;
|
|
7
|
-
_name;
|
|
8
|
-
_underline;
|
|
9
|
-
_color;
|
|
10
|
-
_size;
|
|
11
|
-
_outline;
|
|
12
|
-
_shadow;
|
|
13
|
-
_strike;
|
|
14
|
-
_condense;
|
|
15
|
-
sheetIdx(sheetIdx) {
|
|
16
|
-
this._sheetIdx = sheetIdx;
|
|
17
|
-
return this;
|
|
18
|
-
}
|
|
19
|
-
row(row) {
|
|
20
|
-
this._row = row;
|
|
21
|
-
return this;
|
|
22
|
-
}
|
|
23
|
-
col(col) {
|
|
24
|
-
this._col = col;
|
|
25
|
-
return this;
|
|
26
|
-
}
|
|
27
|
-
bold(bold) {
|
|
28
|
-
this._bold = bold;
|
|
29
|
-
return this;
|
|
30
|
-
}
|
|
31
|
-
italic(italic) {
|
|
32
|
-
this._italic = italic;
|
|
33
|
-
return this;
|
|
34
|
-
}
|
|
35
|
-
name(name) {
|
|
36
|
-
this._name = name;
|
|
37
|
-
return this;
|
|
38
|
-
}
|
|
39
|
-
underline(underline) {
|
|
40
|
-
this._underline = underline;
|
|
41
|
-
return this;
|
|
42
|
-
}
|
|
43
|
-
color(color) {
|
|
44
|
-
this._color = color;
|
|
45
|
-
return this;
|
|
46
|
-
}
|
|
47
|
-
size(size) {
|
|
48
|
-
this._size = size;
|
|
49
|
-
return this;
|
|
50
|
-
}
|
|
51
|
-
outline(outline) {
|
|
52
|
-
this._outline = outline;
|
|
53
|
-
return this;
|
|
54
|
-
}
|
|
55
|
-
shadow(shadow) {
|
|
56
|
-
this._shadow = shadow;
|
|
57
|
-
return this;
|
|
58
|
-
}
|
|
59
|
-
strike(strike) {
|
|
60
|
-
this._strike = strike;
|
|
61
|
-
return this;
|
|
62
|
-
}
|
|
63
|
-
condense(condense) {
|
|
64
|
-
this._condense = condense;
|
|
65
|
-
return this;
|
|
66
|
-
}
|
|
67
|
-
build() {
|
|
68
|
-
if (this._sheetIdx === undefined)
|
|
69
|
-
throw Error('sheetIdx is undefined!');
|
|
70
|
-
if (this._row === undefined)
|
|
71
|
-
throw Error('row is undefined!');
|
|
72
|
-
if (this._col === undefined)
|
|
73
|
-
throw Error('col is undefined!');
|
|
74
|
-
return {
|
|
75
|
-
sheetIdx: this._sheetIdx,
|
|
76
|
-
row: this._row,
|
|
77
|
-
col: this._col,
|
|
78
|
-
bold: this._bold,
|
|
79
|
-
italic: this._italic,
|
|
80
|
-
underline: this._underline,
|
|
81
|
-
color: this._color,
|
|
82
|
-
size: this._size,
|
|
83
|
-
outline: this._outline,
|
|
84
|
-
shadow: this._shadow,
|
|
85
|
-
strike: this._strike,
|
|
86
|
-
condense: this._condense,
|
|
87
|
-
name: this._name,
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface SetCellNumFmt {
|
|
2
|
-
readonly sheetIdx: number;
|
|
3
|
-
readonly row: number;
|
|
4
|
-
readonly col: number;
|
|
5
|
-
readonly numFmt: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class SetCellNumFmtBuilder {
|
|
8
|
-
private _sheetIdx?;
|
|
9
|
-
private _row?;
|
|
10
|
-
private _col?;
|
|
11
|
-
private _numFmt?;
|
|
12
|
-
sheetIdx(sheetIdx: number): this;
|
|
13
|
-
row(row: number): this;
|
|
14
|
-
col(col: number): this;
|
|
15
|
-
numFmt(numFmt: string): this;
|
|
16
|
-
build(): SetCellNumFmt;
|
|
17
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export class SetCellNumFmtBuilder {
|
|
2
|
-
_sheetIdx;
|
|
3
|
-
_row;
|
|
4
|
-
_col;
|
|
5
|
-
_numFmt;
|
|
6
|
-
sheetIdx(sheetIdx) {
|
|
7
|
-
this._sheetIdx = sheetIdx;
|
|
8
|
-
return this;
|
|
9
|
-
}
|
|
10
|
-
row(row) {
|
|
11
|
-
this._row = row;
|
|
12
|
-
return this;
|
|
13
|
-
}
|
|
14
|
-
col(col) {
|
|
15
|
-
this._col = col;
|
|
16
|
-
return this;
|
|
17
|
-
}
|
|
18
|
-
numFmt(numFmt) {
|
|
19
|
-
this._numFmt = numFmt;
|
|
20
|
-
return this;
|
|
21
|
-
}
|
|
22
|
-
build() {
|
|
23
|
-
if (this._sheetIdx === undefined)
|
|
24
|
-
throw Error('sheetIdx is undefined!');
|
|
25
|
-
if (this._row === undefined)
|
|
26
|
-
throw Error('row is undefined!');
|
|
27
|
-
if (this._col === undefined)
|
|
28
|
-
throw Error('col is undefined!');
|
|
29
|
-
if (this._numFmt === undefined)
|
|
30
|
-
throw Error('numFmt is undefined!');
|
|
31
|
-
return {
|
|
32
|
-
sheetIdx: this._sheetIdx,
|
|
33
|
-
row: this._row,
|
|
34
|
-
col: this._col,
|
|
35
|
-
numFmt: this._numFmt,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { StPatternType } from '../bindings';
|
|
2
|
-
export interface SetCellPatternFill {
|
|
3
|
-
readonly sheetIdx: number;
|
|
4
|
-
readonly row: number;
|
|
5
|
-
readonly col: number;
|
|
6
|
-
readonly fgColor?: string;
|
|
7
|
-
readonly bgColor?: string;
|
|
8
|
-
readonly pattern?: StPatternType;
|
|
9
|
-
}
|
|
10
|
-
export declare class SetCellPatternFillBuilder {
|
|
11
|
-
private _sheetIdx?;
|
|
12
|
-
private _row?;
|
|
13
|
-
private _col?;
|
|
14
|
-
private _fgColor?;
|
|
15
|
-
private _bgColor?;
|
|
16
|
-
private _pattern?;
|
|
17
|
-
sheetIdx(sheetIdx: number): this;
|
|
18
|
-
row(row: number): this;
|
|
19
|
-
col(col: number): this;
|
|
20
|
-
fgColor(c: string): this;
|
|
21
|
-
bgColor(c: string): this;
|
|
22
|
-
pattern(p: StPatternType): this;
|
|
23
|
-
build(): SetCellPatternFill;
|
|
24
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export class SetCellPatternFillBuilder {
|
|
2
|
-
_sheetIdx;
|
|
3
|
-
_row;
|
|
4
|
-
_col;
|
|
5
|
-
_fgColor;
|
|
6
|
-
_bgColor;
|
|
7
|
-
_pattern;
|
|
8
|
-
sheetIdx(sheetIdx) {
|
|
9
|
-
this._sheetIdx = sheetIdx;
|
|
10
|
-
return this;
|
|
11
|
-
}
|
|
12
|
-
row(row) {
|
|
13
|
-
this._row = row;
|
|
14
|
-
return this;
|
|
15
|
-
}
|
|
16
|
-
col(col) {
|
|
17
|
-
this._col = col;
|
|
18
|
-
return this;
|
|
19
|
-
}
|
|
20
|
-
fgColor(c) {
|
|
21
|
-
this._fgColor = c;
|
|
22
|
-
return this;
|
|
23
|
-
}
|
|
24
|
-
bgColor(c) {
|
|
25
|
-
this._bgColor = c;
|
|
26
|
-
return this;
|
|
27
|
-
}
|
|
28
|
-
pattern(p) {
|
|
29
|
-
this._pattern = p;
|
|
30
|
-
return this;
|
|
31
|
-
}
|
|
32
|
-
build() {
|
|
33
|
-
if (this._sheetIdx === undefined)
|
|
34
|
-
throw Error('sheetIdx is undefined!');
|
|
35
|
-
if (this._row === undefined)
|
|
36
|
-
throw Error('row is undefined!');
|
|
37
|
-
if (this._col === undefined)
|
|
38
|
-
throw Error('col is undefined!');
|
|
39
|
-
return {
|
|
40
|
-
sheetIdx: this._sheetIdx,
|
|
41
|
-
row: this._row,
|
|
42
|
-
col: this._col,
|
|
43
|
-
fgColor: this._fgColor,
|
|
44
|
-
bgColor: this._bgColor,
|
|
45
|
-
pattern: this._pattern,
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface SetCellWrapText {
|
|
2
|
-
readonly sheetIdx: number;
|
|
3
|
-
readonly row: number;
|
|
4
|
-
readonly col: number;
|
|
5
|
-
readonly wrapText: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare class SetCellWrapTextBuilder {
|
|
8
|
-
private _sheetIdx?;
|
|
9
|
-
private _row?;
|
|
10
|
-
private _col?;
|
|
11
|
-
private _wrapText?;
|
|
12
|
-
sheetIdx(sheetIdx: number): this;
|
|
13
|
-
row(row: number): this;
|
|
14
|
-
col(col: number): this;
|
|
15
|
-
wrapText(value: boolean): this;
|
|
16
|
-
build(): SetCellWrapText;
|
|
17
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export class SetCellWrapTextBuilder {
|
|
2
|
-
_sheetIdx;
|
|
3
|
-
_row;
|
|
4
|
-
_col;
|
|
5
|
-
_wrapText;
|
|
6
|
-
sheetIdx(sheetIdx) {
|
|
7
|
-
this._sheetIdx = sheetIdx;
|
|
8
|
-
return this;
|
|
9
|
-
}
|
|
10
|
-
row(row) {
|
|
11
|
-
this._row = row;
|
|
12
|
-
return this;
|
|
13
|
-
}
|
|
14
|
-
col(col) {
|
|
15
|
-
this._col = col;
|
|
16
|
-
return this;
|
|
17
|
-
}
|
|
18
|
-
wrapText(value) {
|
|
19
|
-
this._wrapText = value;
|
|
20
|
-
return this;
|
|
21
|
-
}
|
|
22
|
-
build() {
|
|
23
|
-
if (this._sheetIdx === undefined)
|
|
24
|
-
throw Error('sheetIdx is undefined!');
|
|
25
|
-
if (this._row === undefined)
|
|
26
|
-
throw Error('row is undefined!');
|
|
27
|
-
if (this._col === undefined)
|
|
28
|
-
throw Error('col is undefined!');
|
|
29
|
-
if (this._wrapText === undefined)
|
|
30
|
-
throw Error('wrapText is undefined!');
|
|
31
|
-
return {
|
|
32
|
-
sheetIdx: this._sheetIdx,
|
|
33
|
-
row: this._row,
|
|
34
|
-
col: this._col,
|
|
35
|
-
wrapText: this._wrapText,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface SetFieldNumFmt {
|
|
2
|
-
readonly renderId: string;
|
|
3
|
-
readonly numFmt: string;
|
|
4
|
-
readonly diyRender: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare class SetFieldNumFmtBuilder {
|
|
7
|
-
private _renderId?;
|
|
8
|
-
private _numFmt?;
|
|
9
|
-
private _diyRender?;
|
|
10
|
-
renderId(renderId: string): this;
|
|
11
|
-
numFmt(numFmt: string): this;
|
|
12
|
-
diyRender(diyRender: boolean): this;
|
|
13
|
-
build(): SetFieldNumFmt;
|
|
14
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export class SetFieldNumFmtBuilder {
|
|
2
|
-
_renderId;
|
|
3
|
-
_numFmt;
|
|
4
|
-
_diyRender;
|
|
5
|
-
renderId(renderId) {
|
|
6
|
-
this._renderId = renderId;
|
|
7
|
-
return this;
|
|
8
|
-
}
|
|
9
|
-
numFmt(numFmt) {
|
|
10
|
-
this._numFmt = numFmt;
|
|
11
|
-
return this;
|
|
12
|
-
}
|
|
13
|
-
diyRender(diyRender) {
|
|
14
|
-
this._diyRender = diyRender;
|
|
15
|
-
return this;
|
|
16
|
-
}
|
|
17
|
-
build() {
|
|
18
|
-
if (this._renderId === undefined)
|
|
19
|
-
throw Error('renderId is undefined!');
|
|
20
|
-
if (this._numFmt === undefined)
|
|
21
|
-
throw Error('numFmt is undefined!');
|
|
22
|
-
if (this._diyRender === undefined)
|
|
23
|
-
throw Error('diyRender is undefined!');
|
|
24
|
-
return {
|
|
25
|
-
renderId: this._renderId,
|
|
26
|
-
numFmt: this._numFmt,
|
|
27
|
-
diyRender: this._diyRender,
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Alignment } from '../bindings';
|
|
2
|
-
export interface SetLineAlignment {
|
|
3
|
-
readonly sheetIdx: number;
|
|
4
|
-
readonly row: boolean;
|
|
5
|
-
readonly from: number;
|
|
6
|
-
readonly to: number;
|
|
7
|
-
readonly alignment: Alignment;
|
|
8
|
-
}
|
|
9
|
-
export declare class SetLineAlignmentBuilder {
|
|
10
|
-
private _sheetIdx?;
|
|
11
|
-
private _row?;
|
|
12
|
-
private _from?;
|
|
13
|
-
private _to?;
|
|
14
|
-
private _alignment?;
|
|
15
|
-
sheetIdx(sheetIdx: number): this;
|
|
16
|
-
from(v: number): this;
|
|
17
|
-
to(v: number): this;
|
|
18
|
-
row(v: boolean): this;
|
|
19
|
-
alignment(v: Alignment): this;
|
|
20
|
-
build(): SetLineAlignment;
|
|
21
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export class SetLineAlignmentBuilder {
|
|
2
|
-
_sheetIdx;
|
|
3
|
-
_row;
|
|
4
|
-
_from;
|
|
5
|
-
_to;
|
|
6
|
-
_alignment;
|
|
7
|
-
sheetIdx(sheetIdx) {
|
|
8
|
-
this._sheetIdx = sheetIdx;
|
|
9
|
-
return this;
|
|
10
|
-
}
|
|
11
|
-
from(v) {
|
|
12
|
-
this._from = v;
|
|
13
|
-
return this;
|
|
14
|
-
}
|
|
15
|
-
to(v) {
|
|
16
|
-
this._to = v;
|
|
17
|
-
return this;
|
|
18
|
-
}
|
|
19
|
-
row(v) {
|
|
20
|
-
this._row = v;
|
|
21
|
-
return this;
|
|
22
|
-
}
|
|
23
|
-
alignment(v) {
|
|
24
|
-
this._alignment = v;
|
|
25
|
-
return this;
|
|
26
|
-
}
|
|
27
|
-
build() {
|
|
28
|
-
if (this._sheetIdx === undefined)
|
|
29
|
-
throw Error('sheetIdx is undefined!');
|
|
30
|
-
if (this._from === undefined)
|
|
31
|
-
throw Error('from is undefined!');
|
|
32
|
-
if (this._to === undefined)
|
|
33
|
-
throw Error('to is undefined!');
|
|
34
|
-
if (this._row === undefined)
|
|
35
|
-
throw Error('row is undefined!');
|
|
36
|
-
if (this._alignment === undefined)
|
|
37
|
-
throw Error('alignment is undefined!');
|
|
38
|
-
return {
|
|
39
|
-
sheetIdx: this._sheetIdx,
|
|
40
|
-
from: this._from,
|
|
41
|
-
to: this._to,
|
|
42
|
-
row: this._row,
|
|
43
|
-
alignment: this._alignment,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
}
|