import{d as e,r as s,o as i,c as t,a}from"./vendor.6afcf1a6.js";var r=e({data:()=>({childVisible:!1}),mounted(){console.log(this.$refs.parent.instance),this.update(),setInterval((()=>this.childVisible=!this.childVisible),800)},methods:{update(){requestAnimationFrame(this.update);const e=Math.sin(.001*Date.now());if(!this.$refs.parent||!this.$refs.child)return;if(this.$refs.parent.instance.position.x=e,!this.$refs.child)return;const s=this.$refs.child.instance;s.position.x=e,s.position.y=Math.cos(.001*Date.now())}}});const n={ref:"parent"};r.render=function(e,r,o,c,h,l){const d=s("meshBasicMaterial");return i(),t("mesh",n,[a(d,{wireframe:!0}),a("mesh",{scale:.5,ref:"child",visible:e.childVisible},[a(d,{transparent:"",color:"red",wireframe:""})],8,["scale","visible"])],512)};export{r as _};
