coolbutuseless / minisvg

Create SVG documents with R
https://coolbutuseless.github.io/package/minisvg/
MIT License
31 stars 3 forks source link

matrix created twice in `stag$use` transform #10

Closed yonicd closed 4 years ago

yonicd commented 4 years ago

what is the right way to use this?

minisvg::stag$use(transform="matrix(0.07407407407407408,0,0,0.07407407407407408,0,0)" , href="#h")
# <use href="#h" transform="matrix(0.07407407407407408,0,0,0.07407407407407408,0,0) matrix(0.07407407407407408,0,0,0.07407407407407408,0,0)" />
coolbutuseless commented 4 years ago

Looks like a bug in my "special" handling for transform attributes.

> stag$rect(transform = 3, a = 3)
<rect a="3" transform="3 3" />
coolbutuseless commented 4 years ago

Fix applied

> stag$rect(transform = 3, a = 3)
<rect a="3" transform="3" />