dash14 / v-network-graph

An interactive network graph visualization component for Vue 3
https://dash14.github.io/v-network-graph/
MIT License
495 stars 44 forks source link

Disable scale for grid when scalingObjects: true #17

Closed justfry closed 2 years ago

justfry commented 2 years ago

I have following config

view: {
        panEnabled: true,
        zoomEnabled: true,
        scalingObjects: true,
        fit: true,
        layoutHandler: new GridLayout({ grid: 20 }),
        grid: {
            visible: true,
        },
    },

And <g class="v-background-viewport"... scaling along with other objects with grid on background

image

When i turn scalingObjects option to false everything back to normal, but my task is scale nodes and edges on zoom and leave background grid fullscreen. image

dash14 commented 2 years ago

Hi @justfry, Thank you very much for your report. Fixed grid scaling when scalingObjects: true is specified. Please check it out v0.3.7.

justfry commented 2 years ago

@dash14 Oh my god it works! Thank you!