vue.runtime.esm.js?2b0e:1888 TypeError: this.$refs.disableDblClickZoom is not a function
at VueComponent.disableDblClickZoom (vue-diagram-editor.cjs.js?04d5:2182)
at VueComponent.init (HelloWorld.vue?140d:83)
at VueComponent.mounted (HelloWorld.vue?140d:75)
at invokeWithErrorHandling (vue.runtime.esm.js?2b0e:1854)
at callHook (vue.runtime.esm.js?2b0e:4219)
at Object.insert (vue.runtime.esm.js?2b0e:3139)
at invokeInsertHook (vue.runtime.esm.js?2b0e:6346)
at Vue.patch [as __patch__] (vue.runtime.esm.js?2b0e:6565)
at Vue._update (vue.runtime.esm.js?2b0e:3945)
at Vue.updateComponent (vue.runtime.esm.js?2b0e:4066)
The functions below throw errors when I try to call them. It's likely a typo, the functions call
this.$refs.**
when they should callthis.$refs.diagram.**
This caused great confusion since the function names are re-used. https://github.com/max-kut/vue-diagram-editor/blob/d712b70855b7773e7e65646c5c2d85c04b196b10/src/components/Diagram.vue#L147-L179To reproduce: In line 83 below, I attempt to call the disableDblClickZoom and then get the error and stack trace that follows:
Error: