Code
<action name="action_krmvqnlpotey" type="Javascript" autorun="preinit"><![CDATA[
krpano.set("events.onclick", function(){
var x = krpano.get("mouse.x");
var y = krpano.get("mouse.y");
var pos = krpano.screentosphere(x,y);
console.log(pos.x + " / " + pos.y);
actions.trace('ath=' + (pos.x).toFixed(3) + " / " + 'atv=' + pos.y);
var ath = pos.x;
var atv = pos.y;
//krpano.trace(1,"ath=" + ath + ",atv=" + atv);
var position = krpano.spheretoscreen(ath,atv);
krpano.trace(1,"mouse.x=" + (position.x).toFixed(3) + " / " + "mouse.y=" + position.y);
});
]]></action>
Display More
krpano.screentosphere(x,y)
krpano.spheretoscreen(h,v)
Are these two grammars written like this?