Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 739 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 739 Bytes

venn-isomorphic

Quick and dirty solution.

Wrapper for upsetjs/venn.js to be able to run it on the server.

Code structure taken from mermaid-isomorphic.

Notes

  • At first I tried to do it with JSDOM. It doesn't work, because it needs getComputedTextLength for layout.
  • Algorithm is not stable, so tests doesn't work (svg output everytime is different)
  • Not exposed: wrap, useViewBox, width, height, padding, colours, colors, fontSize, normalize, layoutFunction, scaleToFit, styled, round, distinct, orientation, orientationOrder, lossFunction