@zaber/motion 2.5.1 → 2.7.0-save-load

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 (741) hide show
  1. package/binding.gyp +2 -3
  2. package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
  3. package/dist/{node → lib}/ascii/alert_event.d.ts +0 -0
  4. package/dist/{node → lib}/ascii/alert_event.js +0 -0
  5. package/dist/{node → lib}/ascii/alert_event.js.map +0 -0
  6. package/dist/{node → lib}/ascii/all_axes.d.ts +0 -0
  7. package/dist/{node → lib}/ascii/all_axes.js +0 -0
  8. package/dist/{node → lib}/ascii/all_axes.js.map +0 -0
  9. package/dist/{web → lib}/ascii/axis.d.ts +18 -0
  10. package/dist/{node → lib}/ascii/axis.js +40 -0
  11. package/dist/lib/ascii/axis.js.map +1 -0
  12. package/dist/{node → lib}/ascii/axis_identity.d.ts +0 -0
  13. package/dist/{node → lib}/ascii/axis_identity.js +0 -0
  14. package/dist/{node → lib}/ascii/axis_identity.js.map +0 -0
  15. package/dist/{node → lib}/ascii/axis_settings.d.ts +14 -0
  16. package/dist/{web → lib}/ascii/axis_settings.js +30 -0
  17. package/dist/lib/ascii/axis_settings.js.map +1 -0
  18. package/dist/{node → lib}/ascii/axis_type.d.ts +0 -0
  19. package/dist/{node → lib}/ascii/axis_type.js +0 -0
  20. package/dist/{node → lib}/ascii/axis_type.js.map +0 -0
  21. package/dist/{web → lib}/ascii/connection.d.ts +14 -2
  22. package/dist/{web → lib}/ascii/connection.js +22 -2
  23. package/dist/lib/ascii/connection.js.map +1 -0
  24. package/dist/{web → lib}/ascii/device.d.ts +20 -0
  25. package/dist/{node → lib}/ascii/device.js +40 -0
  26. package/dist/lib/ascii/device.js.map +1 -0
  27. package/dist/{node → lib}/ascii/device_identity.d.ts +0 -0
  28. package/dist/{node → lib}/ascii/device_identity.js +0 -0
  29. package/dist/{node → lib}/ascii/device_identity.js.map +0 -0
  30. package/dist/{node → lib}/ascii/device_io.d.ts +0 -0
  31. package/dist/{node → lib}/ascii/device_io.js +0 -0
  32. package/dist/{node → lib}/ascii/device_io.js.map +0 -0
  33. package/dist/{node → lib}/ascii/device_io_info.d.ts +0 -0
  34. package/dist/{node → lib}/ascii/device_io_info.js +0 -0
  35. package/dist/{node → lib}/ascii/device_io_info.js.map +0 -0
  36. package/dist/{web → lib}/ascii/device_settings.d.ts +14 -0
  37. package/dist/{web → lib}/ascii/device_settings.js +28 -0
  38. package/dist/lib/ascii/device_settings.js.map +1 -0
  39. package/dist/{node → lib}/ascii/index.d.ts +0 -0
  40. package/dist/{node → lib}/ascii/index.js +0 -0
  41. package/dist/{node → lib}/ascii/index.js.map +0 -0
  42. package/dist/{node → lib}/ascii/lockstep.d.ts +0 -0
  43. package/dist/{node → lib}/ascii/lockstep.js +0 -0
  44. package/dist/{node → lib}/ascii/lockstep.js.map +0 -0
  45. package/dist/{node → lib}/ascii/lockstep_axes.d.ts +0 -0
  46. package/dist/{node → lib}/ascii/lockstep_axes.js +0 -0
  47. package/dist/{node → lib}/ascii/lockstep_axes.js.map +0 -0
  48. package/dist/{node → lib}/ascii/message_type.d.ts +0 -0
  49. package/dist/{node → lib}/ascii/message_type.js +0 -0
  50. package/dist/{node → lib}/ascii/message_type.js.map +0 -0
  51. package/dist/{node → lib}/ascii/response.d.ts +0 -0
  52. package/dist/{node → lib}/ascii/response.js +0 -0
  53. package/dist/{node → lib}/ascii/response.js.map +0 -0
  54. package/dist/{web → lib}/ascii/setting_constants.d.ts +360 -0
  55. package/dist/{node → lib}/ascii/setting_constants.js +360 -0
  56. package/dist/lib/ascii/setting_constants.js.map +1 -0
  57. package/dist/{web → lib}/ascii/stream.d.ts +6 -0
  58. package/dist/{web → lib}/ascii/stream.js +13 -0
  59. package/dist/lib/ascii/stream.js.map +1 -0
  60. package/dist/{web → lib}/ascii/stream_axis_definition.d.ts +1 -1
  61. package/dist/{node → lib}/ascii/stream_axis_definition.js +0 -0
  62. package/dist/{node → lib}/ascii/stream_axis_definition.js.map +1 -1
  63. package/dist/{node → lib}/ascii/stream_axis_type.d.ts +0 -0
  64. package/dist/{node → lib}/ascii/stream_axis_type.js +0 -0
  65. package/dist/{node → lib}/ascii/stream_axis_type.js.map +0 -0
  66. package/dist/{node → lib}/ascii/stream_buffer.d.ts +1 -0
  67. package/dist/{node → lib}/ascii/stream_buffer.js +1 -0
  68. package/dist/lib/ascii/stream_buffer.js.map +1 -0
  69. package/dist/{node → lib}/ascii/stream_mode.d.ts +0 -0
  70. package/dist/{node → lib}/ascii/stream_mode.js +0 -0
  71. package/dist/{node → lib}/ascii/stream_mode.js.map +0 -0
  72. package/dist/{node → lib}/ascii/transport.d.ts +0 -0
  73. package/dist/{node → lib}/ascii/transport.js +0 -0
  74. package/dist/{node → lib}/ascii/transport.js.map +0 -0
  75. package/dist/{node → lib}/ascii/unknown_response_event.d.ts +0 -0
  76. package/dist/{node → lib}/ascii/unknown_response_event.js +0 -0
  77. package/dist/{node → lib}/ascii/unknown_response_event.js.map +0 -0
  78. package/dist/{node → lib}/ascii/warning_flags.d.ts +0 -0
  79. package/dist/{node → lib}/ascii/warning_flags.js +0 -0
  80. package/dist/{node → lib}/ascii/warning_flags.js.map +0 -0
  81. package/dist/{node → lib}/ascii/warnings.d.ts +0 -0
  82. package/dist/{node → lib}/ascii/warnings.js +0 -0
  83. package/dist/{node → lib}/ascii/warnings.js.map +0 -0
  84. package/dist/{node → lib}/ascii_ns.d.ts +0 -0
  85. package/dist/{node → lib}/ascii_ns.js +0 -0
  86. package/dist/{node → lib}/ascii_ns.js.map +0 -0
  87. package/dist/{node → lib}/binary/binary_settings.d.ts +0 -0
  88. package/dist/{node → lib}/binary/binary_settings.js +0 -0
  89. package/dist/{node → lib}/binary/binary_settings.js.map +0 -0
  90. package/dist/{node → lib}/binary/command_code.d.ts +0 -0
  91. package/dist/{node → lib}/binary/command_code.js +0 -0
  92. package/dist/{node → lib}/binary/command_code.js.map +0 -0
  93. package/dist/{node → lib}/binary/connection.d.ts +0 -1
  94. package/dist/{web → lib}/binary/connection.js +0 -1
  95. package/dist/lib/binary/connection.js.map +1 -0
  96. package/dist/{node → lib}/binary/device.d.ts +0 -0
  97. package/dist/{node → lib}/binary/device.js +0 -0
  98. package/dist/{node → lib}/binary/device.js.map +0 -0
  99. package/dist/{node → lib}/binary/device_identity.d.ts +0 -0
  100. package/dist/{node → lib}/binary/device_identity.js +0 -0
  101. package/dist/{node → lib}/binary/device_identity.js.map +0 -0
  102. package/dist/{node → lib}/binary/device_settings.d.ts +0 -0
  103. package/dist/{node → lib}/binary/device_settings.js +0 -0
  104. package/dist/{node → lib}/binary/device_settings.js.map +0 -0
  105. package/dist/{node → lib}/binary/device_type.d.ts +0 -0
  106. package/dist/{node → lib}/binary/device_type.js +0 -0
  107. package/dist/{node → lib}/binary/device_type.js.map +0 -0
  108. package/dist/{node → lib}/binary/error_code.d.ts +0 -0
  109. package/dist/{node → lib}/binary/error_code.js +0 -0
  110. package/dist/{node → lib}/binary/error_code.js.map +0 -0
  111. package/dist/{node → lib}/binary/index.d.ts +0 -0
  112. package/dist/{node → lib}/binary/index.js +0 -0
  113. package/dist/{node → lib}/binary/index.js.map +0 -0
  114. package/dist/{node → lib}/binary/message.d.ts +0 -0
  115. package/dist/{node → lib}/binary/message.js +0 -0
  116. package/dist/{node → lib}/binary/message.js.map +0 -0
  117. package/dist/{node → lib}/binary/reply_code.d.ts +0 -0
  118. package/dist/{node → lib}/binary/reply_code.js +0 -0
  119. package/dist/{node → lib}/binary/reply_code.js.map +0 -0
  120. package/dist/{node → lib}/binary/reply_only_event.d.ts +0 -0
  121. package/dist/{node → lib}/binary/reply_only_event.js +0 -0
  122. package/dist/{node → lib}/binary/reply_only_event.js.map +0 -0
  123. package/dist/{node → lib}/binary/unknown_response_event.d.ts +0 -0
  124. package/dist/{node → lib}/binary/unknown_response_event.js +0 -0
  125. package/dist/{node → lib}/binary/unknown_response_event.js.map +0 -0
  126. package/dist/{node → lib}/binary_ns.d.ts +0 -0
  127. package/dist/{node → lib}/binary_ns.js +0 -0
  128. package/dist/{node → lib}/binary_ns.js.map +0 -0
  129. package/dist/lib/can_set_state_axis_response.d.ts +16 -0
  130. package/dist/lib/can_set_state_axis_response.js +18 -0
  131. package/dist/lib/can_set_state_axis_response.js.map +1 -0
  132. package/dist/lib/can_set_state_device_response.d.ts +17 -0
  133. package/dist/lib/can_set_state_device_response.js +19 -0
  134. package/dist/lib/can_set_state_device_response.js.map +1 -0
  135. package/dist/{node → lib}/device_db_source_type.d.ts +0 -0
  136. package/dist/{node → lib}/device_db_source_type.js +0 -0
  137. package/dist/{node → lib}/device_db_source_type.js.map +0 -0
  138. package/dist/{node → lib}/exceptions/binary_command_failed_exception.d.ts +0 -0
  139. package/dist/{node → lib}/exceptions/binary_command_failed_exception.js +0 -0
  140. package/dist/{node → lib}/exceptions/binary_command_failed_exception.js.map +0 -0
  141. package/dist/{node → lib}/exceptions/binary_command_failed_exception_data.d.ts +0 -0
  142. package/dist/{node → lib}/exceptions/binary_command_failed_exception_data.js +0 -0
  143. package/dist/{node → lib}/exceptions/binary_command_failed_exception_data.js.map +0 -0
  144. package/dist/{node → lib}/exceptions/command_failed_exception.d.ts +0 -0
  145. package/dist/{node → lib}/exceptions/command_failed_exception.js +0 -0
  146. package/dist/{node → lib}/exceptions/command_failed_exception.js.map +0 -0
  147. package/dist/{node → lib}/exceptions/command_failed_exception_data.d.ts +0 -0
  148. package/dist/{node → lib}/exceptions/command_failed_exception_data.js +0 -0
  149. package/dist/{node → lib}/exceptions/command_failed_exception_data.js.map +0 -0
  150. package/dist/{node → lib}/exceptions/command_preempted_exception.d.ts +0 -0
  151. package/dist/{node → lib}/exceptions/command_preempted_exception.js +0 -0
  152. package/dist/{node → lib}/exceptions/command_preempted_exception.js.map +0 -0
  153. package/dist/{node → lib}/exceptions/connection_closed_exception.d.ts +0 -0
  154. package/dist/{node → lib}/exceptions/connection_closed_exception.js +0 -0
  155. package/dist/{node → lib}/exceptions/connection_closed_exception.js.map +0 -0
  156. package/dist/{node → lib}/exceptions/connection_failed_exception.d.ts +0 -0
  157. package/dist/{node → lib}/exceptions/connection_failed_exception.js +0 -0
  158. package/dist/{node → lib}/exceptions/connection_failed_exception.js.map +0 -0
  159. package/dist/{node → lib}/exceptions/conversion_failed_exception.d.ts +0 -0
  160. package/dist/{node → lib}/exceptions/conversion_failed_exception.js +0 -0
  161. package/dist/{node → lib}/exceptions/conversion_failed_exception.js.map +0 -0
  162. package/dist/{node → lib}/exceptions/device_address_conflict_exception.d.ts +0 -0
  163. package/dist/{node → lib}/exceptions/device_address_conflict_exception.js +0 -0
  164. package/dist/{node → lib}/exceptions/device_address_conflict_exception.js.map +0 -0
  165. package/dist/{node → lib}/exceptions/device_address_conflict_exception_data.d.ts +0 -0
  166. package/dist/{node → lib}/exceptions/device_address_conflict_exception_data.js +0 -0
  167. package/dist/{node → lib}/exceptions/device_address_conflict_exception_data.js.map +0 -0
  168. package/dist/{node → lib}/exceptions/device_busy_exception.d.ts +0 -0
  169. package/dist/{node → lib}/exceptions/device_busy_exception.js +0 -0
  170. package/dist/{node → lib}/exceptions/device_busy_exception.js.map +0 -0
  171. package/dist/{node → lib}/exceptions/device_db_failed_exception.d.ts +0 -0
  172. package/dist/{node → lib}/exceptions/device_db_failed_exception.js +0 -0
  173. package/dist/{node → lib}/exceptions/device_db_failed_exception.js.map +0 -0
  174. package/dist/{node → lib}/exceptions/device_failed_exception.d.ts +0 -0
  175. package/dist/{node → lib}/exceptions/device_failed_exception.js +0 -0
  176. package/dist/{node → lib}/exceptions/device_failed_exception.js.map +0 -0
  177. package/dist/{node → lib}/exceptions/device_not_identified_exception.d.ts +0 -0
  178. package/dist/{node → lib}/exceptions/device_not_identified_exception.js +0 -0
  179. package/dist/{node → lib}/exceptions/device_not_identified_exception.js.map +0 -0
  180. package/dist/lib/exceptions/g_code_execution_exception.d.ts +14 -0
  181. package/dist/lib/exceptions/g_code_execution_exception.js +32 -0
  182. package/dist/lib/exceptions/g_code_execution_exception.js.map +1 -0
  183. package/dist/lib/exceptions/g_code_execution_exception_data.d.ts +17 -0
  184. package/dist/lib/exceptions/g_code_execution_exception_data.js +18 -0
  185. package/dist/lib/exceptions/g_code_execution_exception_data.js.map +1 -0
  186. package/dist/lib/exceptions/g_code_syntax_exception.d.ts +14 -0
  187. package/dist/lib/exceptions/g_code_syntax_exception.js +32 -0
  188. package/dist/lib/exceptions/g_code_syntax_exception.js.map +1 -0
  189. package/dist/lib/exceptions/g_code_syntax_exception_data.d.ts +17 -0
  190. package/dist/lib/exceptions/g_code_syntax_exception_data.js +18 -0
  191. package/dist/lib/exceptions/g_code_syntax_exception_data.js.map +1 -0
  192. package/dist/{web → lib}/exceptions/index.d.ts +8 -0
  193. package/dist/{node → lib}/exceptions/index.js +18 -1
  194. package/dist/lib/exceptions/index.js.map +1 -0
  195. package/dist/{node → lib}/exceptions/internal_error_exception.d.ts +0 -0
  196. package/dist/{node → lib}/exceptions/internal_error_exception.js +0 -0
  197. package/dist/{node → lib}/exceptions/internal_error_exception.js.map +0 -0
  198. package/dist/{node → lib}/exceptions/invalid_argument_exception.d.ts +0 -0
  199. package/dist/{node → lib}/exceptions/invalid_argument_exception.js +0 -0
  200. package/dist/{node → lib}/exceptions/invalid_argument_exception.js.map +0 -0
  201. package/dist/{node → lib}/exceptions/invalid_data_exception.d.ts +0 -0
  202. package/dist/{node → lib}/exceptions/invalid_data_exception.js +0 -0
  203. package/dist/{node → lib}/exceptions/invalid_data_exception.js.map +0 -0
  204. package/dist/{node → lib}/exceptions/invalid_packet_exception.d.ts +0 -0
  205. package/dist/{node → lib}/exceptions/invalid_packet_exception.js +0 -0
  206. package/dist/{node → lib}/exceptions/invalid_packet_exception.js.map +0 -0
  207. package/dist/{node → lib}/exceptions/invalid_packet_exception_data.d.ts +0 -0
  208. package/dist/{node → lib}/exceptions/invalid_packet_exception_data.js +0 -0
  209. package/dist/{node → lib}/exceptions/invalid_packet_exception_data.js.map +0 -0
  210. package/dist/{node → lib}/exceptions/invalid_park_state_exception.d.ts +0 -0
  211. package/dist/{node → lib}/exceptions/invalid_park_state_exception.js +0 -0
  212. package/dist/{node → lib}/exceptions/invalid_park_state_exception.js.map +0 -0
  213. package/dist/{node → lib}/exceptions/invalid_response_exception.d.ts +0 -0
  214. package/dist/{node → lib}/exceptions/invalid_response_exception.js +0 -0
  215. package/dist/{node → lib}/exceptions/invalid_response_exception.js.map +0 -0
  216. package/dist/{node → lib}/exceptions/invalid_response_exception_data.d.ts +0 -0
  217. package/dist/{node → lib}/exceptions/invalid_response_exception_data.js +0 -0
  218. package/dist/{node → lib}/exceptions/invalid_response_exception_data.js.map +0 -0
  219. package/dist/{node → lib}/exceptions/io_channel_out_of_range_exception.d.ts +0 -0
  220. package/dist/{node → lib}/exceptions/io_channel_out_of_range_exception.js +0 -0
  221. package/dist/{node → lib}/exceptions/io_channel_out_of_range_exception.js.map +0 -0
  222. package/dist/{node → lib}/exceptions/io_failed_exception.d.ts +0 -0
  223. package/dist/{node → lib}/exceptions/io_failed_exception.js +0 -0
  224. package/dist/{node → lib}/exceptions/io_failed_exception.js.map +0 -0
  225. package/dist/{node → lib}/exceptions/lockstep_enabled_exception.d.ts +0 -0
  226. package/dist/{node → lib}/exceptions/lockstep_enabled_exception.js +0 -0
  227. package/dist/{node → lib}/exceptions/lockstep_enabled_exception.js.map +0 -0
  228. package/dist/{node → lib}/exceptions/lockstep_not_enabled_exception.d.ts +0 -0
  229. package/dist/{node → lib}/exceptions/lockstep_not_enabled_exception.js +0 -0
  230. package/dist/{node → lib}/exceptions/lockstep_not_enabled_exception.js.map +0 -0
  231. package/dist/{node → lib}/exceptions/motion_lib_exception.d.ts +0 -0
  232. package/dist/{node → lib}/exceptions/motion_lib_exception.js +0 -0
  233. package/dist/{node → lib}/exceptions/motion_lib_exception.js.map +0 -0
  234. package/dist/{node → lib}/exceptions/movement_failed_exception.d.ts +0 -0
  235. package/dist/{node → lib}/exceptions/movement_failed_exception.js +0 -0
  236. package/dist/{node → lib}/exceptions/movement_failed_exception.js.map +0 -0
  237. package/dist/{node → lib}/exceptions/movement_failed_exception_data.d.ts +0 -0
  238. package/dist/{node → lib}/exceptions/movement_failed_exception_data.js +0 -0
  239. package/dist/{node → lib}/exceptions/movement_failed_exception_data.js.map +0 -0
  240. package/dist/{node → lib}/exceptions/movement_interrupted_exception.d.ts +0 -0
  241. package/dist/{node → lib}/exceptions/movement_interrupted_exception.js +0 -0
  242. package/dist/{node → lib}/exceptions/movement_interrupted_exception.js.map +0 -0
  243. package/dist/{node → lib}/exceptions/movement_interrupted_exception_data.d.ts +0 -0
  244. package/dist/{node → lib}/exceptions/movement_interrupted_exception_data.js +0 -0
  245. package/dist/{node → lib}/exceptions/movement_interrupted_exception_data.js.map +0 -0
  246. package/dist/{node → lib}/exceptions/no_device_found_exception.d.ts +0 -0
  247. package/dist/{node → lib}/exceptions/no_device_found_exception.js +0 -0
  248. package/dist/{node → lib}/exceptions/no_device_found_exception.js.map +0 -0
  249. package/dist/{node → lib}/exceptions/not_supported_exception.d.ts +0 -0
  250. package/dist/{node → lib}/exceptions/not_supported_exception.js +0 -0
  251. package/dist/{node → lib}/exceptions/not_supported_exception.js.map +0 -0
  252. package/dist/{node → lib}/exceptions/os_failed_exception.d.ts +0 -0
  253. package/dist/{node → lib}/exceptions/os_failed_exception.js +0 -0
  254. package/dist/{node → lib}/exceptions/os_failed_exception.js.map +0 -0
  255. package/dist/{node → lib}/exceptions/out_of_request_ids_exception.d.ts +0 -0
  256. package/dist/{node → lib}/exceptions/out_of_request_ids_exception.js +0 -0
  257. package/dist/{node → lib}/exceptions/out_of_request_ids_exception.js.map +0 -0
  258. package/dist/{node → lib}/exceptions/request_timeout_exception.d.ts +0 -0
  259. package/dist/{node → lib}/exceptions/request_timeout_exception.js +0 -0
  260. package/dist/{node → lib}/exceptions/request_timeout_exception.js.map +0 -0
  261. package/dist/{node → lib}/exceptions/serial_port_busy_exception.d.ts +0 -0
  262. package/dist/{node → lib}/exceptions/serial_port_busy_exception.js +0 -0
  263. package/dist/{node → lib}/exceptions/serial_port_busy_exception.js.map +0 -0
  264. package/dist/lib/exceptions/set_device_state_exception_data.d.ts +25 -0
  265. package/dist/lib/exceptions/set_device_state_exception_data.js +21 -0
  266. package/dist/lib/exceptions/set_device_state_exception_data.js.map +1 -0
  267. package/dist/lib/exceptions/set_device_state_failed_exception.d.ts +14 -0
  268. package/dist/lib/exceptions/set_device_state_failed_exception.js +32 -0
  269. package/dist/lib/exceptions/set_device_state_failed_exception.js.map +1 -0
  270. package/dist/lib/exceptions/set_peripheral_state_exception_data.d.ts +20 -0
  271. package/dist/lib/exceptions/set_peripheral_state_exception_data.js +19 -0
  272. package/dist/lib/exceptions/set_peripheral_state_exception_data.js.map +1 -0
  273. package/dist/lib/exceptions/set_peripheral_state_failed_exception.d.ts +14 -0
  274. package/dist/lib/exceptions/set_peripheral_state_failed_exception.js +32 -0
  275. package/dist/lib/exceptions/set_peripheral_state_failed_exception.js.map +1 -0
  276. package/dist/{node → lib}/exceptions/setting_not_found_exception.d.ts +0 -0
  277. package/dist/{node → lib}/exceptions/setting_not_found_exception.js +0 -0
  278. package/dist/{node → lib}/exceptions/setting_not_found_exception.js.map +0 -0
  279. package/dist/{node → lib}/exceptions/stream_execution_exception.d.ts +0 -0
  280. package/dist/{node → lib}/exceptions/stream_execution_exception.js +0 -0
  281. package/dist/{node → lib}/exceptions/stream_execution_exception.js.map +0 -0
  282. package/dist/{node → lib}/exceptions/stream_execution_exception_data.d.ts +0 -0
  283. package/dist/{node → lib}/exceptions/stream_execution_exception_data.js +0 -0
  284. package/dist/{node → lib}/exceptions/stream_execution_exception_data.js.map +0 -0
  285. package/dist/{node → lib}/exceptions/stream_mode_exception.d.ts +0 -0
  286. package/dist/{node → lib}/exceptions/stream_mode_exception.js +0 -0
  287. package/dist/{node → lib}/exceptions/stream_mode_exception.js.map +0 -0
  288. package/dist/{node → lib}/exceptions/stream_movement_failed_exception.d.ts +0 -0
  289. package/dist/{node → lib}/exceptions/stream_movement_failed_exception.js +0 -0
  290. package/dist/{node → lib}/exceptions/stream_movement_failed_exception.js.map +0 -0
  291. package/dist/{node → lib}/exceptions/stream_movement_failed_exception_data.d.ts +0 -0
  292. package/dist/{node → lib}/exceptions/stream_movement_failed_exception_data.js +0 -0
  293. package/dist/{node → lib}/exceptions/stream_movement_failed_exception_data.js.map +0 -0
  294. package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception.d.ts +0 -0
  295. package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception.js +0 -0
  296. package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception.js.map +0 -0
  297. package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception_data.d.ts +0 -0
  298. package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception_data.js +0 -0
  299. package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception_data.js.map +0 -0
  300. package/dist/{node → lib}/exceptions/stream_setup_failed_exception.d.ts +0 -0
  301. package/dist/{node → lib}/exceptions/stream_setup_failed_exception.js +0 -0
  302. package/dist/{node → lib}/exceptions/stream_setup_failed_exception.js.map +0 -0
  303. package/dist/{node → lib}/exceptions/transport_already_used_exception.d.ts +0 -0
  304. package/dist/{node → lib}/exceptions/transport_already_used_exception.js +0 -0
  305. package/dist/{node → lib}/exceptions/transport_already_used_exception.js.map +0 -0
  306. package/dist/{node → lib}/exceptions/unknown_request_exception.d.ts +0 -0
  307. package/dist/{node → lib}/exceptions/unknown_request_exception.js +0 -0
  308. package/dist/{node → lib}/exceptions/unknown_request_exception.js.map +0 -0
  309. package/dist/lib/finalizer.d.ts +5 -0
  310. package/dist/lib/finalizer.js +21 -0
  311. package/dist/lib/finalizer.js.map +1 -0
  312. package/dist/{node → lib}/firmware_version.d.ts +0 -0
  313. package/dist/{node → lib}/firmware_version.js +0 -0
  314. package/dist/{node → lib}/firmware_version.js.map +0 -0
  315. package/dist/lib/gateway/bindings.d.ts +5 -0
  316. package/dist/lib/gateway/bindings.js +35 -0
  317. package/dist/lib/gateway/bindings.js.map +1 -0
  318. package/dist/{node/gateway/bindings.d.ts → lib/gateway/bindings.node.d.ts} +0 -0
  319. package/dist/{node/gateway/bindings.js → lib/gateway/bindings.node.js} +1 -1
  320. package/dist/lib/gateway/bindings.node.js.map +1 -0
  321. package/dist/{web/gateway/bindings.d.ts → lib/gateway/bindings.wasm.d.ts} +0 -0
  322. package/dist/{web/gateway/bindings.js → lib/gateway/bindings.wasm.js} +2 -1
  323. package/dist/lib/gateway/bindings.wasm.js.map +1 -0
  324. package/dist/{node → lib}/gateway/call.d.ts +0 -0
  325. package/dist/{web → lib}/gateway/call.js +2 -2
  326. package/dist/lib/gateway/call.js.map +1 -0
  327. package/dist/{node → lib}/gateway/convert_exceptions.d.ts +0 -0
  328. package/dist/{node → lib}/gateway/convert_exceptions.js +4 -0
  329. package/dist/lib/gateway/convert_exceptions.js.map +1 -0
  330. package/dist/{node → lib}/gateway/events.d.ts +0 -1
  331. package/dist/{node → lib}/gateway/events.js +4 -7
  332. package/dist/lib/gateway/events.js.map +1 -0
  333. package/dist/{node → lib}/gateway/index.d.ts +0 -0
  334. package/dist/{node → lib}/gateway/index.js +0 -0
  335. package/dist/{node → lib}/gateway/index.js.map +0 -0
  336. package/dist/{node → lib}/gateway/serialization.d.ts +0 -0
  337. package/dist/{node → lib}/gateway/serialization.js +0 -0
  338. package/dist/{node → lib}/gateway/serialization.js.map +0 -0
  339. package/dist/lib/gateway/wasm-exec.d.ts +1 -0
  340. package/dist/{web/wasm → lib/gateway}/wasm-exec.js +13 -54
  341. package/dist/lib/gateway/wasm-exec.js.map +1 -0
  342. package/dist/lib/gateway/wasm.d.ts +4 -0
  343. package/dist/{web/wasm → lib/gateway}/wasm.js +1 -3
  344. package/dist/lib/gateway/wasm.js.map +1 -0
  345. package/dist/lib/gcode/axis_mapping.d.ts +16 -0
  346. package/dist/{web/measurement.js → lib/gcode/axis_mapping.js} +11 -11
  347. package/dist/lib/gcode/axis_mapping.js.map +1 -0
  348. package/dist/lib/gcode/index.d.ts +8 -0
  349. package/dist/lib/gcode/index.js +20 -0
  350. package/dist/lib/gcode/index.js.map +1 -0
  351. package/dist/lib/gcode/translate_message.d.ts +21 -0
  352. package/dist/lib/gcode/translate_message.js +19 -0
  353. package/dist/lib/gcode/translate_message.js.map +1 -0
  354. package/dist/lib/gcode/translate_result.d.ts +17 -0
  355. package/dist/lib/gcode/translate_result.js +19 -0
  356. package/dist/lib/gcode/translate_result.js.map +1 -0
  357. package/dist/lib/gcode/translator.d.ts +68 -0
  358. package/dist/lib/gcode/translator.js +144 -0
  359. package/dist/lib/gcode/translator.js.map +1 -0
  360. package/dist/lib/gcode/translator_axis_definition.d.ts +20 -0
  361. package/dist/lib/gcode/translator_axis_definition.js +48 -0
  362. package/dist/lib/gcode/translator_axis_definition.js.map +1 -0
  363. package/dist/lib/gcode/translator_config.d.ts +18 -0
  364. package/dist/lib/gcode/translator_config.js +41 -0
  365. package/dist/lib/gcode/translator_config.js.map +1 -0
  366. package/dist/lib/gcode/translator_definition.d.ts +18 -0
  367. package/dist/{web/ascii/stream_axis_definition.js → lib/gcode/translator_definition.js} +11 -18
  368. package/dist/lib/gcode/translator_definition.js.map +1 -0
  369. package/dist/lib/gcode/translator_live.d.ts +70 -0
  370. package/dist/lib/gcode/translator_live.js +147 -0
  371. package/dist/lib/gcode/translator_live.js.map +1 -0
  372. package/dist/lib/gcode_ns.d.ts +19 -0
  373. package/dist/{web/tools.js → lib/gcode_ns.js} +14 -20
  374. package/dist/lib/gcode_ns.js.map +1 -0
  375. package/dist/{node → lib}/index.d.ts +3 -1
  376. package/dist/{node → lib}/index.js +6 -2
  377. package/dist/lib/index.js.map +1 -0
  378. package/dist/{node → lib}/library.d.ts +0 -0
  379. package/dist/{node → lib}/library.js +0 -0
  380. package/dist/{node → lib}/library.js.map +0 -0
  381. package/dist/{node → lib}/log_output_mode.d.ts +0 -0
  382. package/dist/{node → lib}/log_output_mode.js +0 -0
  383. package/dist/{node → lib}/log_output_mode.js.map +0 -0
  384. package/dist/{web → lib}/measurement.d.ts +1 -1
  385. package/dist/{node → lib}/measurement.js +0 -0
  386. package/dist/{node → lib}/measurement.js.map +1 -1
  387. package/dist/{node → lib}/protobufs/main_pb.d.ts +785 -0
  388. package/dist/{node → lib}/protobufs/main_pb.js +6039 -2
  389. package/dist/lib/protobufs/main_pb.js.map +1 -0
  390. package/dist/{node → lib}/rotation_direction.d.ts +0 -0
  391. package/dist/{node → lib}/rotation_direction.js +0 -0
  392. package/dist/{node → lib}/rotation_direction.js.map +0 -0
  393. package/dist/{node → lib}/tools.d.ts +0 -0
  394. package/dist/{node → lib}/tools.js +0 -0
  395. package/dist/{node → lib}/tools.js.map +0 -0
  396. package/dist/{node → lib}/units.d.ts +0 -0
  397. package/dist/{node → lib}/units.js +0 -0
  398. package/dist/{node → lib}/units.js.map +0 -0
  399. package/dist/lib/wasm.d.ts +4 -0
  400. package/dist/{web/init.js → lib/wasm.js} +5 -4
  401. package/dist/lib/wasm.js.map +1 -0
  402. package/package.json +9 -16
  403. package/dist/node/ascii/axis.d.ts +0 -172
  404. package/dist/node/ascii/axis.js.map +0 -1
  405. package/dist/node/ascii/axis_settings.js +0 -107
  406. package/dist/node/ascii/axis_settings.js.map +0 -1
  407. package/dist/node/ascii/connection.d.ts +0 -203
  408. package/dist/node/ascii/connection.js +0 -380
  409. package/dist/node/ascii/connection.js.map +0 -1
  410. package/dist/node/ascii/device.d.ts +0 -165
  411. package/dist/node/ascii/device.js.map +0 -1
  412. package/dist/node/ascii/device_settings.d.ts +0 -41
  413. package/dist/node/ascii/device_settings.js +0 -103
  414. package/dist/node/ascii/device_settings.js.map +0 -1
  415. package/dist/node/ascii/setting_constants.d.ts +0 -563
  416. package/dist/node/ascii/setting_constants.js.map +0 -1
  417. package/dist/node/ascii/stream.d.ts +0 -307
  418. package/dist/node/ascii/stream.js +0 -659
  419. package/dist/node/ascii/stream.js.map +0 -1
  420. package/dist/node/ascii/stream_axis_definition.d.ts +0 -17
  421. package/dist/node/ascii/stream_buffer.js.map +0 -1
  422. package/dist/node/binary/connection.js +0 -211
  423. package/dist/node/binary/connection.js.map +0 -1
  424. package/dist/node/exceptions/index.d.ts +0 -48
  425. package/dist/node/exceptions/index.js.map +0 -1
  426. package/dist/node/gateway/bindings.js.map +0 -1
  427. package/dist/node/gateway/call.js +0 -46
  428. package/dist/node/gateway/call.js.map +0 -1
  429. package/dist/node/gateway/convert_exceptions.js.map +0 -1
  430. package/dist/node/gateway/events.js.map +0 -1
  431. package/dist/node/index.js.map +0 -1
  432. package/dist/node/init.d.ts +0 -1
  433. package/dist/node/init.js +0 -8
  434. package/dist/node/init.js.map +0 -1
  435. package/dist/node/measurement.d.ts +0 -17
  436. package/dist/web/ascii/alert_event.d.ts +0 -28
  437. package/dist/web/ascii/alert_event.js +0 -21
  438. package/dist/web/ascii/alert_event.js.map +0 -1
  439. package/dist/web/ascii/all_axes.d.ts +0 -46
  440. package/dist/web/ascii/all_axes.js +0 -122
  441. package/dist/web/ascii/all_axes.js.map +0 -1
  442. package/dist/web/ascii/axis.js +0 -367
  443. package/dist/web/ascii/axis.js.map +0 -1
  444. package/dist/web/ascii/axis_identity.d.ts +0 -29
  445. package/dist/web/ascii/axis_identity.js +0 -21
  446. package/dist/web/ascii/axis_identity.js.map +0 -1
  447. package/dist/web/ascii/axis_settings.d.ts +0 -41
  448. package/dist/web/ascii/axis_settings.js.map +0 -1
  449. package/dist/web/ascii/axis_type.d.ts +0 -8
  450. package/dist/web/ascii/axis_type.js +0 -15
  451. package/dist/web/ascii/axis_type.js.map +0 -1
  452. package/dist/web/ascii/connection.js.map +0 -1
  453. package/dist/web/ascii/device.js +0 -296
  454. package/dist/web/ascii/device.js.map +0 -1
  455. package/dist/web/ascii/device_identity.d.ts +0 -33
  456. package/dist/web/ascii/device_identity.js +0 -23
  457. package/dist/web/ascii/device_identity.js.map +0 -1
  458. package/dist/web/ascii/device_io.d.ts +0 -80
  459. package/dist/web/ascii/device_io.js +0 -199
  460. package/dist/web/ascii/device_io.js.map +0 -1
  461. package/dist/web/ascii/device_io_info.d.ts +0 -24
  462. package/dist/web/ascii/device_io_info.js +0 -20
  463. package/dist/web/ascii/device_io_info.js.map +0 -1
  464. package/dist/web/ascii/device_settings.js.map +0 -1
  465. package/dist/web/ascii/index.d.ts +0 -26
  466. package/dist/web/ascii/index.js +0 -56
  467. package/dist/web/ascii/index.js.map +0 -1
  468. package/dist/web/ascii/lockstep.d.ts +0 -120
  469. package/dist/web/ascii/lockstep.js +0 -281
  470. package/dist/web/ascii/lockstep.js.map +0 -1
  471. package/dist/web/ascii/lockstep_axes.d.ts +0 -24
  472. package/dist/web/ascii/lockstep_axes.js +0 -20
  473. package/dist/web/ascii/lockstep_axes.js.map +0 -1
  474. package/dist/web/ascii/message_type.d.ts +0 -10
  475. package/dist/web/ascii/message_type.js +0 -17
  476. package/dist/web/ascii/message_type.js.map +0 -1
  477. package/dist/web/ascii/response.d.ts +0 -37
  478. package/dist/web/ascii/response.js +0 -23
  479. package/dist/web/ascii/response.js.map +0 -1
  480. package/dist/web/ascii/setting_constants.js +0 -570
  481. package/dist/web/ascii/setting_constants.js.map +0 -1
  482. package/dist/web/ascii/stream.js.map +0 -1
  483. package/dist/web/ascii/stream_axis_definition.js.map +0 -1
  484. package/dist/web/ascii/stream_axis_type.d.ts +0 -7
  485. package/dist/web/ascii/stream_axis_type.js +0 -14
  486. package/dist/web/ascii/stream_axis_type.js.map +0 -1
  487. package/dist/web/ascii/stream_buffer.d.ts +0 -27
  488. package/dist/web/ascii/stream_buffer.js +0 -71
  489. package/dist/web/ascii/stream_buffer.js.map +0 -1
  490. package/dist/web/ascii/stream_mode.d.ts +0 -9
  491. package/dist/web/ascii/stream_mode.js +0 -16
  492. package/dist/web/ascii/stream_mode.js.map +0 -1
  493. package/dist/web/ascii/transport.d.ts +0 -38
  494. package/dist/web/ascii/transport.js +0 -91
  495. package/dist/web/ascii/transport.js.map +0 -1
  496. package/dist/web/ascii/unknown_response_event.d.ts +0 -37
  497. package/dist/web/ascii/unknown_response_event.js +0 -23
  498. package/dist/web/ascii/unknown_response_event.js.map +0 -1
  499. package/dist/web/ascii/warning_flags.d.ts +0 -137
  500. package/dist/web/ascii/warning_flags.js +0 -144
  501. package/dist/web/ascii/warning_flags.js.map +0 -1
  502. package/dist/web/ascii/warnings.d.ts +0 -19
  503. package/dist/web/ascii/warnings.js +0 -62
  504. package/dist/web/ascii/warnings.js.map +0 -1
  505. package/dist/web/ascii_ns.d.ts +0 -55
  506. package/dist/web/ascii_ns.js +0 -53
  507. package/dist/web/ascii_ns.js.map +0 -1
  508. package/dist/web/binary/binary_settings.d.ts +0 -70
  509. package/dist/web/binary/binary_settings.js +0 -77
  510. package/dist/web/binary/binary_settings.js.map +0 -1
  511. package/dist/web/binary/command_code.d.ts +0 -102
  512. package/dist/web/binary/command_code.js +0 -109
  513. package/dist/web/binary/command_code.js.map +0 -1
  514. package/dist/web/binary/connection.d.ts +0 -115
  515. package/dist/web/binary/connection.js.map +0 -1
  516. package/dist/web/binary/device.d.ts +0 -192
  517. package/dist/web/binary/device.js +0 -375
  518. package/dist/web/binary/device.js.map +0 -1
  519. package/dist/web/binary/device_identity.d.ts +0 -42
  520. package/dist/web/binary/device_identity.js +0 -25
  521. package/dist/web/binary/device_identity.js.map +0 -1
  522. package/dist/web/binary/device_settings.d.ts +0 -24
  523. package/dist/web/binary/device_settings.js +0 -66
  524. package/dist/web/binary/device_settings.js.map +0 -1
  525. package/dist/web/binary/device_type.d.ts +0 -8
  526. package/dist/web/binary/device_type.js +0 -15
  527. package/dist/web/binary/device_type.js.map +0 -1
  528. package/dist/web/binary/error_code.d.ts +0 -97
  529. package/dist/web/binary/error_code.js +0 -104
  530. package/dist/web/binary/error_code.js.map +0 -1
  531. package/dist/web/binary/index.d.ts +0 -12
  532. package/dist/web/binary/index.js +0 -28
  533. package/dist/web/binary/index.js.map +0 -1
  534. package/dist/web/binary/message.d.ts +0 -20
  535. package/dist/web/binary/message.js +0 -19
  536. package/dist/web/binary/message.js.map +0 -1
  537. package/dist/web/binary/reply_code.d.ts +0 -12
  538. package/dist/web/binary/reply_code.js +0 -19
  539. package/dist/web/binary/reply_code.js.map +0 -1
  540. package/dist/web/binary/reply_only_event.d.ts +0 -20
  541. package/dist/web/binary/reply_only_event.js +0 -19
  542. package/dist/web/binary/reply_only_event.js.map +0 -1
  543. package/dist/web/binary/unknown_response_event.d.ts +0 -20
  544. package/dist/web/binary/unknown_response_event.js +0 -19
  545. package/dist/web/binary/unknown_response_event.js.map +0 -1
  546. package/dist/web/binary_ns.d.ts +0 -27
  547. package/dist/web/binary_ns.js +0 -39
  548. package/dist/web/binary_ns.js.map +0 -1
  549. package/dist/web/device_db_source_type.d.ts +0 -7
  550. package/dist/web/device_db_source_type.js +0 -14
  551. package/dist/web/device_db_source_type.js.map +0 -1
  552. package/dist/web/exceptions/binary_command_failed_exception.d.ts +0 -14
  553. package/dist/web/exceptions/binary_command_failed_exception.js +0 -32
  554. package/dist/web/exceptions/binary_command_failed_exception.js.map +0 -1
  555. package/dist/web/exceptions/binary_command_failed_exception_data.d.ts +0 -12
  556. package/dist/web/exceptions/binary_command_failed_exception_data.js +0 -17
  557. package/dist/web/exceptions/binary_command_failed_exception_data.js.map +0 -1
  558. package/dist/web/exceptions/command_failed_exception.d.ts +0 -14
  559. package/dist/web/exceptions/command_failed_exception.js +0 -32
  560. package/dist/web/exceptions/command_failed_exception.js.map +0 -1
  561. package/dist/web/exceptions/command_failed_exception_data.d.ts +0 -24
  562. package/dist/web/exceptions/command_failed_exception_data.js +0 -20
  563. package/dist/web/exceptions/command_failed_exception_data.js.map +0 -1
  564. package/dist/web/exceptions/command_preempted_exception.d.ts +0 -7
  565. package/dist/web/exceptions/command_preempted_exception.js +0 -17
  566. package/dist/web/exceptions/command_preempted_exception.js.map +0 -1
  567. package/dist/web/exceptions/connection_closed_exception.d.ts +0 -7
  568. package/dist/web/exceptions/connection_closed_exception.js +0 -17
  569. package/dist/web/exceptions/connection_closed_exception.js.map +0 -1
  570. package/dist/web/exceptions/connection_failed_exception.d.ts +0 -7
  571. package/dist/web/exceptions/connection_failed_exception.js +0 -17
  572. package/dist/web/exceptions/connection_failed_exception.js.map +0 -1
  573. package/dist/web/exceptions/conversion_failed_exception.d.ts +0 -7
  574. package/dist/web/exceptions/conversion_failed_exception.js +0 -17
  575. package/dist/web/exceptions/conversion_failed_exception.js.map +0 -1
  576. package/dist/web/exceptions/device_address_conflict_exception.d.ts +0 -14
  577. package/dist/web/exceptions/device_address_conflict_exception.js +0 -32
  578. package/dist/web/exceptions/device_address_conflict_exception.js.map +0 -1
  579. package/dist/web/exceptions/device_address_conflict_exception_data.d.ts +0 -12
  580. package/dist/web/exceptions/device_address_conflict_exception_data.js +0 -17
  581. package/dist/web/exceptions/device_address_conflict_exception_data.js.map +0 -1
  582. package/dist/web/exceptions/device_busy_exception.d.ts +0 -7
  583. package/dist/web/exceptions/device_busy_exception.js +0 -17
  584. package/dist/web/exceptions/device_busy_exception.js.map +0 -1
  585. package/dist/web/exceptions/device_db_failed_exception.d.ts +0 -7
  586. package/dist/web/exceptions/device_db_failed_exception.js +0 -17
  587. package/dist/web/exceptions/device_db_failed_exception.js.map +0 -1
  588. package/dist/web/exceptions/device_failed_exception.d.ts +0 -8
  589. package/dist/web/exceptions/device_failed_exception.js +0 -18
  590. package/dist/web/exceptions/device_failed_exception.js.map +0 -1
  591. package/dist/web/exceptions/device_not_identified_exception.d.ts +0 -7
  592. package/dist/web/exceptions/device_not_identified_exception.js +0 -17
  593. package/dist/web/exceptions/device_not_identified_exception.js.map +0 -1
  594. package/dist/web/exceptions/index.js +0 -102
  595. package/dist/web/exceptions/index.js.map +0 -1
  596. package/dist/web/exceptions/internal_error_exception.d.ts +0 -7
  597. package/dist/web/exceptions/internal_error_exception.js +0 -17
  598. package/dist/web/exceptions/internal_error_exception.js.map +0 -1
  599. package/dist/web/exceptions/invalid_argument_exception.d.ts +0 -7
  600. package/dist/web/exceptions/invalid_argument_exception.js +0 -17
  601. package/dist/web/exceptions/invalid_argument_exception.js.map +0 -1
  602. package/dist/web/exceptions/invalid_data_exception.d.ts +0 -7
  603. package/dist/web/exceptions/invalid_data_exception.js +0 -17
  604. package/dist/web/exceptions/invalid_data_exception.js.map +0 -1
  605. package/dist/web/exceptions/invalid_packet_exception.d.ts +0 -14
  606. package/dist/web/exceptions/invalid_packet_exception.js +0 -32
  607. package/dist/web/exceptions/invalid_packet_exception.js.map +0 -1
  608. package/dist/web/exceptions/invalid_packet_exception_data.d.ts +0 -16
  609. package/dist/web/exceptions/invalid_packet_exception_data.js +0 -18
  610. package/dist/web/exceptions/invalid_packet_exception_data.js.map +0 -1
  611. package/dist/web/exceptions/invalid_park_state_exception.d.ts +0 -7
  612. package/dist/web/exceptions/invalid_park_state_exception.js +0 -17
  613. package/dist/web/exceptions/invalid_park_state_exception.js.map +0 -1
  614. package/dist/web/exceptions/invalid_response_exception.d.ts +0 -14
  615. package/dist/web/exceptions/invalid_response_exception.js +0 -32
  616. package/dist/web/exceptions/invalid_response_exception.js.map +0 -1
  617. package/dist/web/exceptions/invalid_response_exception_data.d.ts +0 -12
  618. package/dist/web/exceptions/invalid_response_exception_data.js +0 -17
  619. package/dist/web/exceptions/invalid_response_exception_data.js.map +0 -1
  620. package/dist/web/exceptions/io_channel_out_of_range_exception.d.ts +0 -7
  621. package/dist/web/exceptions/io_channel_out_of_range_exception.js +0 -17
  622. package/dist/web/exceptions/io_channel_out_of_range_exception.js.map +0 -1
  623. package/dist/web/exceptions/io_failed_exception.d.ts +0 -7
  624. package/dist/web/exceptions/io_failed_exception.js +0 -17
  625. package/dist/web/exceptions/io_failed_exception.js.map +0 -1
  626. package/dist/web/exceptions/lockstep_enabled_exception.d.ts +0 -7
  627. package/dist/web/exceptions/lockstep_enabled_exception.js +0 -17
  628. package/dist/web/exceptions/lockstep_enabled_exception.js.map +0 -1
  629. package/dist/web/exceptions/lockstep_not_enabled_exception.d.ts +0 -7
  630. package/dist/web/exceptions/lockstep_not_enabled_exception.js +0 -17
  631. package/dist/web/exceptions/lockstep_not_enabled_exception.js.map +0 -1
  632. package/dist/web/exceptions/motion_lib_exception.d.ts +0 -8
  633. package/dist/web/exceptions/motion_lib_exception.js +0 -15
  634. package/dist/web/exceptions/motion_lib_exception.js.map +0 -1
  635. package/dist/web/exceptions/movement_failed_exception.d.ts +0 -14
  636. package/dist/web/exceptions/movement_failed_exception.js +0 -32
  637. package/dist/web/exceptions/movement_failed_exception.js.map +0 -1
  638. package/dist/web/exceptions/movement_failed_exception_data.d.ts +0 -16
  639. package/dist/web/exceptions/movement_failed_exception_data.js +0 -18
  640. package/dist/web/exceptions/movement_failed_exception_data.js.map +0 -1
  641. package/dist/web/exceptions/movement_interrupted_exception.d.ts +0 -14
  642. package/dist/web/exceptions/movement_interrupted_exception.js +0 -32
  643. package/dist/web/exceptions/movement_interrupted_exception.js.map +0 -1
  644. package/dist/web/exceptions/movement_interrupted_exception_data.d.ts +0 -16
  645. package/dist/web/exceptions/movement_interrupted_exception_data.js +0 -18
  646. package/dist/web/exceptions/movement_interrupted_exception_data.js.map +0 -1
  647. package/dist/web/exceptions/no_device_found_exception.d.ts +0 -7
  648. package/dist/web/exceptions/no_device_found_exception.js +0 -17
  649. package/dist/web/exceptions/no_device_found_exception.js.map +0 -1
  650. package/dist/web/exceptions/not_supported_exception.d.ts +0 -7
  651. package/dist/web/exceptions/not_supported_exception.js +0 -17
  652. package/dist/web/exceptions/not_supported_exception.js.map +0 -1
  653. package/dist/web/exceptions/os_failed_exception.d.ts +0 -7
  654. package/dist/web/exceptions/os_failed_exception.js +0 -17
  655. package/dist/web/exceptions/os_failed_exception.js.map +0 -1
  656. package/dist/web/exceptions/out_of_request_ids_exception.d.ts +0 -7
  657. package/dist/web/exceptions/out_of_request_ids_exception.js +0 -17
  658. package/dist/web/exceptions/out_of_request_ids_exception.js.map +0 -1
  659. package/dist/web/exceptions/request_timeout_exception.d.ts +0 -7
  660. package/dist/web/exceptions/request_timeout_exception.js +0 -17
  661. package/dist/web/exceptions/request_timeout_exception.js.map +0 -1
  662. package/dist/web/exceptions/serial_port_busy_exception.d.ts +0 -7
  663. package/dist/web/exceptions/serial_port_busy_exception.js +0 -17
  664. package/dist/web/exceptions/serial_port_busy_exception.js.map +0 -1
  665. package/dist/web/exceptions/setting_not_found_exception.d.ts +0 -7
  666. package/dist/web/exceptions/setting_not_found_exception.js +0 -17
  667. package/dist/web/exceptions/setting_not_found_exception.js.map +0 -1
  668. package/dist/web/exceptions/stream_execution_exception.d.ts +0 -14
  669. package/dist/web/exceptions/stream_execution_exception.js +0 -32
  670. package/dist/web/exceptions/stream_execution_exception.js.map +0 -1
  671. package/dist/web/exceptions/stream_execution_exception_data.d.ts +0 -16
  672. package/dist/web/exceptions/stream_execution_exception_data.js +0 -18
  673. package/dist/web/exceptions/stream_execution_exception_data.js.map +0 -1
  674. package/dist/web/exceptions/stream_mode_exception.d.ts +0 -7
  675. package/dist/web/exceptions/stream_mode_exception.js +0 -17
  676. package/dist/web/exceptions/stream_mode_exception.js.map +0 -1
  677. package/dist/web/exceptions/stream_movement_failed_exception.d.ts +0 -14
  678. package/dist/web/exceptions/stream_movement_failed_exception.js +0 -32
  679. package/dist/web/exceptions/stream_movement_failed_exception.js.map +0 -1
  680. package/dist/web/exceptions/stream_movement_failed_exception_data.d.ts +0 -16
  681. package/dist/web/exceptions/stream_movement_failed_exception_data.js +0 -18
  682. package/dist/web/exceptions/stream_movement_failed_exception_data.js.map +0 -1
  683. package/dist/web/exceptions/stream_movement_interrupted_exception.d.ts +0 -14
  684. package/dist/web/exceptions/stream_movement_interrupted_exception.js +0 -32
  685. package/dist/web/exceptions/stream_movement_interrupted_exception.js.map +0 -1
  686. package/dist/web/exceptions/stream_movement_interrupted_exception_data.d.ts +0 -16
  687. package/dist/web/exceptions/stream_movement_interrupted_exception_data.js +0 -18
  688. package/dist/web/exceptions/stream_movement_interrupted_exception_data.js.map +0 -1
  689. package/dist/web/exceptions/stream_setup_failed_exception.d.ts +0 -7
  690. package/dist/web/exceptions/stream_setup_failed_exception.js +0 -17
  691. package/dist/web/exceptions/stream_setup_failed_exception.js.map +0 -1
  692. package/dist/web/exceptions/transport_already_used_exception.d.ts +0 -7
  693. package/dist/web/exceptions/transport_already_used_exception.js +0 -17
  694. package/dist/web/exceptions/transport_already_used_exception.js.map +0 -1
  695. package/dist/web/exceptions/unknown_request_exception.d.ts +0 -7
  696. package/dist/web/exceptions/unknown_request_exception.js +0 -17
  697. package/dist/web/exceptions/unknown_request_exception.js.map +0 -1
  698. package/dist/web/firmware_version.d.ts +0 -20
  699. package/dist/web/firmware_version.js +0 -19
  700. package/dist/web/firmware_version.js.map +0 -1
  701. package/dist/web/gateway/bindings.js.map +0 -1
  702. package/dist/web/gateway/call.d.ts +0 -6
  703. package/dist/web/gateway/call.js.map +0 -1
  704. package/dist/web/gateway/convert_exceptions.d.ts +0 -4
  705. package/dist/web/gateway/convert_exceptions.js +0 -74
  706. package/dist/web/gateway/convert_exceptions.js.map +0 -1
  707. package/dist/web/gateway/events.d.ts +0 -9
  708. package/dist/web/gateway/events.js +0 -60
  709. package/dist/web/gateway/events.js.map +0 -1
  710. package/dist/web/gateway/index.d.ts +0 -4
  711. package/dist/web/gateway/index.js +0 -23
  712. package/dist/web/gateway/index.js.map +0 -1
  713. package/dist/web/gateway/serialization.d.ts +0 -6
  714. package/dist/web/gateway/serialization.js +0 -39
  715. package/dist/web/gateway/serialization.js.map +0 -1
  716. package/dist/web/index.d.ts +0 -12
  717. package/dist/web/index.js +0 -33
  718. package/dist/web/index.js.map +0 -1
  719. package/dist/web/init.d.ts +0 -5
  720. package/dist/web/init.js.map +0 -1
  721. package/dist/web/library.d.ts +0 -30
  722. package/dist/web/library.js +0 -73
  723. package/dist/web/library.js.map +0 -1
  724. package/dist/web/log_output_mode.d.ts +0 -9
  725. package/dist/web/log_output_mode.js +0 -16
  726. package/dist/web/log_output_mode.js.map +0 -1
  727. package/dist/web/measurement.js.map +0 -1
  728. package/dist/web/protobufs/main_pb.d.ts +0 -5228
  729. package/dist/web/protobufs/main_pb.js +0 -39387
  730. package/dist/web/rotation_direction.d.ts +0 -9
  731. package/dist/web/rotation_direction.js +0 -16
  732. package/dist/web/rotation_direction.js.map +0 -1
  733. package/dist/web/tools.d.ts +0 -10
  734. package/dist/web/tools.js.map +0 -1
  735. package/dist/web/units.d.ts +0 -147
  736. package/dist/web/units.js +0 -167
  737. package/dist/web/units.js.map +0 -1
  738. package/dist/web/wasm/wasm-exec.d.ts +0 -1
  739. package/dist/web/wasm/wasm-exec.js.map +0 -1
  740. package/dist/web/wasm/wasm.d.ts +0 -14
  741. package/dist/web/wasm/wasm.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wasm-exec.js","sourceRoot":"","sources":["../../../src/gateway/wasm-exec.js"],"names":[],"mappings":";AAAA;;;;EAIE;AAEF,sDAAsD;AACtD,qDAAqD;AACrD,iDAAiD;AAEjD,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE;IACtB,+DAA+D;IAC/D,6CAA6C;IAC7C,EAAE;IACF,2BAA2B;IAC3B,aAAa;IACb,YAAY;IACZ,aAAa;IACb,WAAW;IAEX,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QAClC,wBAAwB;KACxB;SAAM,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QACzC,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;KACvB;SAAM,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE;QACvC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;KACnB;SAAM;QACN,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;KACjF;IAED,MAAM,MAAM,GAAG,GAAG,EAAE;QACnB,MAAM,GAAG,GAAG,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACzC,GAAG,CAAC,IAAI,GAAG,QAAQ,CAAC;QACpB,OAAO,GAAG,CAAC;IACZ,CAAC,CAAC;IAEF,I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IAAI,CAAC,MAAM,EAAE;gBAChB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;aACjD;YACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YAC5B,IAAI,IAAI,CAAC,MAAM,EAAE;gBAChB,IAAI,CAAC,mBAAmB,EAAE,CAAC;aAC3B;QACF,CAAC;QAED,gBAAgB,CAAC,EAAE;YAClB,MAAM,EAAE,GAAG,IAAI,CAAC;YAChB,OAAO;gBACN,MAAM,KAAK,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;gBACtD,EAAE,CAAC,aAAa,GAAG,KAAK,CAAC;gBACzB,EAAE,CAAC,OAAO,EAAE,CAAC;gBACb,OAAO,KAAK,CAAC,MAAM,CAAC;YACrB,CAAC,CAAC;QACH,CAAC;KACD,CAAA;AACF,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,OAAO,GAAG;IAChB,QAAQ;CACR,CAAC","sourcesContent":["/*\nIMPORTANT\nThis file was copied from `https://github.com/golang/go/blob/release-branch.go1.15/misc/wasm/wasm_exec.js`.\nIt has been modified a bit to reduce webpack warnings about how the `require()` function is being used\n*/\n\n// Copyright 2018 The Go Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style\n// license that can be found in the LICENSE file.\n\nconst wasmExec = (() => {\n\t// Map multiple JavaScript environments to a single common API,\n\t// preferring web standards over Node.js API.\n\t//\n\t// Environments considered:\n\t// - Browsers\n\t// - Node.js\n\t// - Electron\n\t// - Parcel\n\n\tif (typeof global !== \"undefined\") {\n\t\t// global already exists\n\t} else if (typeof window !== \"undefined\") {\n\t\twindow.global = window;\n\t} else if (typeof self !== \"undefined\") {\n\t\tself.global = self;\n\t} else {\n\t\tthrow new Error(\"cannot export Go (neither global, window nor self is defined)\");\n\t}\n\n\tconst enosys = () => {\n\t\tconst err = new Error(\"not implemented\");\n\t\terr.code = \"ENOSYS\";\n\t\treturn err;\n\t};\n\n\tif (!global.fs) {\n\t\tlet outputBuf = \"\";\n\t\tglobal.fs = {\n\t\t\tconstants: { O_WRONLY: -1, O_RDWR: -1, O_CREAT: -1, O_TRUNC: -1, O_APPEND: -1, O_EXCL: -1 }, // unused\n\t\t\twriteSync(fd, buf) {\n\t\t\t\toutputBuf += decoder.decode(buf);\n\t\t\t\tconst nl = outputBuf.lastIndexOf(\"\\n\");\n\t\t\t\tif (nl != -1) {\n\t\t\t\t\tconsole.log(outputBuf.substr(0, nl));\n\t\t\t\t\toutputBuf = outputBuf.substr(nl + 1);\n\t\t\t\t}\n\t\t\t\treturn buf.length;\n\t\t\t},\n\t\t\twrite(fd, buf, offset, length, position, callback) {\n\t\t\t\tif (offset !== 0 || length !== buf.length || position !== null) {\n\t\t\t\t\tcallback(enosys());\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst n = this.writeSync(fd, buf);\n\t\t\t\tcallback(null, n);\n\t\t\t},\n\t\t\tchmod(path, mode, callback) { callback(enosys()); },\n\t\t\tchown(path, uid, gid, callback) { callback(enosys()); },\n\t\t\tclose(fd, callback) { callback(enosys()); },\n\t\t\tfchmod(fd, mode, callback) { callback(enosys()); },\n\t\t\tfchown(fd, uid, gid, callback) { callback(enosys()); },\n\t\t\tfstat(fd, callback) { callback(enosys()); },\n\t\t\tfsync(fd, callback) { callback(null); },\n\t\t\tftruncate(fd, length, callback) { callback(enosys()); },\n\t\t\tlchown(path, uid, gid, callback) { callback(enosys()); },\n\t\t\tlink(path, link, callback) { callback(enosys()); },\n\t\t\tlstat(path, callback) { callback(enosys()); },\n\t\t\tmkdir(path, perm, callback) { callback(enosys()); },\n\t\t\topen(path, flags, mode, callback) { callback(enosys()); },\n\t\t\tread(fd, buffer, offset, length, position, callback) { callback(enosys()); },\n\t\t\treaddir(path, callback) { callback(enosys()); },\n\t\t\treadlink(path, callback) { callback(enosys()); },\n\t\t\trename(from, to, callback) { callback(enosys()); },\n\t\t\trmdir(path, callback) { callback(enosys()); },\n\t\t\tstat(path, callback) { callback(enosys()); },\n\t\t\tsymlink(path, link, callback) { callback(enosys()); },\n\t\t\ttruncate(path, length, callback) { callback(enosys()); },\n\t\t\tunlink(path, callback) { callback(enosys()); },\n\t\t\tutimes(path, atime, mtime, callback) { callback(enosys()); },\n\t\t};\n\t}\n\n\tif (!global.process) {\n\t\tglobal.process = {\n\t\t\tgetuid() { return -1; },\n\t\t\tgetgid() { return -1; },\n\t\t\tgeteuid() { return -1; },\n\t\t\tgetegid() { return -1; },\n\t\t\tgetgroups() { throw enosys(); },\n\t\t\tpid: -1,\n\t\t\tppid: -1,\n\t\t\tumask() { throw enosys(); },\n\t\t\tcwd() { throw enosys(); },\n\t\t\tchdir() { throw enosys(); },\n\t\t}\n\t}\n\n\tif (!global.crypto) {\n\t\tconst nodeCrypto = require(\"crypto\");\n\t\tglobal.crypto = {\n\t\t\tgetRandomValues(b) {\n\t\t\t\tnodeCrypto.randomFillSync(b);\n\t\t\t},\n\t\t};\n\t}\n\n\tif (!global.performance) {\n\t\tglobal.performance = {\n\t\t\tnow() {\n\t\t\t\tconst [sec, nsec] = process.hrtime();\n\t\t\t\treturn sec * 1000 + nsec / 1000000;\n\t\t\t},\n\t\t};\n\t}\n\n\tif (!global.TextEncoder) {\n\t\tglobal.TextEncoder = require(\"util\").TextEncoder;\n\t}\n\n\tif (!global.TextDecoder) {\n\t\tglobal.TextDecoder = require(\"util\").TextDecoder;\n\t}\n\n\t// End of polyfills for common API.\n\n\tconst encoder = new TextEncoder(\"utf-8\");\n\tconst decoder = new TextDecoder(\"utf-8\");\n\n\tglobal.Go = class {\n\t\tconstructor() {\n\t\t\tthis.argv = [\"js\"];\n\t\t\tthis.env = {};\n\t\t\tthis.exit = (code) => {\n\t\t\t\tif (code !== 0) {\n\t\t\t\t\tconsole.warn(\"exit code:\", code);\n\t\t\t\t}\n\t\t\t};\n\t\t\tthis._exitPromise = new Promise((resolve) => {\n\t\t\t\tthis._resolveExitPromise = resolve;\n\t\t\t});\n\t\t\tthis._pendingEvent = null;\n\t\t\tthis._scheduledTimeouts = new Map();\n\t\t\tthis._nextCallbackTimeoutID = 1;\n\n\t\t\tconst setInt64 = (addr, v) => {\n\t\t\t\tthis.mem.setUint32(addr + 0, v, true);\n\t\t\t\tthis.mem.setUint32(addr + 4, Math.floor(v / 4294967296), true);\n\t\t\t}\n\n\t\t\tconst getInt64 = (addr) => {\n\t\t\t\tconst low = this.mem.getUint32(addr + 0, true);\n\t\t\t\tconst high = this.mem.getInt32(addr + 4, true);\n\t\t\t\treturn low + high * 4294967296;\n\t\t\t}\n\n\t\t\tconst loadValue = (addr) => {\n\t\t\t\tconst f = this.mem.getFloat64(addr, true);\n\t\t\t\tif (f === 0) {\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\t\t\t\tif (!isNaN(f)) {\n\t\t\t\t\treturn f;\n\t\t\t\t}\n\n\t\t\t\tconst id = this.mem.getUint32(addr, true);\n\t\t\t\treturn this._values[id];\n\t\t\t}\n\n\t\t\tconst storeValue = (addr, v) => {\n\t\t\t\tconst nanHead = 0x7FF80000;\n\n\t\t\t\tif (typeof v === \"number\" && v !== 0) {\n\t\t\t\t\tif (isNaN(v)) {\n\t\t\t\t\t\tthis.mem.setUint32(addr + 4, nanHead, true);\n\t\t\t\t\t\tthis.mem.setUint32(addr, 0, true);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tthis.mem.setFloat64(addr, v, true);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (v === undefined) {\n\t\t\t\t\tthis.mem.setFloat64(addr, 0, true);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tlet id = this._ids.get(v);\n\t\t\t\tif (id === undefined) {\n\t\t\t\t\tid = this._idPool.pop();\n\t\t\t\t\tif (id === undefined) {\n\t\t\t\t\t\tid = this._values.length;\n\t\t\t\t\t}\n\t\t\t\t\tthis._values[id] = v;\n\t\t\t\t\tthis._goRefCounts[id] = 0;\n\t\t\t\t\tthis._ids.set(v, id);\n\t\t\t\t}\n\t\t\t\tthis._goRefCounts[id]++;\n\t\t\t\tlet typeFlag = 0;\n\t\t\t\tswitch (typeof v) {\n\t\t\t\t\tcase \"object\":\n\t\t\t\t\t\tif (v !== null) {\n\t\t\t\t\t\t\ttypeFlag = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"string\":\n\t\t\t\t\t\ttypeFlag = 2;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"symbol\":\n\t\t\t\t\t\ttypeFlag = 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"function\":\n\t\t\t\t\t\ttypeFlag = 4;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tthis.mem.setUint32(addr + 4, nanHead | typeFlag, true);\n\t\t\t\tthis.mem.setUint32(addr, id, true);\n\t\t\t}\n\n\t\t\tconst loadSlice = (addr) => {\n\t\t\t\tconst array = getInt64(addr + 0);\n\t\t\t\tconst len = getInt64(addr + 8);\n\t\t\t\treturn new Uint8Array(this._inst.exports.mem.buffer, array, len);\n\t\t\t}\n\n\t\t\tconst loadSliceOfValues = (addr) => {\n\t\t\t\tconst array = getInt64(addr + 0);\n\t\t\t\tconst len = getInt64(addr + 8);\n\t\t\t\tconst a = new Array(len);\n\t\t\t\tfor (let i = 0; i < len; i++) {\n\t\t\t\t\ta[i] = loadValue(array + i * 8);\n\t\t\t\t}\n\t\t\t\treturn a;\n\t\t\t}\n\n\t\t\tconst loadString = (addr) => {\n\t\t\t\tconst saddr = getInt64(addr + 0);\n\t\t\t\tconst len = getInt64(addr + 8);\n\t\t\t\treturn decoder.decode(new DataView(this._inst.exports.mem.buffer, saddr, len));\n\t\t\t}\n\n\t\t\tconst timeOrigin = Date.now() - performance.now();\n\t\t\tthis.importObject = {\n\t\t\t\tgo: {\n\t\t\t\t\t// Go's SP does not change as long as no Go code is running. Some operations (e.g. calls, getters and setters)\n\t\t\t\t\t// may synchronously trigger a Go event handler. This makes Go code get executed in the middle of the imported\n\t\t\t\t\t// function. A goroutine can switch to a new stack if the current stack is too small (see morestack function).\n\t\t\t\t\t// This changes the SP, thus we have to update the SP used by the imported function.\n\n\t\t\t\t\t// func wasmExit(code int32)\n\t\t\t\t\t\"runtime.wasmExit\": (sp) => {\n\t\t\t\t\t\tconst code = this.mem.getInt32(sp + 8, true);\n\t\t\t\t\t\tthis.exited = true;\n\t\t\t\t\t\tdelete this._inst;\n\t\t\t\t\t\tdelete this._values;\n\t\t\t\t\t\tdelete this._goRefCounts;\n\t\t\t\t\t\tdelete this._ids;\n\t\t\t\t\t\tdelete this._idPool;\n\t\t\t\t\t\tthis.exit(code);\n\t\t\t\t\t},\n\n\t\t\t\t\t// func wasmWrite(fd uintptr, p unsafe.Pointer, n int32)\n\t\t\t\t\t\"runtime.wasmWrite\": (sp) => {\n\t\t\t\t\t\tconst fd = getInt64(sp + 8);\n\t\t\t\t\t\tconst p = getInt64(sp + 16);\n\t\t\t\t\t\tconst n = this.mem.getInt32(sp + 24, true);\n\t\t\t\t\t\tfs.writeSync(fd, new Uint8Array(this._inst.exports.mem.buffer, p, n));\n\t\t\t\t\t},\n\n\t\t\t\t\t// func resetMemoryDataView()\n\t\t\t\t\t\"runtime.resetMemoryDataView\": (sp) => {\n\t\t\t\t\t\tthis.mem = new DataView(this._inst.exports.mem.buffer);\n\t\t\t\t\t},\n\n\t\t\t\t\t// func nanotime1() int64\n\t\t\t\t\t\"runtime.nanotime1\": (sp) => {\n\t\t\t\t\t\tsetInt64(sp + 8, (timeOrigin + performance.now()) * 1000000);\n\t\t\t\t\t},\n\n\t\t\t\t\t// func walltime1() (sec int64, nsec int32)\n\t\t\t\t\t\"runtime.walltime1\": (sp) => {\n\t\t\t\t\t\tconst msec = (new Date).getTime();\n\t\t\t\t\t\tsetInt64(sp + 8, msec / 1000);\n\t\t\t\t\t\tthis.mem.setInt32(sp + 16, (msec % 1000) * 1000000, true);\n\t\t\t\t\t},\n\n\t\t\t\t\t// func scheduleTimeoutEvent(delay int64) int32\n\t\t\t\t\t\"runtime.scheduleTimeoutEvent\": (sp) => {\n\t\t\t\t\t\tconst id = this._nextCallbackTimeoutID;\n\t\t\t\t\t\tthis._nextCallbackTimeoutID++;\n\t\t\t\t\t\tthis._scheduledTimeouts.set(id, setTimeout(\n\t\t\t\t\t\t\t() => {\n\t\t\t\t\t\t\t\tthis._resume();\n\t\t\t\t\t\t\t\twhile (this._scheduledTimeouts.has(id)) {\n\t\t\t\t\t\t\t\t\t// for some reason Go failed to register the timeout event, log and try again\n\t\t\t\t\t\t\t\t\t// (temporary workaround for https://github.com/golang/go/issues/28975)\n\t\t\t\t\t\t\t\t\tconsole.warn(\"scheduleTimeoutEvent: missed timeout event\");\n\t\t\t\t\t\t\t\t\tthis._resume();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tgetInt64(sp + 8) + 1, // setTimeout has been seen to fire up to 1 millisecond early\n\t\t\t\t\t\t));\n\t\t\t\t\t\tthis.mem.setInt32(sp + 16, id, true);\n\t\t\t\t\t},\n\n\t\t\t\t\t// func clearTimeoutEvent(id int32)\n\t\t\t\t\t\"runtime.clearTimeoutEvent\": (sp) => {\n\t\t\t\t\t\tconst id = this.mem.getInt32(sp + 8, true);\n\t\t\t\t\t\tclearTimeout(this._scheduledTimeouts.get(id));\n\t\t\t\t\t\tthis._scheduledTimeouts.delete(id);\n\t\t\t\t\t},\n\n\t\t\t\t\t// func getRandomData(r []byte)\n\t\t\t\t\t\"runtime.getRandomData\": (sp) => {\n\t\t\t\t\t\tcrypto.getRandomValues(loadSlice(sp + 8));\n\t\t\t\t\t},\n\n\t\t\t\t\t// func finalizeRef(v ref)\n\t\t\t\t\t\"syscall/js.finalizeRef\": (sp) => {\n\t\t\t\t\t\tconst id = this.mem.getUint32(sp + 8, true);\n\t\t\t\t\t\tthis._goRefCounts[id]--;\n\t\t\t\t\t\tif (this._goRefCounts[id] === 0) {\n\t\t\t\t\t\t\tconst v = this._values[id];\n\t\t\t\t\t\t\tthis._values[id] = null;\n\t\t\t\t\t\t\tthis._ids.delete(v);\n\t\t\t\t\t\t\tthis._idPool.push(id);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\n\t\t\t\t\t// func stringVal(value string) ref\n\t\t\t\t\t\"syscall/js.stringVal\": (sp) => {\n\t\t\t\t\t\tstoreValue(sp + 24, loadString(sp + 8));\n\t\t\t\t\t},\n\n\t\t\t\t\t// func valueGet(v ref, p string) ref\n\t\t\t\t\t\"syscall/js.valueGet\": (sp) => {\n\t\t\t\t\t\tconst result = Reflect.get(loadValue(sp + 8), loadString(sp + 16));\n\t\t\t\t\t\tsp = this._inst.exports.getsp(); // see comment above\n\t\t\t\t\t\tstoreValue(sp + 32, result);\n\t\t\t\t\t},\n\n\t\t\t\t\t// func valueSet(v ref, p string, x ref)\n\t\t\t\t\t\"syscall/js.valueSet\": (sp) => {\n\t\t\t\t\t\tReflect.set(loadValue(sp + 8), loadString(sp + 16), loadValue(sp + 32));\n\t\t\t\t\t},\n\n\t\t\t\t\t// func valueDelete(v ref, p string)\n\t\t\t\t\t\"syscall/js.valueDelete\": (sp) => {\n\t\t\t\t\t\tReflect.deleteProperty(loadValue(sp + 8), loadString(sp + 16));\n\t\t\t\t\t},\n\n\t\t\t\t\t// func valueIndex(v ref, i int) ref\n\t\t\t\t\t\"syscall/js.valueIndex\": (sp) => {\n\t\t\t\t\t\tstoreValue(sp + 24, Reflect.get(loadValue(sp + 8), getInt64(sp + 16)));\n\t\t\t\t\t},\n\n\t\t\t\t\t// valueSetIndex(v ref, i int, x ref)\n\t\t\t\t\t\"syscall/js.valueSetIndex\": (sp) => {\n\t\t\t\t\t\tReflect.set(loadValue(sp + 8), getInt64(sp + 16), loadValue(sp + 24));\n\t\t\t\t\t},\n\n\t\t\t\t\t// func valueCall(v ref, m string, args []ref) (ref, bool)\n\t\t\t\t\t\"syscall/js.valueCall\": (sp) => {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconst v = loadValue(sp + 8);\n\t\t\t\t\t\t\tconst m = Reflect.get(v, loadString(sp + 16));\n\t\t\t\t\t\t\tconst args = loadSliceOfValues(sp + 32);\n\t\t\t\t\t\t\tconst result = Reflect.apply(m, v, args);\n\t\t\t\t\t\t\tsp = this._inst.exports.getsp(); // see comment above\n\t\t\t\t\t\t\tstoreValue(sp + 56, result);\n\t\t\t\t\t\t\tthis.mem.setUint8(sp + 64, 1);\n\t\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t\tstoreValue(sp + 56, err);\n\t\t\t\t\t\t\tthis.mem.setUint8(sp + 64, 0);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\n\t\t\t\t\t// func valueInvoke(v ref, args []ref) (ref, bool)\n\t\t\t\t\t\"syscall/js.valueInvoke\": (sp) => {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconst v = loadValue(sp + 8);\n\t\t\t\t\t\t\tconst args = loadSliceOfValues(sp + 16);\n\t\t\t\t\t\t\tconst result = Reflect.apply(v, undefined, args);\n\t\t\t\t\t\t\tsp = this._inst.exports.getsp(); // see comment above\n\t\t\t\t\t\t\tstoreValue(sp + 40, result);\n\t\t\t\t\t\t\tthis.mem.setUint8(sp + 48, 1);\n\t\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t\tstoreValue(sp + 40, err);\n\t\t\t\t\t\t\tthis.mem.setUint8(sp + 48, 0);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\n\t\t\t\t\t// func valueNew(v ref, args []ref) (ref, bool)\n\t\t\t\t\t\"syscall/js.valueNew\": (sp) => {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconst v = loadValue(sp + 8);\n\t\t\t\t\t\t\tconst args = loadSliceOfValues(sp + 16);\n\t\t\t\t\t\t\tconst result = Reflect.construct(v, args);\n\t\t\t\t\t\t\tsp = this._inst.exports.getsp(); // see comment above\n\t\t\t\t\t\t\tstoreValue(sp + 40, result);\n\t\t\t\t\t\t\tthis.mem.setUint8(sp + 48, 1);\n\t\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t\tstoreValue(sp + 40, err);\n\t\t\t\t\t\t\tthis.mem.setUint8(sp + 48, 0);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\n\t\t\t\t\t// func valueLength(v ref) int\n\t\t\t\t\t\"syscall/js.valueLength\": (sp) => {\n\t\t\t\t\t\tsetInt64(sp + 16, parseInt(loadValue(sp + 8).length));\n\t\t\t\t\t},\n\n\t\t\t\t\t// valuePrepareString(v ref) (ref, int)\n\t\t\t\t\t\"syscall/js.valuePrepareString\": (sp) => {\n\t\t\t\t\t\tconst str = encoder.encode(String(loadValue(sp + 8)));\n\t\t\t\t\t\tstoreValue(sp + 16, str);\n\t\t\t\t\t\tsetInt64(sp + 24, str.length);\n\t\t\t\t\t},\n\n\t\t\t\t\t// valueLoadString(v ref, b []byte)\n\t\t\t\t\t\"syscall/js.valueLoadString\": (sp) => {\n\t\t\t\t\t\tconst str = loadValue(sp + 8);\n\t\t\t\t\t\tloadSlice(sp + 16).set(str);\n\t\t\t\t\t},\n\n\t\t\t\t\t// func valueInstanceOf(v ref, t ref) bool\n\t\t\t\t\t\"syscall/js.valueInstanceOf\": (sp) => {\n\t\t\t\t\t\tthis.mem.setUint8(sp + 24, (loadValue(sp + 8) instanceof loadValue(sp + 16)) ? 1 : 0);\n\t\t\t\t\t},\n\n\t\t\t\t\t// func copyBytesToGo(dst []byte, src ref) (int, bool)\n\t\t\t\t\t\"syscall/js.copyBytesToGo\": (sp) => {\n\t\t\t\t\t\tconst dst = loadSlice(sp + 8);\n\t\t\t\t\t\tconst src = loadValue(sp + 32);\n\t\t\t\t\t\tif (!(src instanceof Uint8Array || src instanceof Uint8ClampedArray)) {\n\t\t\t\t\t\t\tthis.mem.setUint8(sp + 48, 0);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst toCopy = src.subarray(0, dst.length);\n\t\t\t\t\t\tdst.set(toCopy);\n\t\t\t\t\t\tsetInt64(sp + 40, toCopy.length);\n\t\t\t\t\t\tthis.mem.setUint8(sp + 48, 1);\n\t\t\t\t\t},\n\n\t\t\t\t\t// func copyBytesToJS(dst ref, src []byte) (int, bool)\n\t\t\t\t\t\"syscall/js.copyBytesToJS\": (sp) => {\n\t\t\t\t\t\tconst dst = loadValue(sp + 8);\n\t\t\t\t\t\tconst src = loadSlice(sp + 16);\n\t\t\t\t\t\tif (!(dst instanceof Uint8Array || dst instanceof Uint8ClampedArray)) {\n\t\t\t\t\t\t\tthis.mem.setUint8(sp + 48, 0);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst toCopy = src.subarray(0, dst.length);\n\t\t\t\t\t\tdst.set(toCopy);\n\t\t\t\t\t\tsetInt64(sp + 40, toCopy.length);\n\t\t\t\t\t\tthis.mem.setUint8(sp + 48, 1);\n\t\t\t\t\t},\n\n\t\t\t\t\t\"debug\": (value) => {\n\t\t\t\t\t\tconsole.log(value);\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\n\t\tasync run(instance) {\n\t\t\tthis._inst = instance;\n\t\t\tthis.mem = new DataView(this._inst.exports.mem.buffer);\n\t\t\tthis._values = [ // JS values that Go currently has references to, indexed by reference id\n\t\t\t\tNaN,\n\t\t\t\t0,\n\t\t\t\tnull,\n\t\t\t\ttrue,\n\t\t\t\tfalse,\n\t\t\t\tglobal,\n\t\t\t\tthis,\n\t\t\t];\n\t\t\tthis._goRefCounts = new Array(this._values.length).fill(Infinity); // number of references that Go has to a JS value, indexed by reference id\n\t\t\tthis._ids = new Map([ // mapping from JS values to reference ids\n\t\t\t\t[0, 1],\n\t\t\t\t[null, 2],\n\t\t\t\t[true, 3],\n\t\t\t\t[false, 4],\n\t\t\t\t[global, 5],\n\t\t\t\t[this, 6],\n\t\t\t]);\n\t\t\tthis._idPool = []; // unused ids that have been garbage collected\n\t\t\tthis.exited = false; // whether the Go program has exited\n\n\t\t\t// Pass command line arguments and environment variables to WebAssembly by writing them to the linear memory.\n\t\t\tlet offset = 4096;\n\n\t\t\tconst strPtr = (str) => {\n\t\t\t\tconst ptr = offset;\n\t\t\t\tconst bytes = encoder.encode(str + \"\\0\");\n\t\t\t\tnew Uint8Array(this.mem.buffer, offset, bytes.length).set(bytes);\n\t\t\t\toffset += bytes.length;\n\t\t\t\tif (offset % 8 !== 0) {\n\t\t\t\t\toffset += 8 - (offset % 8);\n\t\t\t\t}\n\t\t\t\treturn ptr;\n\t\t\t};\n\n\t\t\tconst argc = this.argv.length;\n\n\t\t\tconst argvPtrs = [];\n\t\t\tthis.argv.forEach((arg) => {\n\t\t\t\targvPtrs.push(strPtr(arg));\n\t\t\t});\n\t\t\targvPtrs.push(0);\n\n\t\t\tconst keys = Object.keys(this.env).sort();\n\t\t\tkeys.forEach((key) => {\n\t\t\t\targvPtrs.push(strPtr(`${key}=${this.env[key]}`));\n\t\t\t});\n\t\t\targvPtrs.push(0);\n\n\t\t\tconst argv = offset;\n\t\t\targvPtrs.forEach((ptr) => {\n\t\t\t\tthis.mem.setUint32(offset, ptr, true);\n\t\t\t\tthis.mem.setUint32(offset + 4, 0, true);\n\t\t\t\toffset += 8;\n\t\t\t});\n\n\t\t\tthis._inst.exports.run(argc, argv);\n\t\t\tif (this.exited) {\n\t\t\t\tthis._resolveExitPromise();\n\t\t\t}\n\t\t\tawait this._exitPromise;\n\t\t}\n\n\t\t_resume() {\n\t\t\tif (this.exited) {\n\t\t\t\tthrow new Error(\"Go program has already exited\");\n\t\t\t}\n\t\t\tthis._inst.exports.resume();\n\t\t\tif (this.exited) {\n\t\t\t\tthis._resolveExitPromise();\n\t\t\t}\n\t\t}\n\n\t\t_makeFuncWrapper(id) {\n\t\t\tconst go = this;\n\t\t\treturn function () {\n\t\t\t\tconst event = { id: id, this: this, args: arguments };\n\t\t\t\tgo._pendingEvent = event;\n\t\t\t\tgo._resume();\n\t\t\t\treturn event.result;\n\t\t\t};\n\t\t}\n\t}\n});\n\nmodule.exports = {\n\twasmExec,\n};\n"]}
