|
@@ -79,7 +79,7 @@ export class SIconTextItem extends SObjectItem {
|
|
|
return this.img.width;
|
|
|
}
|
|
|
set sWidth(v: number) {
|
|
|
- this.img.width = v
|
|
|
+ this.img.width = v;
|
|
|
this.update();
|
|
|
}
|
|
|
|
|
@@ -88,7 +88,7 @@ export class SIconTextItem extends SObjectItem {
|
|
|
return this.img.height;
|
|
|
}
|
|
|
set sHeight(v: number) {
|
|
|
- this.img.height = v
|
|
|
+ this.img.height = v;
|
|
|
this.update();
|
|
|
}
|
|
|
|
|
@@ -138,8 +138,8 @@ export class SIconTextItem extends SObjectItem {
|
|
|
constructor(parent: SGraphItem | null) {
|
|
|
super(parent);
|
|
|
this.img.url = `http://adm.sagacloud.cn:8080/doc/assets/img/logo.png`;
|
|
|
- this.img.width = 12;
|
|
|
- this.img.height = 12;
|
|
|
+ this.img.width = 24;
|
|
|
+ this.img.height = 24;
|
|
|
let anchorPoint = [{ x: 0, y: this.img.height / 2 }, { x: 0, y: -this.img.height / 2 }, { x: -this.img.width / 2, y: 0 }, { x: this.img.width / 2, y: 0 }];
|
|
|
this.anchorList = anchorPoint.map(t => {
|
|
|
let item = new SAnchorItem(this);
|