SunState
Interface in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Interface
Members#
| Member | Kind | Description |
|---|---|---|
| altitude | Property | Degrees above the horizon, including refraction |
| azimuth | Property | Degrees clockwise from north |
| date | Property | |
| direction | Property | Unit vector towards the sun in the render frame (Z up) |
| effectiveMode | Property | "manual" when mode is "geo" but the reference model has no location |
| enabled | Property | |
| frame | Property | The render frame: LOCAL is the reference model's own frame, GEO an east/north/up frame |
| gridConvergence | Property | Degrees from its CRS's grid north to true north, clockwise; null when not grid-based |
| location | Property | WGS84 of the reference model, null when it has no georeference |
| mode | Property | |
| north | Property | What azimuth 0 means: true north, the georeference's north without grid correction, or the model's +Y |
| polarDay | Property | true: the sun does not set; false: it does not rise; null: it does both |
| rotation | Property | The reference model's georeference rotation, degrees counter-clockwise from (grid) east |
| solarNoon | Property | |
| sunrise | Property | Local clock times "HH:MM"; null without a location or when the sun does not rise or set |
| sunset | Property | |
| time | Property | |
| timeZone | Property | |
| timeZoneIsDefault | Property | Whether timeZone is the location's default rather than a chosen one |
| timeZoneLabel | Property | "CET", "CEST" or an offset such as "UTC+1"; null without a location |
| utc | Property | The UTC instant of date and time, ISO 8601; null without a location |
altitude#
altitude: numberDegrees above the horizon, including refraction
azimuth#
azimuth: numberDegrees clockwise from north
date#
date: stringdirection#
direction: (number)[]Unit vector towards the sun in the render frame (Z up)
effectiveMode#
effectiveMode: "manual" | "geo""manual" when mode is "geo" but the reference model has no location
enabled#
enabled: booleanframe#
frame: "LOCAL" | "GEO"The render frame: LOCAL is the reference model's own frame, GEO an east/north/up frame
gridConvergence#
gridConvergence: number | nullDegrees from its CRS's grid north to true north, clockwise; null when not grid-based
location#
location: { latitude: number; longitude: number } | nullWGS84 of the reference model, null when it has no georeference
mode#
mode: "manual" | "geo"north#
north: "true" | "georeference" | "project"What azimuth 0 means: true north, the georeference's north without grid correction, or the model's +Y
polarDay#
polarDay: boolean | nulltrue: the sun does not set; false: it does not rise; null: it does both
rotation#
rotation: numberThe reference model's georeference rotation, degrees counter-clockwise from (grid) east
solarNoon#
solarNoon: string | nullsunrise#
sunrise: string | nullLocal clock times "HH:MM"; null without a location or when the sun does not rise or set
sunset#
sunset: string | nulltime#
time: stringtimeZone#
timeZone: stringtimeZoneIsDefault#
timeZoneIsDefault: booleanWhether timeZone is the location's default rather than a chosen one
timeZoneLabel#
timeZoneLabel: string | null"CET", "CEST" or an offset such as "UTC+1"; null without a location
utc#
utc: string | nullThe UTC instant of date and time, ISO 8601; null without a location