Rendering the lines nodes and text elements