{"version":3,"file":"TextToTree.DDqrPCBk.mjs","names":["useRef","useState","p"],"sources":["https:/framerusercontent.com/modules/K1gkiQmF3fnH5iMIePwN/TVPIKpkBvcylfhbdYUck/TextToTree.js"],"sourcesContent":["// Text to particles component that morphs into a tree shape\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function TextToTree(props){const{treeImage={src:\"https://framerusercontent.com/images/f9RiWoNpmlCMqVRIHz8l8wYfeI.jpg\",alt:\"Tree\"},particleCount=1e3,particleSize=3,particleColors=[\"#22CC66\",\"#8855FF\",\"#0099FF\",\"#FF5588\",\"#FFBB00\"],animationSpeed=2,mouseInteraction=true,interactionRadius=150,interactionIntensity=.3,particleDensity=1,particleFriction=.92,imageAspectRatio=\"original\",particleOpacity=1,particleVelocity=1,repeatAnimation=false,repeatDelay=6,treeWidth=400,treeHeight=400,resolution=\"medium\"}=props;const canvasRef=useRef(null);const particlesRef=useRef([]);const animationFrameRef=useRef();const isStatic=useIsStaticRenderer();const[dimensions,setDimensions]=useState({width:400,height:400});const mouseRef=useRef({x:-1e3,y:-1e3});const[imagePoints,setImagePoints]=useState([]);const startTimeRef=useRef(0);const settlingDuration=3e3// 3 seconds to settle into tree shape\n;const treeScaleRef=useRef({scaleX:1,scaleY:1,offsetX:0,offsetY:0});// Extract points from tree image\nuseEffect(()=>{if(isStatic||typeof window===\"undefined\")return;const img=new Image;img.crossOrigin=\"anonymous\";img.onload=()=>{const canvas=document.createElement(\"canvas\");const ctx=canvas.getContext(\"2d\");if(!ctx)return;// Calculate dimensions based on aspect ratio setting using fixed tree size\nlet drawWidth=treeWidth;let drawHeight=treeHeight;let offsetX=0;let offsetY=0;if(imageAspectRatio===\"original\"){// Fit image to tree size while maintaining aspect ratio\nconst imgAspect=img.width/img.height;const treeAspect=treeWidth/treeHeight;if(imgAspect>treeAspect){drawHeight=treeWidth/imgAspect;offsetY=(treeHeight-drawHeight)/2;}else{drawWidth=treeHeight*imgAspect;offsetX=(treeWidth-drawWidth)/2;}}else if(imageAspectRatio===\"square\"){const size=Math.min(treeWidth,treeHeight);drawWidth=size;drawHeight=size;offsetX=(treeWidth-size)/2;offsetY=(treeHeight-size)/2;}else if(imageAspectRatio===\"landscape\"){drawHeight=treeWidth/1.5;offsetY=(treeHeight-drawHeight)/2;}else if(imageAspectRatio===\"portrait\"){drawWidth=treeHeight/1.5;offsetX=(treeWidth-drawWidth)/2;}// Use fixed tree dimensions\ncanvas.width=treeWidth;canvas.height=treeHeight;// Draw image to fit canvas\nctx.drawImage(img,offsetX,offsetY,drawWidth,drawHeight);const imageData=ctx.getImageData(0,0,canvas.width,canvas.height);const points=[];// Sample pixels to find visible areas (skip every few pixels for performance)\nconst stepMap={low:6,medium:3,high:1};const step=stepMap[resolution];for(let y=0;y<canvas.height;y+=step){for(let x=0;x<canvas.width;x+=step){const index=(y*canvas.width+x)*4;const alpha=imageData.data[index+3];// If pixel is visible (not transparent)\nif(alpha>50){points.push({x,y});}}}// Center the points in the tree canvas\nif(points.length>0){const minX=Math.min(...points.map(p=>p.x));const maxX=Math.max(...points.map(p=>p.x));const minY=Math.min(...points.map(p=>p.y));const maxY=Math.max(...points.map(p=>p.y));const centerOffsetX=(treeWidth-(maxX+minX))/2;const centerOffsetY=(treeHeight-(maxY+minY))/2;points.forEach(point=>{point.x+=centerOffsetX;point.y+=centerOffsetY;});}startTransition(()=>setImagePoints(points));};img.onerror=()=>{// Fallback: create a simple tree shape if image fails to load\nconst points=[];// Simple tree fallback using fixed tree size\nfor(let i=0;i<500;i++){const angle=Math.random()*Math.PI*2;const r=Math.sqrt(Math.random())*(treeWidth*.3);points.push({x:treeWidth*.5+Math.cos(angle)*r,y:treeHeight*.3+Math.sin(angle)*r*.8});}startTransition(()=>setImagePoints(points));};img.src=treeImage.src;},[treeImage.src,isStatic,imageAspectRatio,treeWidth,treeHeight,resolution]);useEffect(()=>{if(isStatic)return;const canvas=canvasRef.current;if(!canvas)return;// Set canvas size to match container\nconst updateSize=()=>{const rect=canvas.getBoundingClientRect();canvas.width=rect.width;canvas.height=rect.height;startTransition(()=>setDimensions({width:rect.width,height:rect.height}));};updateSize();window.addEventListener(\"resize\",updateSize);return()=>window.removeEventListener(\"resize\",updateSize);},[isStatic]);useEffect(()=>{if(isStatic||imagePoints.length===0)return;const width=dimensions.width;const height=dimensions.height;// Calculate scale to fit tree in canvas while maintaining aspect ratio\nconst scaleX=width/treeWidth;const scaleY=height/treeHeight;const scale=Math.min(scaleX,scaleY)// Use smaller scale to fit within canvas\n;const scaledTreeWidth=treeWidth*scale;const scaledTreeHeight=treeHeight*scale;const offsetX=(width-scaledTreeWidth)/2;const offsetY=(height-scaledTreeHeight)/2;treeScaleRef.current={scaleX:scale,scaleY:scale,offsetX,offsetY};// Initialize particles randomly from image points\nparticlesRef.current=Array.from({length:particleCount},()=>{const point=imagePoints[Math.floor(Math.random()*imagePoints.length)];// Add slight randomness to position\nconst targetX=point.x*scale+offsetX+(Math.random()-.5)*2*(2-particleDensity);const targetY=point.y*scale+offsetY+(Math.random()-.5)*2*(2-particleDensity);// Start particles at random positions\nconst startX=Math.random()*width;const startY=Math.random()*height;// Assign color from array\nconst colorArray=particleColors.length>0?particleColors:[\"#22CC66\"];const color=colorArray[Math.floor(Math.random()*colorArray.length)];return{x:startX,y:startY,targetX,targetY,baseX:targetX,baseY:targetY,vx:(Math.random()-.5)*4*particleVelocity,vy:(Math.random()-.5)*4*particleVelocity,settled:false,color};});startTimeRef.current=Date.now();},[particleCount,imagePoints,isStatic,dimensions,particleColors,particleDensity,particleVelocity,treeWidth,treeHeight]);// Update particle colors when color settings change\nuseEffect(()=>{if(isStatic||particlesRef.current.length===0)return;const colorArray=particleColors.length>0?particleColors:[\"#22CC66\"];particlesRef.current.forEach(particle=>{particle.color=colorArray[Math.floor(Math.random()*colorArray.length)];});},[particleColors,isStatic]);useEffect(()=>{if(isStatic)return;const canvas=canvasRef.current;if(!canvas)return;const ctx=canvas.getContext(\"2d\");if(!ctx)return;const animate=()=>{ctx.clearRect(0,0,canvas.width,canvas.height);const elapsed=Date.now()-startTimeRef.current;let settleProgress=Math.min(elapsed/settlingDuration,1);// If repeat is enabled, loop the animation after the delay\nif(repeatAnimation){const totalCycleDuration=settlingDuration+repeatDelay*1e3;if(elapsed>totalCycleDuration){startTimeRef.current=Date.now();settleProgress=0;// Reset particles to random positions\nparticlesRef.current.forEach(particle=>{particle.x=Math.random()*canvas.width;particle.y=Math.random()*canvas.height;particle.vx=(Math.random()-.5)*4*particleVelocity;particle.vy=(Math.random()-.5)*4*particleVelocity;particle.settled=false;// Reassign color during reset\nconst colorArray=particleColors.length>0?particleColors:[\"#22CC66\"];particle.color=colorArray[Math.floor(Math.random()*colorArray.length)];});}}particlesRef.current.forEach(particle=>{// Random movement phase (before settling)\nif(settleProgress<1){// Gradually reduce random movement and move towards target\nconst randomForce=1-settleProgress;const settleForce=settleProgress;// Add random movement\nparticle.vx+=(Math.random()-.5)*.5*randomForce*particleVelocity;particle.vy+=(Math.random()-.5)*.5*randomForce*particleVelocity;// Pull towards target position\nconst dx=particle.baseX-particle.x;const dy=particle.baseY-particle.y;particle.vx+=dx*.02*settleForce;particle.vy+=dy*.02*settleForce;particle.vx*=.95;particle.vy*=.95;}else{// Settled phase - normal behavior\nparticle.settled=true;if(mouseInteraction){// Calculate distance from mouse\nconst dx=mouseRef.current.x-particle.x;const dy=mouseRef.current.y-particle.y;const distance=Math.sqrt(dx*dx+dy*dy);// If mouse is near, push particles away to create empty circle\nif(distance<interactionRadius){// Stronger repulsion when closer to mouse center\nconst repulsionStrength=(1-distance/interactionRadius)*interactionIntensity*2;// Push directly away from mouse\nconst angle=Math.atan2(particle.y-mouseRef.current.y,particle.x-mouseRef.current.x);particle.vx+=Math.cos(angle)*repulsionStrength;particle.vy+=Math.sin(angle)*repulsionStrength;}}// Gentle return to base position with damping\nconst returnDx=particle.baseX-particle.x;const returnDy=particle.baseY-particle.y;const returnDistance=Math.sqrt(returnDx*returnDx+returnDy*returnDy);// Apply return force proportional to distance\nif(returnDistance>.5){const returnStrength=.003*animationSpeed;particle.vx+=returnDx*returnStrength;particle.vy+=returnDy*returnStrength;}// Apply friction to dampen movement\nparticle.vx*=particleFriction;particle.vy*=particleFriction;}particle.x+=particle.vx;particle.y+=particle.vy;const colorArray=particleColors.length>0?particleColors:[\"#22CC66\"];const currentColor=particle.color||colorArray[0];ctx.fillStyle=currentColor;ctx.globalAlpha=particleOpacity;ctx.beginPath();ctx.arc(particle.x,particle.y,particleSize,0,Math.PI*2);ctx.fill();ctx.globalAlpha=1;});animationFrameRef.current=requestAnimationFrame(animate);};animate();return()=>{if(animationFrameRef.current){cancelAnimationFrame(animationFrameRef.current);}};},[particleSize,animationSpeed,mouseInteraction,interactionRadius,interactionIntensity,isStatic,particleDensity,particleFriction,particleOpacity,repeatAnimation,particleVelocity,repeatDelay,particleColors]);const handleMouseMove=e=>{if(isStatic||!mouseInteraction)return;const canvas=canvasRef.current;if(!canvas)return;const rect=canvas.getBoundingClientRect();mouseRef.current={x:e.clientX-rect.left,y:e.clientY-rect.top};};const handleMouseLeave=()=>{mouseRef.current={x:-1e3,y:-1e3};};if(isStatic){return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",background:\"transparent\"}});}return /*#__PURE__*/_jsx(motion.canvas,{ref:canvasRef,onMouseMove:handleMouseMove,onMouseLeave:handleMouseLeave,style:{width:\"100%\",height:\"100%\",cursor:mouseInteraction?\"pointer\":\"default\",background:\"transparent\"}});}addPropertyControls(TextToTree,{treeImage:{type:ControlType.ResponsiveImage,title:\"Tree Image\"},imageAspectRatio:{type:ControlType.Enum,title:\"Image Ratio\",options:[\"original\",\"square\",\"landscape\",\"portrait\"],optionTitles:[\"Original\",\"Square\",\"Landscape\",\"Portrait\"],defaultValue:\"original\",displaySegmentedControl:false},resolution:{type:ControlType.Enum,title:\"Resolution\",options:[\"low\",\"medium\",\"high\"],optionTitles:[\"Low\",\"Medium\",\"High\"],defaultValue:\"medium\",displaySegmentedControl:true},treeWidth:{type:ControlType.Number,title:\"Tree Width\",defaultValue:400,min:200,max:1e3,step:50},treeHeight:{type:ControlType.Number,title:\"Tree Height\",defaultValue:400,min:200,max:1e3,step:50},particleCount:{type:ControlType.Number,title:\"Particles\",defaultValue:1e3,min:100,max:5e3,step:100},particleSize:{type:ControlType.Number,title:\"Size\",defaultValue:3,min:1,max:10,step:.5},particleColors:{type:ControlType.Array,title:\"Colors\",control:{type:ControlType.Color},defaultValue:[\"#22CC66\",\"#8855FF\",\"#0099FF\",\"#FF5588\",\"#FFBB00\"]},repeatAnimation:{type:ControlType.Boolean,title:\"Repeat Animation\",defaultValue:false,enabledTitle:\"Loop\",disabledTitle:\"Once\"},repeatDelay:{type:ControlType.Number,title:\"Repeat Delay\",defaultValue:6,min:1,max:20,step:.5,unit:\"s\",hidden:({repeatAnimation})=>!repeatAnimation},animationSpeed:{type:ControlType.Number,title:\"Speed\",defaultValue:2,min:.5,max:5,step:.5},particleDensity:{type:ControlType.Number,title:\"Density\",defaultValue:1,min:.1,max:2,step:.1},particleFriction:{type:ControlType.Number,title:\"Friction\",defaultValue:.92,min:.8,max:.99,step:.01},mouseInteraction:{type:ControlType.Boolean,title:\"Mouse Interaction\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},interactionRadius:{type:ControlType.Number,title:\"Interaction Radius\",defaultValue:150,min:50,max:500,step:10,hidden:({mouseInteraction})=>!mouseInteraction},interactionIntensity:{type:ControlType.Number,title:\"Interaction Intensity\",defaultValue:.3,min:.1,max:2,step:.1,hidden:({mouseInteraction})=>!mouseInteraction},particleOpacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:1,min:.1,max:1,step:.1},particleVelocity:{type:ControlType.Number,title:\"Velocity\",defaultValue:1,min:.1,max:3,step:.1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextToTree\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextToTree.map"],"mappings":"sQAIG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,YAAU,CAAC,IAAI,sEAAsE,IAAI,OAAO,CAAC,gBAAc,IAAI,eAAa,EAAE,iBAAe,CAAC,UAAU,UAAU,UAAU,UAAU,UAAU,CAAC,iBAAe,EAAE,mBAAiB,GAAK,oBAAkB,IAAI,uBAAqB,GAAG,kBAAgB,EAAE,mBAAiB,IAAI,mBAAiB,WAAW,kBAAgB,EAAE,mBAAiB,EAAE,kBAAgB,GAAM,cAAY,EAAE,YAAU,IAAI,aAAW,IAAI,aAAW,UAAU,EAAY,EAAUA,EAAO,KAAK,CAAO,EAAaA,EAAO,EAAE,CAAC,CAAO,EAAkBA,GAAQ,CAAO,EAAS,GAAqB,CAAM,CAAC,EAAW,GAAeC,EAAS,CAAC,MAAM,IAAI,OAAO,IAAI,CAAC,CAAO,EAASD,EAAO,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAM,CAAC,EAAY,GAAgBC,EAAS,EAAE,CAAC,CAAO,EAAaD,EAAO,EAAE,CAAO,EAAiB,IACt1B,EAAaA,EAAO,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAiCmnC,OAhCtrC,MAAc,CAAC,GAAG,GAAiB,IAAS,OAAY,OAAO,IAAM,EAAI,IAAI,MAAM,EAAI,YAAY,YAAY,EAAI,WAAW,CAAC,IAAM,EAAO,SAAS,cAAc,SAAS,CAAO,EAAI,EAAO,WAAW,KAAK,CAAC,GAAG,CAAC,EAAI,OACvN,IAAI,EAAU,E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