yWorks / svg2pdf.js

A javascript-only SVG to PDF conversion utility that runs in the browser. Brought to you by yWorks - the diagramming experts
MIT License
646 stars 96 forks source link

The transform-origin attribute of svg is rendered into pdf, which is not visible #221

Closed LBJDJW closed 11 months ago

LBJDJW commented 1 year ago
svg.append('text')
.attr('font-size', 9)
.attr('class', 'yTitle')
.attr('x', d.projected.x - 100) 
.attr('y', d.projected.y)
    .attr('transform-origin', `${d.projected.x - 50} ${d.projected.y}`)
    .attr('transform',: 'rotate(-90) translate(0, 0)',
.text(titles[1]);
HackbrettXXX commented 11 months ago

Please provide a proper issue description and steps to reproduce. Feel free to reopen.