|
@@ -20,6 +20,7 @@
|
20
|
20
|
* Viewport
|
21
|
21
|
*/
|
22
|
22
|
|
|
23
|
+import AR from '../main';
|
23
|
24
|
import Speedy from 'speedy-vision';
|
24
|
25
|
import { SpeedySize } from 'speedy-vision/types/core/speedy-size';
|
25
|
26
|
import { SpeedyPromise } from 'speedy-vision/types/core/speedy-promise';
|
|
@@ -208,16 +209,22 @@ class ViewportCanvases
|
208
|
209
|
FOREGROUND_ZINDEX
|
209
|
210
|
);
|
210
|
211
|
|
|
212
|
+ this._foregroundCanvas.style.background = 'transparent';
|
|
213
|
+
|
211
|
214
|
this._backgroundCanvas = this._styleCanvas(
|
212
|
215
|
this._createCanvas(initialSize),
|
213
|
216
|
BACKGROUND_ZINDEX
|
214
|
217
|
);
|
215
|
218
|
|
216
|
|
- parent.appendChild(this._backgroundCanvas);
|
217
|
|
- parent.appendChild(this._foregroundCanvas);
|
218
|
|
-
|
219
|
219
|
this._backgroundCanvas.hidden = true;
|
220
|
220
|
this._foregroundCanvas.hidden = true;
|
|
221
|
+
|
|
222
|
+ const engineInfo = 'encantar.js ' + AR.version;
|
|
223
|
+ this._backgroundCanvas.dataset.arEngine = engineInfo;
|
|
224
|
+ this._foregroundCanvas.dataset.arEngine = engineInfo;
|
|
225
|
+
|
|
226
|
+ parent.appendChild(this._backgroundCanvas);
|
|
227
|
+ parent.appendChild(this._foregroundCanvas);
|
221
|
228
|
}
|
222
|
229
|
|
223
|
230
|
/**
|