File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/apigeomGraduatedLine-c8mf2OnH.js
import{F as u}from"./main-oObtzTqI.js";import{G as c}from"./GraduatedLine-HKvQcYcM.js";import{W as r}from"./index-ajJ0B2-K.js";function l({xMin:o,xMax:d,scale:t=1,points:e}){const i=new u({xMin:o-.2/t,yMin:-1.5,width:900,height:80,dy:10,dx:r(1/(10*t),6),xScale:3*t,snapGrid:!0});i.setToolbar({tools:["POINT","DRAG","REMOVE"],position:"top"}),new c(i,{min:o,max:d,step:r(1/t,6),stepBis:r(1/(10*t),6)}).draw();let a=`
\\bigskip
\\begin{tikzpicture}[x=2.5mm]
\\draw[-{Latex[round]},thick] (0,0) -- (61,0);
\\foreach \\x in {0,1,...,60} \\draw[thick] ([yshift=-0.8mm]\\x,0) -- ([yshift=0.8mm]\\x,0);
\\foreach \\x [count=\\i from 0] in {0,10,...,60} \\draw[ultra thick] ([yshift=-1.5mm]\\x,0) coordinate (a\\i) -- ([yshift=1.5mm]\\x,0);
\\foreach \\x [count=\\i from 0] in {${o},${r(o+1/t)},${r(o+2/t)},${r(o+3/t)},${r(o+4/t)},${r(o+5/t)},${r(o+6/t)}} {
\\node[below=2mm of a\\i,inner sep=0pt,font=\\small] {$\\num{\\x}$};
}`;if(e!==void 0){const m=r((e[0].x-o)*t*10),n=r((e[1].x-o)*t*10),h=r((e[2].x-o)*t*10),s=e[0].label,$=e[1].label,f=e[2].label;a+=`
\\tkzText[above=2mm](${m},0){${s}}
\\tkzText[above=2mm](${n},0){${$}}
\\tkzText[above=2mm](${h},0){${f}}
\\tkzDrawPoint[shape=cross out, size=5pt, thick](${m},0)
\\tkzDrawPoint[shape=cross out, size=5pt, thick](${n},0)
\\tkzDrawPoint[shape=cross out, size=5pt, thick](${h},0)`}return a+=`
\\end{tikzpicture}`,{figure:i,latex:a}}export{l as a};
//# sourceMappingURL=apigeomGraduatedLine-c8mf2OnH.js.map