|
@@ -21,6 +21,13 @@ let resizeObserver: ResizeObserver | null = null
|
|
|
const render = (): void => {
|
|
const render = (): void => {
|
|
|
if (!board || !chartDom.value) return
|
|
if (!board || !chartDom.value) return
|
|
|
|
|
|
|
|
|
|
+ const pal = palette.value
|
|
|
|
|
+ const { z, d1, d2, d3, hCov, vCov, dir } = props.params
|
|
|
|
|
+
|
|
|
|
|
+ // 根据安装方式选择对应的覆盖角
|
|
|
|
|
+ const cov = dir === 'H' ? hCov : vCov
|
|
|
|
|
+ const t6 = cov / 2
|
|
|
|
|
+
|
|
|
const labels = {
|
|
const labels = {
|
|
|
empty: t('diagram.empty'),
|
|
empty: t('diagram.empty'),
|
|
|
horizontalDistance: t('diagram.horizontalDistance'),
|
|
horizontalDistance: t('diagram.horizontalDistance'),
|
|
@@ -29,12 +36,14 @@ const render = (): void => {
|
|
|
lowerBound: t('diagram.lowerBound'),
|
|
lowerBound: t('diagram.lowerBound'),
|
|
|
acousticAxis: t('diagram.acousticAxis'),
|
|
acousticAxis: t('diagram.acousticAxis'),
|
|
|
coverage: t('diagram.coverage'),
|
|
coverage: t('diagram.coverage'),
|
|
|
- vertical: t('diagram.vertical')
|
|
|
|
|
|
|
+ vertical: t('diagram.vertical'),
|
|
|
|
|
+ coverageAngle: t('diagram.coverageAngle', {
|
|
|
|
|
+ cov: cov.toFixed(0),
|
|
|
|
|
+ dir: dir === 'H' ? t('params.dirH') : t('params.dirV'),
|
|
|
|
|
+ t6: t6.toFixed(0)
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- const pal = palette.value
|
|
|
|
|
- const { z, d1, d2, d3 } = props.params
|
|
|
|
|
-
|
|
|
|
|
// 1. 基础物理数据边界
|
|
// 1. 基础物理数据边界
|
|
|
const rawMaxD = Math.max(d1, d2, d3, 5) * 1.13
|
|
const rawMaxD = Math.max(d1, d2, d3, 5) * 1.13
|
|
|
const rawMaxZ = Math.max(z * 1.15, 3.5)
|
|
const rawMaxZ = Math.max(z * 1.15, 3.5)
|
|
@@ -127,3 +136,13 @@ onBeforeUnmount(() => {
|
|
|
style="height: 100%; min-height: 350px; width: 100%"
|
|
style="height: 100%; min-height: 350px; width: 100%"
|
|
|
></div>
|
|
></div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+<style scoped>
|
|
|
|
|
+/* 强行去掉点击后产生的金黄色焦点框 */
|
|
|
|
|
+.chart-box,
|
|
|
|
|
+.chart-box *,
|
|
|
|
|
+.chart-box svg,
|
|
|
|
|
+.chart-box svg * {
|
|
|
|
|
+ outline: none !important;
|
|
|
|
|
+ box-shadow: none !important;
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|