via examples in github.com/mozilla/webxr-polyfill
class ARSimplestExample extends XRExampleBase { /*...*/ }
To modify one of the examples !
Make sure you are running the examples via a compatible browser e.g. https://github.com/mozilla-mobile/webxr-ios