@zaber/motion 5.1.2 → 5.1.3

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.
@@ -21,7 +21,7 @@ export interface SimpleTuningParamDefinition {
21
21
  /**
22
22
  * The default value of this parameter.
23
23
  */
24
- defaultValue: number;
24
+ defaultValue?: number;
25
25
  }
26
26
  export declare namespace SimpleTuningParamDefinition {
27
27
  const __type = "SimpleTuningParamDefinition";
@@ -13,7 +13,7 @@ var SimpleTuningParamDefinition;
13
13
  minLabel: pbData.minLabel,
14
14
  maxLabel: pbData.maxLabel,
15
15
  dataType: pbData.dataType,
16
- defaultValue: pbData.defaultValue,
16
+ defaultValue: pbData.hasDefaultValue ? pbData.defaultValue : undefined,
17
17
  };
18
18
  }
19
19
  SimpleTuningParamDefinition.fromProtobuf = fromProtobuf;
@@ -1 +1 @@
1
- {"version":3,"file":"simple_tuning_param_definition.js","sourceRoot":"","sources":["../../../src/ascii/simple_tuning_param_definition.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAmCtD,IAAiB,2BAA2B,CAa3C;AAbD,WAAiB,2BAA2B;IAC7B,kCAAM,GAAG,6BAA6B,CAAC;IAEpD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAoD;QAC/E,OAAO;YACL,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,YAAY,EAAE,MAAM,CAAC,YAAY;SAClC,CAAC;IACJ,CAAC;IARe,wCAAY,eAQ3B,CAAA;AACH,CAAC,EAbgB,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAa3C","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Information about a parameter used for the simple tuning method.\n */\nexport interface SimpleTuningParamDefinition {\n /**\n * The name of the parameter.\n */\n name: string;\n\n /**\n * The human readable description of the effect of a lower value on this setting.\n */\n minLabel: string;\n\n /**\n * The human readable description of the effect of a higher value on this setting.\n */\n maxLabel: string;\n\n /**\n * How this parameter will be parsed by the tuner.\n */\n dataType: string;\n\n /**\n * The default value of this parameter.\n */\n defaultValue: number;\n\n}\n\nexport namespace SimpleTuningParamDefinition {\n export const __type = 'SimpleTuningParamDefinition';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.SimpleTuningParamDefinition.AsObject): SimpleTuningParamDefinition {\n return {\n name: pbData.name,\n minLabel: pbData.minLabel,\n maxLabel: pbData.maxLabel,\n dataType: pbData.dataType,\n defaultValue: pbData.defaultValue,\n };\n }\n}\n"]}
1
+ {"version":3,"file":"simple_tuning_param_definition.js","sourceRoot":"","sources":["../../../src/ascii/simple_tuning_param_definition.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAmCtD,IAAiB,2BAA2B,CAa3C;AAbD,WAAiB,2BAA2B;IAC7B,kCAAM,GAAG,6BAA6B,CAAC;IAEpD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAoD;QAC/E,OAAO;YACL,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,YAAY,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS;SACvE,CAAC;IACJ,CAAC;IARe,wCAAY,eAQ3B,CAAA;AACH,CAAC,EAbgB,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAa3C","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Information about a parameter used for the simple tuning method.\n */\nexport interface SimpleTuningParamDefinition {\n /**\n * The name of the parameter.\n */\n name: string;\n\n /**\n * The human readable description of the effect of a lower value on this setting.\n */\n minLabel: string;\n\n /**\n * The human readable description of the effect of a higher value on this setting.\n */\n maxLabel: string;\n\n /**\n * How this parameter will be parsed by the tuner.\n */\n dataType: string;\n\n /**\n * The default value of this parameter.\n */\n defaultValue?: number;\n\n}\n\nexport namespace SimpleTuningParamDefinition {\n export const __type = 'SimpleTuningParamDefinition';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.SimpleTuningParamDefinition.AsObject): SimpleTuningParamDefinition {\n return {\n name: pbData.name,\n minLabel: pbData.minLabel,\n maxLabel: pbData.maxLabel,\n dataType: pbData.dataType,\n defaultValue: pbData.hasDefaultValue ? pbData.defaultValue : undefined,\n };\n }\n}\n"]}
@@ -34,7 +34,7 @@ var AxisDefinition;
34
34
  function fromProtobuf(pbData) {
35
35
  return {
36
36
  peripheralId: pbData.peripheralId,
37
- microstepResolution: pbData.microstepResolution,
37
+ microstepResolution: pbData.hasMicrostepResolution ? pbData.microstepResolution : undefined,
38
38
  };
39
39
  }
