|
@@ -6,10 +6,6 @@ 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)
|
|
@@ -78,8 +74,6 @@ 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 key={index}
|
|
<HotIcon key={index}
|
|
index={index}
|
|
index={index}
|