src/diagrams/git/gitGraphRenderer.js
function getElementCoords (element, coords) {
  coords = coords || element.node().getBBox()
  const ctm = element.node().getCTM()
  const xn = ctm.e + coords.x * ctm.a
  const yn = ctm.f + coords.y * ctm.d
  return {
    left: xn,
    top: yn,
    width: coords.width,
    height: coords.height
  }
}
function getElementCoords (element, coords) {
  coords = coords || element.node().getBBox()
  const ctm = element.node().getCTM()
  const xn = ctm.e + coords.x * ctm.a
  const yn = ctm.f + coords.y * ctm.d
  return {
    left: xn,
    top: yn,
    width: coords.width,
    height: coords.height
  }
}
function getElementCoords ( element , coords ) { coords = coords || element . node ( ) . getBBox ( ) const ctm = element . node ( ) . getCTM ( ) const xn = ctm . e + coords . x * ctm . a const yn = ctm . f + coords . y * ctm . d return { left : xn , top : yn , width : coords . width , height : coords . height } }
Pass in the element and its pre-transform coords
Pass in the element and its pre - transform coords