@zaber/motion 2.8.1-alpha-1 → 2.9.1
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.
- package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
- package/dist/lib/ascii/device.d.ts +4 -0
- package/dist/lib/ascii/device.js +6 -0
- package/dist/lib/ascii/device.js.map +1 -1
- package/dist/lib/ascii/device_identity.d.ts +4 -0
- package/dist/lib/ascii/device_identity.js +1 -0
- package/dist/lib/ascii/device_identity.js.map +1 -1
- package/dist/lib/ascii/stream.d.ts +16 -0
- package/dist/lib/ascii/stream.js +37 -0
- package/dist/lib/ascii/stream.js.map +1 -1
- package/dist/lib/ascii/stream_axis_definition.d.ts +1 -1
- package/dist/lib/ascii/stream_axis_definition.js.map +1 -1
- package/dist/lib/ascii/stream_buffer.d.ts +1 -0
- package/dist/lib/ascii/stream_buffer.js +1 -0
- package/dist/lib/ascii/stream_buffer.js.map +1 -1
- package/dist/lib/exceptions/g_code_execution_exception.d.ts +14 -0
- package/dist/lib/exceptions/g_code_execution_exception.js +32 -0
- package/dist/lib/exceptions/g_code_execution_exception.js.map +1 -0
- package/dist/lib/exceptions/g_code_execution_exception_data.d.ts +17 -0
- package/dist/lib/exceptions/g_code_execution_exception_data.js +18 -0
- package/dist/lib/exceptions/g_code_execution_exception_data.js.map +1 -0
- package/dist/lib/exceptions/g_code_syntax_exception.d.ts +14 -0
- package/dist/lib/exceptions/g_code_syntax_exception.js +32 -0
- package/dist/lib/exceptions/g_code_syntax_exception.js.map +1 -0
- package/dist/lib/exceptions/g_code_syntax_exception_data.d.ts +17 -0
- package/dist/lib/exceptions/g_code_syntax_exception_data.js +18 -0
- package/dist/lib/exceptions/g_code_syntax_exception_data.js.map +1 -0
- package/dist/lib/exceptions/index.d.ts +4 -0
- package/dist/lib/exceptions/index.js +10 -2
- package/dist/lib/exceptions/index.js.map +1 -1
- package/dist/lib/finalizer.d.ts +5 -0
- package/dist/lib/finalizer.js +21 -0
- package/dist/lib/finalizer.js.map +1 -0
- package/dist/lib/gateway/convert_exceptions.js +2 -0
- package/dist/lib/gateway/convert_exceptions.js.map +1 -1
- package/dist/lib/gcode/axis_mapping.d.ts +16 -0
- package/dist/lib/gcode/axis_mapping.js +38 -0
- package/dist/lib/gcode/axis_mapping.js.map +1 -0
- package/dist/lib/gcode/index.d.ts +8 -0
- package/dist/lib/gcode/index.js +20 -0
- package/dist/lib/gcode/index.js.map +1 -0
- package/dist/lib/gcode/translate_message.d.ts +21 -0
- package/dist/lib/gcode/translate_message.js +19 -0
- package/dist/lib/gcode/translate_message.js.map +1 -0
- package/dist/lib/gcode/translate_result.d.ts +17 -0
- package/dist/lib/gcode/translate_result.js +19 -0
- package/dist/lib/gcode/translate_result.js.map +1 -0
- package/dist/lib/gcode/translator.d.ts +68 -0
- package/dist/lib/gcode/translator.js +144 -0
- package/dist/lib/gcode/translator.js.map +1 -0
- package/dist/lib/gcode/translator_axis_definition.d.ts +20 -0
- package/dist/lib/gcode/translator_axis_definition.js +48 -0
- package/dist/lib/gcode/translator_axis_definition.js.map +1 -0
- package/dist/lib/gcode/translator_config.d.ts +18 -0
- package/dist/lib/gcode/translator_config.js +41 -0
- package/dist/lib/gcode/translator_config.js.map +1 -0
- package/dist/lib/gcode/translator_definition.d.ts +18 -0
- package/dist/lib/gcode/translator_definition.js +39 -0
- package/dist/lib/gcode/translator_definition.js.map +1 -0
- package/dist/lib/gcode/translator_live.d.ts +70 -0
- package/dist/lib/gcode/translator_live.js +147 -0
- package/dist/lib/gcode/translator_live.js.map +1 -0
- package/dist/lib/gcode_ns.d.ts +19 -0
- package/dist/lib/gcode_ns.js +35 -0
- package/dist/lib/gcode_ns.js.map +1 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.js +1 -0
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/measurement.d.ts +1 -1
- package/dist/lib/measurement.js.map +1 -1
- package/dist/lib/protobufs/main_pb.d.ts +550 -0
- package/dist/lib/protobufs/main_pb.js +4710 -459
- package/dist/lib/protobufs/main_pb.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,32 @@
|
|
|
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.GCodeExecutionException = void 0;
|
|
6
|
+
const motion_lib_exception_1 = require("./motion_lib_exception");
|
|
7
|
+
const main_pb_1 = require("../protobufs/main_pb");
|
|
8
|
+
const g_code_execution_exception_data_1 = require("./g_code_execution_exception_data");
|
|
9
|
+
/**
|
|
10
|
+
* Thrown when a block of G-Code cannot be executed.
|
|
11
|
+
*/
|
|
12
|
+
class GCodeExecutionException extends motion_lib_exception_1.MotionLibException {
|
|
13
|
+
constructor(message, customData) {
|
|
14
|
+
super(message);
|
|
15
|
+
Object.setPrototypeOf(this, GCodeExecutionException.prototype);
|
|
16
|
+
if (Buffer.isBuffer(customData)) {
|
|
17
|
+
const protobufObj = main_pb_1.GCodeExecutionExceptionData.deserializeBinary(customData);
|
|
18
|
+
this._details = g_code_execution_exception_data_1.GCodeExecutionExceptionData.fromProtobuf(protobufObj.toObject());
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
this._details = customData;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Additional data for GCodeExecutionException
|
|
26
|
+
*/
|
|
27
|
+
get details() {
|
|
28
|
+
return this._details;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.GCodeExecutionException = GCodeExecutionException;
|
|
32
|
+
//# sourceMappingURL=g_code_execution_exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"g_code_execution_exception.js","sourceRoot":"","sources":["../../../src/exceptions/g_code_execution_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAyF;AACzF,uFAAgF;AAEhF;;GAEG;AACH,MAAa,uBAAwB,SAAQ,yCAAkB;IAS7D,YACE,OAAe,EACf,UAAgD;QAEhD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;QAE/D,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,qCAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,6DAA2B,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SAClF;aAAM;YACL,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;SAC5B;IACH,CAAC;IArBD;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CAiBF;AAvBD,0DAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { GCodeExecutionExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { GCodeExecutionExceptionData } from './g_code_execution_exception_data';\n\n/**\n * Thrown when a block of G-Code cannot be executed.\n */\nexport class GCodeExecutionException extends MotionLibException {\n /**\n * Additional data for GCodeExecutionException\n */\n public get details(): GCodeExecutionExceptionData {\n return this._details;\n }\n private _details: GCodeExecutionExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | GCodeExecutionExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, GCodeExecutionException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = GCodeExecutionExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contains additional data for GCodeExecutionException.
|
|
3
|
+
*/
|
|
4
|
+
export interface GCodeExecutionExceptionData {
|
|
5
|
+
/**
|
|
6
|
+
* The index in the block string that caused the exception.
|
|
7
|
+
*/
|
|
8
|
+
fromBlock: number;
|
|
9
|
+
/**
|
|
10
|
+
* The end index in the block string that caused the exception.
|
|
11
|
+
* The end index is exclusive.
|
|
12
|
+
*/
|
|
13
|
+
toBlock: number;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace GCodeExecutionExceptionData {
|
|
16
|
+
const __type = "GCodeExecutionExceptionData";
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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.GCodeExecutionExceptionData = void 0;
|
|
6
|
+
var GCodeExecutionExceptionData;
|
|
7
|
+
(function (GCodeExecutionExceptionData) {
|
|
8
|
+
GCodeExecutionExceptionData.__type = 'GCodeExecutionExceptionData';
|
|
9
|
+
/** @internal */
|
|
10
|
+
function fromProtobuf(pbData) {
|
|
11
|
+
return {
|
|
12
|
+
fromBlock: pbData.fromBlock,
|
|
13
|
+
toBlock: pbData.toBlock,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
GCodeExecutionExceptionData.fromProtobuf = fromProtobuf;
|
|
17
|
+
})(GCodeExecutionExceptionData = exports.GCodeExecutionExceptionData || (exports.GCodeExecutionExceptionData = {}));
|
|
18
|
+
//# sourceMappingURL=g_code_execution_exception_data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"g_code_execution_exception_data.js","sourceRoot":"","sources":["../../../src/exceptions/g_code_execution_exception_data.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAqBtD,IAAiB,2BAA2B,CAU3C;AAVD,WAAiB,2BAA2B;IAC7B,kCAAM,GAAG,6BAA6B,CAAC;IAEpD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAoD;QAC/E,OAAO;YACL,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB,CAAC;IACJ,CAAC;IALe,wCAAY,eAK3B,CAAA;AACH,CAAC,EAVgB,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAU3C","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Contains additional data for GCodeExecutionException.\n */\nexport interface GCodeExecutionExceptionData {\n /**\n * The index in the block string that caused the exception.\n */\n fromBlock: number;\n\n /**\n * The end index in the block string that caused the exception.\n * The end index is exclusive.\n */\n toBlock: number;\n\n}\n\nexport namespace GCodeExecutionExceptionData {\n export const __type = 'GCodeExecutionExceptionData';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.GCodeExecutionExceptionData.AsObject): GCodeExecutionExceptionData {\n return {\n fromBlock: pbData.fromBlock,\n toBlock: pbData.toBlock,\n };\n }\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { MotionLibException } from './motion_lib_exception';
|
|
3
|
+
import { GCodeSyntaxExceptionData } from './g_code_syntax_exception_data';
|
|
4
|
+
/**
|
|
5
|
+
* Thrown when a block of G-Code cannot be parsed.
|
|
6
|
+
*/
|
|
7
|
+
export declare class GCodeSyntaxException extends MotionLibException {
|
|
8
|
+
/**
|
|
9
|
+
* Additional data for GCodeSyntaxException
|
|
10
|
+
*/
|
|
11
|
+
get details(): GCodeSyntaxExceptionData;
|
|
12
|
+
private _details;
|
|
13
|
+
constructor(message: string, customData: Buffer | GCodeSyntaxExceptionData);
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.GCodeSyntaxException = void 0;
|
|
6
|
+
const motion_lib_exception_1 = require("./motion_lib_exception");
|
|
7
|
+
const main_pb_1 = require("../protobufs/main_pb");
|
|
8
|
+
const g_code_syntax_exception_data_1 = require("./g_code_syntax_exception_data");
|
|
9
|
+
/**
|
|
10
|
+
* Thrown when a block of G-Code cannot be parsed.
|
|
11
|
+
*/
|
|
12
|
+
class GCodeSyntaxException extends motion_lib_exception_1.MotionLibException {
|
|
13
|
+
constructor(message, customData) {
|
|
14
|
+
super(message);
|
|
15
|
+
Object.setPrototypeOf(this, GCodeSyntaxException.prototype);
|
|
16
|
+
if (Buffer.isBuffer(customData)) {
|
|
17
|
+
const protobufObj = main_pb_1.GCodeSyntaxExceptionData.deserializeBinary(customData);
|
|
18
|
+
this._details = g_code_syntax_exception_data_1.GCodeSyntaxExceptionData.fromProtobuf(protobufObj.toObject());
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
this._details = customData;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Additional data for GCodeSyntaxException
|
|
26
|
+
*/
|
|
27
|
+
get details() {
|
|
28
|
+
return this._details;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.GCodeSyntaxException = GCodeSyntaxException;
|
|
32
|
+
//# sourceMappingURL=g_code_syntax_exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"g_code_syntax_exception.js","sourceRoot":"","sources":["../../../src/exceptions/g_code_syntax_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAsF;AACtF,iFAA0E;AAE1E;;GAEG;AACH,MAAa,oBAAqB,SAAQ,yCAAkB;IAS1D,YACE,OAAe,EACf,UAA6C;QAE7C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;QAE5D,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,kCAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,uDAAwB,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SAC/E;aAAM;YACL,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;SAC5B;IACH,CAAC;IArBD;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CAiBF;AAvBD,oDAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { GCodeSyntaxExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { GCodeSyntaxExceptionData } from './g_code_syntax_exception_data';\n\n/**\n * Thrown when a block of G-Code cannot be parsed.\n */\nexport class GCodeSyntaxException extends MotionLibException {\n /**\n * Additional data for GCodeSyntaxException\n */\n public get details(): GCodeSyntaxExceptionData {\n return this._details;\n }\n private _details: GCodeSyntaxExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | GCodeSyntaxExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, GCodeSyntaxException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = GCodeSyntaxExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contains additional data for GCodeSyntaxException.
|
|
3
|
+
*/
|
|
4
|
+
export interface GCodeSyntaxExceptionData {
|
|
5
|
+
/**
|
|
6
|
+
* The index in the block string that caused the exception.
|
|
7
|
+
*/
|
|
8
|
+
fromBlock: number;
|
|
9
|
+
/**
|
|
10
|
+
* The end index in the block string that caused the exception.
|
|
11
|
+
* The end index is exclusive.
|
|
12
|
+
*/
|
|
13
|
+
toBlock: number;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace GCodeSyntaxExceptionData {
|
|
16
|
+
const __type = "GCodeSyntaxExceptionData";
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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.GCodeSyntaxExceptionData = void 0;
|
|
6
|
+
var GCodeSyntaxExceptionData;
|
|
7
|
+
(function (GCodeSyntaxExceptionData) {
|
|
8
|
+
GCodeSyntaxExceptionData.__type = 'GCodeSyntaxExceptionData';
|
|
9
|
+
/** @internal */
|
|
10
|
+
function fromProtobuf(pbData) {
|
|
11
|
+
return {
|
|
12
|
+
fromBlock: pbData.fromBlock,
|
|
13
|
+
toBlock: pbData.toBlock,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
GCodeSyntaxExceptionData.fromProtobuf = fromProtobuf;
|
|
17
|
+
})(GCodeSyntaxExceptionData = exports.GCodeSyntaxExceptionData || (exports.GCodeSyntaxExceptionData = {}));
|
|
18
|
+
//# sourceMappingURL=g_code_syntax_exception_data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"g_code_syntax_exception_data.js","sourceRoot":"","sources":["../../../src/exceptions/g_code_syntax_exception_data.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAqBtD,IAAiB,wBAAwB,CAUxC;AAVD,WAAiB,wBAAwB;IAC1B,+BAAM,GAAG,0BAA0B,CAAC;IAEjD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAiD;QAC5E,OAAO;YACL,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB,CAAC;IACJ,CAAC;IALe,qCAAY,eAK3B,CAAA;AACH,CAAC,EAVgB,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAUxC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Contains additional data for GCodeSyntaxException.\n */\nexport interface GCodeSyntaxExceptionData {\n /**\n * The index in the block string that caused the exception.\n */\n fromBlock: number;\n\n /**\n * The end index in the block string that caused the exception.\n * The end index is exclusive.\n */\n toBlock: number;\n\n}\n\nexport namespace GCodeSyntaxExceptionData {\n export const __type = 'GCodeSyntaxExceptionData';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.GCodeSyntaxExceptionData.AsObject): GCodeSyntaxExceptionData {\n return {\n fromBlock: pbData.fromBlock,\n toBlock: pbData.toBlock,\n };\n }\n}\n"]}
|
|
@@ -9,6 +9,8 @@ export { DeviceBusyException } from './device_busy_exception';
|
|
|
9
9
|
export { DeviceDbFailedException } from './device_db_failed_exception';
|
|
10
10
|
export { DeviceFailedException } from './device_failed_exception';
|
|
11
11
|
export { DeviceNotIdentifiedException } from './device_not_identified_exception';
|
|
12
|
+
export { GCodeExecutionException } from './g_code_execution_exception';
|
|
13
|
+
export { GCodeSyntaxException } from './g_code_syntax_exception';
|
|
12
14
|
export { InternalErrorException } from './internal_error_exception';
|
|
13
15
|
export { InvalidArgumentException } from './invalid_argument_exception';
|
|
14
16
|
export { InvalidDataException } from './invalid_data_exception';
|
|
@@ -41,6 +43,8 @@ export { MotionLibException } from './motion_lib_exception';
|
|
|
41
43
|
export { BinaryCommandFailedExceptionData } from './binary_command_failed_exception_data';
|
|
42
44
|
export { CommandFailedExceptionData } from './command_failed_exception_data';
|
|
43
45
|
export { DeviceAddressConflictExceptionData } from './device_address_conflict_exception_data';
|
|
46
|
+
export { GCodeExecutionExceptionData } from './g_code_execution_exception_data';
|
|
47
|
+
export { GCodeSyntaxExceptionData } from './g_code_syntax_exception_data';
|
|
44
48
|
export { InvalidPacketExceptionData } from './invalid_packet_exception_data';
|
|
45
49
|
export { InvalidResponseExceptionData } from './invalid_response_exception_data';
|
|
46
50
|
export { MovementFailedExceptionData } from './movement_failed_exception_data';
|
|
@@ -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.
|
|
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":[],"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,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jC,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,sIAAA,wBAAwB,OAAA;AACjC,mEAAgE;AAAvD,8HAAA,oBAAoB,OAAA;AAC7B,uEAAoE;AAA3D,kIAAA,sBAAsB,OAAA;AAC/B,+EAA2E;AAAlE,yIAAA,yBAAyB,OAAA;AAClC,2EAAwE;AAA/D,sIAAA,wBAAwB,OAAA;AACjC,yFAAmF;AAA1E,iJAAA,4BAA4B,OAAA;AACrC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,+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,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":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAEtD,kDAA0D;AAC1D,0DAA4C;AAE5C,MAAM,YAAY,GAAG,IAAI,GAAG,EAAwF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AwB;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,UAAU,CAAC,8BAA8B,CAAC,CAAC;AAC9F,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,mBAAmB,CAAC,CAAC;AACvE,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AC,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"]}
|