# PlacedPath

A path placed on the screen by [`placePath`](https://docs.mapcairn.com/api/core/placePath.md).

This is an interface exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import type { PlacedPath } from "@mapcairn/core";
 
interface PlacedPath
```

## Properties

### closed

```ts
readonly closed: boolean;
```

Whether the path joins its last position back to its first.

### pixels

```ts
readonly pixels: readonly PixelPoint[];
```

The path on the screen, with the extra points of any curve.

### vertices

```ts
readonly vertices: readonly number[];
```

The index in `pixels` of each position the path was given, in order.

### visible

```ts
readonly visible: readonly boolean[];
```

Whether each pixel is on the side of the map the person can see.

### whole

```ts
readonly whole: boolean;
```

True when every pixel is visible (always, on a flat map).

## See also

- [`PixelPoint`](https://docs.mapcairn.com/api/core/PixelPoint.md)

Source: [packages/core/src/globe/placement.ts:30](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/globe/placement.ts#L30)
