Tried fix scatter.
This commit is contained in:
+4
-4
@@ -619,14 +619,14 @@ export class AbstractScatter extends Throwable {
|
||||
|
||||
let newOrigin = Points.arc(anchor, beta + rotate, distance * thresholdedZoom)
|
||||
let extra = Points.subtract(newOrigin, origin)
|
||||
let offset = Points.subtract(anchor, origin)
|
||||
this._move(offset)
|
||||
const anchorOffset = Points.subtract(anchor, origin)
|
||||
// this._move(offset)
|
||||
this.scale = newScale
|
||||
this.rotation += rotate
|
||||
offset = Points.negate(offset)
|
||||
let offset = Points.negate(offset)
|
||||
offset = Points.add(offset, extra)
|
||||
offset = Points.add(offset, translate)
|
||||
this._move(offset)
|
||||
this._move(Points.add(anchorOffset, offset))
|
||||
|
||||
delta.x += extra.x
|
||||
delta.y += extra.y
|
||||
|
||||
Reference in New Issue
Block a user