genshin-world 3.8.1 → 4.0.0

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/README.md CHANGED
@@ -28,20 +28,20 @@ It ships no image, model or sound from the game: every mesh, texture and shader
28
28
  pnpm i genshin-world genshin-engine genshin-interface @esposter/shared @tresjs/cientos @tresjs/core @vueuse/core three vue zod
29
29
  ```
30
30
 
31
- Mount `GenshinWorld` inside your own `TresCanvas` and pass in only what your bundler and server decide, and load the screens' styles once:
31
+ Mount `WorldScreen`, which brings its own canvas, and pass in only what your bundler and server decide, and load the screens' styles once:
32
32
 
33
33
  ```vue
34
34
  <script setup lang="ts">
35
- import { GenshinWorld } from "genshin-world";
35
+ import { WorldScreen } from "genshin-world";
36
36
  import TerrainTileWorker from "genshin-world/terrainTileWorker?worker";
37
37
  import "genshin-interface/style.css";
38
38
  import "genshin-world/style.css";
39
39
  </script>
40
40
 
41
41
  <template>
42
- <GenshinWorld
42
+ <WorldScreen
43
43
  :create-terrain-worker="() => new TerrainTileWorker()"
44
- :is-tuning="isDevelopment"
44
+ :is-tuning="isDevelopment || undefined"
45
45
  :quality-tier
46
46
  region-data-base-url="genshin"
47
47
  />