-
Notifications
You must be signed in to change notification settings - Fork 0
GalaxyMapOptions
Imported from @elite-dangerous-almanac/galaxy-map.
Options for createGalaxyMap.
readonlyoptionalbounds?:BrowseBounds
How much of the space the user may browse. It clamps the cursor and the far zoom
limit, and it changes nothing the map draws. The default is unrestricted, which is
the model bounds and a 120,000 light year far limit. A setting the map cannot read
takes the default.
readonlyoptionalcursorMarker?:boolean
False takes the cursor marker off. The marker is on unless the options turn it off,
because nothing else on the screen says where the cursor is. A host that draws its
own cursor turns this one off here or with setCursorMarkerVisible.
readonlyoptionaldataset?:string
The id of the entry the map loads at start. With no id, and with an id the catalog does not hold, the map loads the first entry.
readonlyoptionaldatasets?: readonlyDatasetEntry[]
The data sets the user can switch between. Each entry carries an id, a label and a
load() the host wrote. The library calls load() and reads what comes back; it
fetches nothing itself. With no catalog the map loads nothing and the HUD shows no
dataset field.
readonlyoptionalgrid?:boolean
True draws the coordinate grid. The grid is off unless the options ask for it.
readonlyoptionalhud?:boolean|HudOptions
Builds the heads-up display. true builds it with its defaults, and an object
names the title, the host and the footer actions. The HUD is off when the options
do not ask for it, and the map then adds no element to the page.
readonlyoptionalinteraction?:Partial<InteractionSwitches>
Which of the user's inputs the map acts on. A field the host leaves out is on. A setting the map cannot read leaves every switch on.
readonlyoptionallabelHost?:HTMLElement
The element the region labels go in. With no element the library makes one in the canvas's parent, so a host that gives a canvas alone gets a working map.
readonlyoptionalloadingImage?:string
The URL of a picture the map shows in the middle of the canvas while it starts.
The library removes it when ready settles, whether it settles or fails. A URL
whose scheme is neither http nor https, and which is not relative, adds no
element. With no URL the map adds no element.
readonlyoptionalnebulae?:NebulaSource<unknown,unknown>
The nebula source, which is the single export of the package's ./nebulae subpath.
With it the map fetches the records and the art and draws the nebulae. With no value
the map fetches no nebula file, compiles no nebula program and draws no nebula, and
reports no error: asking for no nebulae is not a fault.
A value the map cannot read turns the nebulae off, as every other option of this library does. A host passes the value it imported and writes no source of its own.
readonlyoptionalregions?:boolean
False takes the region overlay off. The overlay is on unless the options turn it off. A value that is not a boolean takes the default.
readonlyoptionalshapes?:boolean
False takes the spheres and the lines off. The shapes are on unless the options turn them off. A value that is not a boolean takes the default.
readonlyoptionalstartView?:StartView
The camera the map opens at. The map takes it in the frame it draws first and does not fly to it. A field the host leaves out takes the value of the default view. A setting the map cannot read is ignored in whole.
readonlyoptionalsystemIcons?:boolean
False takes the system icon stacks off. The stacks are on unless the options turn them off, because an icon draws only where a record names one, so a set that names none opens on nothing new. A value that is not a boolean takes the default.
readonlyoptionalsystemNames?:boolean
True starts the map with the marker name labels on. The labels are off unless the options ask for them, because a set of 50,000 systems opens on a screen of labels otherwise. A value that is not a boolean takes the default.
Examples
Interfaces
- AddReport
- Category
- CategoryInput
- CategoryReject
- CategoryReport
- DatasetContent
- DatasetEntry
- DatasetInfo
- DatasetLoadResult
- FlyToOptions
- FlyToTarget
- FragmentWriter
- FragmentWriterOptions
- GalaxyMap
- GalaxyMapOptions
- HudAction
- HudHandle
- HudInfoFields
- HudOptions
- InteractionSwitches
- Line
- LineInput
- MapView
- NebulaSource
- RealSystem
- Reject
- ResolvedIcon
- ShapeInfo
- ShapeReject
- ShapeReport
- Sphere
- SphereInput
- StartView
- SystemDetailValue
- SystemDetails
- SystemImage
- SystemRecordInput