Commit 5e7f3abe authored by 邱旭's avatar 邱旭

1

parent deb4bed2
......@@ -47,19 +47,19 @@ export default class IconBase {
this.iconTips.visible = visible;
}
public get postion() {
public get position(): { x, y } {
return {
x: this.iconGroup.x,
y: this.iconGroup.y
};
}
public set postion(pos: any) {
public set position(pos: { x, y }) {
this.iconGroup.x = pos.x;
this.iconGroup.y = pos.y;
}
public get x() {
public get x(): number {
return this.iconGroup.x;
}
......@@ -67,7 +67,7 @@ export default class IconBase {
this.iconGroup.x = x;
}
public get y() {
public get y(): number {
return this.iconGroup.y;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment