Fetch the repository succeeded.
This action will force synchronization from Kay/pano, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
全景图Demo(包添功能有:根据已有空间创建场景;增、删、改空间中的热点,修改空间底部logo,兼容移动端浏览,横屏VR模式)
ps:仅供学习参考,很多接口并不完善,后台也有不少bug,欢迎fork。换工作中,近期并不打算维护,抱歉23333
root/settings.py
将DEBUG = False
改为True属性名 | 类型 | 说明 | 默认值 |
---|---|---|---|
container | DOM | document.body | 场景显示的容器,必须是非static |
smoothStart | boolean | false | 是否平滑进入 |
autoPlay | boolean | false | 是否自动播放 |
autoRotate | boolean | false | 是否自动旋转 |
logoUrl | string | 无 | 场景logo |
hotImg | string | /pano/static/panorama/img/foot_step.png | 热点图片 |
debug | boolean | false | 进入编辑模式 |
fps | boolean | false | 显示帧速 |
属性名 | 类型 | 说明 | |
---|---|---|---|
stage | DOM | 添加到容器下的canvas标签 | r |
spaceCount | number | 场景中的空间数量 | r |
spacesDict | json对象 | 空间字典 | r |
spaceId | string | 当前显示的空间编号 | r |
stereoMode | boolean | VR模式 | r / w |
walkMode | boolean | 步行模式 | r / w |
addingHot | boolean | 选择热点模式 | r / w |
lockScene | boolean | 锁定场景 | r / w |
方法名 | 概述 |
---|---|
play | 播放场景 |
showSpace | 切换场景 |
事件名 | 概述 |
---|---|
onOverHot | 选择器在热点上移动时 |
onLeaveHot | 选择器离开热点时 |
onAddingHot | 添加热点时点击container的回调 |
onLoad | 首屏加载完毕 |
onShowing | 下一个场景载入中 |
onShown | 场景切换完毕 |
onHotAdd | 热点添加前 |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。