A dot grid on land that brightens where the operation is busy, and the dot lens: dots that light up and lean away under the pointer.
Part of High Command Pro. The preview and props are open to everyone; installing it needs your license key. Set up your key · Pricing
$ npx shadcn@latest add @highcommand/land-textureCopies the source into your project and pulls in what it needs (1 other item). First time? Add the registry to components.json.
The land texture: a fine dot grid on land only (the basemap's background takes the dot pattern; ocean and water draw over it, so the coastline does the dividing), brighter where the operation is busy: soft rings of brighter dots around each point, weighted by how much needs attention there (WEIGHT: at risk 1, late 1.4, a DC 1.1...).
pointsreadonly Weighted[][]Where things are and how much each weighs (WEIGHT).
<DotLens />1 propsThe dot lens: the land's dots answer the pointer.radiusnumber150The pointer's reach in CSS px.
dotTile(dot: string, ground: string | null, r?: number): ImgA PITCH px tile with one dot at its centre (2x for sharp dots): on the land colour (the background pattern), or on nothing (the bright layer).
activityRings(pts: Weighted[], zoom: number): { type: string; features: unknown[]; }The rings: three per thing (36, 72 and 120 px across at this zoom), each a little brighter for a heavier thing; overlapping rings add up, so a busy region glows in steps (the field's quantised look). It changes only when the things do (or the zoom), never per pointer move.
stepField(f: Field, v: View, ptr: { x: number; y: number; } | null, presence: number, dt: number, radius: number): booleanOne step of the field: each dot's light rises toward what the pointer gives it and otherwise fades, and its push springs toward where the pointer leans it (tile px). `ptr` is the eased pointer in CSS px (null: gone), `presence` 0..1 its strength, `radius` its reach in CSS px. Returns whether anything is still changing (a dot still brightening, fading or springing), so a still pointer over settled dots stops the repaints.
coordLabel(lng: number, lat: number): stringDegrees as the label shows them: 34.59° N 81.43° W.
dotLens(map: Map$1, colors: { dot: string; accent: string; ground?: string | undefined; }, enabled: () => boolean, radius?: number): DotLensThe lens for this map, in this theme's colours: `dot` the pattern's resting dot, `accent` the light, `ground` the land under the dots (to cover a dot's place when it moves; on a dark ground the light adds, on a light one it tints). `enabled` is read each frame (reduced motion, a hover card up). `radius` is the pointer's reach in CSS px.
newField(): FieldAn empty Field with no lit dots, for a new lens or after the grid zoom changes.
cellAt(v: View, i: number, j: number): { x: number; y: number; }Where a cell's dot sits on screen, CSS px.