var rpmFormatter=function(e,a){return void 0===e?"???":a?avnav.api.formatter.formatDecimal(parseFloat(e),4.1):avnav.api.formatter.formatDecimal(60*parseFloat(e),4,1)},rpmWidget={name:"userRpm",unit:"rpm",caption:"RPM",formatter:rpmFormatter},rpmGauge={name:"userRpmGauge",unit:"rpm",caption:"RPM",type:"radialGauge",formatter:rpmFormatter,minValue:0,maxValue:4e3,translateFunction:function(e){if(void 0!==e.minValue&&void 0!==e.maxValue){var a=Math.floor((e.maxValue-e.minValue)/10);a<1&&(a=1);for(var r=[],t=Math.round(e.minValue);t<=e.maxValue;t+=a)r.push(t);e.majorTicks=r}return e.startHighlight?e.highlights=[{from:e.startHighlight,to:e.maxValue||1e4,color:e.colorHighlight}]:e.highlights=[],e},startAngle:90,ticksAngle:180,valueBox:!1,minorTicks:2,strokeTicks:!0,colorPlate:"#fff",borderShadowWidth:"0",borders:!1,needleType:"arrow",needleWidth:2,needleCircleSize:7,needleCircleOuter:!0,needleCircleInner:!1,animationDuration:1e3,animationRule:"linear"},rpmGaugeUserParameter={minValue:{type:"NUMBER",default:0},maxValue:{type:"NUMBER",default:4e3},colorHighlight:{type:"COLOR",default:"rgba(200, 50, 50, .75)"},startHighlight:{type:"NUMBER"}},example3UserParameters={formatterParameters:!0,value:!0},example3Widget={name:"userSpecialRpm",unit:"rpm",caption:"RPMspecial",renderHtml:function(e){var a=e.formatterParameters instanceof Array&&e.formatterParameters.length>0?e.formatterParameters[0]:void 0;return'<div class="widgetData">'+rpmFormatter(e.value,a)+"</div>"}};