This component serializes and deserializes HTML Events and aims for minimal data usage.
import {parsePayload, createPayload} from 'arc-events'
Serializes an event. You can pass in a custom type if you want it to differ from what's in event.type
.
Deserializes a payload and returns the appropriate event that can be dispatched. For general purposes, look at the arc-aframe-system, which does this for you.
Look at the arcs-vr/arc-aframe-vue-template
for easier setup and at the
arcs-vr/arc-demo
for example usage.
- Barthélémy Bonhomme, @barthy-koeln: [email protected]