krpano全局变量完全解析
- random VIP!
- timertick VIP!
- stagewidth、stageheight VIP!
- mouse.x、mouse.y、mouse.stagex、mouse.stagey、mouse.downx、mouse.downy、mouse.clickx、mouse.clicky VIP!
- keycode VIP!
- wheeldelta、wheeldelta_raw、wheeldelta_touchscale VIP!
- browser.useragent、browser.platform、browser.location、browser.domain、browser.protocol VIP!
- hlookat_moveforce、vlookat_moveforce、fov_moveforce VIP!
- stagescale VIP!
- fullscreen VIP!
- xml.url、xml.content、xml.scene、xml.view VIP!
krpano action完全解析
- krpano数组完全解析 VIP!
- krpano表达式完全解析 VIP!
程序逻辑 /流控制
- def VIP!
- set VIP!
- get VIP!try!
- calc VIP!try!
- copy VIP!
- delete VIP!
- if VIP!try!
- ifnot VIP!try!
- delayedcall VIP!try!
- stopdelayedcall VIP!try!
- nexttick
- callwhen VIP!try!
- for VIP!try!
- forall
- renderloop
- stoprenderloop
- loop VIP!try!
- asyncloop VIP!try!
- setinterval VIP!try!
- clearinterval VIP!try!
- toggle VIP!
- switch VIP!
- push/pop VIP!try!
- break VIP!
- exitcall
- callwith VIP!try!
- scope
- parentscopeset
- linkeventscope
- assignstyle VIP!
- copyattributes
- events.dispatch VIP!
- focus
- releasefocus
数学运算与函数
- add VIP!try!
- sub VIP!try!
- mul VIP!try!
- div VIP!try!
- mod VIP!try!
- pow VIP!try!
- inc VIP!try!
- dec VIP!try!
- clamp VIP!try!
- Math.abs
- Math.acos
- Math.asin
- Math.atan
- Math.atan2
- Math.ceil
- Math.cos
- Math.exp
- Math.floor
- Math.log
- Math.max
- Math.min
- Math.pow
- Math.round
- Math.sin
- Math.sqrt
- Math.tan
数字 / 字符串格式化
- roundval VIP!
- tohex VIP!try!
- tolower VIP!
- toupper VIP!
- txtadd VIP!
- subtxt VIP!
- indexoftxt VIP!
- txtreplace VIP!
- txtsplit VIP!
- fromcharcode VIP!
- escape VIP!
- unscape VIP!
动画 / 动态数值变化
- tween VIP!try!
- stoptween VIP!try!
- tween types VIP!try!
动态加载全景
- set3dtransition
- loadpano VIP!try!
- loadscene VIP!try!
- loadpanoscene VIP!
- loadpanoimage & image.reset
- loadxml VIP!try!
- includexml
- includexmlstringloadjs
- loadjs
- openurl VIP!
浏览动画 / 摄影机控制
- lookat VIP!try!
- lookto VIP!try!
- looktohotspot VIP!try!
- moveto VIP!try!
- zoomto VIP!try!
- adjusthlookat VIP!try!
- adjust360
- getlooktodistance VIP!try!
- stoplookto VIP!try!
- stopmovements VIP!try!
- wait VIP!try!
- oninterrupt VIP!try!
自动旋转
坐标转换
- screentosphere VIP!try!
- spheretoscreen VIP!try!
- screentolayer VIP!try!
- layertoscreen VIP!try!
- spheretospace
- spacetosphere
- remapfovtype
深度图/3模型信息
- screentodepth
- raycastdepth
文字可视化
- showtext VIP!
视野/全景刷新
- updateobject VIP!try!
- updatescreen VIP!try!
- invalidatescreen VIP!try!
- display.requestresize
- display.layout.update
动态添加或移除屏幕元素
- addlayer / addplugin VIP!try!
- removelayer / removeplugin VIP!try!
- addhotspot VIP!try!
- removehotspot VIP!try!
- addlensflare VIP!try!
- removelensflare VIP!try!
Layer / Plugin / Hotspot动作
- layer / hotspot[name].addevent(eventname, eventcode)
- layer / hotspot[name].removeevent(eventname, eventcode)
- layer / hotspot[name].triggerevent(eventname)
- layer / plugin / hotspot[name].loadstyle(name) VIP!
- layer / plugin / hotspot[name].registercontentsize(imagewidth,imageheight) VIP!
- layer / plugin / hotspot[name].resetsize() VIP!
- layer / hotspot[name].changealign(align, edge)
- layer / plugin / hotspot[name].updatepos() VIP!
- layer / plugin / hotspot[name].changeorigin(align,edge) VIP!
- layer / hotspot[name].remove(removechildren)
- layer / plugin / hotspot[name].getfullpath()
- hotspot[name].getcenter(ath,atv) VIP!
- hotspot[name].getnormalvec()
外部 / Javascript接口
- js
- jscall
- jsget
- js:code
HTML / CSS接口
- addcssstyles
仅限Javascript的API(仅可从Javascript调用)
- krpano.events.addListener(eventname, callback)
- krpano.events.removeListener(eventname, callback)