Skip to content

FragmentWriterOptions

github-actions[bot] edited this page Sep 21, 2026 · 1 revision

Interface: FragmentWriterOptions

Imported from @elite-dangerous-almanac/galaxy-map.

Options for createFragmentWriter.

Properties

grid?

readonly optional grid?: () => boolean

Reads the coordinate grid switch at each write. The writer holds no switch of its own, because a write may come 500 ms after the move that asked for it. A writer with no reader writes the four view fields alone.

Returns

boolean


now?

readonly optional now?: () => number

Reads the clock. The default is Date.now.

Returns

number


write

readonly write: (fragment) => void

Writes the fragment. The caller gives it, because the page owns the URL and the library must not read or write window.location.

Parameters

fragment

string

Returns

void

Clone this wiki locally