d3.zoomTransform(node)
Returns the current transform for the specified node. Note that node should typically be a DOM element, not a selection. (A selection may consist of multiple nodes, in different states, and this function only returns a single transform.) If you have a selection, call selection.node first:
var transform = d3.zoomTransform(selection.node());
In the context of an event listener, the node is typically the element that received the input event (which should be equal to event