I've added html escaping of the text (using lodash escape) to support generics Class in the svg export. Before this broke the svg because of the angle brackets.
I've further added the viewbox attribute to support scaling of the svg by overriding the width and the height.
I've checked all the tests and they all still work except for the requirejs usecase, but that usecase also doesn't work (dagre can't be found) before my changes.
I've added html escaping of the text (using lodash escape) to support generics Class in the svg export. Before this broke the svg because of the angle brackets.
I've further added the viewbox attribute to support scaling of the svg by overriding the width and the height.
I've checked all the tests and they all still work except for the requirejs usecase, but that usecase also doesn't work (dagre can't be found) before my changes.