function svgStrToTspan(str, x) {
	let c = 0;
	return {
		s: str.split('\n')
			.map((t, i) => {
				c = i;
				return `<tspan x="${x}" dy="${i === 0 ? 0.41 : 1}em" ${t.length === 0 ? 'visibility="hidden"' : ''}>${t.length === 0 ? '.' : escapeHtml(t).replaceAll(' ', '&nbsp;')}</tspan>`;
			}).join(''),
		c
	};
}
create multiline tspan markup
@param {string} str
@param {number} x
@returns { {s:string, c:number} }