Class Flip

Constructors

Methods

Constructors

  • Lets the shapes to get flipped vertically and horizontally

    Parameters

    • board: Board

      The [[Board]]

    Returns Flip

    Example

    Flips everything in the board horizontally

    editor.board.flip.horizontal()
    

    Example

    Flips everything in the board vertically

    editor.board.flip.vertical()
    

    Example

    Flips selected shapes horizontally

    editor.board.flip.vertical(this.board.selection.shapes)
    

Methods

  • Flips the given shapes horizontally

    Parameters

    • Optional shapes: ShapeModel<Shape<ShapeConfig> | Group, ShapeConfig>[]

      List of the [[ShapeModel | Shapes]]

    Returns void

  • Flips the given shapes vertically

    Parameters

    • Optional shapes: ShapeModel<Shape<ShapeConfig> | Group, ShapeConfig>[]

      List of the [[ShapeModel | Shapes]]

    Returns void