Use this:
Caman("#canvasId", function () {
this.rotate(90);
this.render();
});
Rotate is a Plugin.
You have to compile Caman.js with the plugin since its all written in coffeescript .
The plugins you will find here: https://github.com/meltingice/CamanJS-Plugins
For how to include them have a look at the cakefile
After that is done it will work as stephan1001 wrote.
To outline in more detail on how to get the rotate plugin (and other plugins for Camanjs) included in Camanjs I followed these steps:
Now you will have the plugin included into your caman plugin.
Note: I'm sure there is a better way to do this, however, this worked for me and I couldn't find any other information out there outlining these steps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.