!655DAL标注箭头翻转

pull/655/MERGE
肖诗雅 5 years ago committed by ChenX
parent 6d775aa374
commit 41da0698bd

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

Loading…
Cancel
Save