|
@@ -1,5 +1,6 @@
|
|
|
import Vue from 'vue'
|
|
|
import { convertJQHotspot } from './hotspot'
|
|
|
+
|
|
|
let vue = new Vue()
|
|
|
|
|
|
export default class Utils {
|
|
@@ -65,7 +66,8 @@ export default class Utils {
|
|
|
const hotspot = convertJQHotspot(param);
|
|
|
const hotspotStyle = Object.values(hotspot.style);
|
|
|
const hotspotString = hotspotStyle.join('|');
|
|
|
- const hotspotSize = (Number(hotspot.size) || 1) * 50;
|
|
|
+
|
|
|
+ const hotspotSize = (Number(hotspot.size) || 1) * 40;
|
|
|
let icon = hotspot.icon.replace(/,/g, '|');
|
|
|
const callString = `editJQHotspot(
|
|
|
${hotspot.id},
|
|
@@ -102,7 +104,7 @@ export default class Utils {
|
|
|
const hotspot = convertJQHotspot(param);
|
|
|
const hotspotStyle = Object.values(hotspot.style);
|
|
|
const hotspotString = hotspotStyle.join('|');
|
|
|
- const hotspotSize = (Number(hotspot.size) || 1) * 50;
|
|
|
+ const hotspotSize = (Number(hotspot.size) || 1) * 40;
|
|
|
const ath = hotspot.ath != '' ? hotspot.ath : krpano.get("curscreen_ath");
|
|
|
const atv = hotspot.atv != '' ? hotspot.atv : krpano.get("curscreen_atv");
|
|
|
let icon = hotspot.icon.replace(/,/g, '|');
|
|
@@ -122,17 +124,6 @@ export default class Utils {
|
|
|
} catch (error) {
|
|
|
console.error('error', error);
|
|
|
}
|
|
|
-
|
|
|
- // 设置热点图片默认的偏移值
|
|
|
- // let offset = '-130%'
|
|
|
- // if (param.size < 1) {
|
|
|
- // offset = '-200%'
|
|
|
- // }
|
|
|
- // if (param.size > 1) {
|
|
|
- // offset = '-100%'
|
|
|
- // }
|
|
|
- // krpano.set('layer[tooltip_' + param.name + '].y', `${offset}`)
|
|
|
-
|
|
|
}
|
|
|
|
|
|
/**
|