Class Rotation

Constructors

Methods

Constructors

  • Rotates shapes and background

    Parameters

    • board: Board

      The [[Board]]

    Returns Rotation

    Example

    editor.rotation.transform(30)
    

    Example

    editor.rotation.straighten(-30)
    

Methods

  • Rotates the board with its shapes around their center without transforming

    Parameters

    • theta: number

      The rotation angle

    Returns void

    Example

    editor.rotation.straighten(30)
    

    Example

    editor.rotation.straighten(-50)
    
  • Rotates the board with its shapes around their center with scaling and transforming

    Parameters

    • theta: number

      The rotation angle

    Returns void

    Example

    editor.rotation.transform(30)