40
40
  AxisDefinition.fromProtobuf = fromProtobuf;
@@ -45,7 +45,10 @@ var AxisDefinition;
45
45
  return pbData;
46
46
  }
47
47
  pbData.setPeripheralId(source.peripheralId);
48
- pbData.setMicrostepResolution(source.microstepResolution);
48
+ if (source.microstepResolution != null) {
49
+ pbData.setMicrostepResolution(source.microstepResolution);
50
+ pbData.setHasMicrostepResolution(true);
51
+ }
49
52
  return pbData;
50
53
  }
51
54
  AxisDefinition.toProtobuf = toProtobuf;
@@ -1 +1 @@
1
- {"version":3,"file":"axis_definition.js","sourceRoot":"","sources":["../../../src/gcode/axis_definition.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AAoBtC,IAAiB,cAAc,CAqB9B;AArBD,WAAiB,cAAc;IAChB,qBAAM,GAAG,gBAAgB,CAAC;IAEvC,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAiD;QAC5E,OAAO;YACL,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,mBAAmB,EAAE,MAAM,CAAC,mBAAmB;SAChD,CAAC;IACJ,CAAC;IALe,2BAAY,eAK3B,CAAA;IACD,gBAAgB;IAChB,SAAgB,UAAU,CAAC,MAAyC;QAClE,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,wBAAwB,EAAE,CAAC;QACtD,IAAI,MAAM,IAAI,IAAI,EAAE;YAClB,OAAO,MAAM,CAAC;SACf;QAED,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAC5C,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,mBAAoB,CAAC,CAAC;QAC3D,OAAO,MAAM,CAAC;IAChB,CAAC;IATe,yBAAU,aASzB,CAAA;AACH,CAAC,EArBgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAqB9B","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Defines an axis of the translator.\n */\nexport interface AxisDefinition {\n /**\n * ID of the peripheral.\n */\n peripheralId: number;\n\n /**\n * Microstep resolution of the axis.\n * Can be obtained by reading the resolution setting.\n * Leave empty if the axis does not have the setting.\n */\n microstepResolution?: number;\n\n}\n\nexport namespace AxisDefinition {\n export const __type = 'AxisDefinition';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.TranslatorAxisDefinition.AsObject): AxisDefinition {\n return {\n peripheralId: pbData.peripheralId,\n microstepResolution: pbData.microstepResolution,\n };\n }\n /** @internal */\n export function toProtobuf(source: AxisDefinition | null | undefined): gateway.TranslatorAxisDefinition {\n const pbData = new gateway.TranslatorAxisDefinition();\n if (source == null) {\n return pbData;\n }\n\n pbData.setPeripheralId(source.peripheralId);\n pbData.setMicrostepResolution(source.microstepResolution!);\n return pbData;\n }\n}\n"]}
1
+ {"version":3,"file":"axis_definition.js","sourceRoot":"","sources":["../../../src/gcode/axis_definition.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AAoBtC,IAAiB,cAAc,CAwB9B;AAxBD,WAAiB,cAAc;IAChB,qBAAM,GAAG,gBAAgB,CAAC;IAEvC,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAiD;QAC5E,OAAO;YACL,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,mBAAmB,EAAE,MAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS;SAC5F,CAAC;IACJ,CAAC;IALe,2BAAY,eAK3B,CAAA;IACD,gBAAgB;IAChB,SAAgB,UAAU,CAAC,MAAyC;QAClE,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,wBAAwB,EAAE,CAAC;QACtD,IAAI,MAAM,IAAI,IAAI,EAAE;YAClB,OAAO,MAAM,CAAC;SACf;QAED,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAC5C,IAAI,MAAM,CAAC,mBAAmB,IAAI,IAAI,EAAE;YACtC,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;YAC1D,MAAM,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;SACxC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAZe,yBAAU,aAYzB,CAAA;AACH,CAAC,EAxBgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAwB9B","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Defines an axis of the translator.\n */\nexport interface AxisDefinition {\n /**\n * ID of the peripheral.\n */\n peripheralId: number;\n\n /**\n * Microstep resolution of the axis.\n * Can be obtained by reading the resolution setting.\n * Leave empty if the axis does not have the setting.\n */\n microstepResolution?: number;\n\n}\n\nexport namespace AxisDefinition {\n export const __type = 'AxisDefinition';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.TranslatorAxisDefinition.AsObject): AxisDefinition {\n return {\n peripheralId: pbData.peripheralId,\n microstepResolution: pbData.hasMicrostepResolution ? pbData.microstepResolution : undefined,\n };\n }\n /** @internal */\n export function toProtobuf(source: AxisDefinition | null | undefined): gateway.TranslatorAxisDefinition {\n const pbData = new gateway.TranslatorAxisDefinition();\n if (source == null) {\n return pbData;\n }\n\n pbData.setPeripheralId(source.peripheralId);\n if (source.microstepResolution != null) {\n pbData.setMicrostepResolution(source.microstepResolution);\n pbData.setHasMicrostepResolution(true);\n }\n return pbData;\n }\n}\n"]}
@@ -39,7 +39,10 @@ var AxisTransformation;
39
39
  return pbData;
