See Mike Bostock's proposed additions to d3-polygon, which includes an implementation of Sutherland-Hodgman clipping.
The implementation of Sutherland Hodgman clipping that Joy I have been using may be buggy.
bl.ocks.org
See also a discussion of the need to maintain a topology: #44.