@zaber/motion 2.8.1 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
  2. package/dist/lib/ascii/stream.d.ts +6 -0
  3. package/dist/lib/ascii/stream.js +13 -0
  4. package/dist/lib/ascii/stream.js.map +1 -1
  5. package/dist/lib/ascii/stream_axis_definition.d.ts +1 -1
  6. package/dist/lib/ascii/stream_axis_definition.js.map +1 -1
  7. package/dist/lib/ascii/stream_buffer.d.ts +1 -0
  8. package/dist/lib/ascii/stream_buffer.js +1 -0
  9. package/dist/lib/ascii/stream_buffer.js.map +1 -1
  10. package/dist/lib/exceptions/g_code_execution_exception.d.ts +14 -0
  11. package/dist/lib/exceptions/g_code_execution_exception.js +32 -0
  12. package/dist/lib/exceptions/g_code_execution_exception.js.map +1 -0
  13. package/dist/lib/exceptions/g_code_execution_exception_data.d.ts +17 -0
  14. package/dist/lib/exceptions/g_code_execution_exception_data.js +18 -0
  15. package/dist/lib/exceptions/g_code_execution_exception_data.js.map +1 -0
  16. package/dist/lib/exceptions/g_code_syntax_exception.d.ts +14 -0
  17. package/dist/lib/exceptions/g_code_syntax_exception.js +32 -0
  18. package/dist/lib/exceptions/g_code_syntax_exception.js.map +1 -0
  19. package/dist/lib/exceptions/g_code_syntax_exception_data.d.ts +17 -0
  20. package/dist/lib/exceptions/g_code_syntax_exception_data.js +18 -0
  21. package/dist/lib/exceptions/g_code_syntax_exception_data.js.map +1 -0
  22. package/dist/lib/exceptions/index.d.ts +4 -0
  23. package/dist/lib/exceptions/index.js +10 -2
  24. package/dist/lib/exceptions/index.js.map +1 -1
  25. package/dist/lib/finalizer.d.ts +5 -0
  26. package/dist/lib/finalizer.js +21 -0
  27. package/dist/lib/finalizer.js.map +1 -0
  28. package/dist/lib/gateway/convert_exceptions.js +2 -0
  29. package/dist/lib/gateway/convert_exceptions.js.map +1 -1
  30. package/dist/lib/gcode/axis_mapping.d.ts +16 -0
  31. package/dist/lib/gcode/axis_mapping.js +38 -0
  32. package/dist/lib/gcode/axis_mapping.js.map +1 -0
  33. package/dist/lib/gcode/index.d.ts +8 -0
  34. package/dist/lib/gcode/index.js +20 -0
  35. package/dist/lib/gcode/index.js.map +1 -0
  36. package/dist/lib/gcode/translate_message.d.ts +21 -0
  37. package/dist/lib/gcode/translate_message.js +19 -0
  38. package/dist/lib/gcode/translate_message.js.map +1 -0
  39. package/dist/lib/gcode/translate_result.d.ts +17 -0
  40. package/dist/lib/gcode/translate_result.js +19 -0
  41. package/dist/lib/gcode/translate_result.js.map +1 -0
  42. package/dist/lib/gcode/translator.d.ts +68 -0
  43. package/dist/lib/gcode/translator.js +144 -0
  44. package/dist/lib/gcode/translator.js.map +1 -0
  45. package/dist/lib/gcode/translator_axis_definition.d.ts +20 -0
  46. package/dist/lib/gcode/translator_axis_definition.js +48 -0
  47. package/dist/lib/gcode/translator_axis_definition.js.map +1 -0
  48. package/dist/lib/gcode/translator_config.d.ts +18 -0
  49. package/dist/lib/gcode/translator_config.js +41 -0
  50. package/dist/lib/gcode/translator_config.js.map +1 -0
  51. package/dist/lib/gcode/translator_definition.d.ts +18 -0
  52. package/dist/lib/gcode/translator_definition.js +39 -0
  53. package/dist/lib/gcode/translator_definition.js.map +1 -0
  54. package/dist/lib/gcode/translator_live.d.ts +70 -0
  55. package/dist/lib/gcode/translator_live.js +147 -0
  56. package/dist/lib/gcode/translator_live.js.map +1 -0
  57. package/dist/lib/gcode_ns.d.ts +19 -0
  58. package/dist/lib/gcode_ns.js +35 -0
  59. package/dist/lib/gcode_ns.js.map +1 -0
  60. package/dist/lib/index.d.ts +1 -0
  61. package/dist/lib/index.js +1 -0
  62. package/dist/lib/index.js.map +1 -1
  63. package/dist/lib/measurement.d.ts +1 -1
  64. package/dist/lib/measurement.js.map +1 -1
  65. package/dist/lib/protobufs/main_pb.d.ts +478 -0
  66. package/dist/lib/protobufs/main_pb.js +3682 -1
  67. package/dist/lib/protobufs/main_pb.js.map +1 -1
  68. package/package.json +2 -2
@@ -2,8 +2,8 @@
2
2
  // ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