40
40
  }
41
41
  pbData.setAxisLetter(source.axisLetter);
42
- pbData.setScaling(source.scaling);
42
+ if (source.scaling != null) {
43
+ pbData.setScaling(source.scaling);
44
+ pbData.setHasScaling(true);
45
+ }
43
46
  pbData.setTranslation(measurement_1.Measurement.toProtobuf(source.translation));
44
47
  return pbData;
45
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"axis_transformation.js","sourceRoot":"","sources":["../../../src/gcode/axis_transformation.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AACtC,gDAA6C;AAuB7C,IAAiB,kBAAkB,CAgBlC;AAhBD,WAAiB,kBAAkB;IACpB,yBAAM,GAAG,oBAAoB,CAAC;IAE3C,gBAAgB;IAChB,SAAgB,UAAU,CAAC,MAA6C;QACtE,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,4BAA4B,EAAE,CAAC;QAC1D,IAAI,MAAM,IAAI,IAAI,EAAE;YAClB,MAAM,CAAC,cAAc,CAAC,yBAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;YACpD,OAAO,MAAM,CAAC;SACf;QAED,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QACxC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,OAAQ,CAAC,CAAC;QACnC,MAAM,CAAC,cAAc,CAAC,yBAAW,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;QAClE,OAAO,MAAM,CAAC;IAChB,CAAC;IAXe,6BAAU,aAWzB,CAAA;AACH,CAAC,EAhBgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAgBlC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport { Measurement } from '../measurement';\n\n/**\n * Represents a transformation of a translator axis.\n */\nexport interface AxisTransformation {\n /**\n * Letter of the translator axis (X,Y,Z,A,B,C,E).\n */\n axisLetter: string;\n\n /**\n * Scaling factor.\n */\n scaling?: number;\n\n /**\n * Translation distance.\n */\n translation?: Measurement;\n\n}\n\nexport namespace AxisTransformation {\n export const __type = 'AxisTransformation';\n\n /** @internal */\n export function toProtobuf(source: AxisTransformation | null | undefined): gateway.TranslatorAxisTransformation {\n const pbData = new gateway.TranslatorAxisTransformation();\n if (source == null) {\n pbData.setTranslation(Measurement.toProtobuf(null));\n return pbData;\n }\n\n pbData.setAxisLetter(source.axisLetter);\n pbData.setScaling(source.scaling!);\n pbData.setTranslation(Measurement.toProtobuf(source.translation));\n return pbData;\n }\n}\n"]}
1
+ {"version":3,"file":"axis_transformation.js","sourceRoot":"","sources":["../../../src/gcode/axis_transformation.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AACtC,gDAA6C;AAuB7C,IAAiB,kBAAkB,CAmBlC;AAnBD,WAAiB,kBAAkB;IACpB,yBAAM,GAAG,oBAAoB,CAAC;IAE3C,gBAAgB;IAChB,SAAgB,UAAU,CAAC,MAA6C;QACtE,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,4BAA4B,EAAE,CAAC;QAC1D,IAAI,MAAM,IAAI,IAAI,EAAE;YAClB,MAAM,CAAC,cAAc,CAAC,yBAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;YACpD,OAAO,MAAM,CAAC;SACf;QAED,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,MAAM,CAAC,OAAO,IAAI,IAAI,EAAE;YAC1B,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YAClC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;SAC5B;QACD,MAAM,CAAC,cAAc,CAAC,yBAAW,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;QAClE,OAAO,MAAM,CAAC;IAChB,CAAC;IAde,6BAAU,aAczB,CAAA;AACH,CAAC,EAnBgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAmBlC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport { Measurement } from '../measurement';\n\n/**\n * Represents a transformation of a translator axis.\n */\nexport interface AxisTransformation {\n /**\n * Letter of the translator axis (X,Y,Z,A,B,C,E).\n */\n axisLetter: string;\n\n /**\n * Scaling factor.\n */\n scaling?: number;\n\n /**\n * Translation distance.\n */\n translation?: Measurement;\n\n}\n\nexport namespace AxisTransformation {\n export const __type = 'AxisTransformation';\n\n /** @internal */\n export function toProtobuf(source: AxisTransformation | null | undefined): gateway.TranslatorAxisTransformation {\n const pbData = new gateway.TranslatorAxisTransformation();\n if (source == null) {\n pbData.setTranslation(Measurement.toProtobuf(null));\n return pbData;\n }\n\n pbData.setAxisLetter(source.axisLetter);\n if (source.scaling != null) {\n pbData.setScaling(source.scaling);\n pbData.setHasScaling(true);\n }\n pbData.setTranslation(Measurement.toProtobuf(source.translation));\n return pbData;\n }\n}\n"]}
@@ -37,9 +37,9 @@ var MicroscopeConfig;
37
37
  focusAxis: pbData.focusAxis != null ? axis_address_1.AxisAddress.fromProtobuf(pbData.focusAxis) : undefined,
