@zaber/motion 7.1.1 → 7.2.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 (51) hide show
  1. package/dist/binding/wasm/zaber-motion-core.wasm +0 -0
  2. package/dist/lib/channel_address.d.ts +20 -0
  3. package/dist/lib/channel_address.d.ts.map +1 -0
  4. package/dist/lib/channel_address.js +27 -0
  5. package/dist/lib/channel_address.js.map +1 -0
  6. package/dist/lib/custom_bindings.d.ts +3 -0
  7. package/dist/lib/custom_bindings.d.ts.map +1 -0
  8. package/dist/lib/custom_bindings.js +10 -0
  9. package/dist/lib/custom_bindings.js.map +1 -0
  10. package/dist/lib/exceptions/remote_mode_exception.d.ts +1 -1
  11. package/dist/lib/exceptions/remote_mode_exception.js +1 -1
  12. package/dist/lib/exceptions/remote_mode_exception.js.map +1 -1
  13. package/dist/lib/gateway/bindings.d.ts +4 -2
  14. package/dist/lib/gateway/bindings.d.ts.map +1 -1
  15. package/dist/lib/gateway/bindings.exec.d.ts +2 -0
  16. package/dist/lib/gateway/bindings.exec.d.ts.map +1 -0
  17. package/dist/lib/gateway/bindings.exec.js +16 -0
  18. package/dist/lib/gateway/bindings.exec.js.map +1 -0
  19. package/dist/lib/gateway/bindings.js +11 -4
  20. package/dist/lib/gateway/bindings.js.map +1 -1
  21. package/dist/lib/index.d.ts +1 -0
  22. package/dist/lib/index.d.ts.map +1 -1
  23. package/dist/lib/index.js +1 -0
  24. package/dist/lib/index.js.map +1 -1
  25. package/dist/lib/library.js +1 -1
  26. package/dist/lib/library.js.map +1 -1
  27. package/dist/lib/microscopy/camera_trigger.d.ts +43 -0
  28. package/dist/lib/microscopy/camera_trigger.d.ts.map +1 -0
  29. package/dist/lib/microscopy/camera_trigger.js +98 -0
  30. package/dist/lib/microscopy/camera_trigger.js.map +1 -0
  31. package/dist/lib/microscopy/index.d.ts +1 -0
  32. package/dist/lib/microscopy/index.d.ts.map +1 -1
  33. package/dist/lib/microscopy/index.js +1 -0
  34. package/dist/lib/microscopy/index.js.map +1 -1
  35. package/dist/lib/microscopy/microscope.d.ts +6 -0
  36. package/dist/lib/microscopy/microscope.d.ts.map +1 -1
  37. package/dist/lib/microscopy/microscope.js +9 -1
  38. package/dist/lib/microscopy/microscope.js.map +1 -1
  39. package/dist/lib/microscopy/microscope_config.d.ts +5 -0
  40. package/dist/lib/microscopy/microscope_config.d.ts.map +1 -1
  41. package/dist/lib/microscopy/microscope_config.js +3 -0
  42. package/dist/lib/microscopy/microscope_config.js.map +1 -1
  43. package/dist/lib/requests/index.d.ts +1 -0
  44. package/dist/lib/requests/index.d.ts.map +1 -1
  45. package/dist/lib/requests/index.js +1 -0
  46. package/dist/lib/requests/index.js.map +1 -1
  47. package/dist/lib/requests/microscope_trigger_camera_request.d.ts +16 -0
  48. package/dist/lib/requests/microscope_trigger_camera_request.d.ts.map +1 -0
  49. package/dist/lib/requests/microscope_trigger_camera_request.js +36 -0
  50. package/dist/lib/requests/microscope_trigger_camera_request.js.map +1 -0
  51. package/package.json +9 -2
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Holds device address and IO channel number.
3
+ */
4
+ export interface ChannelAddress {
5
+ /**
6
+ * Device address.
7
+ */
8
+ device: number;
9
+ /**
10
+ * IO channel number.
11
+ */
12
+ channel: number;
13
+ }
14
+ export declare const ChannelAddress: {
15
+ fromBinary: (buffer: Uint8Array) => ChannelAddress;
16
+ toBinary: (value: ChannelAddress) => Uint8Array;
17
+ DEFAULT: Readonly<ChannelAddress>;
18
+ sanitize: (value: ChannelAddress) => ChannelAddress;
19
+ };
20
+ //# sourceMappingURL=channel_address.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel_address.d.ts","sourceRoot":"","sources":["../../src/channel_address.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CAEjB;AAED,eAAO,MAAM,cAAc;yBACJ,UAAU,KAAG,cAAc;sBAC9B,cAAc,KAAG,UAAU;;sBAK3B,cAAc,KAAG,cAAc;CAQlD,CAAC"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChannelAddress = void 0;
4
+ /* This file is generated. Do not modify by hand. */
5
+ const bson_1 = require("bson");
6
+ const sanitizer_1 = require("./gateway/sanitizer");
7
+ exports.ChannelAddress = {
8
+ fromBinary: (buffer) => bson_1.BSON.deserialize(buffer),
9
+ toBinary: (value) => bson_1.BSON.serialize(exports.ChannelAddress.sanitize(value)),
10
+ DEFAULT: Object.freeze({
11
+ device: 0,
12
+ channel: 0,
13
+ }),
14
+ sanitize: (value) => {
15
+ if (value == null) {
16
+ throw new TypeError('Expected ChannelAddress object but got null or undefined.');
17
+ }
18
+ if (typeof value !== 'object') {
19
+ throw new TypeError(`Expected ChannelAddress object but got ${typeof value}.`);
20
+ }
21
+ return {
22
+ device: sanitizer_1.sanitizer.sanitizeInt(value.device, 'device'),
23
+ channel: sanitizer_1.sanitizer.sanitizeInt(value.channel, 'channel'),
24
+ };
25
+ },
26
+ };
27
+ //# sourceMappingURL=channel_address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel_address.js","sourceRoot":"","sources":["../../src/channel_address.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,mDAAgD;AAkBnC,QAAA,cAAc,GAAG;IAC5B,UAAU,EAAE,CAAC,MAAkB,EAAkB,EAAE,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,CAAmB;IAC9F,QAAQ,EAAE,CAAC,KAAqB,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,sBAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/F,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,MAAM,EAAE,CAAC;QACT,OAAO,EAAE,CAAC;KACX,CAA6B;IAC9B,QAAQ,EAAE,CAAC,KAAqB,EAAkB,EAAE;QAClD,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,2DAA2D,CAAC,CAAA;QAAC,CAAC;QACvG,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,0CAA0C,OAAO,KAAK,GAAG,CAAC,CAAA;QAAC,CAAC;QACjH,OAAO;YACL,MAAM,EAAE,qBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC;YACrD,OAAO,EAAE,qBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,EAAE,SAAS,CAAC;SACzD,CAAC;IACJ,CAAC;CACF,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from './gateway/sanitizer';\n\n/**\n * Holds device address and IO channel number.\n */\nexport interface ChannelAddress {\n /**\n * Device address.\n */\n device: number;\n\n /**\n * IO channel number.\n */\n channel: number;\n\n}\n\nexport const ChannelAddress = {\n fromBinary: (buffer: Uint8Array): ChannelAddress => BSON.deserialize(buffer) as ChannelAddress,\n toBinary: (value: ChannelAddress): Uint8Array => BSON.serialize(ChannelAddress.sanitize(value)),\n DEFAULT: Object.freeze({\n device: 0,\n channel: 0,\n }) as Readonly<ChannelAddress>,\n sanitize: (value: ChannelAddress): ChannelAddress => {\n if (value == null) { throw new TypeError('Expected ChannelAddress object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected ChannelAddress object but got ${typeof value}.`) }\n return {\n device: sanitizer.sanitizeInt(value.device, 'device'),\n channel: sanitizer.sanitizeInt(value.channel, 'channel'),\n };\n },\n};\n"]}
@@ -0,0 +1,3 @@
1
+ /** Sets a custom directory to read the executable binding from if not running in a normal node environment */
2
+ export declare function useCustomBindings(libPath: string): void;
3
+ //# sourceMappingURL=custom_bindings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom_bindings.d.ts","sourceRoot":"","sources":["../../src/custom_bindings.ts"],"names":[],"mappings":"AAEA,8GAA8G;AAC9G,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEvD"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useCustomBindings = void 0;
4
+ const bindings_1 = require("./gateway/bindings");
5
+ /** Sets a custom directory to read the executable binding from if not running in a normal node environment */
6
+ function useCustomBindings(libPath) {
7
+ (0, bindings_1.setEnv)('exec', libPath);
8
+ }
9
+ exports.useCustomBindings = useCustomBindings;
10
+ //# sourceMappingURL=custom_bindings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom_bindings.js","sourceRoot":"","sources":["../../src/custom_bindings.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,8GAA8G;AAC9G,SAAgB,iBAAiB,CAAC,OAAe;IAC/C,IAAA,iBAAM,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC1B,CAAC;AAFD,8CAEC","sourcesContent":["import { setEnv } from './gateway/bindings';\n\n/** Sets a custom directory to read the executable binding from if not running in a normal node environment */\nexport function useCustomBindings(libPath: string): void {\n setEnv('exec', libPath);\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  import { CommandFailedException } from './command_failed_exception';
2
2
  import { CommandFailedExceptionData } from './command_failed_exception_data';
3
3
  /**
4
- * Thrown when a command is rejected because the device is in remote mode.
4
+ * Thrown when a command is rejected because the device is in EtherCAT Control (remote) mode.
5
5
  */
