Skip to content

src/core/sources/fill.js ​

Gap filling: estimate what a catalogue row lacks from what it has, with a named relation for every estimate. No DOM. The relations and their citations are in src/core/relations.js.

fillGaps(v) never overwrites a catalogue value. It returns { field: { value, rel, from, note } } where rel is a key of RELATIONS, from lists the fields used and note says what was assumed. An estimate built on another estimate says so (chain: true): a K from a mass from a radius is two relations deep.

Import: import { … } from './src/core/sources/fill.js' — no DOM, runs in Node and the browser.

fillGaps ​

js
function fillGaps(v, opts = {})

v: common fields of one row (see fields.js). opts.transit overrides v.transit. Returns the estimates only; the caller decides how to show them.

MIT licensed · Kyle A. Pearson