Lines Matching refs:mxConstants
182 case mxConstants.POINTS:
187 case mxConstants.MILLIMETERS:
189 tickStep = mxConstants.PIXELS_PER_MM;
192 case mxConstants.METERS:
194 tickStep = mxConstants.PIXELS_PER_MM;
197 case mxConstants.INCHES:
203 tickStep = mxConstants.PIXELS_PER_INCH / len;
217 … step = tickStep * (Math.floor((1 / scale) / 2) * (ruler.unit == mxConstants.MILLIMETERS? 2 : 1));
530 mxRuler.prototype.unit = mxConstants.POINTS;
542 case mxConstants.POINTS:
544 case mxConstants.MILLIMETERS:
545 return (pixels / mxConstants.PIXELS_PER_MM).toFixed(1);
546 case mxConstants.METERS:
547 return (pixels / (mxConstants.PIXELS_PER_MM * 1000)).toFixed(4);
548 case mxConstants.INCHES:
549 return (pixels / mxConstants.PIXELS_PER_INCH).toFixed(2);