@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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.1.18] - 2026-07-13
4
+
5
+ ### Fixed
6
+ - 修复引擎初始化时 `querySelector('#')` 报错:`_startEngine` 显式传 `canvas` 元素,避免引擎全局取第一个 canvas(可能命中其他无 id 的 canvas 导致 `.id` 为空)
7
+
3
8
  ## [1.1.17] - 2026-07-10
4
9
 
5
10
  ### Removed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yangyongtao/gaea",
3
- "version": "1.1.17",
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",
@@ -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,