# ShapeMixin.toPathData
Returns a path data representation of this shape.

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

## ShapeMixin.toPathData() method

Returns a path data representation of this shape.

**Signature:**

```typescript
toPathData(frame?: number): PathData;
```

## Parameters

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

      <th>
        Type
      </th>

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

  <tbody>
    <tr>
      <td>
        frame
      </td>

      <td>
        number
      </td>

      <td>
        _(Optional)_ Optional frame number to get the path data from. Defaults to current frame.
      </td>
    </tr>
  </tbody>
</table>

**Returns:**

[PathData](../../values/path-data)

The path data representation of this shape
