"projects/common/components/ui-elements/video.component.ts" did not exist on "cb1c24186eb02c4d944fd332255d9e1fe4492bf5"
Newer
Older
export abstract class CanvasElementComponent implements OnInit {
elementModel!: UnitUIElement;
style!: Record<string, string>;
updateStyle(newProperties: Record<string, string> = {}): void {
width: `${this.elementModel.width}px`,
height: `${this.elementModel.height}px`,
'background-color': this.elementModel.backgroundColor,
color: this.elementModel.fontColor,
'font-family': this.elementModel.font,
'font-size': `${this.elementModel.fontSize}px`,
'font-weight': this.elementModel.bold ? 'bold' : '',
'font-style': this.elementModel.italic ? 'italic' : '',
'text-decoration': this.elementModel.underline ? 'underline' : '',
...this.style,
...newProperties