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
@@ -1,5 +1,5 @@
1
1
  export interface BlockCellId {
2
- block_id: number;
2
+ blockId: number;
3
3
  row: number;
4
4
  col: number;
5
5
  }
@@ -0,0 +1,5 @@
1
+ export interface CellClear {
2
+ sheetIdx: number;
3
+ row: number;
4
+ col: number;
5
+ }
@@ -0,0 +1,2 @@
1
+ // DO NOT EDIT. CODE GENERATED BY gents.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ export interface CellFormatBrush {
2
+ srcSheetIdx: number;
3
+ srcRow: number;
4
+ srcCol: number;
5
+ dstSheetIdx: number;
6
+ dstRowStart: number;
7
+ dstColStart: number;
8
+ dstRowEnd: number;
9
+ dstColEnd: number;
10
+ }
@@ -0,0 +1,2 @@
1
+ // DO NOT EDIT. CODE GENERATED BY gents.
2
+ export {};
@@ -1,7 +1,9 @@
1
1
  import { BlockCellId } from './block_cell_id';
2
2
  import { NormalCellId } from './normal_cell_id';
3
- export declare type CellId = {
4
- NormalCell: NormalCellId;
3
+ export type CellId = {
4
+ normalCell: NormalCellId;
5
5
  } | {
6
- BlockCell: BlockCellId;
6
+ blockCell: BlockCellId;
7
+ } | {
8
+ ephemeralCell: number;
7
9
  };
@@ -4,4 +4,5 @@ export interface CellInfo {
4
4
  value: Value;
5
5
  formula: string;
6
6
  style: Style;
7
+ blockId?: number;
7
8
  }
@@ -0,0 +1,4 @@
1
+ export interface CellPosition {
2
+ x: number;
3
+ y: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ // DO NOT EDIT. CODE GENERATED BY gents.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ import { StyleUpdateType } from './style_update_type';
2
+ export interface CellStyleUpdate {
3
+ sheetIdx: number;
4
+ row: number;
5
+ col: number;
6
+ ty: StyleUpdateType;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import { BlockInfo } from './block_info';
2
+ import { CellInfo } from './cell_info';
3
+ import { ColInfo } from './col_info';
4
+ import { Comment } from './comment';
5
+ import { MergeCell } from './merge_cell';
6
+ import { RowInfo } from './row_info';
7
+ export interface DisplayWindow {
8
+ cells: readonly CellInfo[];
9
+ rows: readonly RowInfo[];
10
+ cols: readonly ColInfo[];
11
+ comments: readonly Comment[];
12
+ mergeCells: readonly MergeCell[];
13
+ blocks: readonly BlockInfo[];
14
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export interface DisplayWindowRequest {
2
+ sheetIdx: number;
3
+ height: number;
4
+ width: number;
5
+ startX: number;
6
+ startY: number;
7
+ }
@@ -0,0 +1,2 @@
1
+ // DO NOT EDIT. CODE GENERATED BY gents.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ import { DisplayWindow } from './display_window';
2
+ export interface DisplayWindowWithStartPoint {
3
+ window: DisplayWindow;
4
+ startX: number;
5
+ startY: number;
6
+ }
@@ -1,6 +1,6 @@
1
1
  import { PayloadsAction } from './payloads_action';
2
2
  import { RecalcCell } from './recalc_cell';
3
- export declare type EditAction = 'undo' | 'redo' | {
3
+ export type EditAction = 'undo' | 'redo' | {
4
4
  payloads: PayloadsAction;
5
5
  } | {
6
6
  recalc: readonly RecalcCell[];
@@ -1,6 +1,9 @@
1
1
  import { BlockInput } from './block_input';
2
2
  import { BlockStyleUpdate } from './block_style_update';
3
+ import { CellClear } from './cell_clear';
4
+ import { CellFormatBrush } from './cell_format_brush';
3
5
  import { CellInput } from './cell_input';
6
+ import { CellStyleUpdate } from './cell_style_update';
4
7
  import { CreateBlock } from './create_block';
5
8
  import { CreateSheet } from './create_sheet';
6
9
  import { DeleteColsInBlock } from './delete_cols_in_block';
@@ -8,18 +11,23 @@ import { DeleteCols } from './delete_cols';
8
11
  import { DeleteRowsInBlock } from './delete_rows_in_block';
9
12
  import { DeleteRows } from './delete_rows';
10
13
  import { DeleteSheet } from './delete_sheet';
14
+ import { EphemeralCellInput } from './ephemeral_cell_input';
15
+ import { EphemeralCellStyleUpdate } from './ephemeral_cell_style_update';
11
16
  import { InsertColsInBlock } from './insert_cols_in_block';
12
17
  import { InsertCols } from './insert_cols';
13
18
  import { InsertRowsInBlock } from './insert_rows_in_block';
14
19
  import { InsertRows } from './insert_rows';
20
+ import { LineFormatBrush } from './line_format_brush';
21
+ import { LineStyleUpdate } from './line_style_update';
22
+ import { MergeCells } from './merge_cells';
15
23
  import { MoveBlock } from './move_block';
16
24
  import { RemoveBlock } from './remove_block';
17
25
  import { SetColWidth } from './set_col_width';
18
26
  import { SetRowHeight } from './set_row_height';
19
27
  import { SetVisible } from './set_visible';
20
28
  import { SheetRename } from './sheet_rename';
21
- import { StyleUpdate } from './style_update';
22
- export declare type EditPayload = {
29
+ import { SplitMergedCells } from './split_merged_cells';
30
+ export type EditPayload = {
23
31
  blockInput: BlockInput;
24
32
  } | {
25
33
  moveBlock: MoveBlock;
@@ -28,17 +36,33 @@ export declare type EditPayload = {
28
36
  } | {
29
37
  createBlock: CreateBlock;
30
38
  } | {
31
- styleUpdate: StyleUpdate;
39
+ cellStyleUpdate: CellStyleUpdate;
40
+ } | {
41
+ ephemeralCellStyleUpdate: EphemeralCellStyleUpdate;
42
+ } | {
43
+ lineStyleUpdate: LineStyleUpdate;
32
44
  } | {
33
45
  blockStyleUpdate: BlockStyleUpdate;
46
+ } | {
47
+ cellFormatBrush: CellFormatBrush;
48
+ } | {
49
+ lineFormatBrush: LineFormatBrush;
34
50
  } | {
35
51
  cellInput: CellInput;
52
+ } | {
53
+ ephemeralCellInput: EphemeralCellInput;
54
+ } | {
55
+ cellClear: CellClear;
36
56
  } | {
37
57
  setColWidth: SetColWidth;
38
58
  } | {
39
59
  setRowHeight: SetRowHeight;
40
60
  } | {
41
61
  setVisible: SetVisible;
62
+ } | {
63
+ mergeCells: MergeCells;
64
+ } | {
65
+ splitMergedCells: SplitMergedCells;
42
66
  } | {
43
67
  sheetRename: SheetRename;
44
68
  } | {
@@ -0,0 +1,5 @@
1
+ export interface EphemeralCellInput {
2
+ sheetIdx: number;
3
+ id: number;
4
+ content: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ // DO NOT EDIT. CODE GENERATED BY gents.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ import { StyleUpdateType } from './style_update_type';
2
+ export interface EphemeralCellStyleUpdate {
3
+ sheetIdx: number;
4
+ id: number;
5
+ ty: StyleUpdateType;
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { GradientFill } from './gradient_fill';
2
2
  import { PatternFill } from './pattern_fill';
3
- export declare type Fill = {
3
+ export type Fill = {
4
4
  patternFill: PatternFill;
5
5
  } | {
6
6
  gradientFill: GradientFill;
@@ -0,0 +1 @@
1
+ export type HorizontalAlignment = 'general' | 'left' | 'center' | 'right' | 'fill' | 'justify' | 'centerContinuous' | 'distributed';
@@ -0,0 +1,2 @@
1
+ // DO NOT EDIT. CODE GENERATED BY gents.
2
+ export {};
@@ -1,4 +1,5 @@
1
1
  export * from './action_effect';
2
+ export * from './alignment';
2
3
  export * from './async_func_result';
3
4
  export * from './block_cell_id';
4
5
  export * from './block_info';
@@ -6,13 +7,14 @@ export * from './block_input';
6
7
  export * from './block_style_update';
7
8
  export * from './border';
8
9
  export * from './border_pr';
9
- export * from './cell_alignment';
10
- export * from './cell_formula_value';
10
+ export * from './cell_clear';
11
+ export * from './cell_format_brush';
11
12
  export * from './cell_id';
12
13
  export * from './cell_info';
13
14
  export * from './cell_input';
15
+ export * from './cell_position';
14
16
  export * from './cell_protection';
15
- export * from './cell_style';
17
+ export * from './cell_style_update';
16
18
  export * from './col_info';
17
19
  export * from './color';
18
20
  export * from './comment';
@@ -23,11 +25,13 @@ export * from './delete_cols_in_block';
23
25
  export * from './delete_rows';
24
26
  export * from './delete_rows_in_block';
25
27
  export * from './delete_sheet';
26
- export * from './display_patch';
27
- export * from './display_request';
28
- export * from './display_response';
28
+ export * from './display_window';
29
+ export * from './display_window_request';
30
+ export * from './display_window_with_start_point';
29
31
  export * from './edit_action';
30
32
  export * from './edit_payload';
33
+ export * from './ephemeral_cell_input';
34
+ export * from './ephemeral_cell_style_update';
31
35
  export * from './error_message';
32
36
  export * from './fill';
33
37
  export * from './font';
@@ -36,11 +40,15 @@ export * from './font_name';
36
40
  export * from './font_scheme';
37
41
  export * from './gradient_fill';
38
42
  export * from './gradient_stop';
43
+ export * from './horizontal_alignment';
39
44
  export * from './insert_cols';
40
45
  export * from './insert_cols_in_block';
41
46
  export * from './insert_rows';
42
47
  export * from './insert_rows_in_block';
48
+ export * from './line_format_brush';
49
+ export * from './line_style_update';
43
50
  export * from './merge_cell';
51
+ export * from './merge_cells';
44
52
  export * from './move_block';
45
53
  export * from './msg_edit';
46
54
  export * from './msg_join';
@@ -58,29 +66,23 @@ export * from './row_info';
58
66
  export * from './set_col_width';
59
67
  export * from './set_row_height';
60
68
  export * from './set_visible';
61
- export * from './sheet_blocks';
62
- export * from './sheet_col_info';
63
- export * from './sheet_comments';
64
- export * from './sheet_merge_cells';
65
- export * from './sheet_names';
69
+ export * from './sheet_dimension';
70
+ export * from './sheet_info';
66
71
  export * from './sheet_rename';
67
- export * from './sheet_row_info';
68
- export * from './sheet_styles';
69
- export * from './sheet_values';
72
+ export * from './split_merged_cells';
70
73
  export * from './st_border_style';
71
74
  export * from './st_font_scheme';
72
75
  export * from './st_gradient_type';
73
- export * from './st_horizontal_alignment';
74
76
  export * from './st_pattern_type';
75
77
  export * from './st_underline_values';
76
78
  export * from './st_vertical_align_run';
77
- export * from './st_vertical_alignment';
78
79
  export * from './status_code';
79
80
  export * from './style';
80
- export * from './style_update';
81
81
  export * from './style_update_type';
82
82
  export * from './task';
83
83
  export * from './underline_property';
84
84
  export * from './value';
85
85
  export * from './vertical_align_font_property';
86
+ export * from './vertical_alignment';
86
87
  export * from './workbook_file';
88
+ export * from './workbook_update_type';
@@ -1,5 +1,6 @@
1
1
  // DO NOT EDIT. CODE GENERATED BY gents.
2
2
  export * from './action_effect';
3
+ export * from './alignment';
3
4
  export * from './async_func_result';
4
5
  export * from './block_cell_id';
5
6
  export * from './block_info';
@@ -7,13 +8,14 @@ export * from './block_input';
7
8
  export * from './block_style_update';
8
9
  export * from './border';
9
10
  export * from './border_pr';
10
- export * from './cell_alignment';
11
- export * from './cell_formula_value';
11
+ export * from './cell_clear';
12
+ export * from './cell_format_brush';
12
13
  export * from './cell_id';
13
14
  export * from './cell_info';
14
15
  export * from './cell_input';
16
+ export * from './cell_position';
15
17
  export * from './cell_protection';
16
- export * from './cell_style';
18
+ export * from './cell_style_update';
17
19
  export * from './col_info';
18
20
  export * from './color';
19
21
  export * from './comment';
@@ -24,11 +26,13 @@ export * from './delete_cols_in_block';
24
26
  export * from './delete_rows';
25
27
  export * from './delete_rows_in_block';
26
28
  export * from './delete_sheet';
27
- export * from './display_patch';
28
- export * from './display_request';
29
- export * from './display_response';
29
+ export * from './display_window';
30
+ export * from './display_window_request';
31
+ export * from './display_window_with_start_point';
30
32
  export * from './edit_action';
31
33
  export * from './edit_payload';
34
+ export * from './ephemeral_cell_input';
35
+ export * from './ephemeral_cell_style_update';
32
36
  export * from './error_message';
33
37
  export * from './fill';
34
38
  export * from './font';
@@ -37,11 +41,15 @@ export * from './font_name';
37
41
  export * from './font_scheme';
38
42
  export * from './gradient_fill';
39
43
  export * from './gradient_stop';
44
+ export * from './horizontal_alignment';
40
45
  export * from './insert_cols';
41
46
  export * from './insert_cols_in_block';
42
47
  export * from './insert_rows';
43
48
  export * from './insert_rows_in_block';
49
+ export * from './line_format_brush';
50
+ export * from './line_style_update';
44
51
  export * from './merge_cell';
52
+ export * from './merge_cells';
45
53
  export * from './move_block';
46
54
  export * from './msg_edit';
47
55
  export * from './msg_join';
@@ -59,29 +67,23 @@ export * from './row_info';
59
67
  export * from './set_col_width';
60
68
  export * from './set_row_height';
61
69
  export * from './set_visible';
62
- export * from './sheet_blocks';
63
- export * from './sheet_col_info';
64
- export * from './sheet_comments';
65
- export * from './sheet_merge_cells';
66
- export * from './sheet_names';
70
+ export * from './sheet_dimension';
71
+ export * from './sheet_info';
67
72
  export * from './sheet_rename';
68
- export * from './sheet_row_info';
69
- export * from './sheet_styles';
70
- export * from './sheet_values';
73
+ export * from './split_merged_cells';
71
74
  export * from './st_border_style';
72
75
  export * from './st_font_scheme';
73
76
  export * from './st_gradient_type';
74
- export * from './st_horizontal_alignment';
75
77
  export * from './st_pattern_type';
76
78
  export * from './st_underline_values';
77
79
  export * from './st_vertical_align_run';
78
- export * from './st_vertical_alignment';
79
80
  export * from './status_code';
80
81
  export * from './style';
81
- export * from './style_update';
82
82
  export * from './style_update_type';
83
83
  export * from './task';
84
84
  export * from './underline_property';
85
85
  export * from './value';
86
86
  export * from './vertical_align_font_property';
87
+ export * from './vertical_alignment';
87
88
  export * from './workbook_file';
89
+ export * from './workbook_update_type';
@@ -0,0 +1,9 @@
1
+ export interface LineFormatBrush {
2
+ srcSheetIdx: number;
3
+ srcRow: number;
4
+ srcCol: number;
5
+ dstSheetIdx: number;
6
+ row: boolean;
7
+ from: number;
8
+ to: number;
9
+ }
@@ -0,0 +1,2 @@
1
+ // DO NOT EDIT. CODE GENERATED BY gents.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ import { StyleUpdateType } from './style_update_type';
2
+ export interface LineStyleUpdate {
3
+ sheetIdx: number;
4
+ from: number;
5
+ to: number;
6
+ ty: StyleUpdateType;
7
+ row: boolean;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
1
  export interface MergeCell {
2
- rowStart: number;
3
- colStart: number;
4
- rowEnd: number;
5
- colEnd: number;
2
+ startRow: number;
3
+ startCol: number;
4
+ endRow: number;
5
+ endCol: number;
6
6
  }
@@ -0,0 +1,7 @@
1
+ export interface MergeCells {
2
+ sheetIdx: number;
3
+ startRow: number;
4
+ startCol: number;
5
+ endRow: number;
6
+ endCol: number;
7
+ }
@@ -0,0 +1,2 @@
1
+ // DO NOT EDIT. CODE GENERATED BY gents.
2
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { SequencerActionInvalidMessage } from './msg_sequencer_action_invalid_message';
2
2
  import { SequencerActionMessage } from './msg_sequencer_action_message';
3
3
  import { SequencerInitWorkbook } from './msg_sequencer_init_workbook';
4
- export declare type SequencerMessage = {
4
+ export type SequencerMessage = {
5
5
  invalidAction: SequencerActionInvalidMessage;
6
6
  } | {
7
7
  action: SequencerActionMessage;
@@ -1,6 +1,6 @@
1
1
  import { Edit } from './msg_edit';
2
2
  import { Join } from './msg_join';
3
- export declare type UserMessage = {
3
+ export type UserMessage = {
4
4
  join: Join;
5
5
  } | {
6
6
  edit: Edit;
@@ -2,4 +2,5 @@ import { EditPayload } from './edit_payload';
2
2
  export interface PayloadsAction {
3
3
  payloads: readonly EditPayload[];
4
4
  undoable: boolean;
5
+ init: boolean;
5
6
  }
@@ -0,0 +1,6 @@
1
+ export interface SheetDimension {
2
+ maxRow: number;
3
+ maxCol: number;
4
+ height: number;
5
+ width: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ // DO NOT EDIT. CODE GENERATED BY gents.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface SheetInfo {
2
+ name: string;
3
+ id: number;
4
+ hidden: boolean;
5
+ tabColor: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ // DO NOT EDIT. CODE GENERATED BY gents.
2
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface SplitMergedCells {
2
+ sheetIdx: number;
3
+ row: number;
4
+ col: number;
5
+ }
@@ -0,0 +1,2 @@
1
+ // DO NOT EDIT. CODE GENERATED BY gents.
2
+ export {};
@@ -1 +1 @@
1
- export declare type StBorderStyle = 'none' | 'thin' | 'medium' | 'dashed' | 'dotted' | 'thick' | 'double' | 'hair' | 'mediumDashed' | 'dashDot' | 'mediumDashDot' | 'dashDotDot' | 'mediumDashDotDot' | 'slantDashDot';
1
+ export type StBorderStyle = 'none' | 'thin' | 'medium' | 'dashed' | 'dotted' | 'thick' | 'double' | 'hair' | 'mediumDashed' | 'dashDot' | 'mediumDashDot' | 'dashDotDot' | 'mediumDashDotDot' | 'slantDashDot';
@@ -1 +1 @@
1
- export declare type StFontScheme = 'none' | 'major' | 'minor';
1
+ export type StFontScheme = 'none' | 'major' | 'minor';
@@ -1 +1 @@
1
- export declare type StGradientType = 'linear' | 'path';
1
+ export type StGradientType = 'linear' | 'path';
@@ -1 +1 @@
1
- export declare type StPatternType = 'none' | 'solid' | 'mediumGray' | 'darkGray' | 'lightGray' | 'darkHorizontal' | 'darkVertical' | 'darkDown' | 'darkUp' | 'darkGrid' | 'darkTrellis' | 'lightHorizontal' | 'lightVertical' | 'lightDown' | 'lightUp' | 'lightGrid' | 'lightTrellis' | 'gray125' | 'gray0625';
1
+ export type StPatternType = 'none' | 'solid' | 'mediumGray' | 'darkGray' | 'lightGray' | 'darkHorizontal' | 'darkVertical' | 'darkDown' | 'darkUp' | 'darkGrid' | 'darkTrellis' | 'lightHorizontal' | 'lightVertical' | 'lightDown' | 'lightUp' | 'lightGrid' | 'lightTrellis' | 'gray125' | 'gray0625';
@@ -1 +1 @@
1
- export declare type StUnderlineValues = 'single' | 'double' | 'singleAccounting' | 'doubleAccounting' | 'none';
1
+ export type StUnderlineValues = 'single' | 'double' | 'singleAccounting' | 'doubleAccounting' | 'none';
@@ -1 +1 @@
1
- export declare type StVerticalAlignRun = 'baseline' | 'superscript' | 'subscript';
1
+ export type StVerticalAlignRun = 'baseline' | 'superscript' | 'subscript';
@@ -1,5 +1,6 @@
1
- export declare type StatusCode = {
2
- ok: boolean;
1
+ import { WorkbookUpdateType } from './workbook_update_type';
2
+ export type StatusCode = {
3
+ ok: WorkbookUpdateType;
3
4
  } | {
4
5
  err: number;
5
6
  };
@@ -1,2 +1 @@
1
- // DO NOT EDIT. CODE GENERATED BY gents.
2
1
  export {};
@@ -1,5 +1,5 @@
1
+ import { Alignment } from './alignment';
1
2
  import { Border } from './border';
2
- import { CtCellAlignment } from './cell_alignment';
3
3
  import { CtCellProtection } from './cell_protection';
4
4
  import { Fill } from './fill';
5
5
  import { Font } from './font';
@@ -7,7 +7,7 @@ export interface Style {
7
7
  font: Font;
8
8
  fill: Fill;
9
9
  border: Border;
10
- alignment?: CtCellAlignment;
10
+ alignment?: Alignment;
11
11
  protection?: CtCellProtection;
12
12
  formatter: string;
13
13
  }
@@ -1,3 +1,4 @@
1
+ import { Alignment } from './alignment';
1
2
  import { PatternFill } from './pattern_fill';
2
3
  import { StBorderStyle } from './st_border_style';
3
4
  import { StUnderlineValues } from './st_underline_values';
@@ -24,4 +25,5 @@ export interface StyleUpdateType {
24
25
  setBorderGiagonalDown?: boolean;
25
26
  setBorderOutline?: boolean;
26
27
  setPatternFill?: PatternFill;
28
+ setAlignment?: Alignment;
27
29
  }
@@ -1,4 +1,4 @@
1
- export declare type Value = {
1
+ export type Value = {
2
2
  str: string;
3
3
  } | {
4
4
  bool: boolean;
@@ -0,0 +1 @@
1
+ export type VerticalAlignment = 'center' | 'top' | 'bottom' | 'justify' | 'distributed';
@@ -0,0 +1,2 @@
1
+ // DO NOT EDIT. CODE GENERATED BY gents.
2
+ export {};
@@ -0,0 +1 @@
1
+ export type WorkbookUpdateType = 'doNothing' | 'cell' | 'sheet' | 'sheetAndCell' | 'undoNothing' | 'redoNothing' | 'undo' | 'redo' | 'ephemeralCells';
@@ -0,0 +1,2 @@
1
+ // DO NOT EDIT. CODE GENERATED BY gents.
2
+ export {};