Parcourir la source

侧视图优化

caoziwu il y a 3 jours
Parent
commit
d124c286e3

+ 15 - 14
src/renderer/src/components/simulator/DiagramPanel.vue

@@ -22,7 +22,7 @@ const render = (): void => {
   if (!board || !chartDom.value) return
 
   const pal = palette.value
-  const { z, d1, d2, d3, hCov, vCov, dir } = props.params
+  const { z, d1, d2, d3, hCov, vCov, dir, isSymmetric } = props.params
 
   // 根据安装方式选择对应的覆盖角
   const cov = dir === 'H' ? hCov : vCov
@@ -43,7 +43,6 @@ const render = (): void => {
       t6: t6.toFixed(0)
     })
   }
-
   // 1. 基础物理数据边界
   const rawMaxD = Math.max(d1, d2, d3, 5) * 1.13
   const rawMaxZ = Math.max(z * 1.15, 3.5)
@@ -52,20 +51,26 @@ const render = (): void => {
   const rect = chartDom.value.getBoundingClientRect()
   const ratio = rect.width / Math.max(rect.height, 1)
 
-  // 3. 强制让数据的宽高比与屏幕像素的宽高比一致,防止变形
-  // 预留 15% 的左边距放文字,15% 的底部边距放刻度
+  // 3. 强制让数据的宽高比与屏幕像素的宽高比一致
   let finalMaxD = rawMaxD
   let finalMaxZ = rawMaxZ
 
-  if (finalMaxD / finalMaxZ < ratio) {
-    finalMaxD = finalMaxZ * ratio // 宽度不够,拉宽 X 轴
+  // 如果对称,实际的 X 轴总跨度是 2 倍的 finalMaxD
+  const xSpan = isSymmetric ? 2 * finalMaxD : finalMaxD
+  const ySpan = finalMaxZ
+
+  if (xSpan / ySpan < ratio) {
+    // 宽度不够,拉宽 X 轴
+    finalMaxD = (ySpan * ratio) / (isSymmetric ? 2 : 1)
   } else {
-    finalMaxZ = finalMaxD / ratio // 高度不够,拉高 Y 轴
+    // 高度不够,拉高 Y 轴
+    finalMaxZ = xSpan / ratio
   }
 
   // 4. 严格设定边界 [xMin, yMax, xMax, yMin]
+  // 核心修改:如果开启对称,左边界设为 -finalMaxD * 1.05,保证 Y 轴在正中间
   const viewBox: [number, number, number, number] = [
-    -finalMaxD * 0.1,
+    isSymmetric ? -finalMaxD * 1.05 : -finalMaxD * 0.1,
     finalMaxZ * 1.15,
     finalMaxD * 1.05,
     -finalMaxZ * 0.1
@@ -73,19 +78,15 @@ const render = (): void => {
 
   board.setBoundingBox(viewBox, false)
 
-  // 5. 将修正后的最大边界传给绘制函数,保证画的网格和坐标轴填满屏幕
+  // 5. 将修正后的最大边界和 isSymmetric 传给绘制函数
   drawDiagram(
     board,
-    { ...props.params, maxD: finalMaxD, maxZ: finalMaxZ } as SpeakerParams & {
-      maxD: number
-      maxZ: number
-    },
+    { ...props.params, maxD: finalMaxD, maxZ: finalMaxZ, isSymmetric },
     props.result,
     labels,
     pal
   )
 }
-
 const snapshot = computed(() => {
   const { splMax, z, hCov, vCov, dir, angle, d1, d2, d3 } = props.params
   return { splMax, z, hCov, vCov, dir, angle, d1, d2, d3, result: props.result }

+ 2 - 0
src/renderer/src/components/simulator/ParamsPanel.vue

@@ -91,12 +91,14 @@ const apply = (): void => {
     hCov: formData.hCov,
     polarPlot: device.polarPlot,
     isSymmetric: device.isSymmetric,
+    forceFullCircle: device.forceFullCircle,
     vCov: formData.vCov
   }
   const data = {
     hCov: formData.hCov,
     vCov: formData.vCov,
     isSymmetric: device.isSymmetric,
+    forceFullCircle: device.forceFullCircle,
     splMax: formData.splMax
   }
 

+ 4 - 1
src/renderer/src/components/simulator/SpeakerSimulator.vue

@@ -48,7 +48,8 @@ const defaultParams: SpeakerParams = {
   d2: 20,
   polarPlot: null,
   d3: 10.39,
-  isSymmetric: false
+  isSymmetric: false,
+  forceFullCircle: false
 }
 
 const covAngle = ref(180)
@@ -66,6 +67,7 @@ const deviceState = reactive<DevicePanelState>({
   hCov: params.hCov,
   polarPlot: params.polarPlot,
   isSymmetric: params.isSymmetric,
+  forceFullCircle: params.forceFullCircle,
   vCov: params.vCov
 })
 const deviceFields: any[] = [
@@ -152,6 +154,7 @@ const applySpec = (spec: DeviceSpec): void => {
   if (spec.vCov !== null) params.vCov = spec.vCov
   if (spec.splMax !== null) params.splMax = spec.splMax
   if (spec.isSymmetric !== null) params.isSymmetric = spec.isSymmetric
+  if (spec.forceFullCircle !== null) params.forceFullCircle = spec.forceFullCircle
   runCalc()
 }
 

+ 1 - 0
src/renderer/src/config/index.ts

@@ -48,6 +48,7 @@ export const devicesConfig = [
     horizontalAngle: 70 * 2,
     verticalAngle: 70 * 2,
     isSymmetric: true,
+    // forceFullCircle: true,
     polarPlot: { horizontal: AM2001, vertical: AM2001 },
     splMax: {
       standalone: [

+ 207 - 52
src/renderer/src/lib/speaker/jsxgraph/diagram.ts

@@ -48,12 +48,13 @@ function drawEmpty(board: Board, text: string, pal: ChartPalette): void {
 
 export function drawDiagram(
   board: Board,
-  p: SpeakerParams & { maxD?: number; maxZ?: number },
+  p: SpeakerParams & { maxD?: number; maxZ?: number; isSymmetric?: boolean },
   result: CalcResult | null,
   labels: DiagramChartLabels,
   pal: ChartPalette
 ): void {
   const { z, d1, d2, d3, angle, hCov, vCov, dir } = p
+  const isSymmetric = p.isSymmetric === true
   const cov = dir === 'H' ? hCov : vCov
   const t6 = cov / 2
 
@@ -70,30 +71,25 @@ export function drawDiagram(
   const upperAngle = aRad + t6Rad
   const lowerAngle = aRad - t6Rad
 
-  // 覆盖角边界与前方地面(x > 0)的交点:
-  // - 较小的边界角(越接近水平 0°)-> 交点越远(dFar / 远点)
-  // - 较大的边界角(越接近垂直 90°)-> 交点越近(dNear / 近点)
-  // 当边界角 <= 0°(水平或向上):不与前方地面相交,远点视为无穷远(截断到 maxD)
-  // 当边界角 >= 90°(垂直或向上):交点在 x = 0(扬声器正下方)
-
-  // 近点:较大边界角 upperAngle 决定(越垂直越近)
-  // upperAngle >= 90°:垂直向下,交点在 x = 0(扬声器正下方)
-  // 0° < upperAngle < 90°:正常计算 z / tan(upperAngle)
-  // upperAngle <= 0°:不与前方地面交,nearX 为 null
+  // 右侧边界与地面的交点
   let nearX: number | null = null
   if (upperAngle > 0.01 && upperAngle < Math.PI / 2 - 0.01) {
     nearX = Math.min(maxD, Math.max(0, z / Math.tan(upperAngle)))
   }
 
-  // 远点:较小边界角 lowerAngle 决定(越水平越远)
-  // 0° < lowerAngle < 90°:正常计算 z / tan(lowerAngle)
-  // lowerAngle <= 0°:下边界向上或水平,无前方交点,farX 为 null(不画虚线)
-  // lowerAngle >= 90°:垂直向上,farX 为 null
   let farX: number | null = null
   if (lowerAngle > 0.01 && lowerAngle < Math.PI / 2 - 0.01) {
     farX = Math.min(maxD, z / Math.tan(lowerAngle))
   }
 
+  // 左侧边界与地面的交点(镜像对称)
+  let leftNearX: number | null = null
+  let leftFarX: number | null = null
+  if (isSymmetric) {
+    leftNearX = nearX !== null ? -nearX : null
+    leftFarX = farX !== null ? -farX : null
+  }
+
   board.suspendUpdate()
   try {
     if (currentObjects.length > 0) {
@@ -105,7 +101,6 @@ export function drawDiagram(
       if (type === 'point') {
         attrs.withLabel = false
       }
-      // 核心修复:强制所有图元锁死,禁止拖拽和悬停交互
       attrs.fixed = true
       attrs.highlight = false
       attrs.showInfobox = false
@@ -121,6 +116,7 @@ export function drawDiagram(
     const gD = nice(maxD / 6)
     const gZ = nice(maxZ / 5)
 
+    // 垂向网格线
     for (let d = gD; d < maxD; d += gD) {
       addObj(
         'segment',
@@ -130,18 +126,31 @@ export function drawDiagram(
         ],
         { strokeColor: pal.border, strokeWidth: 1, dash: 2, strokeOpacity: 0.5, layer: 0 }
       )
+      if (isSymmetric) {
+        addObj(
+          'segment',
+          [
+            [-d, 0],
+            [-d, maxZ]
+          ],
+          { strokeColor: pal.border, strokeWidth: 1, dash: 2, strokeOpacity: 0.5, layer: 0 }
+        )
+      }
     }
+
+    // 水平网格线
     for (let h = gZ; h < maxZ; h += gZ) {
       addObj(
         'segment',
         [
-          [0, h],
+          [isSymmetric ? -maxD : 0, h],
           [maxD, h]
         ],
         { strokeColor: pal.border, strokeWidth: 1, dash: 2, strokeOpacity: 0.5, layer: 0 }
       )
     }
 
+    // Y 轴与 X 轴
     addObj(
       'segment',
       [
@@ -153,7 +162,7 @@ export function drawDiagram(
     addObj(
       'segment',
       [
-        [0, 0],
+        [isSymmetric ? -maxD : 0, 0],
         [maxD, 0]
       ],
       { strokeColor: pal.dim, strokeWidth: 1.5, lastArrow: true, layer: 1 }
@@ -176,6 +185,23 @@ export function drawDiagram(
         anchorY: 'top',
         layer: 1
       })
+      if (isSymmetric) {
+        addObj(
+          'segment',
+          [
+            [-d, 0],
+            [-d, -maxZ * 0.015]
+          ],
+          { strokeColor: pal.dim, strokeWidth: 1, layer: 1 }
+        )
+        addObj('text', [-d, -maxZ * 0.03, d.toFixed(0)], {
+          fontSize: 9,
+          color: pal.dim,
+          anchorX: 'center',
+          anchorY: 'top',
+          layer: 1
+        })
+      }
     }
 
     // Y 轴刻度和数字
@@ -197,7 +223,7 @@ export function drawDiagram(
       })
     }
 
-    // 轴名称:精确防裁切
+    // 轴名称
     addObj('text', [maxD, -maxZ * 0.05, labels.horizontalDistance], {
       fontSize: 10,
       color: pal.dim,
@@ -214,33 +240,61 @@ export function drawDiagram(
     })
 
     // ================= 二、覆盖区域和声学线 =================
+    // 右侧覆盖区域
     if (nearX !== null && farX !== null) {
       const leftX = Math.min(nearX, farX)
       const rightX = Math.max(nearX, farX)
-
       addObj('polygon', [pt(0, z), pt(leftX, 0), pt(rightX, 0)], {
         fillColor: pal.accent,
         fillOpacity: 0.1,
         strokeColor: 'none',
         layer: 2
       })
+      addObj(
+        'segment',
+        [
+          [leftX, 0],
+          [rightX, 0]
+        ],
+        {
+          strokeColor: pal.accent,
+          strokeWidth: 4,
+          strokeOpacity: 0.35,
+          layer: 2
+        }
+      )
     }
 
-    if (nearX !== null && farX !== null && farX > nearX) {
+    // 左侧覆盖区域(镜像)
+    if (isSymmetric && leftNearX !== null && leftFarX !== null) {
+      const leftLeftX = Math.min(leftNearX, leftFarX)
+      const leftRightX = Math.max(leftNearX, leftFarX)
+      addObj('polygon', [pt(0, z), pt(leftLeftX, 0), pt(leftRightX, 0)], {
+        fillColor: pal.accent,
+        fillOpacity: 0.1,
+        strokeColor: 'none',
+        layer: 2
+      })
       addObj(
         'segment',
         [
-          [nearX, 0],
-          [farX, 0]
+          [leftLeftX, 0],
+          [leftRightX, 0]
         ],
-        { strokeColor: pal.accent, strokeWidth: 4, strokeOpacity: 0.35, layer: 2 }
+        {
+          strokeColor: pal.accent,
+          strokeWidth: 4,
+          strokeOpacity: 0.35,
+          layer: 2
+        }
       )
     }
 
+    // 辅助函数:计算超出屏幕时的射线端点
     const boundaryPoint = (boundaryAngle: number): [number, number] | null => {
       const dx = Math.cos(boundaryAngle)
       const dy = -Math.sin(boundaryAngle)
-      const minX = -maxD * 0.1
+      const minX = isSymmetric ? -maxD : -maxD * 0.1 // 对称时左侧边界放宽
       let distance = Number.POSITIVE_INFINITY
 
       if (dx > 0.01) distance = Math.min(distance, maxD / dx)
@@ -265,9 +319,17 @@ export function drawDiagram(
       })
     }
 
+    // 右侧边界
     drawBoundary(farX, lowerAngle)
     drawBoundary(nearX, upperAngle)
 
+    // 左侧边界(镜像角度)
+    if (isSymmetric) {
+      drawBoundary(leftFarX, Math.PI - lowerAngle)
+      drawBoundary(leftNearX, Math.PI - upperAngle)
+    }
+
+    // 轴心线 D3
     const d3Clamped = Math.min(maxD, d3)
     addObj(
       'segment',
@@ -275,10 +337,30 @@ export function drawDiagram(
         [0, z],
         [d3Clamped, 0]
       ],
-      { strokeColor: pal.accent, strokeWidth: 1.5, dash: 2, layer: 3 }
+      {
+        strokeColor: pal.accent,
+        strokeWidth: 1.5,
+        dash: 2,
+        layer: 3
+      }
     )
+    if (isSymmetric) {
+      addObj(
+        'segment',
+        [
+          [0, z],
+          [-d3Clamped, 0]
+        ],
+        {
+          strokeColor: pal.accent,
+          strokeWidth: 1.5,
+          dash: 2,
+          layer: 3
+        }
+      )
+    }
 
-    // ================= 三、点与标签(防重叠、防溢出、强制拆行) =================
+    // ================= 三、点与标签 =================
     addObj('point', [0, z], {
       face: '[]',
       size: 6,
@@ -321,26 +403,20 @@ export function drawDiagram(
       })
 
       const labelWidth = maxD * 0.15
-
-      if (lastTier === -1) {
-        currentTier = 0
-      } else if (x - lastX < labelWidth) {
+      if (lastTier === -1) currentTier = 0
+      else if (x - lastX < labelWidth) {
         currentTier = lastTier + 1
         if (currentTier > 2) currentTier = 0
-      } else {
-        currentTier = 0
-      }
+      } else currentTier = 0
 
       lastX = x
       lastTier = currentTier
 
       const textY = textBaseY + currentTier * (maxZ * 0.08)
-
-      // 靠右边界时,文字自动向左对齐防止切出屏幕
       const isNearRightEdge = x > maxD * 0.85
       const anchorX = isNearRightEdge ? 'right' : 'center'
 
-      // 强制拆成两个文本对象画,避免 \n 在某些环境下失效变成一行超长文本
+      // 右侧点标签
       addObj('text', [x, textY, `${ptDef.lbl} = ${x.toFixed(1)}m`], {
         fontSize: 10,
         color: ptDef.c,
@@ -355,11 +431,36 @@ export function drawDiagram(
         anchorY: 'top',
         layer: 4
       })
+
+      // 左侧点标签(开启对称时)
+      if (isSymmetric) {
+        addObj('point', [-x, 0], {
+          size: 4,
+          fillColor: ptDef.c,
+          strokeColor: pal.bg,
+          strokeWidth: 1,
+          layer: 4
+        })
+        addObj('text', [-x, textY, `${ptDef.lbl} = ${x.toFixed(1)}m`], {
+          fontSize: 10,
+          color: ptDef.c,
+          anchorX: 'center',
+          anchorY: 'bottom',
+          layer: 4
+        })
+        addObj('text', [-x, textY + maxZ * 0.1, `${spl.toFixed(1)} dB`], {
+          fontSize: 10,
+          color: ptDef.c,
+          anchorX: 'center',
+          anchorY: 'top',
+          layer: 4
+        })
+      }
     })
 
     // ================= 四、弧线与角度 =================
 
-    // 1. 水平向右的基准虚线,标定 A 角的参考系
+    // 1. 水平基准虚线
     const baseRefLineLength = maxD * 0.18
     addObj(
       'segment',
@@ -375,24 +476,52 @@ export function drawDiagram(
         layer: 3
       }
     )
+    if (isSymmetric) {
+      addObj(
+        'segment',
+        [
+          [0, z],
+          [-baseRefLineLength, z]
+        ],
+        {
+          strokeColor: pal.dim,
+          strokeWidth: 1,
+          dash: 2,
+          strokeOpacity: 0.8,
+          layer: 3
+        }
+      )
+    }
 
     // 2. 覆盖角 V 的圆弧(外圈)
-    // 上边界角度 > 0°(有向下分量)时,覆盖角扇面与前方地面有交集,绘制外圈弧线
     if (upperAngle > 0.01) {
-      // 半径与 maxZ 挂钩,确保在不同拉伸比例下都足够清晰
       const vRadius = maxZ * 0.3
+      // 右侧圆弧
       addObj(
         'curve',
         [
           (t: number) => Math.cos(t) * vRadius,
           (t: number) => z - Math.sin(t) * vRadius,
-          lowerAngle, // 起始角(独立参数)
-          upperAngle // 终止角(独立参数)
+          lowerAngle,
+          upperAngle
         ],
-        { strokeColor: '#eab308', strokeWidth: 2.5, layer: 4 } // 加粗让它更显眼
+        { strokeColor: '#eab308', strokeWidth: 2.5, layer: 4 }
       )
 
-      // 覆盖角标签放在右上角
+      // 左侧镜像圆弧
+      if (isSymmetric) {
+        addObj(
+          'curve',
+          [
+            (t: number) => Math.cos(t) * vRadius,
+            (t: number) => z - Math.sin(t) * vRadius,
+            Math.PI - upperAngle,
+            Math.PI - lowerAngle
+          ],
+          { strokeColor: '#eab308', strokeWidth: 2.5, layer: 4 }
+        )
+      }
+
       addObj('text', [maxD, maxZ, labels.coverageAngle], {
         fontSize: 11,
         color: '#ca8a04',
@@ -404,19 +533,29 @@ export function drawDiagram(
 
     // 3. 安装倾斜角 A 的圆弧(内圈)
     if (angle > 0.01) {
-      const aRadius = maxZ * 0.16 // 内圈半径
+      const aRadius = maxZ * 0.16
+      // 右侧圆弧
       addObj(
         'curve',
-        [
-          (t: number) => Math.cos(t) * aRadius,
-          (t: number) => z - Math.sin(t) * aRadius,
-          0, // 起始角(独立参数)
-          aRad // 终止角(独立参数)
-        ],
+        [(t: number) => Math.cos(t) * aRadius, (t: number) => z - Math.sin(t) * aRadius, 0, aRad],
         { strokeColor: pal.text, strokeWidth: 1.5, strokeOpacity: 0.9, layer: 4 }
       )
 
-      // A 标签放在内圈
+      // 左侧镜像圆弧
+      if (isSymmetric) {
+        addObj(
+          'curve',
+          [
+            (t: number) => Math.cos(t) * aRadius,
+            (t: number) => z - Math.sin(t) * aRadius,
+            Math.PI - aRad,
+            Math.PI
+          ],
+          { strokeColor: pal.text, strokeWidth: 1.5, strokeOpacity: 0.9, layer: 4 }
+        )
+      }
+
+      // 右侧标签
       const midA = aRad / 2
       const aLblR = aRadius + maxZ * 0.04
       addObj(
@@ -430,6 +569,22 @@ export function drawDiagram(
           layer: 10
         }
       )
+
+      // 左侧标签
+      if (isSymmetric) {
+        const midALeft = Math.PI - aRad / 2
+        addObj(
+          'text',
+          [Math.cos(midALeft) * aLblR, z - Math.sin(midALeft) * aLblR, `A = ${angle.toFixed(1)}°`],
+          {
+            fontSize: 11,
+            color: pal.text,
+            anchorX: 'right',
+            anchorY: 'bottom',
+            layer: 10
+          }
+        )
+      }
     }
   } finally {
     board.unsuspendUpdate()

+ 17 - 12
src/renderer/src/lib/speaker/jsxgraph/topDiagram.ts

@@ -31,25 +31,30 @@ function parseHex(color: string): [number, number, number] {
 
 export function drawTopDiagram(
   board: Board,
+  // 新增 forceFullCircle?: boolean
   p: SpeakerParams & { covAngle?: number },
   labels: TopDiagramChartLabels,
   pal: ChartPalette
 ): void {
   const { splMax, d1, d2, d3, hCov, vCov, dir } = p
-  console.log(p)
 
   // 竖直安装时俯视图用水平指向角,反之亦然
-  const cov = dir === 'H' ? vCov : hCov
-  const maxD = Math.max(d1, d2, d3, 5) * 1.2
+  let cov = dir === 'H' ? vCov : hCov
   const isSymmetric = p.isSymmetric === true
 
+  // 核心判断:如果 forceFullCircle 为 true,或者覆盖角本来就 >= 360
+  const isFullCircle = p.forceFullCircle === true || cov >= 359.9
+  if (isFullCircle) {
+    cov = 360 // 强制设为 360,保证后续逻辑一致
+  }
+
+  const maxD = Math.max(d1, d2, d3, 5) * 1.2
   const t6Rad = (cov / 2) * DEG
-  const isFullCircle = cov >= 359.9
 
-  // 核心改动:定义所有需要绘制的扇区区间
+  // 定义所有需要绘制的扇区区间
   const sectors: Array<{ start: number; end: number }> = []
   if (isFullCircle) {
-    // 如果是全圆,左右画会重叠,直接画一个 0-360 度的扇区即可
+    // 如果是全圆,直接画一个 0-360 度的扇区即可
     sectors.push({ start: 0, end: Math.PI * 2 })
   } else {
     // 正向扇区
@@ -96,11 +101,11 @@ export function drawTopDiagram(
       })
     }
 
-    // 横向基准轴线:如果开启对称,X 轴左侧也要相应延伸
+    // 横向基准轴线:如果开启对称或全圆,X 轴左侧也要相应延伸
     addObj(
       'segment',
       [
-        [-maxD * (isSymmetric ? 1.1 : 0.1), 0],
+        [-maxD * (isSymmetric || isFullCircle ? 1.1 : 0.1), 0],
         [maxD * 1.1, 0]
       ],
       { strokeColor: pal.dim, strokeWidth: 1.5, lastArrow: true, layer: 1 }
@@ -225,8 +230,8 @@ export function drawTopDiagram(
       ],
       { strokeColor: pal.accent, strokeWidth: 2.5, layer: 4 }
     )
-    // 如果是对称覆盖,Y轴左侧的声轴也要画出来
-    if (isSymmetric) {
+    // 如果是对称覆盖,或者全圆,Y轴左侧的声轴也要画出来
+    if (isSymmetric || isFullCircle) {
       addObj(
         'segment',
         [
@@ -279,8 +284,8 @@ export function drawTopDiagram(
     ]
     const sortedPts = [...pts].sort((a, b) => a.d - b.d)
 
-    // 如果是对称的,我们不仅要在正向(正 X 轴)画点,还要在反向(负 X 轴)画点
-    const xSigns = isSymmetric ? [1, -1] : [1]
+    // 如果是对称的,或者全圆,我们不仅要在正向(正 X 轴)画点,还要在反向(负 X 轴)画点
+    const xSigns = isSymmetric || isFullCircle ? [1, -1] : [1]
 
     sortedPts.forEach((ptDef, index) => {
       const xBase = ptDef.d

+ 3 - 0
src/renderer/src/lib/speaker/types.ts

@@ -46,6 +46,7 @@ export interface SpeakerParams {
   /** 计算结果 */
   result?: CalcResult
   isSymmetric?: boolean
+  forceFullCircle?: boolean
 }
 
 /** 计算输出 */
@@ -93,6 +94,7 @@ export interface DeviceSpec {
   /** 最大声压级 dB SPL */
   splMax: number | null
   isSymmetric?: boolean | null
+  forceFullCircle?: boolean | null
 }
 
 /**
@@ -116,4 +118,5 @@ export interface DevicePanelState {
   vCov: number | null
   polarPlot: any
   isSymmetric?: boolean
+  forceFullCircle: boolean | null
 }