Fix image topic visibility issue when shape is defined.

This commit is contained in:
Paulo Gustavo Veiga 2022-02-23 09:38:10 -08:00
parent eb890b4b4f
commit f95aef2ce6

View File

@ -1012,6 +1012,10 @@ abstract class Topic extends NodeGraph {
}
}
// Hide inner shape ...
this.getInnerShape().setVisibility(value);
// Hide text shape ...
const textShape = this.getTextShape();
textShape.setVisibility(this.getShapeType() !== TopicShape.IMAGE ? value : false);
}