@yangyongtao/gaea 1.1.17 → 1.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/src/GaeaMethods.js +2 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yangyongtao/gaea",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.18",
|
|
4
4
|
"description": "Gaea 3D visualization component library - Vue 3 components based on Godot WASM engine. Includes WMTS layer loading, camera view control, Vite plugin auto-injection, etc.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.cjs",
|
package/src/GaeaMethods.js
CHANGED
|
@@ -417,8 +417,10 @@ export class GaeaApp {
|
|
|
417
417
|
}
|
|
418
418
|
|
|
419
419
|
const cfg = this.config;
|
|
420
|
+
const canvasEl = document.getElementById('canvas');
|
|
420
421
|
const engine = new window.Engine({
|
|
421
422
|
args: [],
|
|
423
|
+
canvas: canvasEl,
|
|
422
424
|
canvasResizePolicy: cfg.canvasResizePolicy,
|
|
423
425
|
executable: cfg.executable,
|
|
424
426
|
experimentalVK: cfg.experimentalVK,
|