Select to view content in your preferred language

Shadow Cast Widget Bug

737
1
Jump to solution
11-28-2021 09:16 PM
JethroLeevers
Regular Contributor

I have recently been investigating the use of the ShadowCast widget in an upcoming project.

There seems to be an issue when the two extents of the time slider cross, the entire widget stops working.

I have tried this in edge and chrome.

sunUtils.js:formatted:168 Uncaught RangeError: Invalid array length
at Object.z.computeDirectionsOverTime (sunUtils.js:formatted:168)
at w.get (ShadowCastViewModel.js:17)
at Object.a.runTracked ((index):144)
at g.k.getComputed ((index):139)
at w._lightDirections ((index):212)
at ShadowCastViewModel.js:8
at Object.a.runTracked ((index):144)
at d.t [as _notify] ((index):194)
at d.h.onCommitted ((index):196)
at g.k.onCommitted ((index):142)

It looks like a divide by zero error in the sunUtils computeDirectionsOverTime function, caused by a 0 value being passed as the 3rd parameter

0 Kudos
1 Solution

Accepted Solutions
JethroLeevers
Regular Contributor

Looks like this has been resolved in the 4.22 release

View solution in original post

0 Kudos
1 Reply
JethroLeevers
Regular Contributor

Looks like this has been resolved in the 4.22 release

0 Kudos