{"version":3,"file":"Perfect_SVG_Grid.C_TX_tZ8.mjs","names":["__esmMin","p","c","init_jsx_runtime","init_framer_B1b760uK","addPropertyControls","PerfectSVGGrid","props","safeColumns","columns","safeRows","rows","safeLineWidth","lineWidth","halfLineWidth","verticalLines","position","index","lineColor","horizontalLines","style","init_Perfect_SVG_Grid","ControlType"],"sources":["https:/framerusercontent.com/modules/42Amn44JDgAai8rEoSQ0/A1wAMFWJvWi8ck9B3VgA/Perfect_SVG_Grid.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function PerfectSVGGrid(props){const{columns=16,rows=8,lineColor=\"#000000\",lineWidth=1,opacity=1,background=\"rgba(255, 255, 255, 0)\",style}=props;const safeColumns=Math.max(1,Math.round(columns));const safeRows=Math.max(1,Math.round(rows));const safeLineWidth=Math.max(0,lineWidth);const halfLineWidth=safeLineWidth/2;const verticalLines=Array.from({length:Math.max(0,safeColumns-1)},(_,index)=>{const position=(index+1)*100/safeColumns;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,bottom:0,left:\"calc(\"+position+\"% - \"+halfLineWidth+\"px)\",width:safeLineWidth,backgroundColor:lineColor,pointerEvents:\"none\"}},\"vertical-\"+index);});const horizontalLines=Array.from({length:Math.max(0,safeRows-1)},(_,index)=>{const position=(index+1)*100/safeRows;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:0,right:0,top:\"calc(\"+position+\"% - \"+halfLineWidth+\"px)\",height:safeLineWidth,backgroundColor:lineColor,pointerEvents:\"none\"}},\"horizontal-\"+index);});return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",background,...style},children:/*#__PURE__*/_jsxs(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,opacity,pointerEvents:\"none\"},children:[verticalLines,horizontalLines]})});}addPropertyControls(PerfectSVGGrid,{columns:{type:ControlType.Number,title:\"Columns\",defaultValue:16,min:1,max:200,step:1,displayStepper:true},rows:{type:ControlType.Number,title:\"Rows\",defaultValue:8,min:1,max:200,step:1,displayStepper:true},lineColor:{type:ControlType.Color,title:\"Line\",defaultValue:\"#000000\"},lineWidth:{type:ControlType.Number,title:\"Width\",defaultValue:1,min:.25,max:8,step:.25},opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:1,min:0,max:1,step:.05},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(255, 255, 255, 0)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PerfectSVGGrid\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Perfect_SVG_Grid.map"],"mappings":"A,8JAGG,SAAwBM,EAAe,EAAM,CAAC,GAAK,CAAC,UAAQ,GAAG,OAAK,EAAE,YAAU,UAAU,YAAU,EAAE,UAAQ,EAAE,aAAW,yBAAyB,SAAOC,EAAYC,EAAY,KAAK,IAAI,EAAE,KAAK,MAAMC,CAAO,CAAC,EAAQC,EAAS,KAAK,IAAI,EAAE,KAAK,MAAMC,CAAI,CAAC,EAAQC,EAAc,KAAK,IAAI,EAAEC,CAAS,EAAQC,EAAcF,EAAc,EAAQG,EAAc,MAAM,KAAK,CAAC,OAAO,KAAK,IAAI,EAAEP,EAAY,CAAC,CAAC,GAAG,EAAE,IAAQ,CAAC,IAAMQ,GAAUC,EAAM,GAAG,IAAIT,EAAY,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,OAAO,EAAE,KAAK,QAAQQ,EAAS,OAAOF,EAAc,MAAM,MAAMF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