Skip to content

astro.Interface.CodexRegion

github-actions[bot] edited this page Sep 20, 2026 · 11 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:107

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


bounds

readonly bounds: CodexRegionBounds

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

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


cellCount

readonly cellCount: number

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

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


centroid

readonly centroid: GalacticPlanePosition

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

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


grayscale

readonly grayscale: number

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

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:97

Human-readable region name, e.g. "Inner Orion Spur". This is the canonical English name. For a player's own language, pass the id to getCodexRegionName in i18n/codex-regions, which reads a separate catalogue.

TypeScript

Guides
astro
Classes (1)
ProceduralSystem

Properties

Accessors

Methods

Interfaces (28)
Type Aliases (6)
Variables (22)
Functions (57)
Subpath modules (3)
commodities
Interfaces (1)
Type Aliases (1)
Variables (3)
Functions (3)
equipment
Interfaces (18)
Type Aliases (9)
Variables (4)
Functions (14)
Subpath modules (2)
galaxy-map
Interfaces (1)
Variables (1)
Functions (2)
i18n
Interfaces (1)
Type Aliases (1)
Functions (23)
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 (86)
Subpath modules (8)

Clone this wiki locally