Open patrykKlimczak opened 4 years ago
Could you tell me:
vue-annotator
https://github.com/DrSensor/vue-annotator/blob/ec8edc4a9d485628adab6421a039caa404daf062/package.json#L52-L60I try this:
<v-annotator ref="canvas"
class="border"
inertia
:delete.sync="deletingRect.status"
:drawing="true"
:minSize="[20, 20]"
@select="getSelect"
@draw-end="createRect"
@resize-end="changeRect"
@move-end="changeRect"
:grid="[5, 5]">
<img draggable="false" :src="screenImg" />
<rect slot="drawing" class="rectDrawing" stroke="red"/>
</v-annotator>
And I need to @draw-end
event run select event on refs component @select
I has this methods:
this.$refs.canvas.$listeners.select();
but I have error
Scope function on refs:
Hi, I have problem with run methods after methods
Now:
I need to create new rect element and just now select this: