# LayerMixin.flip
Flips this layer horizontally or vertically

{/* Do not edit this file. It is automatically generated by API Documenter. */}

## LayerMixin.flip() method

Flips this layer horizontally or vertically

**Signature:**

```typescript
flip(type: FlipDirection): void;
```

## Parameters

<table>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        type
      </td>

      <td>
        [FlipDirection](../../types/flip-direction)
      </td>

      <td>
        The flip direction
      </td>
    </tr>
  </tbody>
</table>

**Returns:**

void

## Example

```ts
// Flip layer horizontally
layer.flip("horizontal");
```
