2 FSI Viewer JS
39
NeptuneLabs - FSI Viewer
2.5.1 Global Parameters for Hot Spots
enableHotspots
Description
enables or disables hot spots
Syntax
boolean
Default
true
Context
FSI Viewer JS
You can set this value to false if hot spots have been defined, but shall not be
displayed.
hotspotCallbackFunction
Description
callback function for hot spots
Syntax
string/ function
Default
""
Context
FSI Viewer JS
The name of a custom JavaScript callback function in window scope to call each
time a hot spot mouse action occurs.
Alternatively you can pass the function directly as a JavaScript parameter.
Example of a callback function prototype:
Callback Function Prototype
function
onFSIViewerHSAction(strAction,
viewer,
idViewer,
idHotspot, node, param, angle)
{
if (strAction == "click")
{
alert("clicked on hot spot " + idHotspot);
}
}