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
Loading
Please sign in to comment