{"version":3,"file":"InfiniteCanvas_prod.DLErQInF.mjs","names":["useRef","p"],"sources":["https:/framerusercontent.com/modules/b6DbxlA6jlDykDBUWrr2/9TjPr8EZdzbfrhpGkfpx/InfiniteCanvas_prod.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * Linear mapping function: Maps UI values to internal values\n * UI 0.1-1 → Internal 0.1-2\n */function mapLinear(value,inMin,inMax,outMin,outMax){if(inMax===inMin)return outMin;const t=(value-inMin)/(inMax-inMin);return outMin+t*(outMax-outMin);}/**\n * Maps speed UI values (0.1-1) to internal values (0.1-2)\n * UI 0.1 → Internal 0.1\n * UI 1.0 → Internal 2.0\n */function mapSpeedUiToInternal(ui){const clamped=Math.max(.1,Math.min(1,ui));return mapLinear(clamped,.1,1,.1,2);}/**\n * Maps ease UI values (0-1) to internal values (0.01-0.2)\n * UI 0 → Internal 0.01 (smoother)\n * UI 1 → Internal 0.2 (snappier)\n */function mapEaseUiToInternal(ui){const clamped=Math.max(0,Math.min(1,ui));return mapLinear(clamped,0,1,.01,.2);}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n * @framerDisableUnlink\n */export default function InfiniteCanvas({scrollSpeed=.4,dragSpeed=.5,ease=.3,parallax={enabled:true,general:1,child:1},enableDrag=true,style}){// Map UI values to internal values\nconst internalScrollSpeed=mapSpeedUiToInternal(scrollSpeed);const internalDragSpeed=mapSpeedUiToInternal(dragSpeed);const internalEase=mapEaseUiToInternal(ease);const containerRef=useRef(null);const parentElementRef=useRef(null);// Store groups of elements (real + clones) and their tracked positions\nconst elementGroupsRef=useRef([]);const scroll=useRef({ease:internalEase,current:{x:0,y:0},target:{x:0,y:0},last:{x:0,y:0},delta:{x:{c:0,t:0},y:{c:0,t:0}}});const isDragging=useRef(false);const drag=useRef({startX:0,startY:0,scrollX:0,scrollY:0});const mouse=useRef({x:{t:.5,c:.5},y:{t:.5,c:.5},press:{t:0,c:0}});const winW=useRef(typeof window!==\"undefined\"?window.innerWidth:1920);const winH=useRef(typeof window!==\"undefined\"?window.innerHeight:1080);const parentDimensions=useRef({width:0,height:0,tileSizeW:0,tileSizeH:0});const rafId=useRef(null);const resizeTimeoutId=useRef(null);// Initialize the infinite canvas with element duplication\nconst initializeInfiniteCanvas=parentElement=>{// Store initial window dimensions\nif(typeof window!==\"undefined\"){winW.current=window.innerWidth;winH.current=window.innerHeight;}// Get parent container dimensions for precise tiling\nconst parentRect=parentElement.getBoundingClientRect();const parentWidth=parentRect.width;const parentHeight=parentRect.height;// Find all direct children of parent element (these are the base elements)\nconst baseChildren=Array.from(parentElement.children).filter(child=>child!==containerRef.current?.parentElement);// Create 2x2 grid of duplicates (exactly like infinite-grid.js)\n// repsX = [0, parentW] and repsY = [0, parentH]\nconst repsX=[0,parentWidth];const repsY=[0,parentHeight];elementGroupsRef.current=[];baseChildren.forEach(baseChild=>{// STEP 1: Capture the element's current position relative to parent\nconst rect=baseChild.getBoundingClientRect();const baseX=rect.left-parentRect.left;const baseY=rect.top-parentRect.top;const width=rect.width;const height=rect.height;// STEP 2: Generate random ease value (for parallax variation)\nconst elementEase=Math.random()*.5+.5;// STEP 3: Create clones and positions\nconst clones=[];const positions=[];// Save original styles to restore later\nconst originalStyles={position:baseChild.style.position,left:baseChild.style.left,top:baseChild.style.top,width:baseChild.style.width,height:baseChild.style.height,margin:baseChild.style.margin,transform:baseChild.style.transform};// Create 3 clones (since we need 4 items total for 2x2 grid)\n// We will dynamically assign the Real Element to the most visible position\nfor(let i=0;i<3;i++){const clone=baseChild.cloneNode(true);parentElement.appendChild(clone);// Setup clone styles\nclone.style.position=\"absolute\";clone.style.left=\"0\";clone.style.top=\"0\";clone.style.width=`${width}px`;clone.style.height=`${height}px`;clone.style.margin=\"0\";clone.style.willChange=\"transform\";clones.push(clone);}// Normalize Real Element to behave like a clone (controlled via transform only)\nbaseChild.style.position=\"absolute\";baseChild.style.left=\"0\";baseChild.style.top=\"0\";baseChild.style.width=`${width}px`;baseChild.style.height=`${height}px`;baseChild.style.margin=\"0\";baseChild.style.willChange=\"transform\";// Create positions for 2x2 grid\nrepsX.forEach(offsetX=>{repsY.forEach(offsetY=>{positions.push({x:baseX+offsetX,y:baseY+offsetY,width,height,extraX:0,extraY:0,ease:elementEase,baseElement:baseChild});});});elementGroupsRef.current.push({baseElement:baseChild,realElement:baseChild,clones,positions,lastActiveIndex:-1,originalStyles});});// Reset scroll position\nscroll.current.current={x:0,y:0};scroll.current.target={x:0,y:0};scroll.current.last={x:0,y:0};// Store doubled tile size for wrapping\nconst tileSizeW=parentWidth*2;const tileSizeH=parentHeight*2;parentDimensions.current={width:parentWidth,height:parentHeight,tileSizeW,tileSizeH};};// Cleanup function\nconst cleanupInfiniteCanvas=()=>{// Cleanup: Remove all cloned elements and restore original styles\nelementGroupsRef.current.forEach(group=>{// Remove clones\ngroup.clones.forEach(clone=>{if(clone.parentNode){clone.parentNode.removeChild(clone);}});// Restore original element styles\nconst el=group.realElement;el.style.position=group.originalStyles.position;el.style.left=group.originalStyles.left;el.style.top=group.originalStyles.top;el.style.width=group.originalStyles.width;el.style.height=group.originalStyles.height;el.style.margin=group.originalStyles.margin;el.style.transform=group.originalStyles.transform;el.style.willChange=\"\";el.style.opacity=\"\";el.style.pointerEvents=\"\";const firstChild=el.firstElementChild;if(firstChild)firstChild.style.transform=\"\";});elementGroupsRef.current=[];};// Find parent element and initialize tracked elements\nuseEffect(()=>{if(RenderTarget.current()===RenderTarget.canvas)return;const container=containerRef.current;if(!container)return;// Find parent element 2 levels up (Framer wraps code components)\nlet parentElement=container.parentElement;if(parentElement){parentElement=parentElement.parentElement;}if(!parentElement)return;parentElementRef.current=parentElement;// Initialize the infinite canvas\ninitializeInfiniteCanvas(parentElement);// Handle window resize\nconst handleWindowResize=()=>{if(typeof window!==\"undefined\"){winW.current=window.innerWidth;winH.current=window.innerHeight;}};// Handle parent element resize (debounced)\nconst handleParentResize=()=>{// Clear existing timeout\nif(resizeTimeoutId.current!==null){clearTimeout(resizeTimeoutId.current);}// Set new timeout for 100ms debounce\nresizeTimeoutId.current=window.setTimeout(()=>{if(parentElement){// Cleanup existing elements\ncleanupInfiniteCanvas();// Re-initialize with new dimensions\ninitializeInfiniteCanvas(parentElement);}resizeTimeoutId.current=null;},100);};// Set up ResizeObserver for parent element\nlet resizeObserver=null;if(typeof ResizeObserver!==\"undefined\"){resizeObserver=new ResizeObserver(handleParentResize);resizeObserver.observe(parentElement);}window.addEventListener(\"resize\",handleWindowResize);return()=>{window.removeEventListener(\"resize\",handleWindowResize);if(resizeObserver){resizeObserver.disconnect();}// Clear any pending resize timeout\nif(resizeTimeoutId.current!==null){clearTimeout(resizeTimeoutId.current);resizeTimeoutId.current=null;}cleanupInfiniteCanvas();};},[]);// Handle wheel events for scrolling\nuseEffect(()=>{if(RenderTarget.current()===RenderTarget.canvas)return;const parentElement=parentElementRef.current;if(!parentElement)return;const handleWheel=e=>{e.preventDefault();scroll.current.target.x-=e.deltaX*internalScrollSpeed;scroll.current.target.y-=e.deltaY*internalScrollSpeed;};window.addEventListener(\"wheel\",handleWheel,{passive:false});return()=>{window.removeEventListener(\"wheel\",handleWheel);};},[scrollSpeed]);// Handle drag events\nuseEffect(()=>{if(RenderTarget.current()===RenderTarget.canvas)return;const parentElement=parentElementRef.current;if(!parentElement||!enableDrag)return;const handleMouseDown=e=>{e.preventDefault();isDragging.current=true;document.documentElement.classList.add(\"dragging\");mouse.current.press.t=1;drag.current.startX=e.clientX;drag.current.startY=e.clientY;drag.current.scrollX=scroll.current.target.x;drag.current.scrollY=scroll.current.target.y;};const handleMouseUp=()=>{isDragging.current=false;document.documentElement.classList.remove(\"dragging\");mouse.current.press.t=0;};const handleMouseMove=e=>{mouse.current.x.t=e.clientX/winW.current;mouse.current.y.t=e.clientY/winH.current;if(isDragging.current){const dx=e.clientX-drag.current.startX;const dy=e.clientY-drag.current.startY;scroll.current.target.x=drag.current.scrollX+dx*internalDragSpeed;scroll.current.target.y=drag.current.scrollY+dy*internalDragSpeed;}};// Touch event handlers\nconst handleTouchStart=e=>{if(e.touches.length===1){const touch=e.touches[0];isDragging.current=true;mouse.current.press.t=1;drag.current.startX=touch.clientX;drag.current.startY=touch.clientY;drag.current.scrollX=scroll.current.target.x;drag.current.scrollY=scroll.current.target.y;}};const handleTouchEnd=()=>{isDragging.current=false;mouse.current.press.t=0;};const handleTouchMove=e=>{if(e.touches.length===1&&isDragging.current){e.preventDefault();const touch=e.touches[0];mouse.current.x.t=touch.clientX/winW.current;mouse.current.y.t=touch.clientY/winH.current;const dx=touch.clientX-drag.current.startX;const dy=touch.clientY-drag.current.startY;scroll.current.target.x=drag.current.scrollX+dx*internalDragSpeed;scroll.current.target.y=drag.current.scrollY+dy*internalDragSpeed;}};parentElement.addEventListener(\"mousedown\",handleMouseDown);window.addEventListener(\"mouseup\",handleMouseUp);window.addEventListener(\"mousemove\",handleMouseMove);parentElement.addEventListener(\"touchstart\",handleTouchStart,{passive:true});window.addEventListener(\"touchend\",handleTouchEnd);window.addEventListener(\"touchmove\",handleTouchMove,{passive:false});return()=>{parentElement.removeEventListener(\"mousedown\",handleMouseDown);window.removeEventListener(\"mouseup\",handleMouseUp);window.removeEventListener(\"mousemove\",handleMouseMove);parentElement.removeEventListener(\"touchstart\",handleTouchStart);window.removeEventListener(\"touchend\",handleTouchEnd);window.removeEventListener(\"touchmove\",handleTouchMove);};},[enableDrag,dragSpeed]);// Update ease value when prop changes\nuseEffect(()=>{if(RenderTarget.current()===RenderTarget.canvas)return;scroll.current.ease=mapEaseUiToInternal(ease);},[ease]);// Animation loop\nconst render=()=>{if(RenderTarget.current()===RenderTarget.canvas)return;// Smooth scroll interpolation\nscroll.current.current.x+=(scroll.current.target.x-scroll.current.current.x)*scroll.current.ease;scroll.current.current.y+=(scroll.current.target.y-scroll.current.current.y)*scroll.current.ease;// Calculate scroll delta for parallax\nscroll.current.delta.x.t=scroll.current.current.x-scroll.current.last.x;scroll.current.delta.y.t=scroll.current.current.y-scroll.current.last.y;scroll.current.delta.x.c+=(scroll.current.delta.x.t-scroll.current.delta.x.c)*.04;scroll.current.delta.y.c+=(scroll.current.delta.y.t-scroll.current.delta.y.c)*.04;// Smooth mouse interpolation\nmouse.current.x.c+=(mouse.current.x.t-mouse.current.x.c)*.04;mouse.current.y.c+=(mouse.current.y.t-mouse.current.y.c)*.04;mouse.current.press.c+=(mouse.current.press.t-mouse.current.press.c)*.04;const dirX=scroll.current.current.x>scroll.current.last.x?\"right\":\"left\";const dirY=scroll.current.current.y>scroll.current.last.y?\"down\":\"up\";const scrollX=scroll.current.current.x;const scrollY=scroll.current.current.y;const parentW=parentDimensions.current.width;const parentH=parentDimensions.current.height;const tileW=parentDimensions.current.tileSizeW;const tileH=parentDimensions.current.tileSizeH;const centerX=winW.current/2;const centerY=winH.current/2;// Mouse position in pixels (approximate)\nconst mousePX=mouse.current.x.t*winW.current;const mousePY=mouse.current.y.t*winH.current;// Get current parent position for correct collision detection\n// We need to compare mouse (screen space) with items (parent space)\nconst parentElement=parentElementRef.current;if(!parentElement)return;const parentRect=parentElement.getBoundingClientRect();const mouseRelX=mousePX-parentRect.left;const mouseRelY=mousePY-parentRect.top;// ANIMATION LOOP: Update each group\nelementGroupsRef.current.forEach(group=>{// 1. Calculate positions for all 4 instances (virtual items)\n// We use a temporary array to store calculated styles/positions\nconst calculatedPositions=[];group.positions.forEach(item=>{// Parallax\nconst parallaxMultiplier=parallax?.enabled?parallax.general??1:0;const parallaxX=5*scroll.current.delta.x.c*item.ease+(mouse.current.x.c-.5)*item.width*.6*parallaxMultiplier;const parallaxY=5*scroll.current.delta.y.c*item.ease+(mouse.current.y.c-.5)*item.height*.6*parallaxMultiplier;// Logic position\nconst posX=item.x+scrollX+item.extraX+parallaxX;const posY=item.y+scrollY+item.extraY+parallaxY;// Wrapping logic\nconst beforeX=posX>parentW;const afterX=posX+item.width<0;const beforeY=posY>parentH;const afterY=posY+item.height<0;if(dirX===\"right\"&&beforeX)item.extraX-=tileW;if(dirX===\"left\"&&afterX)item.extraX+=tileW;if(dirY===\"down\"&&beforeY)item.extraY-=tileH;if(dirY===\"up\"&&afterY)item.extraY+=tileH;// Final position\nconst finalX=item.x+scrollX+item.extraX+parallaxX;const finalY=item.y+scrollY+item.extraY+parallaxY;// Metrics for \"Smart Swap\"\n// Distance to center of screen (approximation)\n// We use screen coordinates for this metric to be consistent\nconst absFinalX=finalX+parentRect.left;const absFinalY=finalY+parentRect.top;const cx=absFinalX+item.width/2;const cy=absFinalY+item.height/2;const distToCenter=Math.pow(cx-centerX,2)+Math.pow(cy-centerY,2);const distToMouse=Math.pow(cx-mousePX,2)+Math.pow(cy-mousePY,2);// Visibility check\nconst buffer=1e3;const isVisible=absFinalX>=-item.width-buffer&&absFinalX<=winW.current+buffer&&absFinalY>=-item.height-buffer&&absFinalY<=winH.current+buffer;calculatedPositions.push({item,finalX,finalY,distToCenter,distToMouse,isVisible});});// 2. Determine which position gets the Real Element\n// Priority: Mouse Hover > Last Active > Closest to Center\n// Check if mouse is inside any item\nlet bestIndex=-1;let minMouseDist=Infinity;// Check for mouse intersection first\nfor(let i=0;i<calculatedPositions.length;i++){const p=calculatedPositions[i];// Intersection check using RELATIVE coordinates\n// finalX/Y are relative to parent. mouseRelX/Y are relative to parent.\nif(mouseRelX>=p.finalX&&mouseRelX<=p.finalX+p.item.width&&mouseRelY>=p.finalY&&mouseRelY<=p.finalY+p.item.height){// Mouse inside this item. If multiple overlap, pick closest to mouse center\nif(p.distToMouse<minMouseDist){minMouseDist=p.distToMouse;bestIndex=i;}}}// If no mouse hover, try to stick to last active index if visible\nif(bestIndex===-1&&group.lastActiveIndex!==-1){const lastPos=calculatedPositions[group.lastActiveIndex];// Keep it if it's still reasonably visible/valid\nif(lastPos&&lastPos.isVisible){bestIndex=group.lastActiveIndex;}}// Fallback: If still no index, pick closest to screen center\nif(bestIndex===-1){let minCenterDist=Infinity;for(let i=0;i<calculatedPositions.length;i++){if(calculatedPositions[i].distToCenter<minCenterDist){minCenterDist=calculatedPositions[i].distToCenter;bestIndex=i;}}}// Update last active index\ngroup.lastActiveIndex=bestIndex;// 3. Assign Elements and Apply Styles\n// We have [Real, Clone1, Clone2, Clone3]\nconst availableClones=[...group.clones];calculatedPositions.forEach((calc,index)=>{let el;const isHovered=index===bestIndex;if(isHovered){el=group.realElement;}else{el=availableClones.pop();}// Apply Transform\nel.style.transform=`translate(${calc.finalX}px, ${calc.finalY}px)`;// Apply Visibility\nel.style.opacity=calc.isVisible?\"1\":\"0\";el.style.pointerEvents=calc.isVisible?\"auto\":\"none\";// Apply Inner Parallax (only if enabled AND hovered)\n// We only apply the parallax effect to the \"hovered\" (active) element\n// to prevent other copies from moving distractingly\nconst insideParallaxValue=parallax?.enabled&&isHovered?parallax.child??1:0;const generalParallax=parallax?.general??1;const translateX=(.5-mouse.current.x.c)*calc.item.ease*20*generalParallax*insideParallaxValue;const translateY=(.5-mouse.current.y.c)*calc.item.ease*20*generalParallax*insideParallaxValue;const firstChild=el.firstElementChild;if(firstChild){if(insideParallaxValue===0){firstChild.style.transform=\"none\";}else{firstChild.style.transform=`translate(${translateX}%, ${translateY}%)`;}}});});scroll.current.last.x=scroll.current.current.x;scroll.current.last.y=scroll.current.current.y;};// Animation loop\nuseEffect(()=>{const animate=()=>{render();rafId.current=requestAnimationFrame(animate);};rafId.current=requestAnimationFrame(animate);return()=>{if(rafId.current){cancelAnimationFrame(rafId.current);rafId.current=null;}};},[]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{...style,position:\"relative\",width:\"0px\",height:\"0px\",overflow:\"visible\",backgroundColor:\"transparent\",transform:\"translateZ(0)\",transformStyle:\"flat\"}});}addPropertyControls(InfiniteCanvas,{enableDrag:{type:ControlType.Boolean,title:\"Enable Drag\",defaultValue:true},dragSpeed:{type:ControlType.Number,title:\"Drag Speed\",min:.1,max:1,step:.1,defaultValue:.5,hidden:props=>!props.enableDrag},scrollSpeed:{type:ControlType.Number,title:\"Scroll Speed\",min:.1,max:1,step:.1,defaultValue:.4},ease:{type:ControlType.Number,title:\"Snappy\",min:0,max:1,step:.1,defaultValue:.3},parallax:{type:ControlType.Object,title:\"Parallax\",description:\"More components at [Framer University](https://frameruni.link/cc).\",controls:{enabled:{type:ControlType.Boolean,title:\"Enabled\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},general:{type:ControlType.Number,title:\"General\",min:0,max:1,step:.1,defaultValue:1},child:{type:ControlType.Number,title:\"Child\",min:0,max:1,step:.1,defaultValue:0,description:\"Controls the parallax effect intensity on inner elements\"}},defaultValue:{enabled:true,general:1,child:1}}});InfiniteCanvas.displayName=\"Infinite Canvas\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"InfiniteCanvas\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1\",\"framerIntrinsicHeight\":\"1\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InfiniteCanvas_prod.map"],"mappings":"sMAGG,SAAS,EAAU,EAAM,EAAM,EAAM,EAAO,EAAO,CAAoE,OAAhE,IAAQ,EAAa,EAAkD,GAAlC,EAAM,IAAQ,EAAM,IAAwB,EAAO,GAI/I,SAAS,EAAqB,EAAG,CAA2C,OAAO,EAAnC,KAAK,IAAI,GAAG,KAAK,IAAI,EAAE,EAAG,CAAC,CAA0B,GAAG,EAAE,GAAG,EAAE,CAI/G,SAAS,EAAoB,EAAG,CAA0C,OAAO,EAAlC,KAAK,IAAI,EAAE,KAAK,IAAI,EAAE,EAAG,CAAC,CAA0B,EAAE,EAAE,IAAI,GAAG,CAM9G,SAAwB,EAAe,CAAC,cA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