[Vuejs]-Why I can't create one layer for too or more shapes using vue-konva?

0👍

There is no layer component in vue-konva. You have to use v-layer:

<v-stage :config = "stage">
        <v-layer>
            <v-circle :config = "{radius: 10, fill: 'blue'}"/>
        </v-layer>
        <v-layer>
            <v-circle :config = "{radius: 10, fill: 'blue'}"/>
        </v-layer>
</v-stage>

0👍

yes my bad it was v-layer it was a mistake when i rewrote it here, sorry.
I used v-layer and it didn’t get the expected result it only shows the first shape and get errors.

Leave a comment