Skip to content

ui/map/aircraft/AircraftShapes

Variables

drawChevronShape

const drawChevronShape: AircraftShapeDrawer;

Defined in: ui/map/aircraft/AircraftShapes.ts:14

Chevron shape (default) ATC-style chevron with a tail notch, proportional to canvas size.


drawTriangleShape

const drawTriangleShape: AircraftShapeDrawer;

Defined in: ui/map/aircraft/AircraftShapes.ts:32

Simple triangle shape Basic triangle pointing upward - proportional to canvas size


drawAircraftShape

const drawAircraftShape: AircraftShapeDrawer;

Defined in: ui/map/aircraft/AircraftShapes.ts:48

Aircraft silhouette with wings Simple but recognizable airplane shape with fuselage, wings, and tail


drawDroneShape

const drawDroneShape: AircraftShapeDrawer;

Defined in: ui/map/aircraft/AircraftShapes.ts:115

Drone shape with rotors Quadcopter with central body, four rotors in X configuration, and directional indicator


AIRCRAFT_SHAPES

const AIRCRAFT_SHAPES: object;

Defined in: ui/map/aircraft/AircraftShapes.ts:199

Available aircraft shapes with display names. Keys must stay in sync with AircraftShapeType in data/types.ts (guarded by AircraftShapes.test.ts).

Type Declaration

chevron
readonly chevron: object;
chevron.name
readonly name: "Chevron" = 'Chevron';
chevron.drawer
readonly drawer: EntityShapeDrawer = drawChevronShape;
triangle
readonly triangle: object;
triangle.name
readonly name: "Triangle" = 'Triangle';
triangle.drawer
readonly drawer: EntityShapeDrawer = drawTriangleShape;
aircraft
readonly aircraft: object;
aircraft.name
readonly name: "Aircraft" = 'Aircraft';
aircraft.drawer
readonly drawer: EntityShapeDrawer = drawAircraftShape;
drone
readonly drone: object;
drone.name
readonly name: "Drone" = 'Drone';
drone.drawer
readonly drawer: EntityShapeDrawer = drawDroneShape;

Functions

getShapeDrawer()

function getShapeDrawer(shapeType): EntityShapeDrawer;

Defined in: ui/map/aircraft/AircraftShapes.ts:210

Look up the drawer for a shape type, falling back to the chevron for unknown values (e.g. a stale setting from an older build).

Parameters

shapeType

string

Returns

EntityShapeDrawer