From 0cd83d13bc14ec43270ed59feb1dcd747ca8ee83 Mon Sep 17 00:00:00 2001 From: xuxudefeng <359059686@qq.com> Date: Tue, 5 Jul 2022 16:22:52 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=20=E6=B0=B4=E5=B8=A6?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=AE=BD=E5=BA=A6=E4=B8=8E=E4=B8=BA0?= =?UTF-8?q?=E6=97=B6=E7=94=B15=E5=83=8F=E7=B4=A0=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BA1=E5=83=8F=E7=B4=A0=E3=80=82=E7=AE=AD=E5=A4=B4?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=A4=A7=E5=B0=8F=E4=B8=BA2=EF=BC=8C?= =?UTF-8?q?=E6=B0=B4=E5=B8=A6=E5=AE=BD=E5=BA=A6=E5=B0=8F=E4=BA=8E=E7=AD=89?= =?UTF-8?q?=E4=BA=8E5=E6=97=B6=EF=BC=8C=E7=AE=AD=E5=A4=B4=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E4=B8=BA5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/working-area/model/axArrowConnector.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/app/working-area/model/axArrowConnector.ts b/src/app/working-area/model/axArrowConnector.ts index d9ba040..4cc3ce8 100644 --- a/src/app/working-area/model/axArrowConnector.ts +++ b/src/app/working-area/model/axArrowConnector.ts @@ -154,20 +154,22 @@ export class AxArrowConnector extends AxShape { + this.assetData.PropertyInfos?.find(item => item.PropertyName === '名称/编号')?.PropertyValue; const strokeWidth = 1; - const edgeWidth = this.assetData.Thickness === 0 ? 5 : this.assetData.Thickness; // 宽度 + const edgeWidth = this.assetData.Thickness === 0 ? 1 : this.assetData.Thickness; // 宽度 - const startWidth = edgeWidth * 2 + strokeWidth; - const endWidth = edgeWidth * 2 + strokeWidth; + const startScale = this.assetData.Thickness <= 5 ? 5 : 2; // 宽度 + + const startWidth = edgeWidth * startScale + strokeWidth; + const endWidth = edgeWidth * startScale + strokeWidth; const openEnded = false; const spacing = (openEnded) ? 0 : 0 + strokeWidth / 2; - const startSize = edgeWidth * 2 + strokeWidth; - const endSize = edgeWidth * 2 + strokeWidth; + const startSize = edgeWidth * startScale + strokeWidth; + const endSize = edgeWidth * startScale + strokeWidth; const isRounded = true; - const lineColor = 0x000000; + const lineColor : number = this.assetData.Color.substring(0, 7).replace('#', '0x'); const fillColor: number = this.assetData.Color.substring(0, 7).replace('#', '0x'); const pe = pts[pts.length - 1];