import{d as e,r,o as a,c as o,a as n,w as s}from"./vendor.6afcf1a6.js";var t=e({props:{x:{type:Number}},data:()=>({hovering:!1,scale:1})});t.render=function(e,s,t,l,i,c){const p=r("meshStandardMaterial");return a(),o("mesh",{onPointerEnter:s[1]||(s[1]=r=>e.hovering=!0),onPointerLeave:s[2]||(s[2]=r=>e.hovering=!1),onClick:s[3]||(s[3]=r=>e.scale=1===e.scale?2:1),scale:e.scale,rotation:[0,.25*Math.PI,.25*Math.PI],"position-x":e.x},[n(p,{color:e.hovering?"red":"gray"},null,8,["color"])],40,["scale","rotation","position-x"])};var l=e({components:{ClickMesh:t},props:{spread:{type:Number,default:2}}});l.render=function(e,t,l,i,c,p){const d=r("ClickMesh"),u=r("group");return a(),o(u,null,{default:s((()=>[n(d,{x:-e.spread},null,8,["x"]),n(d,{x:e.spread},null,8,["x"])])),_:1})};export{l as _};
