Skip to content

FingerprintLayout

Defined in: packages/fingerprint/src/types.ts:113

What layoutFingerprint returns: everything a renderer needs, in a fixed frame. Core’s Profile with its marks placed as nodes, and the ridges they sit on.

encoding: Required<Encoding>

Defined in: packages/core/src/types.ts:152

Every property resolved to a dimension id, or null when off.

Profile.encoding


form: FingerprintForm

Defined in: packages/fingerprint/src/types.ts:123

The form actually drawn, every field resolved.


height: number

Defined in: packages/fingerprint/src/types.ts:117

The fixed coordinate frame’s height.


itemCount: number

Defined in: packages/core/src/types.ts:162

All the items, whatever itemsPerMark.

Profile.itemCount


itemsPerMark: number

Defined in: packages/core/src/types.ts:160

1 unless the item count exceeded maxMarks. Say so on screen when it is not 1.

Profile.itemsPerMark


legends: LegendGroup[]

Defined in: packages/core/src/types.ts:156

One group per encoded dimension: colour first, then shape, lightness and arrangement.

Profile.legends


nodes: FingerprintNode[]

Defined in: packages/fingerprint/src/types.ts:119

The marks, laid along the ridges from the core outwards.


ridges: (readonly [number, number])[][]

Defined in: packages/fingerprint/src/types.ts:121

The ridges marks sit on, core outwards, as polylines of [x, y] points, for renderers that draw them.


ridgeSpacing: number

Defined in: packages/fingerprint/src/types.ts:125

Centre-to-centre distance between neighbouring ridges.


warnings: string[]

Defined in: packages/core/src/types.ts:158

Encodings that will be hard to read, such as more colours than stay distinguishable.

Profile.warnings


width: number

Defined in: packages/fingerprint/src/types.ts:115

The fixed coordinate frame’s width; resizing scales it, never changes it.