Do anyone now how you get the context of the a-frame aer.js canvas? in the dev mode of google chrome i can see a-canvas class but no id to get the context by id.
<canvas class="a-canvas" data-aframe-canvas="true" width="1920" height="1440" style="width: 1536px; height: 1152px;"></canvas>
I would like to have something like var ctx = canvas.getContext('2d');
I am using a-frame with angular 6. When I do it with
const canvas2: HTMLCanvasElement = document.querySelector(".a-canvas");
const ctx=canvas2.getContext('2d');
the const ctx
is always null