logisheets 0.6.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 (423) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +1 -0
  3. package/dist/src/api/block_manager.d.ts +21 -0
  4. package/dist/src/api/block_manager.js +35 -0
  5. package/dist/src/api/calculator.d.ts +19 -0
  6. package/dist/src/api/calculator.js +46 -0
  7. package/dist/src/api/cell.d.ts +28 -0
  8. package/dist/src/api/cell.js +52 -0
  9. package/dist/src/api/index.d.ts +7 -0
  10. package/dist/src/api/index.js +5 -0
  11. package/dist/src/api/utils.d.ts +5 -0
  12. package/dist/src/api/utils.js +9 -0
  13. package/dist/src/api/workbook.d.ts +40 -0
  14. package/dist/src/api/workbook.js +227 -0
  15. package/dist/src/api/worksheet.d.ts +24 -0
  16. package/dist/src/api/worksheet.js +71 -0
  17. package/dist/src/bindings/action_effect.d.ts +7 -0
  18. package/dist/src/bindings/action_effect.js +1 -0
  19. package/dist/src/bindings/alignment.d.ts +6 -0
  20. package/dist/src/bindings/alignment.js +1 -0
  21. package/dist/src/bindings/async_func_result.d.ts +5 -0
  22. package/dist/src/bindings/async_func_result.js +1 -0
  23. package/dist/src/bindings/block_cell_id.d.ts +5 -0
  24. package/dist/src/bindings/block_cell_id.js +2 -0
  25. package/dist/src/bindings/block_info.d.ts +7 -0
  26. package/dist/src/bindings/block_info.js +2 -0
  27. package/dist/src/bindings/block_input.d.ts +7 -0
  28. package/dist/src/bindings/block_input.js +2 -0
  29. package/dist/src/bindings/block_style_update.d.ts +8 -0
  30. package/dist/src/bindings/block_style_update.js +1 -0
  31. package/dist/src/bindings/border.d.ts +13 -0
  32. package/dist/src/bindings/border.js +1 -0
  33. package/dist/src/bindings/border_pr.d.ts +6 -0
  34. package/dist/src/bindings/border_pr.js +1 -0
  35. package/dist/src/bindings/cell_alignment.d.ts +13 -0
  36. package/dist/src/bindings/cell_alignment.js +1 -0
  37. package/dist/src/bindings/cell_clear.d.ts +5 -0
  38. package/dist/src/bindings/cell_clear.js +2 -0
  39. package/dist/src/bindings/cell_format_brush.d.ts +10 -0
  40. package/dist/src/bindings/cell_format_brush.js +2 -0
  41. package/dist/src/bindings/cell_formula_value.d.ts +7 -0
  42. package/dist/src/bindings/cell_formula_value.js +1 -0
  43. package/dist/src/bindings/cell_id.d.ts +9 -0
  44. package/dist/src/bindings/cell_id.js +1 -0
  45. package/dist/src/bindings/cell_info.d.ts +8 -0
  46. package/dist/src/bindings/cell_info.js +1 -0
  47. package/dist/src/bindings/cell_input.d.ts +6 -0
  48. package/dist/src/bindings/cell_input.js +2 -0
  49. package/dist/src/bindings/cell_position.d.ts +4 -0
  50. package/dist/src/bindings/cell_position.js +2 -0
  51. package/dist/src/bindings/cell_protection.d.ts +4 -0
  52. package/dist/src/bindings/cell_protection.js +2 -0
  53. package/dist/src/bindings/cell_style.d.ts +6 -0
  54. package/dist/src/bindings/cell_style.js +1 -0
  55. package/dist/src/bindings/cell_style_update.d.ts +7 -0
  56. package/dist/src/bindings/cell_style_update.js +1 -0
  57. package/dist/src/bindings/col_info.d.ts +5 -0
  58. package/dist/src/bindings/col_info.js +2 -0
  59. package/dist/src/bindings/color.d.ts +6 -0
  60. package/dist/src/bindings/color.js +2 -0
  61. package/dist/src/bindings/comment.d.ts +6 -0
  62. package/dist/src/bindings/comment.js +2 -0
  63. package/dist/src/bindings/create_block.d.ts +8 -0
  64. package/dist/src/bindings/create_block.js +2 -0
  65. package/dist/src/bindings/create_sheet.d.ts +4 -0
  66. package/dist/src/bindings/create_sheet.js +2 -0
  67. package/dist/src/bindings/delete_cols.d.ts +5 -0
  68. package/dist/src/bindings/delete_cols.js +2 -0
  69. package/dist/src/bindings/delete_cols_in_block.d.ts +6 -0
  70. package/dist/src/bindings/delete_cols_in_block.js +2 -0
  71. package/dist/src/bindings/delete_rows.d.ts +5 -0
  72. package/dist/src/bindings/delete_rows.js +2 -0
  73. package/dist/src/bindings/delete_rows_in_block.d.ts +6 -0
  74. package/dist/src/bindings/delete_rows_in_block.js +2 -0
  75. package/dist/src/bindings/delete_sheet.d.ts +3 -0
  76. package/dist/src/bindings/delete_sheet.js +2 -0
  77. package/dist/src/bindings/display_patch.d.ts +25 -0
  78. package/dist/src/bindings/display_patch.js +1 -0
  79. package/dist/src/bindings/display_request.d.ts +4 -0
  80. package/dist/src/bindings/display_request.js +2 -0
  81. package/dist/src/bindings/display_response.d.ts +5 -0
  82. package/dist/src/bindings/display_response.js +1 -0
  83. package/dist/src/bindings/display_window.d.ts +14 -0
  84. package/dist/src/bindings/display_window.js +1 -0
  85. package/dist/src/bindings/display_window_request.d.ts +7 -0
  86. package/dist/src/bindings/display_window_request.js +2 -0
  87. package/dist/src/bindings/display_window_with_start_point.d.ts +6 -0
  88. package/dist/src/bindings/display_window_with_start_point.js +1 -0
  89. package/dist/src/bindings/edit_action.d.ts +7 -0
  90. package/dist/src/bindings/edit_action.js +1 -0
  91. package/dist/src/bindings/edit_payload.d.ts +88 -0
  92. package/dist/src/bindings/edit_payload.js +1 -0
  93. package/dist/src/bindings/ephemeral_cell_input.d.ts +5 -0
  94. package/dist/src/bindings/ephemeral_cell_input.js +2 -0
  95. package/dist/src/bindings/ephemeral_cell_style_update.d.ts +6 -0
  96. package/dist/src/bindings/ephemeral_cell_style_update.js +1 -0
  97. package/dist/src/bindings/error_message.d.ts +4 -0
  98. package/dist/src/bindings/error_message.js +2 -0
  99. package/dist/src/bindings/fill.d.ts +7 -0
  100. package/dist/src/bindings/fill.js +1 -0
  101. package/dist/src/bindings/font.d.ts +23 -0
  102. package/dist/src/bindings/font.js +1 -0
  103. package/dist/src/bindings/font_family.d.ts +3 -0
  104. package/dist/src/bindings/font_family.js +2 -0
  105. package/dist/src/bindings/font_name.d.ts +3 -0
  106. package/dist/src/bindings/font_name.js +2 -0
  107. package/dist/src/bindings/font_scheme.d.ts +4 -0
  108. package/dist/src/bindings/font_scheme.js +1 -0
  109. package/dist/src/bindings/gradient_fill.d.ts +11 -0
  110. package/dist/src/bindings/gradient_fill.js +1 -0
  111. package/dist/src/bindings/gradient_stop.d.ts +5 -0
  112. package/dist/src/bindings/gradient_stop.js +1 -0
  113. package/dist/src/bindings/horizontal_alignment.d.ts +1 -0
  114. package/dist/src/bindings/horizontal_alignment.js +2 -0
  115. package/dist/src/bindings/index.d.ts +88 -0
  116. package/dist/src/bindings/index.js +89 -0
  117. package/dist/src/bindings/insert_cols.d.ts +5 -0
  118. package/dist/src/bindings/insert_cols.js +2 -0
  119. package/dist/src/bindings/insert_cols_in_block.d.ts +6 -0
  120. package/dist/src/bindings/insert_cols_in_block.js +2 -0
  121. package/dist/src/bindings/insert_rows.d.ts +5 -0
  122. package/dist/src/bindings/insert_rows.js +2 -0
  123. package/dist/src/bindings/insert_rows_in_block.d.ts +6 -0
  124. package/dist/src/bindings/insert_rows_in_block.js +2 -0
  125. package/dist/src/bindings/line_format_brush.d.ts +9 -0
  126. package/dist/src/bindings/line_format_brush.js +2 -0
  127. package/dist/src/bindings/line_style_update.d.ts +8 -0
  128. package/dist/src/bindings/line_style_update.js +1 -0
  129. package/dist/src/bindings/merge_cell.d.ts +6 -0
  130. package/dist/src/bindings/merge_cell.js +2 -0
  131. package/dist/src/bindings/merge_cells.d.ts +7 -0
  132. package/dist/src/bindings/merge_cells.js +2 -0
  133. package/dist/src/bindings/move_block.d.ts +6 -0
  134. package/dist/src/bindings/move_block.js +2 -0
  135. package/dist/src/bindings/msg_edit.d.ts +7 -0
  136. package/dist/src/bindings/msg_edit.js +1 -0
  137. package/dist/src/bindings/msg_join.d.ts +6 -0
  138. package/dist/src/bindings/msg_join.js +1 -0
  139. package/dist/src/bindings/msg_sequencer_action_invalid_message.d.ts +6 -0
  140. package/dist/src/bindings/msg_sequencer_action_invalid_message.js +2 -0
  141. package/dist/src/bindings/msg_sequencer_action_message.d.ts +7 -0
  142. package/dist/src/bindings/msg_sequencer_action_message.js +1 -0
  143. package/dist/src/bindings/msg_sequencer_init_workbook.d.ts +5 -0
  144. package/dist/src/bindings/msg_sequencer_init_workbook.js +2 -0
  145. package/dist/src/bindings/msg_sequencer_message.d.ts +10 -0
  146. package/dist/src/bindings/msg_sequencer_message.js +1 -0
  147. package/dist/src/bindings/msg_user_message.d.ts +7 -0
  148. package/dist/src/bindings/msg_user_message.js +1 -0
  149. package/dist/src/bindings/normal_cell_id.d.ts +4 -0
  150. package/dist/src/bindings/normal_cell_id.js +2 -0
  151. package/dist/src/bindings/pattern_fill.d.ts +7 -0
  152. package/dist/src/bindings/pattern_fill.js +1 -0
  153. package/dist/src/bindings/payloads_action.d.ts +6 -0
  154. package/dist/src/bindings/payloads_action.js +1 -0
  155. package/dist/src/bindings/recalc_cell.d.ts +5 -0
  156. package/dist/src/bindings/recalc_cell.js +1 -0
  157. package/dist/src/bindings/remove_block.d.ts +4 -0
  158. package/dist/src/bindings/remove_block.js +2 -0
  159. package/dist/src/bindings/row_info.d.ts +5 -0
  160. package/dist/src/bindings/row_info.js +2 -0
  161. package/dist/src/bindings/set_col_width.d.ts +5 -0
  162. package/dist/src/bindings/set_col_width.js +2 -0
  163. package/dist/src/bindings/set_row_height.d.ts +5 -0
  164. package/dist/src/bindings/set_row_height.js +2 -0
  165. package/dist/src/bindings/set_visible.d.ts +6 -0
  166. package/dist/src/bindings/set_visible.js +2 -0
  167. package/dist/src/bindings/sheet_blocks.d.ts +5 -0
  168. package/dist/src/bindings/sheet_blocks.js +1 -0
  169. package/dist/src/bindings/sheet_col_info.d.ts +6 -0
  170. package/dist/src/bindings/sheet_col_info.js +1 -0
  171. package/dist/src/bindings/sheet_comments.d.ts +5 -0
  172. package/dist/src/bindings/sheet_comments.js +1 -0
  173. package/dist/src/bindings/sheet_dimension.d.ts +6 -0
  174. package/dist/src/bindings/sheet_dimension.js +2 -0
  175. package/dist/src/bindings/sheet_info.d.ts +6 -0
  176. package/dist/src/bindings/sheet_info.js +2 -0
  177. package/dist/src/bindings/sheet_merge_cells.d.ts +5 -0
  178. package/dist/src/bindings/sheet_merge_cells.js +1 -0
  179. package/dist/src/bindings/sheet_names.d.ts +3 -0
  180. package/dist/src/bindings/sheet_names.js +2 -0
  181. package/dist/src/bindings/sheet_rename.d.ts +5 -0
  182. package/dist/src/bindings/sheet_rename.js +2 -0
  183. package/dist/src/bindings/sheet_row_info.d.ts +6 -0
  184. package/dist/src/bindings/sheet_row_info.js +1 -0
  185. package/dist/src/bindings/sheet_styles.d.ts +5 -0
  186. package/dist/src/bindings/sheet_styles.js +1 -0
  187. package/dist/src/bindings/sheet_values.d.ts +5 -0
  188. package/dist/src/bindings/sheet_values.js +1 -0
  189. package/dist/src/bindings/split_merged_cells.d.ts +5 -0
  190. package/dist/src/bindings/split_merged_cells.js +2 -0
  191. package/dist/src/bindings/st_border_style.d.ts +1 -0
  192. package/dist/src/bindings/st_border_style.js +2 -0
  193. package/dist/src/bindings/st_font_scheme.d.ts +1 -0
  194. package/dist/src/bindings/st_font_scheme.js +2 -0
  195. package/dist/src/bindings/st_gradient_type.d.ts +1 -0
  196. package/dist/src/bindings/st_gradient_type.js +2 -0
  197. package/dist/src/bindings/st_horizontal_alignment.d.ts +1 -0
  198. package/dist/src/bindings/st_horizontal_alignment.js +2 -0
  199. package/dist/src/bindings/st_pattern_type.d.ts +1 -0
  200. package/dist/src/bindings/st_pattern_type.js +2 -0
  201. package/dist/src/bindings/st_underline_values.d.ts +1 -0
  202. package/dist/src/bindings/st_underline_values.js +2 -0
  203. package/dist/src/bindings/st_vertical_align_run.d.ts +1 -0
  204. package/dist/src/bindings/st_vertical_align_run.js +2 -0
  205. package/dist/src/bindings/st_vertical_alignment.d.ts +1 -0
  206. package/dist/src/bindings/st_vertical_alignment.js +2 -0
  207. package/dist/src/bindings/status_code.d.ts +6 -0
  208. package/dist/src/bindings/status_code.js +1 -0
  209. package/dist/src/bindings/style.d.ts +13 -0
  210. package/dist/src/bindings/style.js +1 -0
  211. package/dist/src/bindings/style_update.d.ts +7 -0
  212. package/dist/src/bindings/style_update.js +1 -0
  213. package/dist/src/bindings/style_update_type.d.ts +29 -0
  214. package/dist/src/bindings/style_update_type.js +1 -0
  215. package/dist/src/bindings/task.d.ts +4 -0
  216. package/dist/src/bindings/task.js +2 -0
  217. package/dist/src/bindings/underline_property.d.ts +4 -0
  218. package/dist/src/bindings/underline_property.js +1 -0
  219. package/dist/src/bindings/value.d.ts +9 -0
  220. package/dist/src/bindings/value.js +2 -0
  221. package/dist/src/bindings/vertical_align_font_property.d.ts +4 -0
  222. package/dist/src/bindings/vertical_align_font_property.js +1 -0
  223. package/dist/src/bindings/vertical_alignment.d.ts +1 -0
  224. package/dist/src/bindings/vertical_alignment.js +2 -0
  225. package/dist/src/bindings/workbook_file.d.ts +4 -0
  226. package/dist/src/bindings/workbook_file.js +2 -0
  227. package/dist/src/bindings/workbook_update_type.d.ts +1 -0
  228. package/dist/src/bindings/workbook_update_type.js +2 -0
  229. package/dist/src/client.d.ts +82 -0
  230. package/dist/src/client.js +1 -0
  231. package/dist/src/index.d.ts +5 -0
  232. package/dist/src/index.js +4 -0
  233. package/dist/src/payloads/block_input.d.ts +21 -0
  234. package/dist/src/payloads/block_input.js +47 -0
  235. package/dist/src/payloads/cell_clear.d.ts +15 -0
  236. package/dist/src/payloads/cell_clear.js +31 -0
  237. package/dist/src/payloads/cell_format_brush.d.ts +30 -0
  238. package/dist/src/payloads/cell_format_brush.js +71 -0
  239. package/dist/src/payloads/cell_input.d.ts +18 -0
  240. package/dist/src/payloads/cell_input.js +39 -0
  241. package/dist/src/payloads/create_block.d.ts +24 -0
  242. package/dist/src/payloads/create_block.js +61 -0
  243. package/dist/src/payloads/delete_block_cols.d.ts +18 -0
  244. package/dist/src/payloads/delete_block_cols.js +39 -0
  245. package/dist/src/payloads/delete_block_rows.d.ts +18 -0
  246. package/dist/src/payloads/delete_block_rows.js +39 -0
  247. package/dist/src/payloads/delete_cols.d.ts +15 -0
  248. package/dist/src/payloads/delete_cols.js +31 -0
  249. package/dist/src/payloads/delete_rows.d.ts +15 -0
  250. package/dist/src/payloads/delete_rows.js +31 -0
  251. package/dist/src/payloads/delete_sheet.d.ts +9 -0
  252. package/dist/src/payloads/delete_sheet.js +15 -0
  253. package/dist/src/payloads/index.d.ts +65 -0
  254. package/dist/src/payloads/index.js +32 -0
  255. package/dist/src/payloads/insert_block_cols.d.ts +18 -0
  256. package/dist/src/payloads/insert_block_cols.js +39 -0
  257. package/dist/src/payloads/insert_block_rows.d.ts +18 -0
  258. package/dist/src/payloads/insert_block_rows.js +39 -0
  259. package/dist/src/payloads/insert_cols.d.ts +15 -0
  260. package/dist/src/payloads/insert_cols.js +31 -0
  261. package/dist/src/payloads/insert_rows.d.ts +15 -0
  262. package/dist/src/payloads/insert_rows.js +31 -0
  263. package/dist/src/payloads/insert_sheet.d.ts +12 -0
  264. package/dist/src/payloads/insert_sheet.js +23 -0
  265. package/dist/src/payloads/line_format_brush.d.ts +27 -0
  266. package/dist/src/payloads/line_format_brush.js +63 -0
  267. package/dist/src/payloads/merge_cells.d.ts +21 -0
  268. package/dist/src/payloads/merge_cells.js +47 -0
  269. package/dist/src/payloads/move_block.d.ts +18 -0
  270. package/dist/src/payloads/move_block.js +39 -0
  271. package/dist/src/payloads/set_border.d.ts +49 -0
  272. package/dist/src/payloads/set_border.js +97 -0
  273. package/dist/src/payloads/set_cell_alignment.d.ts +19 -0
  274. package/dist/src/payloads/set_cell_alignment.js +39 -0
  275. package/dist/src/payloads/set_cell_border.d.ts +49 -0
  276. package/dist/src/payloads/set_cell_border.js +97 -0
  277. package/dist/src/payloads/set_cell_font.d.ts +46 -0
  278. package/dist/src/payloads/set_cell_font.js +91 -0
  279. package/dist/src/payloads/set_cell_pattern_fill.d.ts +25 -0
  280. package/dist/src/payloads/set_cell_pattern_fill.js +49 -0
  281. package/dist/src/payloads/set_col_visible.d.ts +15 -0
  282. package/dist/src/payloads/set_col_visible.js +31 -0
  283. package/dist/src/payloads/set_col_width.d.ts +15 -0
  284. package/dist/src/payloads/set_col_width.js +31 -0
  285. package/dist/src/payloads/set_font.d.ts +46 -0
  286. package/dist/src/payloads/set_font.js +91 -0
  287. package/dist/src/payloads/set_line_alignment.d.ts +22 -0
  288. package/dist/src/payloads/set_line_alignment.js +47 -0
  289. package/dist/src/payloads/set_line_border.d.ts +49 -0
  290. package/dist/src/payloads/set_line_border.js +97 -0
  291. package/dist/src/payloads/set_line_font.d.ts +49 -0
  292. package/dist/src/payloads/set_line_font.js +99 -0
  293. package/dist/src/payloads/set_line_pattern_fill.d.ts +28 -0
  294. package/dist/src/payloads/set_line_pattern_fill.js +57 -0
  295. package/dist/src/payloads/set_row_height.d.ts +15 -0
  296. package/dist/src/payloads/set_row_height.js +31 -0
  297. package/dist/src/payloads/set_row_visible.d.ts +15 -0
  298. package/dist/src/payloads/set_row_visible.js +31 -0
  299. package/dist/src/payloads/sheet_rename.d.ts +15 -0
  300. package/dist/src/payloads/sheet_rename.js +29 -0
  301. package/dist/src/payloads/split_merged_cells.d.ts +15 -0
  302. package/dist/src/payloads/split_merged_cells.js +31 -0
  303. package/dist/src/transactions.d.ts +13 -0
  304. package/dist/src/transactions.js +23 -0
  305. package/package.json +7 -6
  306. package/index.ts +0 -1
  307. package/src/api/index.ts +0 -1
  308. package/src/api/workbook.ts +0 -201
  309. package/src/bindings/action_effect.ts +0 -17
  310. package/src/bindings/async_func_result.ts +0 -12
  311. package/src/bindings/block_cell_id.ts +0 -7
  312. package/src/bindings/block_info.ts +0 -9
  313. package/src/bindings/block_input.ts +0 -9
  314. package/src/bindings/block_style_update.ts +0 -10
  315. package/src/bindings/border.ts +0 -15
  316. package/src/bindings/border_pr.ts +0 -8
  317. package/src/bindings/cell_alignment.ts +0 -15
  318. package/src/bindings/cell_formula_value.ts +0 -9
  319. package/src/bindings/cell_id.ts +0 -7
  320. package/src/bindings/cell_input.ts +0 -9
  321. package/src/bindings/cell_protection.ts +0 -6
  322. package/src/bindings/cell_style.ts +0 -8
  323. package/src/bindings/col_info.ts +0 -7
  324. package/src/bindings/color.ts +0 -8
  325. package/src/bindings/comment.ts +0 -8
  326. package/src/bindings/create_block.ts +0 -15
  327. package/src/bindings/create_sheet.ts +0 -6
  328. package/src/bindings/delete_cols.ts +0 -7
  329. package/src/bindings/delete_cols_in_block.ts +0 -8
  330. package/src/bindings/delete_rows.ts +0 -7
  331. package/src/bindings/delete_rows_in_block.ts +0 -8
  332. package/src/bindings/delete_sheet.ts +0 -5
  333. package/src/bindings/display_patch.ts +0 -19
  334. package/src/bindings/display_request.ts +0 -6
  335. package/src/bindings/display_response.ts +0 -7
  336. package/src/bindings/edit_action.ts +0 -10
  337. package/src/bindings/edit_payload.ts +0 -47
  338. package/src/bindings/fill.ts +0 -7
  339. package/src/bindings/font.ts +0 -25
  340. package/src/bindings/font_family.ts +0 -5
  341. package/src/bindings/font_name.ts +0 -5
  342. package/src/bindings/font_scheme.ts +0 -6
  343. package/src/bindings/gradient_fill.ts +0 -13
  344. package/src/bindings/gradient_stop.ts +0 -7
  345. package/src/bindings/index.ts +0 -85
  346. package/src/bindings/insert_cols.ts +0 -7
  347. package/src/bindings/insert_cols_in_block.ts +0 -8
  348. package/src/bindings/insert_rows.ts +0 -7
  349. package/src/bindings/insert_rows_in_block.ts +0 -8
  350. package/src/bindings/merge_cell.ts +0 -8
  351. package/src/bindings/move_block.ts +0 -8
  352. package/src/bindings/msg_edit.ts +0 -9
  353. package/src/bindings/msg_join.ts +0 -9
  354. package/src/bindings/msg_sequencer_action_invalid_message.ts +0 -10
  355. package/src/bindings/msg_sequencer_action_message.ts +0 -10
  356. package/src/bindings/msg_sequencer_init_workbook.ts +0 -8
  357. package/src/bindings/msg_sequencer_message.ts +0 -9
  358. package/src/bindings/msg_user_message.ts +0 -7
  359. package/src/bindings/normal_cell_id.ts +0 -6
  360. package/src/bindings/pattern_fill.ts +0 -9
  361. package/src/bindings/payloads_action.ts +0 -15
  362. package/src/bindings/recalc_cell.ts +0 -7
  363. package/src/bindings/remove_block.ts +0 -6
  364. package/src/bindings/row_info.ts +0 -7
  365. package/src/bindings/set_col_width.ts +0 -7
  366. package/src/bindings/set_row_height.ts +0 -7
  367. package/src/bindings/set_visible.ts +0 -8
  368. package/src/bindings/sheet_blocks.ts +0 -7
  369. package/src/bindings/sheet_col_info.ts +0 -8
  370. package/src/bindings/sheet_comments.ts +0 -7
  371. package/src/bindings/sheet_merge_cells.ts +0 -7
  372. package/src/bindings/sheet_names.ts +0 -5
  373. package/src/bindings/sheet_rename.ts +0 -8
  374. package/src/bindings/sheet_row_info.ts +0 -8
  375. package/src/bindings/sheet_styles.ts +0 -7
  376. package/src/bindings/sheet_values.ts +0 -7
  377. package/src/bindings/st_border_style.ts +0 -17
  378. package/src/bindings/st_font_scheme.ts +0 -6
  379. package/src/bindings/st_gradient_type.ts +0 -6
  380. package/src/bindings/st_horizontal_alignment.ts +0 -12
  381. package/src/bindings/st_pattern_type.ts +0 -23
  382. package/src/bindings/st_underline_values.ts +0 -9
  383. package/src/bindings/st_vertical_align_run.ts +0 -7
  384. package/src/bindings/st_vertical_alignment.ts +0 -9
  385. package/src/bindings/status_code.ts +0 -5
  386. package/src/bindings/style.ts +0 -15
  387. package/src/bindings/style_update.ts +0 -9
  388. package/src/bindings/style_update_type.ts +0 -29
  389. package/src/bindings/task.ts +0 -6
  390. package/src/bindings/underline_property.ts +0 -6
  391. package/src/bindings/value.ts +0 -8
  392. package/src/bindings/vertical_align_font_property.ts +0 -6
  393. package/src/bindings/workbook_file.ts +0 -6
  394. package/src/index.ts +0 -42
  395. package/src/payloads/block_input.ts +0 -54
  396. package/src/payloads/cell_input.ts +0 -44
  397. package/src/payloads/create_block.ts +0 -78
  398. package/src/payloads/delete_block_cols.ts +0 -44
  399. package/src/payloads/delete_block_rows.ts +0 -44
  400. package/src/payloads/delete_cols.ts +0 -37
  401. package/src/payloads/delete_rows.ts +0 -37
  402. package/src/payloads/delete_sheet.ts +0 -19
  403. package/src/payloads/index.ts +0 -66
  404. package/src/payloads/insert_block_cols.ts +0 -44
  405. package/src/payloads/insert_block_rows.ts +0 -44
  406. package/src/payloads/insert_cols.ts +0 -35
  407. package/src/payloads/insert_rows.ts +0 -36
  408. package/src/payloads/insert_sheet.ts +0 -27
  409. package/src/payloads/move_block.ts +0 -45
  410. package/src/payloads/set_border.ts +0 -113
  411. package/src/payloads/set_col_visible.ts +0 -35
  412. package/src/payloads/set_col_width.ts +0 -35
  413. package/src/payloads/set_font.ts +0 -107
  414. package/src/payloads/set_row_height.ts +0 -35
  415. package/src/payloads/set_row_visible.ts +0 -35
  416. package/src/payloads/sheet_rename.ts +0 -35
  417. package/src/transactions.ts +0 -14
  418. package/wasm/.gitignore +0 -1
  419. package/wasm/logisheets_wasm_server.d.ts +0 -255
  420. package/wasm/logisheets_wasm_server.js +0 -946
  421. package/wasm/logisheets_wasm_server_bg.wasm +0 -0
  422. package/wasm/logisheets_wasm_server_bg.wasm.d.ts +0 -40
  423. package/wasm/package.json +0 -14
