js-sequence-diagrams
js-sequence-diagrams copied to clipboard
Add a scale command
Add a new scale command to shrink or grow the size of the digram. For example
scale: 50%
a->b: blah
Would make the diagram half as tall and half as wide.
Why do you think it should be as part of the diagram syntax? It feels to me it is something belong to how you draw it, which means draw API:
diagram.drawSVG("diagram", {theme: 'hand', scale: 0.5});
I'm able to scale using
<style>
#diagram>svg {
transform: scale(1.5);
}
</style>
But this feature is missing