src/coordinates
declarative-hex-worlds / src/coordinates
src/coordinates
src/coordinates/ — hex coordinate algebra, world-space projection, grid
construction, and board layout.
Public surface re-exported from the umbrella declarative-hex-worlds.
Cross-domain consumers MUST import from this barrel — never reach into a
sibling file via 'declarative-hex-worlds/coordinates/grid'.
Sub-modules:
./coordinates— pure hex axial-coordinate algebra (parse/normalize/distance/range/neighbor/edges)./grid— honeycomb-grid wrappers, axial↔world conversion, KayKit tile dimensions./projection— placement projection (recipe + plan → world-space tile/placement records)./layout— board layout generation (seeded procedural shapes, tile distribution rules)
References
analyzeGameboardLayoutFill
Re-exports analyzeGameboardLayoutFill
appendGameboardLayoutPlacementsToPlan
Re-exports appendGameboardLayoutPlacementsToPlan
axialToWorld
Re-exports axialToWorld
BuiltInGameboardLayoutArchetypeId
Re-exports BuiltInGameboardLayoutArchetypeId
containsHex
Re-exports containsHex
coordinatesForShape
Re-exports coordinatesForShape
createGameboardCoordinateSystem
Re-exports createGameboardCoordinateSystem
createGameboardGrid
Re-exports createGameboardGrid
createGameboardLayoutArchetypeRegistry
Re-exports createGameboardLayoutArchetypeRegistry
CreateGameboardLayoutArchetypeRegistryOptions
Re-exports CreateGameboardLayoutArchetypeRegistryOptions
createGameboardLayoutFillPlacements
Re-exports createGameboardLayoutFillPlacements
createGameboardLayoutPlacements
Re-exports createGameboardLayoutPlacements
createHexagonGameboardGrid
Re-exports createHexagonGameboardGrid
createRectangleGameboardGrid
Re-exports createRectangleGameboardGrid
createSpawnLocations
Re-exports createSpawnLocations
DEFAULT_HEX_GEOMETRY
Re-exports DEFAULT_HEX_GEOMETRY
DEFAULT_HEX_ORIENTATION
Re-exports DEFAULT_HEX_ORIENTATION
edgeBetween
Re-exports edgeBetween
findHexPath
Re-exports findHexPath
GAMEBOARD_LAYOUT_ARCHETYPES
Re-exports GAMEBOARD_LAYOUT_ARCHETYPES
GameboardCoordinateSystem
Re-exports GameboardCoordinateSystem
GameboardCoordinateSystemOptions
Re-exports GameboardCoordinateSystemOptions
GameboardGridOptions
Re-exports GameboardGridOptions
GameboardLayoutArchetype
Re-exports GameboardLayoutArchetype
GameboardLayoutArchetypeId
Re-exports GameboardLayoutArchetypeId
GameboardLayoutArchetypeInput
Re-exports GameboardLayoutArchetypeInput
GameboardLayoutArchetypeRegistry
Re-exports GameboardLayoutArchetypeRegistry
GameboardLayoutArchetypeRegistryInput
Re-exports GameboardLayoutArchetypeRegistryInput
GameboardLayoutCriteria
Re-exports GameboardLayoutCriteria
GameboardLayoutFillAnalysis
Re-exports GameboardLayoutFillAnalysis
GameboardLayoutFillOptions
Re-exports GameboardLayoutFillOptions
GameboardLayoutFillRule
Re-exports GameboardLayoutFillRule
GameboardLayoutFillRuleAnalysis
Re-exports GameboardLayoutFillRuleAnalysis
GameboardLayoutFootprintInput
Re-exports GameboardLayoutFootprintInput
GameboardLayoutPlacementDiagnostics
Re-exports GameboardLayoutPlacementDiagnostics
GameboardLayoutPlacementOptions
Re-exports GameboardLayoutPlacementOptions
GameboardLayoutPreference
Re-exports GameboardLayoutPreference
GameboardLayoutRejectedSite
Re-exports GameboardLayoutRejectedSite
GameboardLayoutSite
Re-exports GameboardLayoutSite
GameboardLayoutSiteInspection
Re-exports GameboardLayoutSiteInspection
GameboardLayoutSiteRejection
Re-exports GameboardLayoutSiteRejection
GameboardLayoutSiteRejectionCode
Re-exports GameboardLayoutSiteRejectionCode
HEX_DIRECTIONS
Re-exports HEX_DIRECTIONS
HexagonGridOptions
Re-exports HexagonGridOptions
hexDistance
Re-exports hexDistance
HexGeometry
Re-exports HexGeometry
hexKey
Re-exports hexKey
hexLine
Re-exports hexLine
HexOrientation
Re-exports HexOrientation
HexPathOptions
Re-exports HexPathOptions
HexPathResult
Re-exports HexPathResult
hexRange
Re-exports hexRange
hexRing
Re-exports hexRing
inspectGameboardLayoutSites
Re-exports inspectGameboardLayoutSites
InspectGameboardLayoutSitesOptions
Re-exports InspectGameboardLayoutSitesOptions
KAYKIT_ELEVATION_STEP
Re-exports KAYKIT_ELEVATION_STEP
KAYKIT_HEX_DEPTH
Re-exports KAYKIT_HEX_DEPTH
KAYKIT_HEX_GEOMETRY
Re-exports KAYKIT_HEX_GEOMETRY
KAYKIT_HEX_ROW_SPACING
Re-exports KAYKIT_HEX_ROW_SPACING
KAYKIT_HEX_SIDE
Re-exports KAYKIT_HEX_SIDE
KAYKIT_HEX_WIDTH
Re-exports KAYKIT_HEX_WIDTH
KayKitGameboardGrid
Re-exports KayKitGameboardGrid
KayKitHex
Re-exports KayKitHex
minHeapCreate
Re-exports minHeapCreate
minHeapPop
Re-exports minHeapPop
minHeapPush
Re-exports minHeapPush
neighbor
Re-exports neighbor
neighbors
Re-exports neighbors
normalizeGameboardLayoutArchetypeRegistry
Re-exports normalizeGameboardLayoutArchetypeRegistry
normalizeHexRotationSteps
Re-exports normalizeHexRotationSteps
oppositeEdge
Re-exports oppositeEdge
parseHexKey
Re-exports parseHexKey
ProjectWorldOptions
Re-exports ProjectWorldOptions
projectWorldToGameboardPlan
Re-exports projectWorldToGameboardPlan
readDecomposedTileSpecs
Re-exports readDecomposedTileSpecs
readValidationGameboardPlanFromWorld
Re-exports readValidationGameboardPlanFromWorld
RectangleGridOptions
Re-exports RectangleGridOptions
ResolvedGameboardLayoutFootprint
Re-exports ResolvedGameboardLayoutFootprint
resolveGameboardLayoutArchetype
Re-exports resolveGameboardLayoutArchetype
resolveGameboardLayoutCriteria
Re-exports resolveGameboardLayoutCriteria
rowSpacingForGeometry
Re-exports rowSpacingForGeometry
selectGameboardLayoutSites
Re-exports selectGameboardLayoutSites
SelectGameboardLayoutSitesOptions
Re-exports SelectGameboardLayoutSitesOptions
selectSpawnCoordinates
Re-exports selectSpawnCoordinates
SpawnCoordinateOptions
Re-exports SpawnCoordinateOptions
spawnGameboardLayoutFill
Re-exports spawnGameboardLayoutFill
spawnGameboardLayoutPlacements
Re-exports spawnGameboardLayoutPlacements
SpawnLocation
Re-exports SpawnLocation
SpawnLocationOptions
Re-exports SpawnLocationOptions
tryParseHexKey
Re-exports tryParseHexKey
worldToAxial
Re-exports worldToAxial
