Fix compilation.

This commit is contained in:
Paulo Gustavo Veiga 2023-01-05 19:10:40 -08:00
parent c06555bb48
commit 9ce2c56c34
2 changed files with 7 additions and 7 deletions

View File

@ -254,11 +254,11 @@ class FreemindExporter extends Exporter {
}
private addFontNode(freemindNode: FreeminNode, mindmapTopic: INodeModel): void {
const fontFamily: string = mindmapTopic.getFontFamily();
const fontSize: number = mindmapTopic.getFontSize();
const fontColor: string = mindmapTopic.getFontColor();
const fontFamily: string | undefined = mindmapTopic.getFontFamily();
const fontSize: number | undefined = mindmapTopic.getFontSize();
const fontColor: string | undefined = mindmapTopic.getFontColor();
const fontWeigth: string | number | boolean | undefined = mindmapTopic.getFontWeight();
const fontStyle: string = mindmapTopic.getFontStyle();
const fontStyle: string | undefined = mindmapTopic.getFontStyle();
if (fontFamily || fontSize || fontColor || fontWeigth || fontStyle) {
const font: Font = this.objectFactory.createFont();

View File

@ -159,7 +159,7 @@ abstract class INodeModel {
this.putProperty('fontFamily', fontFamily);
}
getFontFamily(): string {
getFontFamily(): string | undefined {
return this.getProperty('fontFamily') as string;
}
@ -167,11 +167,11 @@ abstract class INodeModel {
this.putProperty('fontStyle', fontStyle);
}
getFontStyle(): FontStyleType {
getFontStyle(): FontStyleType | undefined {
return this.getProperty('fontStyle') as FontStyleType;
}
setFontWeight(weight: FontWeightType) {
setFontWeight(weight: FontWeightType): void {
this.putProperty('fontWeight', weight);
}