在这里,我想在svg图像的文本路径上换行:
代码:
textPath = 'M' + textPathStartX + ',' + textPathStartY + // move to starting point
'A' + textPathR + ',' + textPathR + ' ' + // draw arc with radius x, radius y
'0' + ' ' + // x-axis rotation
'0,' + sweep + ' ' + // large-arc flag, sweep flag
textPathEndX + ',' + textPathEndY;