3
3
  // ============= DO NOT EDIT DIRECTLY ============= //
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.StreamExecutionExceptionData = exports.SetPeripheralStateExceptionData = exports.SetDeviceStateExceptionData = exports.MovementInterruptedExceptionData = exports.MovementFailedExceptionData = exports.InvalidResponseExceptionData = exports.InvalidPacketExceptionData = exports.DeviceAddressConflictExceptionData = exports.CommandFailedExceptionData = exports.BinaryCommandFailedExceptionData = exports.MotionLibException = exports.UnknownRequestException = exports.TransportAlreadyUsedException = exports.StreamSetupFailedException = exports.StreamMovementInterruptedException = exports.StreamMovementFailedException = exports.StreamModeException = exports.StreamExecutionException = exports.SettingNotFoundException = exports.SetPeripheralStateFailedException = exports.SetDeviceStateFailedException = exports.SerialPortBusyException = exports.RequestTimeoutException = exports.OutOfRequestIdsException = exports.OsFailedException = exports.NotSupportedException = exports.NoDeviceFoundException = exports.MovementInterruptedException = exports.MovementFailedException = exports.LockstepNotEnabledException = exports.LockstepEnabledException = exports.IoFailedException = exports.IoChannelOutOfRangeException = exports.InvalidResponseException = exports.InvalidParkStateException = exports.InvalidPacketException = exports.InvalidDataException = exports.InvalidArgumentException = exports.InternalErrorException = exports.DeviceNotIdentifiedException = exports.DeviceFailedException = exports.DeviceDbFailedException = exports.DeviceBusyException = exports.DeviceAddressConflictException = exports.ConversionFailedException = exports.ConnectionFailedException = exports.ConnectionClosedException = exports.CommandPreemptedException = exports.CommandFailedException = exports.BinaryCommandFailedException = void 0;
6
- exports.StreamMovementInterruptedExceptionData = exports.StreamMovementFailedExceptionData = void 0;
5
+ exports.MovementFailedExceptionData = exports.InvalidResponseExceptionData = exports.InvalidPacketExceptionData = exports.GCodeSyntaxExceptionData = exports.GCodeExecutionExceptionData = exports.DeviceAddressConflictExceptionData = exports.CommandFailedExceptionData = exports.BinaryCommandFailedExceptionData = exports.MotionLibException = exports.UnknownRequestException = exports.TransportAlreadyUsedException = exports.StreamSetupFailedException = exports.StreamMovementInterruptedException = exports.StreamMovementFailedException = exports.StreamModeException = exports.StreamExecutionException = exports.SettingNotFoundException = exports.SetPeripheralStateFailedException = exports.SetDeviceStateFailedException = exports.SerialPortBusyException = exports.RequestTimeoutException = exports.OutOfRequestIdsException = exports.OsFailedException = exports.NotSupportedException = exports.NoDeviceFoundException = exports.MovementInterruptedException = exports.MovementFailedException = exports.LockstepNotEnabledException = exports.LockstepEnabledException = exports.IoFailedException = exports.IoChannelOutOfRangeException = exports.InvalidResponseException = exports.InvalidParkStateException = exports.InvalidPacketException = exports.InvalidDataException = exports.InvalidArgumentException = exports.InternalErrorException = exports.GCodeSyntaxException = exports.GCodeExecutionException = exports.DeviceNotIdentifiedException = exports.DeviceFailedException = exports.DeviceDbFailedException = exports.DeviceBusyException = exports.DeviceAddressConflictException = exports.ConversionFailedException = exports.ConnectionFailedException = exports.ConnectionClosedException = exports.CommandPreemptedException = exports.CommandFailedException = exports.BinaryCommandFailedException = void 0;
6
+ exports.StreamMovementInterruptedExceptionData = exports.StreamMovementFailedExceptionData = exports.StreamExecutionExceptionData = exports.SetPeripheralStateExceptionData = exports.SetDeviceStateExceptionData = exports.MovementInterruptedExceptionData = void 0;
7
7
  var binary_command_failed_exception_1 = require("./binary_command_failed_exception");
8
8
  Object.defineProperty(exports, "BinaryCommandFailedException", { enumerable: true, get: function () { return binary_command_failed_exception_1.BinaryCommandFailedException; } });
9
9
  var command_failed_exception_1 = require("./command_failed_exception");
@@ -26,6 +26,10 @@ var device_failed_exception_1 = require("./device_failed_exception");
26
26
  Object.defineProperty(exports, "DeviceFailedException", { enumerable: true, get: function () { return device_failed_exception_1.DeviceFailedException; } });
27
27
  var device_not_identified_exception_1 = require("./device_not_identified_exception");
28
28
  Object.defineProperty(exports, "DeviceNotIdentifiedException", { enumerable: true, get: function () { return device_not_identified_exception_1.DeviceNotIdentifiedException; } });
29
+ var g_code_execution_exception_1 = require("./g_code_execution_exception");
30
+ Object.defineProperty(exports, "GCodeExecutionException", { enumerable: true, get: function () { return g_code_execution_exception_1.GCodeExecutionException; } });
31
+ var g_code_syntax_exception_1 = require("./g_code_syntax_exception");
32
+ Object.defineProperty(exports, "GCodeSyntaxException", { enumerable: true, get: function () { return g_code_syntax_exception_1.GCodeSyntaxException; } });
29
33
  var internal_error_exception_1 = require("./internal_error_exception");
30
34
  Object.defineProperty(exports, "InternalErrorException", { enumerable: true, get: function () { return internal_error_exception_1.InternalErrorException; } });
31
35
  var invalid_argument_exception_1 = require("./invalid_argument_exception");
