I don’t know how you want to use it, but maybe my variant will help you.
See Showrooms easy to generate from data of a construction drawing or dimensional sketch - now on Github
use SHOWROOM
Double-click on the central circle in the control and the speedometer will appear. Double-click again and it will disappear.
view-source:https://hofk.de/main/threejs/showroom/showroomAreaControl.js