js-sequence-diagrams icon indicating copy to clipboard operation
js-sequence-diagrams copied to clipboard

Add a scale command

Open bramp opened this issue 10 years ago • 2 comments

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.

bramp avatar May 11 '15 15:05 bramp

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});

soswow avatar Nov 19 '15 11:11 soswow

I'm able to scale using

<style>
    #diagram>svg {
        transform: scale(1.5);
    }
</style>

But this feature is missing

gilsdav avatar Sep 29 '20 18:09 gilsdav