{"version":3,"file":"ClothComponent.vbDTLqf0.mjs","names":["useRef","THREE.Scene","THREE.Group","THREE.PerspectiveCamera","THREE.WebGLRenderer","THREE.AmbientLight","THREE.DirectionalLight","THREE.Raycaster","THREE.Vector2","THREE.Plane","THREE.Vector3","THREE.Object3D","THREE.BufferGeometry","THREE.BufferAttribute","THREE.Points","THREE.PointsMaterial","THREE.CylinderGeometry","THREE.MeshStandardMaterial","THREE.InstancedMesh","THREE.DynamicDrawUsage"],"sources":["https:/framerusercontent.com/modules/AGEYc8kSYx0ecc8ciKAs/l54mSzVZuMBVf9AGnMHn/ClothComponent.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as THREE from\"three\";import{useRef,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * FRAMER CLOTH COMPONENT (VANILLA THREE.JS VERSION)\n *\n * Reverted to the robust manual render loop to ensure:\n * 1. Exact physics replication of the original \"AI\" behavior.\n * 2. Reliable rendering in Published mode (no R3F abstraction layer).\n * 3. Proper bundling without script-tag hacks.\n */// --- PHYSICS CONSTANTS ---\nconst REST_DISTANCE=25;const SQRT2=Math.SQRT2;const DAMPING=.97;const MASS=.1;const TIMESTEP_SQ=(18/1e3)**2;const ITERATIONS=3;const DEG2RAD=Math.PI/180;export default function FramerComponentCloth(props){const containerRef=useRef(null);const rendererRef=useRef(null);// Store latest props in a ref to access them inside the animation loop\n// without triggering re-initialization of the scene.\nconst propsRef=useRef(props);// Update props ref whenever props change\nuseEffect(()=>{// Flatten nested props for internal logic\nconst p={...props};// Merge structured groups into the flat `p` object for the simulation\nif(props.appearance)Object.assign(p,props.appearance);if(props.physics)Object.assign(p,props.physics);if(props.camera)Object.assign(p,props.camera);if(props.transform)Object.assign(p,props.transform);propsRef.current=p;},[props]);useEffect(()=>{if(!containerRef.current)return;// --- 1. SETUP ---\nconst container=containerRef.current;const width=container.clientWidth||800;const height=container.clientHeight||600;// Scene\nconst scene=new THREE.Scene;// Camera Group (Rig)\nconst cameraRig=new THREE.Group;scene.add(cameraRig);const camera=new THREE.PerspectiveCamera(45,width/height,1,1e4);camera.position.set(0,-100,600);cameraRig.add(camera);// Renderer\nconst renderer=new THREE.WebGLRenderer({alpha:true,antialias:true,powerPreference:\"high-performance\"});renderer.setPixelRatio(window.devicePixelRatio>2?2:window.devicePixelRatio);renderer.setSize(width,height);renderer.domElement.style.display=\"block\";renderer.domElement.style.width=\"100%\";renderer.domElement.style.height=\"100%\";// Clear container and append\ncontainer.innerHTML=\"\";container.appendChild(renderer.domElement);rendererRef.current=renderer;// Lights\nconst ambient=new THREE.AmbientLight(6710886);scene.add(ambient);const dirLight=new THREE.DirectionalLight(16777215,1.2);dirLight.position.set(200,500,200);scene.add(dirLight);// Mouse Raycasting\nconst raycaster=new THREE.Raycaster;const mouse=new THREE.Vector2(999,999)// Start off-screen\n;const plane=new THREE.Plane(new THREE.Vector3(0,0,1),0);const hit=new THREE.Vector3;// --- 2. INITIALIZE MESH ---\n// We recreate the mesh data only once here for simplicity/performance in this robust version.\n// Dynamic re-meshing on prop change is handled by unmount/remount of this effect.\nconst p=propsRef.current;const resolution=p.resolution||20;const meshSize=p.meshSize||500;const xSegs=resolution;const ySegs=resolution;const restDist=meshSize/xSegs;const clothW=meshSize;const clothH=meshSize;const idx=(u,v)=>u+v*(xSegs+1);// Particles\nconst particles=[];for(let v=0;v<=ySegs;v++){for(let u=0;u<=xSegs;u++){const x=u/xSegs*clothW-clothW/2;const y=v/ySegs*clothH-clothH/2;particles.push({x,y,z:0,px:x,py:y,pz:0,ox:x,oy:y,oz:0,fx:0,fy:0,fz:0,pinned:v===ySegs});}}// Constraints\nconst constraints=[];for(let v=0;v<=ySegs;v++){for(let u=0;u<=xSegs;u++){if(u<xSegs)constraints.push([idx(u,v),idx(u+1,v),restDist]);if(v<ySegs)constraints.push([idx(u,v),idx(u,v+1),restDist]);if(u<xSegs&&v<ySegs){constraints.push([idx(u,v),idx(u+1,v+1),restDist*SQRT2]);constraints.push([idx(u+1,v),idx(u,v+1),restDist*SQRT2]);}}}// Visual Object (Switch based on initial props)\nlet visualObject;let visualLinks=[];const dummy=new THREE.Object3D;if(p.shadingMode===\"points\"){const geo=new THREE.BufferGeometry;const pos=new Float32Array(particles.length*3);geo.setAttribute(\"position\",new THREE.BufferAttribute(pos,3));visualObject=new THREE.Points(geo,new THREE.PointsMaterial({color:p.color,size:p.pointSize}));}else{// Lines / Sticks\nconst ls=p.lineStyle||\"grid\";for(let v=0;v<=ySegs;v++){for(let u=0;u<=xSegs;u++){const h=(ls===\"grid\"||ls===\"horizontal\")&&u<xSegs;const v_=(ls===\"grid\"||ls===\"vertical\")&&v<ySegs;const d1=(ls===\"cross\"||ls===\"diagonal1\")&&u<xSegs&&v<ySegs;const d2=(ls===\"cross\"||ls===\"diagonal2\")&&u<xSegs&&v<ySegs;if(h)visualLinks.push([idx(u,v),idx(u+1,v)]);if(v_)visualLinks.push([idx(u,v),idx(u,v+1)]);if(d1)visualLinks.push([idx(u,v),idx(u+1,v+1)]);if(d2)visualLinks.push([idx(u,v+1),idx(u+1,v)]);}}const geo=new THREE.CylinderGeometry(.5,.5,1,5);geo.rotateX(Math.PI/2);const mat=new THREE.MeshStandardMaterial({color:p.color,roughness:.4,metalness:.1});visualObject=new THREE.InstancedMesh(geo,mat,visualLinks.length);visualObject.instanceMatrix.setUsage(THREE.DynamicDrawUsage);}scene.add(visualObject);// --- 3. EVENT LISTENERS ---\n// --- 3. EVENT LISTENERS ---\nlet isDragging=false;let draggedParticle=null;let activePointerId=null;const updateMouse=(clientX,clientY)=>{const rect=renderer.domElement.getBoundingClientRect();mouse.x=(clientX-rect.left)/rect.width*2-1;mouse.y=-((clientY-rect.top)/rect.height)*2+1;};const pickClosestParticle=()=>{raycaster.setFromCamera(mouse,camera);raycaster.ray.intersectPlane(plane,hit);let closest=null;let minDist=Infinity;// Grab radius (squared)\nconst limit=4e3;for(let pt of particles){const dx=pt.x-hit.x;const dy=pt.y-hit.y;const dz=pt.z-hit.z;const d2=dx*dx+dy*dy+dz*dz;if(d2<limit&&d2<minDist){minDist=d2;closest=pt;}}return closest;};const onPointerDown=e=>{isDragging=true;activePointerId=e.pointerId;updateMouse(e.clientX,e.clientY);// Keep mouse/pen behavior unchanged, but let touch vertical swipes\n// scroll the page by avoiding pointer capture for touch.\nif(e.pointerType!==\"touch\"){container.setPointerCapture(e.pointerId);}draggedParticle=pickClosestParticle();};const onPointerMove=e=>{if(activePointerId!==null&&e.pointerId!==activePointerId)return;updateMouse(e.clientX,e.clientY);};const onPointerUp=e=>{if(activePointerId!==null&&e.pointerId!==activePointerId)return;isDragging=false;draggedParticle=null;activePointerId=null;if(container.hasPointerCapture(e.pointerId)){container.releasePointerCapture(e.pointerId);}};const resizeObserver=new ResizeObserver(entries=>{for(let entry of entries){const{width,height}=entry.contentRect;if(width===0||height===0)return;camera.aspect=width/height;camera.updateProjectionMatrix();renderer.setSize(width,height);}});resizeObserver.observe(container);container.addEventListener(\"pointerdown\",onPointerDown);container.addEventListener(\"pointermove\",onPointerMove);container.addEventListener(\"pointerup\",onPointerUp);container.addEventListener(\"pointercancel\",onPointerUp);// --- 4. ANIMATION LOOP ---\nlet frameId=0;let rotAcc={x:0,y:0,z:0};const animate=()=>{const currentProps=propsRef.current;// A. Camera View\nrotAcc.x+=(currentProps.rotationSpeedX||0)*.02;rotAcc.y+=(currentProps.rotationSpeedY||0)*.02;rotAcc.z+=(currentProps.rotationSpeedZ||0)*.02;cameraRig.rotation.set((currentProps.rotateX||0)*DEG2RAD+rotAcc.x,(currentProps.rotateY||0)*DEG2RAD+rotAcc.y,(currentProps.rotateZ||0)*DEG2RAD+rotAcc.z);const cv=currentProps.view;const dist=600;if(cv===\"front\")camera.position.set(0,0,dist);else if(cv===\"side\")camera.position.set(dist,0,0);else if(cv===\"top\")camera.position.set(0,dist,10);else if(cv===\"isometric\")camera.position.set(dist*.7,dist*.5,dist*.7);else camera.position.set(0,-100,600);camera.lookAt(0,0,0);// B. Physics\nconst time=performance.now()*5e-4*(currentProps.speed===undefined?1:currentProps.speed);const grav=-(currentProps.gravity===undefined?980:currentProps.gravity)*MASS;const baseWind=(currentProps.windStrength===undefined?.5:currentProps.windStrength)*50;const turb=currentProps.turbulence===undefined?1:currentProps.turbulence;// Reusable turbulence function (pseudo-noise)\nconst getNoise=(x,y,t)=>{return Math.sin(x*.01+t)+Math.sin(y*.03+t*.5)*.5+Math.sin(x*.05+y*.05+t*.2)*.25;};raycaster.setFromCamera(mouse,camera);raycaster.ray.intersectPlane(plane,hit);// Forces\nparticles.forEach(pt=>{if(pt.pinned)return;const noise=getNoise(pt.x,pt.y,time*2)*turb;const windForce=baseWind*(1+noise);let fx=Math.sin(time*.5+pt.y*.01)*windForce+(Math.random()-.5)*turb*10;let fy=grav;let fz=Math.cos(time*.3+pt.y*.01)*windForce+(Math.random()-.5)*turb*10;// Interaction\n// Interaction (Grab & Drag)\nif(draggedParticle===pt){// Lock position to mouse\npt.x=hit.x;pt.y=hit.y;pt.z=hit.z;// Reset momentum so it doesn't shoot off when released\npt.px=pt.x;pt.py=pt.y;pt.pz=pt.z;// Cancel other forces\nfx=0;fy=0;fz=0;}// Integrate\nconst vx=(pt.x-pt.px)*DAMPING;const vy=(pt.y-pt.py)*DAMPING;const vz=(pt.z-pt.pz)*DAMPING;pt.px=pt.x;pt.py=pt.y;pt.pz=pt.z;pt.x+=vx+fx*TIMESTEP_SQ;pt.y+=vy+fy*TIMESTEP_SQ;pt.z+=vz+fz*TIMESTEP_SQ;});// Constraints\nfor(let k=0;k<ITERATIONS;k++){for(let c of constraints){const[i1,i2,r]=c;const p1=particles[i1];const p2=particles[i2];const dx=p2.x-p1.x,dy=p2.y-p1.y,dz=p2.z-p1.z;const d=Math.sqrt(dx*dx+dy*dy+dz*dz);if(d===0)continue;const diff=(d-r)/d*.5;const ox=dx*diff,oy=dy*diff,oz=dz*diff;if(!p1.pinned){p1.x+=ox;p1.y+=oy;p1.z+=oz;}if(!p2.pinned){p2.x-=ox;p2.y-=oy;p2.z-=oz;}}}// C. Visuals Update\nvisualObject.position.set(currentProps.offsetX||0,currentProps.offsetY||0,currentProps.offsetZ||0);if(currentProps.shadingMode===\"points\"){const arr=visualObject.geometry.attributes.position.array;for(let i=0;i<particles.length;i++){arr[i*3]=particles[i].x;arr[i*3+1]=particles[i].y;arr[i*3+2]=particles[i].z;}visualObject.geometry.attributes.position.needsUpdate=true;visualObject.material.color.set(currentProps.color);visualObject.material.size=currentProps.pointSize||4;}else{const scale=(currentProps.lineWidth||1.5)*.5;for(let i=0;i<visualLinks.length;i++){const[i1,i2]=visualLinks[i];const p1=particles[i1];const p2=particles[i2];const mx=(p1.x+p2.x)*.5,my=(p1.y+p2.y)*.5,mz=(p1.z+p2.z)*.5;dummy.position.set(mx,my,mz);dummy.lookAt(p2.x,p2.y,p2.z);const len=Math.sqrt((p2.x-p1.x)**2+(p2.y-p1.y)**2+(p2.z-p1.z)**2);dummy.scale.set(scale,scale,len);dummy.updateMatrix();visualObject.setMatrixAt(i,dummy.matrix);}visualObject.instanceMatrix.needsUpdate=true;visualObject.material.color.set(currentProps.color);}renderer.render(scene,camera);frameId=requestAnimationFrame(animate);};animate();// Cleanup\nreturn()=>{cancelAnimationFrame(frameId);resizeObserver.disconnect();resizeObserver.disconnect();container.removeEventListener(\"pointerdown\",onPointerDown);container.removeEventListener(\"pointermove\",onPointerMove);container.removeEventListener(\"pointerup\",onPointerUp);container.removeEventListener(\"pointercancel\",onPointerUp);if(renderer.domElement.parentNode)renderer.domElement.parentNode.removeChild(renderer.domElement);renderer.dispose();};},[props.appearance?.resolution,props.appearance?.shadingMode,props.appearance?.lineStyle,props.appearance?.meshSize])// Re-run init only on structural changes\n;return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,className:props.className,style:{...props.style,width:\"100%\",height:\"100%\",overflow:\"hidden\",display:\"block\",touchAction:\"pan-y\",cursor:\"grab\"}});}FramerComponentCloth.defaultProps={width:800,height:600,resolution:20};addPropertyControls(FramerComponentCloth,{appearance:{type:ControlType.Object,title:\"Appearance\",controls:{shadingMode:{type:ControlType.Enum,title:\"Mode\",options:[\"wireframe\",\"points\"],defaultValue:\"wireframe\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#8855ff\"},meshSize:{type:ControlType.Number,title:\"Size\",min:100,max:2e3,defaultValue:500},resolution:{type:ControlType.Number,title:\"Resolution\",min:5,max:40,defaultValue:20},pointSize:{type:ControlType.Number,title:\"Point Size\",min:1,max:20,defaultValue:4,hidden:p=>p.shadingMode!==\"points\"},lineStyle:{type:ControlType.Enum,title:\"Topology\",options:[\"grid\",\"vertical\",\"horizontal\",\"diagonal1\",\"diagonal2\",\"cross\"],defaultValue:\"grid\",hidden:p=>p.shadingMode===\"points\"},lineWidth:{type:ControlType.Number,title:\"Line W\",min:.5,max:10,step:.5,defaultValue:1.5,hidden:p=>p.shadingMode===\"points\"}}},physics:{type:ControlType.Object,title:\"Physics\",controls:{speed:{type:ControlType.Number,title:\"Time Scale\",min:0,max:5,step:.1,defaultValue:1},gravity:{type:ControlType.Number,title:\"Gravity\",min:0,max:3e3,step:10,defaultValue:980},windStrength:{type:ControlType.Number,title:\"Wind\",min:0,max:5,step:.1,defaultValue:.5},turbulence:{type:ControlType.Number,title:\"Turbulence\",min:0,max:5,step:.1,defaultValue:1}}},camera:{type:ControlType.Object,title:\"Camera\",controls:{view:{type:ControlType.Enum,title:\"Type\",options:[\"perspective\",\"front\",\"isometric\",\"side\",\"top\"],defaultValue:\"perspective\"}}},transform:{type:ControlType.Object,title:\"Transform\",controls:{offsetX:{type:ControlType.Number,title:\"Pos X\",min:-500,max:500,defaultValue:0},offsetY:{type:ControlType.Number,title:\"Pos Y\",min:-500,max:500,defaultValue:0},offsetZ:{type:ControlType.Number,title:\"Pos Z\",min:-500,max:500,defaultValue:0},rotateX:{type:ControlType.Number,title:\"Rot X\",min:0,max:360,defaultValue:0},rotateY:{type:ControlType.Number,title:\"Rot Y\",min:0,max:360,defaultValue:0},rotateZ:{type:ControlType.Number,title:\"Rot Z\",min:0,max:360,defaultValue:0},rotationSpeedX:{type:ControlType.Number,title:\"Spin X\",min:-2,max:2,step:.1,defaultValue:0},rotationSpeedY:{type:ControlType.Number,title:\"Spin Y\",min:-2,max:2,step:.1,defaultValue:0},rotationSpeedZ:{type:ControlType.Number,title:\"Spin Z\",min:-2,max:2,step:.1,defaultValue:0}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerComponentCloth\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ClothComponent.map"],"mappings":"gYAQyJ,SAAwB,EAAqB,EAAM,CAAC,IAAM,EAAaA,EAAO,IAAI,EAAQ,EAAYA,EAAO,IAAI,EAEpQ,EAASA,EAAO,CAAK,EAsC1B,OArCD,MAAc,CACd,IAAM,EAAE,CAAC,GAAG,CAAK,EACd,EAAM,YAAW,OAAO,OAAO,EAAE,EAAM,UAAU,EAAK,EAAM,SAAQ,OAAO,OAAO,EAAE,EAAM,OAAO,EAAK,EAAM,QAAO,OAAO,OAAO,EAAE,EAAM,MAAM,EAAK,EAAM,WAAU,OAAO,OAAO,EAAE,EAAM,SAAS,EAAE,EAAS,QAAQ,CAAE,EAAE,CAAC,CAAK,CAAC,EAAE,MAAc,CAAC,GAAG,CAAC,EAAa,QAAQ,OAC9Q,IAAM,EAAU,EAAa,QAAc,EAAM,EAAU,aAAa,IAAU,EAAO,EAAU,cAAc,IAC3G,EAAM,IAAIC,GACV,EAAU,IAAIC,GAAY,EAAM,IAAI,CAAS,EAAE,IAAM,EAAO,IAAIC,GAAwB,GAAG,EAAM,EAAO,EAAE,GAAG,EAAE,EAAO,SAAS,IAAI,EAAE,KAAK,GAAG,EAAE,EAAU,IAAI,CAAM,EACzK,IAAM,EAAS,IAAIC,GAAoB,CAAC,MAAM,GAAK,UAAU,GAAK,gBAAgB,kBAAkB,CAAC,EAAE,EAA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