Commit 726abf64 authored by A. Unique TensorFlower's avatar A. Unique TensorFlower Committed by TensorFlower Gardener
Browse files

Made the minimap translate "to" an (X, Y) coordinate instead of "by" an (X, Y)...

Made the minimap translate "to" an (X, Y) coordinate instead of "by" an (X, Y) coordinate. Basically, during the d3v4 migration, translate() got replaced with translateBy(). That caused the scene to continually translate in some direction (until it went off screen) when the user panned the minimap.

We now use a d3 transform that specifies a final location (translate to).

Furthermore, the minimap was transforming the wrong object. It should have been transforming this.svg instead of the root g element. This CL fixes that too.

PiperOrigin-RevId: 156247665
parent 586d31cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment