{"version":3,"file":"Grid_warp.HT48nvU5.mjs","names":["React","useId","e"],"sources":["https:/framerusercontent.com/modules/pGieiwEDdAQVgho9IDJ3/C8SCSdfMne2Ve1ojqoZZ/Grid_warp.js"],"sourcesContent":["function _define_property(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,motion,RenderTarget}from\"framer\";import React,{useId}from\"react\";// ------------------------------------------------------------- //\n// PROPERTY CONTROLS\n// ------------------------------------------------------------- //\naddPropertyControls(GridWarpFramer,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},grids:{type:ControlType.Number,title:\"Grids\",defaultValue:20,min:1,step:1},distortionIntensity:{type:ControlType.Number,title:\"Intensity\",defaultValue:.2,min:0,max:1,step:.01},defaultSaturation:{type:ControlType.Number,title:\"Default Saturation\",defaultValue:0,min:0,max:1,step:.01,description:\"More components at [Bachoff Studio](https://bachoff.studio/framer-components?utm_source=framer-property-controls&utm_campaign=grid-warp).\"}});const fallbackImage=\"https://raw.githubusercontent.com/bachoff-studio/bachoff-studio-public-assets/main/files//images/palm-trees-2.webp\";GridWarpFramer.defaultProps={image:{src:fallbackImage,srcSet:\"\",alt:\"\"},grids:20,distortionIntensity:.2,defaultSaturation:0};// ------------------------------------------------------------- //\n// MAIN COMPONENT\n// ------------------------------------------------------------- //\n/**\n * @Copyright © David McBacon | Bachoff Studio\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 800\n * @framerIntrinsicHeight 600\n * @framerDisableUnlink\n */export default function GridWarpFramer(props){const isOnFramerCanvas=RenderTarget.hasRestrictions();const containerRef=React.useRef(null);const canvasRef=React.useRef(null);const shaderRef=React.useRef(null);const[aspectRatio,setAspectRatio]=React.useState(null);const uniqueId=useId().replace(/:/g,\"\");const canvasId=props.image?`canvas-${uniqueId}`:\"distortion-grid-shader-canvas\";// Load the image to get its natural aspect ratio\nReact.useEffect(()=>{const img=new Image;img.crossOrigin=\"anonymous\";img.onload=()=>{const ratio=img.naturalWidth/img.naturalHeight;setAspectRatio(ratio);};img.onerror=e=>{console.error(\"[GridWarp] Error loading image for aspect ratio:\",e);setAspectRatio(4/3);};img.src=props.image.src;},[props.image.src]);React.useEffect(()=>{if(!aspectRatio){return;}const canvas=canvasRef.current;if(!canvas){return;}let shader=null;// Pre-load the image before initializing WebGL\nconst preloadImage=new Image;preloadImage.crossOrigin=\"anonymous\";preloadImage.onload=()=>{try{shader=new DistortionShaderMount(canvas,{image:props.image.src,aspectRatio:aspectRatio,gridDivisions:props.grids,distortionIntensity:props.distortionIntensity});shaderRef.current=shader;const handleMouseMove=e=>{shader?.updateMouse(e.clientX-canvas.getBoundingClientRect().left,e.clientY-canvas.getBoundingClientRect().top);};const handleMouseEnter=()=>shader?.handleMouseEnter();const handleMouseLeave=()=>shader?.handleMouseLeave();const handleResize=()=>shader?.resize();canvas.addEventListener(\"mousemove\",handleMouseMove);canvas.addEventListener(\"mouseenter\",handleMouseEnter);canvas.addEventListener(\"mouseleave\",handleMouseLeave);window.addEventListener(\"resize\",handleResize);handleResize();}catch(error){console.error(\"[GridWarp] Error initializing shader:\",error);}};preloadImage.onerror=error=>{console.error(\"[GridWarp] Error preloading image:\",error);};preloadImage.src=props.image.src;const cleanupListeners=()=>{const currentHandlers=canvas._currentHandlers;if(currentHandlers){canvas.removeEventListener(\"mousemove\",currentHandlers.mouseMove);canvas.removeEventListener(\"mouseenter\",currentHandlers.mouseEnter);canvas.removeEventListener(\"mouseleave\",currentHandlers.mouseLeave);window.removeEventListener(\"resize\",currentHandlers.resize);}};return()=>{cleanupListeners();if(shaderRef.current){const gl=canvas.getContext(\"webgl2\");if(gl){gl.getExtension(\"WEBGL_lose_context\")?.loseContext();}shaderRef.current=null;}};},[props.image.src,aspectRatio,props.grids,props.distortionIntensity]);return /*#__PURE__*/_jsx(motion.div,{ref:containerRef,initial:{filter:`saturate(${props.defaultSaturation})`},whileHover:{filter:\"saturate(1)\"},transition:{ease:\"easeOut\",filter:{duration:.5}},style:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"},children:isOnFramerCanvas?/*#__PURE__*/_jsx(\"img\",{src:props.image.src,alt:props.image.alt,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}}):/*#__PURE__*/_jsx(\"canvas\",{id:canvasId,ref:canvasRef,style:{position:\"absolute\",left:0,top:0,width:\"100%\",height:\"100%\",objectFit:\"cover\"}})});}GridWarpFramer.displayName=\"GRID WARP - BACHOFF STUDIO\";// ------------------------------------------------------------- //\n// SHADER MOUNT\n// ------------------------------------------------------------- //\n// Vertex shader\nconst vertexShaderSource=`#version 300 es\nin vec4 a_position;\nin vec2 a_texCoord;\nout vec2 vUv;\n\nvoid main() {\n    vUv = a_texCoord;\n    gl_Position = a_position;\n}\n`;// Fragment shader\nconst fragmentShaderSource=`#version 300 es\nprecision highp float;\n\nuniform sampler2D u_texture;    \nuniform vec2 u_mouse;\nuniform vec2 u_prevMouse;\nuniform float u_aberrationIntensity;\nuniform float u_gridDivisions;\nuniform float u_distortionIntensity;\n\nin vec2 vUv;\nout vec4 outColor;\n\nvoid main() {\n    // Flip the UV coordinates for grid calculation as in the Three.js version\n    vec2 flippedUV = vec2(vUv.x, 1.0 - vUv.y);\n    vec2 gridVec = vec2(u_gridDivisions, u_gridDivisions);\n    vec2 gridUV = floor(flippedUV * gridVec) / gridVec;\n    vec2 centerOfPixel = gridUV + vec2(1.0 / u_gridDivisions);\n    \n    vec2 mouseDirection = u_mouse - u_prevMouse;\n    \n    // Use flipped coordinates for mouse direction calculation\n    vec2 pixelToMouseDirection = centerOfPixel - vec2(u_mouse.x, 1.0 - u_mouse.y);\n    float pixelDistanceToMouse = length(pixelToMouseDirection);\n    float strength = smoothstep(0.3, 0.0, pixelDistanceToMouse);\n\n    vec2 uvOffset = strength * -mouseDirection * u_distortionIntensity;\n    vec2 uv = vUv - uvOffset;\n\n    vec4 colorR = texture(u_texture, uv + vec2(strength * u_aberrationIntensity * 0.01, 0.0));\n    vec4 colorG = texture(u_texture, uv);\n    vec4 colorB = texture(u_texture, uv - vec2(strength * u_aberrationIntensity * 0.01, 0.0));\n\n    outColor = vec4(colorR.r, colorG.g, colorB.b, 1.0);\n}\n`;class DistortionShaderMount{initGL(){const gl=this.canvas.getContext(\"webgl2\");if(!gl){console.error(\"WebGL2 initialization failed\");throw new Error(\"WebGL2 not supported\");}// Add error callback\ngl.getExtension(\"WEBGL_lose_context\");gl.getExtension(\"WEBGL_debug_renderer_info\");gl.canvas.addEventListener(\"webglcontextlost\",e=>{e.preventDefault();console.warn(\"WebGL context lost. Attempting to restore...\");},false);gl.canvas.addEventListener(\"webglcontextrestored\",()=>{this.setupBuffers();this.setupTextures();},false);this.gl=gl;}createShader(type,source){const shader=this.gl.createShader(type);if(!shader)return null;this.gl.shaderSource(shader,source);this.gl.compileShader(shader);if(!this.gl.getShaderParameter(shader,this.gl.COMPILE_STATUS)){console.error(\"An error occurred compiling the shaders: \"+this.gl.getShaderInfoLog(shader));this.gl.deleteShader(shader);return null;}return shader;}createShaderProgram(){const vertexShader=this.createShader(this.gl.VERTEX_SHADER,vertexShaderSource);const fragmentShader=this.createShader(this.gl.FRAGMENT_SHADER,fragmentShaderSource);if(!vertexShader||!fragmentShader){throw new Error(\"Failed to create shaders\");}const program=this.gl.createProgram();if(!program){throw new Error(\"Failed to create shader program\");}this.program=program;this.gl.attachShader(this.program,vertexShader);this.gl.attachShader(this.program,fragmentShader);this.gl.linkProgram(this.program);this.gl.useProgram(this.program);}setupBuffers(){const positions=new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]);const texCoords=new Float32Array([0,1,1,1,0,0,0,0,1,1,1,0]);const positionBuffer=this.gl.createBuffer();this.gl.bindBuffer(this.gl.ARRAY_BUFFER,positionBuffer);this.gl.bufferData(this.gl.ARRAY_BUFFER,positions,this.gl.STATIC_DRAW);const positionLoc=this.gl.getAttribLocation(this.program,\"a_position\");this.gl.enableVertexAttribArray(positionLoc);this.gl.vertexAttribPointer(positionLoc,2,this.gl.FLOAT,false,0,0);const texCoordBuffer=this.gl.createBuffer();this.gl.bindBuffer(this.gl.ARRAY_BUFFER,texCoordBuffer);this.gl.bufferData(this.gl.ARRAY_BUFFER,texCoords,this.gl.STATIC_DRAW);const texCoordLoc=this.gl.getAttribLocation(this.program,\"a_texCoord\");this.gl.enableVertexAttribArray(texCoordLoc);this.gl.vertexAttribPointer(texCoordLoc,2,this.gl.FLOAT,false,0,0);}setupTextures(){this.loadTexture(this.options.image,0,\"u_texture\");this.mouseUniform=this.gl.getUniformLocation(this.program,\"u_mouse\");this.prevMouseUniform=this.gl.getUniformLocation(this.program,\"u_prevMouse\");this.aberrationIntensityUniform=this.gl.getUniformLocation(this.program,\"u_aberrationIntensity\");this.gridDivisionsUniform=this.gl.getUniformLocation(this.program,\"u_gridDivisions\");this.distortionIntensityUniform=this.gl.getUniformLocation(this.program,\"u_distortionIntensity\");this.gl.uniform2fv(this.mouseUniform,this.mouse);this.gl.uniform2fv(this.prevMouseUniform,this.prevMouse);this.gl.uniform1f(this.aberrationIntensityUniform,this.aberrationIntensity);this.gl.uniform1f(this.gridDivisionsUniform,this.gridDivisions);this.gl.uniform1f(this.distortionIntensityUniform,this.distortionIntensity);}loadTexture(url,unit,uniformName){const texture=this.gl.createTexture();this.gl.activeTexture(this.gl.TEXTURE0+unit);this.gl.bindTexture(this.gl.TEXTURE_2D,texture);// Set initial texture to a 1x1 pixel\nthis.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,1,1,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,new Uint8Array([0,0,0,255]));const image=new Image;image.crossOrigin=\"anonymous\";// Set texture parameters before loading the image\nthis.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE);this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE);this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR);this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR);image.onload=()=>{// Ensure the texture unit and binding are still correct\nthis.gl.activeTexture(this.gl.TEXTURE0+unit);this.gl.bindTexture(this.gl.TEXTURE_2D,texture);this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,image);this.gl.generateMipmap(this.gl.TEXTURE_2D);};image.src=url;const loc=this.gl.getUniformLocation(this.program,uniformName);this.gl.uniform1i(loc,unit);}resize(){const container=this.canvas.parentElement;if(!container)return;const containerWidth=container.clientWidth;const containerHeight=container.clientHeight;const containerAspectRatio=containerWidth/containerHeight;// Calculate dimensions that maintain image aspect ratio while covering container\nlet renderWidth=containerWidth;let renderHeight=containerHeight;if(containerAspectRatio>this.imageAspectRatio){// Container is wider than image aspect ratio\nrenderWidth=containerHeight*this.imageAspectRatio;renderHeight=containerHeight;}else{// Container is taller than image aspect ratio\nrenderWidth=containerWidth;renderHeight=containerWidth/this.imageAspectRatio;}// Set canvas size to container size for proper filling\nthis.canvas.style.width=`${containerWidth}px`;this.canvas.style.height=`${containerHeight}px`;// Set the drawing buffer size with device pixel ratio\nconst pixelRatio=window.devicePixelRatio||1;this.canvas.width=containerWidth*pixelRatio;this.canvas.height=containerHeight*pixelRatio;// Calculate scaling factors to maintain aspect ratio\nconst scaleX=containerWidth/renderWidth;const scaleY=containerHeight/renderHeight;const scale=Math.max(scaleX,scaleY);// Update the WebGL viewport with centered and scaled dimensions\nconst scaledWidth=renderWidth*scale;const scaledHeight=renderHeight*scale;const viewportX=(containerWidth-scaledWidth)/2;const viewportY=(containerHeight-scaledHeight)/2;this.gl.viewport(viewportX*pixelRatio,viewportY*pixelRatio,scaledWidth*pixelRatio,scaledHeight*pixelRatio);}updateMouse(x,y){const mouseX=x/this.canvas.clientWidth;const mouseY=y/this.canvas.clientHeight;// Store previous TARGET position before updating target\nthis.targetPrevMouse=[...this.targetMouse];// Update target position\nthis.targetMouse=[mouseX,mouseY];// Set aberration intensity\nthis.aberrationIntensity=1;}handleMouseEnter(){this.easeFactor=.02;// Potentially reset prevMouse here if needed, depends on exact entry behavior desired\n}handleMouseLeave(){this.easeFactor=.05;// Reset target to the last known target position before leaving\nthis.targetMouse=[...this.targetPrevMouse];}animate(){// Store previous EASED mouse position before easing current (might be useful for other effects)\nthis.prevMouse=[...this.mouse];// Update mouse position with easing\nthis.mouse[0]+=(this.targetMouse[0]-this.mouse[0])*this.easeFactor;this.mouse[1]+=(this.targetMouse[1]-this.mouse[1])*this.easeFactor;// Update uniforms: Pass coordinates directly, shader handles Y-flipping internally\nthis.gl.uniform2fv(this.mouseUniform,[this.mouse[0],this.mouse[1]]);this.gl.uniform2fv(this.prevMouseUniform,[this.targetPrevMouse[0],this.targetPrevMouse[1]]);// Update aberration with same decay rate as Three.js version\nthis.aberrationIntensity=Math.max(0,this.aberrationIntensity-.05);this.gl.uniform1f(this.aberrationIntensityUniform,this.aberrationIntensity);this.resize();this.gl.drawArrays(this.gl.TRIANGLES,0,6);requestAnimationFrame(()=>this.animate());}constructor(canvas,options){_define_property(this,\"canvas\",void 0);_define_property(this,\"options\",void 0);_define_property(this,\"mouse\",void 0// Current eased mouse position\n);_define_property(this,\"targetMouse\",void 0// Target mouse position\n);_define_property(this,\"prevMouse\",void 0// Previous eased mouse position (kept for handleMouseLeave logic consistency for now)\n);_define_property(this,\"targetPrevMouse\",void 0// Previous target mouse position\n);_define_property(this,\"gl\",void 0);_define_property(this,\"program\",void 0);_define_property(this,\"mouseUniform\",void 0);_define_property(this,\"prevMouseUniform\",void 0);_define_property(this,\"aberrationIntensityUniform\",void 0);_define_property(this,\"gridDivisionsUniform\",void 0);_define_property(this,\"distortionIntensityUniform\",void 0);_define_property(this,\"imageAspectRatio\",void 0);_define_property(this,\"aberrationIntensity\",void 0);_define_property(this,\"easeFactor\",void 0);_define_property(this,\"gridDivisions\",void 0);_define_property(this,\"distortionIntensity\",void 0);this.canvas=canvas;this.options=options;this.mouse=[.5,.5];this.targetMouse=[.5,.5];this.prevMouse=[.5,.5]// Initialize prevMouse\n;this.targetPrevMouse=[.5,.5]// Initialize targetPrevMouse\n;this.imageAspectRatio=options.aspectRatio;this.gridDivisions=options.gridDivisions;this.distortionIntensity=options.distortionIntensity;this.aberrationIntensity=0;this.easeFactor=.02;const gl=this.canvas.getContext(\"webgl2\");if(!gl){console.error(\"WebGL2 initialization failed\");throw new Error(\"WebGL2 not supported\");}// Add error callback\ngl.getExtension(\"WEBGL_lose_context\");gl.getExtension(\"WEBGL_debug_renderer_info\");gl.canvas.addEventListener(\"webglcontextlost\",e=>{e.preventDefault();console.warn(\"WebGL context lost. Attempting to restore...\");},false);gl.canvas.addEventListener(\"webglcontextrestored\",()=>{this.setupBuffers();this.setupTextures();},false);this.gl=gl;this.initGL();this.createShaderProgram();this.setupBuffers();this.setupTextures();this.resize();this.animate();}}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GridWarpFramer\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"800\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"600\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Grid_warp.map"],"mappings":"4OAAA,SAAS,EAAiB,EAAI,EAAI,EAAM,CAAmI,OAA/H,KAAO,EAAK,OAAO,eAAe,EAAI,EAAI,CAAO,QAAM,WAAW,GAAK,aAAa,GAAK,SAAS,GAAK,CAAC,CAAO,EAAI,GAAK,EAAc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