The Snippet.rotate() method allows you to scale a snippet. Under the hood, it sets the data-rotate property.
Snippet.rotate()
data-rotate
Snippet snippet.rotate(rotation, overwrite=true)
This method is chainable as it returns the Snippet object
Snippet