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

    Parameters

    value
    The rotated angle of the camera 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 camera shape (unit in degree).
    Example
    var shape = sheet.shapes.addCameraShape("shape1", 'Sheet1!A1:A8', 100, 50, 100, 150);
    var n = shape.rotate();
    shape.rotate(n + 30);
    See Also