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

Add PositionProperties to ImageElement

parent 50304be3
No related branches found
No related tags found
No related merge requests found
import { UIElement } from '../../models/uI-element';
import { PositionedElement, PositionProperties, UIElement } from '../../models/uI-element';
import { initPositionedElement } from '../../util/unit-interface-initializer';
export class ImageElement extends UIElement {
export class ImageElement extends UIElement implements PositionedElement {
src: string = '';
magnifier: boolean = false;
magnifierSize: number = 100;
magnifierZoom: number = 1.5;
magnifierUsed: boolean = false;
positionProps: PositionProperties;
constructor(serializedElement: UIElement) {
super(serializedElement);
Object.assign(this, serializedElement);
this.positionProps = initPositionedElement(serializedElement);
this.height = serializedElement.height || 100;
}
}
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