Skip to main content

visibleRuns

The parts of a placed path to draw as lines, each with at least two points: the runs of consecutive visible points, so a line that goes over the horizon of a globe stops there instead of cutting across the disc. A closed path that is wholly visible comes back as one run that ends where it began; one that is partly hidden wraps round its closing segment.

This is a function exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { visibleRuns } from "@mapcairn/core";

function visibleRuns(path: PlacedPath): PixelPoint[][];

Parameters​

  • path (PlacedPath)

Returns​

PixelPoint[][]

See also​

Source: packages/core/src/globe/placement.ts:157