Add new measurement type for diameter of frame

This commit is contained in:
Joshua Ramon Enslin 2025-03-19 15:20:46 +01:00
parent 04c378675c
commit 1403f75447
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
2 changed files with 6 additions and 1 deletions

2
l18n

@ -1 +1 @@
Subproject commit d00a827babf2de5fd23cef828ad48e47319af40b Subproject commit 63f12e097f55b940f6110d1c7c745a47c1d0e0d5

View File

@ -37,6 +37,7 @@ enum MDMeasurementType implements MDValueEnumInterface, JsonSerializable {
case length_frame; case length_frame;
case height_frame; case height_frame;
case width_frame; case width_frame;
case diameter_frame;
case length_min; case length_min;
case length_max; case length_max;
case height_min; case height_min;
@ -85,6 +86,7 @@ enum MDMeasurementType implements MDValueEnumInterface, JsonSerializable {
'width_max' => self::width_max, 'width_max' => self::width_max,
'diameter_min' => self::diameter_min, 'diameter_min' => self::diameter_min,
'diameter_max' => self::diameter_max, 'diameter_max' => self::diameter_max,
'diameter_frame' => self::diameter_frame,
default => throw new MDpageParameterNotFromListException("Unknown measurement type"), default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
}; };
@ -129,6 +131,7 @@ enum MDMeasurementType implements MDValueEnumInterface, JsonSerializable {
27 => self::width_max, 27 => self::width_max,
28 => self::diameter_min, 28 => self::diameter_min,
29 => self::diameter_max, 29 => self::diameter_max,
30 => self::diameter_frame,
default => throw new MDpageParameterNotFromListException("Unknown measurement type"), default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
}; };
@ -193,6 +196,7 @@ enum MDMeasurementType implements MDValueEnumInterface, JsonSerializable {
self::width_max => self::width, self::width_max => self::width,
self::diameter_min => self::diameter, self::diameter_min => self::diameter,
self::diameter_max => self::diameter, self::diameter_max => self::diameter,
self::diameter_frame => self::diameter,
# default => throw new MDpageParameterNotFromListException("Unknown measurement type"), # default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
}; };
@ -235,6 +239,7 @@ enum MDMeasurementType implements MDValueEnumInterface, JsonSerializable {
self::width_max => 27, self::width_max => 27,
self::diameter_min => 28, self::diameter_min => 28,
self::diameter_max => 29, self::diameter_max => 29,
self::diameter_frame => 30,
# default => throw new MDpageParameterNotFromListException("Unknown measurement type"), # default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
}; };