# PathData
Represents a bezier path composed of multiple points.

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

## PathData interface

Represents a bezier path composed of multiple points.

**Signature:**

```typescript
interface PathData
```

## Remarks

PathData defines a vector shape path that can be either open or closed. When `closed` is true, the path automatically connects the last point back to the first. Paths require at least 2 points for a line.

## Example

```ts
const trianglePath: PathData = {
  points: [
    { vertex: { x: 0, y: 0 }, inTan: { x: 0, y: 0 }, outTan: { x: 0, y: 0 } },
    { vertex: { x: 100, y: 0 }, inTan: { x: 0, y: 0 }, outTan: { x: 0, y: 0 } },
    { vertex: { x: 50, y: 100 }, inTan: { x: 0, y: 0 }, outTan: { x: 0, y: 0 } },
  ],
  closed: true,
};
```

## Properties

<table>
  <thead>
    <tr>
      <th>
        Property
      </th>

      <th>
        Modifiers
      </th>

      <th>
        Type
      </th>

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

  <tbody>
    <tr>
      <td>
        [closed](/en/creator-api/values/path-data/closed)
      </td>

      <td>
        `readonly`
      </td>

      <td>
        boolean
      </td>

      <td>
        Whether the path is closed (connects last point to first)
      </td>
    </tr>

    <tr>
      <td>
        [points](/en/creator-api/values/path-data/points)
      </td>

      <td>
        `readonly`
      </td>

      <td>
        [PathPoint](/en/creator-api/values/path-point)\[]
      </td>

      <td>
        Array of path points defining the bezier curve
      </td>
    </tr>
  </tbody>
</table>
