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