genshin-world 3.9.0 → 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 +4 -4
- package/dist/index.d.ts +341 -187
- package/dist/index.js +83752 -27320
- package/dist/style.css +120 -120
- package/dist/terrainTileWorker.js +1 -1
- package/dist/writeWindriseColor-CvJfFCYH.js +33120 -0
- package/package.json +11 -11
- package/dist/writeWindriseColor-COtmALzZ.js +0 -249
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 `
|
|
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 {
|
|
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
|
-
<
|
|
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
|
/>
|