38
38
  xAxis: pbData.xAxis != null ? axis_address_1.AxisAddress.fromProtobuf(pbData.xAxis) : undefined,
39
39
  yAxis: pbData.yAxis != null ? axis_address_1.AxisAddress.fromProtobuf(pbData.yAxis) : undefined,
40
- illuminator: pbData.illuminator,
41
- filterChanger: pbData.filterChanger,
42
- objectiveChanger: pbData.objectiveChanger,
40
+ illuminator: pbData.hasIlluminator ? pbData.illuminator : undefined,
41
+ filterChanger: pbData.hasFilterChanger ? pbData.filterChanger : undefined,
42
+ objectiveChanger: pbData.hasObjectiveChanger ? pbData.objectiveChanger : undefined,
43
43
  };
44
44
  }
45
45
  MicroscopeConfig.fromProtobuf = fromProtobuf;
@@ -55,9 +55,18 @@ var MicroscopeConfig;
55
55
  pbData.setFocusAxis(axis_address_1.AxisAddress.toProtobuf(source.focusAxis));
56
56
  pbData.setXAxis(axis_address_1.AxisAddress.toProtobuf(source.xAxis));
57
57
  pbData.setYAxis(axis_address_1.AxisAddress.toProtobuf(source.yAxis));
58
- pbData.setIlluminator(source.illuminator);
59
- pbData.setFilterChanger(source.filterChanger);
60
- pbData.setObjectiveChanger(source.objectiveChanger);
58
+ if (source.illuminator != null) {
59
+ pbData.setIlluminator(source.illuminator);
60
+ pbData.setHasIlluminator(true);
61
+ }
62
+ if (source.filterChanger != null) {
63
+ pbData.setFilterChanger(source.filterChanger);
64
+ pbData.setHasFilterChanger(true);
65
+ }
66
+ if (source.objectiveChanger != null) {
67
+ pbData.setObjectiveChanger(source.objectiveChanger);
68
+ pbData.setHasObjectiveChanger(true);
69
+ }
61
70
  return pbData;
62
71
  }
63
72
  MicroscopeConfig.toProtobuf = toProtobuf;
