Fixed offset error.

This commit is contained in:
Severin Opel 2021-02-01 13:54:40 +01:00
parent be950ec8c1
commit 1316a727f3

View File

@ -623,7 +623,7 @@ export class AbstractScatter extends Throwable {
// this._move(offset) // this._move(offset)
this.scale = newScale this.scale = newScale
this.rotation += rotate this.rotation += rotate
let offset = Points.negate(offset) let offset = Points.negate(anchorOffset)
offset = Points.add(offset, extra) offset = Points.add(offset, extra)
offset = Points.add(offset, translate) offset = Points.add(offset, translate)
this._move(Points.add(anchorOffset, offset)) this._move(Points.add(anchorOffset, offset))