Closed dmi3kno closed 4 years ago
I am looking at the Transformations vignette and I don't actually see multiple transformations applied, as the code suggests:
heart_shadow <- stag$g( fill = 'grey', svg_prop$transform$rotate(-10, 50, 100), svg_prop$transform$translate(-36, 45.5), svg_prop$transform$skewX(40), svg_prop$transform$scale(1, 0.5), heart_shape )
This should have translated to
<g fill="grey" transform="rotate(-10 50 100) translate(-36 45.5) skewX(40) scale(1 0.5)">
While it only shows
<g fill="grey" transform="scale(1 0.5)">
It is actually pretty useful feature to be able to combine transforms and I would like to use it in other stags as well, such as in $use
$use
Definite bug.
This used to work as documented. Will investigate.
I am looking at the Transformations vignette and I don't actually see multiple transformations applied, as the code suggests:
This should have translated to
While it only shows
It is actually pretty useful feature to be able to combine transforms and I would like to use it in other stags as well, such as in
$use