|
@@ -6,6 +6,10 @@ import HotIcon from '@/components/HotIcon'
|
|
import { KrpanoMiddleware, KrpanoMiddlewareMethods } from '@/components/KrpanoMiddleware'
|
|
import { KrpanoMiddleware, KrpanoMiddlewareMethods } from '@/components/KrpanoMiddleware'
|
|
import { HotSpot, Krpano, Scene, View } from '@dage/krpano'
|
|
import { HotSpot, Krpano, Scene, View } from '@dage/krpano'
|
|
|
|
|
|
|
|
+// window.draggbleHotspotEvent = (ath: number, atv: number) => {
|
|
|
|
+// console.log(`ath: ${ath}, atv: ${atv}`)
|
|
|
|
+// }
|
|
|
|
+
|
|
function PanoImg() {
|
|
function PanoImg() {
|
|
// 0为 第一种模式的热点 其他为第二种
|
|
// 0为 第一种模式的热点 其他为第二种
|
|
const [ind, setInd] = useState(-1)
|
|
const [ind, setInd] = useState(-1)
|
|
@@ -79,6 +83,8 @@ function PanoImg() {
|
|
onOver={() => setActiveIdx(index)}
|
|
onOver={() => setActiveIdx(index)}
|
|
onOut={() => setActiveIdx(-1)}
|
|
onOut={() => setActiveIdx(-1)}
|
|
onClick={() => setInd(index)}
|
|
onClick={() => setInd(index)}
|
|
|
|
+ // @ts-ignore
|
|
|
|
+ // onDown='draggable_hotspot()'
|
|
>
|
|
>
|
|
<HotIcon
|
|
<HotIcon
|
|
key={index}
|
|
key={index}
|