krpano设置文字

添加文字热点,调用方法: <hotspot name="spot1" url="animatedhotspot_white.png" onloaded="do_crop_animation(64,64, 60);add_all_the_time_tooltip_for_VR()" ath="-15" a...

krpano设置转动方式?

拖拽或者moveTo: <action name="control_startup" autorun="onstart"> set(control.mouse, moveto); set(control.touch, moveto); </action> 先要改成drag就是将moveto改成drag

krpano 添加指南针?

首先讲examples\compass的指南针复制到根目录,然后两种方式,第一种复制到secene外面: <!-- 表盘不动 表针动 --> <layer name="compass1" url="compass_bg.png" keep="true" align="lefttop" x="10" y=...

Krpano添加热点图

在scene外面 <action name="do_crop_animation"> <!-- 为热点注册属性 --> registerattribute(xframes, calc((imagewidth / %1) BOR 0)); registerattribute(yframes, calc((...

node创建流

var fs = require("fs"); var data = ''; // 创建可读流 var readerStream = fs.createReadStream('input.txt'); // 设置编码为 utf8。 readerStream.setEncoding('UTF8'); //...

node 写入流

var fs = require("fs"); var data = '12121'; // 创建一个可以写入的流,写入到文件 output.txt 中 var writerStream = fs.createWriteStream('output.txt'); // 使用 utf8 编码写入数据 wr...