Skip to content
Snippets Groups Projects
Commit ef327727 authored by jojohoch's avatar jojohoch
Browse files

Change AnswerScheme for HotspotImageElement element

parent 77a544c8
No related branches found
No related tags found
No related merge requests found
......@@ -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> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment