Skip to content

Commit

Permalink
bug fix sb#55
Browse files Browse the repository at this point in the history
  • Loading branch information
Nonki Takahashi committed Feb 6, 2019
1 parent 13d22ac commit c8c18c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/components/common/shapes/ellipse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export class EllipseShape extends BaseShape<Konva.Ellipse> {
x: width / 2,
y: height / 2,
radius: {
x: (width - (2 * strokeWidth)) / 2,
y: (height - (2 * strokeWidth)) / 2
x: (width - strokeWidth) / 2,
y: (height - strokeWidth) / 2
},
fill: "slateblue",
stroke: "black",
Expand All @@ -25,7 +25,7 @@ export class EllipseShape extends BaseShape<Konva.Ellipse> {
}

public move(x: number, y: number): void {
this.instance.y(y + this.instance.radiusY());
this.instance.x(x + this.instance.radiusX());
this.instance.y(y + this.instance.radiusY() + strokeWidth / 2);
this.instance.x(x + this.instance.radiusX() + strokeWidth / 2);
}
}

0 comments on commit c8c18c9

Please sign in to comment.