I generated svg path data in the form of a string inside motifPathData, and then
motifPath.pathData = motifPathData.toString(); motifPath.stroke = new Color("red"); motifPath.strokeWidth = 3; selection.insertionParent.addChild(motifPath);
The console.log(motifPathData) is
M 1433.87109375 113.73046875 L 1367.62109375 113.7304687538.249455333812705 L 1433.87109375 151.9799240876127 L 1500.12109375 190.2293794214254 L 1566.37109375 228.4788347552381 L 1632.62109375 266.7282900890508 L 1566.37109375 304.9777454228635 L 1632.62109375 343.2272007566762 L 1566.37109375 381.4766560904889 L 1632.62109375 419.7261114243016 L 1566.37109375 457.9755667581143 L 1632.62109375 496.22502209192703 L 1566.37109375 534.4744774257397 L 1632.62109375 572.7239327595523 L 1566.37109375 610.973388093365 L 1500.12109375 649.2228434271776 L 1566.37109375 687.4722987609903 L 1500.12109375 725.7217540948029 L 1433.87109375 763.9712094286156 L 1367.62109375 802.2206647624282 L 1301.37109375 840.4701200962409 L 1367.62109375 878.7195754300535
Doesn’t render anything. I can figure out why, it looks to be valid data for svg.