vue-annotator
vue-annotator copied to clipboard
run event select after event @draw-end="createRect"
Hi, I have problem with run methods after methods
createRect() {
const canvas = this.$refs.canvas;
const eIsSameNode = e.node.isSameNode(canvas);
this.$refs.canvas._events.select(eIsSameNode);
}
Now:

I need to create new rect element and just now select this:

Could you tell me:
- the web browser you use along with its version number
- the exact Vue version
- the exact version number of the dependencies being installed when you add/use
vue-annotatorhttps://github.com/DrSensor/vue-annotator/blob/ec8edc4a9d485628adab6421a039caa404daf062/package.json#L52-L60
- Google Chrome Version: 79.0.3945.130
- Vue: 2.5.18

I 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:
