{"version":3,"file":"ParticlesSphere_prod.DbPacigp.mjs","names":["useRef","React","__esmMin","init_npm_react_18_3_1","window","e","p","c","init_jsx_runtime","ce","de","init_ssg_sandbox_shims","addPropertyControls","init_framer_D1IzEvwH","RenderTarget","ControlType","Scene","Vector3","Points","Color","Group","InstancedMesh","MeshBasicMaterial","SphereGeometry","Matrix4","init_three_module","BufferGeometry","WebGLRenderer","Float32BufferAttribute","PerspectiveCamera","PointsMaterial","extractDefaultValue","cssVar","match","cssVariableRegex","fallback","resolveTokenColor","input","parseColorToRgba","str","rgbaMatch","hex","mapLinear","inMax","inMin","outMin","value","outMax","mapSpeedUiToInternal","ui","mapScaleUiToMultiplier","mapParticleSizeUiToInternal","mapCursorStrengthUiToMultiplier","ParticleSphereRefactor","particlesConfig","containerRef","zoomProbeRef","sceneRef","cameraRef","rendererRef","particlesRef","particlesGroupRef","animationFrameRef","animateFnRef","startAnimationRef","lastResizeRef","mouseRef","baseParticlePositionsRef","particleDisplacementsRef","particleScatterVelocitiesRef","isCanvasRef","isCanvas","previewRef","preview","rotationSpeed","baseSpeed","speed","rotationDirection","scaleMultiplier","scale","particleSize","cursorRadius","cursorConfig","cursorStrength","container","containerWidth","containerHeight","canvasOverflowMultiplier","canvasWidth","canvasHeight","scene","adjustedFOV","camera","currentSphereRadius","cameraDistance","renderer","canvas","offsetX","offsetY","sphereColor","vertices","goldenAngle","sphereRadius","resolvedSphereColor","sphereRgba","baseColorObj","particleOpacity","i","particlesCount","y","radius","theta","x","z","posX","posY","posZ","particleShape","particles","sphereGeometry","sphereMaterial","matrix","idx","instanceColors","particlesGeometry","colors","particlesMaterial","particlesGroup","rotation","targetRotation","velocity","isDragging","isHovering","lastMouseX","lastMouseY","lastDragTime","animationFrameId","lastFrameTime","targetDeltaTime","lerpFactor","smoothing","velocityDecay","animate","animateCore","now","deltaTime","deltaFactor","needsRender","threshold","canAutoRotate","stopOnHover","decayFactor","dx","dy","timeLerpFactor","currentContainerWidth","currentContainerHeight","currentCanvasWidth","currentCanvasHeight","currentCamera","cursorRadiusSquared","basePos","displacement","mouse","currentLocalPos","worldPos","projected","screenX","screenY","distanceSquared","force","angle","cameraRight","cameraUp","repulsion2D","repulsionX","repulsionY","worldRepulsion","localRepulsion","inverseGroupMatrix","frictionFactor","CURSOR_PHYSICS","returnForce","scatterVelocity","scatterFriction","scatterReturnForce","finalPos","positions","hasVelocity","hasLerpDelta","hasCursorInteraction","disp","canAutoRotateForContinue","startAnimation","handleMouseDown","drag","event","handleMouseMove","currentTime","timeSinceLastMove","sensitivity","dragSpeed","moveEvent","timeNormalization","handleMouseUp","handleMouseMoveHover","containerRect","mouseX","mouseY","handleMouseMoveCursor","mouseXInContainer","mouseYInContainer","handleMouseLeaveCursor","handleTouchMove","touch","touchXInContainer","touchYInContainer","handleTouchEnd","handleClick","clickX","clickY","clickForce","clickContainerWidth","clickContainerHeight","clickCanvasWidth","clickCanvasHeight","ndcX","ndcY","clickRay","cameraWorldPos","clickDirection","sphereCenter","cameraToCenter","sphereDistance","clickWorldPos","radialDirection","scatterMagnitude","worldScatter","localScatter","handleTouchStart","touchX","touchY","touchContainerWidth","touchContainerHeight","touchCanvasWidth","touchCanvasHeight","touchRay","touchDirection","touchWorldPos","handleResize","newWidth","newHeight","newCanvasWidth","newCanvasHeight","newOffsetX","newOffsetY","canvasEl","EPS_SIZE","rafId","tick","probe","currentZoom","rect","cw","ch","aspect","timeOk","zoomChanged","sizeChanged","aspectChanged","mat","resizeObserver","containerStyle","style","init_ParticlesSphere_prod","props"],"sources":["https:/framerusercontent.com/modules/pYbVKfcb0pPrsWejx12q/MsJMnxtVT2HEbtHa6Fxm/ParticlesSphere_prod.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import React,{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{Scene,PerspectiveCamera,WebGLRenderer,Color,Points,BufferGeometry,Float32BufferAttribute,PointsMaterial,SphereGeometry,MeshBasicMaterial,InstancedMesh,Matrix4,Group,Vector3,AdditiveBlending}from\"https://cdn.jsdelivr.net/npm/three@0.174.0/build/three.module.js\";// CSS variable token and color parsing (hex/rgba/var())\nconst cssVariableRegex=/var\\s*\\(\\s*(--[\\w-]+)(?:\\s*,\\s*((?:[^)(]+|\\((?:[^)(]+|\\([^)(]*\\))*\\))*))?\\s*\\)/;function extractDefaultValue(cssVar){if(!cssVar||!cssVar.startsWith(\"var(\"))return cssVar;const match=cssVariableRegex.exec(cssVar);if(!match)return cssVar;const fallback=(match[2]||\"\").trim();if(fallback.startsWith(\"var(\"))return extractDefaultValue(fallback);return fallback||cssVar;}function resolveTokenColor(input){if(typeof input!==\"string\")return input;if(!input.startsWith(\"var(\"))return input;return extractDefaultValue(input);}// Parse color string to RGBA values (0-1 range)\nfunction parseColorToRgba(input){if(!input||input.trim()===\"\")return{r:0,g:0,b:0,a:0};const str=input.trim();// Handle rgba() format\nconst rgbaMatch=str.match(/rgba?\\(\\s*([\\d.]+)\\s*,\\s*([\\d.]+)\\s*,\\s*([\\d.]+)\\s*(?:,\\s*([\\d.]+)\\s*)?\\)/i);if(rgbaMatch){const r=Math.max(0,Math.min(255,parseFloat(rgbaMatch[1])))/255;const g=Math.max(0,Math.min(255,parseFloat(rgbaMatch[2])))/255;const b=Math.max(0,Math.min(255,parseFloat(rgbaMatch[3])))/255;const a=rgbaMatch[4]!==undefined?Math.max(0,Math.min(1,parseFloat(rgbaMatch[4]))):1;return{r,g,b,a};}// Handle hex formats\nconst hex=str.replace(/^#/,\"\");if(hex.length===8){return{r:parseInt(hex.slice(0,2),16)/255,g:parseInt(hex.slice(2,4),16)/255,b:parseInt(hex.slice(4,6),16)/255,a:parseInt(hex.slice(6,8),16)/255};}if(hex.length===6){return{r:parseInt(hex.slice(0,2),16)/255,g:parseInt(hex.slice(2,4),16)/255,b:parseInt(hex.slice(4,6),16)/255,a:1};}if(hex.length===4){return{r:parseInt(hex[0]+hex[0],16)/255,g:parseInt(hex[1]+hex[1],16)/255,b:parseInt(hex[2]+hex[2],16)/255,a:parseInt(hex[3]+hex[3],16)/255};}if(hex.length===3){return{r:parseInt(hex[0]+hex[0],16)/255,g:parseInt(hex[1]+hex[1],16)/255,b:parseInt(hex[2]+hex[2],16)/255,a:1};}return{r:0,g:0,b:0,a:1};}// Value mapping functions\nfunction mapLinear(value,inMin,inMax,outMin,outMax){if(inMax===inMin)return outMin;const t=(value-inMin)/(inMax-inMin);return outMin+t*(outMax-outMin);}// Speed: UI [0.1..1] → internal [0.01..0.05] (rotation speed multiplier)\nfunction mapSpeedUiToInternal(ui){return mapLinear(ui,.1,1,.01,.05);}// Scale: UI [0..1] → scale multiplier [0.5..3.0] (overall sphere size multiplier)\nfunction mapScaleUiToMultiplier(ui){const clamped=Math.max(0,Math.min(1,ui));return mapLinear(clamped,0,1,.25,1.25);}// Particle Size: UI [0.1..1] → size [0.01..0.1] (individual particle size)\nfunction mapParticleSizeUiToInternal(ui){const clamped=Math.max(.1,Math.min(1,ui));return mapLinear(clamped,.1,1,.01,.1);}// Cursor Strength: UI [0..1] → force multiplier [0..15]\n// Default 0.3 maps to 4.5 (stronger default behavior)\n// Maximum strength (1.0) creates a much larger void around cursor\nfunction mapCursorStrengthUiToMultiplier(ui){const clamped=Math.max(0,Math.min(1,ui));return mapLinear(clamped,0,1,0,15);}// Cursor interaction constants (from ref.tsx)\nconst CURSOR_PHYSICS={RETURN_FORCE:.015,FRICTION:.94};/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 500\n * @framerIntrinsicHeight 500\n * @framerDisableUnlink\n */export default function ParticleSphereRefactor({preview=false,particlesCount=1e3,speed=.5,smoothing=1,scale=.5,stopOnHover=true,rotationDirection=\"clockwise\",dragSpeed=.5,drag=true,particles:particlesConfig={scale:.5,shape:\"sphere\"},cursorConfig={enabled:true,radius:150,strength:.3,clickForce:10},sphereColor=\"#ffffff\",style}){const containerRef=useRef(null);const zoomProbeRef=useRef(null);const sceneRef=useRef(null);const cameraRef=useRef(null);const rendererRef=useRef(null);const particlesRef=useRef(null);const particlesGroupRef=useRef(null);const animationFrameRef=useRef(null);const animateFnRef=useRef(null);const startAnimationRef=useRef(null);const lastResizeRef=useRef({ts:0,zoom:0,w:0,h:0,aspect:0});const mouseRef=useRef(null);const baseParticlePositionsRef=useRef([]);const particleDisplacementsRef=useRef([]);const particleScatterVelocitiesRef=useRef([]);// Check canvas mode ONCE at component mount and cache it\nconst isCanvasRef=useRef(null);if(isCanvasRef.current===null){isCanvasRef.current=RenderTarget.current()===RenderTarget.canvas;}const isCanvas=isCanvasRef.current;// Ref for preview - only matters in canvas mode\nconst previewRef=useRef(preview);// Update previewRef ONLY when in canvas mode\nconst previewForRefUpdate=isCanvas?preview:false;useEffect(()=>{if(isCanvas){previewRef.current=preview;}},[previewForRefUpdate,isCanvas]);// Map UI speed to internal speed\nconst rotationSpeed=React.useMemo(()=>{const baseSpeed=mapSpeedUiToInternal(speed);return rotationDirection===\"anticlockwise\"?-baseSpeed:baseSpeed;},[speed,rotationDirection]);// Map UI scale to internal scale multiplier (overall sphere size)\nconst scaleMultiplier=React.useMemo(()=>mapScaleUiToMultiplier(scale),[scale]);// Map UI particle size to internal particle size\nconst particleSize=React.useMemo(()=>mapParticleSizeUiToInternal(particlesConfig.scale),[particlesConfig.scale]);// Cursor radius in pixels (clamped to reasonable range)\nconst cursorRadius=React.useMemo(()=>Math.max(0,Math.min(600,cursorConfig.radius)),[cursorConfig.radius]);// Map UI cursor strength to force multiplier\nconst cursorStrength=React.useMemo(()=>mapCursorStrengthUiToMultiplier(cursorConfig.strength),[cursorConfig.strength]);useEffect(()=>{if(!containerRef.current)return;const container=containerRef.current;const containerWidth=container.clientWidth||container.offsetWidth||400;const containerHeight=container.clientHeight||container.offsetHeight||400;// Canvas overflow multiplier - makes canvas larger than container to prevent clipping\n// The sphere and camera remain the same, just more \"empty space\" around the edges\nconst canvasOverflowMultiplier=2.5// 50% larger canvas on each side\n;const canvasWidth=containerWidth*canvasOverflowMultiplier;const canvasHeight=containerHeight*canvasOverflowMultiplier;// Scene setup\nconst scene=new Scene;sceneRef.current=scene;// Calculate adjusted FOV to keep sphere the same size regardless of canvas overflow\n// When canvas is larger, we need a wider FOV to show the same content at the same size\n// FOV adjustment: tan(newFOV/2) = tan(baseFOV/2) * canvasOverflowMultiplier\nconst baseFOV=50;const adjustedFOV=2*Math.atan(Math.tan(baseFOV*Math.PI/180/2)*canvasOverflowMultiplier)*(180/Math.PI);const camera=new PerspectiveCamera(adjustedFOV,canvasWidth/canvasHeight,.1,1e3);// Base camera distance - keep it relatively fixed so sphere appears bigger when scaled\n// The sphere radius is 1.0 * scaleMultiplier, so we need camera at least at that distance + margin\nconst baseCameraDistance=3;const currentSphereRadius=1*scaleMultiplier;// Ensure camera is always outside the sphere with a safe margin\nconst cameraDistance=Math.max(baseCameraDistance,currentSphereRadius+1);camera.position.z=cameraDistance;cameraRef.current=camera;// Renderer setup - canvas is larger than container to prevent clipping\nconst renderer=new WebGLRenderer({antialias:true,alpha:true});renderer.setSize(canvasWidth,canvasHeight);renderer.setPixelRatio(Math.min(window.devicePixelRatio,2));renderer.outputColorSpace=\"srgb\";const canvas=renderer.domElement;canvas.style.position=\"absolute\";// Center the larger canvas within the container\nconst offsetX=(canvasWidth-containerWidth)/2;const offsetY=(canvasHeight-containerHeight)/2;canvas.style.left=`-${offsetX}px`;canvas.style.top=`-${offsetY}px`;canvas.style.width=`${canvasWidth}px`;canvas.style.height=`${canvasHeight}px`;canvas.style.display=\"block\";container.appendChild(canvas);rendererRef.current=renderer;// Parse color\nconst colorObj=new Color(sphereColor);// Create particles evenly distributed on sphere surface\nconst vertices=[];// Fibonacci sphere distribution for even spacing on sphere surface\n// This creates evenly distributed points on a unit sphere\nconst goldenAngle=Math.PI*(3-Math.sqrt(5))// Golden angle in radians\n;const baseSphereRadius=1// Base radius of the particle sphere\n;const sphereRadius=baseSphereRadius*scaleMultiplier// Scale the sphere\n;// Initialize base positions, displacements, and scatter velocities for cursor interaction\nbaseParticlePositionsRef.current=[];particleDisplacementsRef.current=[];particleScatterVelocitiesRef.current=[];// Resolve color tokens (CSS variables) and parse color properly\nconst resolvedSphereColor=resolveTokenColor(sphereColor);const sphereRgba=parseColorToRgba(resolvedSphereColor||sphereColor);// Use Color constructor with string for proper color space handling\n// Then apply the parsed RGB values to ensure opacity is extracted correctly\nconst baseColorObj=resolvedSphereColor?new Color(resolvedSphereColor):new Color(sphereRgba.r,sphereRgba.g,sphereRgba.b);const particleOpacity=sphereRgba.a;// Red color for displaced particles\nconst redColor=new Color(1,0,0);for(let i=0;i<particlesCount;i++){// Use golden angle spiral for even distribution\nconst y=1-i/(particlesCount-1)*2// y goes from 1 to -1\n;const radius=Math.sqrt(1-y*y)// Radius at y\n;const theta=goldenAngle*i// Golden angle increment\n;const x=Math.cos(theta)*radius;const z=Math.sin(theta)*radius;// Scale to sphere surface with scale multiplier\nconst posX=x*sphereRadius;const posY=y*sphereRadius;const posZ=z*sphereRadius;vertices.push(posX,posY,posZ);// Store base position and initialize displacement and scatter velocity\nbaseParticlePositionsRef.current.push(new Vector3(posX,posY,posZ));particleDisplacementsRef.current.push(new Vector3(0,0,0));particleScatterVelocitiesRef.current.push(new Vector3(0,0,0));}// Create particles based on shape\nconst particleShape=particlesConfig.shape||\"sphere\";let particles;if(particleShape===\"sphere\"){// Round particles using actual sphere geometries with InstancedMesh\n// Convert screen-space particle size to world-space radius to match visual size\nconst sphereRadius=particleSize*.15// Adjust this factor to match visual size\n;const sphereGeometry=new SphereGeometry(sphereRadius,8,8);// Use MeshBasicMaterial with AdditiveBlending for the glow effect\nconst sphereMaterial=new MeshBasicMaterial({color:16777215,blending:AdditiveBlending,transparent:particleOpacity<1,opacity:particleOpacity});particles=new InstancedMesh(sphereGeometry,sphereMaterial,particlesCount);// Set positions for each instance\nconst matrix=new Matrix4;for(let i=0;i<particlesCount;i++){const idx=i*3;matrix.setPosition(vertices[idx],vertices[idx+1],vertices[idx+2]);particles.setMatrixAt(i,matrix);}particles.instanceMatrix.needsUpdate=true;// Set up instance colors (per-instance coloring)\nconst instanceColors=new Float32Array(particlesCount*3);for(let i=0;i<particlesCount;i++){const idx=i*3;instanceColors[idx]=baseColorObj.r;instanceColors[idx+1]=baseColorObj.g;instanceColors[idx+2]=baseColorObj.b;}particles.instanceColor=new Float32BufferAttribute(instanceColors,3);sphereMaterial.vertexColors=false;particles.instanceColor.needsUpdate=true;}else{// Square particles using Points\nconst particlesGeometry=new BufferGeometry;particlesGeometry.setAttribute(\"position\",new Float32BufferAttribute(vertices,3));// Set up vertex colors (per-vertex coloring)\nconst colors=new Float32Array(particlesCount*3);for(let i=0;i<particlesCount;i++){const idx=i*3;colors[idx]=baseColorObj.r;colors[idx+1]=baseColorObj.g;colors[idx+2]=baseColorObj.b;}particlesGeometry.setAttribute(\"color\",new Float32BufferAttribute(colors,3));const particlesMaterial=new PointsMaterial({size:particleSize,color:16777215,blending:AdditiveBlending,depthTest:false,transparent:particleOpacity<1,opacity:particleOpacity,vertexColors:true});particles=new Points(particlesGeometry,particlesMaterial);}particlesRef.current=particles;// Create group to hold particles for rotation\nconst particlesGroup=new Group;particlesGroupRef.current=particlesGroup;particlesGroup.add(particles);scene.add(particlesGroup);// Rotation state - initialize\nconst rotation={x:0,y:0};const targetRotation={x:0,y:0};const velocity={x:0,y:0};let isDragging=false;let isHovering=false;let lastMouseX=0;let lastMouseY=0;let lastDragTime=0;let animationFrameId=null;// Delta time tracking for frame-rate independent animation\nlet lastFrameTime=performance.now();const targetDeltaTime=1e3/60// Reference delta time (60 FPS = 16.67ms)\n;// Lerp factor: smoothing 0 = instant (factor=1), smoothing 1 = very smooth (factor=0.03)\nconst lerpFactor=smoothing===0?1:mapLinear(smoothing,0,1,.4,.03);// Velocity decay for throw: higher smoothing = more momentum\nconst velocityDecay=mapLinear(smoothing,0,1,.7,.96);// Animation loop - uses cached isCanvas value for performance\nconst animate=()=>{// Continue with animation (component should always render to show changes)\nanimateCore();};// Core animation logic - uses delta time for frame-rate independent animation\nconst animateCore=()=>{const now=performance.now();// Calculate delta time and normalize it relative to 60 FPS\nconst deltaTime=now-lastFrameTime;lastFrameTime=now;const deltaFactor=deltaTime/targetDeltaTime;let needsRender=false;const threshold=.01;// Auto-rotation: add to target when not dragging and not hovering\n// In canvas mode, only rotate when preview is on\nconst canAutoRotate=isCanvas?previewRef.current:true;if(!isDragging&&rotationSpeed!==0&&canAutoRotate&&(!stopOnHover||!isHovering)){targetRotation.x+=rotationSpeed*.1*deltaFactor;}// Apply throw velocity when not dragging\nif(!isDragging&&smoothing>0){if(Math.abs(velocity.x)>threshold||Math.abs(velocity.y)>threshold){targetRotation.x+=velocity.x*deltaFactor;targetRotation.y+=velocity.y*deltaFactor;targetRotation.y=Math.max(-Math.PI/2,Math.min(Math.PI/2,targetRotation.y));const decayFactor=Math.pow(velocityDecay,deltaFactor);velocity.x*=decayFactor;velocity.y*=decayFactor;}else{velocity.x=0;velocity.y=0;}}// Lerp current rotation toward target\nconst dx=targetRotation.x-rotation.x;const dy=targetRotation.y-rotation.y;if(Math.abs(dx)>threshold||Math.abs(dy)>threshold||rotationSpeed!==0||isDragging){const timeLerpFactor=1-Math.pow(1-lerpFactor,deltaFactor);rotation.x+=dx*timeLerpFactor;rotation.y+=dy*timeLerpFactor;rotation.y=Math.max(-Math.PI/2,Math.min(Math.PI/2,rotation.y));needsRender=true;}// Apply rotation to group BEFORE cursor interaction (so matrix is current)\nparticlesGroup.rotation.y=rotation.x;particlesGroup.rotation.x=rotation.y;particlesGroup.updateMatrixWorld(true);// Get container and camera info for both cursor interaction and color updates\n// Use canvas dimensions for projection since mouse coordinates are in canvas space\nconst currentContainerWidth=containerRef.current?.clientWidth||400;const currentContainerHeight=containerRef.current?.clientHeight||400;const currentCanvasWidth=currentContainerWidth*canvasOverflowMultiplier;const currentCanvasHeight=currentContainerHeight*canvasOverflowMultiplier;const currentCamera=cameraRef.current;const cursorRadiusSquared=cursorRadius*cursorRadius;// Apply cursor repulsion to particles (only if enabled)\nif(cursorConfig.enabled&&baseParticlePositionsRef.current.length>0){for(let i=0;i<baseParticlePositionsRef.current.length;i++){const basePos=baseParticlePositionsRef.current[i];const displacement=particleDisplacementsRef.current[i];// Apply repulsion force only if cursor is present and near particle\nif(mouseRef.current){const mouse=mouseRef.current;// Calculate current position: base position + displacement, then rotated by group\nconst currentLocalPos=new Vector3;currentLocalPos.copy(basePos);currentLocalPos.add(displacement);// Transform to world space (apply group rotation)\nconst worldPos=new Vector3;worldPos.copy(currentLocalPos);worldPos.applyMatrix4(particlesGroup.matrixWorld);// Project 3D position to 2D screen space (using canvas dimensions)\nconst projected=worldPos.clone().project(currentCamera);const screenX=(projected.x*.5+.5)*currentCanvasWidth;const screenY=(-projected.y*.5+.5)*currentCanvasHeight;// Calculate distance from cursor to particle in screen space\nconst dx=mouse.x-screenX;const dy=mouse.y-screenY;const distanceSquared=dx*dx+dy*dy;if(distanceSquared<cursorRadiusSquared&&distanceSquared>0){// Apply repulsion force\nconst distance=Math.sqrt(distanceSquared);const force=(cursorRadius-distance)/cursorRadius;const angle=Math.atan2(dy,dx);// Get camera's right and up vectors in world space\nconst cameraRight=new Vector3;const cameraUp=new Vector3;cameraRight.setFromMatrixColumn(currentCamera.matrixWorld,0).normalize();cameraUp.setFromMatrixColumn(currentCamera.matrixWorld,1).normalize();// Calculate repulsion direction in screen space\nconst repulsion2D=force*cursorStrength*speed*deltaFactor;const repulsionX=-Math.cos(angle)*repulsion2D*.01;const repulsionY=Math.sin(angle)*repulsion2D*.01;// Convert screen space repulsion to world space, then to local space\nconst worldRepulsion=new Vector3;worldRepulsion.addScaledVector(cameraRight,repulsionX);worldRepulsion.addScaledVector(cameraUp,repulsionY);// Transform world repulsion back to local space (inverse of group rotation)\nconst localRepulsion=new Vector3;localRepulsion.copy(worldRepulsion);const inverseGroupMatrix=new Matrix4;inverseGroupMatrix.copy(particlesGroup.matrixWorld).invert();localRepulsion.applyMatrix4(inverseGroupMatrix);// Apply to displacement\ndisplacement.add(localRepulsion);}}// Always apply friction and return force to decay displacements (even when cursor is gone)\nconst frictionFactor=Math.pow(CURSOR_PHYSICS.FRICTION,deltaFactor);const returnForce=CURSOR_PHYSICS.RETURN_FORCE*speed*deltaFactor;// Apply friction (multiplicative decay)\ndisplacement.multiplyScalar(frictionFactor);// Apply return force (decay towards zero)\ndisplacement.multiplyScalar(1-returnForce);}}// Apply scatter velocities to displacements (spring-like effect)\nif(particleScatterVelocitiesRef.current.length>0){for(let i=0;i<particleScatterVelocitiesRef.current.length;i++){const scatterVelocity=particleScatterVelocitiesRef.current[i];const displacement=particleDisplacementsRef.current[i];// Apply velocity to displacement (frame-rate independent)\ndisplacement.addScaledVector(scatterVelocity,deltaFactor*.1);// Apply friction to scatter velocity (decay over time)\nconst scatterFriction=Math.pow(.95,deltaFactor);scatterVelocity.multiplyScalar(scatterFriction);// Apply return force to scatter velocity (spring back)\nconst scatterReturnForce=CURSOR_PHYSICS.RETURN_FORCE*speed*deltaFactor;scatterVelocity.multiplyScalar(1-scatterReturnForce);}}// Update particle positions and colors (ALWAYS, not just when cursor is enabled)\nconst particleShape=particlesConfig.shape||\"sphere\";if(particleShape===\"sphere\"&&particlesRef.current){// Update InstancedMesh positions\nconst matrix=new Matrix4;for(let i=0;i<baseParticlePositionsRef.current.length;i++){const basePos=baseParticlePositionsRef.current[i];const displacement=particleDisplacementsRef.current[i];const finalPos=new Vector3;finalPos.copy(basePos);finalPos.add(displacement);matrix.setPosition(finalPos.x,finalPos.y,finalPos.z);particlesRef.current.setMatrixAt(i,matrix);}particlesRef.current.instanceMatrix.needsUpdate=true;}else if(particleShape===\"cube\"&&particlesRef.current){// Update Points geometry positions and colors\nconst positions=particlesRef.current.geometry.attributes.position;for(let i=0;i<baseParticlePositionsRef.current.length;i++){const basePos=baseParticlePositionsRef.current[i];const displacement=particleDisplacementsRef.current[i];const finalPos=new Vector3;finalPos.copy(basePos);finalPos.add(displacement);positions.setXYZ(i,finalPos.x,finalPos.y,finalPos.z);}positions.needsUpdate=true;}needsRender=true;// Render every frame\nif(needsRender||rotationSpeed!==0||isDragging){renderer.render(scene,camera);}// Continue loop if animation is needed\nconst hasVelocity=Math.abs(velocity.x)>threshold||Math.abs(velocity.y)>threshold;const hasLerpDelta=Math.abs(dx)>threshold||Math.abs(dy)>threshold;// Check if cursor interaction is active (any non-zero displacements) - only if enabled\nconst hasCursorInteraction=cursorConfig.enabled&&particleDisplacementsRef.current.some(disp=>Math.abs(disp.x)>threshold||Math.abs(disp.y)>threshold||Math.abs(disp.z)>threshold);// In canvas mode, always continue animation so component is visible\n// In preview/live mode, only continue if there's actual animation\nconst canAutoRotateForContinue=isCanvas?previewRef.current:true;const needsContinue=isCanvas||// Always run in canvas mode for visibility\nisDragging||rotationSpeed!==0&&canAutoRotateForContinue||hasVelocity||hasLerpDelta||hasCursorInteraction;if(needsContinue){animationFrameId=requestAnimationFrame(animate);animationFrameRef.current=animationFrameId;}else{animationFrameId=null;animationFrameRef.current=null;}};// Store animate function in ref for preview effect to use\nanimateFnRef.current=animate;// Start animation loop - resets lastFrameTime to prevent delta jump\nconst startAnimation=()=>{if(animationFrameId===null){lastFrameTime=performance.now();animationFrameId=requestAnimationFrame(animate);animationFrameRef.current=animationFrameId;}};// Store startAnimation in ref for preview effect to use\nstartAnimationRef.current=startAnimation;// Always start animation to ensure component is visible and interactive\n// In canvas mode, rotation will be controlled by preview state\nstartAnimation();// Mouse interaction handlers (only if drag is enabled)\nconst handleMouseDown=event=>{if(!drag)return;isDragging=true;velocity.x=0;velocity.y=0;lastMouseX=event.clientX;lastMouseY=event.clientY;lastDragTime=performance.now();startAnimation();const handleMouseMove=moveEvent=>{const currentTime=performance.now();const timeSinceLastMove=currentTime-lastDragTime;const sensitivity=mapLinear(dragSpeed,0,1,.001,.02);const dx=moveEvent.clientX-lastMouseX;const dy=moveEvent.clientY-lastMouseY;targetRotation.x+=dx*sensitivity;targetRotation.y+=dy*sensitivity;targetRotation.y=Math.max(-Math.PI/2,Math.min(Math.PI/2,targetRotation.y));// Track velocity for throw - TIME NORMALIZED\nif(timeSinceLastMove>0){const timeNormalization=targetDeltaTime/timeSinceLastMove;velocity.x=dx*sensitivity*.3*timeNormalization;velocity.y=dy*sensitivity*.3*timeNormalization;}lastMouseX=moveEvent.clientX;lastMouseY=moveEvent.clientY;lastDragTime=currentTime;};const handleMouseUp=()=>{document.removeEventListener(\"mousemove\",handleMouseMove);document.removeEventListener(\"mouseup\",handleMouseUp);isDragging=false;};document.addEventListener(\"mousemove\",handleMouseMove);document.addEventListener(\"mouseup\",handleMouseUp);};if(drag){canvas.addEventListener(\"mousedown\",handleMouseDown);}// Handle hover to stop auto-rotation (only when cursor is over the sphere)\nconst handleMouseMoveHover=event=>{if(!stopOnHover)return;// Check if mouse is over the logical container area (not the extended canvas)\nconst containerRect=container.getBoundingClientRect();const mouseX=event.clientX-containerRect.left;const mouseY=event.clientY-containerRect.top;isHovering=mouseX>=0&&mouseX<=containerRect.width&&mouseY>=0&&mouseY<=containerRect.height;};if(stopOnHover){canvas.addEventListener(\"mousemove\",handleMouseMoveHover);}// Track cursor position for particle repulsion\n// Mouse coordinates need to be relative to the container center, then offset to canvas coordinates\nconst handleMouseMoveCursor=event=>{const containerRect=container.getBoundingClientRect();const mouseXInContainer=event.clientX-containerRect.left;const mouseYInContainer=event.clientY-containerRect.top;// Only track if mouse is over the logical container area\nif(mouseXInContainer>=0&&mouseXInContainer<=containerRect.width&&mouseYInContainer>=0&&mouseYInContainer<=containerRect.height){// Convert container coordinates to canvas coordinates (add offset)\nmouseRef.current={x:mouseXInContainer+offsetX,y:mouseYInContainer+offsetY};// Start animation if not running (needed for cursor interaction to work)\nstartAnimation();}else{mouseRef.current=null;}};const handleMouseLeaveCursor=()=>{mouseRef.current=null;};// Track touch position for particle repulsion\nconst handleTouchMove=event=>{event.preventDefault()// Prevent scrolling\n;const containerRect=container.getBoundingClientRect();const touch=event.touches[0];if(touch){const touchXInContainer=touch.clientX-containerRect.left;const touchYInContainer=touch.clientY-containerRect.top;// Only track if touch is over the logical container area\nif(touchXInContainer>=0&&touchXInContainer<=containerRect.width&&touchYInContainer>=0&&touchYInContainer<=containerRect.height){// Convert container coordinates to canvas coordinates (add offset)\nmouseRef.current={x:touchXInContainer+offsetX,y:touchYInContainer+offsetY};// Start animation if not running (needed for cursor interaction to work)\nstartAnimation();}else{mouseRef.current=null;}}};const handleTouchEnd=()=>{mouseRef.current=null;};// Click scatter effect handler\nconst handleClick=event=>{if(!cursorConfig.enabled||!cursorConfig.clickForce)return;// Update matrix to ensure it's current\nparticlesGroup.updateMatrixWorld(true);const containerRect=container.getBoundingClientRect();// Convert container coordinates to canvas coordinates (add offset)\nconst clickX=event.clientX-containerRect.left+offsetX;const clickY=event.clientY-containerRect.top+offsetY;const cursorRadiusSquared=cursorRadius*cursorRadius;const clickForce=cursorConfig.clickForce||10;const clickContainerWidth=containerRef.current?.clientWidth||400;const clickContainerHeight=containerRef.current?.clientHeight||400;const clickCanvasWidth=clickContainerWidth*canvasOverflowMultiplier;const clickCanvasHeight=clickContainerHeight*canvasOverflowMultiplier;const currentCamera=cameraRef.current;// Convert click point from screen space to 3D world space\n// Normalize click coordinates to NDC (Normalized Device Coordinates) using canvas dimensions\nconst ndcX=clickX/clickCanvasWidth*2-1;const ndcY=1-clickY/clickCanvasHeight*2;// Create a ray from camera through the click point\nconst clickRay=new Vector3(ndcX,ndcY,.5);clickRay.unproject(currentCamera);// Get camera position in world space\nconst cameraWorldPos=new Vector3;cameraWorldPos.setFromMatrixPosition(currentCamera.matrixWorld);// Calculate direction from camera through click point\nconst clickDirection=new Vector3;clickDirection.subVectors(clickRay,cameraWorldPos).normalize();// Estimate click point in world space (at sphere distance)\nconst sphereCenter=new Vector3(0,0,0);const cameraToCenter=new Vector3;cameraToCenter.subVectors(sphereCenter,cameraWorldPos);const sphereDistance=cameraToCenter.length();const clickWorldPos=new Vector3;clickWorldPos.copy(cameraWorldPos);clickWorldPos.addScaledVector(clickDirection,sphereDistance);// Apply scatter velocity to particles (velocity-based, radial in 3D)\nfor(let i=0;i<baseParticlePositionsRef.current.length;i++){const basePos=baseParticlePositionsRef.current[i];const displacement=particleDisplacementsRef.current[i];const scatterVelocity=particleScatterVelocitiesRef.current[i];// Calculate current position: base position + displacement, then rotated by group\nconst currentLocalPos=new Vector3;currentLocalPos.copy(basePos);currentLocalPos.add(displacement);// Transform to world space (apply group rotation)\nconst worldPos=new Vector3;worldPos.copy(currentLocalPos);worldPos.applyMatrix4(particlesGroup.matrixWorld);// Project 3D position to 2D screen space for distance check (using canvas dimensions)\nconst projected=worldPos.clone().project(currentCamera);const screenX=(projected.x*.5+.5)*clickCanvasWidth;const screenY=(-projected.y*.5+.5)*clickCanvasHeight;// Calculate distance from click point to particle in screen space\nconst dx=clickX-screenX;const dy=clickY-screenY;const distanceSquared=dx*dx+dy*dy;if(distanceSquared<cursorRadiusSquared&&distanceSquared>0){// Calculate scatter force based on screen distance\nconst screenDistance=Math.sqrt(distanceSquared);const force=(cursorRadius-screenDistance)/cursorRadius*clickForce;// Calculate radial direction in 3D: from click point to particle\nconst radialDirection=new Vector3;radialDirection.subVectors(worldPos,clickWorldPos);const radialDistance=radialDirection.length();if(radialDistance>.001){radialDirection.normalize();// Apply scatter velocity along radial direction (in world space)\nconst scatterMagnitude=force*.5// Velocity multiplier\n;const worldScatter=new Vector3;worldScatter.copy(radialDirection);worldScatter.multiplyScalar(scatterMagnitude);// Transform world scatter back to local space (inverse of group rotation)\nconst localScatter=new Vector3;localScatter.copy(worldScatter);const inverseGroupMatrix=new Matrix4;inverseGroupMatrix.copy(particlesGroup.matrixWorld).invert();localScatter.applyMatrix4(inverseGroupMatrix);// Set scatter velocity (adds to existing velocity for momentum)\nscatterVelocity.add(localScatter);}}}// Start animation to ensure scatter effect is visible\nstartAnimation();};// Touch scatter effect handler\nconst handleTouchStart=event=>{if(!cursorConfig.enabled||!cursorConfig.clickForce)return;event.preventDefault();// Update matrix to ensure it's current\nparticlesGroup.updateMatrixWorld(true);const containerRect=container.getBoundingClientRect();const touch=event.touches[0];if(!touch)return;// Convert container coordinates to canvas coordinates (add offset)\nconst touchX=touch.clientX-containerRect.left+offsetX;const touchY=touch.clientY-containerRect.top+offsetY;const cursorRadiusSquared=cursorRadius*cursorRadius;const clickForce=cursorConfig.clickForce||10;const touchContainerWidth=containerRef.current?.clientWidth||400;const touchContainerHeight=containerRef.current?.clientHeight||400;const touchCanvasWidth=touchContainerWidth*canvasOverflowMultiplier;const touchCanvasHeight=touchContainerHeight*canvasOverflowMultiplier;const currentCamera=cameraRef.current;// Convert touch point from screen space to 3D world space\n// Normalize touch coordinates to NDC (Normalized Device Coordinates) using canvas dimensions\nconst ndcX=touchX/touchCanvasWidth*2-1;const ndcY=1-touchY/touchCanvasHeight*2;// Create a ray from camera through the touch point\nconst touchRay=new Vector3(ndcX,ndcY,.5);touchRay.unproject(currentCamera);// Get camera position in world space\nconst cameraWorldPos=new Vector3;cameraWorldPos.setFromMatrixPosition(currentCamera.matrixWorld);// Calculate direction from camera through touch point\nconst touchDirection=new Vector3;touchDirection.subVectors(touchRay,cameraWorldPos).normalize();// Estimate touch point in world space (at sphere distance)\nconst sphereCenter=new Vector3(0,0,0);const cameraToCenter=new Vector3;cameraToCenter.subVectors(sphereCenter,cameraWorldPos);const sphereDistance=cameraToCenter.length();const touchWorldPos=new Vector3;touchWorldPos.copy(cameraWorldPos);touchWorldPos.addScaledVector(touchDirection,sphereDistance);// Apply scatter velocity to particles (velocity-based, radial in 3D)\nfor(let i=0;i<baseParticlePositionsRef.current.length;i++){const basePos=baseParticlePositionsRef.current[i];const displacement=particleDisplacementsRef.current[i];const scatterVelocity=particleScatterVelocitiesRef.current[i];// Calculate current position: base position + displacement, then rotated by group\nconst currentLocalPos=new Vector3;currentLocalPos.copy(basePos);currentLocalPos.add(displacement);// Transform to world space (apply group rotation)\nconst worldPos=new Vector3;worldPos.copy(currentLocalPos);worldPos.applyMatrix4(particlesGroup.matrixWorld);// Project 3D position to 2D screen space for distance check (using canvas dimensions)\nconst projected=worldPos.clone().project(currentCamera);const screenX=(projected.x*.5+.5)*touchCanvasWidth;const screenY=(-projected.y*.5+.5)*touchCanvasHeight;// Calculate distance from touch point to particle in screen space\nconst dx=touchX-screenX;const dy=touchY-screenY;const distanceSquared=dx*dx+dy*dy;if(distanceSquared<cursorRadiusSquared&&distanceSquared>0){// Calculate scatter force based on screen distance\nconst screenDistance=Math.sqrt(distanceSquared);const force=(cursorRadius-screenDistance)/cursorRadius*clickForce;// Calculate radial direction in 3D: from touch point to particle\nconst radialDirection=new Vector3;radialDirection.subVectors(worldPos,touchWorldPos);const radialDistance=radialDirection.length();if(radialDistance>.001){radialDirection.normalize();// Apply scatter velocity along radial direction (in world space)\nconst scatterMagnitude=force*.5// Velocity multiplier\n;const worldScatter=new Vector3;worldScatter.copy(radialDirection);worldScatter.multiplyScalar(scatterMagnitude);// Transform world scatter back to local space (inverse of group rotation)\nconst localScatter=new Vector3;localScatter.copy(worldScatter);const inverseGroupMatrix=new Matrix4;inverseGroupMatrix.copy(particlesGroup.matrixWorld).invert();localScatter.applyMatrix4(inverseGroupMatrix);// Set scatter velocity (adds to existing velocity for momentum)\nscatterVelocity.add(localScatter);}}}// Start animation to ensure scatter effect is visible\nstartAnimation();};// Only add cursor interaction event listeners if enabled\nif(cursorConfig.enabled){canvas.addEventListener(\"mousemove\",handleMouseMoveCursor);canvas.addEventListener(\"mouseleave\",handleMouseLeaveCursor);canvas.addEventListener(\"click\",handleClick);canvas.addEventListener(\"touchmove\",handleTouchMove,{passive:false});canvas.addEventListener(\"touchstart\",handleTouchStart,{passive:false});canvas.addEventListener(\"touchend\",handleTouchEnd);canvas.addEventListener(\"touchcancel\",handleTouchEnd);}// Resize handler\nconst handleResize=()=>{if(!containerRef.current||!cameraRef.current||!rendererRef.current)return;const newWidth=containerRef.current.clientWidth||containerRef.current.offsetWidth||400;const newHeight=containerRef.current.clientHeight||containerRef.current.offsetHeight||400;// Calculate new canvas dimensions with overflow\nconst newCanvasWidth=newWidth*canvasOverflowMultiplier;const newCanvasHeight=newHeight*canvasOverflowMultiplier;const newOffsetX=(newCanvasWidth-newWidth)/2;const newOffsetY=(newCanvasHeight-newHeight)/2;cameraRef.current.aspect=newCanvasWidth/newCanvasHeight// Use canvas aspect ratio\n;cameraRef.current.updateProjectionMatrix();// Update camera distance based on scale - ensure it stays outside sphere\nconst baseCameraDistance=3;const currentSphereRadius=1*scaleMultiplier;const cameraDistance=Math.max(baseCameraDistance,currentSphereRadius+1);cameraRef.current.position.z=cameraDistance;// Update canvas size and position\nrendererRef.current.setSize(newCanvasWidth,newCanvasHeight);const canvasEl=rendererRef.current.domElement;canvasEl.style.left=`-${newOffsetX}px`;canvasEl.style.top=`-${newOffsetY}px`;canvasEl.style.width=`${newCanvasWidth}px`;canvasEl.style.height=`${newCanvasHeight}px`;rendererRef.current.render(sceneRef.current,cameraRef.current);};// Canvas resize detection using zoom probe\nif(isCanvas&&typeof window!==\"undefined\"){const TICK_MS=250// throttle to 4Hz\n;const EPS_ZOOM=.001;const EPS_SIZE=.5;const EPS_ASPECT=.001;let rafId=0;const tick=now=>{const probe=zoomProbeRef.current;if(probe&&containerRef.current){const currentZoom=probe.getBoundingClientRect().width/20;const rect=containerRef.current.getBoundingClientRect();const cw=rect.width;const ch=rect.height;const aspect=cw/ch;const timeOk=!lastResizeRef.current.ts||(now||performance.now())-lastResizeRef.current.ts>=TICK_MS;const zoomChanged=Math.abs(currentZoom-lastResizeRef.current.zoom)>EPS_ZOOM;const sizeChanged=Math.abs(cw-lastResizeRef.current.w)>EPS_SIZE||Math.abs(ch-lastResizeRef.current.h)>EPS_SIZE;const aspectChanged=Math.abs(aspect-lastResizeRef.current.aspect)>EPS_ASPECT;if(timeOk&&(zoomChanged||sizeChanged||aspectChanged)){lastResizeRef.current={ts:now||performance.now(),zoom:currentZoom,w:cw,h:ch,aspect};handleResize();}}rafId=requestAnimationFrame(tick);};rafId=requestAnimationFrame(tick);// Cleanup for canvas mode\nreturn()=>{cancelAnimationFrame(rafId);if(animationFrameId!==null){cancelAnimationFrame(animationFrameId);}if(animationFrameRef.current){cancelAnimationFrame(animationFrameRef.current);}if(drag){canvas.removeEventListener(\"mousedown\",handleMouseDown);}if(stopOnHover){canvas.removeEventListener(\"mousemove\",handleMouseMoveHover);}// Remove cursor interaction event listeners if they were added\nif(cursorConfig.enabled){canvas.removeEventListener(\"mousemove\",handleMouseMoveCursor);canvas.removeEventListener(\"mouseleave\",handleMouseLeaveCursor);canvas.removeEventListener(\"click\",handleClick);canvas.removeEventListener(\"touchmove\",handleTouchMove);canvas.removeEventListener(\"touchstart\",handleTouchStart);canvas.removeEventListener(\"touchend\",handleTouchEnd);canvas.removeEventListener(\"touchcancel\",handleTouchEnd);}if(rendererRef.current){rendererRef.current.dispose();if(containerRef.current&&canvas.parentNode){containerRef.current.removeChild(canvas);}}if(particlesRef.current){if(particlesRef.current.geometry){particlesRef.current.geometry.dispose();}if(particlesRef.current.material){if(Array.isArray(particlesRef.current.material)){particlesRef.current.material.forEach(mat=>mat.dispose());}else{particlesRef.current.material.dispose();}}}};}// Preview/Live: use ResizeObserver\nconst resizeObserver=new ResizeObserver(()=>handleResize());resizeObserver.observe(container);window.addEventListener(\"resize\",handleResize);// Cleanup for preview/live mode\nreturn()=>{resizeObserver.disconnect();window.removeEventListener(\"resize\",handleResize);if(animationFrameId!==null){cancelAnimationFrame(animationFrameId);}if(animationFrameRef.current){cancelAnimationFrame(animationFrameRef.current);}if(drag){canvas.removeEventListener(\"mousedown\",handleMouseDown);}if(stopOnHover){canvas.removeEventListener(\"mousemove\",handleMouseMoveHover);}// Remove cursor interaction event listeners if they were added\nif(cursorConfig.enabled){canvas.removeEventListener(\"mousemove\",handleMouseMoveCursor);canvas.removeEventListener(\"mouseleave\",handleMouseLeaveCursor);canvas.removeEventListener(\"click\",handleClick);canvas.removeEventListener(\"touchmove\",handleTouchMove);canvas.removeEventListener(\"touchstart\",handleTouchStart);canvas.removeEventListener(\"touchend\",handleTouchEnd);canvas.removeEventListener(\"touchcancel\",handleTouchEnd);}if(rendererRef.current){rendererRef.current.dispose();if(containerRef.current&&canvas.parentNode){containerRef.current.removeChild(canvas);}}if(particlesRef.current){if(particlesRef.current.geometry){particlesRef.current.geometry.dispose();}if(particlesRef.current.material){if(Array.isArray(particlesRef.current.material)){particlesRef.current.material.forEach(mat=>mat.dispose());}else{particlesRef.current.material.dispose();}}}};},[particlesCount,speed,smoothing,scale,stopOnHover,rotationDirection,dragSpeed,drag,particlesConfig,cursorConfig,cursorRadius,cursorStrength,sphereColor,rotationSpeed,scaleMultiplier,particleSize,isCanvas]);// Handle preview changes - restart animation loop when preview toggles (CANVAS MODE ONLY)\nconst previewForAnimation=isCanvas?preview:false;useEffect(()=>{if(!isCanvas)return;// Canvas mode only: If preview turned ON and animation is stopped, restart it\n// Use startAnimationRef to properly reset frame time and prevent delta jump\nif(preview&&startAnimationRef.current&&animationFrameRef.current===null){startAnimationRef.current();}},[previewForAnimation,isCanvas]);// Container styles\nconst containerStyle={...style,position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",overflow:\"visible\"};return /*#__PURE__*/_jsxs(\"div\",{style:containerStyle,children:[/*#__PURE__*/_jsx(\"div\",{ref:zoomProbeRef,style:{position:\"absolute\",width:20,height:20,opacity:0,pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"visible\"}})]});}// Property Controls\naddPropertyControls(ParticleSphereRefactor,{preview:{type:ControlType.Boolean,title:\"Preview\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},particlesCount:{type:ControlType.Number,title:\"Count\",min:100,max:1e4,step:10,defaultValue:4e3},rotationDirection:{type:ControlType.Enum,title:\"Rotation\",options:[\"anticlockwise\",\"clockwise\"],optionIcons:[\"direction-left\",\"direction-right\"],optionTitles:[\"Anticlockwise\",\"Clockwise\"],defaultValue:\"clockwise\",displaySegmentedControl:true},speed:{type:ControlType.Number,title:\"Speed\",min:.1,max:1,step:.1,defaultValue:.5},drag:{type:ControlType.Boolean,title:\"Drag\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},smoothing:{type:ControlType.Number,title:\"Smoothing\",min:0,max:1,step:.1,defaultValue:1,hidden:props=>!props.drag},dragSpeed:{type:ControlType.Number,title:\"Drag Speed\",min:0,max:1,step:.1,defaultValue:.5,hidden:props=>!props.drag},stopOnHover:{type:ControlType.Boolean,title:\"On Hover\",defaultValue:true,enabledTitle:\"Stop\",disabledTitle:\"Rotate\"},scale:{type:ControlType.Number,title:\"Scale\",min:0,max:1,step:.1,defaultValue:1},particles:{title:\"Particles\",type:ControlType.Object,controls:{shape:{type:ControlType.Enum,title:\"Shape\",options:[\"sphere\",\"cube\"],optionTitles:[\"Sphere\",\"Cube\"],defaultValue:\"sphere\"},scale:{type:ControlType.Number,title:\"Size\",min:.1,max:1,step:.1,defaultValue:.3}}},cursorConfig:{type:ControlType.Object,title:\"Cursor\",controls:{enabled:{type:ControlType.Boolean,title:\"Enabled\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},radius:{type:ControlType.Number,title:\"Radius\",min:0,max:600,step:10,defaultValue:75,unit:\"px\"},strength:{type:ControlType.Number,title:\"Strength\",min:0,max:1,step:.1,defaultValue:1},clickForce:{type:ControlType.Number,title:\"Click Force\",min:0,max:10,step:1,defaultValue:5}}},sphereColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#ffffff\",description:\"More components at [Framer University](https://frameruni.link/cc).\"}});ParticleSphereRefactor.displayName=\"Particle Sphere\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ParticleSphereRefactor\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"500\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"500\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ParticlesSphere_prod.map"],"mappings":"A,+WACwG,SAAS+B,EAAoB,EAAO,CAAC,GAAG,CAACC,GAAQ,CAACA,EAAO,WAAW,MAAM,EAAE,OAAOA,EAAO,IAAMC,EAAMC,EAAiB,KAAKF,CAAM,EAAE,GAAG,CAACC,EAAM,OAAOD,EAAO,IAAMG,GAAUF,EAAM,IAAI,GAAA,CAAI,KAAK,EAAsE,OAAjEE,EAAS,WAAW,MAAM,EAASJ,EAAoBI,CAAQ,EAASA,GAAUH,CAAO,CAAC,SAASI,GAAkB,EAAM,CAAmF,OAA/E,OAAOC,GAAQ,UAAyB,CAACA,EAAM,WAAW,MAAM,EAASA,EAAaN,EAAoBM,CAAK,CAAE,CAC5hB,SAASC,GAAiB,EAAM,CAAC,GAAG,CAACD,GAAOA,EAAM,KAAK,IAAI,GAAG,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,IAAME,EAAIF,EAAM,KAAK,EACrGG,EAAUD,EAAI,MAAM,4EAA4E,EAAE,GAAGC,EAA4R,MAAM,CAAC,EAAhR,KAAK,IAAI,EAAE,KAAK,IAAI,IAAI,WAAWA,EAAU,EAAE,CAAC,CAAC,EAAE,IAA+N,EAAnN,KAAK,IAAI,EAAE,KAAK,IAAI,IAAI,WAAWA,EAAU,EAAE,CAAC,CAAC,EAAE,IAAkK,EAAtJ,KAAK,IAAI,EAAE,KAAK,IAAI,IAAI,WAAWA,EAAU,EAAE,CAAC,CAAC,EAAE,IAAqG,EAAzFA,EAAU,KAAK,IAAA,GAA2D,EAAjD,KAAK,IAAI,EAAE,KAAK,IAAI,EAAE,WAAWA,EAAU,EAAE,CAAC,CAAC,CAAkB,EACrZ,IAAMC,EAAIF,EAAI,QAAQ,KAAK,EAAE,EAA+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