@@ -1 +1 @@
1
- {"version":3,"file":"microscope_config.js","sourceRoot":"","sources":["../../../src/microscopy/microscope_config.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AACtC,kDAA8C;AAuC9C,IAAiB,gBAAgB,CAgChC;AAhCD,WAAiB,gBAAgB;IAClB,uBAAM,GAAG,kBAAkB,CAAC;IAEzC,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAyC;QACpE,OAAO;YACL,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,0BAAW,CAAC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS;YAC5F,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,0BAAW,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;YAChF,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,0BAAW,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;YAChF,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,aAAa,EAAE,MAAM,CAAC,aAAa;YACnC,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;SAC1C,CAAC;IACJ,CAAC;IATe,6BAAY,eAS3B,CAAA;IACD,gBAAgB;IAChB,SAAgB,UAAU,CAAC,MAA2C;QACpE,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC9C,IAAI,MAAM,IAAI,IAAI,EAAE;YAClB,MAAM,CAAC,YAAY,CAAC,0BAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;YAClD,MAAM,CAAC,QAAQ,CAAC,0BAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;YAC9C,MAAM,CAAC,QAAQ,CAAC,0BAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;YAC9C,OAAO,MAAM,CAAC;SACf;QAED,MAAM,CAAC,YAAY,CAAC,0BAAW,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;QAC9D,MAAM,CAAC,QAAQ,CAAC,0BAAW,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACtD,MAAM,CAAC,QAAQ,CAAC,0BAAW,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACtD,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,WAAY,CAAC,CAAC;QAC3C,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,aAAc,CAAC,CAAC;QAC/C,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,gBAAiB,CAAC,CAAC;QACrD,OAAO,MAAM,CAAC;IAChB,CAAC;IAhBe,2BAAU,aAgBzB,CAAA;AACH,CAAC,EAhCgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAgChC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\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;\n\n /**\n * X axis of the microscope.\n */\n xAxis?: AxisAddress;\n\n /**\n * Y axis of the microscope.\n */\n yAxis?: AxisAddress;\n\n /**\n * Illuminator device address.\n */\n illuminator?: number;\n\n /**\n * Filter changer device address.\n */\n filterChanger?: number;\n\n /**\n * Objective changer device address.\n */\n objectiveChanger?: number;\n\n}\n\nexport namespace MicroscopeConfig {\n export const __type = 'MicroscopeConfig';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.MicroscopeConfig.AsObject): MicroscopeConfig {\n return {\n focusAxis: pbData.focusAxis != null ? AxisAddress.fromProtobuf(pbData.focusAxis) : undefined,\n xAxis: pbData.xAxis != null ? AxisAddress.fromProtobuf(pbData.xAxis) : undefined,\n yAxis: pbData.yAxis != null ? AxisAddress.fromProtobuf(pbData.yAxis) : undefined,\n illuminator: pbData.illuminator,\n filterChanger: pbData.filterChanger,\n objectiveChanger: pbData.objectiveChanger,\n };\n }\n /** @internal */\n export function toProtobuf(source: MicroscopeConfig | null | undefined): gateway.MicroscopeConfig {\n const pbData = new gateway.MicroscopeConfig();\n if (source == null) {\n pbData.setFocusAxis(AxisAddress.toProtobuf(null));\n pbData.setXAxis(AxisAddress.toProtobuf(null));\n pbData.setYAxis(AxisAddress.toProtobuf(null));\n return pbData;\n }\n\n pbData.setFocusAxis(AxisAddress.toProtobuf(source.focusAxis));\n pbData.setXAxis(AxisAddress.toProtobuf(source.xAxis));\n pbData.setYAxis(AxisAddress.toProtobuf(source.yAxis));\n pbData.setIlluminator(source.illuminator!);\n pbData.setFilterChanger(source.filterChanger!);\n pbData.setObjectiveChanger(source.objectiveChanger!);\n return pbData;\n }\n}\n"]}
1
+ {"version":3,"file":"microscope_config.js","sourceRoot":"","sources":["../../../src/microscopy/microscope_config.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AACtC,kDAA8C;AAuC9C,IAAiB,gBAAgB,CAyChC;AAzCD,WAAiB,gBAAgB;IAClB,uBAAM,GAAG,kBAAkB,CAAC;IAEzC,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAyC;QACpE,OAAO;YACL,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,0BAAW,CAAC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS;YAC5F,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,0BAAW,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;YAChF,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,0BAAW,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;YAChF,WAAW,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS;YACnE,aAAa,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS;YACzE,gBAAgB,EAAE,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS;SACnF,CAAC;IACJ,CAAC;IATe,6BAAY,eAS3B,CAAA;IACD,gBAAgB;IAChB,SAAgB,UAAU,CAAC,MAA2C;QACpE,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC9C,IAAI,MAAM,IAAI,IAAI,EAAE;YAClB,MAAM,CAAC,YAAY,CAAC,0BAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;YAClD,MAAM,CAAC,QAAQ,CAAC,0BAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;YAC9C,MAAM,CAAC,QAAQ,CAAC,0BAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;YAC9C,OAAO,MAAM,CAAC;SACf;QAED,MAAM,CAAC,YAAY,CAAC,0BAAW,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;QAC9D,MAAM,CAAC,QAAQ,CAAC,0BAAW,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACtD,MAAM,CAAC,QAAQ,CAAC,0BAAW,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACtD,IAAI,MAAM,CAAC,WAAW,IAAI,IAAI,EAAE;YAC9B,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;SAChC;QACD,IAAI,MAAM,CAAC,aAAa,IAAI,IAAI,EAAE;YAChC,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;YAC9C,MAAM,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;SAClC;QACD,IAAI,MAAM,CAAC,gBAAgB,IAAI,IAAI,EAAE;YACnC,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;YACpD,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;SACrC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAzBe,2BAAU,aAyBzB,CAAA;AACH,CAAC,EAzCgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAyChC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\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;\n\n /**\n * X axis of the microscope.\n */\n xAxis?: AxisAddress;\n\n /**\n * Y axis of the microscope.\n */\n yAxis?: AxisAddress;\n\n /**\n * Illuminator device address.\n */\n illuminator?: number;\n\n /**\n * Filter changer device address.\n */\n filterChanger?: number;\n\n /**\n * Objective changer device address.\n */\n objectiveChanger?: number;\n\n}\n\nexport namespace MicroscopeConfig {\n export const __type = 'MicroscopeConfig';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.MicroscopeConfig.AsObject): MicroscopeConfig {\n return {\n focusAxis: pbData.focusAxis != null ? AxisAddress.fromProtobuf(pbData.focusAxis) : undefined,\n xAxis: pbData.xAxis != null ? AxisAddress.fromProtobuf(pbData.xAxis) : undefined,\n yAxis: pbData.yAxis != null ? AxisAddress.fromProtobuf(pbData.yAxis) : undefined,\n illuminator: pbData.hasIlluminator ? pbData.illuminator : undefined,\n filterChanger: pbData.hasFilterChanger ? pbData.filterChanger : undefined,\n objectiveChanger: pbData.hasObjectiveChanger ? pbData.objectiveChanger : undefined,\n };\n }\n /** @internal */\n export function toProtobuf(source: MicroscopeConfig | null | undefined): gateway.MicroscopeConfig {\n const pbData = new gateway.MicroscopeConfig();\n if (source == null) {\n pbData.setFocusAxis(AxisAddress.toProtobuf(null));\n pbData.setXAxis(AxisAddress.toProtobuf(null));\n pbData.setYAxis(AxisAddress.toProtobuf(null));\n return pbData;\n }\n\n pbData.setFocusAxis(AxisAddress.toProtobuf(source.focusAxis));\n pbData.setXAxis(AxisAddress.toProtobuf(source.xAxis));\n pbData.setYAxis(AxisAddress.toProtobuf(source.yAxis));\n if (source.illuminator != null) {\n pbData.setIlluminator(source.illuminator);\n pbData.setHasIlluminator(true);\n }\n if (source.filterChanger != null) {\n pbData.setFilterChanger(source.filterChanger);\n pbData.setHasFilterChanger(true);\n }\n if (source.objectiveChanger != null) {\n pbData.setObjectiveChanger(source.objectiveChanger);\n pbData.setHasObjectiveChanger(true);\n }\n return pbData;\n }\n}\n"]}
@@ -6406,6 +6406,9 @@ export class SimpleTuningParamDefinition extends jspb.Message {
6406
6406
  getDefaultValue(): number;
6407
6407
  setDefaultValue(value: number): void;
6408
6408
 
6409
+ getHasDefaultValue(): boolean;
6410
+ setHasDefaultValue(value: boolean): void;
6411
+
6409
6412
  serializeBinary(): Uint8Array;
6410
6413
  toObject(includeInstance?: boolean): SimpleTuningParamDefinition.AsObject;
6411
6414
  static toObject(includeInstance: boolean, msg: SimpleTuningParamDefinition): SimpleTuningParamDefinition.AsObject;
@@ -6423,6 +6426,7 @@ export namespace SimpleTuningParamDefinition {
6423
6426
  maxLabel: string,
6424
6427
  dataType: string,
6425
6428
  defaultValue: number,
6429
+ hasDefaultValue: boolean,
6426
6430
  }
6427
6431
  }