@@ -90,6 +94,10 @@ var command_failed_exception_data_1 = require("./command_failed_exception_data")
90
94
  Object.defineProperty(exports, "CommandFailedExceptionData", { enumerable: true, get: function () { return command_failed_exception_data_1.CommandFailedExceptionData; } });
91
95
  var device_address_conflict_exception_data_1 = require("./device_address_conflict_exception_data");
92
96
  Object.defineProperty(exports, "DeviceAddressConflictExceptionData", { enumerable: true, get: function () { return device_address_conflict_exception_data_1.DeviceAddressConflictExceptionData; } });
97
+ var g_code_execution_exception_data_1 = require("./g_code_execution_exception_data");
98
+ Object.defineProperty(exports, "GCodeExecutionExceptionData", { enumerable: true, get: function () { return g_code_execution_exception_data_1.GCodeExecutionExceptionData; } });
99
+ var g_code_syntax_exception_data_1 = require("./g_code_syntax_exception_data");
100
+ Object.defineProperty(exports, "GCodeSyntaxExceptionData", { enumerable: true, get: function () { return g_code_syntax_exception_data_1.GCodeSyntaxExceptionData; } });
93
101
  var invalid_packet_exception_data_1 = require("./invalid_packet_exception_data");
94
102
  Object.defineProperty(exports, "InvalidPacketExceptionData", { enumerable: true, get: function () { return invalid_packet_exception_data_1.InvalidPacketExceptionData; } });
