Reference·JavaScript · @bimworks/viewer3dJavaScript

SunOptions

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface SunOptions

Members#

Member Kind Description
altitude Property Manual mode: degrees above the horizon, -90..90. Default 50.
azimuth Property Manual mode: degrees clockwise from true north, or from the model's +Y without a location. Default 135.
date Property Local calendar date, "YYYY-MM-DD"; null for today.
enabled Property Light the scene with the sun (true) or the headlight (false, the default).
mode Property "geo" (default): the sun for the reference model's location at date and time. "manual": azimuth and altitude. Without a location the sun is always manual.
time Property Local clock time, "HH:MM". Default "12:00".
timeZone Property IANA time zone, e.g. "Europe/Amsterdam"; null for the location's default. Daylight saving time follows the zone.

altitude#

TypeScript#
altitude?: number

Manual mode: degrees above the horizon, -90..90. Default 50.

azimuth#

TypeScript#
azimuth?: number

Manual mode: degrees clockwise from true north, or from the model's +Y without a location. Default 135.

date#

TypeScript#
date?: string | null

Local calendar date, "YYYY-MM-DD"; null for today.

enabled#

TypeScript#
enabled?: boolean

Light the scene with the sun (true) or the headlight (false, the default).

mode#

TypeScript#
mode?: "manual" | "geo"

"geo" (default): the sun for the reference model's location at date and time. "manual": azimuth and altitude. Without a location the sun is always manual.

time#

TypeScript#
time?: string

Local clock time, "HH:MM". Default "12:00".

timeZone#

TypeScript#
timeZone?: string | null

IANA time zone, e.g. "Europe/Amsterdam"; null for the location's default. Daylight saving time follows the zone.