|
|
|
@ -281,10 +281,18 @@ export class AlignedDimension extends Entity
|
|
|
|
|
let armAn = angle(armV);
|
|
|
|
|
|
|
|
|
|
arrow1.position.copy(this.m_ArmP1);
|
|
|
|
|
arrow1.rotation.z = armAn - Math.PI / 2;
|
|
|
|
|
arrow1.updateMatrix();
|
|
|
|
|
arrow2.position.copy(this.m_ArmP2);
|
|
|
|
|
if (this.m_ArmP1.distanceTo(this.m_ArmP2) < 36)
|
|
|
|
|
{
|
|
|
|
|
arrow1.rotation.z = armAn + Math.PI / 2;
|
|
|
|
|
arrow2.rotation.z = armAn - Math.PI / 2;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
arrow1.rotation.z = armAn - Math.PI / 2;
|
|
|
|
|
arrow2.rotation.z = armAn + Math.PI / 2;
|
|
|
|
|
}
|
|
|
|
|
arrow1.updateMatrix();
|
|
|
|
|
arrow2.updateMatrix();
|
|
|
|
|
|
|
|
|
|
//更新引线this._LeadOutLine 并返回新的字体位置
|
|
|
|
|