diff --git a/projects/common/models/elements/input-elements/hotspot-image.ts b/projects/common/models/elements/input-elements/hotspot-image.ts index 57cb50b53585746c5e05a61cad229edd583a2a7c..606fd0e4a6f144091e0d3f9973dd845a0d0a9c13 100644 --- a/projects/common/models/elements/input-elements/hotspot-image.ts +++ b/projects/common/models/elements/input-elements/hotspot-image.ts @@ -35,15 +35,17 @@ export class HotspotImageElement extends InputElement implements PositionedUIEle private getAnswerSchemeValues(): AnswerSchemeValue[] { return this.value - .map((hotspot, index) => ({ - value: (index + 1).toString(), - label: `top: ${hotspot.top}, - left: ${hotspot.left}, - height: ${hotspot.height}, - width: ${hotspot.width}, - shape: ${hotspot.shape}, - value: ${hotspot.value}` - })); + .map(hotspot => ( + [{ + value: 'true', + // eslint-disable-next-line max-len + label: `Gefüllt top: ${hotspot.top}, left: ${hotspot.left}, height: ${hotspot.height}, width: ${hotspot.width}, shape: ${hotspot.shape}, value: ${hotspot.value}` + }, { + value: 'false', + // eslint-disable-next-line max-len + label: `Nicht gefüllt: top: ${hotspot.top}, left: ${hotspot.left}, height: ${hotspot.height}, width: ${hotspot.width}, shape: ${hotspot.shape}, value: ${hotspot.value}` + } + ])).flat(); } getElementComponent(): Type<ElementComponent> {