瀏覽代碼

2D 图片使用

zjs_project 1 年之前
父節點
當前提交
22f3c9501d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/krpanoVideo/index.vue

+ 2 - 2
src/components/krpanoVideo/index.vue

@@ -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;