|
@@ -221,7 +221,7 @@
|
|
|
let image_hotspot = this.panoramicKrpano.get("hotspot[image_hotspot]");
|
|
|
// this.scale = 1;//这里要注意,当2D模式下,绿幕视频隐射到canvas的关系暂不清楚,似乎会放的很大?所以这里使用了极小的缩放值
|
|
|
if(Number(item.width)>= Number(item.height)){//横屏
|
|
|
- let realWidth = 350;
|
|
|
+ let realWidth = 960;
|
|
|
let realHeight = item.height/(item.width/realWidth);
|
|
|
object.width = realWidth;
|
|
|
object.height = realHeight;
|
|
@@ -234,7 +234,7 @@
|
|
|
image_hotspot.url = 'https://dm.static.elab-plus.com/miniProgram/shadow22.png';
|
|
|
}
|
|
|
}else{//竖直版视频
|
|
|
- let realWidth = 350;
|
|
|
+ let realWidth = 360;
|
|
|
let realHeight = item.height/(item.width/realWidth);
|
|
|
object.width = realWidth;
|
|
|
object.height = realHeight;
|