-
Notifications
You must be signed in to change notification settings - Fork 0
LineInput
Imported from @elite-dangerous-almanac/galaxy-map.
What a host passes to addLines.
[
field:string]:unknown
A field the reader drops.
readonlyoptionalcategories?: readonlystring[]
The names of categories the table holds, in the order the line reads them. The first one that is on for shapes gives the colour, where the line carries none.
readonlyoptionalclosed?:boolean
True joins the last point to the first. The default is false.
readonlyoptionalcolor?: readonly [number,number,number]
Red, green and blue, each from 0 to 255. A line that names a category may leave it out and take the colour of the first category it names that is on.
readonlyoptionalname?:string
What the shape stands for. The map draws no label for it.
readonlypoints: readonlyLinePoint[]
At least two points, each a coordinate or a system reference.
readonlyoptionalprimaryCategory?:undefined
The two names categories replaces. Each one is never, so a shape that carries it
fails the compile. The index signature below turns off TypeScript's excess-property
check, so without the pair the old name would compile and the reader would drop it.
readonlyoptionalsecondaryCategories?:undefined
readonlyoptionalwidth?:number
How wide the ribbon draws, in CSS pixels. The default is 2.
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