The Shadow Cast component displays the amount of shadow that 3D objects cast in a scene over a selected amount of time. This type of analysis is useful in fields like architecture and urban planning.
<arcgis-scene item-id="f2220db76c6448b4be8083d19ef4cf8d"> <!-- include the Shadow Cast component inside the Scene component --> <arcgis-shadow-cast slot="top-right"></arcgis-shadow-cast></arcgis-scene>// access the component in the JavaScript part for further modificationconst shadowCast = document.querySelector("arcgis-shadow-cast");await shadowCast.componentOnReady();shadowCast.thresholdOptions.contextEnabled = true;