{"version":3,"file":"Outline.DbIFAbDI.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/GHEioitvmDeF2fdJbahy/2vFB2ElGdp5v09buSXuw/Outline.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useRef,useEffect,useState}from\"react\";export default function OutlineText({text,fontSize,strokeWidth,strokeColor,fontWeight,textAnchor}){const textRef=useRef(null);const[textWidth,setTextWidth]=useState(400);useEffect(()=>{if(textRef.current){const width=textRef.current.getBBox().width;setTextWidth(width);}},[text,fontSize,fontWeight]);const height=fontSize*1.4;const padding=strokeWidth*2;return /*#__PURE__*/_jsx(\"svg\",{width:textWidth+padding*2,height:height+padding,xmlns:\"http://www.w3.org/2000/svg\",overflow:\"visible\",style:{display:\"block\"},children:/*#__PURE__*/_jsx(\"text\",{ref:textRef,x:padding,y:fontSize,fontSize:fontSize,fontWeight:fontWeight,fontFamily:\"inherit\",fill:\"none\",stroke:strokeColor,strokeWidth:strokeWidth,children:text})});}OutlineText.defaultProps={text:\"Outline\",fontSize:80,strokeWidth:2,strokeColor:\"#000000\",fontWeight:\"700\",textAnchor:\"start\"};addPropertyControls(OutlineText,{text:{type:ControlType.String,title:\"Texto\"},fontSize:{type:ControlType.Number,title:\"Tamanho\",min:10,max:300,defaultValue:80},strokeWidth:{type:ControlType.Number,title:\"Espessura\",min:.5,max:10,step:.5,defaultValue:2},strokeColor:{type:ControlType.Color,title:\"Cor do contorno\",defaultValue:\"#000000\"},fontWeight:{type:ControlType.Enum,title:\"Peso\",options:[\"400\",\"500\",\"600\",\"700\",\"800\",\"900\"],defaultValue:\"700\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"OutlineText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Outline.map"],"mappings":"mLAA4I,SAAwB,EAAY,CA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