{"version":3,"file":"RunaroundTextWrap.CgK_ydwD.mjs","names":["useRef","useState","useCallback","useMemo","_Fragment","lineTop","React.useLayoutEffect","useEffect"],"sources":["https:/framerusercontent.com/modules/Y5irS7iDxnRg30rgJtBT/jHQib3g0iDl2UmBGNHUr/RunaroundTextWrap.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget,useIsStaticRenderer}from\"framer\";import{startTransition,useCallback,useEffect,useMemo,useRef,useState}from\"react\";const useIsomorphicLayoutEffect=typeof window!==\"undefined\"?React.useLayoutEffect:useEffect;/**\n * Instructions:\n * Create a Framer React code component called Runaround Text Wrap.\n * The component should have two main inputs in the Framer property panel:\n * 1. Image: transparent PNG/SVG image used as the wrapping object.\n * 2. Text: long body text that wraps around the visible shape of the image.\n * The image should be positioned absolutely inside the component using X, Y, width, and height controls.\n * The text must wrap around the actual visible pixels of the image, ignoring transparent background pixels. Do not wrap around the image bounding box.\n * Implement by loading the image into an offscreen canvas, reading its alpha channel, calculating occupied horizontal spans for every text line,\n * and laying out the text manually line-by-line using canvas text measurement. Render the final result as absolutely positioned text lines inside the component.\n * Include controls for font family, font size, line height, text color, image position, image size, wrap padding, text padding, and debug mode.\n * Debug mode should show the image bounding box and sampled wrap zones.\n *\n * @framerIntrinsicWidth 700\n * @framerIntrinsicHeight 500\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function RunaroundTextWrap(props){const{images:imagesProp,image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Wrap image\"},text,style,font,textColor,textPadding=24,wrapPadding,paragraphSpacing,imageX,imageY,imageScale,imageWidthPx,imagePositionMode,imageSizeMode,alphaThreshold,sampleStep,debug,dragToMove,clipContent,textColumnMode,textColumnWidth,textColumnWidthPx,textColumnAlign}=props;const isStatic=useIsStaticRenderer();const renderTarget=RenderTarget.current();const allowDynamicLayout=renderTarget===RenderTarget.preview||renderTarget===RenderTarget.canvas;const containerRef=useRef(null);const[lines,setLines]=useState([]);const[debugZones,setDebugZones]=useState([]);const[column,setColumn]=useState({left:0,width:0});const[containerMetrics,setContainerMetrics]=useState({width:0,height:0});const hasMulti=Array.isArray(imagesProp)&&imagesProp.length>0;// IMPORTANT: Do not memoize this. In Framer, Array/Object controls can sometimes mutate in-place,\n// and memoization can cause stale positions between Canvas and Preview.\nconst images=hasMulti?imagesProp.map(it=>({image:it.image,x:Number.isFinite(it.x)?it.x:imageX,y:Number.isFinite(it.y)?it.y:imageY,scale:Number.isFinite(it.scale)?it.scale:imageScale,widthPx:Number.isFinite(it.widthPx)?it.widthPx:imageWidthPx})):[{image,x:imageX,y:imageY,scale:imageScale,widthPx:imageWidthPx}];const[dragPositions,setDragPositions]=useState(()=>images.map(it=>({x:it.x,y:it.y})));const dragPositionsRef=useRef([]);const toPx=useCallback(pos=>{const w=containerMetrics.width||1;const h=containerMetrics.height||1;if(imagePositionMode===\"percent\"){return{x:pos.x/100*w,y:pos.y/100*h};}return{x:pos.x,y:pos.y};},[containerMetrics.width,containerMetrics.height,imagePositionMode]);const fromPx=useCallback(px=>{const w=containerMetrics.width||1;const h=containerMetrics.height||1;if(imagePositionMode===\"percent\"){return{x:px.x/w*100,y:px.y/h*100};}return{x:px.x,y:px.y};},[containerMetrics.width,containerMetrics.height,imagePositionMode]);const imageElBySrcRef=useRef({});const imageBaseSizeBySrcRef=useRef({});// (Removed unused imageBaseSize/imageDrawWidth/imageDrawHeight and unused refs to satisfy Framer linting.)\nconst imgRef=useRef(null);const imgSrcRef=useRef(\"\");const maskCanvasRef=useRef(null);const layoutRafRef=useRef(0);const computeLayoutRef=useRef(null);const dragStateRef=useRef(null);const normalizedText=useMemo(()=>{const raw=(text??\"\").replace(/\\r\\n/g,\"\\n\");// Preserve paragraph breaks (blank lines), but normalize spacing within paragraphs.\nconst parts=raw.split(/\\n\\s*\\n+/).map(p=>p.replace(/[\\n\\t ]+/g,\" \").trim()).filter(Boolean);return parts.join(\"\\n\\n\");},[text]);const resolvedFont=useMemo(()=>{const family=font?.fontFamily||\"Inter\";const weight=font?.fontWeight||400;const style=font?.fontStyle||\"normal\";return{fontFamily:family,fontWeight:weight,fontStyle:style,letterSpacing:font?.letterSpacing,textAlign:font?.textAlign};},[font]);const fontSizePx=useMemo(()=>{const fs=font?.fontSize;if(typeof fs===\"number\"&&Number.isFinite(fs))return Math.max(1,fs);if(typeof fs===\"string\"){const px=fs.match(/^(\\s*([0-9.]+)px\\s*)$/i);if(px)return Math.max(1,parseFloat(px[2]));const num=fs.match(/^(\\s*([0-9.]+)\\s*)$/);if(num)return Math.max(1,parseFloat(num[2]));}return 22;},[font?.fontSize]);const effectiveLineHeight=useMemo(()=>{const lh=font?.lineHeight;let computed=null;if(typeof lh===\"number\"&&Number.isFinite(lh)){// Framer Font control may provide a unitless multiplier as a number (e.g. 1.2).\n// Treat small numbers as multipliers to avoid collapsed lines.\ncomputed=lh>0&&lh<4?lh*fontSizePx:lh;}else if(typeof lh===\"string\"){const trimmed=lh.trim().toLowerCase();if(trimmed&&trimmed!==\"normal\"){const px=trimmed.match(/^([0-9.]+)px$/);if(px)computed=parseFloat(px[1]);const em=trimmed.match(/^([0-9.]+)em$/);if(em)computed=parseFloat(em[1])*fontSizePx;const pct=trimmed.match(/^([0-9.]+)%$/);if(pct)computed=parseFloat(pct[1])/100*fontSizePx;const unitless=trimmed.match(/^([0-9.]+)$/);if(unitless)computed=parseFloat(unitless[1])*fontSizePx;}}const fallback=fontSizePx*1.2;const value=computed&&Number.isFinite(computed)?computed:fallback;// Don't clamp to a large minimum (it prevents low line-heights from taking effect).\n// Only guard against invalid/zero values.\nconst safe=value>1?value:fallback;return Math.round(safe);},[font?.lineHeight,fontSizePx]);const scheduleLayout=useCallback(()=>{if(typeof window===\"undefined\")return;if(!allowDynamicLayout)return;if(layoutRafRef.current)cancelAnimationFrame(layoutRafRef.current);layoutRafRef.current=requestAnimationFrame(()=>{computeLayoutRef.current?.();});},[allowDynamicLayout]);const computeLayout=useCallback(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const container=containerRef.current;if(!container)return;if(!allowDynamicLayout)return;const containerWidth=Math.max(1,Math.floor(container.clientWidth));const measuredHeight=Math.max(1,Math.floor(container.clientHeight));startTransition(()=>setContainerMetrics({width:containerWidth,height:measuredHeight}));const mode=textColumnMode===\"pixels\"?\"pixels\":\"percent\";const textAreaWidth=(()=>{if(mode===\"pixels\"){const px=Number.isFinite(textColumnWidthPx)?Math.max(40,Math.min(4e3,textColumnWidthPx)):420;return Math.max(1,Math.floor(Math.min(containerWidth,px)));}const colPct=Number.isFinite(textColumnWidth)?Math.max(10,Math.min(100,textColumnWidth)):100;return Math.max(1,Math.floor(containerWidth*colPct/100));})();const textAreaLeft=textColumnAlign===\"right\"?containerWidth-textAreaWidth:textColumnAlign===\"center\"?Math.floor((containerWidth-textAreaWidth)/2):0;startTransition(()=>setColumn({left:textAreaLeft,width:textAreaWidth}));const fixedHeight=style?.height===\"100%\";const maxLinesForAuto=2e3;const desiredTextHeight=Math.ceil(textPadding*2+effectiveLineHeight*maxLinesForAuto);const desiredImageHeight=images.reduce((acc,it,idx)=>{const posStored=dragPositionsRef.current[idx]??{x:it.x,y:it.y};const pos=toPx(posStored);const src=it.image?.src;if(!src)return acc;const base=imageBaseSizeBySrcRef.current[src]??{width:220,height:220};const w=imageSizeMode===\"pixels\"?Math.max(1,Math.round(Number.isFinite(it.widthPx)?it.widthPx:220)):Math.max(1,Math.round(base.width*it.scale));const h=imageSizeMode===\"pixels\"?Math.max(1,Math.round(w*base.height/Math.max(1,base.width))):Math.max(1,Math.round(base.height*it.scale));return Math.max(acc,Math.ceil(Math.max(0,pos.y+h)+textPadding));},0);// In Fit Height (auto) mode, don't let the current element height limit the layout\n// otherwise the component can collapse and stop laying out lines.\nconst containerHeight=fixedHeight?measuredHeight:Math.min(12e3,Math.max(measuredHeight,desiredTextHeight,desiredImageHeight));const measureCanvas=document.createElement(\"canvas\");const ctx=measureCanvas.getContext(\"2d\");if(!ctx)return;const cssFont=`${resolvedFont.fontStyle} ${resolvedFont.fontWeight} ${fontSizePx}px ${resolvedFont.fontFamily}`;ctx.font=cssFont;ctx.textBaseline=\"alphabetic\";const commitNoWrap=()=>{const result=buildLines({text:normalizedText,ctx,containerWidth:textAreaWidth,containerHeight,lineHeight:effectiveLineHeight,paragraphGap:Math.max(0,paragraphSpacing)*effectiveLineHeight,textPadding,blockedSpansByY:()=>[],xOffset:textAreaLeft});startTransition(()=>{setLines(result);setDebugZones([]);});};if(!normalizedText){startTransition(()=>{setLines([]);setDebugZones([]);});return;}const hasAnyImage=images.some(it=>!!it.image?.src);if(!hasAnyImage){commitNoWrap();return;}const ensureMaskCanvas=()=>{if(!maskCanvasRef.current){maskCanvasRef.current=document.createElement(\"canvas\");}const c=maskCanvasRef.current;if(!c)return null;if(c.width!==containerWidth)c.width=containerWidth;if(c.height!==containerHeight)c.height=containerHeight;const maskCtx=c.getContext(\"2d\",{willReadFrequently:true});return maskCtx;};const maskCtx=ensureMaskCanvas();if(!maskCtx){commitNoWrap();return;}// Ensure all images are loaded (cached by src).\nfor(const it of images){const src=it.image?.src;if(!src)continue;if(imageElBySrcRef.current[src])continue;const img=new Image;img.crossOrigin=\"anonymous\";img.onload=()=>{imageElBySrcRef.current[src]=img;const nw=img.naturalWidth||0;const nh=img.naturalHeight||0;imageBaseSizeBySrcRef.current[src]=nw>0&&nh>0?{width:nw,height:nh}:{width:220,height:220};scheduleLayout();};img.onerror=()=>{delete imageElBySrcRef.current[src];delete imageBaseSizeBySrcRef.current[src];scheduleLayout();};img.src=src;}const allLoaded=images.every(it=>{const src=it.image?.src;if(!src)return true;return!!imageElBySrcRef.current[src];});if(!allLoaded)return;maskCtx.clearRect(0,0,containerWidth,containerHeight);maskCtx.imageSmoothingEnabled=true;for(let i=0;i<images.length;i++){const it=images[i];const src=it.image?.src;if(!src)continue;const img=imageElBySrcRef.current[src];if(!img)continue;const posStored=dragPositionsRef.current[i]??{x:it.x,y:it.y};const pos=toPx(posStored);const base=imageBaseSizeBySrcRef.current[src]??{width:220,height:220};const w=imageSizeMode===\"pixels\"?Math.max(1,Math.round(Number.isFinite(it.widthPx)?it.widthPx:220)):Math.max(1,Math.round(base.width*it.scale));const h=imageSizeMode===\"pixels\"?Math.max(1,Math.round(w*base.height/Math.max(1,base.width))):Math.max(1,Math.round(base.height*it.scale));try{maskCtx.drawImage(img,pos.x,pos.y,w,h);}catch{// ignore a single image draw failure\n}}let imageData=null;try{imageData=maskCtx.getImageData(0,0,containerWidth,containerHeight);}catch{commitNoWrap();return;}const data=imageData.data;const step=Math.max(1,Math.floor(sampleStep));const blockedSpansByY=(lineTop,lineBottom)=>{const startY=Math.max(0,Math.floor(lineTop));const endY=Math.min(containerHeight,Math.ceil(lineBottom));if(endY<=startY)return[];let merged=[];for(let y=startY;y<endY;y+=step){const spans=scanRowForAlphaSpans({data,width:containerWidth,y,alphaThreshold,step});if(spans.length===0)continue;merged=mergeSpans(merged.concat(spans));}if(merged.length===0)return[];const padded=merged.map(s=>({left:Math.max(0,s.left-wrapPadding),right:Math.min(containerWidth,s.right+wrapPadding)})).filter(s=>s.right>s.left);return mergeSpans(padded);};const result=buildLines({text:normalizedText,ctx,containerWidth:textAreaWidth,containerHeight,lineHeight:effectiveLineHeight,paragraphGap:Math.max(0,paragraphSpacing)*effectiveLineHeight,textPadding,blockedSpansByY:(lineTop,lineBottom)=>{const spans=blockedSpansByY(lineTop,lineBottom);const left=textAreaLeft;const right=textAreaLeft+textAreaWidth;return spans.map(s=>({left:Math.max(left,s.left),right:Math.min(right,s.right)})).filter(s=>s.right>s.left);},xOffset:textAreaLeft});if(debug){const zones=[];for(let y=textPadding;y<=containerHeight-textPadding-effectiveLineHeight;y+=effectiveLineHeight){const spans=blockedSpansByY(y,y+effectiveLineHeight);for(const s of spans){zones.push({x:s.left,y,width:s.right-s.left,height:effectiveLineHeight});}}startTransition(()=>{setLines(result);setDebugZones(zones);});}else{startTransition(()=>{setLines(result);setDebugZones([]);});}},[allowDynamicLayout,images,normalizedText,resolvedFont.fontFamily,resolvedFont.fontWeight,resolvedFont.fontStyle,fontSizePx,effectiveLineHeight,textPadding,wrapPadding,paragraphSpacing,alphaThreshold,sampleStep,debug,scheduleLayout,style?.height,textColumnMode,textColumnWidth,textColumnWidthPx,textColumnAlign]);useEffect(()=>{computeLayoutRef.current=computeLayout;},[computeLayout]);const imagesSignature=useMemo(()=>{return images.map(it=>`${it.image?.src??\"\"}@${Math.round(it.x)}:${Math.round(it.y)}:${it.scale}:${Math.round(it.widthPx??0)}:${imagePositionMode}:${imageSizeMode}`).join(\"|\");},[images,imagePositionMode,imageSizeMode]);useIsomorphicLayoutEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;if(!containerRef.current)return;if(!allowDynamicLayout)return;// Sync drag positions to props whenever the image list/values change or when switching targets.\n// Avoids Canvas vs Preview mismatches.\nconst next=images.map(it=>({x:it.x,y:it.y}));dragPositionsRef.current=next;startTransition(()=>setDragPositions(next));},[imagesSignature,allowDynamicLayout,renderTarget]);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;if(!containerRef.current)return;if(!allowDynamicLayout)return;const el=containerRef.current;const ro=new ResizeObserver(()=>scheduleLayout());ro.observe(el);scheduleLayout();return()=>{if(layoutRafRef.current)cancelAnimationFrame(layoutRafRef.current);ro.disconnect();};},[allowDynamicLayout,scheduleLayout]);useEffect(()=>{scheduleLayout();},[images,normalizedText,resolvedFont.fontFamily,resolvedFont.fontWeight,resolvedFont.fontStyle,fontSizePx,effectiveLineHeight,textPadding,wrapPadding,paragraphSpacing,alphaThreshold,sampleStep,debug,allowDynamicLayout,dragPositions,scheduleLayout]);const renderedLines=useMemo(()=>{// In export/thumbnail we fallback to a simple block; in Canvas/Preview we render the true layout.\nif(!allowDynamicLayout)return null;return lines;},[allowDynamicLayout,lines]);const contentHeight=useMemo(()=>{const textMax=lines.reduce((acc,l)=>Math.max(acc,l.y+effectiveLineHeight),textPadding);const imgMax=images.reduce((acc,it,idx)=>{const src=it.image?.src;if(!src)return acc;const base=imageBaseSizeBySrcRef.current[src]??{width:220,height:220};const w=imageSizeMode===\"pixels\"?Math.max(1,Math.round(Number.isFinite(it.widthPx)?it.widthPx:220)):Math.max(1,Math.round(base.width*it.scale));const h=imageSizeMode===\"pixels\"?Math.max(1,Math.round(w*base.height/Math.max(1,base.width))):Math.max(1,Math.round(base.height*it.scale));const posStored=dragPositions[idx]??{x:it.x,y:it.y};const pos=toPx(posStored);return Math.max(acc,Math.max(0,pos.y+h));},0);const maxBottom=Math.max(textMax,imgMax);return Math.max(1,Math.ceil(maxBottom+textPadding));},[lines,effectiveLineHeight,textPadding,images,dragPositions]);const isFixedHeight=style?.height===\"100%\";const resolvedHeight=isFixedHeight?\"100%\":contentHeight;return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{...style,width:style?.width??\"100%\",height:resolvedHeight,position:\"relative\",overflow:clipContent?\"hidden\":\"visible\",background:\"transparent\"},children:[!isFixedHeight&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:1,height:contentHeight,pointerEvents:\"none\",opacity:0},\"aria-hidden\":true}),images.map((it,idx)=>{const src=it.image?.src;if(!src)return null;const baseKnown=!!imageBaseSizeBySrcRef.current[src];const base=imageBaseSizeBySrcRef.current[src]??{width:220,height:220};const w=imageSizeMode===\"pixels\"?Math.max(1,Math.round(Number.isFinite(it.widthPx)?it.widthPx:220)):Math.max(1,Math.round(base.width*it.scale));const h=imageSizeMode===\"pixels\"?Math.max(1,Math.round(w*base.height/Math.max(1,base.width))):Math.max(1,Math.round(base.height*it.scale));const posStored=dragPositions[idx]??{x:it.x,y:it.y};const pos=toPx(posStored);return /*#__PURE__*/_jsx(\"img\",{src:src,srcSet:it.image?.srcSet,crossOrigin:\"anonymous\",alt:it.image?.alt??\"\",style:{position:\"absolute\",left:pos.x,top:pos.y,width:w,height:h,objectFit:\"contain\",opacity:baseKnown?1:0,transition:\"opacity 120ms ease-out\",pointerEvents:baseKnown&&!isStatic&&allowDynamicLayout&&dragToMove?\"auto\":\"none\",userSelect:\"none\",cursor:baseKnown&&!isStatic&&allowDynamicLayout&&dragToMove?\"move\":\"default\",touchAction:\"none\"},draggable:false,onLoad:e=>{const imgEl=e.currentTarget;const nw=imgEl.naturalWidth||0;const nh=imgEl.naturalHeight||0;if(nw>0&&nh>0){imageBaseSizeBySrcRef.current[src]={width:nw,height:nh};// Do not cache the DOM <img> for masking; it may taint the canvas unless crossOrigin is set consistently.\n// Ensure the cached mask image is always a CORS-safe Image() instance.\nif(!imageElBySrcRef.current[src]){const safeImg=new Image;safeImg.crossOrigin=\"anonymous\";safeImg.onload=()=>{imageElBySrcRef.current[src]=safeImg;scheduleLayout();};safeImg.onerror=()=>{delete imageElBySrcRef.current[src];scheduleLayout();};safeImg.src=src;}scheduleLayout();}},onPointerDown:e=>{if(isStatic||!allowDynamicLayout||!dragToMove)return;e.preventDefault();e.currentTarget.setPointerCapture?.(e.pointerId);dragStateRef.current={active:true,index:idx,startX:e.clientX,startY:e.clientY,originX:pos.x,originY:pos.y};},onPointerMove:e=>{const s=dragStateRef.current;if(!s?.active||s.index!==idx)return;const dx=e.clientX-s.startX;const dy=e.clientY-s.startY;const nextPxPos={x:s.originX+dx,y:s.originY+dy};const nextStored=fromPx(nextPxPos);const next=dragPositionsRef.current.slice();next[idx]={x:nextStored.x,y:nextStored.y};dragPositionsRef.current=next;startTransition(()=>setDragPositions(next));scheduleLayout();},onPointerUp:()=>{const s=dragStateRef.current;if(!s)return;dragStateRef.current={...s,active:false};},onPointerCancel:()=>{const s=dragStateRef.current;if(!s)return;dragStateRef.current={...s,active:false};}},idx);}),!allowDynamicLayout?/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:(column.width>0?column.left:0)+textPadding,top:textPadding,width:column.width>0?Math.max(1,column.width-textPadding*2):`calc(100% - ${textPadding*2}px)`,color:textColor,lineHeight:`${effectiveLineHeight}px`,whiteSpace:\"pre-wrap\",...resolvedFont,fontSize:fontSizePx},children:normalizedText}):(renderedLines?.map((line,index)=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:line.x,top:line.y,width:line.width,textAlign:resolvedFont.textAlign??\"left\",color:textColor,whiteSpace:\"nowrap\",lineHeight:`${effectiveLineHeight}px`,...resolvedFont,fontSize:fontSizePx},children:line.text},index))),debug&&allowDynamicLayout&&/*#__PURE__*/_jsxs(_Fragment,{children:[images.map((it,idx)=>{const src=it.image?.src;if(!src)return null;const base=imageBaseSizeBySrcRef.current[src]??{width:220,height:220};const w=imageSizeMode===\"pixels\"?Math.max(1,Math.round(Number.isFinite(it.widthPx)?it.widthPx:220)):Math.max(1,Math.round(base.width*it.scale));const h=imageSizeMode===\"pixels\"?Math.max(1,Math.round(w*base.height/Math.max(1,base.width))):Math.max(1,Math.round(base.height*it.scale));const posStored=dragPositions[idx]??{x:it.x,y:it.y};const pos=toPx(posStored);const baseKnown=!!imageBaseSizeBySrcRef.current[src];if(!baseKnown)return null;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:pos.x,top:pos.y,width:w,height:h,border:\"1px dashed red\",pointerEvents:\"none\",boxSizing:\"border-box\"}},idx);}),debugZones.map((zone,index)=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:zone.x,top:zone.y,width:zone.width,height:zone.height,background:\"rgba(255, 0, 0, 0.12)\",pointerEvents:\"none\"}},\"z-\"+index))]})]});}function buildLines(params){const{text,ctx,containerWidth,containerHeight,lineHeight,paragraphGap,textPadding,blockedSpansByY,xOffset}=params;// Minimum width a usable run must have; otherwise we treat it as blocked.\n// This prevents extremely tiny gaps from producing lots of 1–2 character columns.\nconst minRunWidth=Math.max(16,ctx.measureText(\"MMMM\").width);// If a word is wider than the maximum usable width, we place it anyway so layout can always make progress.\nconst maxWordWidth=Math.max(1,containerWidth-textPadding*2);const paragraphs=text?text.split(\"\\n\\n\"):[];const out=[];let y=textPadding;for(let pIndex=0;pIndex<paragraphs.length;pIndex++){const words=paragraphs[pIndex]?paragraphs[pIndex].split(\" \"):[];let wordIndex=0;while(wordIndex<words.length&&y<=containerHeight-textPadding-lineHeight){const lineTop=y;const lineBottom=y+lineHeight;const blockedSpans=blockedSpansByY(lineTop,lineBottom);const availableRuns=getAvailableRuns({containerWidth,textPadding,blockedSpans:blockedSpans.map(s=>({left:s.left-xOffset,right:s.right-xOffset})),minRunWidth});let placedOnRow=false;for(const run of availableRuns){if(wordIndex>=words.length)break;let lineText=\"\";let testText=\"\";let fitCount=0;while(wordIndex<words.length){testText=lineText?`${lineText} ${words[wordIndex]}`:words[wordIndex];const width=ctx.measureText(testText).width;if(width>run.width)break;lineText=testText;wordIndex++;fitCount++;}// Never break words. If a single word cannot fit in this run, try the next run.\n// If it can't fit in any run on this row (or is longer than the max usable width),\n// place it as-is in the first run so we can always make progress.\nif(!lineText&&wordIndex<words.length){const word=words[wordIndex];const wordWidth=ctx.measureText(word).width;if(wordWidth>maxWordWidth&&availableRuns.length>0&&run===availableRuns[0]){lineText=word;wordIndex++;}else{continue;}}if(lineText){out.push({text:lineText,x:xOffset+run.left,y,width:run.width});placedOnRow=true;}if(fitCount>0){// continue\n}}// If nothing could be placed (e.g. all runs are too small), advance to the next row to avoid stalling.\nif(!placedOnRow){const word=words[wordIndex];if(!word)break;// If there are no runs at all, we can't place anything on this row.\n// We'll just advance y and try again.\n}y+=lineHeight;}// Add extra spacing between paragraphs (but not after the last one).\nif(pIndex<paragraphs.length-1){y+=Math.max(0,paragraphGap);}}return out;}function getAvailableRuns(params){const{containerWidth,textPadding,blockedSpans,minRunWidth}=params;let runs=[{left:textPadding,right:containerWidth-textPadding}];const blocks=mergeSpans(blockedSpans);for(const block of blocks){const next=[];for(const run of runs){if(block.right<=run.left||block.left>=run.right){next.push(run);continue;}if(block.left>run.left)next.push({left:run.left,right:block.left});if(block.right<run.right)next.push({left:block.right,right:run.right});}runs=next;if(runs.length===0)break;}return runs.map(r=>({...r,width:r.right-r.left})).filter(r=>r.width>=minRunWidth);}function scanRowForAlphaSpans(params){const{data,width,y,alphaThreshold,step}=params;const spans=[];let inSpan=false;let spanStart=0;// Noise guard: require a small streak of occupied samples to begin a span,\n// and a small streak of empty samples to end it. This prevents tiny stray pixels\n// (common in complex/antialiased images) from creating random wrap gaps far away.\nconst beginStreak=2;const endStreak=2;let occStreak=0;let emptyStreak=0;const rowOffset=y*width*4;for(let x=0;x<width;x+=step){const idx=rowOffset+x*4+3;const a=data[idx];const occupied=a>alphaThreshold;if(occupied){occStreak++;emptyStreak=0;}else{emptyStreak++;occStreak=0;}if(!inSpan&&occStreak>=beginStreak){inSpan=true;spanStart=Math.max(0,x-(beginStreak-1)*step);}if(inSpan&&emptyStreak>=endStreak){inSpan=false;const spanEnd=Math.max(spanStart,x-(endStreak-1)*step);spans.push({left:spanStart,right:Math.min(width,spanEnd)});}}if(inSpan)spans.push({left:spanStart,right:width});const minSpanWidth=Math.max(2,step*2);// Expand spans slightly to compensate for sampling step gaps,\n// but drop extremely small spans that are likely alpha noise.\nreturn spans.map(s=>({left:Math.max(0,s.left-step),right:Math.min(width,s.right+step)})).filter(s=>s.right-s.left>=minSpanWidth);}function mergeSpans(spans){if(spans.length<=1)return spans.slice();const sorted=spans.filter(s=>Number.isFinite(s.left)&&Number.isFinite(s.right)).map(s=>({left:Math.min(s.left,s.right),right:Math.max(s.left,s.right)})).filter(s=>s.right>s.left).sort((a,b)=>a.left-b.left);const out=[];let cur=sorted[0];for(let i=1;i<sorted.length;i++){const s=sorted[i];if(s.left<=cur.right){cur={left:cur.left,right:Math.max(cur.right,s.right)};}else{out.push(cur);cur=s;}}out.push(cur);return out;}addPropertyControls(RunaroundTextWrap,{images:{type:ControlType.Array,title:\"Images\",defaultValue:[{x:280,y:90,scale:1,widthPx:220}],control:{type:ControlType.Object,controls:{image:{type:ControlType.ResponsiveImage,title:\"Image\"},x:{type:ControlType.Number,title:\"X\",defaultValue:280,min:-2e3,max:4e3,step:1},y:{type:ControlType.Number,title:\"Y\",defaultValue:90,min:-2e3,max:4e3,step:1},scale:{type:ControlType.Number,title:\"Scale\",defaultValue:1,min:.1,max:5,step:.05},widthPx:{type:ControlType.Number,title:\"Width px\",defaultValue:220,min:1,max:4e3,step:1}}}},image:{type:ControlType.ResponsiveImage,title:\"Image\",hidden:({images})=>Array.isArray(images)&&images.length>0},text:{type:ControlType.String,title:\"Text\",defaultValue:\"Drop an image with transparency into this component and the text will wrap around the visible shape instead of the image box. This creates magazine-like editorial wrapping directly inside Framer.\",displayTextArea:true},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"22px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},wrapPadding:{type:ControlType.Number,title:\"Wrap Padding\",description:\"Extra gap between text and the visible image edge. Best for readability and busy images.\",defaultValue:14,min:0,max:120,step:1},imageX:{type:ControlType.Number,title:\"Image X\",defaultValue:280,min:-2e3,max:4e3,step:1,hidden:({images})=>Array.isArray(images)&&images.length>0},imageY:{type:ControlType.Number,title:\"Image Y\",defaultValue:90,min:-2e3,max:4e3,step:1,hidden:({images})=>Array.isArray(images)&&images.length>0},imageScale:{type:ControlType.Number,title:\"Image Scale\",defaultValue:1,min:.1,max:5,step:.05,hidden:({images,imageSizeMode})=>Array.isArray(images)&&images.length>0||imageSizeMode===\"pixels\"},imageWidthPx:{type:ControlType.Number,title:\"Image Width px\",defaultValue:220,min:1,max:4e3,step:1,unit:\"px\",hidden:({images,imageSizeMode})=>Array.isArray(images)&&images.length>0||imageSizeMode!==\"pixels\"},imagePositionMode:{type:ControlType.Enum,title:\"Image Position\",defaultValue:\"pixels\",options:[\"pixels\",\"percent\"],optionTitles:[\"px (fixed)\",\"% (responsive)\"],displaySegmentedControl:true},imageSizeMode:{type:ControlType.Enum,title:\"Image Size\",defaultValue:\"scale\",options:[\"scale\",\"pixels\"],optionTitles:[\"Scale\",\"Width px (fixed)\"],displaySegmentedControl:true},alphaThreshold:{type:ControlType.Number,title:\"Alpha Threshold\",description:\"Alpha cutoff (0–255) for what counts as solid. Higher = wrap closer into soft edges/glows.\",defaultValue:20,min:0,max:255,step:1},sampleStep:{type:ControlType.Number,title:\"Sample Step\",description:\"Sampling density for the alpha mask. Lower = more accurate, higher = faster (use higher for large canvases).\",defaultValue:2,min:1,max:12,step:1},debug:{type:ControlType.Boolean,title:\"Debug\",description:\"Shows image bounds + sampled wrap zones. Best when tuning threshold/step/padding.\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},dragToMove:{type:ControlType.Boolean,title:\"Drag Image\",description:\"Drag images in Canvas/Preview to place them; layout updates live. Turn off to avoid accidental moves.\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},paragraphSpacing:{type:ControlType.Number,title:\"Paragraph Spacing\",description:\"Extra spacing between paragraphs, in multiples of line height. Use new lines (blank line) to create paragraphs.\",defaultValue:.6,min:0,max:3,step:.05},clipContent:{type:ControlType.Boolean,title:\"Clipping\",description:\"Hide overflow outside the component bounds. On for clean frames; off when images extend past edges.\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},textColumnMode:{type:ControlType.Enum,title:\"Text Width\",defaultValue:\"percent\",options:[\"percent\",\"pixels\"],optionTitles:[\"%\",\"px (locked)\"],displaySegmentedControl:true},textColumnWidth:{type:ControlType.Number,title:\"Width %\",description:\"Text column width as a percentage of the component width.\",defaultValue:100,min:10,max:100,step:1,unit:\"%\",hidden:({textColumnMode})=>textColumnMode===\"pixels\"},textColumnWidthPx:{type:ControlType.Number,title:\"Width px\",description:\"Locked text column width in pixels; stays fixed when resizing the component.\",defaultValue:420,min:40,max:4e3,step:1,unit:\"px\",hidden:({textColumnMode})=>textColumnMode!==\"pixels\"},textColumnAlign:{type:ControlType.Enum,title:\"Text Align\",defaultValue:\"left\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],displaySegmentedControl:true}});RunaroundTextWrap.displayName=\"Runaround Text Wrap\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RunaroundTextWrap\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"700\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"500\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RunaroundTextWrap.map"],"mappings":"+PAkBG,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,OAAO,EAAW,QAAM,CAAC,IAAI,sEAAsE,IAAI,YAAY,EAAE,OAAK,QAAM,OAAK,YAAU,cAAY,GAAG,cAAY,mBAAiB,UAAO,UAAO,cAAW,gBAAa,oBAAkB,gBAAc,iBAAe,aAAW,QAAM,aAAW,eAAY,kBAAe,kBAAgB,oBAAkB,mBAAiB,EAAY,EAAS,EAAoB,EAAQ,GAAa,EAAa,QAAQ,EAAQ,EAAmB,KAAe,EAAa,SAAS,KAAe,EAAa,OAAa,EAAaA,EAAO,IAAI,EAAO,CAAC,EAAM,GAAUC,EAAS,CAAC,CAAC,EAAO,CAAC,GAAW,GAAeA,EAAS,CAAC,CAAC,EAAO,CAAC,EAAO,IAAWA,EAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,EAAO,CAAC,EAAiB,IAAqBA,EAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAE90B,EAF+1B,MAAM,QAAQ,CAAU,GAAG,EAAW,OAAO,EAE53B,EAAW,IAAI,IAAK,CAAC,MAAM,EAAG,MAAM,EAAE,OAAO,SAAS,EAAG,CAAC,EAAE,EAAG,EAAE,GAAO,EAAE,OAAO,SAAS,EAAG,CA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