API Reference / AnchorRegistry · interface

Interface: AnchorRegistry

Lookups an anchor may need to resolve: prior instants/places for relative anchors, calendar resolvers for narrative times, a gazetteer for named places. All optional; an anchor that needs a missing one resolves to null.

Properties

PropertyTypeDescription
<a id="calendars"></a> calendars?Record<string, (value) => number | null>Calendar name -> value -> UT Julian Day (or null when unmappable).
<a id="gazetteer"></a> gazetteer?(placeId) => GeoPlace | nullNamed-place resolver (e.g. the gazetteer).
<a id="instants"></a> instants?Record<string, number>anchorId -> a resolved instant (UT Julian Day).
<a id="places"></a> places?Record<string, GeoPlace>anchorId -> a resolved place.

Start building

Quickstart →