95
103
  var invalid_response_exception_data_1 = require("./invalid_response_exception_data");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exceptions/index.ts"],"names":[],"m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;AAA7D,oIAAA,uBAAuB,OAAA;AAChC,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;AAChC,yFAAoF;AAA3E,kJAAA,6BAA6B,OAAA;AACtC,iGAA4F;AAAnF,0JAAA,iCAAiC,OAAA;AAC1C,6EAAyE;AAAhE,uIAAA,wBAAwB,OAAA;AACjC,2EAAwE;AAA/D,sIAAA,wBAAwB,OAAA;AACjC,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAC5B,uFAAmF;AAA1E,iJAAA,6BAA6B,OAAA;AACtC,iGAA6F;AAApF,2JAAA,kCAAkC,OAAA;AAC3C,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,uFAAmF;AAA1E,iJAAA,6BAA6B,OAAA;AACtC,yEAAsE;AAA7D,oIAAA,uBAAuB,OAAA;AAChC,+DAA4D;AAAnD,0HAAA,kBAAkB,OAAA;AAE3B,+FAA0F;AAAjF,wJAAA,gCAAgC,OAAA;AACzC,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,mGAA8F;AAArF,4JAAA,kCAAkC,OAAA;AAC3C,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,mFAA+E;AAAtE,6IAAA,2BAA2B,OAAA;AACpC,6FAAyF;AAAhF,uJAAA,gCAAgC,OAAA;AACzC,qFAAgF;AAAvE,8IAAA,2BAA2B,OAAA;AACpC,6FAAwF;AAA/E,sJAAA,+BAA+B,OAAA;AACxC,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,iGAA4F;AAAnF,0JAAA,iCAAiC,OAAA;AAC1C,2GAAsG;AAA7F,oKAAA,sCAAsC,OAAA","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nexport { BinaryCommandFailedException } from './binary_command_failed_exception';\nexport { CommandFailedException } from './command_failed_exception';\nexport { CommandPreemptedException } from './command_preempted_exception';\nexport { ConnectionClosedException } from './connection_closed_exception';\nexport { ConnectionFailedException } from './connection_failed_exception';\nexport { ConversionFailedException } from './conversion_failed_exception';\nexport { DeviceAddressConflictException } from './device_address_conflict_exception';\nexport { DeviceBusyException } from './device_busy_exception';\nexport { DeviceDbFailedException } from './device_db_failed_exception';\nexport { DeviceFailedException } from './device_failed_exception';\nexport { DeviceNotIdentifiedException } from './device_not_identified_exception';\nexport { InternalErrorException } from './internal_error_exception';\nexport { InvalidArgumentException } from './invalid_argument_exception';\nexport { InvalidDataException } from './invalid_data_exception';\nexport { InvalidPacketException } from './invalid_packet_exception';\nexport { InvalidParkStateException } from './invalid_park_state_exception';\nexport { InvalidResponseException } from './invalid_response_exception';\nexport { IoChannelOutOfRangeException } from './io_channel_out_of_range_exception';\nexport { IoFailedException } from './io_failed_exception';\nexport { LockstepEnabledException } from './lockstep_enabled_exception';\nexport { LockstepNotEnabledException } from './lockstep_not_enabled_exception';\nexport { MovementFailedException } from './movement_failed_exception';\nexport { MovementInterruptedException } from './movement_interrupted_exception';\nexport { NoDeviceFoundException } from './no_device_found_exception';\nexport { NotSupportedException } from './not_supported_exception';\nexport { OsFailedException } from './os_failed_exception';\nexport { OutOfRequestIdsException } from './out_of_request_ids_exception';\nexport { RequestTimeoutException } from './request_timeout_exception';\nexport { SerialPortBusyException } from './serial_port_busy_exception';\nexport { SetDeviceStateFailedException } from './set_device_state_failed_exception';\nexport { SetPeripheralStateFailedException } from './set_peripheral_state_failed_exception';\nexport { SettingNotFoundException } from './setting_not_found_exception';\nexport { StreamExecutionException } from './stream_execution_exception';\nexport { StreamModeException } from './stream_mode_exception';\nexport { StreamMovementFailedException } from './stream_movement_failed_exception';\nexport { StreamMovementInterruptedException } from './stream_movement_interrupted_exception';\nexport { StreamSetupFailedException } from './stream_setup_failed_exception';\nexport { TransportAlreadyUsedException } from './transport_already_used_exception';\nexport { UnknownRequestException } from './unknown_request_exception';\nexport { MotionLibException } from './motion_lib_exception';\n\nexport { BinaryCommandFailedExceptionData } from './binary_command_failed_exception_data';\nexport { CommandFailedExceptionData } from './command_failed_exception_data';\nexport { DeviceAddressConflictExceptionData } from './device_address_conflict_exception_data';\nexport { InvalidPacketExceptionData } from './invalid_packet_exception_data';\nexport { InvalidResponseExceptionData } from './invalid_response_exception_data';\nexport { MovementFailedExceptionData } from './movement_failed_exception_data';\nexport { MovementInterruptedExceptionData } from './movement_interrupted_exception_data';\nexport { SetDeviceStateExceptionData } from './set_device_state_exception_data';\nexport { SetPeripheralStateExceptionData } from './set_peripheral_state_exception_data';\nexport { StreamExecutionExceptionData } from './stream_execution_exception_data';\nexport { StreamMovementFailedExceptionData } from './stream_movement_failed_exception_data';\nexport { StreamMovementInterruptedExceptionData } from './stream_movement_interrupted_exception_data';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exceptions/index.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;AAEtD,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,uEAAoE;AAA3D,kIAAA,sBAAsB,OAAA;AAC/B,6EAA0E;AAAjE,wIAAA,yBAAyB,OAAA;AAClC,6EAA0E;AAAjE,wIAAA,yBAAyB,OAAA;AAClC,6EAA0E;AAAjE,wIAAA,yBAAyB,OAAA;AAClC,6EAA0E;AAAjE,wIAAA,yBAAyB,OAAA;AAClC,yFAAqF;AAA5E,mJAAA,8BAA8B,OAAA;AACvC,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAC5B,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;AAChC,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA;AAC9B,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;AAChC,qEAAiE;AAAxD,+HAAA,oBAAoB,OAAA;AAC7B,uEAAoE;AAA3D,kIAAA,sBAAsB,OAAA;AAC/B,2EAAwE;AAA/D,sI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C,OAAA;AACzC,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,mGAA8F;AAArF,4JAAA,kCAAkC,OAAA;AAC3C,qFAAgF;AAAvE,8IAAA,2BAA2B,OAAA;AACpC,+EAA0E;AAAjE,wIAAA,wBAAwB,OAAA;AACjC,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,mFAA+E;AAAtE,6IAAA,2BAA2B,OAAA;AACpC,6FAAyF;AAAhF,uJAAA,gCAAgC,OAAA;AACzC,qFAAgF;AAAvE,8IAAA,2BAA2B,OAAA;AACpC,6FAAwF;AAA/E,sJAAA,+BAA+B,OAAA;AACxC,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,iGAA4F;AAAnF,0JAAA,iCAAiC,OAAA;AAC1C,2GAAsG;AAA7F,oKAAA,sCAAsC,OAAA","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nexport { BinaryCommandFailedException } from './binary_command_failed_exception';\nexport { CommandFailedException } from './command_failed_exception';\nexport { CommandPreemptedException } from './command_preempted_exception';\nexport { ConnectionClosedException } from './connection_closed_exception';\nexport { ConnectionFailedException } from './connection_failed_exception';\nexport { ConversionFailedException } from './conversion_failed_exception';\nexport { DeviceAddressConflictException } from './device_address_conflict_exception';\nexport { DeviceBusyException } from './device_busy_exception';\nexport { DeviceDbFailedException } from './device_db_failed_exception';\nexport { DeviceFailedException } from './device_failed_exception';\nexport { DeviceNotIdentifiedException } from './device_not_identified_exception';\nexport { GCodeExecutionException } from './g_code_execution_exception';\nexport { GCodeSyntaxException } from './g_code_syntax_exception';\nexport { InternalErrorException } from './internal_error_exception';\nexport { InvalidArgumentException } from './invalid_argument_exception';\nexport { InvalidDataException } from './invalid_data_exception';\nexport { InvalidPacketException } from './invalid_packet_exception';\nexport { InvalidParkStateException } from './invalid_park_state_exception';\nexport { InvalidResponseException } from './invalid_response_exception';\nexport { IoChannelOutOfRangeException } from './io_channel_out_of_range_exception';\nexport { IoFailedException } from './io_failed_exception';\nexport { LockstepEnabledException } from './lockstep_enabled_exception';\nexport { LockstepNotEnabledException } from './lockstep_not_enabled_exception';\nexport { MovementFailedException } from './movement_failed_exception';\nexport { MovementInterruptedException } from './movement_interrupted_exception';\nexport { NoDeviceFoundException } from './no_device_found_exception';\nexport { NotSupportedException } from './not_supported_exception';\nexport { OsFailedException } from './os_failed_exception';\nexport { OutOfRequestIdsException } from './out_of_request_ids_exception';\nexport { RequestTimeoutException } from './request_timeout_exception';\nexport { SerialPortBusyException } from './serial_port_busy_exception';\nexport { SetDeviceStateFailedException } from './set_device_state_failed_exception';\nexport { SetPeripheralStateFailedException } from './set_peripheral_state_failed_exception';\nexport { SettingNotFoundException } from './setting_not_found_exception';\nexport { StreamExecutionException } from './stream_execution_exception';\nexport { StreamModeException } from './stream_mode_exception';\nexport { StreamMovementFailedException } from './stream_movement_failed_exception';\nexport { StreamMovementInterruptedException } from './stream_movement_interrupted_exception';\nexport { StreamSetupFailedException } from './stream_setup_failed_exception';\nexport { TransportAlreadyUsedException } from './transport_already_used_exception';\nexport { UnknownRequestException } from './unknown_request_exception';\nexport { MotionLibException } from './motion_lib_exception';\n\nexport { BinaryCommandFailedExceptionData } from './binary_command_failed_exception_data';\nexport { CommandFailedExceptionData } from './command_failed_exception_data';\nexport { DeviceAddressConflictExceptionData } from './device_address_conflict_exception_data';\nexport { GCodeExecutionExceptionData } from './g_code_execution_exception_data';\nexport { GCodeSyntaxExceptionData } from './g_code_syntax_exception_data';\nexport { InvalidPacketExceptionData } from './invalid_packet_exception_data';\nexport { InvalidResponseExceptionData } from './invalid_response_exception_data';\nexport { MovementFailedExceptionData } from './movement_failed_exception_data';\nexport { MovementInterruptedExceptionData } from './movement_interrupted_exception_data';\nexport { SetDeviceStateExceptionData } from './set_device_state_exception_data';\nexport { SetPeripheralStateExceptionData } from './set_peripheral_state_exception_data';\nexport { StreamExecutionExceptionData } from './stream_execution_exception_data';\nexport { StreamMovementFailedExceptionData } from './stream_movement_failed_exception_data';\nexport { StreamMovementInterruptedExceptionData } from './stream_movement_interrupted_exception_data';\n"]}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @param instance what to finalize
