PlacedPath
A path placed on the screen by placePath.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { PlacedPath } from "@mapcairn/core";
interface PlacedPath
Properties
closed
readonly closed: boolean;
Whether the path joins its last position back to its first.
pixels
readonly pixels: readonly PixelPoint[];
The path on the screen, with the extra points of any curve.
vertices
readonly vertices: readonly number[];
The index in pixels of each position the path was given, in order.
visible
readonly visible: readonly boolean[];
Whether each pixel is on the side of the map the person can see.
whole
readonly whole: boolean;
True when every pixel is visible (always, on a flat map).