IsParText returns true if this element serves as a parent text element to tspan elements within it. This is true if NumChildren() > 0 and Text == ""
()
| 69 | // to tspan elements within it. This is true if NumChildren() > 0 and |
| 70 | // Text == "" |
| 71 | func (g *Text) IsParText() bool { |
| 72 | return g.NumChildren() > 0 && g.Text == "" |
| 73 | } |
| 74 | |
| 75 | func (g *Text) SetNodePos(pos math32.Vector2) { |
| 76 | g.Pos = pos |
no test coverage detected