3
+ * @param cleanup callback performing the finalization (MUST NOT hold reference to instance)
4
+ */
5
+ export declare const registerForFinalization: (instance: object, cleanup: () => void) => void;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerForFinalization = void 0;
4
+ let finalizationRegistry;
5
+ if (typeof FinalizationRegistry !== 'undefined') {
6
+ finalizationRegistry = new FinalizationRegistry(cleanup => cleanup());
7
+ }
8
+ /**
9
+ * @param instance what to finalize
10
+ * @param cleanup callback performing the finalization (MUST NOT hold reference to instance)
11
+ */
12
+ const registerForFinalization = (instance, cleanup) => {
13
+ if (finalizationRegistry == null) {
14
+ // eslint-disable-next-line no-console
15
+ console.warn(`FinalizationRegistry is not supported by your environment, instances of ${instance.constructor.name} must be freed manually.`);
16
+ return;
17
+ }
18
+ finalizationRegistry.register(instance, cleanup);
19
+ };
20
+ exports.registerForFinalization = registerForFinalization;
21
+ //# sourceMappingURL=finalizer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"finalizer.js","sourceRoot":"","sources":["../../src/finalizer.ts"],"names":[],"mappings":";;;AAAA,IAAI,oBAAkE,CAAC;AAEvE,IAAI,OAAO,oBAAoB,KAAK,WAAW,EAAE;IAC/C,oBAAoB,GAAG,IAAI,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;CACvE;AAED;;;GAGG;AACI,MAAM,uBAAuB,GAAG,CAAC,QAAgB,EAAE,OAAmB,EAAE,EAAE;IAC/E,IAAI,oBAAoB,IAAI,IAAI,EAAE;QAChC,sCAAsC;QACtC,OAAO,CAAC,IAAI,CAAC,2EAA2E,QAAQ,CAAC,WAAW,CAAC,IAAI,0BAA0B,CAAC,CAAC;QAC7I,OAAO;KACR;IACD,oBAAoB,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACnD,CAAC,CAAC;AAPW,QAAA,uBAAuB,2BAOlC","sourcesContent":["let finalizationRegistry: FinalizationRegistry<() => void> | undefined;\n\nif (typeof FinalizationRegistry !== 'undefined') {\n finalizationRegistry = new FinalizationRegistry(cleanup => cleanup());\n}\n\n/**\n * @param instance what to finalize\n * @param cleanup callback performing the finalization (MUST NOT hold reference to instance)\n */\nexport const registerForFinalization = (instance: object, cleanup: () => void) => { // eslint-disable-line @typescript-eslint/ban-types\n if (finalizationRegistry == null) {\n // eslint-disable-next-line no-console\n console.warn(`FinalizationRegistry is not supported by your environment, instances of ${instance.constructor.name} must be freed manually.`);\n return;\n }\n finalizationRegistry.register(instance, cleanup);\n};\n"]}
@@ -36,6 +36,8 @@ errorMapping.set(main_pb_1.Errors.DEVICE_BUSY, exceptions.DeviceBusyException);
36
36
  errorMapping.set(main_pb_1.Errors.DEVICE_DB_FAILED, exceptions.DeviceDbFailedException);
37
37
  errorMapping.set(main_pb_1.Errors.DEVICE_FAILED, exceptions.DeviceFailedException);
38
38
  errorMapping.set(main_pb_1.Errors.DEVICE_NOT_IDENTIFIED, exceptions.DeviceNotIdentifiedException);
