Skip to main content
Version: Next

Interface: MoonData

Interface for all information about a moon

Extends

  • IDataItemBase

Properties

abbreviation?

optional abbreviation: string

The abbreviated name of the data item.

Inherited from

IDataItemBase.abbreviation


color

color: string

The color associated with the moon.


currentPhase?

optional currentPhase: MoonPhase

The moon phase for the current date.


cycleDayAdjust

cycleDayAdjust: number

A way to nudge the cycle calculations to align with correct dates.


cycleLength

cycleLength: number

How many days it takes the moon to complete 1 cycle.


description?

optional description: string

The optional description of the data item

Inherited from

IDataItemBase.description


firstNewMoon

firstNewMoon: FirstNewMoonDate

When the first new moon was. This is used to calculate the current phase for a given day.


id

id: string

The unique ID of the data item

Inherited from

IDataItemBase.id


name

name: string

The name of the moon.

Overrides

IDataItemBase.name


numericRepresentation?

optional numericRepresentation: number

The optional numeric representation of the data item

Inherited from

IDataItemBase.numericRepresentation


phases

phases: MoonPhase[]

The different phases of the moon.


showAdvanced?

optional showAdvanced: boolean

If to show the advanced options, this is not saved

Inherited from

IDataItemBase.showAdvanced