@@ -0,0 +1,63 @@
1
+ export class LineFormatBrushBuilder {
2
+ _srcSheetIdx;
3
+ _srcRow;
4
+ _srcCol;
5
+ _dstSheetIdx;
6
+ _row;
7
+ _from;
8
+ _to;
9
+ srcSheetIdx(srcSheetIdx) {
10
+ this._srcSheetIdx = srcSheetIdx;
11
+ return this;
12
+ }
13
+ dstSheetIdx(dstSheetIdx) {
14
+ this._dstSheetIdx = dstSheetIdx;
15
+ return this;
16
+ }
17
+ srcRow(srcRow) {
18
+ this._srcRow = srcRow;
19
+ return this;
20
+ }
21
+ srcCol(srcCol) {
22
+ this._srcCol = srcCol;
23
+ return this;
24
+ }
25
+ row(row) {
26
+ this._row = row;
27
+ return this;
28
+ }
29
+ from(from) {
30
+ this._from = from;
31
+ return this;
32
+ }
33
+ to(to) {
34
+ this._to = to;
35
+ return this;
36
+ }
37
+ build() {
38
+ if (this._srcSheetIdx === undefined)
39
+ throw Error('srcSheetIdx is undefined!');
40
+ if (this._srcRow === undefined)
41
+ throw Error('srcRow is undefined!');
42
+ if (this._srcCol === undefined)
43
+ throw Error('srcCol is undefined!');
44
+ if (this._dstSheetIdx === undefined)
45
+ throw Error('dstSheetIdx is undefined!');
46
+ if (this._row === undefined)
47
+ throw Error('row is undefined!');
48
+ if (this._from === undefined)
49
+ throw Error('from is undefined!');
50
+ if (this._to === undefined)
51
+ throw Error('to is undefined!');
52
+ return {
53
+ type: 'lineFormatBrush',
54
+ srcSheetIdx: this._srcSheetIdx,
55
+ srcRow: this._srcRow,
56
+ srcCol: this._srcCol,
57
+ dstSheetIdx: this._dstSheetIdx,
58
+ row: this._row,
59
+ from: this._from,
60
+ to: this._to,
61
+ };
62
+ }
63
+ }
@@ -0,0 +1,21 @@
1
+ export interface MergeCells {
2
+ readonly type: 'mergeCells';
3
+ readonly sheetIdx: number;
4
+ readonly startRow: number;
5
+ readonly startCol: number;
6
+ readonly endRow: number;
7
+ readonly endCol: number;
8
+ }
9
+ export declare class MergeCellsBuilder {
10
+ private _sheetIdx?;
11
+ private _startRow?;
12
+ private _startCol?;
13
+ private _endRow?;
14
+ private _endCol?;
15
+ sheetIdx(v: number): this;
16
+ startRow(v: number): this;
17
+ startCol(v: number): this;
18
+ endRow(v: number): this;
19
+ endCol(v: number): this;
20
+ build(): MergeCells;
21
+ }
@@ -0,0 +1,47 @@
1
+ export class MergeCellsBuilder {
2
+ _sheetIdx;
3
+ _startRow;
4
+ _startCol;
5
+ _endRow;
6
+ _endCol;
7
+ sheetIdx(v) {
8
+ this._sheetIdx = v;
9
+ return this;
10
+ }
11
+ startRow(v) {
12
+ this._startRow = v;
13
+ return this;
14
+ }
15
+ startCol(v) {
16
+ this._startCol = v;
17
+ return this;
18
+ }
19
+ endRow(v) {
20
+ this._endRow = v;
21
+ return this;
22
+ }
23
+ endCol(v) {
24
+ this._endCol = v;
25
+ return this;
26
+ }
27
+ build() {
28
+ if (this._sheetIdx === undefined)
29
+ throw Error('sheetIdx is undefined!');
30
+ if (this._startRow === undefined)
31
+ throw Error('startRow is undefined');
32
+ if (this._startCol === undefined)
33
+ throw Error('startCol is undefined');
34
+ if (this._endRow === undefined)
35
+ throw Error('endRow is undefined');
36
+ if (this._endCol === undefined)
37
+ throw Error('endCol is undefined');
38
+ return {
39
+ type: 'mergeCells',
40
+ sheetIdx: this._sheetIdx,
41
+ startRow: this._startRow,
42
+ startCol: this._startCol,
43
+ endRow: this._endRow,
44
+ endCol: this._endCol,
45
+ };
46
+ }
47
+ }
@@ -0,0 +1,18 @@
1
+ export interface MoveBlock {
2
+ readonly type: 'moveBlock';
3
+ readonly sheetIdx: number;
4
+ readonly blockId: number;
5
+ readonly newMasterRow: number;
6
+ readonly newMasterCol: number;
7
+ }
8
+ export declare class MoveBlockBuilder {
9
+ private _sheetIdx?;
10
+ private _blockId?;
11
+ private _newMasterRow?;
12
+ private _newMasterCol?;
13
+ sheetIdx(sheetIdx: number): this;
14
+ blockId(blockId: number): this;
15
+ newMasterRow(newMasterRow: number): this;
16
+ newMasterCol(newMasterCol: number): this;
17
+ build(): MoveBlock;
18
+ }
@@ -0,0 +1,39 @@
1
+ export class MoveBlockBuilder {
2
+ _sheetIdx;
3
+ _blockId;
4
+ _newMasterRow;
5
+ _newMasterCol;
6
+ sheetIdx(sheetIdx) {
7
+ this._sheetIdx = sheetIdx;
8
+ return this;
9
+ }
10
+ blockId(blockId) {
11
+ this._blockId = blockId;
12
+ return this;
13
+ }
14
+ newMasterRow(newMasterRow) {
15
+ this._newMasterRow = newMasterRow;
16
+ return this;
17
+ }
18
+ newMasterCol(newMasterCol) {
19
+ this._newMasterCol = newMasterCol;
20
+ return this;
21
+ }
22
+ build() {
23
+ if (this._sheetIdx === undefined)
24
+ throw Error('sheetIdx is undefined!');
25
+ if (this._blockId === undefined)
26
+ throw Error('blockId is undefined!');
27
+ if (this._newMasterRow === undefined)
28
+ throw Error('newMasterRow is undefined!');
29
+ if (this._newMasterCol === undefined)
30
+ throw Error('newMasterCol is undefined!');
31
+ return {
32
+ type: 'moveBlock',
33
+ sheetIdx: this._sheetIdx,
34
+ blockId: this._blockId,
35
+ newMasterRow: this._newMasterRow,
36
+ newMasterCol: this._newMasterCol,
37
+ };
38
+ }
39
+ }
@@ -0,0 +1,49 @@
1
+ import { StBorderStyle } from '../bindings';
2
+ export interface SetBorder {
3
+ readonly type: 'setBorder';
4
+ readonly sheetIdx: number;
5
+ readonly row: number;
6
+ readonly col: number;
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 SetBorderBuilder {
20
+ private _sheetIdx?;
21
+ private _row?;
22
+ private _col?;
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(row: number): this;
36
+ col(col: number): this;
37
+ leftColor(leftColor: string): this;
38
+ rightColor(rightColor: string): this;
39
+ topColor(topColor: string): this;
40
+ bottomColor(bottomColor: string): this;
41
+ leftBorderType(leftBorderType: StBorderStyle): this;
42
+ rightBorderType(rightBorderType: StBorderStyle): this;
43
+ topBorderType(topBorderType: StBorderStyle): this;
44
+ bottomBorderType(bottomBorderType: StBorderStyle): this;
45
+ outline(outline: boolean): this;
46
+ diagonalUp(diagonalUp: boolean): this;
47
+ diagonalDown(diagonalDown: boolean): this;
48
+ build(): SetBorder;
49
+ }
@@ -0,0 +1,97 @@
1
+ export class SetBorderBuilder {
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: 'setBorder',
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,19 @@
1
+ import { Alignment } from '../bindings';
2
+ export interface SetCellAlignment {
3
+ readonly type: 'setCellAlignment';
4
+ readonly sheetIdx: number;
5
+ readonly row: number;
6
+ readonly col: number;
7
+ readonly alignment: Alignment;
8
+ }
9
+ export declare class SetCellAlignmentBuilder {
10
+ private _sheetIdx?;
11
+ private _row?;
12
+ private _col?;
13
+ private _alignment?;
14
+ sheetIdx(sheetIdx: number): this;
15
+ row(row: number): this;
16
+ col(col: number): this;
17
+ alignment(value: Alignment): this;
18
+ build(): SetCellAlignment;
19
+ }
@@ -0,0 +1,39 @@
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
+ type: 'setCellAlignment',
33
+ sheetIdx: this._sheetIdx,
34
+ row: this._row,
35
+ col: this._col,
36
+ alignment: this._alignment,
37
+ };
38
+ }
39
+ }
@@ -0,0 +1,49 @@
1
+ import { StBorderStyle } from '../bindings';
2
+ export interface SetCellBorder {
3
+ readonly type: 'setCellBorder';
4
+ readonly sheetIdx: number;
5
+ readonly row: number;
6
+ readonly col: number;
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 SetCellBorderBuilder {
20
+ private _sheetIdx?;
21
+ private _row?;
22
+ private _col?;
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(row: number): this;
36
+ col(col: number): this;
37
+ leftColor(leftColor: string): this;
38
+ rightColor(rightColor: string): this;
39
+ topColor(topColor: string): this;
40
+ bottomColor(bottomColor: string): this;
41
+ leftBorderType(leftBorderType: StBorderStyle): this;
42
+ rightBorderType(rightBorderType: StBorderStyle): this;
43
+ topBorderType(topBorderType: StBorderStyle): this;
44
+ bottomBorderType(bottomBorderType: StBorderStyle): this;
45
+ outline(outline: boolean): this;
46
+ diagonalUp(diagonalUp: boolean): this;
47
+ diagonalDown(diagonalDown: boolean): this;
48
+ build(): SetCellBorder;
49
+ }
@@ -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
+ }