@versatiles/style
    Preparing search index...

    Type Alias SunOptions

    SunOptions:
        | true
        | {
            altitude?: number;
            anchor?: "map"
            | "viewport";
            color?: string;
            direction?: number;
            intensity?: number;
        }

    Type Declaration

    • true
    • {
          altitude?: number;
          anchor?: "map" | "viewport";
          color?: string;
          direction?: number;
          intensity?: number;
      }
      • Optionalaltitude?: number

        The sun's altitude in degrees above the horizon.

      • Optionalanchor?: "map" | "viewport"

        The reference frame for the sun's position: 'map' anchors it to the map, 'viewport' to the screen.

      • Optionalcolor?: string

        The light's color. Default #ffffff.

      • Optionaldirection?: number

        The sun's azimuthal direction in degrees, measured clockwise from north.

      • Optionalintensity?: number

        The light's intensity, 0–1. Default 0.5.