6
6
  export declare class RemoteModeException extends CommandFailedException {
7
7
  constructor(message: string, customData: Uint8Array | CommandFailedExceptionData);
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.RemoteModeException = void 0;
6
6
  const command_failed_exception_1 = require("./command_failed_exception");
7
7
  /**
8
- * Thrown when a command is rejected because the device is in remote mode.
8
+ * Thrown when a command is rejected because the device is in EtherCAT Control (remote) mode.
9
9
  */
10
10
  class RemoteModeException extends command_failed_exception_1.CommandFailedException {
11
11
  constructor(message, customData) {
@@ -1 +1 @@
1
- {"version":3,"file":"remote_mode_exception.js","sourceRoot":"","sources":["../../../src/exceptions/remote_mode_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,yEAAoE;AAGpE;;GAEG;AACH,MAAa,mBAAoB,SAAQ,iDAAsB;IAC7D,YACE,OAAe,EACf,UAAmD;QAEnD,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;QAC3B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAC7D,CAAC;CACF;AARD,kDAQC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { CommandFailedException } from './command_failed_exception';\nimport { CommandFailedExceptionData } from './command_failed_exception_data';\n\n/**\n * Thrown when a command is rejected because the device is in remote mode.\n */\nexport class RemoteModeException extends CommandFailedException {\n constructor(\n message: string,\n customData: Uint8Array | CommandFailedExceptionData\n ) {\n super(message, customData);\n Object.setPrototypeOf(this, RemoteModeException.prototype);\n }\n}\n"]}
1
+ {"version":3,"file":"remote_mode_exception.js","sourceRoot":"","sources":["../../../src/exceptions/remote_mode_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,yEAAoE;AAGpE;;GAEG;AACH,MAAa,mBAAoB,SAAQ,iDAAsB;IAC7D,YACE,OAAe,EACf,UAAmD;QAEnD,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;QAC3B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAC7D,CAAC;CACF;AARD,kDAQC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { CommandFailedException } from './command_failed_exception';\nimport { CommandFailedExceptionData } from './command_failed_exception_data';\n\n/**\n * Thrown when a command is rejected because the device is in EtherCAT Control (remote) mode.\n */\nexport class RemoteModeException extends CommandFailedException {\n constructor(\n message: string,\n customData: Uint8Array | CommandFailedExceptionData\n ) {\n super(message, customData);\n Object.setPrototypeOf(this, RemoteModeException.prototype);\n }\n}\n"]}
@@ -1,5 +1,7 @@
1
- type Env = 'node' | 'wasm';
2
- export declare const setEnv: (env: Env) => void;
1
+ type Env = 'node' | 'wasm' | 'exec';
2
+ export declare let bindingLibPath: string;
3
+ export declare function setEnv(env: Exclude<Env, 'exec'>): void;
4
+ export declare function setEnv(env: 'exec', libPath: string): void;
3
5
  export declare const getBinding: () => any;
4
6
  export declare const addInitCallback: (cb: () => void) => void;
5
7
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"bindings.d.ts","sourceRoot":"","sources":["../../../src/gateway/bindings.ts"],"names":[],"mappings":"AACA,KAAK,GAAG,GAAG,MAAM,GAAG,MAAM,CAAC;AAO3B,eAAO,MAAM,MAAM,QAAS,GAAG,SAK9B,CAAC;AAEF,eAAO,MAAM,UAAU,QAAO,GAgB7B,CAAC;AAEF,eAAO,MAAM,eAAe,OAAQ,MAAM,IAAI,SAK7C,CAAC"}
1
+ {"version":3,"file":"bindings.d.ts","sourceRoot":"","sources":["../../../src/gateway/bindings.ts"],"names":[],"mappings":"AACA,KAAK,GAAG,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAGpC,eAAO,IAAI,cAAc,QAAK,CAAC;AAK/B,wBAAgB,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;AACxD,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;AAW3D,eAAO,MAAM,UAAU,QAAO,GAiB7B,CAAC;AAEF,eAAO,MAAM,eAAe,OAAQ,MAAM,IAAI,SAK7C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=bindings.exec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bindings.exec.d.ts","sourceRoot":"","sources":["../../../src/gateway/bindings.exec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const path_1 = __importDefault(require("path"));
7
+ const bindings_1 = require("./bindings");
8
+ const execLibPath = bindings_1.bindingLibPath.at(-1) !== path_1.default.sep ? `${bindings_1.bindingLibPath}${path_1.default.sep}` : bindings_1.bindingLibPath;
9
+ try {
10
+ process.dlopen(module, path_1.default.join(execLibPath, 'zaber-motion.node'));
11
+ module.exports.loadDll(execLibPath);
12
+ }
13
+ catch (error) {
14
+ throw new Error(`Failed to load bindings at "${execLibPath}" (${error})`);
15
+ }
16
+ //# sourceMappingURL=bindings.exec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bindings.exec.js","sourceRoot":"","sources":["../../../src/gateway/bindings.exec.ts"],"names":[],"mappings":";;;;;AAAA,gDAAwB;AACxB,yCAA4C;AAE5C,MAAM,WAAW,GAAG,yBAAc,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,cAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,yBAAc,GAAG,cAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,yBAAc,CAAC;AACzG,IAAI,CAAC;IACH,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,mBAAmB,CAAC,CAAC,CAAC;IACpE,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;AACtC,CAAC;AAAC,OAAO,KAAK,EAAE,CAAC;IACf,MAAM,IAAI,KAAK,CAAC,+BAA+B,WAAW,MAAM,KAAK,GAAG,CAAC,CAAC;AAC5E,CAAC","sourcesContent":["import path from 'path';\nimport { bindingLibPath } from './bindings';\n\nconst execLibPath = bindingLibPath.at(-1) !== path.sep ? `${bindingLibPath}${path.sep}` : bindingLibPath;\ntry {\n process.dlopen(module, path.join(execLibPath, 'zaber-motion.node'));\n module.exports.loadDll(execLibPath);\n} catch (error) {\n throw new Error(`Failed to load bindings at \"${execLibPath}\" (${error})`);\n}\n"]}
@@ -1,23 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addInitCallback = exports.getBinding = exports.setEnv = void 0;
3
+ exports.addInitCallback = exports.getBinding = exports.setEnv = exports.bindingLibPath = void 0;
4
4
  let execEnv = 'node';
5
+ exports.bindingLibPath = '';
5
6
  let locked = false;
6
7
  let bindings;
7
8
  let initCallbacks = [];
8
- const setEnv = (env) => {
9
+ function setEnv(env, libPath) {
9
10
  if (locked) {
10
11
  throw new Error('Library was already loaded.');
11
12
  }
12
13
  execEnv = env;
13
- };
14
+ if (libPath != null) {
15
+ exports.bindingLibPath = libPath;
16
+ }
17
+ }
14
18
  exports.setEnv = setEnv;
15
19
  const getBinding = () => {
16
20
  if (bindings != null) {
17
21
  return bindings;
18
22
  }
19
23
  locked = true;
20
- if (execEnv === 'node') {
24
+ if (execEnv === 'exec') {
25
+ bindings = require('./bindings.exec');
26
+ }
27
+ else if (execEnv === 'node') {
21
28
  bindings = require('./bindings.node').binding;
22
29
  }
23
30
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"bindings.js","sourceRoot":"","sources":["../../../src/gateway/bindings.ts"],"names":[],"mappings":";;;AAGA,IAAI,OAAO,GAAQ,MAAM,CAAC;AAC1B,IAAI,MAAM,GAAG,KAAK,CAAC;AACnB,IAAI,QAAa,CAAC;AAClB,IAAI,aAAa,GAA0B,EAAE,CAAC;AAEvC,MAAM,MAAM,GAAG,CAAC,GAAQ,EAAE,EAAE;IACjC,IAAI,MAAM,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;IACD,OAAO,GAAG,GAAG,CAAC;AAChB,CAAC,CAAC;AALW,QAAA,MAAM,UAKjB;AAEK,MAAM,UAAU,GAAG,GAAQ,EAAE;IAClC,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;QACrB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,GAAG,IAAI,CAAC;IAEd,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;QACvB,QAAQ,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC;IAChD,CAAC;SAAM,CAAC;QACN,QAAQ,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC;IAChD,CAAC;IAED,aAAc,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC/C,aAAa,GAAG,IAAI,CAAC;IAErB,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAhBW,QAAA,UAAU,cAgBrB;AAEK,MAAM,eAAe,GAAG,CAAC,EAAc,EAAE,EAAE;IAChD,IAAI,aAAa,IAAI,IAAI,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;IACD,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzB,CAAC,CAAC;AALW,QAAA,eAAe,mBAK1B","sourcesContent":["/* eslint-disable @typescript-eslint/no-var-requires */\ntype Env = 'node' | 'wasm';\n\nlet execEnv: Env = 'node';\nlet locked = false;\nlet bindings: any;\nlet initCallbacks: (() => void)[] | null = [];\n\nexport const setEnv = (env: Env) => {\n if (locked) {\n throw new Error('Library was already loaded.');\n }\n execEnv = env;\n};\n\nexport const getBinding = (): any => {\n if (bindings != null) {\n return bindings;\n }\n locked = true;\n\n if (execEnv === 'node') {\n bindings = require('./bindings.node').binding;\n } else {\n bindings = require('./bindings.wasm').binding;\n }\n\n initCallbacks!.forEach(callback => callback());\n initCallbacks = null;\n\n return bindings;\n};\n\nexport const addInitCallback = (cb: () => void) => {\n if (initCallbacks == null) {\n throw new Error('Library was already loaded.');\n }\n initCallbacks.push(cb);\n};\n"]}
1
+ {"version":3,"file":"bindings.js","sourceRoot":"","sources":["../../../src/gateway/bindings.ts"],"names":[],"mappings":";;;AAGA,IAAI,OAAO,GAAQ,MAAM,CAAC;AACf,QAAA,cAAc,GAAG,EAAE,CAAC;AAC/B,IAAI,MAAM,GAAG,KAAK,CAAC;AACnB,IAAI,QAAa,CAAC;AAClB,IAAI,aAAa,GAA0B,EAAE,CAAC;AAI9C,SAAgB,MAAM,CAAC,GAAQ,EAAE,OAAgB;IAC/C,IAAI,MAAM,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;IACD,OAAO,GAAG,GAAG,CAAC;IACd,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;QACpB,sBAAc,GAAG,OAAO,CAAC;IAC3B,CAAC;AACH,CAAC;AARD,wBAQC;AAEM,MAAM,UAAU,GAAG,GAAQ,EAAE;IAClC,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;QACrB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,GAAG,IAAI,CAAC;IACd,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;QACvB,QAAQ,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACxC,CAAC;SAAM,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;QAC9B,QAAQ,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC;IAChD,CAAC;SAAM,CAAC;QACN,QAAQ,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC;IAChD,CAAC;IAED,aAAc,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC/C,aAAa,GAAG,IAAI,CAAC;IAErB,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAjBW,QAAA,UAAU,cAiBrB;AAEK,MAAM,eAAe,GAAG,CAAC,EAAc,EAAE,EAAE;IAChD,IAAI,aAAa,IAAI,IAAI,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;IACD,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzB,CAAC,CAAC;AALW,QAAA,eAAe,mBAK1B","sourcesContent":["/* eslint-disable @typescript-eslint/no-var-requires */\ntype Env = 'node' | 'wasm' | 'exec';\n\nlet execEnv: Env = 'node';\nexport let bindingLibPath = '';\nlet locked = false;\nlet bindings: any;\nlet initCallbacks: (() => void)[] | null = [];\n\nexport function setEnv(env: Exclude<Env, 'exec'>): void;\nexport function setEnv(env: 'exec', libPath: string): void;\nexport function setEnv(env: Env, libPath?: string): void {\n if (locked) {\n throw new Error('Library was already loaded.');\n }\n execEnv = env;\n if (libPath != null) {\n bindingLibPath = libPath;\n }\n}\n\nexport const getBinding = (): any => {\n if (bindings != null) {\n return bindings;\n }\n locked = true;\n if (execEnv === 'exec') {\n bindings = require('./bindings.exec');\n } else if (execEnv === 'node') {\n bindings = require('./bindings.node').binding;\n } else {\n bindings = require('./bindings.wasm').binding;\n }\n\n initCallbacks!.forEach(callback => callback());\n initCallbacks = null;\n\n return bindings;\n};\n\nexport const addInitCallback = (cb: () => void) => {\n if (initCallbacks == null) {\n throw new Error('Library was already loaded.');\n }\n initCallbacks.push(cb);\n};\n"]}
@@ -4,6 +4,7 @@ export * as gcode from './gcode';
4
4
  export * as microscopy from './microscopy';
5
5
  export * as product from './product';
6
6
  export * from './axis_address';
7
+ export * from './channel_address';
7
8
  export * from './device_db_source_type';
8
9
  export * from './exceptions';
9
10
  export * from './firmware_version';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
package/dist/lib/index.js CHANGED
@@ -34,6 +34,7 @@ exports.gcode = __importStar(require("./gcode"));
34
34
  exports.microscopy = __importStar(require("./microscopy"));
35
35
  exports.product = __importStar(require("./product"));
36
36
  __exportStar(require("./axis_address"), exports);
37
+ __exportStar(require("./channel_address"), exports);
37
38
  __exportStar(require("./device_db_source_type"), exports);
38
39
  __exportStar(require("./exceptions"), exports);
39
40
  __exportStar(require("./firmware_version"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,iDAAiC;AACjC,mDAAmC;AACnC,iDAAiC;AACjC,2DAA2C;AAC3C,qDAAqC;AACrC,iDAA+B;AAC/B,0DAAwC;AACxC,+CAA6B;AAC7B,qDAAmC;AACnC,4CAA0B;AAC1B,oDAAkC;AAClC,gDAA8B;AAC9B,oDAAkC;AAClC,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B;AAC7B,0CAAwB","sourcesContent":["/* This file is generated. Do not modify by hand. */\nexport * as ascii from './ascii';\nexport * as binary from './binary';\nexport * as gcode from './gcode';\nexport * as microscopy from './microscopy';\nexport * as product from './product';\nexport * from './axis_address';\nexport * from './device_db_source_type';\nexport * from './exceptions';\nexport * from './firmware_version';\nexport * from './library';\nexport * from './log_output_mode';\nexport * from './measurement';\nexport * from './named_parameter';\nexport * from './rotation_direction';\nexport * from './tools';\nexport * from './unit_table';\nexport * from './units';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,iDAAiC;AACjC,mDAAmC;AACnC,iDAAiC;AACjC,2DAA2C;AAC3C,qDAAqC;AACrC,iDAA+B;AAC/B,oDAAkC;AAClC,0DAAwC;AACxC,+CAA6B;AAC7B,qDAAmC;AACnC,4CAA0B;AAC1B,oDAAkC;AAClC,gDAA8B;AAC9B,oDAAkC;AAClC,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B;AAC7B,0CAAwB","sourcesContent":["/* This file is generated. Do not modify by hand. */\nexport * as ascii from './ascii';\nexport * as binary from './binary';\nexport * as gcode from './gcode';\nexport * as microscopy from './microscopy';\nexport * as product from './product';\nexport * from './axis_address';\nexport * from './channel_address';\nexport * from './device_db_source_type';\nexport * from './exceptions';\nexport * from './firmware_version';\nexport * from './library';\nexport * from './log_output_mode';\nexport * from './measurement';\nexport * from './named_parameter';\nexport * from './rotation_direction';\nexport * from './tools';\nexport * from './unit_table';\nexport * from './units';\n"]}
@@ -130,7 +130,7 @@ class Library {
130
130
  const request = {
131
131
  ...requests.CheckVersionRequest.DEFAULT,
132
132
  host: 'js',
133
- version: '7.1.1',
133
+ version: '7.2.0',
134
134
  toBinary() {
135
135
  return requests.CheckVersionRequest.toBinary(this);
136
136
  },
@@ -1 +1 @@
1
- {"version":3,"file":"library.js","sourceRoot":"","sources":["../../src/library.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,mDAAqC;AACrC,qDAAuC;AAIvC,MAAa,OAAO;IAClB;;;;OAIG;IACI,MAAM,CAAC,YAAY,CACxB,IAAmB,EACnB,QAAiB;QAEjB,MAAM,OAAO,GAAmD;YAC9D,GAAG,QAAQ,CAAC,mBAAmB,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,QAAQ;YAClB,QAAQ;gBACN,OAAO,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,iBAAiB,CAC7B,UAA8B,EAC9B,aAAsB;QAEtB,MAAM,OAAO,GAAwD;YACnE,GAAG,QAAQ,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C;IACzD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,oBAAoB,CAChC,MAAc;QAEd,MAAM,OAAO,GAA0C;YACrD,GAAG,QAAQ,CAAC,UAAU,CAAC,OAAO;YAC9B,KAAK,EAAE,MAAM;YACb,QAAQ;gBACN,OAAO,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC5C,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,YAAY;QACxB,MAAM,OAAO,GAAmD;YAC9D,GAAG,QAAQ,CAAC,mBAAmB,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,OAAO;YAChB,QAAQ;gBACN,OAAO,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;CACF;AAtID,0BAsIC;AAED,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\nimport * as requests from './requests';\nimport { LogOutputMode } from './log_output_mode';\nimport { DeviceDbSourceType } from './device_db_source_type';\n\nexport class Library {\n /**\n * Sets library logging output.\n * @param mode Logging output mode.\n * @param filePath Path of the file to open.\n */\n public static setLogOutput(\n mode: LogOutputMode,\n filePath?: string\n ): void {\n const request: requests.SetLogOutputRequest & gateway.Message = {\n ...requests.SetLogOutputRequest.DEFAULT,\n mode: mode,\n filePath: filePath,\n toBinary() {\n return requests.SetLogOutputRequest.toBinary(this);\n },\n };\n\n gateway.callSync('logging/set_output', request);\n }\n\n /**\n * Sets source of Device DB data. Allows selection of a web service or a local file.\n * @param sourceType Source type.\n * @param urlOrFilePath URL of the web service or path to the local file.\n * Leave empty for the default URL of Zaber web service.\n */\n public static setDeviceDbSource(\n sourceType: DeviceDbSourceType,\n urlOrFilePath?: string\n ): void {\n const request: requests.SetDeviceDbSourceRequest & gateway.Message = {\n ...requests.SetDeviceDbSourceRequest.DEFAULT,\n sourceType: sourceType,\n urlOrFilePath: urlOrFilePath,\n toBinary() {\n return requests.SetDeviceDbSourceRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/set_source', request);\n }\n\n /**\n * Enables Device DB store.\n * The store uses filesystem to save information obtained from the Device DB.\n * The stored data are later used instead of the Device DB.\n * @param storeLocation Specifies relative or absolute path of the folder used by the store.\n * If left empty defaults to a folder in user home directory.\n * Must be accessible by the process.\n */\n public static enableDeviceDbStore(\n storeLocation?: string\n ): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toggleOn: true,\n storeLocation: storeLocation,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Disables Device DB store.\n */\n public static disableDeviceDbStore(): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Disables certain customer checks (like FF flag).\n * @param mode Whether to turn internal mode on or off.\n */\n public static setInternalMode(\n mode: boolean\n ): void {\n const request: requests.SetInternalModeRequest & gateway.Message = {\n ...requests.SetInternalModeRequest.DEFAULT,\n mode: mode,\n toBinary() {\n return requests.SetInternalModeRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_internal_mode', request);\n }\n\n /**\n * Sets the period between polling for IDLE during movements.\n * Caution: Setting the period too low may cause performance issues.\n * @param period Period in milliseconds.\n * Negative value restores the default period.\n */\n public static setIdlePollingPeriod(\n period: number\n ): void {\n const request: requests.IntRequest & gateway.Message = {\n ...requests.IntRequest.DEFAULT,\n value: period,\n toBinary() {\n return requests.IntRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_idle_polling_period', request);\n }\n\n /**\n * Throws an error if the version of the loaded shared library does not match the caller's version.\n */\n public static checkVersion(): void {\n const request: requests.CheckVersionRequest & gateway.Message = {\n ...requests.CheckVersionRequest.DEFAULT,\n host: 'js',\n version: '7.1.1',\n toBinary() {\n return requests.CheckVersionRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/check_version', request);\n }\n}\n\ngateway.addInitCallback(Library.checkVersion);\n"]}
1
+ {"version":3,"file":"library.js","sourceRoot":"","sources":["../../src/library.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,mDAAqC;AACrC,qDAAuC;AAIvC,MAAa,OAAO;IAClB;;;;OAIG;IACI,MAAM,CAAC,YAAY,CACxB,IAAmB,EACnB,QAAiB;QAEjB,MAAM,OAAO,GAAmD;YAC9D,GAAG,QAAQ,CAAC,mBAAmB,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,QAAQ;YAClB,QAAQ;gBACN,OAAO,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,iBAAiB,CAC7B,UAA8B,EAC9B,aAAsB;QAEtB,MAAM,OAAO,GAAwD;YACnE,GAAG,QAAQ,CAAC,wBAAwB,CAAC,OAAO;YAC5C,UAAU,EAAE,UAAU;YACtB,aAAa,EAAE,aAAa;YAC5B,QAAQ;gBACN,OAAO,QAAQ,CAAC,wBA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AAU,CAAC,OAAO;YAC9B,KAAK,EAAE,MAAM;YACb,QAAQ;gBACN,OAAO,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC5C,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,YAAY;QACxB,MAAM,OAAO,GAAmD;YAC9D,GAAG,QAAQ,CAAC,mBAAmB,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,OAAO;YAChB,QAAQ;gBACN,OAAO,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;CACF;AAtID,0BAsIC;AAED,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\nimport * as requests from './requests';\nimport { LogOutputMode } from './log_output_mode';\nimport { DeviceDbSourceType } from './device_db_source_type';\n\nexport class Library {\n /**\n * Sets library logging output.\n * @param mode Logging output mode.\n * @param filePath Path of the file to open.\n */\n public static setLogOutput(\n mode: LogOutputMode,\n filePath?: string\n ): void {\n const request: requests.SetLogOutputRequest & gateway.Message = {\n ...requests.SetLogOutputRequest.DEFAULT,\n mode: mode,\n filePath: filePath,\n toBinary() {\n return requests.SetLogOutputRequest.toBinary(this);\n },\n };\n\n gateway.callSync('logging/set_output', request);\n }\n\n /**\n * Sets source of Device DB data. Allows selection of a web service or a local file.\n * @param sourceType Source type.\n * @param urlOrFilePath URL of the web service or path to the local file.\n * Leave empty for the default URL of Zaber web service.\n */\n public static setDeviceDbSource(\n sourceType: DeviceDbSourceType,\n urlOrFilePath?: string\n ): void {\n const request: requests.SetDeviceDbSourceRequest & gateway.Message = {\n ...requests.SetDeviceDbSourceRequest.DEFAULT,\n sourceType: sourceType,\n urlOrFilePath: urlOrFilePath,\n toBinary() {\n return requests.SetDeviceDbSourceRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/set_source', request);\n }\n\n /**\n * Enables Device DB store.\n * The store uses filesystem to save information obtained from the Device DB.\n * The stored data are later used instead of the Device DB.\n * @param storeLocation Specifies relative or absolute path of the folder used by the store.\n * If left empty defaults to a folder in user home directory.\n * Must be accessible by the process.\n */\n public static enableDeviceDbStore(\n storeLocation?: string\n ): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toggleOn: true,\n storeLocation: storeLocation,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Disables Device DB store.\n */\n public static disableDeviceDbStore(): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Disables certain customer checks (like FF flag).\n * @param mode Whether to turn internal mode on or off.\n */\n public static setInternalMode(\n mode: boolean\n ): void {\n const request: requests.SetInternalModeRequest & gateway.Message = {\n ...requests.SetInternalModeRequest.DEFAULT,\n mode: mode,\n toBinary() {\n return requests.SetInternalModeRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_internal_mode', request);\n }\n\n /**\n * Sets the period between polling for IDLE during movements.\n * Caution: Setting the period too low may cause performance issues.\n * @param period Period in milliseconds.\n * Negative value restores the default period.\n */\n public static setIdlePollingPeriod(\n period: number\n ): void {\n const request: requests.IntRequest & gateway.Message = {\n ...requests.IntRequest.DEFAULT,\n value: period,\n toBinary() {\n return requests.IntRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_idle_polling_period', request);\n }\n\n /**\n * Throws an error if the version of the loaded shared library does not match the caller's version.\n */\n public static checkVersion(): void {\n const request: requests.CheckVersionRequest & gateway.Message = {\n ...requests.CheckVersionRequest.DEFAULT,\n host: 'js',\n version: '7.2.0',\n toBinary() {\n return requests.CheckVersionRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/check_version', request);\n }\n}\n\ngateway.addInitCallback(Library.checkVersion);\n"]}
@@ -0,0 +1,43 @@
1
+ import { Time, Native } from '../units';
2
+ import { Device } from '../ascii/device';
3
+ /**
4
+ * An abstraction over a device and it's digital output channel.
5
+ */
6
+ export declare class CameraTrigger {
7
+ /**
8
+ * The device whose digital output triggers the camera.
9
+ */
10
+ get device(): Device;
11
+ private _device;
12
+ /**
13
+ * The digital output channel that triggers the camera.
14
+ */
15
+ get channel(): number;
16
+ private _channel;
17
+ /**
18
+ * Creates instance of `CameraTrigger` based on the given device and digital output channel.
19
+ */
20
+ constructor(device: Device, channel: number);
21
+ /**
22
+ * Triggers the camera.
23
+ * Schedules trigger pulse on the digital output channel.
24
+ * By default, the method waits until the trigger pulse is finished.
25
+ * @param pulseWidth The time duration of the trigger pulse.
26
+ * Depending on the camera setting, the argument can be use to specify exposure.
27
+ * @param [unit=Units.NATIVE] Units of time.
28
+ * @param [options.wait=true] If false, the method does not wait until the trigger pulse is finished.
29
+ */
30
+ trigger(pulseWidth: number, unit?: Time | Native, options?: CameraTrigger.TriggerOptions): Promise<void>;
31
+ /**
32
+ * Returns a string that represents the device.
33
+ * @returns A string that represents the device.
34
+ */
35
+ toString(): string;
36
+ }
37
+ declare namespace CameraTrigger {
38
+ interface TriggerOptions {
39
+ wait?: boolean;
40
+ }
41
+ }
42
+ export {};
43
+ //# sourceMappingURL=camera_trigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"camera_trigger.d.ts","sourceRoot":"","sources":["../../../src/microscopy/camera_trigger.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAS,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC;;GAEG;AACH,qBAAa,aAAa;IACxB;;OAEG;IACH,IAAW,MAAM,IAAI,MAAM,CAE1B;IACD,OAAO,CAAC,OAAO,CAAS;IAExB;;OAEG;IACH,IAAW,OAAO,IAAI,MAAM,CAE3B;IACD,OAAO,CAAC,QAAQ,CAAS;IAEzB;;OAEG;gBACS,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAK3C;;;;;;;;OAQG;IACU,OAAO,CAClB,UAAU,EAAE,MAAM,EAClB,IAAI,GAAE,IAAI,GAAG,MAAqB,EAClC,OAAO,GAAE,aAAa,CAAC,cAAmB,GACzC,OAAO,CAAC,IAAI,CAAC;IAoBhB;;;OAGG;IACI,QAAQ,IAAI,MAAM;CAgB1B;AAED,kBAAU,aAAa,CAAC;IACtB,UAAiB,cAAc;QAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;KAClB;CACF"}
@@ -0,0 +1,98 @@
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
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.CameraTrigger = void 0;
29
+ const gateway = __importStar(require("../gateway"));
30
+ const requests = __importStar(require("../requests"));
31
+ const units_1 = require("../units");
32
+ /**
33
+ * An abstraction over a device and it's digital output channel.
34
+ */
35
+ class CameraTrigger {
36
+ /**
37
+ * The device whose digital output triggers the camera.
38
+ */
39
+ get device() {
40
+ return this._device;
41
+ }
42
+ /**
43
+ * The digital output channel that triggers the camera.
44
+ */
45
+ get channel() {
46
+ return this._channel;
47
+ }
48
+ /**
49
+ * Creates instance of `CameraTrigger` based on the given device and digital output channel.
50
+ */
51
+ constructor(device, channel) {
52
+ this._device = device;
53
+ this._channel = channel;
54
+ }
55
+ /**
56
+ * Triggers the camera.
57
+ * Schedules trigger pulse on the digital output channel.
58
+ * By default, the method waits until the trigger pulse is finished.
59
+ * @param pulseWidth The time duration of the trigger pulse.
60
+ * Depending on the camera setting, the argument can be use to specify exposure.
61
+ * @param [unit=Units.NATIVE] Units of time.
62
+ * @param [options.wait=true] If false, the method does not wait until the trigger pulse is finished.
63
+ */
64
+ async trigger(pulseWidth, unit = units_1.Units.NATIVE, options = {}) {
65
+ const { wait = true, } = options;
66
+ const request = {
67
+ ...requests.MicroscopeTriggerCameraRequest.DEFAULT,
68
+ interfaceId: this.device.connection.interfaceId,
69
+ device: this.device.deviceAddress,
70
+ channelNumber: this.channel,
71
+ delay: pulseWidth,
72
+ unit: unit,
73
+ wait: wait,
74
+ toBinary() {
75
+ return requests.MicroscopeTriggerCameraRequest.toBinary(this);
76
+ },
77
+ };
78
+ await gateway.callAsync('microscope/trigger_camera', request);
79
+ }
80
+ /**
81
+ * Returns a string that represents the device.
82
+ * @returns A string that represents the device.
83
+ */
84
+ toString() {
85
+ const request = {
86
+ ...requests.AxisToStringRequest.DEFAULT,
87
+ interfaceId: this.device.connection.interfaceId,
88
+ device: this.device.deviceAddress,
89
+ toBinary() {
90
+ return requests.AxisToStringRequest.toBinary(this);
91
+ },
92
+ };
93
+ const response = gateway.callSync('device/device_to_string', request, requests.StringResponse.fromBinary);
94
+ return response.value;
95
+ }
96
+ }
97
+ exports.CameraTrigger = CameraTrigger;
98
+ //# sourceMappingURL=camera_trigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"camera_trigger.js","sourceRoot":"","sources":["../../../src/microscopy/camera_trigger.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AACtC,sDAAwC;AACxC,oCAA+C;AAG/C;;GAEG;AACH,MAAa,aAAa;IACxB;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAGD;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD;;OAEG;IACH,YAAY,MAAc,EAAE,OAAe;QACzC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC1B,CAAC;IAED;;;;;;;;OAQG;IACI,KAAK,CAAC,OAAO,CAClB,UAAkB,EAClB,OAAsB,aAAK,CAAC,MAAM,EAClC,UAAwC,EAAE;QAE1C,MAAM,EACJ,IAAI,GAAG,IAAI,GACZ,GAAG,OAAO,CAAC;QACZ,MAAM,OAAO,GAA8D;YACzE,GAAG,QAAQ,CAAC,8BAA8B,CAAC,OAAO;YAClD,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa;YACjC,aAAa,EAAE,IAAI,CAAC,OAAO;YAC3B,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;YACV,QAAQ;gBACN,OAAO,QAAQ,CAAC,8BAA8B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAChE,CAAC;SACF,CAAC;QAEF,MAAM,OAAO,CAAC,SAAS,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;OAGG;IACI,QAAQ;QACb,MAAM,OAAO,GAAmD;YAC9D,GAAG,QAAQ,CAAC,mBAAmB,CAAC,OAAO;YACvC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa;YACjC,QAAQ;gBACN,OAAO,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,yBAAyB,EACzB,OAAO,EACP,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;QACtC,OAAO,QAAQ,CAAC,KAAK,CAAC;IACxB,CAAC;CACF;AA9ED,sCA8EC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { Time, Native, Units } from '../units';\nimport { Device } from '../ascii/device';\n\n/**\n * An abstraction over a device and it's digital output channel.\n */\nexport class CameraTrigger {\n /**\n * The device whose digital output triggers the camera.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * The digital output channel that triggers the camera.\n */\n public get channel(): number {\n return this._channel;\n }\n private _channel: number;\n\n /**\n * Creates instance of `CameraTrigger` based on the given device and digital output channel.\n */\n constructor(device: Device, channel: number) {\n this._device = device;\n this._channel = channel;\n }\n\n /**\n * Triggers the camera.\n * Schedules trigger pulse on the digital output channel.\n * By default, the method waits until the trigger pulse is finished.\n * @param pulseWidth The time duration of the trigger pulse.\n * Depending on the camera setting, the argument can be use to specify exposure.\n * @param [unit=Units.NATIVE] Units of time.\n * @param [options.wait=true] If false, the method does not wait until the trigger pulse is finished.\n */\n public async trigger(\n pulseWidth: number,\n unit: Time | Native = Units.NATIVE,\n options: CameraTrigger.TriggerOptions = {}\n ): Promise<void> {\n const {\n wait = true,\n } = options;\n const request: requests.MicroscopeTriggerCameraRequest & gateway.Message = {\n ...requests.MicroscopeTriggerCameraRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n channelNumber: this.channel,\n delay: pulseWidth,\n unit: unit,\n wait: wait,\n toBinary() {\n return requests.MicroscopeTriggerCameraRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('microscope/trigger_camera', request);\n }\n\n /**\n * Returns a string that represents the device.\n * @returns A string that represents the device.\n */\n public toString(): string {\n const request: requests.AxisToStringRequest & gateway.Message = {\n ...requests.AxisToStringRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n toBinary() {\n return requests.AxisToStringRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/device_to_string',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n}\n\nnamespace CameraTrigger {\n export interface TriggerOptions {\n wait?: boolean;\n }\n}\n"]}
@@ -1,5 +1,6 @@
1
1
  export * from './autofocus';
2
2
  export * from './autofocus_status';
3
+ export * from './camera_trigger';
3
4
  export * from './filter_changer';
4
5
  export * from './illuminator';
5
6
  export * from './illuminator_channel';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/microscopy/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/microscopy/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC"}
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* This file is generated. Do not modify by hand. */
18
18
  __exportStar(require("./autofocus"), exports);
19
19
  __exportStar(require("./autofocus_status"), exports);
20
+ __exportStar(require("./camera_trigger"), exports);
20
21
  __exportStar(require("./filter_changer"), exports);
21
22
  __exportStar(require("./illuminator"), exports);
22
23
  __exportStar(require("./illuminator_channel"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/microscopy/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,8CAA4B;AAC5B,qDAAmC;AACnC,mDAAiC;AACjC,gDAA8B;AAC9B,wDAAsC;AACtC,+CAA6B;AAC7B,sDAAoC;AACpC,sDAAoC;AACpC,2DAAyC;AACzC,2DAAyC;AACzC,kEAAgD","sourcesContent":["/* This file is generated. Do not modify by hand. */\nexport * from './autofocus';\nexport * from './autofocus_status';\nexport * from './filter_changer';\nexport * from './illuminator';\nexport * from './illuminator_channel';\nexport * from './microscope';\nexport * from './microscope_config';\nexport * from './objective_changer';\nexport * from './third_party_components';\nexport * from './wdi_autofocus_provider';\nexport * from './wdi_autofocus_provider_status';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/microscopy/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,8CAA4B;AAC5B,qDAAmC;AACnC,mDAAiC;AACjC,mDAAiC;AACjC,gDAA8B;AAC9B,wDAAsC;AACtC,+CAA6B;AAC7B,sDAAoC;AACpC,sDAAoC;AACpC,2DAAyC;AACzC,2DAAyC;AACzC,kEAAgD","sourcesContent":["/* This file is generated. Do not modify by hand. */\nexport * from './autofocus';\nexport * from './autofocus_status';\nexport * from './camera_trigger';\nexport * from './filter_changer';\nexport * from './illuminator';\nexport * from './illuminator_channel';\nexport * from './microscope';\nexport * from './microscope_config';\nexport * from './objective_changer';\nexport * from './third_party_components';\nexport * from './wdi_autofocus_provider';\nexport * from './wdi_autofocus_provider_status';\n"]}
@@ -6,6 +6,7 @@ import { ObjectiveChanger } from './objective_changer';
6
6
  import { MicroscopeConfig } from './microscope_config';
7
7
  import { FilterChanger } from './filter_changer';
8
8
  import { Autofocus } from './autofocus';
9
+ import { CameraTrigger } from './camera_trigger';
9
10
  import { ThirdPartyComponents } from './third_party_components';
10
11
  /**
11
12
  * Represent a microscope.
@@ -59,6 +60,11 @@ export declare class Microscope {
59
60
  */
60
61
  get autofocus(): Autofocus | undefined;
61
62
  private _autofocus;
63
+ /**
64
+ * The camera trigger.
65
+ */
66
+ get cameraTrigger(): CameraTrigger | undefined;
67
+ private _cameraTrigger;
62
68
  /**
63
69
  * Creates instance of `Microscope` from the given config.
64
70
  * Parts are instantiated depending on device addresses in the config.
@@ -1 +1 @@
1
- {"version":3,"file":"microscope.d.ts","sourceRoot":"","sources":["../../../src/microscopy/microscope.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe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IAiB9C;;;OAGG;IACI,QAAQ,IAAI,MAAM;CAgB1B;AAED,kBAAU,UAAU,CAAC;IACnB,UAAiB,iBAAiB;QAC9B,KAAK,CAAC,EAAE,OAAO,CAAC;KACnB;CACF"}
@@ -36,6 +36,7 @@ const objective_changer_1 = require("./objective_changer");
36
36
  const microscope_config_1 = require("./microscope_config");
37
37
  const filter_changer_1 = require("./filter_changer");
38
38
  const autofocus_1 = require("./autofocus");
39
+ const camera_trigger_1 = require("./camera_trigger");
39
40
  /**
40
41
  * Represent a microscope.
41
42
  * Parts of the microscope may or may not be instantiated depending on the configuration.
@@ -96,12 +97,18 @@ class Microscope {
96
97
  get autofocus() {
97
98
  return this._autofocus;
98
99
  }
100
+ /**
101
+ * The camera trigger.
102
+ */
103
+ get cameraTrigger() {
104
+ return this._cameraTrigger;
105
+ }
99
106
  /**
100
107
  * Creates instance of `Microscope` from the given config.
101
108
  * Parts are instantiated depending on device addresses in the config.
102
109
  */
103
110
  constructor(connection, config) {
104
- var _a, _b, _c, _d;
111
+ var _a, _b, _c, _d, _e;
105
112
  this._connection = connection;
106
113
  this._config = microscope_config_1.MicroscopeConfig.fromBinary(microscope_config_1.MicroscopeConfig.toBinary(config));
107
114
  this._illuminator = config.illuminator ? new illuminator_1.Illuminator(new device_1.Device(connection, config.illuminator)) : undefined;
@@ -112,6 +119,7 @@ class Microscope {
112
119
  this._objectiveChanger = config.objectiveChanger && this._focusAxis ? new objective_changer_1.ObjectiveChanger(new device_1.Device(connection, config.objectiveChanger), this._focusAxis) : undefined;
113
120
  this._filterChanger = config.filterChanger ? new filter_changer_1.FilterChanger(new device_1.Device(connection, config.filterChanger)) : undefined;
114
121
  this._autofocus = config.autofocus && this._focusAxis ? new autofocus_1.Autofocus(config.autofocus, this._focusAxis, (_d = this._objectiveChanger) === null || _d === void 0 ? void 0 : _d.turret) : undefined;
122
+ this._cameraTrigger = ((_e = config.cameraTrigger) === null || _e === void 0 ? void 0 : _e.device) ? new camera_trigger_1.CameraTrigger(new device_1.Device(connection, config.cameraTrigger.device), config.cameraTrigger.channel) : undefined;
115
123
  }
116
124
  /**
117
125
  * Finds a microscope on a connection.
@@ -1 +1 @@
1
- {"version":3,"file":"microscope.js","sourceRoot":"","sources":["../../../src/microscopy/microscope.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AACtC,sDAAwC;AACxC,wCAAqC;AACrC,oDAAgD;AAChD,4CAAyC;AAEzC,+CAA4C;AAC5C,2DAAuD;AACvD,2DAAuD;AACvD,qDAAiD;AACjD,2CAAwC;AAGxC;;;;GAIG;AACH,MAAa,UAAU;IACrB;;OAEG;IACH,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAKD;;OAEG;IACH,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAGD;;OAEG;IACH,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAGD;;OAEG;IACH,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAGD;;OAEG;IACH,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAGD;;OAEG;IACH,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAGD;;OAEG;IACH,IAAW,gBAAgB;QACzB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;IAGD;;OAEG;IACH,IAAW,aAAa;QACtB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAGD;;OAEG;IACH,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAGD;;;OAGG;IACH,YAAY,UAAsB,EAAE,MAAwB;;QAC1D,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,I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AAQ,CAC/B,sBAAsB,EACtB,OAAO,EACP,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;QACtC,OAAO,QAAQ,CAAC,KAAK,CAAC;IACxB,CAAC;CACF;AAvLD,gCAuLC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { Axis } from '../ascii/axis';\nimport { AxisGroup } from '../ascii/axis_group';\nimport { Device } from '../ascii/device';\nimport { Connection } from '../ascii/connection';\nimport { Illuminator } from './illuminator';\nimport { ObjectiveChanger } from './objective_changer';\nimport { MicroscopeConfig } from './microscope_config';\nimport { FilterChanger } from './filter_changer';\nimport { Autofocus } from './autofocus';\nimport { ThirdPartyComponents } from './third_party_components';\n\n/**\n * Represent a microscope.\n * Parts of the microscope may or may not be instantiated depending on the configuration.\n * Requires at least Firmware 7.34.\n */\nexport class Microscope {\n /**\n * Connection of the microscope.\n */\n public get connection(): Connection {\n return this._connection;\n }\n private _connection: Connection;\n\n private _config: MicroscopeConfig;\n\n /**\n * The illuminator.\n */\n public get illuminator(): Illuminator | undefined {\n return this._illuminator;\n }\n private _illuminator: Illuminator | undefined;\n\n /**\n * The focus axis.\n */\n public get focusAxis(): Axis | undefined {\n return this._focusAxis;\n }\n private _focusAxis: Axis | undefined;\n\n /**\n * The X axis.\n */\n public get xAxis(): Axis | undefined {\n return this._xAxis;\n }\n private _xAxis: Axis | undefined;\n\n /**\n * The Y axis.\n */\n public get yAxis(): Axis | undefined {\n return this._yAxis;\n }\n private _yAxis: Axis | undefined;\n\n /**\n * Axis group consisting of X and Y axes representing the plate of the microscope.\n */\n public get plate(): AxisGroup | undefined {\n return this._plate;\n }\n private _plate: AxisGroup | undefined;\n\n /**\n * The objective changer.\n */\n public get objectiveChanger(): ObjectiveChanger | undefined {\n return this._objectiveChanger;\n }\n private _objectiveChanger: ObjectiveChanger | undefined;\n\n /**\n * The filter changer.\n */\n public get filterChanger(): FilterChanger | undefined {\n return this._filterChanger;\n }\n private _filterChanger: FilterChanger | undefined;\n\n /**\n * The autofocus feature.\n */\n public get autofocus(): Autofocus | undefined {\n return this._autofocus;\n }\n private _autofocus: Autofocus | undefined;\n\n /**\n * Creates instance of `Microscope` from the given config.\n * Parts are instantiated depending on device addresses in the config.\n */\n constructor(connection: Connection, config: MicroscopeConfig) {\n this._connection = connection;\n this._config = MicroscopeConfig.fromBinary(MicroscopeConfig.toBinary(config));\n this._illuminator = config.illuminator ? new Illuminator(new Device(connection, config.illuminator)) : undefined;\n this._focusAxis = config.focusAxis?.device ? new Axis(new Device(connection, config.focusAxis.device), config.focusAxis.axis) : undefined;\n this._xAxis = config.xAxis?.device ? new Axis(new Device(connection, config.xAxis.device), config.xAxis.axis) : undefined;\n this._yAxis = config.yAxis?.device ? new Axis(new Device(connection, config.yAxis.device), config.yAxis.axis) : undefined;\n this._plate = this._xAxis && this._yAxis ? new AxisGroup([this._xAxis, this._yAxis]) : undefined;\n this._objectiveChanger = config.objectiveChanger && this._focusAxis ? new ObjectiveChanger(new Device(connection, config.objectiveChanger), this._focusAxis) : undefined;\n this._filterChanger = config.filterChanger ? new FilterChanger(new Device(connection, config.filterChanger)) : undefined;\n this._autofocus = config.autofocus && this._focusAxis ? new Autofocus(config.autofocus, this._focusAxis, this._objectiveChanger?.turret) : undefined;\n }\n\n /**\n * Finds a microscope on a connection.\n * @param connection Connection on which to detect the microscope.\n * @param thirdPartyComponents Third party components of the microscope that cannot be found on the connection.\n * @returns New instance of microscope.\n */\n public static async find(\n connection: Connection,\n thirdPartyComponents?: ThirdPartyComponents\n ): Promise<Microscope> {\n const request: requests.MicroscopeFindRequest & gateway.Message = {\n ...requests.MicroscopeFindRequest.DEFAULT,\n interfaceId: connection.interfaceId,\n thirdParty: thirdPartyComponents,\n toBinary() {\n return requests.MicroscopeFindRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.MicroscopeConfigResponse>(\n 'microscope/detect',\n request,\n requests.MicroscopeConfigResponse.fromBinary);\n return new Microscope(connection, response.config);\n }\n\n /**\n * Initializes the microscope.\n * Homes all axes, filter changer, and objective changer if they require it.\n * @param [options.force=false] Forces all devices to home even when not required.\n */\n public async initialize(\n options: Microscope.InitializeOptions = {}\n ): Promise<void> {\n const {\n force = false,\n } = options;\n const request: requests.MicroscopeInitRequest & gateway.Message = {\n ...requests.MicroscopeInitRequest.DEFAULT,\n interfaceId: this.connection.interfaceId,\n config: this._config,\n force: force,\n toBinary() {\n return requests.MicroscopeInitRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('microscope/initialize', request);\n }\n\n /**\n * Checks whether the microscope is initialized.\n * @returns True, when the microscope is initialized. False, otherwise.\n */\n public async isInitialized(): Promise<boolean> {\n const request: requests.MicroscopeEmptyRequest & gateway.Message = {\n ...requests.MicroscopeEmptyRequest.DEFAULT,\n interfaceId: this.connection.interfaceId,\n config: this._config,\n toBinary() {\n return requests.MicroscopeEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'microscope/is_initialized',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns a string that represents the microscope.\n * @returns A string that represents the microscope.\n */\n public toString(): string {\n const request: requests.MicroscopeEmptyRequest & gateway.Message = {\n ...requests.MicroscopeEmptyRequest.DEFAULT,\n interfaceId: this.connection.interfaceId,\n config: this._config,\n toBinary() {\n return requests.MicroscopeEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'microscope/to_string',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n}\n\nnamespace Microscope {\n export interface InitializeOptions {\n force?: boolean;\n }\n}\n"]}
1
+ {"version":3,"file":"microscope.js","sourceRoot":"","sources":["../../../src/microscopy/microscope.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oD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AQ,CAAC,IAAI,CAAC,CAAC;YACxD,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,sBAAsB,EACtB,OAAO,EACP,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;QACtC,OAAO,QAAQ,CAAC,KAAK,CAAC;IACxB,CAAC;CACF;AAhMD,gCAgMC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { Axis } from '../ascii/axis';\nimport { AxisGroup } from '../ascii/axis_group';\nimport { Device } from '../ascii/device';\nimport { Connection } from '../ascii/connection';\nimport { Illuminator } from './illuminator';\nimport { ObjectiveChanger } from './objective_changer';\nimport { MicroscopeConfig } from './microscope_config';\nimport { FilterChanger } from './filter_changer';\nimport { Autofocus } from './autofocus';\nimport { CameraTrigger } from './camera_trigger';\nimport { ThirdPartyComponents } from './third_party_components';\n\n/**\n * Represent a microscope.\n * Parts of the microscope may or may not be instantiated depending on the configuration.\n * Requires at least Firmware 7.34.\n */\nexport class Microscope {\n /**\n * Connection of the microscope.\n */\n public get connection(): Connection {\n return this._connection;\n }\n private _connection: Connection;\n\n private _config: MicroscopeConfig;\n\n /**\n * The illuminator.\n */\n public get illuminator(): Illuminator | undefined {\n return this._illuminator;\n }\n private _illuminator: Illuminator | undefined;\n\n /**\n * The focus axis.\n */\n public get focusAxis(): Axis | undefined {\n return this._focusAxis;\n }\n private _focusAxis: Axis | undefined;\n\n /**\n * The X axis.\n */\n public get xAxis(): Axis | undefined {\n return this._xAxis;\n }\n private _xAxis: Axis | undefined;\n\n /**\n * The Y axis.\n */\n public get yAxis(): Axis | undefined {\n return this._yAxis;\n }\n private _yAxis: Axis | undefined;\n\n /**\n * Axis group consisting of X and Y axes representing the plate of the microscope.\n */\n public get plate(): AxisGroup | undefined {\n return this._plate;\n }\n private _plate: AxisGroup | undefined;\n\n /**\n * The objective changer.\n */\n public get objectiveChanger(): ObjectiveChanger | undefined {\n return this._objectiveChanger;\n }\n private _objectiveChanger: ObjectiveChanger | undefined;\n\n /**\n * The filter changer.\n */\n public get filterChanger(): FilterChanger | undefined {\n return this._filterChanger;\n }\n private _filterChanger: FilterChanger | undefined;\n\n /**\n * The autofocus feature.\n */\n public get autofocus(): Autofocus | undefined {\n return this._autofocus;\n }\n private _autofocus: Autofocus | undefined;\n\n /**\n * The camera trigger.\n */\n public get cameraTrigger(): CameraTrigger | undefined {\n return this._cameraTrigger;\n }\n private _cameraTrigger: CameraTrigger | undefined;\n\n /**\n * Creates instance of `Microscope` from the given config.\n * Parts are instantiated depending on device addresses in the config.\n */\n constructor(connection: Connection, config: MicroscopeConfig) {\n this._connection = connection;\n this._config = MicroscopeConfig.fromBinary(MicroscopeConfig.toBinary(config));\n this._illuminator = config.illuminator ? new Illuminator(new Device(connection, config.illuminator)) : undefined;\n this._focusAxis = config.focusAxis?.device ? new Axis(new Device(connection, config.focusAxis.device), config.focusAxis.axis) : undefined;\n this._xAxis = config.xAxis?.device ? new Axis(new Device(connection, config.xAxis.device), config.xAxis.axis) : undefined;\n this._yAxis = config.yAxis?.device ? new Axis(new Device(connection, config.yAxis.device), config.yAxis.axis) : undefined;\n this._plate = this._xAxis && this._yAxis ? new AxisGroup([this._xAxis, this._yAxis]) : undefined;\n this._objectiveChanger = config.objectiveChanger && this._focusAxis ? new ObjectiveChanger(new Device(connection, config.objectiveChanger), this._focusAxis) : undefined;\n this._filterChanger = config.filterChanger ? new FilterChanger(new Device(connection, config.filterChanger)) : undefined;\n this._autofocus = config.autofocus && this._focusAxis ? new Autofocus(config.autofocus, this._focusAxis, this._objectiveChanger?.turret) : undefined;\n this._cameraTrigger = config.cameraTrigger?.device ? new CameraTrigger(new Device(connection, config.cameraTrigger.device), config.cameraTrigger.channel) : undefined;\n }\n\n /**\n * Finds a microscope on a connection.\n * @param connection Connection on which to detect the microscope.\n * @param thirdPartyComponents Third party components of the microscope that cannot be found on the connection.\n * @returns New instance of microscope.\n */\n public static async find(\n connection: Connection,\n thirdPartyComponents?: ThirdPartyComponents\n ): Promise<Microscope> {\n const request: requests.MicroscopeFindRequest & gateway.Message = {\n ...requests.MicroscopeFindRequest.DEFAULT,\n interfaceId: connection.interfaceId,\n thirdParty: thirdPartyComponents,\n toBinary() {\n return requests.MicroscopeFindRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.MicroscopeConfigResponse>(\n 'microscope/detect',\n request,\n requests.MicroscopeConfigResponse.fromBinary);\n return new Microscope(connection, response.config);\n }\n\n /**\n * Initializes the microscope.\n * Homes all axes, filter changer, and objective changer if they require it.\n * @param [options.force=false] Forces all devices to home even when not required.\n */\n public async initialize(\n options: Microscope.InitializeOptions = {}\n ): Promise<void> {\n const {\n force = false,\n } = options;\n const request: requests.MicroscopeInitRequest & gateway.Message = {\n ...requests.MicroscopeInitRequest.DEFAULT,\n interfaceId: this.connection.interfaceId,\n config: this._config,\n force: force,\n toBinary() {\n return requests.MicroscopeInitRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('microscope/initialize', request);\n }\n\n /**\n * Checks whether the microscope is initialized.\n * @returns True, when the microscope is initialized. False, otherwise.\n */\n public async isInitialized(): Promise<boolean> {\n const request: requests.MicroscopeEmptyRequest & gateway.Message = {\n ...requests.MicroscopeEmptyRequest.DEFAULT,\n interfaceId: this.connection.interfaceId,\n config: this._config,\n toBinary() {\n return requests.MicroscopeEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'microscope/is_initialized',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns a string that represents the microscope.\n * @returns A string that represents the microscope.\n */\n public toString(): string {\n const request: requests.MicroscopeEmptyRequest & gateway.Message = {\n ...requests.MicroscopeEmptyRequest.DEFAULT,\n interfaceId: this.connection.interfaceId,\n config: this._config,\n toBinary() {\n return requests.MicroscopeEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'microscope/to_string',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n}\n\nnamespace Microscope {\n export interface InitializeOptions {\n force?: boolean;\n }\n}\n"]}
@@ -1,4 +1,5 @@
1
1
  import { AxisAddress } from '../axis_address';
2
+ import { ChannelAddress } from '../channel_address';
2
3
  /**
3
4
  * Configuration representing a microscope setup.
4
5
  * Device address of value 0 means that the part is not present.
@@ -32,6 +33,10 @@ export interface MicroscopeConfig {
32
33
  * Autofocus identifier.
33
34
  */
34
35
  autofocus?: (number | null);
36
+ /**
37
+ * Camera trigger digital output address.
38
+ */
39
+ cameraTrigger?: (ChannelAddress | null);
35
40
  }
36
41
  export declare const MicroscopeConfig: {
37
42
  fromBinary: (buffer: Uint8Array) => MicroscopeConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"microscope_config.d.ts","sourceRoot":"","sources":["../../../src/microscopy/microscope_config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAEjC;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAE7B;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAE7B;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAE9B;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAEhC;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAEnC;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAE7B;AAED,eAAO,MAAM,gBAAgB;yBACN,UAAU,KAAG,gBAAgB;sBAChC,gBAAgB,KAAG,UAAU;;sBAU7B,gBAAgB,KAAG,gBAAgB;CAatD,CAAC"}
1
+ {"version":3,"file":"microscope_config.d.ts","sourceRoot":"","sources":["../../../src/microscopy/microscope_config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAEjC;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAE7B;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAE7B;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAE9B;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAEhC;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAEnC;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAE5B;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CAEzC;AAED,eAAO,MAAM,gBAAgB;yBACN,UAAU,KAAG,gBAAgB;sBAChC,gBAAgB,KAAG,UAAU;;sBAW7B,gBAAgB,KAAG,gBAAgB;CActD,CAAC"}
@@ -5,6 +5,7 @@ exports.MicroscopeConfig = void 0;
5
5
  const bson_1 = require("bson");
6
6
  const sanitizer_1 = require("../gateway/sanitizer");
7
7
  const axis_address_1 = require("../axis_address");
8
+ const channel_address_1 = require("../channel_address");
8
9
  exports.MicroscopeConfig = {
9
10
  fromBinary: (buffer) => bson_1.BSON.deserialize(buffer),
10
11
  toBinary: (value) => bson_1.BSON.serialize(exports.MicroscopeConfig.sanitize(value)),
@@ -16,6 +17,7 @@ exports.MicroscopeConfig = {
16
17
  filterChanger: null,
17
18
  objectiveChanger: null,
18
19
  autofocus: null,
20
+ cameraTrigger: null,
19
21
  }),
20
22
  sanitize: (value) => {
21
23
  if (value == null) {
@@ -32,6 +34,7 @@ exports.MicroscopeConfig = {
32
34
  filterChanger: value.filterChanger != null ? sanitizer_1.sanitizer.sanitizeInt(value.filterChanger, 'filterChanger') : null,
33
35
  objectiveChanger: value.objectiveChanger != null ? sanitizer_1.sanitizer.sanitizeInt(value.objectiveChanger, 'objectiveChanger') : null,
34
36
  autofocus: value.autofocus != null ? sanitizer_1.sanitizer.sanitizeInt(value.autofocus, 'autofocus') : null,
37
+ cameraTrigger: value.cameraTrigger != null ? channel_address_1.ChannelAddress.sanitize(value.cameraTrigger) : null,
35
38
  };
36
39
  },
37
40
  };
@@ -1 +1 @@
1
- {"version":3,"file":"microscope_config.js","sourceRoot":"","sources":["../../../src/microscopy/microscope_config.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AACjD,kDAA8C;AA4CjC,QAAA,gBAAgB,GAAG;IAC9B,UAAU,EAAE,CAAC,MAAkB,EAAoB,EAAE,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,CAAqB;IAClG,QAAQ,EAAE,CAAC,KAAuB,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,wBAAgB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACnG,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,IAAI;QACjB,aAAa,EAAE,IAAI;QACnB,gBAAgB,EAAE,IAAI;QACtB,SAAS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AAC,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,qBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI;SAChG,CAAC;IACJ,CAAC;CACF,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\nimport { AxisAddress } from '../axis_address';\n\n/**\n * Configuration representing a microscope setup.\n * Device address of value 0 means that the part is not present.\n */\nexport interface MicroscopeConfig {\n /**\n * Focus axis of the microscope.\n */\n focusAxis?: (AxisAddress | null);\n\n /**\n * X axis of the microscope.\n */\n xAxis?: (AxisAddress | null);\n\n /**\n * Y axis of the microscope.\n */\n yAxis?: (AxisAddress | null);\n\n /**\n * Illuminator device address.\n */\n illuminator?: (number | null);\n\n /**\n * Filter changer device address.\n */\n filterChanger?: (number | null);\n\n /**\n * Objective changer device address.\n */\n objectiveChanger?: (number | null);\n\n /**\n * Autofocus identifier.\n */\n autofocus?: (number | null);\n\n}\n\nexport const MicroscopeConfig = {\n fromBinary: (buffer: Uint8Array): MicroscopeConfig => BSON.deserialize(buffer) as MicroscopeConfig,\n toBinary: (value: MicroscopeConfig): Uint8Array => BSON.serialize(MicroscopeConfig.sanitize(value)),\n DEFAULT: Object.freeze({\n focusAxis: null,\n xAxis: null,\n yAxis: null,\n illuminator: null,\n filterChanger: null,\n objectiveChanger: null,\n autofocus: null,\n }) as Readonly<MicroscopeConfig>,\n sanitize: (value: MicroscopeConfig): MicroscopeConfig => {\n if (value == null) { throw new TypeError('Expected MicroscopeConfig object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected MicroscopeConfig object but got ${typeof value}.`) }\n return {\n focusAxis: value.focusAxis != null ? AxisAddress.sanitize(value.focusAxis) : null,\n xAxis: value.xAxis != null ? AxisAddress.sanitize(value.xAxis) : null,\n yAxis: value.yAxis != null ? AxisAddress.sanitize(value.yAxis) : null,\n illuminator: value.illuminator != null ? sanitizer.sanitizeInt(value.illuminator, 'illuminator') : null,\n filterChanger: value.filterChanger != null ? sanitizer.sanitizeInt(value.filterChanger, 'filterChanger') : null,\n objectiveChanger: value.objectiveChanger != null ? sanitizer.sanitizeInt(value.objectiveChanger, 'objectiveChanger') : null,\n autofocus: value.autofocus != null ? sanitizer.sanitizeInt(value.autofocus, 'autofocus') : null,\n };\n },\n};\n"]}
1
+ {"version":3,"file":"microscope_config.js","sourceRoot":"","sources":["../../../src/microscopy/microscope_config.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AACjD,kDAA8C;AAC9C,wDAAoD;AAiDvC,QAAA,gBAAgB,GAAG;IAC9B,UAAU,EAAE,CAAC,MAAkB,EAAoB,EAAE,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,CAAqB;IAClG,QAAQ,EAAE,CAAC,KAAuB,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,wBAAgB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACnG,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,IAAI;QACjB,aAAa,EAAE,IAAI;QACnB,gBAAgB,EAAE,IAAI;QACtB,SAAS,EAAE,IAAI;QACf,aAAa,EAAE,IAAI;KACpB,CAA+B;IAChC,QAAQ,EAAE,CAAC,KAAuB,EAAoB,EAAE;QACtD,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,6DAA6D,CAAC,CAAA;QAAC,CAAC;QACzG,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,4CAA4C,OAAO,KAAK,GAAG,CAAC,CAAA;QAAC,CAAC;QACnH,OAAO;YACL,SAAS,EAAE,KAAK,CAAC,SAAS,IAAI,I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itizer } from '../gateway/sanitizer';\nimport { AxisAddress } from '../axis_address';\nimport { ChannelAddress } from '../channel_address';\n\n/**\n * Configuration representing a microscope setup.\n * Device address of value 0 means that the part is not present.\n */\nexport interface MicroscopeConfig {\n /**\n * Focus axis of the microscope.\n */\n focusAxis?: (AxisAddress | null);\n\n /**\n * X axis of the microscope.\n */\n xAxis?: (AxisAddress | null);\n\n /**\n * Y axis of the microscope.\n */\n yAxis?: (AxisAddress | null);\n\n /**\n * Illuminator device address.\n */\n illuminator?: (number | null);\n\n /**\n * Filter changer device address.\n */\n filterChanger?: (number | null);\n\n /**\n * Objective changer device address.\n */\n objectiveChanger?: (number | null);\n\n /**\n * Autofocus identifier.\n */\n autofocus?: (number | null);\n\n /**\n * Camera trigger digital output address.\n */\n cameraTrigger?: (ChannelAddress | null);\n\n}\n\nexport const MicroscopeConfig = {\n fromBinary: (buffer: Uint8Array): MicroscopeConfig => BSON.deserialize(buffer) as MicroscopeConfig,\n toBinary: (value: MicroscopeConfig): Uint8Array => BSON.serialize(MicroscopeConfig.sanitize(value)),\n DEFAULT: Object.freeze({\n focusAxis: null,\n xAxis: null,\n yAxis: null,\n illuminator: null,\n filterChanger: null,\n objectiveChanger: null,\n autofocus: null,\n cameraTrigger: null,\n }) as Readonly<MicroscopeConfig>,\n sanitize: (value: MicroscopeConfig): MicroscopeConfig => {\n if (value == null) { throw new TypeError('Expected MicroscopeConfig object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected MicroscopeConfig object but got ${typeof value}.`) }\n return {\n focusAxis: value.focusAxis != null ? AxisAddress.sanitize(value.focusAxis) : null,\n xAxis: value.xAxis != null ? AxisAddress.sanitize(value.xAxis) : null,\n yAxis: value.yAxis != null ? AxisAddress.sanitize(value.yAxis) : null,\n illuminator: value.illuminator != null ? sanitizer.sanitizeInt(value.illuminator, 'illuminator') : null,\n filterChanger: value.filterChanger != null ? sanitizer.sanitizeInt(value.filterChanger, 'filterChanger') : null,\n objectiveChanger: value.objectiveChanger != null ? sanitizer.sanitizeInt(value.objectiveChanger, 'objectiveChanger') : null,\n autofocus: value.autofocus != null ? sanitizer.sanitizeInt(value.autofocus, 'autofocus') : null,\n cameraTrigger: value.cameraTrigger != null ? ChannelAddress.sanitize(value.cameraTrigger) : null,\n };\n },\n};\n"]}
@@ -114,6 +114,7 @@ export * from './microscope_config_response';
114
114
  export * from './microscope_empty_request';
115
115
  export * from './microscope_find_request';
116
116
  export * from './microscope_init_request';
117
+ export * from './microscope_trigger_camera_request';
117
118
  export * from './objective_changer_change_request';
118
119
  export * from './objective_changer_create_response';
119
120
  export * from './objective_changer_get_current_response';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/requests/index.ts"],"names":[],"mappings":"AACA,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC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C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AACzD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC"}
@@ -131,6 +131,7 @@ __exportStar(require("./microscope_config_response"), exports);
131
131
  __exportStar(require("./microscope_empty_request"), exports);
132
132
  __exportStar(require("./microscope_find_request"), exports);
133
133
  __exportStar(require("./microscope_init_request"), exports);
134
+ __exportStar(require("./microscope_trigger_camera_request"), exports);
134
135
  __exportStar(require("./objective_changer_change_request"), exports);
135
136
  __exportStar(require("./objective_changer_create_response"), exports);
136
137
  __exportStar(require("./objective_changer_get_current_response"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,wDAAsC;AACtC,4DAA0C;AAC1C,2EAAyD;AACzD,4EAA0D;AAC1D,kEAAgD;AAChD,2EAAyD;AACzD,uDAAqC;AACrC,6DAA2C;AAC3C,sDAAoC;AACpC,uDAAqC;AACrC,mDAAiC;AACjC,2DAAyC;AACzC,iEAA+C;AAC/C,kEAAgD;AAChD,sEAAoD;AACpD,+DAA6C;AAC7C,+DAA6C;AAC7C,sEAAoD;AACpD,+DAA6C;AAC7C,sEAAoD;AACpD,8DAA4C;AAC5C,oEAAkD;AAClD,kDAAgC;AAChC,gEAA8C;AAC9C,0DAAwC;AACxC,+CAA6B;AAC7B,0DAAwC;AACxC,0DAAwC;AACxC,mEAAiD;AACjD,mEAAiD;AACjD,kEAAgD;AAChD,mEAAiD;AACjD,+EAA6D;AAC7D,0EAAwD;AACxD,mEAAiD;AACjD,0DAAwC;AACxC,2DAAyC;AACzC,yDAAuC;AACvC,qEAAmD;AACnD,sEAAoD;AACpD,sEAAoD;AACpD,uEAAqD;AACrD,iEAA+C;AAC/C,kEAAgD;AAChD,+DAA6C;AAC7C,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,wDAAsC;AACtC,4DAA0C;AAC1C,wDAAsC;AACtC,4DAA0C;AAC1C,qEAAmD;AACnD,0DAAwC;AACxC,2DAAyC;AACzC,0EAAwD;AACxD,mFAAiE;AACjE,2EAAyD;AACzD,oFAAkE;AAClE,qEAAmD;AACnD,8EAA4D;AAC5D,sEAAoD;AACpD,+EAA6D;AAC7D,sEAAoD;AACpD,+DAA6C;AAC7C,mEAAiD;AACjD,oEAAkD;AAClD,sEAAoD;AACpD,+DAA6C;AAC7C,wEAAsD;AACtD,wDAAsC;AACtC,qEAAmD;AACnD,2DAAyC;AACzC,gDAA8B;AAC9B,mEAAiD;AACjD,uDAAqC;AACrC,0DAAwC;AACxC,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xC,yDAAuC;AACvC,yEAAuD;AACvD,mEAAiD;AACjD,6DAA2C;AAC3C,oFAAkE;AAClE,iEAA+C;AAC/C,mFAAiE;AACjE,wDAAsC;AACtC,yDAAuC;AACvC,wDAAsC;AACtC,0EAAwD;AACxD,mFAAiE;AACjE,2EAAyD;AACzD,oFAAkE;AAClE,qEAAmD;AACnD,8EAA4D;AAC5D,sEAAoD;AACpD,+EAA6D;AAC7D,4DAA0C;AAC1C,oFAAkE;AAClE,iEAA+C;AAC/C,mFAAiE;AACjE,wEAAsD;AACtD,8DAA4C;AAC5C,8EAA4D;AAC5D,yEAAuD;AACvD,+DAA6C;AAC7C,qEAAmD;AACnD,sEAAoD;AACpD,wDAAsC;AACtC,mEAAiD;AACjD,0DAAwC;AACxC,oDAAkC;AAClC,+CAA6B;AAC7B,iDAA+B;AAC/B,kDAAgC;AAChC,uDAAqC;AACrC,mEAAiD;AACjD,qEAAmD;AACnD,0EAAwD;AACxD,mEAAiD;AACjD,8DAA4C;AAC5C,+DAA6C;AAC7C,6DAA2C;AAC3C,kEAAgD;AAChD,8DAA4C;AAC5C,uEAAqD;AACrD,yEAAuD;AACvD,yEAAuD;AACvD,8EAA4D;AAC5D,yEAAuD;AACvD,iEAA+C;AAC/C,iEAA+C;AAC/C,0DAAwC;AACxC,2DAAyC;AACzC,2DAAyC;AACzC,qEAAmD;AACnD,iFAA+D;AAC/D,iEAA+C;AAC/C,8DAA4C;AAC5C,sEAAoD;AACpD,4DAA0C;AAC1C,gEAA8C;AAC9C,2EAAyD;AACzD,8DAA4C;AAC5C,mDAAiC;AACjC,0DAAwC;AACxC,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,0EAAwD;AACxD,mEAAiD;AACjD,mEAAiD;AACjD,4DAA0C;AAC1C,wDAAsC;AACtC,4DAA0C","sourcesContent":["/* This file is generated. Do not modify by hand. */\nexport * from './alert_event_wrapper';\nexport * from './autofocus_focus_request';\nexport * from './autofocus_get_objective_params_request';\nexport * from './autofocus_get_objective_params_response';\nexport * from './autofocus_get_status_response';\nexport * from './autofocus_set_objective_params_request';\nexport * from './axes_empty_request';\nexport * from './axes_get_setting_request';\nexport * from './axes_move_request';\nexport * from './axis_empty_request';\nexport * from './axis_move_type';\nexport * from './axis_to_string_request';\nexport * from './binary_device_detect_request';\nexport * from './binary_device_detect_response';\nexport * from './binary_device_get_setting_request';\nexport * from './binary_device_home_request';\nexport * from './binary_device_move_request';\nexport * from './binary_device_set_setting_request';\nexport * from './binary_device_stop_request';\nexport * from './binary_generic_with_units_request';\nexport * from './binary_message_collection';\nexport * from './binary_reply_only_event_wrapper';\nexport * from './bool_response';\nexport * from './can_set_state_axis_response';\nexport * from './can_set_state_request';\nexport * from './channel_on';\nexport * from './channel_set_intensity';\nexport * from './check_version_request';\nexport * from './custom_interface_close_request';\nexport * from './custom_interface_open_response';\nexport * from './custom_interface_read_request';\nexport * from './custom_interface_write_request';\nexport * from './device_cancel_all_outputs_schedule_request';\nexport * from './device_cancel_output_schedule_request';\nexport * from './device_convert_setting_request';\nexport * from './device_detect_request';\nexport * from './device_detect_response';\nexport * from './device_empty_request';\nexport * from './device_get_all_analog_io_request';\nexport * from './device_get_all_analog_io_response';\nexport * from './device_get_all_digital_io_request';\nexport * from './device_get_all_digital_io_response';\nexport * from './device_get_analog_io_request';\nexport * from './device_get_digital_io_request';\nexport * from './device_get_setting_request';\nexport * from './device_get_storage_request';\nexport * from './device_get_warnings_request';\nexport * from './device_get_warnings_response';\nexport * from './device_home_request';\nexport * from './device_identify_request';\nexport * from './device_move_request';\nexport * from './device_move_sin_request';\nexport * from './device_multi_get_setting_request';\nexport * from './device_on_all_request';\nexport * from './device_on_all_response';\nexport * from './device_set_all_analog_outputs_request';\nexport * from './device_set_all_analog_outputs_schedule_request';\nexport * from './device_set_all_digital_outputs_request';\nexport * from './device_set_all_digital_outputs_schedule_request';\nexport * from './device_set_analog_output_request';\nexport * from './device_set_analog_output_schedule_request';\nexport * from './device_set_digital_output_request';\nexport * from './device_set_digital_output_schedule_request';\nexport * from './device_set_lowpass_filter_request';\nexport * from './device_set_setting_request';\nexport * from './device_set_setting_str_request';\nexport * from './device_set_storage_bool_request';\nexport * from './device_set_storage_number_request';\nexport * from './device_set_storage_request';\nexport * from './device_set_unit_conversions_request';\nexport * from './device_stop_request';\nexport * from './device_storage_list_keys_request';\nexport * from './device_storage_request';\nexport * from './device_type';\nexport * from './device_wait_until_idle_request';\nexport * from './disconnected_event';\nexport * from './double_array_response';\nexport * from './double_response';\nexport * from './empty_autofocus_request';\nexport * from './empty_request';\nexport * from './errors';\nexport * from './find_device_request';\nexport * from './find_device_response';\nexport * from './forget_devices_request';\nexport * from './gateway_event';\nexport * from './gateway_request';\nexport * from './gateway_response';\nexport * from './generic_binary_request';\nexport * from './generic_command_request';\nexport * from './generic_command_response_collection';\nexport * from './get_all_io_port_labels_response';\nexport * from './get_axis_setting_results';\nexport * from './get_io_port_label_request';\nexport * from './get_setting_results';\nexport * from './get_simple_tuning_param_definition_response';\nexport * from './int_array_response';\nexport * from './int_request';\nexport * from './int_response';\nexport * from './interface_empty_request';\nexport * from './interface_type';\nexport * from './load_paramset';\nexport * from './lockstep_disable_request';\nexport * from './lockstep_empty_request';\nexport * from './lockstep_enable_request';\nexport * from './lockstep_get_axis_numbers_response';\nexport * from './lockstep_get_request';\nexport * from './lockstep_home_request';\nexport * from './lockstep_move_request';\nexport * from './lockstep_move_sin_request';\nexport * from './lockstep_set_request';\nexport * from './lockstep_stop_request';\nexport * from './lockstep_wait_until_idle_request';\nexport * from './microscope_config_response';\nexport * from './microscope_empty_request';\nexport * from './microscope_find_request';\nexport * from './microscope_init_request';\nexport * from './objective_changer_change_request';\nexport * from './objective_changer_create_response';\nexport * from './objective_changer_get_current_response';\nexport * from './objective_changer_request';\nexport * from './objective_changer_set_request';\nexport * from './open_binary_interface_request';\nexport * from './open_interface_request';\nexport * from './open_interface_response';\nexport * from './oscilloscope_add_io_channel_request';\nexport * from './oscilloscope_add_setting_channel_request';\nexport * from './oscilloscope_data_get_request';\nexport * from './oscilloscope_data_get_sample_time_request';\nexport * from './oscilloscope_data_get_samples_response';\nexport * from './oscilloscope_data_identifier';\nexport * from './oscilloscope_read_response';\nexport * from './oscilloscope_request';\nexport * from './oscilloscope_start_request';\nexport * from './prepare_command_request';\nexport * from './process_on';\nexport * from './pvt_point_request';\nexport * from './renumber_request';\nexport * from './response_type';\nexport * from './servo_tuning_paramset_response';\nexport * from './servo_tuning_request';\nexport * from './set_device_db_source_request';\nexport * from './set_interface_checksum_enabled_request';\nexport * from './set_interface_timeout_request';\nexport * from './set_internal_mode_request';\nexport * from './set_io_port_label_request';\nexport * from './set_log_output_request';\nexport * from './set_process_controller_source';\nexport * from './set_servo_tuning_pid_request';\nexport * from './set_servo_tuning_request';\nexport * from './set_simple_tuning';\nexport * from './set_state_request';\nexport * from './stream_arc_request';\nexport * from './stream_buffer_erase_request';\nexport * from './stream_buffer_get_content_request';\nexport * from './stream_buffer_get_content_response';\nexport * from './stream_buffer_list';\nexport * from './stream_call_request';\nexport * from './stream_cancel_all_outputs_schedule_request';\nexport * from './stream_cancel_output_schedule_request';\nexport * from './stream_circle_request';\nexport * from './stream_empty_request';\nexport * from './stream_generic_command_batch_request';\nexport * from './stream_generic_command_request';\nexport * from './stream_get_axes_response';\nexport * from './stream_get_max_centripetal_acceleration_request';\nexport * from './stream_get_max_speed_request';\nexport * from './stream_get_max_tangential_acceleration_request';\nexport * from './stream_line_request';\nexport * from './stream_mode_response';\nexport * from './stream_segment_type';\nexport * from './stream_set_all_analog_outputs_request';\nexport * from './stream_set_all_analog_outputs_schedule_request';\nexport * from './stream_set_all_digital_outputs_request';\nexport * from './stream_set_all_digital_outputs_schedule_request';\nexport * from './stream_set_analog_output_request';\nexport * from './stream_set_analog_output_schedule_request';\nexport * from './stream_set_digital_output_request';\nexport * from './stream_set_digital_output_schedule_request';\nexport * from './stream_set_hold_request';\nexport * from './stream_set_max_centripetal_acceleration_request';\nexport * from './stream_set_max_speed_request';\nexport * from './stream_set_max_tangential_acceleration_request';\nexport * from './stream_setup_live_composite_request';\nexport * from './stream_setup_live_request';\nexport * from './stream_setup_store_arbitrary_axes_request';\nexport * from './stream_setup_store_composite_request';\nexport * from './stream_setup_store_request';\nexport * from './stream_wait_analog_input_request';\nexport * from './stream_wait_digital_input_request';\nexport * from './stream_wait_request';\nexport * from './stream_wait_until_idle_request';\nexport * from './string_array_response';\nexport * from './string_response';\nexport * from './test_event';\nexport * from './test_request';\nexport * from './test_response';\nexport * from './test_response_long';\nexport * from './toggle_device_db_store_request';\nexport * from './tools_list_serial_ports_response';\nexport * from './translator_create_from_device_request';\nexport * from './translator_create_live_request';\nexport * from './translator_create_request';\nexport * from './translator_create_response';\nexport * from './translator_empty_request';\nexport * from './translator_flush_live_request';\nexport * from './translator_flush_response';\nexport * from './translator_get_axis_offset_request';\nexport * from './translator_get_axis_position_request';\nexport * from './translator_set_axis_position_request';\nexport * from './translator_set_feed_rate_override_request';\nexport * from './translator_set_traverse_rate_request';\nexport * from './translator_translate_request';\nexport * from './trigger_clear_action_request';\nexport * from './trigger_empty_request';\nexport * from './trigger_enable_request';\nexport * from './trigger_enabled_states';\nexport * from './trigger_fire_at_interval_request';\nexport * from './trigger_fire_when_distance_travelled_request';\nexport * from './trigger_fire_when_io_request';\nexport * from './trigger_fire_when_request';\nexport * from './trigger_fire_when_setting_request';\nexport * from './trigger_on_fire_request';\nexport * from './trigger_on_fire_set_request';\nexport * from './trigger_on_fire_set_to_setting_request';\nexport * from './trigger_set_label_request';\nexport * from './trigger_states';\nexport * from './unit_get_enum_request';\nexport * from './unit_get_enum_response';\nexport * from './unit_get_symbol_request';\nexport * from './unit_get_symbol_response';\nexport * from './unknown_binary_response_event_wrapper';\nexport * from './unknown_response_event_wrapper';\nexport * from './wait_to_clear_warnings_request';\nexport * from './wait_to_respond_request';\nexport * from './wdi_generic_request';\nexport * from './wdi_get_status_response';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","s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AAuC;AACvC,yEAAuD;AACvD,mEAAiD;AACjD,6DAA2C;AAC3C,oFAAkE;AAClE,iEAA+C;AAC/C,mFAAiE;AACjE,wDAAsC;AACtC,yDAAuC;AACvC,wDAAsC;AACtC,0EAAwD;AACxD,mFAAiE;AACjE,2EAAyD;AACzD,oFAAkE;AAClE,qEAAmD;AACnD,8EAA4D;AAC5D,sEAAoD;AACpD,+EAA6D;AAC7D,4DAA0C;AAC1C,oFAAkE;AAClE,iEAA+C;AAC/C,mFAAiE;AACjE,wEAAsD;AACtD,8DAA4C;AAC5C,8EAA4D;AAC5D,yEAAuD;AACvD,+DAA6C;AAC7C,qEAAmD;AACnD,sEAAoD;AACpD,wDAAsC;AACtC,mEAAiD;AACjD,0DAAwC;AACxC,oDAAkC;AAClC,+CAA6B;AAC7B,iDAA+B;AAC/B,kDAAgC;AAChC,uDAAqC;AACrC,mEAAiD;AACjD,qEAAmD;AACnD,0EAAwD;AACxD,mEAAiD;AACjD,8DAA4C;AAC5C,+DAA6C;AAC7C,6DAA2C;AAC3C,kEAAgD;AAChD,8DAA4C;AAC5C,uEAAqD;AACrD,yEAAuD;AACvD,yEAAuD;AACvD,8EAA4D;AAC5D,yEAAuD;AACvD,iEAA+C;AAC/C,iEAA+C;AAC/C,0DAAwC;AACxC,2DAAyC;AACzC,2DAAyC;AACzC,qEAAmD;AACnD,iFAA+D;AAC/D,iEAA+C;AAC/C,8DAA4C;AAC5C,sEAAoD;AACpD,4DAA0C;AAC1C,gEAA8C;AAC9C,2EAAyD;AACzD,8DAA4C;AAC5C,mDAAiC;AACjC,0DAAwC;AACxC,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,0EAAwD;AACxD,mEAAiD;AACjD,mEAAiD;AACjD,4DAA0C;AAC1C,wDAAsC;AACtC,4DAA0C","sourcesContent":["/* This file is generated. Do not modify by hand. */\nexport * from './alert_event_wrapper';\nexport * from './autofocus_focus_request';\nexport * from './autofocus_get_objective_params_request';\nexport * from './autofocus_get_objective_params_response';\nexport * from './autofocus_get_status_response';\nexport * from './autofocus_set_objective_params_request';\nexport * from './axes_empty_request';\nexport * from './axes_get_setting_request';\nexport * from './axes_move_request';\nexport * from './axis_empty_request';\nexport * from './axis_move_type';\nexport * from './axis_to_string_request';\nexport * from './binary_device_detect_request';\nexport * from './binary_device_detect_response';\nexport * from './binary_device_get_setting_request';\nexport * from './binary_device_home_request';\nexport * from './binary_device_move_request';\nexport * from './binary_device_set_setting_request';\nexport * from './binary_device_stop_request';\nexport * from './binary_generic_with_units_request';\nexport * from './binary_message_collection';\nexport * from './binary_reply_only_event_wrapper';\nexport * from './bool_response';\nexport * from './can_set_state_axis_response';\nexport * from './can_set_state_request';\nexport * from './channel_on';\nexport * from './channel_set_intensity';\nexport * from './check_version_request';\nexport * from './custom_interface_close_request';\nexport * from './custom_interface_open_response';\nexport * from './custom_interface_read_request';\nexport * from './custom_interface_write_request';\nexport * from './device_cancel_all_outputs_schedule_request';\nexport * from './device_cancel_output_schedule_request';\nexport * from './device_convert_setting_request';\nexport * from './device_detect_request';\nexport * from './device_detect_response';\nexport * from './device_empty_request';\nexport * from './device_get_all_analog_io_request';\nexport * from './device_get_all_analog_io_response';\nexport * from './device_get_all_digital_io_request';\nexport * from './device_get_all_digital_io_response';\nexport * from './device_get_analog_io_request';\nexport * from './device_get_digital_io_request';\nexport * from './device_get_setting_request';\nexport * from './device_get_storage_request';\nexport * from './device_get_warnings_request';\nexport * from './device_get_warnings_response';\nexport * from './device_home_request';\nexport * from './device_identify_request';\nexport * from './device_move_request';\nexport * from './device_move_sin_request';\nexport * from './device_multi_get_setting_request';\nexport * from './device_on_all_request';\nexport * from './device_on_all_response';\nexport * from './device_set_all_analog_outputs_request';\nexport * from './device_set_all_analog_outputs_schedule_request';\nexport * from './device_set_all_digital_outputs_request';\nexport * from './device_set_all_digital_outputs_schedule_request';\nexport * from './device_set_analog_output_request';\nexport * from './device_set_analog_output_schedule_request';\nexport * from './device_set_digital_output_request';\nexport * from './device_set_digital_output_schedule_request';\nexport * from './device_set_lowpass_filter_request';\nexport * from './device_set_setting_request';\nexport * from './device_set_setting_str_request';\nexport * from './device_set_storage_bool_request';\nexport * from './device_set_storage_number_request';\nexport * from './device_set_storage_request';\nexport * from './device_set_unit_conversions_request';\nexport * from './device_stop_request';\nexport * from './device_storage_list_keys_request';\nexport * from './device_storage_request';\nexport * from './device_type';\nexport * from './device_wait_until_idle_request';\nexport * from './disconnected_event';\nexport * from './double_array_response';\nexport * from './double_response';\nexport * from './empty_autofocus_request';\nexport * from './empty_request';\nexport * from './errors';\nexport * from './find_device_request';\nexport * from './find_device_response';\nexport * from './forget_devices_request';\nexport * from './gateway_event';\nexport * from './gateway_request';\nexport * from './gateway_response';\nexport * from './generic_binary_request';\nexport * from './generic_command_request';\nexport * from './generic_command_response_collection';\nexport * from './get_all_io_port_labels_response';\nexport * from './get_axis_setting_results';\nexport * from './get_io_port_label_request';\nexport * from './get_setting_results';\nexport * from './get_simple_tuning_param_definition_response';\nexport * from './int_array_response';\nexport * from './int_request';\nexport * from './int_response';\nexport * from './interface_empty_request';\nexport * from './interface_type';\nexport * from './load_paramset';\nexport * from './lockstep_disable_request';\nexport * from './lockstep_empty_request';\nexport * from './lockstep_enable_request';\nexport * from './lockstep_get_axis_numbers_response';\nexport * from './lockstep_get_request';\nexport * from './lockstep_home_request';\nexport * from './lockstep_move_request';\nexport * from './lockstep_move_sin_request';\nexport * from './lockstep_set_request';\nexport * from './lockstep_stop_request';\nexport * from './lockstep_wait_until_idle_request';\nexport * from './microscope_config_response';\nexport * from './microscope_empty_request';\nexport * from './microscope_find_request';\nexport * from './microscope_init_request';\nexport * from './microscope_trigger_camera_request';\nexport * from './objective_changer_change_request';\nexport * from './objective_changer_create_response';\nexport * from './objective_changer_get_current_response';\nexport * from './objective_changer_request';\nexport * from './objective_changer_set_request';\nexport * from './open_binary_interface_request';\nexport * from './open_interface_request';\nexport * from './open_interface_response';\nexport * from './oscilloscope_add_io_channel_request';\nexport * from './oscilloscope_add_setting_channel_request';\nexport * from './oscilloscope_data_get_request';\nexport * from './oscilloscope_data_get_sample_time_request';\nexport * from './oscilloscope_data_get_samples_response';\nexport * from './oscilloscope_data_identifier';\nexport * from './oscilloscope_read_response';\nexport * from './oscilloscope_request';\nexport * from './oscilloscope_start_request';\nexport * from './prepare_command_request';\nexport * from './process_on';\nexport * from './pvt_point_request';\nexport * from './renumber_request';\nexport * from './response_type';\nexport * from './servo_tuning_paramset_response';\nexport * from './servo_tuning_request';\nexport * from './set_device_db_source_request';\nexport * from './set_interface_checksum_enabled_request';\nexport * from './set_interface_timeout_request';\nexport * from './set_internal_mode_request';\nexport * from './set_io_port_label_request';\nexport * from './set_log_output_request';\nexport * from './set_process_controller_source';\nexport * from './set_servo_tuning_pid_request';\nexport * from './set_servo_tuning_request';\nexport * from './set_simple_tuning';\nexport * from './set_state_request';\nexport * from './stream_arc_request';\nexport * from './stream_buffer_erase_request';\nexport * from './stream_buffer_get_content_request';\nexport * from './stream_buffer_get_content_response';\nexport * from './stream_buffer_list';\nexport * from './stream_call_request';\nexport * from './stream_cancel_all_outputs_schedule_request';\nexport * from './stream_cancel_output_schedule_request';\nexport * from './stream_circle_request';\nexport * from './stream_empty_request';\nexport * from './stream_generic_command_batch_request';\nexport * from './stream_generic_command_request';\nexport * from './stream_get_axes_response';\nexport * from './stream_get_max_centripetal_acceleration_request';\nexport * from './stream_get_max_speed_request';\nexport * from './stream_get_max_tangential_acceleration_request';\nexport * from './stream_line_request';\nexport * from './stream_mode_response';\nexport * from './stream_segment_type';\nexport * from './stream_set_all_analog_outputs_request';\nexport * from './stream_set_all_analog_outputs_schedule_request';\nexport * from './stream_set_all_digital_outputs_request';\nexport * from './stream_set_all_digital_outputs_schedule_request';\nexport * from './stream_set_analog_output_request';\nexport * from './stream_set_analog_output_schedule_request';\nexport * from './stream_set_digital_output_request';\nexport * from './stream_set_digital_output_schedule_request';\nexport * from './stream_set_hold_request';\nexport * from './stream_set_max_centripetal_acceleration_request';\nexport * from './stream_set_max_speed_request';\nexport * from './stream_set_max_tangential_acceleration_request';\nexport * from './stream_setup_live_composite_request';\nexport * from './stream_setup_live_request';\nexport * from './stream_setup_store_arbitrary_axes_request';\nexport * from './stream_setup_store_composite_request';\nexport * from './stream_setup_store_request';\nexport * from './stream_wait_analog_input_request';\nexport * from './stream_wait_digital_input_request';\nexport * from './stream_wait_request';\nexport * from './stream_wait_until_idle_request';\nexport * from './string_array_response';\nexport * from './string_response';\nexport * from './test_event';\nexport * from './test_request';\nexport * from './test_response';\nexport * from './test_response_long';\nexport * from './toggle_device_db_store_request';\nexport * from './tools_list_serial_ports_response';\nexport * from './translator_create_from_device_request';\nexport * from './translator_create_live_request';\nexport * from './translator_create_request';\nexport * from './translator_create_response';\nexport * from './translator_empty_request';\nexport * from './translator_flush_live_request';\nexport * from './translator_flush_response';\nexport * from './translator_get_axis_offset_request';\nexport * from './translator_get_axis_position_request';\nexport * from './translator_set_axis_position_request';\nexport * from './translator_set_feed_rate_override_request';\nexport * from './translator_set_traverse_rate_request';\nexport * from './translator_translate_request';\nexport * from './trigger_clear_action_request';\nexport * from './trigger_empty_request';\nexport * from './trigger_enable_request';\nexport * from './trigger_enabled_states';\nexport * from './trigger_fire_at_interval_request';\nexport * from './trigger_fire_when_distance_travelled_request';\nexport * from './trigger_fire_when_io_request';\nexport * from './trigger_fire_when_request';\nexport * from './trigger_fire_when_setting_request';\nexport * from './trigger_on_fire_request';\nexport * from './trigger_on_fire_set_request';\nexport * from './trigger_on_fire_set_to_setting_request';\nexport * from './trigger_set_label_request';\nexport * from './trigger_states';\nexport * from './unit_get_enum_request';\nexport * from './unit_get_enum_response';\nexport * from './unit_get_symbol_request';\nexport * from './unit_get_symbol_response';\nexport * from './unknown_binary_response_event_wrapper';\nexport * from './unknown_response_event_wrapper';\nexport * from './wait_to_clear_warnings_request';\nexport * from './wait_to_respond_request';\nexport * from './wdi_generic_request';\nexport * from './wdi_get_status_response';\n"]}
@@ -0,0 +1,16 @@
1
+ import { Units } from '../units';
2
+ export interface MicroscopeTriggerCameraRequest {
3
+ interfaceId: number;
4
+ device: number;
5
+ channelNumber: number;
6
+ delay: number;
7
+ unit: Units;
8
+ wait: boolean;
9
+ }
10
+ export declare const MicroscopeTriggerCameraRequest: {
11
+ fromBinary: (buffer: Uint8Array) => MicroscopeTriggerCameraRequest;
12
+ toBinary: (value: MicroscopeTriggerCameraRequest) => Uint8Array;
13
+ DEFAULT: Readonly<MicroscopeTriggerCameraRequest>;
14
+ sanitize: (value: MicroscopeTriggerCameraRequest) => MicroscopeTriggerCameraRequest;
15
+ };
16
+ //# sourceMappingURL=microscope_trigger_camera_request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"microscope_trigger_camera_request.d.ts","sourceRoot":"","sources":["../../../src/requests/microscope_trigger_camera_request.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,WAAW,8BAA8B;IAC7C,WAAW,EAAE,MAAM,CAAC;IAEpB,MAAM,EAAE,MAAM,CAAC;IAEf,aAAa,EAAE,MAAM,CAAC;IAEtB,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,KAAK,CAAC;IAEZ,IAAI,EAAE,OAAO,CAAC;CAEf;AAED,eAAO,MAAM,8BAA8B;yBACpB,UAAU,KAAG,8BAA8B;sBAC9C,8BAA8B,KAAG,UAAU;;sBAS3C,8BAA8B,KAAG,8BAA8B;CAYlF,CAAC"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MicroscopeTriggerCameraRequest = void 0;
4
+ /* This file is generated. Do not modify by hand. */
5
+ const bson_1 = require("bson");
6
+ const sanitizer_1 = require("../gateway/sanitizer");
7
+ const units_1 = require("../units");
8
+ exports.MicroscopeTriggerCameraRequest = {
9
+ fromBinary: (buffer) => bson_1.BSON.deserialize(buffer),
10
+ toBinary: (value) => bson_1.BSON.serialize(exports.MicroscopeTriggerCameraRequest.sanitize(value)),
11
+ DEFAULT: Object.freeze({
12
+ interfaceId: 0,
13
+ device: 0,
14
+ channelNumber: 0,
15
+ delay: 0,
16
+ unit: units_1.Units.NATIVE,
17
+ wait: false,
18
+ }),
19
+ sanitize: (value) => {
20
+ if (value == null) {
21
+ throw new TypeError('Expected MicroscopeTriggerCameraRequest object but got null or undefined.');
22
+ }
23
+ if (typeof value !== 'object') {
24
+ throw new TypeError(`Expected MicroscopeTriggerCameraRequest object but got ${typeof value}.`);
25
+ }
26
+ return {
27
+ interfaceId: sanitizer_1.sanitizer.sanitizeInt(value.interfaceId, 'interfaceId'),
28
+ device: sanitizer_1.sanitizer.sanitizeInt(value.device, 'device'),
29
+ channelNumber: sanitizer_1.sanitizer.sanitizeInt(value.channelNumber, 'channelNumber'),
30
+ delay: sanitizer_1.sanitizer.sanitizeNumber(value.delay, 'delay'),
31
+ unit: sanitizer_1.sanitizer.sanitizeUnits(value.unit, 'unit'),
32
+ wait: sanitizer_1.sanitizer.sanitizeBool(value.wait, 'wait'),
33
+ };
34
+ },
35
+ };
36
+ //# sourceMappingURL=microscope_trigger_camera_request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"microscope_trigger_camera_request.js","sourceRoot":"","sources":["../../../src/requests/microscope_trigger_camera_request.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AACjD,oCAAiC;AAiBpB,QAAA,8BAA8B,GAAG;IAC5C,UAAU,EAAE,CAAC,MAAkB,EAAkC,EAAE,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,CAAmC;IAC9H,QAAQ,EAAE,CAAC,KAAqC,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,sCAA8B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/H,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,WAAW,EAAE,CAAC;QACd,MAAM,EAAE,CAAC;QACT,aAAa,EAAE,CAAC;QAChB,KAAK,EAAE,CAAC;QACR,IAAI,EAAE,aAAK,CAAC,MAAM;QAClB,IAAI,EAAE,KAAK;KACZ,CAA6C;IAC9C,QAAQ,EAAE,CAAC,KAAqC,EAAkC,EAAE;QAClF,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,2EAA2E,CAAC,CAAA;QAAC,CAAC;QACvH,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,0DAA0D,OAAO,KAAK,GAAG,CAAC,CAAA;QAAC,CAAC;QACjI,OAAO;YACL,WAAW,EAAE,qBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,WAAW,EAAE,aAAa,CAAC;YACpE,MAAM,EAAE,qBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC;YACrD,aAAa,EAAE,qBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,aAAa,EAAE,eAAe,CAAC;YAC1E,KAAK,EAAE,qBAAS,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC;YACrD,IAAI,EAAE,qBAAS,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC;YACjD,IAAI,EAAE,qBAAS,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC;SACjD,CAAC;IACJ,CAAC;CACF,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\nimport { Units } from '../units';\n\nexport interface MicroscopeTriggerCameraRequest {\n interfaceId: number;\n\n device: number;\n\n channelNumber: number;\n\n delay: number;\n\n unit: Units;\n\n wait: boolean;\n\n}\n\nexport const MicroscopeTriggerCameraRequest = {\n fromBinary: (buffer: Uint8Array): MicroscopeTriggerCameraRequest => BSON.deserialize(buffer) as MicroscopeTriggerCameraRequest,\n toBinary: (value: MicroscopeTriggerCameraRequest): Uint8Array => BSON.serialize(MicroscopeTriggerCameraRequest.sanitize(value)),\n DEFAULT: Object.freeze({\n interfaceId: 0,\n device: 0,\n channelNumber: 0,\n delay: 0,\n unit: Units.NATIVE,\n wait: false,\n }) as Readonly<MicroscopeTriggerCameraRequest>,\n sanitize: (value: MicroscopeTriggerCameraRequest): MicroscopeTriggerCameraRequest => {\n if (value == null) { throw new TypeError('Expected MicroscopeTriggerCameraRequest object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected MicroscopeTriggerCameraRequest object but got ${typeof value}.`) }\n return {\n interfaceId: sanitizer.sanitizeInt(value.interfaceId, 'interfaceId'),\n device: sanitizer.sanitizeInt(value.device, 'device'),\n channelNumber: sanitizer.sanitizeInt(value.channelNumber, 'channelNumber'),\n delay: sanitizer.sanitizeNumber(value.delay, 'delay'),\n unit: sanitizer.sanitizeUnits(value.unit, 'unit'),\n wait: sanitizer.sanitizeBool(value.wait, 'wait'),\n };\n },\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zaber/motion",
3
- "version": "7.1.1",
3
+ "version": "7.2.0",
4
4
  "description": "Zaber Motion Library is a multi-platform library used to operate Zaber devices.",
5
5
  "keywords": [],
6
6
  "main": "dist/lib/index.js",
@@ -52,6 +52,11 @@
52
52
  "types": "./dist/lib/wasm.d.ts",
53
53
  "require": "./dist/lib/wasm.js",
54
54
  "import": "./dist/lib/wasm.js"
55
+ },
56
+ "./custom_bindings": {
57
+ "types": "./dist/lib/custom_bindings.d.ts",
58
+ "require": "./dist/lib/custom_bindings.js",
59
+ "import": "./dist/lib/custom_bindings.js"
55
60
  }
56
61
  },
57
62
  "files": [
@@ -135,12 +140,13 @@
135
140
  "@types/chai": "^4.2.21",
136
141
  "@types/chai-as-promised": "^7.1.4",
137
142
  "@types/chai-string": "^1.4.2",
143
+ "@types/glob": "^7.1.1",
138
144
  "@types/got": "9.6.12",
139
145
  "@types/jasmine": "^3.8.1",
140
146
  "@types/jest": "^29.5.12",
141
147
  "@types/lodash": "^4.14.171",
142
148
  "@types/mqtt": "2.5.0",
143
- "@types/node": "^16.11.6",
149
+ "@types/node": "~22.5.5",
144
150
  "@types/pkg-up": "^3.1.0",
145
151
  "@types/split2": "^3.2.1",
146
152
  "@types/uuid": "^8.3.1",
@@ -155,6 +161,7 @@
155
161
  "copyfiles": "^2.4.1",
156
162
  "coveralls": "^3.1.1",
157
163
  "eslint": "^8.57.0",
164
+ "glob": "^10.3.14",
158
165
  "got": "11.8.2",
159
166
  "jasmine": "^3.8.0",
160
167
  "jest": "^29.7.0",