When adding text to your pattern you might need to add a special type of text: whitespace.
Whitespace in patterns can either be line breaks, or spaces. We’ll show you have to handle both below:
You can control the lineheight by setting the
Adding a single space between two words is not a problem. But what if you want to add a couple of spaces in a row? Both in HTML and SVG they will get collapsed into a single space.
To get around that, use
points.demo = new Point(0, 0)