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

[player] Implement `getSchemerData` for all TextElement

parent d2e5e5ee
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ import { ElementFactory } from 'common/util/element.factory'; ...@@ -2,7 +2,7 @@ import { ElementFactory } from 'common/util/element.factory';
import { import {
BasicStyles, BasicStyles,
PositionedUIElement, PositionedUIElement,
PositionProperties, PositionProperties, SchemerData, SchemerValue,
UIElement UIElement
} from 'common/models/elements/element'; } from 'common/models/elements/element';
import { Type } from '@angular/core'; import { Type } from '@angular/core';
...@@ -33,6 +33,28 @@ export class TextElement extends UIElement implements PositionedUIElement { ...@@ -33,6 +33,28 @@ export class TextElement extends UIElement implements PositionedUIElement {
}; };
} }
isHighlightable(): boolean {
return this.highlightableYellow ||
this.highlightableTurquoise ||
this.highlightableOrange;
}
hasSchemerData(): boolean {
return this.isHighlightable();
}
getSchemerData(): SchemerData {
return {
id: this.id,
type: 'string',
format: 'coloredSelectionRange',
multiple: true,
nullable: false,
values: [],
valuesComplete: false
};
}
getComponentFactory(): Type<ElementComponent> { getComponentFactory(): Type<ElementComponent> {
return TextComponent; return TextComponent;
} }
......
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