39
+ errorMapping.set(main_pb_1.Errors.G_CODE_EXECUTION, exceptions.GCodeExecutionException);
40
+ errorMapping.set(main_pb_1.Errors.G_CODE_SYNTAX, exceptions.GCodeSyntaxException);
39
41
  errorMapping.set(main_pb_1.Errors.INTERNAL_ERROR, exceptions.InternalErrorException);
40
42
  errorMapping.set(main_pb_1.Errors.INVALID_ARGUMENT, exceptions.InvalidArgumentException);
41
43
  errorMapping.set(main_pb_1.Errors.INVALID_DATA, exceptions.InvalidDataException);
@@ -1 +1 @@
1
- {"version":3,"file":"convert_exceptions.js","sourceRoot":"","sources":["../../../src/gateway/convert_exceptions.ts"],"names":[],"mapp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,SAAgB,kBAAkB,CAAC,KAAe,EAAE,OAAe,EAAE,UAAmB;IACtF,MAAM,iBAAiB,GAAG,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAElD,wBAAwB;IACxB,IAAI,CAAC,iBAAiB,EAAE;QACtB,OAAO,IAAI,UAAU,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;KACnD;IAED,OAAO,IAAI,iBAAiB,CAAC,OAAO,EAAE,UAAW,CAAC,CAAC;AACrD,CAAC;AATD,gDASC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Errors as PbErrors } from '../protobufs/main_pb';\nimport * as exceptions from '../exceptions';\n\nconst errorMapping = new Map<PbErrors, new (message: string, customData: Buffer) => exceptions.MotionLibException>();\nerrorMapping.set(PbErrors.BINARY_COMMAND_FAILED, exceptions.BinaryCommandFailedException);\nerrorMapping.set(PbErrors.COMMAND_FAILED, exceptions.CommandFailedException);\nerrorMapping.set(PbErrors.COMMAND_PREEMPTED, exceptions.CommandPreemptedException);\nerrorMapping.set(PbErrors.CONNECTION_CLOSED, exceptions.ConnectionClosedException);\nerrorMapping.set(PbErrors.CONNECTION_FAILED, exceptions.ConnectionFailedException);\nerrorMapping.set(PbErrors.CONVERSION_FAILED, exceptions.ConversionFailedException);\nerrorMapping.set(PbErrors.DEVICE_ADDRESS_CONFLICT, exceptions.DeviceAddressConflictException);\nerrorMapping.set(PbErrors.DEVICE_BUSY, exceptions.DeviceBusyException);\nerrorMapping.set(PbErrors.DEVICE_DB_FAILED, exceptions.DeviceDbFailedException);\nerrorMapping.set(PbErrors.DEVICE_FAILED, exceptions.DeviceFailedException);\nerrorMapping.set(PbErrors.DEVICE_NOT_IDENTIFIED, exceptions.DeviceNotIdentifiedException);\nerrorMapping.set(PbErrors.INTERNAL_ERROR, exceptions.InternalErrorException);\nerrorMapping.set(PbErrors.INVALID_ARGUMENT, exceptions.InvalidArgumentException);\nerrorMapping.set(PbErrors.INVALID_DATA, exceptions.InvalidDataException);\nerrorMapping.set(PbErrors.INVALID_PACKET, exceptions.InvalidPacketException);\nerrorMapping.set(PbErrors.INVALID_PARK_STATE, exceptions.InvalidParkStateException);\nerrorMapping.set(PbErrors.INVALID_RESPONSE, exceptions.InvalidResponseException);\nerrorMapping.set(PbErrors.IO_CHANNEL_OUT_OF_RANGE, exceptions.IoChannelOutOfRangeException);\nerrorMapping.set(PbErrors.IO_FAILED, exceptions.IoFailedException);\nerrorMapping.set(PbErrors.LOCKSTEP_ENABLED, exceptions.LockstepEnabledException);\nerrorMapping.set(PbErrors.LOCKSTEP_NOT_ENABLED, exceptions.LockstepNotEnabledException);\nerrorMapping.set(PbErrors.MOVEMENT_FAILED, exceptions.MovementFailedException);\nerrorMapping.set(PbErrors.MOVEMENT_INTERRUPTED, exceptions.MovementInterruptedException);\nerrorMapping.set(PbErrors.NO_DEVICE_FOUND, exceptions.NoDeviceFoundException);\nerrorMapping.set(PbErrors.NOT_SUPPORTED, exceptions.NotSupportedException);\nerrorMapping.set(PbErrors.OS_FAILED, exceptions.OsFailedException);\nerrorMapping.set(PbErrors.OUT_OF_REQUEST_IDS, exceptions.OutOfRequestIdsException);\nerrorMapping.set(PbErrors.REQUEST_TIMEOUT, exceptions.RequestTimeoutException);\nerrorMapping.set(PbErrors.SERIAL_PORT_BUSY, exceptions.SerialPortBusyException);\nerrorMapping.set(PbErrors.SET_DEVICE_STATE_FAILED, exceptions.SetDeviceStateFailedException);\nerrorMapping.set(PbErrors.SET_PERIPHERAL_STATE_FAILED, exceptions.SetPeripheralStateFailedException);\nerrorMapping.set(PbErrors.SETTING_NOT_FOUND, exceptions.SettingNotFoundException);\nerrorMapping.set(PbErrors.STREAM_EXECUTION, exceptions.StreamExecutionException);\nerrorMapping.set(PbErrors.STREAM_MODE, exceptions.StreamModeException);\nerrorMapping.set(PbErrors.STREAM_MOVEMENT_FAILED, exceptions.StreamMovementFailedException);\nerrorMapping.set(PbErrors.STREAM_MOVEMENT_INTERRUPTED, exceptions.StreamMovementInterruptedException);\nerrorMapping.set(PbErrors.STREAM_SETUP_FAILED, exceptions.StreamSetupFailedException);\nerrorMapping.set(PbErrors.TRANSPORT_ALREADY_USED, exceptions.TransportAlreadyUsedException);\nerrorMapping.set(PbErrors.UNKNOWN_REQUEST, exceptions.UnknownRequestException);\n\nexport function convertToException(error: PbErrors, message: string, customData?: Buffer): exceptions.MotionLibException {\n const SpecificException = errorMapping.get(error);\n\n /* istanbul ignore if */\n if (!SpecificException) {\n return new exceptions.MotionLibException(message);\n }\n\n return new SpecificException(message, customData!);\n}\n"]}
1
+ {"version":3,"file":"convert_exceptions.js","sourceRoot":"","sources":["../../../src/gateway/convert_exceptions.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAEtD,kDAA0D;AAC1D,0DAA4C;AAE5C,MAAM,YAAY,GAAG,IAAI,GAAG,EAAwF,CAAC;AACrH,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,qBAAqB,EAAE,UAAU,CAAC,4BAA4B,CAAC,CAAC;AAC1F,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,cAAc,EAAE,UAAU,CAAC,sBAAsB,CAAC,CAAC;AAC7E,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,iBAAiB,EAAE,UAAU,CAAC,yBAAyB,CAAC,CAAC;AACnF,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,iBAAiB,EAAE,UAAU,CAAC,yBAAyB,CAAC,CAAC;AACnF,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,iBAAiB,EAAE,UAAU,CAAC,yBAAyB,CAAC,CAAC;AACnF,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,iBAAiB,EAAE,UAAU,CAAC,yBAAyB,CAAC,CAAC;AACnF,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,uBAAuB,EAAE,UAA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BAAwB,CAAC,CAAC;AAClF,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,gBAAgB,EAAE,UAAU,CAAC,wBAAwB,CAAC,CAAC;AACjF,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,mBAAmB,CAAC,CAAC;AACvE,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,sBAAsB,EAAE,UAAU,CAAC,6BAA6B,CAAC,CAAC;AAC5F,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,2BAA2B,EAAE,UAAU,CAAC,kCAAkC,CAAC,CAAC;AACtG,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,mBAAmB,EAAE,UAAU,CAAC,0BAA0B,CAAC,CAAC;AACtF,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,sBAAsB,EAAE,UAAU,CAAC,6BAA6B,CAAC,CAAC;AAC5F,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,eAAe,EAAE,UAAU,CAAC,uBAAuB,CAAC,CAAC;AAE/E,SAAgB,kBAAkB,CAAC,KAAe,EAAE,OAAe,EAAE,UAAmB;IACtF,MAAM,iBAAiB,GAAG,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAElD,wBAAwB;IACxB,IAAI,CAAC,iBAAiB,EAAE;QACtB,OAAO,IAAI,UAAU,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;KACnD;IAED,OAAO,IAAI,iBAAiB,CAAC,OAAO,EAAE,UAAW,CAAC,CAAC;AACrD,CAAC;AATD,gDASC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Errors as PbErrors } from '../protobufs/main_pb';\nimport * as exceptions from '../exceptions';\n\nconst errorMapping = new Map<PbErrors, new (message: string, customData: Buffer) => exceptions.MotionLibException>();\nerrorMapping.set(PbErrors.BINARY_COMMAND_FAILED, exceptions.BinaryCommandFailedException);\nerrorMapping.set(PbErrors.COMMAND_FAILED, exceptions.CommandFailedException);\nerrorMapping.set(PbErrors.COMMAND_PREEMPTED, exceptions.CommandPreemptedException);\nerrorMapping.set(PbErrors.CONNECTION_CLOSED, exceptions.ConnectionClosedException);\nerrorMapping.set(PbErrors.CONNECTION_FAILED, exceptions.ConnectionFailedException);\nerrorMapping.set(PbErrors.CONVERSION_FAILED, exceptions.ConversionFailedException);\nerrorMapping.set(PbErrors.DEVICE_ADDRESS_CONFLICT, exceptions.DeviceAddressConflictException);\nerrorMapping.set(PbErrors.DEVICE_BUSY, exceptions.DeviceBusyException);\nerrorMapping.set(PbErrors.DEVICE_DB_FAILED, exceptions.DeviceDbFailedException);\nerrorMapping.set(PbErrors.DEVICE_FAILED, exceptions.DeviceFailedException);\nerrorMapping.set(PbErrors.DEVICE_NOT_IDENTIFIED, exceptions.DeviceNotIdentifiedException);\nerrorMapping.set(PbErrors.G_CODE_EXECUTION, exceptions.GCodeExecutionException);\nerrorMapping.set(PbErrors.G_CODE_SYNTAX, exceptions.GCodeSyntaxException);\nerrorMapping.set(PbErrors.INTERNAL_ERROR, exceptions.InternalErrorException);\nerrorMapping.set(PbErrors.INVALID_ARGUMENT, exceptions.InvalidArgumentException);\nerrorMapping.set(PbErrors.INVALID_DATA, exceptions.InvalidDataException);\nerrorMapping.set(PbErrors.INVALID_PACKET, exceptions.InvalidPacketException);\nerrorMapping.set(PbErrors.INVALID_PARK_STATE, exceptions.InvalidParkStateException);\nerrorMapping.set(PbErrors.INVALID_RESPONSE, exceptions.InvalidResponseException);\nerrorMapping.set(PbErrors.IO_CHANNEL_OUT_OF_RANGE, exceptions.IoChannelOutOfRangeException);\nerrorMapping.set(PbErrors.IO_FAILED, exceptions.IoFailedException);\nerrorMapping.set(PbErrors.LOCKSTEP_ENABLED, exceptions.LockstepEnabledException);\nerrorMapping.set(PbErrors.LOCKSTEP_NOT_ENABLED, exceptions.LockstepNotEnabledException);\nerrorMapping.set(PbErrors.MOVEMENT_FAILED, exceptions.MovementFailedException);\nerrorMapping.set(PbErrors.MOVEMENT_INTERRUPTED, exceptions.MovementInterruptedException);\nerrorMapping.set(PbErrors.NO_DEVICE_FOUND, exceptions.NoDeviceFoundException);\nerrorMapping.set(PbErrors.NOT_SUPPORTED, exceptions.NotSupportedException);\nerrorMapping.set(PbErrors.OS_FAILED, exceptions.OsFailedException);\nerrorMapping.set(PbErrors.OUT_OF_REQUEST_IDS, exceptions.OutOfRequestIdsException);\nerrorMapping.set(PbErrors.REQUEST_TIMEOUT, exceptions.RequestTimeoutException);\nerrorMapping.set(PbErrors.SERIAL_PORT_BUSY, exceptions.SerialPortBusyException);\nerrorMapping.set(PbErrors.SET_DEVICE_STATE_FAILED, exceptions.SetDeviceStateFailedException);\nerrorMapping.set(PbErrors.SET_PERIPHERAL_STATE_FAILED, exceptions.SetPeripheralStateFailedException);\nerrorMapping.set(PbErrors.SETTING_NOT_FOUND, exceptions.SettingNotFoundException);\nerrorMapping.set(PbErrors.STREAM_EXECUTION, exceptions.StreamExecutionException);\nerrorMapping.set(PbErrors.STREAM_MODE, exceptions.StreamModeException);\nerrorMapping.set(PbErrors.STREAM_MOVEMENT_FAILED, exceptions.StreamMovementFailedException);\nerrorMapping.set(PbErrors.STREAM_MOVEMENT_INTERRUPTED, exceptions.StreamMovementInterruptedException);\nerrorMapping.set(PbErrors.STREAM_SETUP_FAILED, exceptions.StreamSetupFailedException);\nerrorMapping.set(PbErrors.TRANSPORT_ALREADY_USED, exceptions.TransportAlreadyUsedException);\nerrorMapping.set(PbErrors.UNKNOWN_REQUEST, exceptions.UnknownRequestException);\n\nexport function convertToException(error: PbErrors, message: string, customData?: Buffer): exceptions.MotionLibException {\n const SpecificException = errorMapping.get(error);\n\n /* istanbul ignore if */\n if (!SpecificException) {\n return new exceptions.MotionLibException(message);\n }\n\n return new SpecificException(message, customData!);\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
+ }
@@ -0,0 +1,38 @@
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.AxisMapping = void 0;
25
+ const gateway = __importStar(require("../gateway"));
26
+ var AxisMapping;
27
+ (function (AxisMapping) {
28
+ AxisMapping.__type = 'AxisMapping';
29
+ /** @internal */
30
+ function toProtobuf(source) {
31
+ const pbData = new gateway.TranslatorAxisMapping();
32
+ pbData.setAxisLetter(source.axisLetter);
33
+ pbData.setAxisIndex(source.axisIndex);
34
+ return pbData;
35
+ }
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
+ (0, 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,IAAA,mCAAuB,EAAC,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,OAAO,IAAI,UAAU,CAAC,QAAQ,CAAC,eAAe,EAAE,CAAC,CAAC;IACpD,CAAC;IAED;;;;OAIG;IACI,SAAS,CACd,KAAa;QAEb,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,0BAA0B,EAAE,CAAC;QACzD,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC3C,OAAO,CAAC,QAAQ,CAAC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OAAO,CAAC,IAAI,CAAC,CAAC;QAEtB,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,yBAAyB,EACzB,OAAO,EACP,OAAO,CAAC,iCAAiC,CAAC,CAAC;QAC7C,OAAO,QAAQ,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;IAED;;;;;;OAMG;IACI,sBAAsB,CAC3B,IAAY,EACZ,QAAgB,EAChB,IAA6B;QAE7B,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,gCAAgC,EAAE,CAAC;QAC/D,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC3C,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACtB,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC9B,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAEtB,OAAO,CAAC,QAAQ,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED;;;OAGG;IACK,MAAM,CAAC,KAAK,CAClB,YAAoB;QAEpB,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,sBAAsB,EAAE,CAAC;QACrD,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;QAEtC,OAAO,CAAC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED;;;;OAIG;IACI,IAAI;QACT,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;CACF;AA/JD,gCA+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
+ }