import{a as d}from"./chunk-IJERUV6T.js";import{a as i}from"./chunk-C5X6SCSP.js";import{a as T}from"./chunk-XC6GVIMQ.js";import{Kg as l,kh as c}from"./chunk-J3OKDS6D.js";import{g as u,i as a}from"./chunk-Z427YWOQ.js";a();var m=u(T());var k=m.RadialGauge,n=class extends d{constructor(r,o){super(r,o)}createGaugeOptions(r,o){let e=o.majorTicks&&o.majorTicks.length>0?c(o.majorTicks):["N","NE","E","SE","S","SW","W","NW"];return e.push(e[0]),{renderTo:r,minValue:0,maxValue:360,majorTicks:e,minorTicks:o.minorTicks||22,ticksAngle:360,startAngle:180,strokeTicks:o.showStrokeTicks||!1,highlights:[],valueBox:!1,needleCircleSize:o.needleCircleSize||15,needleType:"line",needleStart:75,needleEnd:99,needleWidth:3,needleCircleOuter:!1,borders:o.showBorder||!1,borderInnerWidth:0,borderMiddleWidth:0,borderOuterWidth:o.borderOuterWidth||10,borderShadowWidth:0,colorPlate:o.colorPlate||"#222",colorMajorTicks:o.colorMajorTicks||"#f5f5f5",colorMinorTicks:o.colorMinorTicks||"#ddd",colorNeedle:o.colorNeedle||"#f08080",colorNeedleEnd:o.colorNeedle||"#f08080",colorNeedleCircleInner:o.colorNeedleCircle||"#e8e8e8",colorNeedleCircleInnerEnd:o.colorNeedleCircle||"#e8e8e8",colorBorderOuter:o.colorBorder||"#ccc",colorBorderOuterEnd:o.colorBorder||"#ccc",colorNeedleShadowDown:"#222",fontNumbers:i(o.majorTickFont),fontNumbersSize:o.majorTickFont&&o.majorTickFont.size?o.majorTickFont.size:20,fontNumbersStyle:o.majorTickFont&&o.majorTickFont.style?o.majorTickFont.style:"normal",fontNumbersWeight:o.majorTickFont&&o.majorTickFont.weight?o.majorTickFont.weight:"500",colorNumbers:o.majorTickFont&&o.majorTickFont.color?o.majorTickFont.color:"#ccc",animation:o.animation!==!1&&!this.ctx.isMobile,animationDuration:l(o.animationDuration)&&o.animationDuration!==null?o.animationDuration:500,animationRule:o.animationRule||"cycle",animationTarget:o.animationTarget||"needle"}}createGauge(r){return new k(r)}};export{n as TbAnalogueCompass};
