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.
Files changed (116) hide show
  1. package/dist/src/api/block_manager.d.ts +21 -0
  2. package/dist/src/api/block_manager.js +35 -0
  3. package/dist/src/api/calculator.d.ts +19 -0
  4. package/dist/src/api/calculator.js +46 -0
  5. package/dist/src/api/cell.d.ts +28 -0
  6. package/dist/src/api/cell.js +52 -0
  7. package/dist/src/api/index.d.ts +5 -0
  8. package/dist/src/api/index.js +3 -0
  9. package/dist/src/api/utils.d.ts +3 -1
  10. package/dist/src/api/utils.js +5 -0
  11. package/dist/src/api/workbook.d.ts +30 -8
  12. package/dist/src/api/workbook.js +161 -21
  13. package/dist/src/api/worksheet.d.ts +20 -12
  14. package/dist/src/api/worksheet.js +58 -20
  15. package/dist/src/bindings/alignment.d.ts +6 -0
  16. package/dist/src/bindings/alignment.js +1 -0
  17. package/dist/src/bindings/block_cell_id.d.ts +1 -1
  18. package/dist/src/bindings/cell_clear.d.ts +5 -0
  19. package/dist/src/bindings/cell_clear.js +2 -0
  20. package/dist/src/bindings/cell_format_brush.d.ts +10 -0
  21. package/dist/src/bindings/cell_format_brush.js +2 -0
  22. package/dist/src/bindings/cell_id.d.ts +5 -3
  23. package/dist/src/bindings/cell_info.d.ts +1 -0
  24. package/dist/src/bindings/cell_position.d.ts +4 -0
  25. package/dist/src/bindings/cell_position.js +2 -0
  26. package/dist/src/bindings/cell_style_update.d.ts +7 -0
  27. package/dist/src/bindings/cell_style_update.js +1 -0
  28. package/dist/src/bindings/display_window.d.ts +14 -0
  29. package/dist/src/bindings/display_window.js +1 -0
  30. package/dist/src/bindings/display_window_request.d.ts +7 -0
  31. package/dist/src/bindings/display_window_request.js +2 -0
  32. package/dist/src/bindings/display_window_with_start_point.d.ts +6 -0
  33. package/dist/src/bindings/display_window_with_start_point.js +1 -0
  34. package/dist/src/bindings/edit_action.d.ts +1 -1
  35. package/dist/src/bindings/edit_payload.d.ts +27 -3
  36. package/dist/src/bindings/ephemeral_cell_input.d.ts +5 -0
  37. package/dist/src/bindings/ephemeral_cell_input.js +2 -0
  38. package/dist/src/bindings/ephemeral_cell_style_update.d.ts +6 -0
  39. package/dist/src/bindings/ephemeral_cell_style_update.js +1 -0
  40. package/dist/src/bindings/fill.d.ts +1 -1
  41. package/dist/src/bindings/horizontal_alignment.d.ts +1 -0
  42. package/dist/src/bindings/horizontal_alignment.js +2 -0
  43. package/dist/src/bindings/index.d.ts +19 -17
  44. package/dist/src/bindings/index.js +19 -17
  45. package/dist/src/bindings/line_format_brush.d.ts +9 -0
  46. package/dist/src/bindings/line_format_brush.js +2 -0
  47. package/dist/src/bindings/line_style_update.d.ts +8 -0
  48. package/dist/src/bindings/line_style_update.js +1 -0
  49. package/dist/src/bindings/merge_cell.d.ts +4 -4
  50. package/dist/src/bindings/merge_cells.d.ts +7 -0
  51. package/dist/src/bindings/merge_cells.js +2 -0
  52. package/dist/src/bindings/msg_sequencer_message.d.ts +1 -1
  53. package/dist/src/bindings/msg_user_message.d.ts +1 -1
  54. package/dist/src/bindings/payloads_action.d.ts +1 -0
  55. package/dist/src/bindings/sheet_dimension.d.ts +6 -0
  56. package/dist/src/bindings/sheet_dimension.js +2 -0
  57. package/dist/src/bindings/sheet_info.d.ts +6 -0
  58. package/dist/src/bindings/sheet_info.js +2 -0
  59. package/dist/src/bindings/split_merged_cells.d.ts +5 -0
  60. package/dist/src/bindings/split_merged_cells.js +2 -0
  61. package/dist/src/bindings/st_border_style.d.ts +1 -1
  62. package/dist/src/bindings/st_font_scheme.d.ts +1 -1
  63. package/dist/src/bindings/st_gradient_type.d.ts +1 -1
  64. package/dist/src/bindings/st_pattern_type.d.ts +1 -1
  65. package/dist/src/bindings/st_underline_values.d.ts +1 -1
  66. package/dist/src/bindings/st_vertical_align_run.d.ts +1 -1
  67. package/dist/src/bindings/status_code.d.ts +3 -2
  68. package/dist/src/bindings/status_code.js +0 -1
  69. package/dist/src/bindings/style.d.ts +2 -2
  70. package/dist/src/bindings/style_update_type.d.ts +2 -0
  71. package/dist/src/bindings/value.d.ts +1 -1
  72. package/dist/src/bindings/vertical_alignment.d.ts +1 -0
  73. package/dist/src/bindings/vertical_alignment.js +2 -0
  74. package/dist/src/bindings/workbook_update_type.d.ts +1 -0
  75. package/dist/src/bindings/workbook_update_type.js +2 -0
  76. package/dist/src/client.d.ts +82 -0
  77. package/dist/src/client.js +1 -0
  78. package/dist/src/index.d.ts +2 -1
  79. package/dist/src/index.js +1 -0
  80. package/dist/src/payloads/cell_clear.d.ts +15 -0
  81. package/dist/src/payloads/cell_clear.js +31 -0
  82. package/dist/src/payloads/cell_format_brush.d.ts +30 -0
  83. package/dist/src/payloads/cell_format_brush.js +71 -0
  84. package/dist/src/payloads/index.d.ts +28 -6
  85. package/dist/src/payloads/index.js +14 -3
  86. package/dist/src/payloads/line_format_brush.d.ts +27 -0
  87. package/dist/src/payloads/line_format_brush.js +63 -0
  88. package/dist/src/payloads/merge_cells.d.ts +21 -0
  89. package/dist/src/payloads/merge_cells.js +47 -0
  90. package/dist/src/payloads/set_cell_alignment.d.ts +19 -0
  91. package/dist/src/payloads/set_cell_alignment.js +39 -0
  92. package/dist/src/payloads/set_cell_border.d.ts +49 -0
  93. package/dist/src/payloads/set_cell_border.js +97 -0
  94. package/dist/src/payloads/set_cell_font.d.ts +46 -0
  95. package/dist/src/payloads/set_cell_font.js +91 -0
  96. package/dist/src/payloads/set_cell_pattern_fill.d.ts +25 -0
  97. package/dist/src/payloads/set_cell_pattern_fill.js +49 -0
  98. package/dist/src/payloads/set_line_alignment.d.ts +22 -0
  99. package/dist/src/payloads/set_line_alignment.js +47 -0
  100. package/dist/src/payloads/set_line_border.d.ts +49 -0
  101. package/dist/src/payloads/set_line_border.js +97 -0
  102. package/dist/src/payloads/set_line_font.d.ts +49 -0
  103. package/dist/src/payloads/set_line_font.js +99 -0
  104. package/dist/src/payloads/set_line_pattern_fill.d.ts +28 -0
  105. package/dist/src/payloads/set_line_pattern_fill.js +57 -0
  106. package/dist/src/payloads/split_merged_cells.d.ts +15 -0
  107. package/dist/src/payloads/split_merged_cells.js +31 -0
  108. package/dist/src/transactions.d.ts +9 -3
  109. package/dist/src/transactions.js +15 -4
  110. package/package.json +2 -2
  111. package/wasm/.gitignore +0 -1
  112. package/wasm/logisheets_wasm_server.d.ts +0 -255
  113. package/wasm/logisheets_wasm_server.js +0 -946
  114. package/wasm/logisheets_wasm_server_bg.wasm +0 -0
  115. package/wasm/logisheets_wasm_server_bg.wasm.d.ts +0 -40
  116. package/wasm/package.json +0 -14
