diff --git a/fixtures/lastfm/expected.svg b/fixtures/lastfm/expected.svg index b4a7ab9..be5d84c 100644 --- a/fixtures/lastfm/expected.svg +++ b/fixtures/lastfm/expected.svg @@ -1,8 +1,8 @@ diff --git a/fixtures/medical/expected.svg b/fixtures/medical/expected.svg index e8f65a4..c87878e 100644 --- a/fixtures/medical/expected.svg +++ b/fixtures/medical/expected.svg @@ -1,8 +1,8 @@ diff --git a/fixtures/simple/expected.svg b/fixtures/simple/expected.svg index a19fa0c..4aafea2 100644 --- a/fixtures/simple/expected.svg +++ b/fixtures/simple/expected.svg @@ -1,8 +1,8 @@ diff --git a/src/venn-isomorphic.ts b/src/venn-isomorphic.ts index d1ee385..86227f9 100644 --- a/src/venn-isomorphic.ts +++ b/src/venn-isomorphic.ts @@ -144,17 +144,13 @@ async function renderDiagrams({ d3.select(`#${id}`).datum(diagram).call(chart) const [element] = root.getElementsByTagName('svg') - const { height, width } = element.viewBox.baseVal - - // Xif (screenshot) { - // document.body.append(root) - // } + const { height, width } = element const result: RenderResult = { - height, + height: height.baseVal.value, id, svg: serializer.serializeToString(element), - width + width: width.baseVal.value } return result