6428
6432
 
@@ -6503,6 +6507,9 @@ export class TranslatorAxisDefinition extends jspb.Message {
6503
6507
  getMicrostepResolution(): number;
6504
6508
  setMicrostepResolution(value: number): void;
6505
6509
 
6510
+ getHasMicrostepResolution(): boolean;
6511
+ setHasMicrostepResolution(value: boolean): void;
6512
+
6506
6513
  serializeBinary(): Uint8Array;
6507
6514
  toObject(includeInstance?: boolean): TranslatorAxisDefinition.AsObject;
6508
6515
  static toObject(includeInstance: boolean, msg: TranslatorAxisDefinition): TranslatorAxisDefinition.AsObject;
@@ -6517,6 +6524,7 @@ export namespace TranslatorAxisDefinition {
6517
6524
  export type AsObject = {
6518
6525
  peripheralId: number,
6519
6526
  microstepResolution: number,
6527
+ hasMicrostepResolution: boolean,
6520
6528
  }
6521
6529
  }
6522
6530
 
@@ -6611,6 +6619,9 @@ export class TranslatorAxisTransformation extends jspb.Message {
6611
6619
  getScaling(): number;
6612
6620
  setScaling(value: number): void;
6613
6621
 
6622
+ getHasScaling(): boolean;
6623
+ setHasScaling(value: boolean): void;
6624
+
6614
6625
  hasTranslation(): boolean;
6615
6626
  clearTranslation(): void;
6616
6627
  getTranslation(): Measurement | undefined;
@@ -6630,6 +6641,7 @@ export namespace TranslatorAxisTransformation {
6630
6641
  export type AsObject = {
6631
6642
  axisLetter: string,
6632
6643
  scaling: number,
6644
+ hasScaling: boolean,
6633
6645
  translation?: Measurement.AsObject,
6634
6646
  }
6635
6647
  }
@@ -7716,12 +7728,21 @@ export class MicroscopeConfig extends jspb.Message {
7716
7728
  getIlluminator(): number;
7717
7729
  setIlluminator(value: number): void;
7718
7730
 
7731
+ getHasIlluminator(): boolean;
7732
+ setHasIlluminator(value: boolean): void;
7733
+
7719
7734
  getFilterChanger(): number;
7720
7735
  setFilterChanger(value: number): void;
7721
7736
 
7737
+ getHasFilterChanger(): boolean;
7738
+ setHasFilterChanger(value: boolean): void;
7739
+
7722
7740
  getObjectiveChanger(): number;
7723
7741
  setObjectiveChanger(value: number): void;
7724
7742
 
7743
+ getHasObjectiveChanger(): boolean;
7744
+ setHasObjectiveChanger(value: boolean): void;
7745
+
7725
7746
  hasFocusAxis(): boolean;
7726
7747
  clearFocusAxis(): void;
7727
7748
  getFocusAxis(): AxisAddress | undefined;
@@ -7750,8 +7771,11 @@ export class MicroscopeConfig extends jspb.Message {
7750
7771
  export namespace MicroscopeConfig {
7751
7772
  export type AsObject = {
7752
7773
  illuminator: number,
7774
+ hasIlluminator: boolean,
7753
7775
  filterChanger: number,
7776
+ hasFilterChanger: boolean,
7754
7777
  objectiveChanger: number,
7778
+ hasObjectiveChanger: boolean,
7755
7779
  focusAxis?: AxisAddress.AsObject,
7756
7780
  xAxis?: AxisAddress.AsObject,
7757
7781
  yAxis?: AxisAddress.AsObject,