{"version":3,"file":"Half_tone_transform.CjfGdC1p.mjs","names":["React.useRef","React.useState","React.useCallback","React.useMemo"],"sources":["https:/framerusercontent.com/modules/b6mZG5iklCe0icOUP9u9/DFnjNv4JV2Ecv4Wfzfn2/Half_tone_transform.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useMotionValue,useMotionValueEvent,useSpring}from\"framer-motion\";/**\n * Progress of one element's travel through the viewport, 0..1 (unclamped, so\n * callers can see how far outside the range they are).\n *\n *   through - the whole pass across the viewport. Travel = viewport + height.\n *   enter   - as the element arrives. Travel = one viewport.\n *   exit    - as the element leaves: the hand-off to whatever is below it.\n *             Travel = one viewport.\n *   pin     - the element's own length. Travel = height - viewport, so the\n *             element MUST be taller than the viewport or there is none.\n */function scrollRangeProgress(rect,viewportHeight,range){const vh=Math.max(viewportHeight,1);if(range===\"enter\")return(vh-rect.top)/vh;if(range===\"exit\")return(vh-rect.bottom)/vh;if(range===\"pin\")return-rect.top/Math.max(rect.height-vh,1);return(vh-rect.top)/(vh+rect.height);}const MAX_DPR=2;const SHAPES=[\"square\",\"circle\",\"diamond\"];const DIRECTIONS=[\"top-bottom\",\"bottom-top\",\"left-right\",\"right-left\",\"center-out\",\"center-in\"];const PATTERNS=[\"random\",\"checker\",\"diagonal\",\"wave\",\"spiral\",\"radial\"];/* ------------------------------------------------------------------ shaders */const VERT=`\nattribute vec2 aPos;\nvoid main() {\n    gl_Position = vec4(aPos, 0.0, 1.0);\n}\n`;// Shared helpers. Prepended to both fragment shaders.\nconst COMMON=`\nprecision highp float;\n\nfloat hash21(vec2 p) {\n    vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n    p3 += dot(p3, p3.yzx + 33.33);\n    return fract((p3.x + p3.y) * p3.z);\n}\n`;/**\n * Pass A - one fragment per grid cell.\n * gl_FragCoord.xy doubles as the cell index; we treat y as counting DOWN from\n * the top so pass B can address the texture with the same index.\n */const FIELD_FRAG=COMMON+`\nuniform vec2      uGrid;          // cols, rows\nuniform int       uSource;        // 0 = image, 1 = noise\nuniform sampler2D uImage;\nuniform vec2      uTexScale;      // cover / contain fit\nuniform float     uContrast;\nuniform float     uInvertSource;\nuniform float     uNoiseScale;\nuniform float     uTime;\nuniform int       uDirection;\nuniform int       uPattern;\nuniform float     uJitter;\nuniform float     uSeed;\n\nfloat vnoise(vec2 p) {\n    vec2 i = floor(p);\n    vec2 f = fract(p);\n    f = f * f * (3.0 - 2.0 * f);\n    float a = hash21(i);\n    float b = hash21(i + vec2(1.0, 0.0));\n    float c = hash21(i + vec2(0.0, 1.0));\n    float d = hash21(i + vec2(1.0, 1.0));\n    return mix(mix(a, b, f.x), mix(c, d, f.x), f.y);\n}\n\nfloat fbm(vec2 p) {\n    float sum = 0.0;\n    float amp = 0.5;\n    for (int i = 0; i < 5; i++) {\n        sum += amp * vnoise(p);\n        p = p * 2.03 + 17.1;\n        amp *= 0.5;\n    }\n    return sum / 0.96875;\n}\n\nfloat directionField(vec2 cn) {\n    if (uDirection == 0) return cn.y;\n    if (uDirection == 1) return 1.0 - cn.y;\n    if (uDirection == 2) return cn.x;\n    if (uDirection == 3) return 1.0 - cn.x;\n    float d = clamp(length(cn - 0.5) / 0.70710678, 0.0, 1.0);\n    if (uDirection == 4) return d;\n    return 1.0 - d;\n}\n\nfloat patternField(vec2 cn, vec2 cell) {\n    if (uPattern == 0) return (hash21(cell + uSeed) - 0.5) * 1.6;\n    if (uPattern == 1) return mod(cell.x + cell.y, 2.0) < 1.0 ? -0.2 : 0.2;\n    if (uPattern == 2) return ((cn.x + cn.y) * 0.5 - 0.5) * 0.75;\n    if (uPattern == 3) return sin(cn.x * 9.42477796 + cn.y * 4.39822972) * 0.24;\n    vec2 d = cn - 0.5;\n    float rd = clamp(length(d) / 0.70710678, 0.0, 1.0);\n    // Index order must match the PATTERNS array: 4 = spiral, 5 = radial.\n    if (uPattern == 5) return (rd - 0.5) * 0.8;\n    float ang = (atan(d.y, d.x) + 3.14159265) / 6.28318531;\n    return (fract(ang + rd * 1.15) - 0.5) * 0.6;\n}\n\nvoid main() {\n    vec2 cell = floor(gl_FragCoord.xy);\n    vec2 cn = (cell + 0.5) / uGrid;\n\n    float density;\n    if (uSource == 0) {\n        vec2 t = (cn - 0.5) * uTexScale + 0.5;\n        if (t.x < 0.0 || t.x > 1.0 || t.y < 0.0 || t.y > 1.0) {\n            density = 0.0;\n        } else {\n            vec3 rgb = texture2D(uImage, t).rgb;\n            density = 1.0 - dot(rgb, vec3(0.2126, 0.7152, 0.0722));\n        }\n    } else {\n        density = fbm(cn * uNoiseScale + vec2(uTime * 0.06, uTime * 0.021));\n    }\n\n    if (uInvertSource > 0.5) density = 1.0 - density;\n    density = clamp((density - 0.5) * uContrast + 0.5, 0.0, 1.0);\n\n    float threshold = directionField(cn)\n        + patternField(cn, cell) * 0.5\n        + (hash21(cell + uSeed + 7.77) - 0.5) * uJitter * 0.65;\n\n    // Normalising by the analytic extremes is wrong here: the peak pattern\n    // values are rare, so it compresses the bulk of the field toward the\n    // middle and makes the dead zones worse. Clamping keeps the spread.\n    gl_FragColor = vec4(density, clamp(threshold, 0.0, 1.0), 0.0, 1.0);\n}\n`;/** Pass B - one fragment per device pixel. */const DRAW_FRAG=COMMON+`\nuniform vec2      uResolution;    // drawing buffer, device px\nuniform vec2      uSpan;          // cssSize / cellSize (fractional)\nuniform vec2      uGrid;          // cols, rows (integer, = ceil(uSpan))\nuniform float     uCellPx;        // device px per cell\nuniform sampler2D uField;\nuniform float     uProgress;\nuniform float     uFeather;\nuniform float     uMinScale;\nuniform float     uMaxScale;\nuniform float     uCutoff;\nuniform float     uLevels;\nuniform int       uShape;\nuniform float     uAnchor;        // 0 = corner, 1 = center\nuniform int       uMode;          // 0 = picture, 1 = dissolve\nuniform float     uPolarity;      // 0 = marks grow in, 1 = marks shrink out\nuniform float     uImageBias;     // dissolve: how much tone reorders the sweep\nuniform float     uToneLift;      // dissolve: how much tone shapes marks mid-sweep\nuniform float     uAreaTrue;      // 1 = mark AREA tracks the weight, not its side\nuniform vec4      uInk;\nuniform vec4      uPaper;\nuniform sampler2D uMarkImage;\nuniform sampler2D uGapImage;\nuniform float     uUseMark;\nuniform float     uUseGap;\nuniform vec2      uMarkScale;\nuniform vec2      uGapScale;\n\nvec4 sampleFit(sampler2D tex, vec2 scale, vec2 uv) {\n    vec2 t = (uv - 0.5) * scale + 0.5;\n    if (t.x < 0.0 || t.x > 1.0 || t.y < 0.0 || t.y > 1.0) return vec4(0.0);\n    return texture2D(tex, t);\n}\n\nvoid main() {\n    vec2 uv = vec2(gl_FragCoord.x, uResolution.y - gl_FragCoord.y) / uResolution;\n    vec2 gp = uv * uSpan;\n    vec2 cell = min(floor(gp), uGrid - 1.0);\n    vec2 inCell = fract(gp);\n\n    vec4 field = texture2D(uField, (cell + 0.5) / uGrid);\n    float density = field.r;\n    float threshold = field.g;\n\n    // Dissolve mode: tone reorders the sweep instead of capping the mark size,\n    // so every cell still reaches full coverage by the end.\n    if (uMode == 1) {\n        threshold = clamp(threshold + (0.5 - density) * uImageBias, 0.0, 1.0);\n    }\n\n    // Walk the wavefront from -feather to 1+feather rather than 0..1. Without\n    // this the band is still open at both ends: a cell with threshold 1.0 only\n    // reaches smoothstep(1-f, 1+f, 1.0) = 0.5 when progress maxes out, so the\n    // lattice never closes and the sweep cannot resolve into a solid image.\n    float sweep = uProgress * (1.0 + 2.0 * uFeather) - uFeather;\n    float r = smoothstep(threshold - uFeather, threshold + uFeather, sweep);\n    r = mix(r, 1.0 - r, uPolarity);\n\n    float w;\n    if (uMode == 1) {\n        // Tone shapes the mark size while the wavefront is passing, then lifts\n        // to full coverage behind it - so the band reads as a tonal halftone\n        // and what it leaves behind is the solid, continuous source image.\n        w = mix(1.0, mix(density, 1.0, r), uToneLift) * r;\n    } else {\n        // Picture: tone caps coverage permanently. Halftone artwork, not a\n        // transition - it can never resolve into anything.\n        w = density * r;\n    }\n\n    if (uLevels >= 2.0) {\n        w = clamp(floor(w * uLevels) / (uLevels - 1.0), 0.0, 1.0);\n    }\n\n    vec4 gapCol = uUseGap > 0.5 ? sampleFit(uGapImage, uGapScale, uv) : uPaper;\n\n    if (w <= uCutoff) {\n        gl_FragColor = gapCol;\n        return;\n    }\n\n    float k = clamp((w - uCutoff) / max(1.0 - uCutoff, 0.0001), 0.0, 1.0);\n\n    // A mark's ink is its AREA, which goes as the square of its side. Driving\n    // the side linearly means the first and last stretch of the sweep move\n    // almost no pixels - that is what reads as \"starts late, ends early\".\n    // Solving for area instead makes covered ink track the weight directly.\n    float shaped = k;\n    if (uAreaTrue > 0.5) {\n        float fac = 1.0;\n        if (uShape == 1) fac = 1.27323954;      // circle: 4 / pi\n        else if (uShape == 2) fac = 2.0;        // diamond: half-diagonal\n        shaped = clamp(sqrt(k * fac), 0.0, 1.0);\n    }\n    float base = mix(uMinScale, uMaxScale, shaped);\n    float closing = smoothstep(0.85, 1.0, base);\n    float aa = 0.7 / max(uCellPx, 1.0);\n\n    // Only a square tiles its cell exactly. As the marks close, let round and\n    // diamond ones overshoot far enough to reach the cell corners.\n    float reach = 1.0;\n    if (uShape == 1) reach = 1.41421356;\n    else if (uShape == 2) reach = 2.0;\n\n    float size = base * mix(1.0, reach, closing);\n    // Bleed a hair past the edge so neighbours overlap instead of meeting on a\n    // half-covered antialiased line.\n    size += closing * 4.0 * aa;\n\n    // A corner-anchored mark cannot tile: it grows right/down from the cell\n    // origin, so at full size its leading edge lands exactly on the boundary\n    // with nothing behind it to cover the antialiased pixels - which leaves a\n    // seam at every cell and stops the sweep ever resolving into a solid\n    // image. Migrate the anchor to the centre as the mark closes, so the bleed\n    // extends past both sides. Below 0.85 the corner look is untouched.\n    float anchorMix = max(uAnchor, closing);\n    vec2 center = mix(vec2(size * 0.5), vec2(0.5), anchorMix);\n    vec2 q = abs(inCell - center);\n\n    float d;\n    if (uShape == 0)      d = max(q.x, q.y);\n    else if (uShape == 1) d = length(q);\n    else                  d = q.x + q.y;\n\n    float inside = 1.0 - smoothstep(size * 0.5 - aa, size * 0.5 + aa, d);\n\n    vec4 markCol = uUseMark > 0.5 ? sampleFit(uMarkImage, uMarkScale, uv) : uInk;\n    gl_FragColor = mix(gapCol, markCol, inside);\n}\n`;/* -------------------------------------------------------------------- utils */function clamp(value,min,max){return Math.max(min,Math.min(max,value));}function applyEasing(value,easing){const t=clamp(value,0,1);if(easing===\"ease-in\")return t*t*t;if(easing===\"ease-out\")return 1-Math.pow(1-t,3);if(easing===\"ease-in-out\"){return t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2;}if(easing===\"expo-out\")return t===1?1:1-Math.pow(2,-10*t);return t;}/**\n * Maps raw 0..1 scroll position onto the slice of it the transition should\n * occupy. startAt / endAt are where inside the scroll range the animation\n * begins and finishes - this is the knob for \"it starts too late\".\n */function remapProgress(value,p){// Values outside 0..1 are meaningful and are the fix for \"it starts too\n// late and ends too early\". A sweep has few active cells at each extreme,\n// so the first and last ~12% of progress move almost no ink. Letting the\n// window overshoot the scroll range puts the *visible* part of the\n// animation across the whole scroll instead of inside it.\nconst startAt=clamp(p.startAt,-.5,.95);const endAt=Math.max(clamp(p.endAt,.05,1.5),startAt+.05);const t=(value-startAt)/(endAt-startAt);return applyEasing(clamp(t,0,1),p.easing);}/** \"#RRGGBB\", \"#RGB\", \"rgb(...)\" or \"rgba(...)\" -> [r, g, b, a] in 0..1. */function parseColor(input){const value=(input||\"\").trim();const rgb=value.match(/^rgba?\\(\\s*([\\d.]+)[\\s,]+([\\d.]+)[\\s,]+([\\d.]+)(?:[\\s,/]+([\\d.%]+))?\\s*\\)$/i);if(rgb){let alpha=1;if(rgb[4]!=null){alpha=rgb[4].endsWith(\"%\")?parseFloat(rgb[4])/100:parseFloat(rgb[4]);}return[clamp(parseFloat(rgb[1])/255,0,1),clamp(parseFloat(rgb[2])/255,0,1),clamp(parseFloat(rgb[3])/255,0,1),clamp(alpha,0,1)];}let hex=value.replace(\"#\",\"\");if(hex.length===3||hex.length===4){hex=hex.split(\"\").map(c=>c+c).join(\"\");}if(hex.length===6)hex+=\"ff\";if(hex.length!==8||/[^0-9a-f]/i.test(hex))return[0,0,0,1];return[parseInt(hex.slice(0,2),16)/255,parseInt(hex.slice(2,4),16)/255,parseInt(hex.slice(4,6),16)/255,parseInt(hex.slice(6,8),16)/255];}function compile(gl,type,source){const shader=gl.createShader(type);if(!shader)return null;gl.shaderSource(shader,source);gl.compileShader(shader);if(!gl.getShaderParameter(shader,gl.COMPILE_STATUS)){console.warn(\"[HalftoneScroll]\",gl.getShaderInfoLog(shader));gl.deleteShader(shader);return null;}return shader;}function link(gl,fragSource){const vs=compile(gl,gl.VERTEX_SHADER,VERT);const fs=compile(gl,gl.FRAGMENT_SHADER,fragSource);if(!vs||!fs)return null;const program=gl.createProgram();if(!program)return null;gl.attachShader(program,vs);gl.attachShader(program,fs);gl.bindAttribLocation(program,0,\"aPos\");gl.linkProgram(program);gl.deleteShader(vs);gl.deleteShader(fs);if(!gl.getProgramParameter(program,gl.LINK_STATUS)){console.warn(\"[HalftoneScroll]\",gl.getProgramInfoLog(program));gl.deleteProgram(program);return null;}return program;}/** Lazily-resolved, cached uniform locations for one program. */function uniformCache(gl,program){const cache={};return name=>{if(!(name in cache))cache[name]=gl.getUniformLocation(program,name);return cache[name];};}/**\n * Scale factors that map the component's UV box onto an image under\n * cover / contain / stretch. Returns [1, 1] when there is nothing to fit.\n */function fitScale(layer,fit,boxWidth,boxHeight){if(!layer||!layer.size||fit===\"stretch\")return[1,1];const ratio=layer.size.width/layer.size.height/(boxWidth/boxHeight);const wide=ratio>1;if(wide===(fit===\"cover\"))return[1/ratio,1];return[1,ratio];}/**\n * Uploads one image URL into one of the context's layer textures. Clearing the\n * URL drops the layer back to its placeholder, which the draw pass reads as\n * \"not set\" and falls back to the flat colour for.\n */function useLayerTexture(ctxRef,generation,key,url,active,invalidate){React.useEffect(()=>{const ctx=ctxRef.current;if(!ctx)return;const trimmed=(url||\"\").trim();if(!active||!trimmed){ctx.layers[key].size=null;invalidate();return;}let cancelled=false;const img=new Image;img.crossOrigin=\"anonymous\";img.onload=()=>{const live=ctxRef.current;if(cancelled||!live)return;const{gl}=live;gl.bindTexture(gl.TEXTURE_2D,live.layers[key].texture);gl.texImage2D(gl.TEXTURE_2D,0,gl.RGBA,gl.RGBA,gl.UNSIGNED_BYTE,img);live.layers[key].size={width:img.naturalWidth||1,height:img.naturalHeight||1};invalidate();};img.onerror=()=>{if(!cancelled){console.warn(`[HalftoneScroll] ${key} image failed:`,trimmed);}};img.src=trimmed;return()=>{cancelled=true;};// eslint-disable-next-line react-hooks/exhaustive-deps\n},[ctxRef,generation,key,url,active,invalidate]);}/* ---------------------------------------------------------------- component */export default function HalftoneScroll(props){const containerRef=React.useRef(null);const canvasRef=React.useRef(null);const ctxRef=React.useRef(null);const propsRef=React.useRef(props);propsRef.current=props;const progressRef=React.useRef(0);const frameRef=React.useRef(null);const fieldKeyRef=React.useRef(\"\");const timeRef=React.useRef(0);const[glGeneration,setGlGeneration]=React.useState(0);const isCanvas=RenderTarget.current()===RenderTarget.canvas;const manual=isCanvas||props.driver===\"manual\";/* -- draw ---------------------------------------------------------- */const draw=React.useCallback(()=>{const ctx=ctxRef.current;const canvas=canvasRef.current;const container=containerRef.current;if(!ctx||!canvas||!container)return;const p=propsRef.current;const gl=ctx.gl;if(gl.isContextLost())return;const rect=container.getBoundingClientRect();const cssWidth=Math.max(1,rect.width);const cssHeight=Math.max(1,rect.height);const dpr=Math.min(window.devicePixelRatio||1,MAX_DPR);const bufferWidth=Math.max(1,Math.round(cssWidth*dpr));const bufferHeight=Math.max(1,Math.round(cssHeight*dpr));if(canvas.width!==bufferWidth)canvas.width=bufferWidth;if(canvas.height!==bufferHeight)canvas.height=bufferHeight;const cellSize=clamp(p.cellSize,1,200);const spanX=cssWidth/cellSize;const spanY=cssHeight/cellSize;const cols=Math.max(1,Math.ceil(spanX));const rows=Math.max(1,Math.ceil(spanY));// -- pass A: field texture, only when its inputs changed ---------\nif(ctx.fieldSize.cols!==cols||ctx.fieldSize.rows!==rows){gl.bindTexture(gl.TEXTURE_2D,ctx.fieldTexture);gl.texImage2D(gl.TEXTURE_2D,0,gl.RGBA,cols,rows,0,gl.RGBA,gl.UNSIGNED_BYTE,null);ctx.fieldSize={cols,rows};}const[texScaleX,texScaleY]=p.source===\"image\"?fitScale(ctx.layers.source,p.fit,cssWidth,cssHeight):[1,1];const fieldKey=[cols,rows,p.source,p.source===\"image\"?p.image:\"\",texScaleX.toFixed(5),texScaleY.toFixed(5),p.contrast,p.invertSource,p.noiseScale,p.source===\"noise\"&&p.drift>0?timeRef.current:0,p.direction,p.pattern,p.jitter,p.seed].join(\"|\");if(fieldKey!==fieldKeyRef.current){fieldKeyRef.current=fieldKey;gl.bindFramebuffer(gl.FRAMEBUFFER,ctx.framebuffer);gl.framebufferTexture2D(gl.FRAMEBUFFER,gl.COLOR_ATTACHMENT0,gl.TEXTURE_2D,ctx.fieldTexture,0);gl.viewport(0,0,cols,rows);gl.useProgram(ctx.fieldProgram);const u=ctx.fieldUniform;gl.uniform2f(u(\"uGrid\"),cols,rows);gl.uniform1i(u(\"uSource\"),p.source===\"image\"?0:1);gl.uniform2f(u(\"uTexScale\"),texScaleX,texScaleY);gl.uniform1f(u(\"uContrast\"),Math.max(0,p.contrast));gl.uniform1f(u(\"uInvertSource\"),p.invertSource?1:0);gl.uniform1f(u(\"uNoiseScale\"),Math.max(.1,p.noiseScale));gl.uniform1f(u(\"uTime\"),timeRef.current);gl.uniform1i(u(\"uDirection\"),DIRECTIONS.indexOf(p.direction));gl.uniform1i(u(\"uPattern\"),PATTERNS.indexOf(p.pattern));gl.uniform1f(u(\"uJitter\"),clamp(p.jitter,0,1));gl.uniform1f(u(\"uSeed\"),p.seed);gl.activeTexture(gl.TEXTURE0);gl.bindTexture(gl.TEXTURE_2D,ctx.layers.source.texture);gl.uniform1i(u(\"uImage\"),0);gl.drawArrays(gl.TRIANGLES,0,3);gl.bindFramebuffer(gl.FRAMEBUFFER,null);}// -- pass B: the visible marks -----------------------------------\ngl.viewport(0,0,bufferWidth,bufferHeight);gl.useProgram(ctx.drawProgram);const u=ctx.drawUniform;const ink=parseColor(p.ink);const bg=parseColor(p.background);const minScale=clamp(p.minScale,0,1);const maxScale=clamp(p.maxScale,0,1);gl.uniform2f(u(\"uResolution\"),bufferWidth,bufferHeight);gl.uniform2f(u(\"uSpan\"),spanX,spanY);gl.uniform2f(u(\"uGrid\"),cols,rows);gl.uniform1f(u(\"uCellPx\"),cellSize*dpr);gl.uniform1f(u(\"uProgress\"),progressRef.current);gl.uniform1f(u(\"uFeather\"),clamp(p.feather,.001,.5));gl.uniform1f(u(\"uMinScale\"),Math.min(minScale,maxScale));gl.uniform1f(u(\"uMaxScale\"),Math.max(minScale,maxScale));gl.uniform1f(u(\"uCutoff\"),clamp(p.cutoff,0,.95));gl.uniform1f(u(\"uLevels\"),Math.round(clamp(p.levels,0,16)));gl.uniform1i(u(\"uShape\"),SHAPES.indexOf(p.shape));gl.uniform1f(u(\"uAnchor\"),p.anchor===\"center\"?1:0);gl.uniform1i(u(\"uMode\"),p.mode===\"dissolve\"?1:0);gl.uniform1f(u(\"uPolarity\"),p.polarity===\"out\"?1:0);gl.uniform1f(u(\"uImageBias\"),clamp(p.imageBias,0,1));gl.uniform1f(u(\"uToneLift\"),clamp(p.toneLift,0,1));gl.uniform1f(u(\"uAreaTrue\"),p.sizing===\"area\"?1:0);gl.uniform4f(u(\"uInk\"),ink[0],ink[1],ink[2],ink[3]);gl.uniform4f(u(\"uPaper\"),bg[0],bg[1],bg[2],bg[3]);const useMark=!!ctx.layers.mark.size;const useGap=!!ctx.layers.gap.size;const markFit=fitScale(ctx.layers.mark,p.fit,cssWidth,cssHeight);const gapFit=fitScale(ctx.layers.gap,p.fit,cssWidth,cssHeight);gl.uniform1f(u(\"uUseMark\"),useMark?1:0);gl.uniform1f(u(\"uUseGap\"),useGap?1:0);gl.uniform2f(u(\"uMarkScale\"),markFit[0],markFit[1]);gl.uniform2f(u(\"uGapScale\"),gapFit[0],gapFit[1]);gl.activeTexture(gl.TEXTURE0);gl.bindTexture(gl.TEXTURE_2D,ctx.fieldTexture);gl.uniform1i(u(\"uField\"),0);gl.activeTexture(gl.TEXTURE1);gl.bindTexture(gl.TEXTURE_2D,ctx.layers.mark.texture);gl.uniform1i(u(\"uMarkImage\"),1);gl.activeTexture(gl.TEXTURE2);gl.bindTexture(gl.TEXTURE_2D,ctx.layers.gap.texture);gl.uniform1i(u(\"uGapImage\"),2);gl.drawArrays(gl.TRIANGLES,0,3);},[]);const invalidate=React.useCallback(()=>{fieldKeyRef.current=\"\";requestDrawRef.current();},[]);const requestDraw=React.useCallback(()=>{if(frameRef.current!=null)return;frameRef.current=requestAnimationFrame(()=>{frameRef.current=null;draw();});},[draw]);const requestDrawRef=React.useRef(requestDraw);requestDrawRef.current=requestDraw;/* -- GL setup ------------------------------------------------------ */React.useEffect(()=>{const canvas=canvasRef.current;if(!canvas)return;let disposed=false;const setup=()=>{const gl=canvas.getContext(\"webgl\",{alpha:true,antialias:false,depth:false,stencil:false,premultipliedAlpha:false,preserveDrawingBuffer:true,powerPreference:\"high-performance\"});if(!gl){console.warn(\"[HalftoneScroll] WebGL unavailable\");return;}const fieldProgram=link(gl,FIELD_FRAG);const drawProgram=link(gl,DRAW_FRAG);const quad=gl.createBuffer();const fieldTexture=gl.createTexture();const framebuffer=gl.createFramebuffer();const layerTextures={source:gl.createTexture(),mark:gl.createTexture(),gap:gl.createTexture()};if(!fieldProgram||!drawProgram||!quad||!fieldTexture||!framebuffer||!layerTextures.source||!layerTextures.mark||!layerTextures.gap){return;}// One oversized triangle covers the clip volume.\ngl.bindBuffer(gl.ARRAY_BUFFER,quad);gl.bufferData(gl.ARRAY_BUFFER,new Float32Array([-1,-1,3,-1,-1,3]),gl.STATIC_DRAW);gl.enableVertexAttribArray(0);gl.vertexAttribPointer(0,2,gl.FLOAT,false,0,0);// Leave uploads unflipped: texture t=0 is then the image's TOP row,\n// which is what the shaders' top-origin cn.y expects.\ngl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL,0);gl.disable(gl.DEPTH_TEST);gl.disable(gl.BLEND);// Placeholder until (or unless) an image loads. Mid grey, so an\n// unset source biases nothing: density reads 0.5 everywhere.\nfor(const texture of Object.values(layerTextures)){gl.bindTexture(gl.TEXTURE_2D,texture);gl.texImage2D(gl.TEXTURE_2D,0,gl.RGBA,1,1,0,gl.RGBA,gl.UNSIGNED_BYTE,new Uint8Array([128,128,128,255]));for(const[k,v]of[[gl.TEXTURE_WRAP_S,gl.CLAMP_TO_EDGE],[gl.TEXTURE_WRAP_T,gl.CLAMP_TO_EDGE],[gl.TEXTURE_MIN_FILTER,gl.LINEAR],[gl.TEXTURE_MAG_FILTER,gl.LINEAR]]){gl.texParameteri(gl.TEXTURE_2D,k,v);}}// NEAREST: one texel per cell, sampled dead centre.\ngl.bindTexture(gl.TEXTURE_2D,fieldTexture);for(const[k,v]of[[gl.TEXTURE_WRAP_S,gl.CLAMP_TO_EDGE],[gl.TEXTURE_WRAP_T,gl.CLAMP_TO_EDGE],[gl.TEXTURE_MIN_FILTER,gl.NEAREST],[gl.TEXTURE_MAG_FILTER,gl.NEAREST]]){gl.texParameteri(gl.TEXTURE_2D,k,v);}ctxRef.current={gl,fieldProgram,drawProgram,fieldUniform:uniformCache(gl,fieldProgram),drawUniform:uniformCache(gl,drawProgram),quad,layers:{source:{texture:layerTextures.source,size:null},mark:{texture:layerTextures.mark,size:null},gap:{texture:layerTextures.gap,size:null}},fieldTexture,framebuffer,fieldSize:{cols:0,rows:0}};fieldKeyRef.current=\"\";// Textures are gone after a context loss - make the layer effects\n// re-run so they upload again.\nsetGlGeneration(n=>n+1);requestDraw();};setup();const onLost=event=>{event.preventDefault();ctxRef.current=null;};const onRestored=()=>{if(!disposed)setup();};canvas.addEventListener(\"webglcontextlost\",onLost);canvas.addEventListener(\"webglcontextrestored\",onRestored);return()=>{disposed=true;canvas.removeEventListener(\"webglcontextlost\",onLost);canvas.removeEventListener(\"webglcontextrestored\",onRestored);const ctx=ctxRef.current;if(ctx){const{gl}=ctx;gl.deleteProgram(ctx.fieldProgram);gl.deleteProgram(ctx.drawProgram);gl.deleteBuffer(ctx.quad);for(const layer of Object.values(ctx.layers)){gl.deleteTexture(layer.texture);}gl.deleteTexture(ctx.fieldTexture);gl.deleteFramebuffer(ctx.framebuffer);}ctxRef.current=null;};},[requestDraw]);/* -- layer uploads ------------------------------------------------- */useLayerTexture(ctxRef,glGeneration,\"source\",props.image,props.source===\"image\",invalidate);useLayerTexture(ctxRef,glGeneration,\"mark\",props.markImage,true,invalidate);useLayerTexture(ctxRef,glGeneration,\"gap\",props.gapImage,true,invalidate);/* -- resize -------------------------------------------------------- */React.useEffect(()=>{const node=containerRef.current;if(!node)return;if(typeof ResizeObserver===\"undefined\"){window.addEventListener(\"resize\",requestDraw);return()=>window.removeEventListener(\"resize\",requestDraw);}const observer=new ResizeObserver(requestDraw);observer.observe(node);return()=>observer.disconnect();},[requestDraw]);/* -- scroll / manual progress -------------------------------------- *//* -- scroll driver -------------------------------------------------- */const scrollYProgress=useMotionValue(0);const springConfig=React.useMemo(()=>{const smooth=clamp(props.smoothing,0,1);return{stiffness:320-smooth*240,damping:22+smooth*22,mass:.25+smooth*.6};},[props.smoothing]);const smoothProgress=useSpring(scrollYProgress,springConfig);/**\n     * The element whose travel drives the animation: the section named by\n     * `sectionId`, or this component's own box when that is blank. Framer may\n     * mount the target after this component, so keep looking for a moment\n     * before giving up.\n     */const[section,setSection]=React.useState(null);React.useEffect(()=>{const id=(props.sectionId||\"\").trim().replace(/^#/,\"\");if(!id){setSection(null);return;}let cancelled=false;let attempts=0;let timer=0;const find=()=>{if(cancelled)return;const el=document.getElementById(id);if(el){setSection(el);return;}if(++attempts>40){console.warn(`[HalftoneScroll] No element with id \"${id}\" on the page - `+`driving from this layer's own box instead. In Framer, set the `+`section's Name/ID under the layer's HTML settings.`);setSection(null);return;}timer=window.setTimeout(find,50);};find();return()=>{cancelled=true;window.clearTimeout(timer);};},[props.sectionId]);React.useEffect(()=>{if(manual)return;const node=section??containerRef.current;if(!node)return;let frame=null;let first=true;const measure=()=>{frame=null;// Clamp to 0..1. useScroll used to do this for us, and everything\n// downstream assumes it: startAt/endAt map that unit range onto a\n// wider window, and the spring has to travel whatever distance it\n// is given. Unclamped, an off-screen section reads tens of units\n// away and the spring spends the whole scroll catching up.\nconst raw=clamp(scrollRangeProgress(node.getBoundingClientRect(),window.innerHeight,props.scrollRange),0,1);scrollYProgress.set(raw);if(first){first=false;// Land on the initial value instead of animating up from 0.\nconst jump=smoothProgress.jump;if(typeof jump===\"function\")jump.call(smoothProgress,raw);}};const schedule=()=>{if(frame==null)frame=requestAnimationFrame(measure);};measure();// Capture phase on the document, not window: scroll events do not\n// bubble, so a window listener misses pages that scroll inside a\n// container rather than the document. Framer does both.\ndocument.addEventListener(\"scroll\",schedule,{capture:true,passive:true});window.addEventListener(\"resize\",schedule);const observer=typeof ResizeObserver===\"undefined\"?null:new ResizeObserver(schedule);if(observer)observer.observe(node);return()=>{if(frame!=null)cancelAnimationFrame(frame);document.removeEventListener(\"scroll\",schedule,{capture:true});window.removeEventListener(\"resize\",schedule);if(observer)observer.disconnect();};},[manual,section,props.scrollRange,scrollYProgress,smoothProgress]);useMotionValueEvent(smoothProgress,\"change\",value=>{const p=propsRef.current;if(isCanvas||p.driver===\"manual\")return;progressRef.current=remapProgress(value,p);requestDraw();});React.useEffect(()=>{if(!manual)return;progressRef.current=applyEasing(clamp(props.previewProgress,0,1),props.easing);requestDraw();},[manual,props.previewProgress,props.easing,requestDraw]);React.useEffect(()=>{if(manual)return;progressRef.current=remapProgress(smoothProgress.get(),propsRef.current);requestDraw();},[manual,props.startAt,props.endAt,props.easing,smoothProgress,requestDraw]);/* -- warn about a scroll range with no travel ---------------------- */React.useEffect(()=>{if(manual||RenderTarget.current()!==RenderTarget.preview)return;const node=section??containerRef.current;if(!node)return;const check=()=>{const rect=node.getBoundingClientRect();const top=rect.top+window.scrollY;const vh=window.innerHeight;const what=section?`section \"${props.sectionId}\"`:\"this layer (no Section ID set)\";let problem=\"\";if(props.scrollRange===\"pin\"&&rect.height<=vh){problem=`\"Pinned\" travel is (height - viewport), so it needs ${what} `+`TALLER than the viewport. It is ${Math.round(rect.height)}px `+`against a ${vh}px viewport, giving ${Math.round(rect.height-vh)}px `+`of travel. Try 200vh for one viewport of scroll.`;}else if(props.scrollRange===\"enter\"&&top<vh){problem=`\"Section enter\" has no travel: ${what} already starts above `+`the fold, so progress is pinned at 1. Use \"Section exit\" for `+`a first section.`;}else if(props.scrollRange===\"exit\"&&top+rect.height<vh){problem=`\"Section exit\" has no travel: ${what} never reaches the `+`bottom of the viewport.`;}if(problem)console.warn(\"[HalftoneScroll]\",problem);};const id=window.setTimeout(check,250);return()=>window.clearTimeout(id);},[manual,section,props.scrollRange,props.sectionId]);/* -- noise drift loop ---------------------------------------------- */React.useEffect(()=>{if(props.source!==\"noise\"||props.drift<=0)return;let raf=0;let last=performance.now();const tick=now=>{timeRef.current+=(now-last)/1e3*props.drift;last=now;draw();raf=requestAnimationFrame(tick);};raf=requestAnimationFrame(tick);return()=>cancelAnimationFrame(raf);},[props.source,props.drift,draw]);/* -- redraw on any other prop change ------------------------------- */React.useEffect(requestDraw);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\",pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"canvas\",{ref:canvasRef,style:{display:\"block\",width:\"100%\",height:\"100%\"}})});}HalftoneScroll.defaultProps={mode:\"dissolve\",polarity:\"in\",imageBias:0,toneLift:1,sizing:\"area\",cellSize:5,shape:\"square\",anchor:\"corner\",minScale:0,maxScale:1,levels:0,cutoff:.02,source:\"image\",image:\"\",fit:\"cover\",contrast:1,invertSource:false,noiseScale:3,drift:0,markImage:\"\",gapImage:\"\",driver:\"scroll\",previewProgress:.5,scrollRange:\"exit\",sectionId:\"\",direction:\"top-bottom\",pattern:\"random\",feather:.28,jitter:.25,easing:\"linear\",startAt:-.05,endAt:1.05,smoothing:.4,seed:13,ink:\"#ffffff\",background:\"rgba(0,0,0,0)\"};addPropertyControls(HalftoneScroll,{mode:{type:ControlType.Enum,title:\"Mode\",options:[\"dissolve\",\"picture\"],optionTitles:[\"Dissolve\",\"Picture\"],defaultValue:\"dissolve\",description:\"Dissolve: a tonal halftone band that resolves into the solid source image. Picture: static halftone artwork - tone caps coverage, so it never resolves.\"},polarity:{type:ControlType.Enum,title:\"Direction\",options:[\"in\",\"out\"],optionTitles:[\"Resolve in\",\"Break apart\"],defaultValue:\"in\"},toneLift:{type:ControlType.Number,title:\"Tone\",min:0,max:1,step:.01,defaultValue:1,description:\"How much image tone shapes the marks inside the band. 1 = tonal halftone that resolves to a solid image, 0 = a plain geometric sweep.\",hidden:p=>p.mode!==\"dissolve\"},sizing:{type:ControlType.Enum,title:\"Sizing\",options:[\"area\",\"linear\"],optionTitles:[\"Even ink\",\"Linear side\"],defaultValue:\"area\",description:\"Even ink: the mark's area tracks the weight, so the sweep moves ink at a steady rate. Linear side: the raw side length, which matches print halftone artwork.\"},imageBias:{type:ControlType.Number,title:\"Tone Order\",min:0,max:1,step:.01,defaultValue:0,description:\"Lets darker cells lead the sweep.\",hidden:p=>p.mode!==\"dissolve\"},cellSize:{type:ControlType.Number,title:\"Cell\",min:1,max:64,step:1,unit:\"px\",defaultValue:5},shape:{type:ControlType.Enum,title:\"Mark\",options:SHAPES,optionTitles:[\"Square\",\"Circle\",\"Diamond\"],defaultValue:\"square\"},anchor:{type:ControlType.Enum,title:\"Anchor\",options:[\"corner\",\"center\"],optionTitles:[\"Corner\",\"Center\"],defaultValue:\"corner\"},minScale:{type:ControlType.Number,title:\"Min\",min:0,max:1,step:.01,defaultValue:0},maxScale:{type:ControlType.Number,title:\"Max\",min:0,max:1,step:.01,defaultValue:1},levels:{type:ControlType.Number,title:\"Steps\",min:0,max:16,step:1,defaultValue:0,description:\"0 = continuous sizing\"},cutoff:{type:ControlType.Number,title:\"Cutoff\",min:0,max:.95,step:.01,defaultValue:.02},source:{type:ControlType.Enum,title:\"Source\",options:[\"image\",\"noise\"],optionTitles:[\"Image\",\"Noise\"],defaultValue:\"image\"},image:{type:ControlType.Image,title:\"Image\",hidden:p=>p.source!==\"image\"},fit:{type:ControlType.Enum,title:\"Fit\",options:[\"cover\",\"contain\",\"stretch\"],optionTitles:[\"Cover\",\"Contain\",\"Stretch\"],defaultValue:\"cover\",hidden:p=>p.source!==\"image\"},noiseScale:{type:ControlType.Number,title:\"Scale\",min:.5,max:24,step:.5,defaultValue:3,hidden:p=>p.source!==\"noise\"},drift:{type:ControlType.Number,title:\"Drift\",min:0,max:4,step:.05,defaultValue:0,hidden:p=>p.source!==\"noise\"},contrast:{type:ControlType.Number,title:\"Contrast\",min:0,max:4,step:.05,defaultValue:1},invertSource:{type:ControlType.Boolean,title:\"Invert\",defaultValue:false},markImage:{type:ControlType.Image,title:\"Mark Fill\",description:\"Fills the marks. Set this to the hero image for a full-colour halftone. Leave empty to use Ink.\"},gapImage:{type:ControlType.Image,title:\"Gap Fill\",description:\"Shows between the marks. Leave empty to use Paper.\"},driver:{type:ControlType.Enum,title:\"Driver\",options:[\"scroll\",\"manual\"],optionTitles:[\"Scroll\",\"Manual\"],defaultValue:\"scroll\"},previewProgress:{type:ControlType.Number,title:\"Progress\",min:0,max:1,step:.01,defaultValue:.5,description:\"Also used to scrub on the Framer canvas\"},scrollRange:{type:ControlType.Enum,title:\"Range\",options:[\"exit\",\"enter\",\"through\",\"pin\"],optionTitles:[\"Section exit\",\"Section enter\",\"Full pass\",\"Pinned (needs layer taller than viewport)\"],defaultValue:\"exit\",description:\"Which part of the section's travel the transition maps onto. Use Section exit to hand off to the section below.\",hidden:p=>p.driver!==\"scroll\"},sectionId:{type:ControlType.String,title:\"Section ID\",placeholder:\"e.g. hero\",defaultValue:\"\",description:\"Drive the timing from the section with this HTML id instead of this layer's own box. Lets the layer stay 100vh while a taller section controls how long the transition runs. Blank = use this layer.\",hidden:p=>p.driver!==\"scroll\"},direction:{type:ControlType.Enum,title:\"Flow\",options:DIRECTIONS,optionTitles:[\"Top -> Bottom\",\"Bottom -> Top\",\"Left -> Right\",\"Right -> Left\",\"Center -> Out\",\"Out -> Center\"],defaultValue:\"top-bottom\"},pattern:{type:ControlType.Enum,title:\"Pattern\",options:PATTERNS,optionTitles:[\"Random\",\"Checker\",\"Diagonal\",\"Wave\",\"Spiral\",\"Radial\"],defaultValue:\"random\"},feather:{type:ControlType.Number,title:\"Band\",min:.01,max:.5,step:.01,defaultValue:.28},jitter:{type:ControlType.Number,title:\"Jitter\",min:0,max:1,step:.01,defaultValue:.25},easing:{type:ControlType.Enum,title:\"Easing\",options:[\"linear\",\"ease-in\",\"ease-out\",\"ease-in-out\",\"expo-out\"],optionTitles:[\"Linear\",\"Ease In\",\"Ease Out\",\"Ease InOut\",\"Expo Out\"],defaultValue:\"linear\"},startAt:{type:ControlType.Number,title:\"Start At\",min:-.5,max:.95,step:.01,defaultValue:-.05,description:\"Negative starts the effect already underway at the top of the range - use it if the transition seems to begin too late.\",hidden:p=>p.driver!==\"scroll\"},endAt:{type:ControlType.Number,title:\"End At\",min:.05,max:1.5,step:.01,defaultValue:1.05,description:\"Above 1 keeps the effect running to the end of the range - use it if the transition finishes too early.\",hidden:p=>p.driver!==\"scroll\"},smoothing:{type:ControlType.Number,title:\"Smooth\",min:0,max:1,step:.01,defaultValue:0,hidden:p=>p.driver!==\"scroll\"},seed:{type:ControlType.Number,title:\"Seed\",min:0,max:9999,step:1,defaultValue:13},ink:{type:ControlType.Color,title:\"Ink\",defaultValue:\"#ffffff\",hidden:p=>!!(p.markImage||\"\").trim()},background:{type:ControlType.Color,title:\"Paper\",defaultValue:\"rgba(0,0,0,0)\",description:\"Transparent lets whatever is behind the component show through the gaps.\",hidden:p=>!!(p.gapImage||\"\").trim()}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\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