logisheets 0.7.0 → 0.8.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.
- package/dist/src/api/block_manager.d.ts +21 -0
- package/dist/src/api/block_manager.js +35 -0
- package/dist/src/api/calculator.d.ts +19 -0
- package/dist/src/api/calculator.js +46 -0
- package/dist/src/api/cell.d.ts +28 -0
- package/dist/src/api/cell.js +52 -0
- package/dist/src/api/index.d.ts +5 -0
- package/dist/src/api/index.js +3 -0
- package/dist/src/api/utils.d.ts +3 -1
- package/dist/src/api/utils.js +5 -0
- package/dist/src/api/workbook.d.ts +30 -8
- package/dist/src/api/workbook.js +161 -21
- package/dist/src/api/worksheet.d.ts +20 -12
- package/dist/src/api/worksheet.js +58 -20
- package/dist/src/bindings/alignment.d.ts +6 -0
- package/dist/src/bindings/alignment.js +1 -0
- package/dist/src/bindings/block_cell_id.d.ts +1 -1
- package/dist/src/bindings/cell_clear.d.ts +5 -0
- package/dist/src/bindings/cell_clear.js +2 -0
- package/dist/src/bindings/cell_format_brush.d.ts +10 -0
- package/dist/src/bindings/cell_format_brush.js +2 -0
- package/dist/src/bindings/cell_id.d.ts +5 -3
- package/dist/src/bindings/cell_info.d.ts +1 -0
- package/dist/src/bindings/cell_position.d.ts +4 -0
- package/dist/src/bindings/cell_position.js +2 -0
- package/dist/src/bindings/cell_style_update.d.ts +7 -0
- package/dist/src/bindings/cell_style_update.js +1 -0
- package/dist/src/bindings/display_window.d.ts +14 -0
- package/dist/src/bindings/display_window.js +1 -0
- package/dist/src/bindings/display_window_request.d.ts +7 -0
- package/dist/src/bindings/display_window_request.js +2 -0
- package/dist/src/bindings/display_window_with_start_point.d.ts +6 -0
- package/dist/src/bindings/display_window_with_start_point.js +1 -0
- package/dist/src/bindings/edit_action.d.ts +1 -1
- package/dist/src/bindings/edit_payload.d.ts +27 -3
- package/dist/src/bindings/ephemeral_cell_input.d.ts +5 -0
- package/dist/src/bindings/ephemeral_cell_input.js +2 -0
- package/dist/src/bindings/ephemeral_cell_style_update.d.ts +6 -0
- package/dist/src/bindings/ephemeral_cell_style_update.js +1 -0
- package/dist/src/bindings/fill.d.ts +1 -1
- package/dist/src/bindings/horizontal_alignment.d.ts +1 -0
- package/dist/src/bindings/horizontal_alignment.js +2 -0
- package/dist/src/bindings/index.d.ts +19 -17
- package/dist/src/bindings/index.js +19 -17
- package/dist/src/bindings/line_format_brush.d.ts +9 -0
- package/dist/src/bindings/line_format_brush.js +2 -0
- package/dist/src/bindings/line_style_update.d.ts +8 -0
- package/dist/src/bindings/line_style_update.js +1 -0
- package/dist/src/bindings/merge_cell.d.ts +4 -4
- package/dist/src/bindings/merge_cells.d.ts +7 -0
- package/dist/src/bindings/merge_cells.js +2 -0
- package/dist/src/bindings/msg_sequencer_message.d.ts +1 -1
- package/dist/src/bindings/msg_user_message.d.ts +1 -1
- package/dist/src/bindings/payloads_action.d.ts +1 -0
- package/dist/src/bindings/sheet_dimension.d.ts +6 -0
- package/dist/src/bindings/sheet_dimension.js +2 -0
- package/dist/src/bindings/sheet_info.d.ts +6 -0
- package/dist/src/bindings/sheet_info.js +2 -0
- package/dist/src/bindings/split_merged_cells.d.ts +5 -0
- package/dist/src/bindings/split_merged_cells.js +2 -0
- package/dist/src/bindings/st_border_style.d.ts +1 -1
- package/dist/src/bindings/st_font_scheme.d.ts +1 -1
- package/dist/src/bindings/st_gradient_type.d.ts +1 -1
- package/dist/src/bindings/st_pattern_type.d.ts +1 -1
- package/dist/src/bindings/st_underline_values.d.ts +1 -1
- package/dist/src/bindings/st_vertical_align_run.d.ts +1 -1
- package/dist/src/bindings/status_code.d.ts +3 -2
- package/dist/src/bindings/status_code.js +0 -1
- package/dist/src/bindings/style.d.ts +2 -2
- package/dist/src/bindings/style_update_type.d.ts +2 -0
- package/dist/src/bindings/value.d.ts +1 -1
- package/dist/src/bindings/vertical_alignment.d.ts +1 -0
- package/dist/src/bindings/vertical_alignment.js +2 -0
- package/dist/src/bindings/workbook_update_type.d.ts +1 -0
- package/dist/src/bindings/workbook_update_type.js +2 -0
- package/dist/src/client.d.ts +82 -0
- package/dist/src/client.js +1 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.js +1 -0
- package/dist/src/payloads/cell_clear.d.ts +15 -0
- package/dist/src/payloads/cell_clear.js +31 -0
- package/dist/src/payloads/cell_format_brush.d.ts +30 -0
- package/dist/src/payloads/cell_format_brush.js +71 -0
- package/dist/src/payloads/index.d.ts +28 -6
- package/dist/src/payloads/index.js +14 -3
- package/dist/src/payloads/line_format_brush.d.ts +27 -0
- package/dist/src/payloads/line_format_brush.js +63 -0
- package/dist/src/payloads/merge_cells.d.ts +21 -0
- package/dist/src/payloads/merge_cells.js +47 -0
- package/dist/src/payloads/set_cell_alignment.d.ts +19 -0
- package/dist/src/payloads/set_cell_alignment.js +39 -0
- package/dist/src/payloads/set_cell_border.d.ts +49 -0
- package/dist/src/payloads/set_cell_border.js +97 -0
- package/dist/src/payloads/set_cell_font.d.ts +46 -0
- package/dist/src/payloads/set_cell_font.js +91 -0
- package/dist/src/payloads/set_cell_pattern_fill.d.ts +25 -0
- package/dist/src/payloads/set_cell_pattern_fill.js +49 -0
- package/dist/src/payloads/set_line_alignment.d.ts +22 -0
- package/dist/src/payloads/set_line_alignment.js +47 -0
- package/dist/src/payloads/set_line_border.d.ts +49 -0
- package/dist/src/payloads/set_line_border.js +97 -0
- package/dist/src/payloads/set_line_font.d.ts +49 -0
- package/dist/src/payloads/set_line_font.js +99 -0
- package/dist/src/payloads/set_line_pattern_fill.d.ts +28 -0
- package/dist/src/payloads/set_line_pattern_fill.js +57 -0
- package/dist/src/payloads/split_merged_cells.d.ts +15 -0
- package/dist/src/payloads/split_merged_cells.js +31 -0
- package/dist/src/transactions.d.ts +9 -3
- package/dist/src/transactions.js +15 -4
- package/package.json +2 -2
- package/wasm/.gitignore +0 -1
- package/wasm/logisheets_wasm_server.d.ts +0 -255
- package/wasm/logisheets_wasm_server.js +0 -946
- package/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/wasm/logisheets_wasm_server_bg.wasm.d.ts +0 -40
- package/wasm/package.json +0 -14
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export class SetLinePatternFillBuilder {
|
|
2
|
+
_sheetIdx;
|
|
3
|
+
_row;
|
|
4
|
+
_from;
|
|
5
|
+
_to;
|
|
6
|
+
_fgColor;
|
|
7
|
+
_bgColor;
|
|
8
|
+
_pattern;
|
|
9
|
+
sheetIdx(sheetIdx) {
|
|
10
|
+
this._sheetIdx = sheetIdx;
|
|
11
|
+
return this;
|
|
12
|
+
}
|
|
13
|
+
from(v) {
|
|
14
|
+
this._from = v;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
to(v) {
|
|
18
|
+
this._to = v;
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
21
|
+
row(v) {
|
|
22
|
+
this._row = v;
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
fgColor(v) {
|
|
26
|
+
this._fgColor = v;
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
bgColor(v) {
|
|
30
|
+
this._bgColor = v;
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
33
|
+
pattern(v) {
|
|
34
|
+
this._pattern = v;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
build() {
|
|
38
|
+
if (this._sheetIdx === undefined)
|
|
39
|
+
throw Error('sheetIdx is undefined!');
|
|
40
|
+
if (this._from === undefined)
|
|
41
|
+
throw Error('from is undefined!');
|
|
42
|
+
if (this._to === undefined)
|
|
43
|
+
throw Error('to is undefined!');
|
|
44
|
+
if (this._row === undefined)
|
|
45
|
+
throw Error('row is undefined!');
|
|
46
|
+
return {
|
|
47
|
+
type: 'setLinePatternFill',
|
|
48
|
+
sheetIdx: this._sheetIdx,
|
|
49
|
+
from: this._from,
|
|
50
|
+
to: this._to,
|
|
51
|
+
row: this._row,
|
|
52
|
+
fgColor: this._fgColor,
|
|
53
|
+
bgColor: this._bgColor,
|
|
54
|
+
pattern: this._pattern,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface SplitMergedCells {
|
|
2
|
+
readonly type: 'splitMergedCells';
|
|
3
|
+
readonly sheetIdx: number;
|
|
4
|
+
readonly row: number;
|
|
5
|
+
readonly col: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class SplitMergedCellsBuilder {
|
|
8
|
+
private _sheetIdx?;
|
|
9
|
+
private _row?;
|
|
10
|
+
private _col?;
|
|
11
|
+
sheetIdx(sheetIdx: number): this;
|
|
12
|
+
row(row: number): this;
|
|
13
|
+
col(col: number): this;
|
|
14
|
+
build(): SplitMergedCells;
|
|
15
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export class SplitMergedCellsBuilder {
|
|
2
|
+
_sheetIdx;
|
|
3
|
+
_row;
|
|
4
|
+
_col;
|
|
5
|
+
sheetIdx(sheetIdx) {
|
|
6
|
+
this._sheetIdx = sheetIdx;
|
|
7
|
+
return this;
|
|
8
|
+
}
|
|
9
|
+
row(row) {
|
|
10
|
+
this._row = row;
|
|
11
|
+
return this;
|
|
12
|
+
}
|
|
13
|
+
col(col) {
|
|
14
|
+
this._col = col;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
build() {
|
|
18
|
+
if (this._sheetIdx === undefined)
|
|
19
|
+
throw Error('sheetIdx is undefined');
|
|
20
|
+
if (this._row === undefined)
|
|
21
|
+
throw Error('row is undefined');
|
|
22
|
+
if (this._col === undefined)
|
|
23
|
+
throw Error('col is undefined');
|
|
24
|
+
return {
|
|
25
|
+
type: 'splitMergedCells',
|
|
26
|
+
sheetIdx: this._sheetIdx,
|
|
27
|
+
row: this._row,
|
|
28
|
+
col: this._col,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { Payload } from './payloads';
|
|
2
2
|
export declare class Transaction {
|
|
3
|
+
payloads: readonly Payload[];
|
|
3
4
|
readonly undoable: boolean;
|
|
4
|
-
constructor(payloads: Payload[], undoable: boolean);
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
constructor(payloads: readonly Payload[], undoable: boolean);
|
|
6
|
+
}
|
|
7
|
+
export declare class TransactionBuilder {
|
|
8
|
+
payload(p: Payload): this;
|
|
9
|
+
undoable(v: boolean): this;
|
|
10
|
+
build(): Transaction;
|
|
11
|
+
private _payloads;
|
|
12
|
+
private _undoable;
|
|
7
13
|
}
|
package/dist/src/transactions.js
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
export class Transaction {
|
|
2
|
+
payloads;
|
|
2
3
|
undoable;
|
|
3
4
|
constructor(payloads, undoable) {
|
|
4
|
-
this.undoable = undoable;
|
|
5
5
|
this.payloads = payloads;
|
|
6
|
+
this.undoable = undoable;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export class TransactionBuilder {
|
|
10
|
+
payload(p) {
|
|
11
|
+
this._payloads.push(p);
|
|
12
|
+
return this;
|
|
6
13
|
}
|
|
7
|
-
|
|
8
|
-
this.
|
|
14
|
+
undoable(v) {
|
|
15
|
+
this._undoable = v;
|
|
9
16
|
return this;
|
|
10
17
|
}
|
|
11
|
-
|
|
18
|
+
build() {
|
|
19
|
+
return new Transaction(this._payloads, this._undoable);
|
|
20
|
+
}
|
|
21
|
+
_payloads = [];
|
|
22
|
+
_undoable = true;
|
|
12
23
|
}
|
package/package.json
CHANGED
package/wasm/.gitignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
*
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* @returns {number}
|
|
5
|
-
*/
|
|
6
|
-
export function new_workbook(): number;
|
|
7
|
-
/**
|
|
8
|
-
* @param {number} id
|
|
9
|
-
* @param {string} name
|
|
10
|
-
* @param {Uint8Array} buf
|
|
11
|
-
* @returns {number}
|
|
12
|
-
*/
|
|
13
|
-
export function read_file(id: number, name: string, buf: Uint8Array): number;
|
|
14
|
-
/**
|
|
15
|
-
* @param {number} id
|
|
16
|
-
* @returns {any}
|
|
17
|
-
*/
|
|
18
|
-
export function save_file(id: number): any;
|
|
19
|
-
/**
|
|
20
|
-
* @param {number} id
|
|
21
|
-
*/
|
|
22
|
-
export function release(id: number): void;
|
|
23
|
-
/**
|
|
24
|
-
* @param {number} id
|
|
25
|
-
* @returns {boolean}
|
|
26
|
-
*/
|
|
27
|
-
export function undo(id: number): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* @param {number} id
|
|
30
|
-
* @returns {boolean}
|
|
31
|
-
*/
|
|
32
|
-
export function redo(id: number): boolean;
|
|
33
|
-
/**
|
|
34
|
-
* @param {number} id
|
|
35
|
-
*/
|
|
36
|
-
export function transaction_start(id: number): void;
|
|
37
|
-
/**
|
|
38
|
-
* The JSON format of `ActionEffect`.
|
|
39
|
-
* @param {number} id
|
|
40
|
-
* @param {boolean} undoable
|
|
41
|
-
* @returns {any}
|
|
42
|
-
*/
|
|
43
|
-
export function transaction_end(id: number, undoable: boolean): any;
|
|
44
|
-
/**
|
|
45
|
-
* Input: AsyncFuncResult
|
|
46
|
-
* Output: ActionAffect
|
|
47
|
-
* @param {number} id
|
|
48
|
-
* @param {any} result
|
|
49
|
-
* @returns {any}
|
|
50
|
-
*/
|
|
51
|
-
export function input_async_result(id: number, result: any): any;
|
|
52
|
-
/**
|
|
53
|
-
* logisheets_controller::DisplayResponse
|
|
54
|
-
* @param {number} id
|
|
55
|
-
* @param {number} sheet_idx
|
|
56
|
-
* @param {number} version
|
|
57
|
-
* @returns {any}
|
|
58
|
-
*/
|
|
59
|
-
export function get_patches(id: number, sheet_idx: number, version: number): any;
|
|
60
|
-
/**
|
|
61
|
-
* @param {number} id
|
|
62
|
-
* @returns {number}
|
|
63
|
-
*/
|
|
64
|
-
export function get_sheet_count(id: number): number;
|
|
65
|
-
/**
|
|
66
|
-
* @param {number} id
|
|
67
|
-
* @param {number} sheet_idx
|
|
68
|
-
* @param {number} row_idx
|
|
69
|
-
* @returns {any}
|
|
70
|
-
*/
|
|
71
|
-
export function get_row_info(id: number, sheet_idx: number, row_idx: number): any;
|
|
72
|
-
/**
|
|
73
|
-
* @param {number} id
|
|
74
|
-
* @param {number} sheet_idx
|
|
75
|
-
* @param {number} row_idx
|
|
76
|
-
* @returns {any}
|
|
77
|
-
*/
|
|
78
|
-
export function get_row_height(id: number, sheet_idx: number, row_idx: number): any;
|
|
79
|
-
/**
|
|
80
|
-
* @param {number} id
|
|
81
|
-
* @param {number} sheet_idx
|
|
82
|
-
* @param {number} col_idx
|
|
83
|
-
* @returns {any}
|
|
84
|
-
*/
|
|
85
|
-
export function get_col_width(id: number, sheet_idx: number, col_idx: number): any;
|
|
86
|
-
/**
|
|
87
|
-
* @param {number} id
|
|
88
|
-
* @param {number} sheet_idx
|
|
89
|
-
* @param {number} row
|
|
90
|
-
* @param {number} col
|
|
91
|
-
* @returns {any}
|
|
92
|
-
*/
|
|
93
|
-
export function get_cell_info(id: number, sheet_idx: number, row: number, col: number): any;
|
|
94
|
-
/**
|
|
95
|
-
* @param {number} id
|
|
96
|
-
* @param {number} sheet_idx
|
|
97
|
-
* @param {number} col_idx
|
|
98
|
-
* @returns {any}
|
|
99
|
-
*/
|
|
100
|
-
export function get_col_info(id: number, sheet_idx: number, col_idx: number): any;
|
|
101
|
-
/**
|
|
102
|
-
* @param {number} id
|
|
103
|
-
* @param {number} sheet_idx
|
|
104
|
-
* @param {number} row_idx
|
|
105
|
-
* @param {number} col_idx
|
|
106
|
-
* @returns {any}
|
|
107
|
-
*/
|
|
108
|
-
export function get_value(id: number, sheet_idx: number, row_idx: number, col_idx: number): any;
|
|
109
|
-
/**
|
|
110
|
-
* @param {number} id
|
|
111
|
-
* @param {number} sheet_idx
|
|
112
|
-
* @param {number} row_idx
|
|
113
|
-
* @param {number} col_idx
|
|
114
|
-
* @returns {any}
|
|
115
|
-
*/
|
|
116
|
-
export function get_formula(id: number, sheet_idx: number, row_idx: number, col_idx: number): any;
|
|
117
|
-
/**
|
|
118
|
-
* @param {number} id
|
|
119
|
-
* @param {number} sheet_idx
|
|
120
|
-
* @param {number} row_idx
|
|
121
|
-
* @param {number} col_idx
|
|
122
|
-
* @returns {any}
|
|
123
|
-
*/
|
|
124
|
-
export function get_style(id: number, sheet_idx: number, row_idx: number, col_idx: number): any;
|
|
125
|
-
/**
|
|
126
|
-
* @param {number} id
|
|
127
|
-
* @param {number} sheet_idx
|
|
128
|
-
* @param {number} row
|
|
129
|
-
* @param {number} col
|
|
130
|
-
* @param {boolean | undefined} bold
|
|
131
|
-
* @param {boolean | undefined} italic
|
|
132
|
-
* @param {string | undefined} name
|
|
133
|
-
* @param {string | undefined} underline
|
|
134
|
-
* @param {string | undefined} color
|
|
135
|
-
* @param {number | undefined} size
|
|
136
|
-
* @param {boolean | undefined} outline
|
|
137
|
-
* @param {boolean | undefined} shadow
|
|
138
|
-
* @param {boolean | undefined} strike
|
|
139
|
-
* @param {boolean | undefined} condense
|
|
140
|
-
*/
|
|
141
|
-
export function set_font(id: number, sheet_idx: number, row: number, col: number, bold?: boolean, italic?: boolean, name?: string, underline?: string, color?: string, size?: number, outline?: boolean, shadow?: boolean, strike?: boolean, condense?: boolean): void;
|
|
142
|
-
/**
|
|
143
|
-
* @param {number} id
|
|
144
|
-
* @param {number} sheet_idx
|
|
145
|
-
* @param {number} row
|
|
146
|
-
* @param {number} col
|
|
147
|
-
* @param {string | undefined} left_color
|
|
148
|
-
* @param {string | undefined} right_color
|
|
149
|
-
* @param {string | undefined} top_color
|
|
150
|
-
* @param {string | undefined} bottom_color
|
|
151
|
-
* @param {string | undefined} left_border_type
|
|
152
|
-
* @param {string | undefined} right_border_type
|
|
153
|
-
* @param {string | undefined} top_border_type
|
|
154
|
-
* @param {string | undefined} bottom_border_type
|
|
155
|
-
* @param {boolean | undefined} outline
|
|
156
|
-
* @param {boolean | undefined} diagonal_up
|
|
157
|
-
* @param {boolean | undefined} diagonal_down
|
|
158
|
-
*/
|
|
159
|
-
export function set_border(id: number, sheet_idx: number, row: number, col: number, left_color?: string, right_color?: string, top_color?: string, bottom_color?: string, left_border_type?: string, right_border_type?: string, top_border_type?: string, bottom_border_type?: string, outline?: boolean, diagonal_up?: boolean, diagonal_down?: boolean): void;
|
|
160
|
-
/**
|
|
161
|
-
* @param {number} id
|
|
162
|
-
* @param {number} sheet_idx
|
|
163
|
-
* @param {number} row
|
|
164
|
-
* @param {number} col
|
|
165
|
-
* @param {string} content
|
|
166
|
-
*/
|
|
167
|
-
export function cell_input(id: number, sheet_idx: number, row: number, col: number, content: string): void;
|
|
168
|
-
/**
|
|
169
|
-
* @param {number} id
|
|
170
|
-
* @param {number} sheet_idx
|
|
171
|
-
* @param {number} start
|
|
172
|
-
* @param {number} count
|
|
173
|
-
*/
|
|
174
|
-
export function row_insert(id: number, sheet_idx: number, start: number, count: number): void;
|
|
175
|
-
/**
|
|
176
|
-
* @param {number} id
|
|
177
|
-
* @param {number} sheet_idx
|
|
178
|
-
* @param {number} start
|
|
179
|
-
* @param {number} count
|
|
180
|
-
*/
|
|
181
|
-
export function row_delete(id: number, sheet_idx: number, start: number, count: number): void;
|
|
182
|
-
/**
|
|
183
|
-
* @param {number} id
|
|
184
|
-
* @param {number} sheet_idx
|
|
185
|
-
* @param {number} start
|
|
186
|
-
* @param {number} count
|
|
187
|
-
*/
|
|
188
|
-
export function col_insert(id: number, sheet_idx: number, start: number, count: number): void;
|
|
189
|
-
/**
|
|
190
|
-
* @param {number} id
|
|
191
|
-
* @param {number} sheet_idx
|
|
192
|
-
* @param {number} start
|
|
193
|
-
* @param {number} count
|
|
194
|
-
*/
|
|
195
|
-
export function col_delete(id: number, sheet_idx: number, start: number, count: number): void;
|
|
196
|
-
/**
|
|
197
|
-
* @param {number} id
|
|
198
|
-
* @param {number} sheet_idx
|
|
199
|
-
* @param {number} block_id
|
|
200
|
-
* @param {number} master_row
|
|
201
|
-
* @param {number} master_col
|
|
202
|
-
* @param {number} row_cnt
|
|
203
|
-
* @param {number} col_cnt
|
|
204
|
-
*/
|
|
205
|
-
export function create_block(id: number, sheet_idx: number, block_id: number, master_row: number, master_col: number, row_cnt: number, col_cnt: number): void;
|
|
206
|
-
/**
|
|
207
|
-
* @param {number} id
|
|
208
|
-
* @param {number} sheet_idx
|
|
209
|
-
* @param {number} block_id
|
|
210
|
-
* @param {number} row
|
|
211
|
-
* @param {number} col
|
|
212
|
-
*/
|
|
213
|
-
export function move_block(id: number, sheet_idx: number, block_id: number, row: number, col: number): void;
|
|
214
|
-
/**
|
|
215
|
-
* @param {number} id
|
|
216
|
-
* @param {number} sheet_idx
|
|
217
|
-
* @param {number} block_id
|
|
218
|
-
* @param {number} row
|
|
219
|
-
* @param {number} col
|
|
220
|
-
* @param {string} input
|
|
221
|
-
*/
|
|
222
|
-
export function block_input(id: number, sheet_idx: number, block_id: number, row: number, col: number, input: string): void;
|
|
223
|
-
/**
|
|
224
|
-
* @param {number} id
|
|
225
|
-
* @param {number} sheet_idx
|
|
226
|
-
* @param {number} block_id
|
|
227
|
-
* @param {number} start
|
|
228
|
-
* @param {number} cnt
|
|
229
|
-
* @param {boolean} horizontal
|
|
230
|
-
* @param {boolean} insert
|
|
231
|
-
*/
|
|
232
|
-
export function block_line_shift(id: number, sheet_idx: number, block_id: number, start: number, cnt: number, horizontal: boolean, insert: boolean): void;
|
|
233
|
-
/**
|
|
234
|
-
* @param {number} id
|
|
235
|
-
* @param {string} old_name
|
|
236
|
-
* @param {string} new_name
|
|
237
|
-
*/
|
|
238
|
-
export function sheet_rename_by_name(id: number, old_name: string, new_name: string): void;
|
|
239
|
-
/**
|
|
240
|
-
* @param {number} id
|
|
241
|
-
* @param {number} idx
|
|
242
|
-
* @param {string} new_name
|
|
243
|
-
*/
|
|
244
|
-
export function sheet_rename_by_idx(id: number, idx: number, new_name: string): void;
|
|
245
|
-
/**
|
|
246
|
-
* @param {number} id
|
|
247
|
-
* @param {number} idx
|
|
248
|
-
* @param {string} name
|
|
249
|
-
*/
|
|
250
|
-
export function create_sheet(id: number, idx: number, name: string): void;
|
|
251
|
-
/**
|
|
252
|
-
* @param {number} id
|
|
253
|
-
* @param {number} idx
|
|
254
|
-
*/
|
|
255
|
-
export function delete_sheet(id: number, idx: number): void;
|