Skip to main content
Version: Next

carta-frontend/utilities

Index

Classes

Enumerations

Functions

Interfaces

Type Aliases

Variables

Type Aliases

CatalogCoordinateSystem

CatalogCoordinateSystem:

epoch

epoch: string | null | undefined

equinox

equinox: string | null | undefined

system

CatalogMirror

CatalogMirror: SimbadMirror | VizierMirror

ColumnArray

ColumnArray: (string | null | undefined)[] | (boolean | undefined)[] | (number | undefined)[]

CoordinateFieldUnit

CoordinateFieldUnit: hour | degree | radian | ambiguous

How the first sexagesimal field is scaled. Ambiguous means the evidence available at recognition time cannot decide it: a bare "12:30:00" is 12 hours or 12 degrees depending on which axis the column ends up feeding, and nothing in the value itself says which. It is narrowed by resolveDescriptorForAxis once an axis is known.

CoordinateFormatKind

CoordinateFormatKind: decimal | sexagesimal | dot-sexagesimal | compact-sexagesimal

LineSegment2D

LineSegment2D: [Point2D, Point2D]

Rect2D

Rect2D:

height

height: number

width

width: number

x

x: number

y

y: number

ReturnPath

ReturnPath: string | StructuredReturnPath

SimpleShapeAnchor

SimpleShapeAnchor: top | right | bottom | left | rotator | top-left | bottom-left | top-right | bottom-right

StructuredReturnPath

StructuredReturnPath: string[] | Record<string, string>

TypedArray

TypedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array

VizierResource

VizierResource:

coosys

coosys: VizierCoosys

description

description: string | null

id

id: string | null

name

name: string | null

table

table: VizierTable

Variables

constAUTO_COLOR_OPTIONS

AUTO_COLOR_OPTIONS: string[] = ...

constCATALOG_ARCMIN_UNITS

CATALOG_ARCMIN_UNITS: string[] = ...

constCATALOG_ARCSEC_UNITS

CATALOG_ARCSEC_UNITS: string[] = ...

constCATALOG_DEGREE_UNITS

CATALOG_DEGREE_UNITS: string[] = ...

constCATALOG_HOUR_UNITS

CATALOG_HOUR_UNITS: string[] = ...

constCATALOG_MIRROR_URLS

CATALOG_MIRROR_URLS: Readonly<Record<CatalogMirror, string>> = ...

constCATALOG_MIRRORS_BY_DATABASE

CATALOG_MIRRORS_BY_DATABASE: { SIMBAD: readonly SimbadMirror[]; VizieR: readonly VizierMirror[] } = ...

Type declaration

constCATALOG_RADIAN_UNITS

CATALOG_RADIAN_UNITS: string[] = ...

constCOLOR_MAPS_ALL

COLOR_MAPS_ALL: string[] = ...

All provided colormaps.

constCOLOR_MAPS_MONO

COLOR_MAPS_MONO: Map<string, string> = ...

Some commonly used single-color gradients.

constCOLOR_MAPS_SELECTED

COLOR_MAPS_SELECTED: string[] = ...

The selected colormaps shown in the option.

constCOORDINATE_SNIFF_SAMPLE_SIZE

COORDINATE_SNIFF_SAMPLE_SIZE: 100 = 100

constCOORDINATE_SNIFF_SCAN_LIMIT

COORDINATE_SNIFF_SCAN_LIMIT: number = ...

constDEFAULT_COLOR

DEFAULT_COLOR: string = ...

constGL2

GL2: new () => WebGL2RenderingContext = WebGL2RenderingContext

Type declaration

    • new (): WebGL2RenderingContext
    • Returns WebGL2RenderingContext

constMIN_EDITED_REGION_DIMENSION

MIN_EDITED_REGION_DIMENSION: 0.001 = 1e-3

constNUMBER_FORMAT_LABEL

NUMBER_FORMAT_LABEL: Map<NumberFormatType, string> = ...

constPARAMETERIZED_SCALINGS

PARAMETERIZED_SCALINGS: ReadonlyArray<FrameScaling> = ...

constPASTE_OFFSET

PASTE_OFFSET: 20 = 20

constPOWER_ALPHA_EPSILON

POWER_ALPHA_EPSILON: 0.000001 = 1e-6

constSCALING_PARAMETER_KEYS

SCALING_PARAMETER_KEYS: ReadonlyArray<[keyof ScalingParameters, FrameScaling]> = ...

The serialised name of each scaling that takes a parameter. These names are part of the stored format, so they are written out rather than derived from the enum.

constSELECTABLE_COLORS

SELECTABLE_COLORS: string[] = ...

constSIMPLE_SHAPE_BOTTOM_LEFT_POINT_INDEX

SIMPLE_SHAPE_BOTTOM_LEFT_POINT_INDEX: 5 = 5

constSIMPLE_SHAPE_BOTTOM_POINT_INDEX

SIMPLE_SHAPE_BOTTOM_POINT_INDEX: 2 = 2

constSIMPLE_SHAPE_BOTTOM_RIGHT_POINT_INDEX

SIMPLE_SHAPE_BOTTOM_RIGHT_POINT_INDEX: 7 = 7

constSIMPLE_SHAPE_LEFT_POINT_INDEX

SIMPLE_SHAPE_LEFT_POINT_INDEX: 3 = 3

constSIMPLE_SHAPE_RIGHT_POINT_INDEX

SIMPLE_SHAPE_RIGHT_POINT_INDEX: 1 = 1

constSIMPLE_SHAPE_ROTATION_POINT_INDEX

SIMPLE_SHAPE_ROTATION_POINT_INDEX: 8 = 8

constSIMPLE_SHAPE_TOP_LEFT_POINT_INDEX

SIMPLE_SHAPE_TOP_LEFT_POINT_INDEX: 4 = 4

constSIMPLE_SHAPE_TOP_POINT_INDEX

SIMPLE_SHAPE_TOP_POINT_INDEX: 0 = 0

constSIMPLE_SHAPE_TOP_RIGHT_POINT_INDEX

SIMPLE_SHAPE_TOP_RIGHT_POINT_INDEX: 6 = 6

constSPEED_OF_LIGHT

SPEED_OF_LIGHT: 299792458 = 299792458

Speed of light in metres per second.

constSPEED_OF_LIGHT_KMS

SPEED_OF_LIGHT_KMS: number = ...

Speed of light in kilometres per second.

constSUPPORTED_AUTO_COLORS_REGEX

SUPPORTED_AUTO_COLORS_REGEX: RegExp = ...

constSUPPORTED_COLORS

SUPPORTED_COLORS: string[] = ...

constSUPPORTED_SCALING_TYPES

SUPPORTED_SCALING_TYPES: ReadonlyMap<FrameScaling, string> = ...

constSWATCH_COLORS

SWATCH_COLORS: string[] = ...

constTEMPLATE_NODES

TEMPLATE_NODES: { WebGL2ErrorMessage: any; WebGLErrorMessage: any } = ...

Type declaration

  • WebGL2ErrorMessage: any
  • WebGLErrorMessage: any

constTRANSPARENT_COLOR

TRANSPARENT_COLOR: #00000000 = "#00000000"