Drawing canvas shapes with Vue
All vue-konva
components correspond to Konva components of the same name with the prefix 'v'. All the parameters available for Konva objects can be added as config in the prop for corresponding vue-konva
components.
Core shapes are: v-rect
, v-circle
, v-ellipse
, v-line
, v-image
, v-text
, v-text-path
, v-star
, v-label
, v-path
, v-regular-polygon
. You can also create a custom shape.
To get more info about Konva you can read Konva Overview.
Instructions: The demo shows various shapes with different styles and configurations.