dsh-live2dwaifu 0.1.3 → 0.1.5
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 +1 -1
- package/lib/client.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ frame.contentWindow.postMessage({ type: 'dsh-live2d/manage' }, '*');
|
|
|
79
79
|
## 一些常见的小脾气
|
|
80
80
|
|
|
81
81
|
**右下角什么都没有?**
|
|
82
|
-
先重启一次 DSH
|
|
82
|
+
先重启一次 DSH。还不来,看 profile 的 `package.json`:`dsh.profile.bundles` 里得有 `dsh-live2dwaifu`,`dependencies` 里也得有。用 `dsh plugin add` 装的会自动写进去;手动解压到 `node_modules` 的不会——DSH 只加载列在 `bundles` 里的包,名字漏了就当没装,`/dsh-live2d/api/models` 也会 404。
|
|
83
83
|
|
|
84
84
|
**导入了却不认得?**
|
|
85
85
|
多半是文件夹选得太靠上或太靠下,`.model3.json` 就在里面那一层,选它隔壁那层。
|
package/lib/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
;(() => {
|
|
2
|
-
const makeFactory = () => {
|
|
2
|
+
const makeFactory = (require) => {
|
|
3
3
|
const react = require('react');
|
|
4
4
|
const h = react.createElement;
|
|
5
5
|
const name = 'dsh-live2d';
|
|
@@ -137,5 +137,5 @@
|
|
|
137
137
|
return { apply, inject, name };
|
|
138
138
|
};
|
|
139
139
|
|
|
140
|
-
window.__ModuleLoader__.load({ id: 'dsh-
|
|
140
|
+
window.__ModuleLoader__.load({ id: 'dsh-live2dwaifu', factory: makeFactory });
|
|
141
141
|
})();
|
package/package.json
CHANGED