@@ -0,0 +1,97 @@
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
+ type: 'setCellBorder',
81
+ sheetIdx: this._sheetIdx,
82
+ row: this._row,
83
+ col: this._col,
84
+ leftColor: this._leftColor,
85
+ rightColor: this._rightColor,
86
+ topColor: this._topColor,
87
+ bottomColor: this._bottomColor,
88
+ leftBorderType: this._leftBorderType,
89
+ rightBorderType: this._rightBorderType,
90
+ topBorderType: this._topBorderType,
91
+ bottomBorderType: this._bottomBorderType,
92
+ outline: this._outline,
93
+ diagonalUp: this._diagonalUp,
94
+ diagonalDown: this._diagonalDown,
95
+ };
96
+ }
97
+ }
@@ -0,0 +1,46 @@
1
+ import { StUnderlineValues as UnderlineType } from '../bindings';
2
+ export interface SetCellFont {
3
+ readonly type: 'setCellFont';
4
+ readonly sheetIdx: number;
5
+ readonly row: number;
6
+ readonly col: number;
7
+ readonly bold?: boolean;
8
+ readonly italic?: boolean;
9
+ readonly name?: string;
10
+ readonly underline?: UnderlineType;
11
+ readonly color?: string;
12
+ readonly size?: number;
13
+ readonly outline?: boolean;
14
+ readonly shadow?: boolean;
15
+ readonly strike?: boolean;
16
+ readonly condense?: boolean;
17
+ }
18
+ export declare class SetCellFontBuilder {
19
+ private _sheetIdx?;
20
+ private _row?;
21
+ private _col?;
22
+ private _bold?;
23
+ private _italic?;
24
+ private _name?;
25
+ private _underline?;
26
+ private _color?;
27
+ private _size?;
28
+ private _outline?;
29
+ private _shadow?;
30
+ private _strike?;
31
+ private _condense?;
32
+ sheetIdx(sheetIdx: number): this;
33
+ row(row: number): this;
34
+ col(col: number): this;
35
+ bold(bold: boolean): this;
36
+ italic(italic: boolean): this;
37
+ name(name: string): this;
38
+ underline(underline: UnderlineType): this;
39
+ color(color: string): this;
40
+ size(size: number): this;
41
+ outline(outline: boolean): this;
42
+ shadow(shadow: boolean): this;
43
+ strike(strike: boolean): this;
44
+ condense(condense: boolean): this;
45
+ build(): SetCellFont;
46
+ }
@@ -0,0 +1,91 @@
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
+ type: 'setCellFont',
76
+ sheetIdx: this._sheetIdx,
77
+ row: this._row,
78
+ col: this._col,
79
+ bold: this._bold,
80
+ italic: this._italic,
81
+ underline: this._underline,
82
+ color: this._color,
83
+ size: this._size,
84
+ outline: this._outline,
85
+ shadow: this._shadow,
86
+ strike: this._strike,
87
+ condense: this._condense,
88
+ name: this._name,
89
+ };
90
+ }
91
+ }
@@ -0,0 +1,25 @@
1
+ import { StPatternType } from '../bindings';
2
+ export interface SetCellPatternFill {
3
+ readonly type: 'setCellPatternFill';
4
+ readonly sheetIdx: number;
5
+ readonly row: number;
6
+ readonly col: number;
7
+ readonly fgColor?: string;
8
+ readonly bgColor?: string;
9
+ readonly pattern?: StPatternType;
10
+ }
11
+ export declare class SetCellPatternFillBuilder {
12
+ private _sheetIdx?;
13
+ private _row?;
14
+ private _col?;
15
+ private _fgColor?;
16
+ private _bgColor?;
17
+ private _pattern?;
18
+ sheetIdx(sheetIdx: number): this;
19
+ row(row: number): this;
20
+ col(col: number): this;
21
+ fgColor(c: string): this;
22
+ bgColor(c: string): this;
23
+ pattern(p: StPatternType): this;
24
+ build(): SetCellPatternFill;
25
+ }
@@ -0,0 +1,49 @@
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
+ type: 'setCellPatternFill',
41
+ sheetIdx: this._sheetIdx,
42
+ row: this._row,
43
+ col: this._col,
44
+ fgColor: this._fgColor,
45
+ bgColor: this._bgColor,
46
+ pattern: this._pattern,
47
+ };
48
+ }
49
+ }
@@ -0,0 +1,22 @@
1
+ import { Alignment } from '../bindings';
2
+ export interface SetLineAlignment {
3
+ readonly type: 'setLineAlignment';
4
+ readonly sheetIdx: number;
5
+ readonly row: boolean;
6
+ readonly from: number;
7
+ readonly to: number;
8
+ readonly alignment: Alignment;
9
+ }
10
+ export declare class SetLineAlignmentBuilder {
11
+ private _sheetIdx?;
12
+ private _row?;
13
+ private _from?;
14
+ private _to?;
15
+ private _alignment?;
16
+ sheetIdx(sheetIdx: number): this;
17
+ from(v: number): this;
18
+ to(v: number): this;
19
+ row(v: boolean): this;
20
+ alignment(v: Alignment): this;
21
+ build(): SetLineAlignment;
22
+ }
@@ -0,0 +1,47 @@
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
+ type: 'setLineAlignment',
40
+ sheetIdx: this._sheetIdx,
41
+ from: this._from,
42
+ to: this._to,
43
+ row: this._row,
44
+ alignment: this._alignment,
45
+ };
46
+ }
47
+ }
@@ -0,0 +1,49 @@
1
+ import { StBorderStyle } from '../bindings';
2
+ export interface SetLineBorder {
3
+ readonly type: 'setLineBorder';
4
+ readonly sheetIdx: number;
5
+ readonly line: number;
6
+ readonly row: boolean;
7
+ readonly leftColor?: string;
8
+ readonly rightColor?: string;
9
+ readonly topColor?: string;
10
+ readonly bottomColor?: string;
11
+ readonly leftBorderType?: StBorderStyle;
12
+ readonly rightBorderType?: StBorderStyle;
13
+ readonly topBorderType?: StBorderStyle;
14
+ readonly bottomBorderType?: StBorderStyle;
15
+ readonly outline?: boolean;
16
+ readonly diagonalUp?: boolean;
17
+ readonly diagonalDown?: boolean;
18
+ }
19
+ export declare class SetLineBorderBuilder {
20
+ private _sheetIdx?;
21
+ private _row?;
22
+ private _line?;
23
+ private _leftColor?;
24
+ private _rightColor?;
25
+ private _topColor?;
26
+ private _bottomColor?;
27
+ private _leftBorderType?;
28
+ private _rightBorderType?;
29
+ private _topBorderType?;
30
+ private _bottomBorderType?;
31
+ private _outline?;
32
+ private _diagonalUp?;
33
+ private _diagonalDown?;
34
+ sheetIdx(sheetIdx: number): this;
35
+ row(v: boolean): this;
36
+ line(v: number): this;
37
+ leftColor(v: string): this;
38
+ rightColor(v: string): this;
39
+ topColor(v: string): this;
40
+ bottomColor(v: string): this;
41
+ leftBorderType(v: StBorderStyle): this;
42
+ rightBorderType(v: StBorderStyle): this;
43
+ topBorderType(v: StBorderStyle): this;
44
+ bottomBorderType(v: StBorderStyle): this;
45
+ outline(v: boolean): this;
46
+ diagonalUp(v: boolean): this;
47
+ diagonalDown(v: boolean): this;
48
+ build(): SetLineBorder;
49
+ }
@@ -0,0 +1,97 @@
1
+ export class SetLineBorderBuilder {
2
+ _sheetIdx;
3
+ _row;
4
+ _line;
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(v) {
21
+ this._row = v;
22
+ return this;
23
+ }
24
+ line(v) {
25
+ this._line = v;
26
+ return this;
27
+ }
28
+ leftColor(v) {
29
+ this._leftColor = v;
30
+ return this;
31
+ }
32
+ rightColor(v) {
33
+ this._rightColor = v;
34
+ return this;
35
+ }
36
+ topColor(v) {
37
+ this._topColor = v;
38
+ return this;
39
+ }
40
+ bottomColor(v) {
41
+ this._bottomColor = v;
42
+ return this;
43
+ }
44
+ leftBorderType(v) {
45
+ this._leftBorderType = v;
46
+ return this;
47
+ }
48
+ rightBorderType(v) {
49
+ this._rightBorderType = v;
50
+ return this;
51
+ }
52
+ topBorderType(v) {
53
+ this._topBorderType = v;
54
+ return this;
55
+ }
56
+ bottomBorderType(v) {
57
+ this._bottomBorderType = v;
58
+ return this;
59
+ }
60
+ outline(v) {
61
+ this._outline = v;
62
+ return this;
63
+ }
64
+ diagonalUp(v) {
65
+ this._diagonalUp = v;
66
+ return this;
67
+ }
68
+ diagonalDown(v) {
69
+ this._diagonalDown = v;
70
+ return this;
71
+ }
72
+ build() {
73
+ if (this._sheetIdx === undefined)
74
+ throw Error('sheetIdx is undefined!');
75
+ if (this._line === undefined)
76
+ throw Error('line is undefined');
77
+ if (this._row === undefined)
78
+ throw Error('row is undefined');
79
+ return {
80
+ type: 'setLineBorder',
81
+ sheetIdx: this._sheetIdx,
82
+ line: this._line,
83
+ row: this._row,
84
+ leftColor: this._leftColor,
85
+ rightColor: this._rightColor,
86
+ topColor: this._topColor,
87
+ bottomColor: this._bottomColor,
88
+ leftBorderType: this._leftBorderType,
89
+ rightBorderType: this._rightBorderType,
90
+ topBorderType: this._topBorderType,
91
+ bottomBorderType: this._bottomBorderType,
92
+ outline: this._outline,
93
+ diagonalUp: this._diagonalUp,
94
+ diagonalDown: this._diagonalDown,
95
+ };
96
+ }
97
+ }
@@ -0,0 +1,49 @@
1
+ import { StUnderlineValues as UnderlineType } from '../bindings';
2
+ export interface SetLineFont {
3
+ readonly type: 'setLineFont';
4
+ readonly sheetIdx: number;
5
+ readonly row: boolean;
6
+ readonly from: number;
7
+ readonly to: number;
8
+ readonly bold?: boolean;
9
+ readonly italic?: boolean;
10
+ readonly name?: string;
11
+ readonly underline?: UnderlineType;
12
+ readonly color?: string;
13
+ readonly size?: number;
14
+ readonly outline?: boolean;
15
+ readonly shadow?: boolean;
16
+ readonly strike?: boolean;
17
+ readonly condense?: boolean;
18
+ }
19
+ export declare class SetLineFontBuilder {
20
+ private _sheetIdx?;
21
+ private _row?;
22
+ private _from?;
23
+ private _to?;
24
+ private _bold?;
25
+ private _italic?;
26
+ private _name?;
27
+ private _underline?;
28
+ private _color?;
29
+ private _size?;
30
+ private _outline?;
31
+ private _shadow?;
32
+ private _strike?;
33
+ private _condense?;
34
+ sheetIdx(sheetIdx: number): this;
35
+ from(v: number): this;
36
+ to(v: number): this;
37
+ row(v: boolean): this;
38
+ bold(bold: boolean): this;
39
+ italic(italic: boolean): this;
40
+ name(name: string): this;
41
+ underline(underline: UnderlineType): this;
42
+ color(color: string): this;
43
+ size(size: number): this;
44
+ outline(outline: boolean): this;
45
+ shadow(shadow: boolean): this;
46
+ strike(strike: boolean): this;
47
+ condense(condense: boolean): this;
48
+ build(): SetLineFont;
49
+ }
@@ -0,0 +1,99 @@
1
+ export class SetLineFontBuilder {
2
+ _sheetIdx;
3
+ _row;
4
+ _from;
5
+ _to;
6
+ _bold;
7
+ _italic;
8
+ _name;
9
+ _underline;
10
+ _color;
11
+ _size;
12
+ _outline;
13
+ _shadow;
14
+ _strike;
15
+ _condense;
16
+ sheetIdx(sheetIdx) {
17
+ this._sheetIdx = sheetIdx;
18
+ return this;
19
+ }
20
+ from(v) {
21
+ this._from = v;
22
+ return this;
23
+ }
24
+ to(v) {
25
+ this._to = v;
26
+ return this;
27
+ }
28
+ row(v) {
29
+ this._row = v;
30
+ return this;
31
+ }
32
+ bold(bold) {
33
+ this._bold = bold;
34
+ return this;
35
+ }
36
+ italic(italic) {
37
+ this._italic = italic;
38
+ return this;
39
+ }
40
+ name(name) {
41
+ this._name = name;
42
+ return this;
43
+ }
44
+ underline(underline) {
45
+ this._underline = underline;
46
+ return this;
47
+ }
48
+ color(color) {
49
+ this._color = color;
50
+ return this;
51
+ }
52
+ size(size) {
53
+ this._size = size;
54
+ return this;
55
+ }
56
+ outline(outline) {
57
+ this._outline = outline;
58
+ return this;
59
+ }
60
+ shadow(shadow) {
61
+ this._shadow = shadow;
62
+ return this;
63
+ }
64
+ strike(strike) {
65
+ this._strike = strike;
66
+ return this;
67
+ }
68
+ condense(condense) {
69
+ this._condense = condense;
70
+ return this;
71
+ }
72
+ build() {
73
+ if (this._sheetIdx === undefined)
74
+ throw Error('sheetIdx is undefined!');
75
+ if (this._from === undefined)
76
+ throw Error('from is undefined!');
77
+ if (this._to === undefined)
78
+ throw Error('to is undefined!');
79
+ if (this._row === undefined)
80
+ throw Error('row is undefined!');
81
+ return {
82
+ type: 'setLineFont',
83
+ sheetIdx: this._sheetIdx,
84
+ from: this._from,
85
+ to: this._to,
86
+ row: this._row,
87
+ bold: this._bold,
88
+ italic: this._italic,
89
+ underline: this._underline,
90
+ color: this._color,
91
+ size: this._size,
92
+ outline: this._outline,
93
+ shadow: this._shadow,
94
+ strike: this._strike,
95
+ condense: this._condense,
96
+ name: this._name,
97
+ };
98
+ }
99
+ }
@@ -0,0 +1,28 @@
1
+ import { StPatternType } from '../bindings';
2
+ export interface SetLinePatternFill {
3
+ readonly type: 'setLinePatternFill';
4
+ readonly sheetIdx: number;
5
+ readonly row: boolean;
6
+ readonly from: number;
7
+ readonly to: number;
8
+ readonly fgColor?: string;
9
+ readonly bgColor?: string;
10
+ readonly pattern?: StPatternType;
11
+ }
12
+ export declare class SetLinePatternFillBuilder {
13
+ private _sheetIdx?;
14
+ private _row?;
15
+ private _from?;
16
+ private _to?;
17
+ private _fgColor?;
18
+ private _bgColor?;
19
+ private _pattern?;
20
+ sheetIdx(sheetIdx: number): this;
21
+ from(v: number): this;
22
+ to(v: number): this;
23
+ row(v: boolean): this;
24
+ fgColor(v: string): this;
25
+ bgColor(v: string): this;
26
+ pattern(v: StPatternType): this;
27
+ build(): SetLinePatternFill;
28
+ }