Kinrany / vue-p5

Vue component for p5.js
125 stars 16 forks source link

Event names to camelCase to be identical of P5JS API #23

Closed nestarz closed 4 years ago

nestarz commented 4 years ago

https://github.com/Kinrany/vue-p5/blob/ed2dde5f3849f4da91480aba563f789ffc27ea01/src/p5.vue#L63

From: this.$emit(vueEventName, sketch, ...args); To: this.$emit(p5EventName, sketch, ...args);

What do you think ?

nestarz commented 4 years ago

No we should not:

https://vuejs.org/v2/guide/components-custom-events.html

Kinrany commented 4 years ago

Yeah, unfortunately using p5 event names for Vue events is not an option: there would be no way to subscribe to them :(