邵佳豪 4 years ago
parent
commit
037841fa65
  1. 9
      src/app/working-area/model/multipointIcon.ts

9
src/app/working-area/model/multipointIcon.ts

@ -63,7 +63,7 @@ export class MultipointIcon extends AxShape {
icon.x = pointA.x; icon.x = pointA.x;
icon.y = pointA.y; icon.y = pointA.y;
icon.angle = angle; icon.angle = angle;
// icon.height = this.assetData.Thickness === 0 ? 32 : this.assetData.Thickness; icon.scale.set(1,this.assetData.Thickness === 0 ? 32/64 : this.assetData.Thickness/64);
this.iconsTilingSprite.push(icon); this.iconsTilingSprite.push(icon);
this.addChild(icon); this.addChild(icon);
this.text.position = this.getLineCenter(this.pointsData[0], this.pointsData[1]); this.text.position = this.getLineCenter(this.pointsData[0], this.pointsData[1]);
@ -192,10 +192,9 @@ export class MultipointIcon extends AxShape {
} }
// 刷新数据 // 刷新数据
public refresh() { public refresh() {
// console.log(this.assetData); this.iconsTilingSprite.forEach(element => {
// this.iconsTilingSprite.forEach(element => { element.scale.set(1,this.assetData.Thickness === 0 ? 32/64 : this.assetData.Thickness/64);
// element.height = this.assetData.Thickness === 0 ? 32 : this.assetData.Thickness; });
// });
this.text.text = this.assetData.Name this.text.text = this.assetData.Name
+ '\r\n' + '\r\n'
+ this.assetData.PropertyInfos.find(item => item.PropertyName === '名称/编号')?.PropertyValue; + this.assetData.PropertyInfos.find(item => item.PropertyName === '名称/编号')?.PropertyValue;

Loading…
Cancel
Save