@seayoo-web/pixi-live2d 0.0.7 → 0.0.9

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -21631,7 +21631,7 @@ class Th {
21631
21631
  * @param url - Core 库的 URL 地址
21632
21632
  */
21633
21633
  static async loadCubismCore(e = ZT) {
21634
- this.coreLoadingPromise || (this.coreLoadingPromise = dv(e)), await this.coreLoadingPromise;
21634
+ this.coreLoadingPromise || (this.coreLoadingPromise = dv(e)), console.log("coreLoadingPromise", this.coreLoadingPromise), await this.coreLoadingPromise;
21635
21635
  }
21636
21636
  /** PIXI 应用实例 */
21637
21637
  app;
@@ -21660,7 +21660,8 @@ class Th {
21660
21660
  view: i,
21661
21661
  resizeTo: i,
21662
21662
  backgroundAlpha: 0,
21663
- autoStart: !0
21663
+ autoStart: !0,
21664
+ sharedTicker: !0
21664
21665
  }), this.init(), this.options.autoResize !== !1 && window.addEventListener("resize", this.handleResize);
21665
21666
  }
21666
21667
  /** 初始化模型 */
@@ -21683,12 +21684,9 @@ class Th {
21683
21684
  */
21684
21685
  lockHeadAngle() {
21685
21686
  if (!this.model) return;
21686
- const e = ["EyeTracking_ParamAngleX", "EyeTracking_ParamAngleY", "ParamAngleZ"], r = this.model.internalModel.coreModel;
21687
- this.app.ticker.add(() => {
21688
- if (r)
21689
- for (const i of e)
21690
- r.setParameterValueById(i, 0);
21691
- });
21687
+ const e = this.model.internalModel;
21688
+ e.updateNaturalMovements = () => {
21689
+ };
21692
21690
  }
21693
21691
  /** 窗口大小改变的处理函数 */
21694
21692
  handleResize = () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@seayoo-web/pixi-live2d",
3
3
  "description": "pixi-live2d viewer",
4
- "version": "0.0.7",
4
+ "version": "0.0.9",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",