import{a as d}from"./chunk-JGWEAHBK.js";import{a as i}from"./chunk-VFN473AJ.js";import{a as T}from"./chunk-UFVVE2DH.js";import{Dg as l,eh as c}from"./chunk-25VLH6EB.js";import{g as u,j as a}from"./chunk-AFBR3FKX.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};
