Reference·JavaScript · @bimworks/viewer3dJavaScript

SunState

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface SunState

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#

TypeScript#
altitude: number

Degrees above the horizon, including refraction

azimuth#

TypeScript#
azimuth: number

Degrees clockwise from north

date#

TypeScript#
date: string

direction#

TypeScript#
direction: (number)[]

Unit vector towards the sun in the render frame (Z up)

effectiveMode#

TypeScript#
effectiveMode: "manual" | "geo"

"manual" when mode is "geo" but the reference model has no location

enabled#

TypeScript#
enabled: boolean

frame#

TypeScript#
frame: "LOCAL" | "GEO"

The render frame: LOCAL is the reference model's own frame, GEO an east/north/up frame

gridConvergence#

TypeScript#
gridConvergence: number | null

Degrees from its CRS's grid north to true north, clockwise; null when not grid-based

location#

TypeScript#
location: { latitude: number; longitude: number } | null

WGS84 of the reference model, null when it has no georeference

mode#

TypeScript#
mode: "manual" | "geo"

north#

TypeScript#
north: "true" | "georeference" | "project"

What azimuth 0 means: true north, the georeference's north without grid correction, or the model's +Y

polarDay#

TypeScript#
polarDay: boolean | null

true: the sun does not set; false: it does not rise; null: it does both

rotation#

TypeScript#
rotation: number

The reference model's georeference rotation, degrees counter-clockwise from (grid) east

solarNoon#

TypeScript#
solarNoon: string | null

sunrise#

TypeScript#
sunrise: string | null

Local clock times "HH:MM"; null without a location or when the sun does not rise or set

sunset#

TypeScript#
sunset: string | null

time#

TypeScript#
time: string

timeZone#

TypeScript#
timeZone: string

timeZoneIsDefault#

TypeScript#
timeZoneIsDefault: boolean

Whether timeZone is the location's default rather than a chosen one

timeZoneLabel#

TypeScript#
timeZoneLabel: string | null

"CET", "CEST" or an offset such as "UTC+1"; null without a location

utc#

TypeScript#
utc: string | null

The UTC instant of date and time, ISO 8601; null without a location