|
@@ -18,7 +18,7 @@
|
|
<div :style="{ height: '20px', width: `${lengY}px`, color: '#fff' }" v-for="(ite, ind) in 15" :key="ind">{{ ind
|
|
<div :style="{ height: '20px', width: `${lengY}px`, color: '#fff' }" v-for="(ite, ind) in 15" :key="ind">{{ ind
|
|
== 14 ? maxX : '' }}</div>
|
|
== 14 ? maxX : '' }}</div>
|
|
</div>
|
|
</div>
|
|
- <div class="line-AB" :style="{ width: 'calc(100% - 15px)', height: 'calc(100% - 10px)' }">
|
|
|
|
|
|
+ <div class="line-AB" :style="{ width: 'calc(100% - 10px)', height: 'calc(100% - 10px)' }">
|
|
<canvas id="myCanvas" :width="canvasSize.width" :height="canvasSize.height"></canvas>
|
|
<canvas id="myCanvas" :width="canvasSize.width" :height="canvasSize.height"></canvas>
|
|
</div>
|
|
</div>
|
|
<!-- <div class="line-legend">
|
|
<!-- <div class="line-legend">
|
|
@@ -50,7 +50,7 @@ let props = defineProps({
|
|
canvasSize: {
|
|
canvasSize: {
|
|
type: Object,
|
|
type: Object,
|
|
default: () => {
|
|
default: () => {
|
|
- return { width: 364, height: 245 };
|
|
|
|
|
|
+ return { width: 348, height: 245 };
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|
|
});
|
|
@@ -416,20 +416,21 @@ onMounted(() => {
|
|
left: 50%;
|
|
left: 50%;
|
|
top: 20px;
|
|
top: 20px;
|
|
width: 75%;
|
|
width: 75%;
|
|
- height: 25px;
|
|
|
|
|
|
+ height: 20px;
|
|
transform: translate(-50%, 0);
|
|
transform: translate(-50%, 0);
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
justify-content: space-around;
|
|
|
|
|
|
.legend-box {
|
|
.legend-box {
|
|
display: flex;
|
|
display: flex;
|
|
- flex: 1;
|
|
|
|
|
|
+
|
|
height: 100%;
|
|
height: 100%;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
align-items: center;
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
|
|
|
|
&:nth-child(1) {
|
|
&:nth-child(1) {
|
|
|
|
+ flex: 1;
|
|
.legend-icon {
|
|
.legend-icon {
|
|
width: 10px;
|
|
width: 10px;
|
|
height: 10px;
|
|
height: 10px;
|
|
@@ -439,6 +440,7 @@ onMounted(() => {
|
|
}
|
|
}
|
|
|
|
|
|
&:nth-child(2) {
|
|
&:nth-child(2) {
|
|
|
|
+ flex: 1.5;
|
|
.legend-icon {
|
|
.legend-icon {
|
|
width: 10px;
|
|
width: 10px;
|
|
height: 10px;
|
|
height: 10px;
|
|
@@ -448,6 +450,7 @@ onMounted(() => {
|
|
}
|
|
}
|
|
|
|
|
|
&:nth-child(3) {
|
|
&:nth-child(3) {
|
|
|
|
+ flex:1;
|
|
.legend-icon {
|
|
.legend-icon {
|
|
width: 10px;
|
|
width: 10px;
|
|
height: 10px;
|
|
height: 10px;
|
|
@@ -457,6 +460,7 @@ onMounted(() => {
|
|
}
|
|
}
|
|
|
|
|
|
&:nth-child(4) {
|
|
&:nth-child(4) {
|
|
|
|
+ flex:1;
|
|
.legend-icon {
|
|
.legend-icon {
|
|
width: 10px;
|
|
width: 10px;
|
|
height: 10px;
|
|
height: 10px;
|
|
@@ -472,11 +476,11 @@ onMounted(() => {
|
|
position: absolute;
|
|
position: absolute;
|
|
left: 50%;
|
|
left: 50%;
|
|
top: 50%;
|
|
top: 50%;
|
|
- width: 80%;
|
|
|
|
|
|
+ width: 90%;
|
|
height: 80%;
|
|
height: 80%;
|
|
border-left: 1px solid #006c9d;
|
|
border-left: 1px solid #006c9d;
|
|
border-bottom: 1px solid #006c9d;
|
|
border-bottom: 1px solid #006c9d;
|
|
- transform: translate(-50%, -46%);
|
|
|
|
|
|
+ transform: translate(-45%, -46%);
|
|
|
|
|
|
.coord-lineY {
|
|
.coord-lineY {
|
|
position: absolute;
|
|
position: absolute;
|