SpreadJS Documentation
rotate Method
GC.Spread.Sheets.Shapes Namespace > Shape type : rotate Method
The rotated angle of the shape (unit in degree) specified by a number or formula (starts with =) can get a number value.
Gets or sets the rotated angle of the shape (unit in degree).
Syntax
var instance = new GC.Spread.Sheets.Shapes.Shape(worksheet, name, autoShapeTypeOrModel, left, top, width, height);
var returnValue; // Type: any
returnValue = instance.rotate(value);
function rotate( 
   value : undefined
) : any;

Parameters

value
The rotated angle of the shape (unit in degree) specified by a number or formula (starts with =) can get a number value.

Return Value

If no value is set, returns the rotated angle of the shape (unit in degree).
Example
var heart = sheet.shapes.add("Shape1", GC.Spread.Sheets.Shapes.AutoShapeType.heart, 100, 60, 200, 160);
var n = heart.rotate();
heart.rotate(n + 30);
See Also

Reference

Shape type