SunOptions
Interface in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Interface
TypeScript#
interface SunOptionsMembers#
| 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?: numberManual mode: degrees above the horizon, -90..90. Default 50.
azimuth#
TypeScript#
azimuth?: numberManual mode: degrees clockwise from true north, or from the model's +Y without a location. Default 135.
date#
TypeScript#
date?: string | nullLocal calendar date, "YYYY-MM-DD"; null for today.
enabled#
TypeScript#
enabled?: booleanLight 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?: stringLocal clock time, "HH:MM". Default "12:00".
timeZone#
TypeScript#
timeZone?: string | nullIANA time zone, e.g. "Europe/Amsterdam"; null for the location's default. Daylight saving time follows the zone.