autodesk-forgeautodesk-viewerautodesk-data-visualization

Autodesk data viz sprites and React element


Is it possible to use React element as sprite in the Data Viz API? If it is possible please advise how to handle this.


Solution

  • The Data Visualization API for sprites only supports <HTMLImageElement> (see docs).

    However, you can overlay your custom HTML content on top of the viewer, and make sure it stays attached to a specific 3D point in the scene using the Viewer SDK. We have a demo that does this to show annotations attached to individual design elements here.

    demo screenshot