@@ -0,0 +1,4 @@
1
+ export interface RunWasmResult {
2
+ runPromise: Promise<void>;
3
+ }
4
+ export declare const runWasm: (fetchResponse: Promise<any>) => Promise<RunWasmResult>;
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.runWasm = void 0;
4
4
  const wasm_exec_1 = require("./wasm-exec");
5
- const events_1 = require("../gateway/events");
6
5
  const runWasm = async (fetchResponse) => {
7
- if (!window.Go) {
6
+ if (window.Go == null) {
8
7
  wasm_exec_1.wasmExec();
9
8
  }
10
9
  const go = new window.Go();
@@ -12,7 +11,6 @@ const runWasm = async (fetchResponse) => {
12
11
  const startPromise = new Promise(resolve => window.__zmlStarted = resolve);
13
12
  const runPromise = go.run(result.instance);
14
13
  await Promise.race([startPromise, runPromise]);
15
- events_1.setupEventHandler();
16
14
  return { runPromise };
17
15
  };
18
16
  exports.runWasm = runWasm;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wasm.js","sourceRoot":"","sources":["../../../src/gateway/wasm.ts"],"names":[],"mappings":";;;AAAA,2CAAuC;AAMhC,MAAM,OAAO,GAAG,KAAK,EAAE,aAA2B,EAA0B,EAAE;IACnF,IAAI,MAAM,CAAC,EAAE,IAAI,IAAI,EAAE;QACrB,oBAAQ,EAAE,CAAC;KACZ;IACD,MAAM,EAAE,GAAG,IAAI,MAAM,CAAC,EAAE,EAAE,CAAC;IAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,oBAAoB,CAC1D,aAAa,EACb,EAAE,CAAC,YAAY,CAChB,CAAC;IACF,MAAM,YAAY,GAAG,IAAI,OAAO,CAAO,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,YAAY,GAAG,OAAO,CAAC,CAAC;IACjF,MAAM,UAAU,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAE3C,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC;IAC/C,OAAO,EAAE,UAAU,EAAE,CAAC;AACxB,CAAC,CAAC;AAdW,QAAA,OAAO,WAclB","sourcesContent":["import { wasmExec } from './wasm-exec';\n\nexport interface RunWasmResult {\n runPromise: Promise<void>;\n}\n\nexport const runWasm = async (fetchResponse: Promise<any>): Promise<RunWasmResult> => {\n if (window.Go == null) {\n wasmExec();\n }\n const go = new window.Go();\n const result = await window.WebAssembly.instantiateStreaming(\n fetchResponse,\n go.importObject\n );\n const startPromise = new Promise<void>(resolve => window.__zmlStarted = resolve);\n const runPromise = go.run(result.instance);\n\n await Promise.race([startPromise, runPromise]);\n return { runPromise };\n};\n"]}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Maps a translator axis to a Zaber stream axis.
3
+ */
4
+ export interface AxisMapping {
5
+ /**
6
+ * Letter of the translator axis (X,Y,Z,A,B,C,E).
7
+ */
8
+ axisLetter: string;
9
+ /**
10
+ * Index of the stream axis.
11
+ */
12
+ axisIndex: number;
13
+ }
14
+ export declare namespace AxisMapping {
15
+ const __type = "AxisMapping";
16
+ }
@@ -21,18 +21,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
21
21
  return result;
22
22
  };
23
23
  Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.Measurement = void 0;
25
- const gateway = __importStar(require("./gateway"));
26
- var Measurement;
27
- (function (Measurement) {
28
- Measurement.__type = 'Measurement';
24
+ exports.AxisMapping = void 0;
25
+ const gateway = __importStar(require("../gateway"));
26
+ var AxisMapping;
27
+ (function (AxisMapping) {
28
+ AxisMapping.__type = 'AxisMapping';
29
29
  /** @internal */
30
30
  function toProtobuf(source) {
31
- const pbData = new gateway.Measurement();
32
- pbData.setValue(source.value);
33
- pbData.setUnit(source.unit);
31
+ const pbData = new gateway.TranslatorAxisMapping();
32
+ pbData.setAxisLetter(source.axisLetter);
33
+ pbData.setAxisIndex(source.axisIndex);
34
34
  return pbData;
35
35
  }
36
- Measurement.toProtobuf = toProtobuf;
37
- })(Measurement = exports.Measurement || (exports.Measurement = {}));
38
- //# sourceMappingURL=measurement.js.map
36
+ AxisMapping.toProtobuf = toProtobuf;
37
+ })(AxisMapping = exports.AxisMapping || (exports.AxisMapping = {}));
38
+ //# sourceMappingURL=axis_mapping.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axis_mapping.js","sourceRoot":"","sources":["../../../src/gcode/axis_mapping.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AAkBtC,IAAiB,WAAW,CAU3B;AAVD,WAAiB,WAAW;IACb,kBAAM,GAAG,aAAa,CAAC;IAEpC,gBAAgB;IAChB,SAAgB,UAAU,CAAC,MAAmB;QAC5C,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC;QACnD,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QACxC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACtC,OAAO,MAAM,CAAC;IAChB,CAAC;IALe,sBAAU,aAKzB,CAAA;AACH,CAAC,EAVgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAU3B","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Maps a translator axis to a Zaber stream axis.\n */\nexport interface AxisMapping {\n /**\n * Letter of the translator axis (X,Y,Z,A,B,C,E).\n */\n axisLetter: string;\n\n /**\n * Index of the stream axis.\n */\n axisIndex: number;\n\n}\n\nexport namespace AxisMapping {\n export const __type = 'AxisMapping';\n\n /** @internal */\n export function toProtobuf(source: AxisMapping): gateway.TranslatorAxisMapping {\n const pbData = new gateway.TranslatorAxisMapping();\n pbData.setAxisLetter(source.axisLetter);\n pbData.setAxisIndex(source.axisIndex);\n return pbData;\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ export { TranslateMessage } from './translate_message';
2
+ export { TranslateResult } from './translate_result';
3
+ export { TranslatorConfig } from './translator_config';
4
+ export { TranslatorAxisDefinition } from './translator_axis_definition';
5
+ export { TranslatorDefinition } from './translator_definition';
6
+ export { AxisMapping } from './axis_mapping';
7
+ export { Translator } from './translator';
8
+ export { TranslatorLive } from './translator_live';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TranslatorLive = exports.Translator = exports.AxisMapping = exports.TranslatorDefinition = exports.TranslatorAxisDefinition = exports.TranslatorConfig = exports.TranslateResult = exports.TranslateMessage = void 0;
4
+ var translate_message_1 = require("./translate_message");
5
+ Object.defineProperty(exports, "TranslateMessage", { enumerable: true, get: function () { return translate_message_1.TranslateMessage; } });
6
+ var translate_result_1 = require("./translate_result");
7
+ Object.defineProperty(exports, "TranslateResult", { enumerable: true, get: function () { return translate_result_1.TranslateResult; } });
8
+ var translator_config_1 = require("./translator_config");
9
+ Object.defineProperty(exports, "TranslatorConfig", { enumerable: true, get: function () { return translator_config_1.TranslatorConfig; } });
10
+ var translator_axis_definition_1 = require("./translator_axis_definition");
11
+ Object.defineProperty(exports, "TranslatorAxisDefinition", { enumerable: true, get: function () { return translator_axis_definition_1.TranslatorAxisDefinition; } });
12
+ var translator_definition_1 = require("./translator_definition");
13
+ Object.defineProperty(exports, "TranslatorDefinition", { enumerable: true, get: function () { return translator_definition_1.TranslatorDefinition; } });
14
+ var axis_mapping_1 = require("./axis_mapping");
15
+ Object.defineProperty(exports, "AxisMapping", { enumerable: true, get: function () { return axis_mapping_1.AxisMapping; } });
16
+ var translator_1 = require("./translator");
17
+ Object.defineProperty(exports, "Translator", { enumerable: true, get: function () { return translator_1.Translator; } });
18
+ var translator_live_1 = require("./translator_live");
19
+ Object.defineProperty(exports, "TranslatorLive", { enumerable: true, get: function () { return translator_live_1.TranslatorLive; } });
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/gcode/index.ts"],"names":[],"mappings":";;;AAAA,yDAAuD;AAA9C,qHAAA,gBAAgB,OAAA;AACzB,uDAAqD;AAA5C,mHAAA,eAAe,OAAA;AACxB,yDAAuD;AAA9C,qHAAA,gBAAgB,OAAA;AACzB,2EAAwE;AAA/D,sIAAA,wBAAwB,OAAA;AACjC,iEAA+D;AAAtD,6HAAA,oBAAoB,OAAA;AAC7B,+CAA6C;AAApC,2GAAA,WAAW,OAAA;AACpB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,qDAAmD;AAA1C,iHAAA,cAAc,OAAA","sourcesContent":["export { TranslateMessage } from './translate_message';\nexport { TranslateResult } from './translate_result';\nexport { TranslatorConfig } from './translator_config';\nexport { TranslatorAxisDefinition } from './translator_axis_definition';\nexport { TranslatorDefinition } from './translator_definition';\nexport { AxisMapping } from './axis_mapping';\nexport { Translator } from './translator';\nexport { TranslatorLive } from './translator_live';\n"]}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Represents a message from translator regarding a block translation.
3
+ */
4
+ export interface TranslateMessage {
5
+ /**
6
+ * The message describing an occurrence.
7
+ */
8
+ message: string;
9
+ /**
10
+ * The index in the block string that the message regards to.
11
+ */
12
+ fromBlock: number;
13
+ /**
14
+ * The end index in the block string that the message regards to.
15
+ * The end index is exclusive.
16
+ */
17
+ toBlock: number;
18
+ }
19
+ export declare namespace TranslateMessage {
20
+ const __type = "TranslateMessage";
21
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
3
+ // ============= DO NOT EDIT DIRECTLY ============= //
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.TranslateMessage = void 0;
6
+ var TranslateMessage;
7
+ (function (TranslateMessage) {
8
+ TranslateMessage.__type = 'TranslateMessage';
9
+ /** @internal */
10
+ function fromProtobuf(pbData) {
11
+ return {
12
+ message: pbData.message,
13
+ fromBlock: pbData.fromBlock,
14
+ toBlock: pbData.toBlock,
15
+ };
16
+ }
17
+ TranslateMessage.fromProtobuf = fromProtobuf;
18
+ })(TranslateMessage = exports.TranslateMessage || (exports.TranslateMessage = {}));
19
+ //# sourceMappingURL=translate_message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translate_message.js","sourceRoot":"","sources":["../../../src/gcode/translate_message.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AA0BtD,IAAiB,gBAAgB,CAWhC;AAXD,WAAiB,gBAAgB;IAClB,uBAAM,GAAG,kBAAkB,CAAC;IAEzC,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAyC;QACpE,OAAO;YACL,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB,CAAC;IACJ,CAAC;IANe,6BAAY,eAM3B,CAAA;AACH,CAAC,EAXgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAWhC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Represents a message from translator regarding a block translation.\n */\nexport interface TranslateMessage {\n /**\n * The message describing an occurrence.\n */\n message: string;\n\n /**\n * The index in the block string that the message regards to.\n */\n fromBlock: number;\n\n /**\n * The end index in the block string that the message regards to.\n * The end index is exclusive.\n */\n toBlock: number;\n\n}\n\nexport namespace TranslateMessage {\n export const __type = 'TranslateMessage';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.TranslateMessage.AsObject): TranslateMessage {\n return {\n message: pbData.message,\n fromBlock: pbData.fromBlock,\n toBlock: pbData.toBlock,\n };\n }\n}\n"]}
@@ -0,0 +1,17 @@
1
+ import { TranslateMessage } from './translate_message';
2
+ /**
3
+ * Represents a result of a G-code block translation.
4
+ */
5
+ export interface TranslateResult {
6
+ /**
7
+ * Stream commands resulting from the block.
8
+ */
9
+ commands: string[];
10
+ /**
11
+ * Messages informing about unsupported codes and features.
12
+ */
13
+ warnings: TranslateMessage[];
14
+ }
15
+ export declare namespace TranslateResult {
16
+ const __type = "TranslateResult";
17
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
3
+ // ============= DO NOT EDIT DIRECTLY ============= //
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.TranslateResult = void 0;
6
+ const translate_message_1 = require("./translate_message");
7
+ var TranslateResult;
8
+ (function (TranslateResult) {
9
+ TranslateResult.__type = 'TranslateResult';
10
+ /** @internal */
11
+ function fromProtobuf(pbData) {
12
+ return {
13
+ commands: pbData.commandsList,
14
+ warnings: pbData.warningsList.map(item => translate_message_1.TranslateMessage.fromProtobuf(item)),
15
+ };
16
+ }
17
+ TranslateResult.fromProtobuf = fromProtobuf;
18
+ })(TranslateResult = exports.TranslateResult || (exports.TranslateResult = {}));
19
+ //# sourceMappingURL=translate_result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translate_result.js","sourceRoot":"","sources":["../../../src/gcode/translate_result.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAGtD,2DAAuD;AAkBvD,IAAiB,eAAe,CAU/B;AAVD,WAAiB,eAAe;IACjB,sBAAM,GAAG,iBAAiB,CAAC;IAExC,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAoD;QAC/E,OAAO;YACL,QAAQ,EAAE,MAAM,CAAC,YAAY;YAC7B,QAAQ,EAAE,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,oCAAgB,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;SAC/E,CAAC;IACJ,CAAC;IALe,4BAAY,eAK3B,CAAA;AACH,CAAC,EAVgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAU/B","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport { TranslateMessage } from './translate_message';\n\n/**\n * Represents a result of a G-code block translation.\n */\nexport interface TranslateResult {\n /**\n * Stream commands resulting from the block.\n */\n commands: string[];\n\n /**\n * Messages informing about unsupported codes and features.\n */\n warnings: TranslateMessage[];\n\n}\n\nexport namespace TranslateResult {\n export const __type = 'TranslateResult';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.TranslatorTranslateResponse.AsObject): TranslateResult {\n return {\n commands: pbData.commandsList,\n warnings: pbData.warningsList.map(item => TranslateMessage.fromProtobuf(item)),\n };\n }\n}\n"]}
@@ -0,0 +1,68 @@
1
+ import { TranslatorDefinition } from './translator_definition';
2
+ import { TranslatorConfig } from './translator_config';
3
+ import { TranslateResult } from './translate_result';
4
+ import { Angle, Length, Native, AngularVelocity, Velocity } from '../units';
5
+ export declare class Translator {
6
+ /**
7
+ * The ID of the translator that serves to identify native resources.
8
+ */
9
+ get translatorId(): number;
10
+ private _translatorId;
11
+ constructor(translatorId: number);
12
+ /**
13
+ * Sets up translator from provided device definition and configuration.
14
+ * @param definition Definition of device and its peripherals.
15
+ * The definition must match a device that later performs the commands.
16
+ * @param config Configuration of the translator.
17
+ * @return New instance of translator.
18
+ */
19
+ static setup(definition: TranslatorDefinition, config: TranslatorConfig): Promise<Translator>;
20
+ /**
21
+ * Translates a single block (line) of G-code.
22
+ * @param block Block (line) of G-code.
23
+ * @return Result of translation containing the stream commands.
24
+ */
25
+ translate(block: string): TranslateResult;
26
+ /**
27
+ * Sets the speed at which the device moves when traversing (G0).
28
+ * @param traverseRate The traverse rate.
29
+ * @param unit Units of the traverse rate.
30
+ */
31
+ setTraverseRate(traverseRate: number, unit: Velocity | AngularVelocity | Native): void;
32
+ /**
33
+ * Sets position of translator's axis.
34
+ * Use this method to set position after performing movement outside of the translator.
35
+ * This method does not cause any movement.
36
+ * @param axis Letter of the axis.
37
+ * @param position The position.
38
+ * @param unit Units of position.
39
+ */
40
+ setAxisPosition(axis: string, position: number, unit: Length | Angle | Native): void;
41
+ /**
42
+ * Gets position of translator's axis.
43
+ * This method does not query device but returns value from translator's state.
44
+ * @param axis Letter of the axis.
45
+ * @param unit Units of position.
46
+ * @return Position of translator's axis.
47
+ */
48
+ getAxisPosition(axis: string, unit: Length | Angle | Native): number;
49
+ /**
50
+ * Sets default position of translator's axis.
51
+ * This position is used by G28.
52
+ * @param axis Letter of the axis.
53
+ * @param position The default position.
54
+ * @param unit Units of position.
55
+ */
56
+ setAxisDefaultPosition(axis: string, position: number, unit: Length | Angle | Native): void;
57
+ /**
58
+ * Releases native resources of a translator.
59
+ * @param translatorId The ID of the translator.
60
+ */
61
+ private static _free;
62
+ /**
63
+ * Releases the native resources of the translator.
64
+ * Should only be called if your environment does not support FinalizationRegistry.
65
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry
66
+ */
67
+ free(): void;
68
+ }
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+ // ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
3
+ // ============= DO NOT EDIT DIRECTLY ============= //
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
7
+ }) : (function(o, m, k, k2) {
8
+ if (k2 === undefined) k2 = k;
9
+ o[k2] = m[k];
10
+ }));
11
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
12
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
13
+ }) : function(o, v) {
14
+ o["default"] = v;
15
+ });
16
+ var __importStar = (this && this.__importStar) || function (mod) {
17
+ if (mod && mod.__esModule) return mod;
18
+ var result = {};
19
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
20
+ __setModuleDefault(result, mod);
21
+ return result;
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.Translator = void 0;
25
+ const gateway = __importStar(require("../gateway"));
26
+ const translator_definition_1 = require("./translator_definition");
27
+ const translator_config_1 = require("./translator_config");
28
+ const translate_result_1 = require("./translate_result");
29
+ const finalizer_1 = require("../finalizer");
30
+ class Translator {
31
+ constructor(translatorId) {
32
+ this._translatorId = translatorId;
33
+ finalizer_1.registerForFinalization(this, Translator._free.bind(null, translatorId));
34
+ }
35
+ /**
36
+ * The ID of the translator that serves to identify native resources.
37
+ */
38
+ get translatorId() {
39
+ return this._translatorId;
40
+ }
41
+ /**
42
+ * Sets up translator from provided device definition and configuration.
43
+ * @param definition Definition of device and its peripherals.
44
+ * The definition must match a device that later performs the commands.
45
+ * @param config Configuration of the translator.
46
+ * @return New instance of translator.
47
+ */
48
+ static async setup(definition, config) {
49
+ const request = new gateway.TranslatorCreateRequest();
50
+ request.setDefinition(translator_definition_1.TranslatorDefinition.toProtobuf(definition));
51
+ request.setConfig(translator_config_1.TranslatorConfig.toProtobuf(config));
52
+ const response = await gateway.callAsync('gcode/create', request, gateway.TranslatorCreateResponse);
53
+ return new Translator(response.getTranslatorId());
54
+ }
55
+ /**
56
+ * Translates a single block (line) of G-code.
57
+ * @param block Block (line) of G-code.
58
+ * @return Result of translation containing the stream commands.
59
+ */
60
+ translate(block) {
61
+ const request = new gateway.TranslatorTranslateRequest();
62
+ request.setTranslatorId(this.translatorId);
63
+ request.setBlock(block);
64
+ const response = gateway.callSync('gcode/translate', request, gateway.TranslatorTranslateResponse);
65
+ return translate_result_1.TranslateResult.fromProtobuf(response.toObject());
66
+ }
67
+ /**
68
+ * Sets the speed at which the device moves when traversing (G0).
69
+ * @param traverseRate The traverse rate.
70
+ * @param unit Units of the traverse rate.
71
+ */
72
+ setTraverseRate(traverseRate, unit) {
73
+ const request = new gateway.TranslatorSetTraverseRateRequest();
74
+ request.setTranslatorId(this.translatorId);
75
+ request.setTraverseRate(traverseRate);
76
+ request.setUnit(unit);
77
+ gateway.callSync('gcode/set_traverse_rate', request);
78
+ }
79
+ /**
80
+ * Sets position of translator's axis.
81
+ * Use this method to set position after performing movement outside of the translator.
82
+ * This method does not cause any movement.
83
+ * @param axis Letter of the axis.
84
+ * @param position The position.
85
+ * @param unit Units of position.
86
+ */
87
+ setAxisPosition(axis, position, unit) {
88
+ const request = new gateway.TranslatorSetAxisPositionRequest();
89
+ request.setTranslatorId(this.translatorId);
90
+ request.setAxis(axis);
91
+ request.setPosition(position);
92
+ request.setUnit(unit);
93
+ gateway.callSync('gcode/set_axis_position', request);
94
+ }
95
+ /**
96
+ * Gets position of translator's axis.
97
+ * This method does not query device but returns value from translator's state.
98
+ * @param axis Letter of the axis.
99
+ * @param unit Units of position.
100
+ * @return Position of translator's axis.
101
+ */
102
+ getAxisPosition(axis, unit) {
103
+ const request = new gateway.TranslatorGetAxisPositionRequest();
104
+ request.setTranslatorId(this.translatorId);
105
+ request.setAxis(axis);
106
+ request.setUnit(unit);
107
+ const response = gateway.callSync('gcode/get_axis_position', request, gateway.TranslatorGetAxisPositionResponse);
108
+ return response.getValue();
109
+ }
110
+ /**
111
+ * Sets default position of translator's axis.
112
+ * This position is used by G28.
113
+ * @param axis Letter of the axis.
114
+ * @param position The default position.
115
+ * @param unit Units of position.
116
+ */
117
+ setAxisDefaultPosition(axis, position, unit) {
118
+ const request = new gateway.TranslatorSetAxisPositionRequest();
119
+ request.setTranslatorId(this.translatorId);
120
+ request.setAxis(axis);
121
+ request.setPosition(position);
122
+ request.setUnit(unit);
123
+ gateway.callSync('gcode/set_axis_default', request);
124
+ }
125
+ /**
126
+ * Releases native resources of a translator.
127
+ * @param translatorId The ID of the translator.
128
+ */
129
+ static _free(translatorId) {
130
+ const request = new gateway.TranslatorEmptyRequest();
131
+ request.setTranslatorId(translatorId);
132
+ gateway.callSync('gcode/free', request);
133
+ }
134
+ /**
135
+ * Releases the native resources of the translator.
136
+ * Should only be called if your environment does not support FinalizationRegistry.
137
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry
138
+ */
139
+ free() {
140
+ Translator._free(this.translatorId);
141
+ }
142
+ }
143
+ exports.Translator = Translator;
144
+ //# sourceMappingURL=translator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translator.js","sourceRoot":"","sources":["../../../src/gcode/translator.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AACtC,mEAA+D;AAC/D,2DAAuD;AACvD,yDAAqD;AAErD,4CAAuD;AAEvD,MAAa,UAAU;IASrB,YAAY,YAAoB;QAC9B,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,mCAAuB,CAAC,IAAI,EAAE,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC;IAC3E,CAAC;IAXD;;OAEG;IACH,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAQD;;;;;;OAMG;IACI,MAAM,CAAC,KAAK,CAAC,KAAK,CACvB,UAAgC,EAChC,MAAwB;QAExB,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,uBAAuB,EAAE,CAAC;QACtD,OAAO,CAAC,aAAa,CAAC,4CAAoB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;QACnE,OAAO,CAAC,SAAS,CAAC,oCAAgB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;QAEvD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,cAAc,EACd,OAAO,EACP,OAAO,CAAC,wBAAwB,CAAC,CAAC;QACpC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A+JC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport { TranslatorDefinition } from './translator_definition';\nimport { TranslatorConfig } from './translator_config';\nimport { TranslateResult } from './translate_result';\nimport { Angle, Length, Native, AngularVelocity, Velocity } from '../units';\nimport { registerForFinalization } from '../finalizer';\n\nexport class Translator {\n /**\n * The ID of the translator that serves to identify native resources.\n */\n public get translatorId(): number {\n return this._translatorId;\n }\n private _translatorId: number;\n\n constructor(translatorId: number) {\n this._translatorId = translatorId;\n registerForFinalization(this, Translator._free.bind(null, translatorId));\n }\n\n /**\n * Sets up translator from provided device definition and configuration.\n * @param definition Definition of device and its peripherals.\n * The definition must match a device that later performs the commands.\n * @param config Configuration of the translator.\n * @return New instance of translator.\n */\n public static async setup(\n definition: TranslatorDefinition,\n config: TranslatorConfig\n ): Promise<Translator> {\n const request = new gateway.TranslatorCreateRequest();\n request.setDefinition(TranslatorDefinition.toProtobuf(definition));\n request.setConfig(TranslatorConfig.toProtobuf(config));\n\n const response = await gateway.callAsync<gateway.TranslatorCreateResponse>(\n 'gcode/create',\n request,\n gateway.TranslatorCreateResponse);\n return new Translator(response.getTranslatorId());\n }\n\n /**\n * Translates a single block (line) of G-code.\n * @param block Block (line) of G-code.\n * @return Result of translation containing the stream commands.\n */\n public translate(\n block: string\n ): TranslateResult {\n const request = new gateway.TranslatorTranslateRequest();\n request.setTranslatorId(this.translatorId);\n request.setBlock(block);\n\n const response = gateway.callSync<gateway.TranslatorTranslateResponse>(\n 'gcode/translate',\n request,\n gateway.TranslatorTranslateResponse);\n return TranslateResult.fromProtobuf(response.toObject());\n }\n\n /**\n * Sets the speed at which the device moves when traversing (G0).\n * @param traverseRate The traverse rate.\n * @param unit Units of the traverse rate.\n */\n public setTraverseRate(\n traverseRate: number,\n unit: Velocity | AngularVelocity | Native\n ): void {\n const request = new gateway.TranslatorSetTraverseRateRequest();\n request.setTranslatorId(this.translatorId);\n request.setTraverseRate(traverseRate);\n request.setUnit(unit);\n\n gateway.callSync('gcode/set_traverse_rate', request);\n }\n\n /**\n * Sets position of translator's axis.\n * Use this method to set position after performing movement outside of the translator.\n * This method does not cause any movement.\n * @param axis Letter of the axis.\n * @param position The position.\n * @param unit Units of position.\n */\n public setAxisPosition(\n axis: string,\n position: number,\n unit: Length | Angle | Native\n ): void {\n const request = new gateway.TranslatorSetAxisPositionRequest();\n request.setTranslatorId(this.translatorId);\n request.setAxis(axis);\n request.setPosition(position);\n request.setUnit(unit);\n\n gateway.callSync('gcode/set_axis_position', request);\n }\n\n /**\n * Gets position of translator's axis.\n * This method does not query device but returns value from translator's state.\n * @param axis Letter of the axis.\n * @param unit Units of position.\n * @return Position of translator's axis.\n */\n public getAxisPosition(\n axis: string,\n unit: Length | Angle | Native\n ): number {\n const request = new gateway.TranslatorGetAxisPositionRequest();\n request.setTranslatorId(this.translatorId);\n request.setAxis(axis);\n request.setUnit(unit);\n\n const response = gateway.callSync<gateway.TranslatorGetAxisPositionResponse>(\n 'gcode/get_axis_position',\n request,\n gateway.TranslatorGetAxisPositionResponse);\n return response.getValue();\n }\n\n /**\n * Sets default position of translator's axis.\n * This position is used by G28.\n * @param axis Letter of the axis.\n * @param position The default position.\n * @param unit Units of position.\n */\n public setAxisDefaultPosition(\n axis: string,\n position: number,\n unit: Length | Angle | Native\n ): void {\n const request = new gateway.TranslatorSetAxisPositionRequest();\n request.setTranslatorId(this.translatorId);\n request.setAxis(axis);\n request.setPosition(position);\n request.setUnit(unit);\n\n gateway.callSync('gcode/set_axis_default', request);\n }\n\n /**\n * Releases native resources of a translator.\n * @param translatorId The ID of the translator.\n */\n private static _free(\n translatorId: number\n ): void {\n const request = new gateway.TranslatorEmptyRequest();\n request.setTranslatorId(translatorId);\n\n gateway.callSync('gcode/free', request);\n }\n\n /**\n * Releases the native resources of the translator.\n * Should only be called if your environment does not support FinalizationRegistry.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry\n */\n public free(): void {\n Translator._free(this.translatorId);\n }\n}\n"]}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Defines an axis of the translator.
3
+ */
4
+ export interface TranslatorAxisDefinition {
5
+ /**
6
+ * Letter of the axis (X,Y,Z,A,B,C,E).
7
+ */
8
+ axisLetter: string;
9
+ /**
10
+ * ID of the peripheral.
11
+ */
12
+ peripheralId: number;
13
+ /**
14
+ * Microstep resolution of the axis.
15
+ */
16
+ microstepResolution: number;
17
+ }
18
+ export declare namespace TranslatorAxisDefinition {
19
+ const __type = "TranslatorAxisDefinition";
20
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ // ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
3
+ // ============= DO NOT EDIT DIRECTLY ============= //
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
7
+ }) : (function(o, m, k, k2) {
8
+ if (k2 === undefined) k2 = k;
9
+ o[k2] = m[k];
10
+ }));
11
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
12
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
13
+ }) : function(o, v) {
14
+ o["default"] = v;
15
+ });
16
+ var __importStar = (this && this.__importStar) || function (mod) {
17
+ if (mod && mod.__esModule) return mod;
18
+ var result = {};
19
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
20
+ __setModuleDefault(result, mod);
21
+ return result;
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.TranslatorAxisDefinition = void 0;
25
+ const gateway = __importStar(require("../gateway"));
26
+ var TranslatorAxisDefinition;
27
+ (function (TranslatorAxisDefinition) {
28
+ TranslatorAxisDefinition.__type = 'TranslatorAxisDefinition';
29
+ /** @internal */
30
+ function fromProtobuf(pbData) {
31
+ return {
32
+ axisLetter: pbData.axisLetter,
33
+ peripheralId: pbData.peripheralId,
34
+ microstepResolution: pbData.microstepResolution,
35
+ };
36
+ }
37
+ TranslatorAxisDefinition.fromProtobuf = fromProtobuf;
38
+ /** @internal */
39
+ function toProtobuf(source) {
40
+ const pbData = new gateway.TranslatorAxisDefinition();
41
+ pbData.setAxisLetter(source.axisLetter);
42
+ pbData.setPeripheralId(source.peripheralId);
43
+ pbData.setMicrostepResolution(source.microstepResolution);
44
+ return pbData;
45
+ }
46
+ TranslatorAxisDefinition.toProtobuf = toProtobuf;
47
+ })(TranslatorAxisDefinition = exports.TranslatorAxisDefinition || (exports.TranslatorAxisDefinition = {}));
48
+ //# sourceMappingURL=translator_axis_definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translator_axis_definition.js","sourceRoot":"","sources":["../../../src/gcode/translator_axis_definition.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AAuBtC,IAAiB,wBAAwB,CAmBxC;AAnBD,WAAiB,wBAAwB;IAC1B,+BAAM,GAAG,0BAA0B,CAAC;IAEjD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAiD;QAC5E,OAAO;YACL,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,mBAAmB,EAAE,MAAM,CAAC,mBAAmB;SAChD,CAAC;IACJ,CAAC;IANe,qCAAY,eAM3B,CAAA;IACD,gBAAgB;IAChB,SAAgB,UAAU,CAAC,MAAgC;QACzD,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,wBAAwB,EAAE,CAAC;QACtD,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QACxC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAC5C,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;QAC1D,OAAO,MAAM,CAAC;IAChB,CAAC;IANe,mCAAU,aAMzB,CAAA;AACH,CAAC,EAnBgB,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAmBxC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Defines an axis of the translator.\n */\nexport interface TranslatorAxisDefinition {\n /**\n * Letter of the axis (X,Y,Z,A,B,C,E).\n */\n axisLetter: string;\n\n /**\n * ID of the peripheral.\n */\n peripheralId: number;\n\n /**\n * Microstep resolution of the axis.\n */\n microstepResolution: number;\n\n}\n\nexport namespace TranslatorAxisDefinition {\n export const __type = 'TranslatorAxisDefinition';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.TranslatorAxisDefinition.AsObject): TranslatorAxisDefinition {\n return {\n axisLetter: pbData.axisLetter,\n peripheralId: pbData.peripheralId,\n microstepResolution: pbData.microstepResolution,\n };\n }\n /** @internal */\n export function toProtobuf(source: TranslatorAxisDefinition): gateway.TranslatorAxisDefinition {\n const pbData = new gateway.TranslatorAxisDefinition();\n pbData.setAxisLetter(source.axisLetter);\n pbData.setPeripheralId(source.peripheralId);\n pbData.setMicrostepResolution(source.microstepResolution);\n return pbData;\n }\n}\n"]}