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 ...@@ -35,15 +35,17 @@ export class HotspotImageElement extends InputElement implements PositionedUIEle
private getAnswerSchemeValues(): AnswerSchemeValue[] { private getAnswerSchemeValues(): AnswerSchemeValue[] {
return this.value return this.value
.map((hotspot, index) => ({ .map(hotspot => (
value: (index + 1).toString(), [{
label: `top: ${hotspot.top}, value: 'true',
left: ${hotspot.left}, // eslint-disable-next-line max-len
height: ${hotspot.height}, label: `Gefüllt top: ${hotspot.top}, left: ${hotspot.left}, height: ${hotspot.height}, width: ${hotspot.width}, shape: ${hotspot.shape}, value: ${hotspot.value}`
width: ${hotspot.width}, }, {
shape: ${hotspot.shape}, value: 'false',
value: ${hotspot.value}` // 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> { 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