Vexflow: How can I increase the size?

Created on 30 May 2018  路  2Comments  路  Source: 0xfe/vexflow

I need to increase the size of all the elements. Tell me please how can I do this?

Most helpful comment

I used

        VF = Vex.Flow;
        var renderer = new VF.Renderer(div, VF.Renderer.Backends.SVG);
        renderer.resize(150, 100);
        var context = renderer.getContext();
        context.setViewBox(20, 20, 90, 90); //size

All 2 comments

I used

        VF = Vex.Flow;
        var renderer = new VF.Renderer(div, VF.Renderer.Backends.SVG);
        renderer.resize(150, 100);
        var context = renderer.getContext();
        context.setViewBox(20, 20, 90, 90); //size

There is also context.scale(x,y) which sets the viewbox by multiplying the width/height by x/y respectively

Was this page helpful?
0 / 5 - 0 ratings

Related issues

devboell picture devboell  路  6Comments

sug1no picture sug1no  路  6Comments

jkopyto picture jkopyto  路  5Comments

compilelife picture compilelife  路  4Comments

gciluffo picture gciluffo  路  4Comments