SDK JS
    Preparing search index...
    • Build the initial WidgetState from an instant and longitude.

      Parameters

      • date: Date

        The UTC instant to start at.

      • lng: number

        Longitude in degrees the solar time is referenced to.

      • shadows: boolean = false

        Initial Shadows toggle state. Default false.

      • enabled: boolean = true

        Initial master enable state. Default true.

      Returns WidgetState

      A fresh state with minute derived from date at lng.