Global Hot Spots Parameters
enableHotspots
boolean
enables or disables hot spots
since 17.10
trueDefault
You can set this value to false
if hot spots have been defined, but should not be displayed.
hotspotCallbackFunction
function
callback function for hot spots
since 17.10
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:
function onFSIViewerHSAction(strAction, viewer, idViewer, idHotspot, node, param, angle) {
if (strAction == "click") {
alert("clicked on hot spot " + idHotspot);
}
}
Attribute | Description |
---|---|
action | a string representing the action "mouseover", "mouseout", "mousedown" or "click" |
viewer | the FSI Viewer viewer instance calling the method |
idViewer | the value of the "id" attribute of the viewer's <div> tag |
idHotspot | the 0-based id of the hotspot |
node | the <div> node containing the hot spot content |
param | the content of the "actionParameter" parameter of the hot spot |
angle | the hot spot's perimeterAngle value (the angle at which it's visible best) |
hotspotLineColor1
rgb hex
lighter color of the hot spot marker lines
since 17.10
#FFFF00Default
The lighter (6-digit hex) color of the hot spot marker lines.
hotspotLineColor2
rgb hex
darker color of the hot spot marker lines
since 17.10
#000000Default
The darker (6-digit hex) color of the hot spot marker lines.
hotspotDotColor1
rgb hex
lighter color of the hot spot marker dot
since 17.10
#FFFF00Default
The lighter (6-digit hex) color of the hot spot marker circle's gradient.
hotspotDotColor2
rgb hex
darker color of the hot spot marker dot
since 17.10
#000000Default
The darker (6-digit hex) color of the hot spot marker circle's gradient.
decodeHTMLEntitiesInHotSpotTexts
boolean
enables html entities in the hotspots text
since 17.10
falseDefault
When enabled, basic HTML entities will be enabled in the hotspot text.
hotspotDotRadius
float
radius of the hot spot marker circle in px
since 17.10
4.0Default
The radius of the hot spot marker circle in px.