Fix compilation

This commit is contained in:
Paulo Gustavo Veiga 2023-01-05 22:03:52 -08:00
parent 9ce2c56c34
commit 44c0a9ee9c

View File

@ -442,7 +442,7 @@ abstract class Topic extends NodeGraph {
getFontColor(): string { getFontColor(): string {
const model = this.getModel(); const model = this.getModel();
let result = model.getFontColor(); let result = model.getFontColor();
if (!$defined(result)) { if (!result) {
const font = TopicStyle.defaultFontStyle(this); const font = TopicStyle.defaultFontStyle(this);
result = font.color; result = font.color;
} }
@ -452,7 +452,7 @@ abstract class Topic extends NodeGraph {
getFontStyle(): string { getFontStyle(): string {
const model = this.getModel(); const model = this.getModel();
let result = model.getFontStyle(); let result = model.getFontStyle();
if (!$defined(result)) { if (!result) {
const font = TopicStyle.defaultFontStyle(this); const font = TopicStyle.defaultFontStyle(this);
result = font.style; result = font.style;
} }
@ -462,7 +462,7 @@ abstract class Topic extends NodeGraph {
getFontSize(): number { getFontSize(): number {
const model = this.getModel(); const model = this.getModel();
let result = model.getFontSize(); let result = model.getFontSize();
if (!$defined(result)) { if (!result) {
const font = TopicStyle.defaultFontStyle(this); const font = TopicStyle.defaultFontStyle(this);
result = font.size; result = font.size;
} }