mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-10 17:33:24 +01:00
Fix compilation.
This commit is contained in:
parent
c06555bb48
commit
9ce2c56c34
@ -254,11 +254,11 @@ class FreemindExporter extends Exporter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private addFontNode(freemindNode: FreeminNode, mindmapTopic: INodeModel): void {
|
private addFontNode(freemindNode: FreeminNode, mindmapTopic: INodeModel): void {
|
||||||
const fontFamily: string = mindmapTopic.getFontFamily();
|
const fontFamily: string | undefined = mindmapTopic.getFontFamily();
|
||||||
const fontSize: number = mindmapTopic.getFontSize();
|
const fontSize: number | undefined = mindmapTopic.getFontSize();
|
||||||
const fontColor: string = mindmapTopic.getFontColor();
|
const fontColor: string | undefined = mindmapTopic.getFontColor();
|
||||||
const fontWeigth: string | number | boolean | undefined = mindmapTopic.getFontWeight();
|
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) {
|
if (fontFamily || fontSize || fontColor || fontWeigth || fontStyle) {
|
||||||
const font: Font = this.objectFactory.createFont();
|
const font: Font = this.objectFactory.createFont();
|
||||||
|
@ -159,7 +159,7 @@ abstract class INodeModel {
|
|||||||
this.putProperty('fontFamily', fontFamily);
|
this.putProperty('fontFamily', fontFamily);
|
||||||
}
|
}
|
||||||
|
|
||||||
getFontFamily(): string {
|
getFontFamily(): string | undefined {
|
||||||
return this.getProperty('fontFamily') as string;
|
return this.getProperty('fontFamily') as string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -167,11 +167,11 @@ abstract class INodeModel {
|
|||||||
this.putProperty('fontStyle', fontStyle);
|
this.putProperty('fontStyle', fontStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
getFontStyle(): FontStyleType {
|
getFontStyle(): FontStyleType | undefined {
|
||||||
return this.getProperty('fontStyle') as FontStyleType;
|
return this.getProperty('fontStyle') as FontStyleType;
|
||||||
}
|
}
|
||||||
|
|
||||||
setFontWeight(weight: FontWeightType) {
|
setFontWeight(weight: FontWeightType): void {
|
||||||
this.putProperty('fontWeight', weight);
|
this.putProperty('fontWeight', weight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user