Skip to content

astro.Interface.CodexRegion

github-actions[bot] edited this page Aug 26, 2026 · 74 revisions

@elite-dangerous-almanac/core / astro / CodexRegion

Interface: CodexRegion

Defined in: src/astro/codex-region.ts:89

A single Elite Dangerous galactic codex region.

Remarks

Footprint fields (CodexRegion.areaLy2, CodexRegion.bounds, CodexRegion.centroid) are approximations derived from the ≈49.35 ly region grid, not survey-precise figures.

Example

import { getCodexRegionByName } from '@elite-dangerous-almanac/core/astro/codex-region';
import type { CodexRegion } from '@elite-dangerous-almanac/core/astro/codex-region';

const innerOrionSpur: CodexRegion | null = getCodexRegionByName('Inner Orion Spur');

Properties

areaLy2

readonly areaLy2: number

Defined in: src/astro/codex-region.ts:103

Approximate footprint area on the galactic plane, in square light-years.


bounds

readonly bounds: CodexRegionBounds

Defined in: src/astro/codex-region.ts:105

Axis-aligned bounds on the galactic plane, in light-years.


cellCount

readonly cellCount: number

Defined in: src/astro/codex-region.ts:101

Number of grid cells the region occupies (each cell ≈49.35 ly square).


centroid

readonly centroid: GalacticPlanePosition

Defined in: src/astro/codex-region.ts:107

Cell-weighted centroid on the galactic plane, in light-years.


grayscale

readonly grayscale: number

Defined in: src/astro/codex-region.ts:99

Grayscale value this region has in the upstream RegionMap.png (0xA8 for region 1, decreasing by 4 per id). Useful when cross-referencing the source image.


id

readonly id: number

Defined in: src/astro/codex-region.ts:91

Region id, 1–42. Stable across releases; matches the codex region ordering.


name

readonly name: string

Defined in: src/astro/codex-region.ts:93

Human-readable region name, e.g. "Inner Orion Spur".

API

Guides
astro
Classes (1)
ProceduralSystem

Properties

Accessors

Methods

Interfaces (16)
Type Aliases (3)
Variables (11)
Functions (37)
Subpath modules (3)
commodities
Interfaces (1)
Type Aliases (1)
Variables (3)
Functions (3)
equipment
Interfaces (6)
Type Aliases (8)
Variables (3)
Functions (10)
Subpath modules (2)
i18n
Interfaces (1)
Type Aliases (1)
Functions (17)
materials
Enumerations (2)
Interfaces (2)
Type Aliases (2)
Variables (9)
Functions (9)
ships
Classes (3)
BuildMetrics

Methods

LoadoutEditError

Constructors

Properties

Methods

ShipLoadout

Accessors

Methods

Interfaces (125)
Type Aliases (44)
Variables (10)
Functions (85)
Subpath modules (8)

Clone this wiki locally