From f37c1ce33622a8a9ca82d3889e535b344b5bb752 Mon Sep 17 00:00:00 2001 From: zhaoqiang <2117596534@qq.com> Date: Tue, 16 Jul 2024 00:29:28 +0800 Subject: [PATCH] update --- src/views/pages/OpticalStoragePage/index.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/pages/OpticalStoragePage/index.vue b/src/views/pages/OpticalStoragePage/index.vue index b56de40..351ac4c 100644 --- a/src/views/pages/OpticalStoragePage/index.vue +++ b/src/views/pages/OpticalStoragePage/index.vue @@ -1136,7 +1136,7 @@ let handleAnimate = async (result: any) => { let middleDuration = duration / num1 for (let i = 0; i < numTriangles; i++) { - let triangle = draw.polygon('0,-2 6,0 0,2').fill('lightgreen').stroke({ color: 'lightgreen', width: 0.2 }) + let triangle = draw.polygon('0,-1 4,0 0,1').fill('lightgreen').stroke({ color: 'lightgreen', width: 0.2 }) let triangleanimate = document.createElementNS('http://www.w3.org/2000/svg', 'animateMotion') triangleanimate.setAttribute('path', pointsValue) @@ -1263,7 +1263,7 @@ let handleAnimate = async (result: any) => { let duration = numTriangles / num1 let middleDuration = duration / num1 for (let i = 0; i < numTriangles; i++) { - let triangle = draw.polygon('0,-2 -6,0 0,2').fill('lightgreen').stroke({ color: 'lightgreen', width: 0.2 }) + let triangle = draw.polygon('0,-1 -4,0 0,1').fill('lightgreen').stroke({ color: 'lightgreen', width: 0.2 }) let triangleanimate = document.createElementNS('http://www.w3.org/2000/svg', 'animateMotion') triangleanimate.setAttribute('path', pointsValue) @@ -1297,22 +1297,22 @@ let handleAnimate = async (result: any) => { // 这是变压器上的文字和线段 // 引出线 draw - .line(centerX, centerY, centerX + 20, centerY - 20) + .line(centerX, centerY, centerX + 10, centerY - 10) .attr({ 'stroke-width': 0.1, id: 'load_' + data.load_id, stroke: 'green', - 'stroke-dasharray': '3,3' + 'stroke-dasharray': '1,1' }) .font({ size: '8' }) // 文本 draw .text(`P: ${(parseFloat(data['Pload/phase']) * 1000).toFixed(4)} kW\nQ: ${(parseFloat(data['i']) * 1000).toFixed(4)} kVar`) .attr({ - x: centerX + 20, - y: centerY - 20, + x: centerX + 10, + y: centerY - 10, id: 'load_text' + data.load_id, - 'font-size': '4', + 'font-size': '2', leading: '0.9' }) .fill('green')