This example shows how to convert from a Mapbox-gl map projection to a d3.geo Mercator projection. This allows you to take full advantage of all the d3.geo based functions and examples while also leveraging the power and ease-of-use of mapbox-gl
Much credit goes to @vicapow who developed viewport-mercator-project where he figured out the necessary calculations to make this work.
Built with blockbuilder.org
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js
https://d3js.org/topojson.v1.min.js
https://api.tiles.mapbox.com/mapbox-gl-js/v0.12.0/mapbox-gl.js