Skip to content

VariantSelection

Defined in: src/types/index.ts:233

Result of mapping an arbitrary guide edge mask to a canonical asset and rotation.

assetId: string

Defined in: src/types/index.ts:239

Asset id that should be rendered.


canonicalMask: number

Defined in: src/types/index.ts:243

Canonical edge bitmask represented by the selected asset.


family: "coast" | "road" | "river"

Defined in: src/types/index.ts:235

Variant family being selected.


inputMask: number

Defined in: src/types/index.ts:241

User-requested edge bitmask before canonicalization.


label: string

Defined in: src/types/index.ts:237

Guide label such as A, B, or crossing_A.


rotationRadians: number

Defined in: src/types/index.ts:247

Rotation in radians for renderers.


rotationSteps: number

Defined in: src/types/index.ts:245

Clockwise 60-degree rotation steps to apply.