{"version":3,"file":"Side_ruler.DRjMINwZ.mjs","names":[],"sources":["https:/framerusercontent.com/modules/skl08NaZWjPs9CKG281Q/fXuMMhzBj5qsnaovKvWa/Side_ruler.js"],"sourcesContent":["// Sidebar Ruler\n// Created by Frankie from Framer-Expert.com\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function SidebarRuler({color=\"#ea4324\",backgroundColor=\"#f4f1eb\",width=48,rowHeight=10,labelEvery=100,side=\"right\",borderTop=false,borderBottom=false,borderLeft=false,borderRight=true}){const totalHeight=2e4;const labelRows=Array.from({length:Math.ceil(totalHeight/labelEvery)},(_,i)=>i*labelEvery);const line=`1px solid ${color}`;return /*#__PURE__*/_jsx(\"div\",{style:{width,// fill whatever container it's placed in\nheight:\"100%\",minHeight:\"100%\",backgroundColor,borderTop:borderTop?line:\"none\",borderBottom:borderBottom?line:\"none\",borderLeft:borderLeft?line:\"none\",borderRight:borderRight?line:\"none\",flexShrink:0,position:\"relative\",overflow:\"hidden\",backgroundImage:`repeating-linear-gradient(\n                    to bottom,\n                    ${color} 0px,\n                    ${color} 1px,\n                    transparent 1px,\n                    transparent ${rowHeight}px\n                )`,backgroundRepeat:\"repeat-y\",backgroundSize:\"100% auto\",boxSizing:\"border-box\"},children:labelRows.map(px=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:px,left:0,width:\"100%\",height:rowHeight,display:\"flex\",alignItems:\"center\",justifyContent:side===\"right\"?\"flex-end\":\"flex-start\",paddingRight:side===\"right\"?4:0,paddingLeft:side===\"left\"?4:0,boxSizing:\"border-box\",zIndex:1},children:/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:\"monospace\",fontSize:8,lineHeight:1,color,opacity:.55,userSelect:\"none\",backgroundColor,padding:\"0 1px\"},children:px})},px))});}SidebarRuler.defaultProps={color:\"#ea4324\",backgroundColor:\"#f4f1eb\",width:48,rowHeight:10,labelEvery:100,side:\"right\",borderTop:false,borderBottom:false,borderLeft:false,borderRight:true};addPropertyControls(SidebarRuler,{color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#ea4324\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#f4f1eb\"},width:{type:ControlType.Number,title:\"Width\",defaultValue:48,min:24,max:120,step:4,displayStepper:true},rowHeight:{type:ControlType.Number,title:\"Row Height (px)\",defaultValue:10,min:4,max:40,step:2,displayStepper:true},labelEvery:{type:ControlType.Number,title:\"Label Every (px)\",defaultValue:100,min:20,max:500,step:20,displayStepper:true},side:{type:ControlType.Enum,title:\"Label Side\",options:[\"left\",\"right\"],optionTitles:[\"Left\",\"Right\"],defaultValue:\"right\"},borderTop:{type:ControlType.Boolean,title:\"Border Top\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},borderBottom:{type:ControlType.Boolean,title:\"Border Bottom\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},borderLeft:{type:ControlType.Boolean,title:\"Border Left\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},borderRight:{type:ControlType.Boolean,title:\"Border Right\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"}});SidebarRuler.displayName=\"Sidebar Ruler\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SidebarRuler\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Side_ruler.map"],"mappings":"4JAE+F,SAAwB,EAAa,CAAC,QAAM,UAAU,kBAAgB,UAAU,QAAM,GAAG,YAAU,GAAG,aAAW,IAAI,OAAK,QAAQ,YAAU,GAAM,eAAa,GAAM,aAAW,GAAM,cAAY,IAAM,CAAuB,IAAM,EAAU,MAAM,KAAK,CAAC,OAAO,KAAK,KAA5C,IAA6D,EAAW,CAAC,EAAE,EAAE,IAAI,EAAE,EAAW,CAAO,EAAK,aAAa,IAAQ,OAAoB,EAAK,MAA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